Eve Pokua wrote:
> Hi Sahoo,
>
> Thanks for your reply. When I created the application in netbeans
> 6.5, it was the
> netbeans that created the application.xml. So why would it be invalided.
>
> I have nerver had this error before so may be its a bug in netbeans.
>
an EAR app needs to have at least 1 module (Ejb module or Web App).
For example, this application.xml is a valid one:
<?xml version="1.0" encoding="UTF-8"?>
<application version="5"
xmlns="
http://java.sun.com/xml/ns/javaee"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/application_5.xsd">
<display-name>EnterpriseApplication1</display-name>
<module>
<web>
<web-uri>EnterpriseApplication1-war.war</web-uri>
<context-root>/EnterpriseApplication1-war</context-root>
</web>
</module>
<module>
<ejb>EnterpriseApplication1-ejb.jar</ejb>
</module>
</application>
> my app.xml:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <application xmlns = "http://java.sun.com/xml/ns/javaee"
> version = "5"
> xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation = "http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/application_5.xsd">
> </application>
>
>
> Thanks
>
> eeve
>
> > Date: Wed, 25 Feb 2009 22:57:39 +0530
> > From: Sahoo_at_Sun.COM
> > To: users_at_glassfish.dev.java.net
> > CC: ejb_at_glassfish.dev.java.net; persistence_at_glassfish.dev.java.net
> > Subject: Re: http://java.sun.com/xml/ns/javaee":module}' is expected.
> >
> > Your application.xml is not valid as per the javaee schema. Open it in
> > an XML aware editor (like NetBeans) and make it a valid document.
> >
> > Eve Pokua wrote:
> > > Hello,
> > >
> > > I'm using netbeans 6.5, while I was deploying my application, I got
> > > the following error:
> > >
> > >
> *#|2009-02-25T16:11:24.353+0000|SEVERE|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=15;_ThreadName=Thread-25;cvc-complex-type.2.4.b:
>
> > > The content of element 'application' is not complete. One of
> > > '{"**http://java.sun.com/xml/ns/javaee":description*
> > > <http://java.sun.com/xml/ns/javaee%22:description>*,
> > > "**http://java.sun.com/xml/ns/javaee":display-name*
> > > <http://java.sun.com/xml/ns/javaee%22:display-name>*,
> > > "**http://java.sun.com/xml/ns/javaee":icon*
> > > <http://java.sun.com/xml/ns/javaee%22:icon>*,
> > > "**http://java.sun.com/xml/ns/javaee":module}'*
> > > <http://java.sun.com/xml/ns/javaee%22:module%7D%27>* is
> > > expected.;_RequestID=01428534-d0aa-4fbc-97ef-5603f8af97cc;|"DPL8005:
> > > Deployment Descriptor parsing failure : cvc-complex-type.2.4.b: The
> > > content of element 'application' is not complete. One of
> > > '{"**http://java.sun.com/xml/ns/javaee":description*
> > > <http://java.sun.com/xml/ns/javaee%22:description>*,
> > > "**http://java.sun.com/xml/ns/javaee":display-name*
> > > <http://java.sun.com/xml/ns/javaee%22:display-name>*,
> > > "**http://java.sun.com/xml/ns/javaee":icon*
> > > <http://java.sun.com/xml/ns/javaee%22:icon>*,
> > > "**http://java.sun.com/xml/ns/javaee":module}'*
> > > <http://java.sun.com/xml/ns/javaee%22:module%7D%27>* is expected."|#]*
> > >
> *[#|2009-02-25T16:11:24.361+0000|SEVERE|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=15;_ThreadName=Thread-25;_RequestID=01428534-d0aa-4fbc-97ef-5603f8af97cc;|Exception
>
> > > occured in J2EEC Phase
> > > com.sun.enterprise.deployment.backend.IASDeploymentException:
> > > Deployment descriptor file META-INF/application.xml in archive
> > > [gfdeploy]. cvc-complex-type.2.4.b: The content of element
> > > 'application' is not complete. One of
> > > '{"**http://java.sun.com/xml/ns/javaee":description*
> > > <http://java.sun.com/xml/ns/javaee%22:description>*,
> > > "**http://java.sun.com/xml/ns/javaee":display-name*
> > > <http://java.sun.com/xml/ns/javaee%22:display-name>*,
> > > "**http://java.sun.com/xml/ns/javaee":icon*
> > > <http://java.sun.com/xml/ns/javaee%22:icon>*,
> > > "**http://java.sun.com/xml/ns/javaee":module}'*
> > > <http://java.sun.com/xml/ns/javaee%22:module%7D%27>* is expected.
> > > at
> > >
> com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:304)
> > > at
> > >
> com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:226)
> > > at
> > >
> com.sun.enterprise.deployment.archivist.Archivist.readStandardDeploymentDescriptor(Archivist.java:480)
> > > at
> > >
> com.sun.enterprise.deployment.backend.AppDeployerBase.getModuleClasspath(AppDeployerBase.java:343)
> > > at
> > >
> com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:312)
> > > at
> > >
> com.sun.enterprise.deployment.backend.AppDeployerBase.loadDescriptors(AppDeployerBase.java:358)
> > > at
> > >
> com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:226)
> > > at
> > >
> com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
> > > at
> > >
> com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:191)
> > > at
> > >
> com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
> > > at
> > >
> com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919)
> > > at
> > >
> com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:279)
> > > at
> > >
> com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:788)
> > > at
> > >
> com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
> > > at
> > >
> com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:223)
> > > |#]*
> > > **
> > >
> > >
> > > Any ideas
> > >
> > > thanks
> > >
> > > eve
> > >
> > >
> ------------------------------------------------------------------------
> > > Share your photos with Windows Live Photos – Free Find out more!
> > > <http://clk.atdmt.com/UKM/go/132630768/direct/01/>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> > For additional commands, e-mail: users-help_at_glassfish.dev.java.net
> >
>
> ------------------------------------------------------------------------
> Windows Live Hotmail just got better. Find out more!
> <http://www.microsoft.com/uk/windows/windowslive/products/hotmail.aspx>