3 Replies Latest reply on Feb 14, 2009 1:13 AM by chimili santharao

    Bad EAR generated by Eclipse?

    Dan Man Newbie

      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-
      19:53:34,329 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-
      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/myEnterpriseProject.ear
      17:32:08,485 ERROR [MainDeployer] Could not initialise deployment: file:/C:/jboss-4.2.3.GA/server/jms/deploy/myEnterpriseProject.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:809)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
      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:


      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?
      I know this question should belong to an Eclipse newsgroup but I couldn't get any response there.