Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Bas EAR generated by Eclipse?
Bas EAR generated by Eclipse? [message #221214] Wed, 10 September 2008 15:43 Go to next message
dan man is currently offline dan manFriend
Messages: 7
Registered: July 2009
Junior Member
I am using Eclipse 3.4.0 to generate an EAR for a jboss-4.2.3.GA
installation. It is a very simple (my first) application and everything
seems to be in place as expected from an ear except for the
application.xml file. I am getting the following error on the server:

19:53:34,297 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on
http-127.0.0.1-8080
19:53:34,329 INFO [AjpProtocol] Starting Coyote AJP/1.3 on
ajp-127.0.0.1-8009
19:53:34,342 INFO [Server] JBoss (MX MicroKernel) [4.2.3.GA (build:
SVNTag=JBoss_4_2_3_GA date=200807181439)] Started in 29s:708ms
17:32:08,053 INFO [EARDeployer] Init J2EE application:
file:/C:/jboss-4.2.3.GA/server/jms/deploy/myEnterpriseProjec t.ear
17:32:08,485 ERROR [MainDeployer] Could not initialise deployment:
file:/C:/jboss-4.2.3.GA/server/jms/deploy/myEnterpriseProjec t.ear

org.jboss.deployment.DeploymentException: No META-INF/application.xml found
at org.jboss.deployment.EARDeployer.init(EARDeployer.java:146)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:872 )
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:8 09)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:7 82)
at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)

which seems to be justified since the directory structure I see in the ear
file is the following:

META-INF/MANIFEST.MF
myEjbProject.jar
myEjbProjectClient.jar
myDynamicWebProject.war

What am I missing? Why isn't the application.xml file generated. I guess I
can generate it manually but that's not the point. Can anybody help please?
Thanks.

Dan
Re: Bas EAR generated by Eclipse? [message #221253 is a reply to message #221214] Thu, 11 September 2008 18:55 Go to previous messageGo to next message
Kaloyan Raev is currently offline Kaloyan RaevFriend
Messages: 201
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
I guess you have developed a Java EE 5 application.
The Java EE 5 specification makes the deployment descriptor xml files
optional. This is why your EAR 5 project is created without application.xml
by default.
For some reason JBoss requires the application.xml file to be available. You
can create one for your EAR project by right-clicking > Java EE Tools >
Generate Deployment Descriptor Stub.

Greetings, Kaloyan

"dan man" <acasaman-a@yahoo.com> wrote in message
news:6d0e04eaf5133e3d8e100b3a57924ef1$1@www.eclipse.org...
>I am using Eclipse 3.4.0 to generate an EAR for a jboss-4.2.3.GA
>installation. It is a very simple (my first) application and everything
>seems to be in place as expected from an ear except for the application.xml
>file. I am getting the following error on the server:
>
> 19:53:34,297 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on
> http-127.0.0.1-8080
> 19:53:34,329 INFO [AjpProtocol] Starting Coyote AJP/1.3 on
> ajp-127.0.0.1-8009
> 19:53:34,342 INFO [Server] JBoss (MX MicroKernel) [4.2.3.GA (build:
> SVNTag=JBoss_4_2_3_GA date=200807181439)] Started in 29s:708ms
> 17:32:08,053 INFO [EARDeployer] Init J2EE application:
> file:/C:/jboss-4.2.3.GA/server/jms/deploy/myEnterpriseProjec t.ear
> 17:32:08,485 ERROR [MainDeployer] Could not initialise deployment:
> file:/C:/jboss-4.2.3.GA/server/jms/deploy/myEnterpriseProjec t.ear
>
> org.jboss.deployment.DeploymentException: No META-INF/application.xml
> found
> at org.jboss.deployment.EARDeployer.init(EARDeployer.java:146)
> at org.jboss.deployment.MainDeployer.init(MainDeployer.java:872 )
> at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:8 09)
> at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:7 82)
> at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
>
> which seems to be justified since the directory structure I see in the ear
> file is the following:
>
> META-INF/MANIFEST.MF
> myEjbProject.jar
> myEjbProjectClient.jar
> myDynamicWebProject.war
>
> What am I missing? Why isn't the application.xml file generated. I guess I
> can generate it manually but that's not the point. Can anybody help
> please?
> Thanks.
>
> Dan
>
>
Re: Bas EAR generated by Eclipse? [message #221268 is a reply to message #221253] Thu, 11 September 2008 21:24 Go to previous messageGo to next message
dan man is currently offline dan manFriend
Messages: 7
Registered: July 2009
Junior Member
Thank you for the tip.
The Generate Deployment Descriptor Stub command for the EJB project is
greyed out though.
Re: Bas EAR generated by Eclipse? [message #221286 is a reply to message #221268] Fri, 12 September 2008 07:30 Go to previous messageGo to next message
Kaloyan Raev is currently offline Kaloyan RaevFriend
Messages: 201
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
If it is greyed, then you probably already have deployment descriptor. Check
for an ejb-jar.xml file.


"dan man" <acasaman-a@yahoo.com> wrote in message
news:7d854a2ca2b5b3113ead644aa5f3bab6$1@www.eclipse.org...
> Thank you for the tip.
> The Generate Deployment Descriptor Stub command for the EJB project is
> greyed out though.
>
Re: Bas EAR generated by Eclipse? [message #221334 is a reply to message #221286] Fri, 12 September 2008 21:50 Go to previous message
dan man is currently offline dan manFriend
Messages: 7
Registered: July 2009
Junior Member
You were right. I got my problem fixed. Thanks.
Previous Topic:IValidatorJob not running anymore
Next Topic:How to switch quickly the EJB relating local interface of a bean?
Goto Forum:
  


Current Time: Tue Apr 23 06:41:07 GMT 2024

Powered by FUDForum. Page generated in 0.03541 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top