1 Reply Latest reply on Jan 27, 2002 1:25 PM by bvenkata

    EJB deployment error

    bvenkata

      I'm new to EJB and also to JBoss.
      I'm currently using JBoss 2.4.4 .
      I wrote a basic "Hello" Enterprise Bean and tried to deploy the jar file under the "deploy" directory
      of JBoss.
      The Jar file does contain the ejb-jar.xml and the jboss.xml files along with the bean class files.

      But I get the following error from the auto deployment feature of JBoss. What am I missing ?

      The XML files are in properly under the META-INF directory when I look in my JAR file.

      I've pored thru the documentation and this forum, can't fix it.
      Thanks for any help!

      Error part of the Log:

      [10:42:13,697,AutoDeployer] Auto deploy of file:/C:/JBoss-2.4.4/deploy/lib/HelloWorld.jar
      [10:42:13,707,J2eeDeployer] Deploy J2EE application: file:/C:/JBoss-2.4.4/deploy/lib/HelloWorld.jar
      [10:42:13,947,AutoDeployer] DeploymentInfo failed:file:/C:/JBoss-2.4.4/deploy/lib/HelloWorld.jar
      org.jboss.deployment.J2eeDeploymentException: no deployment descriptor (META-INF/ejb-jar.xml, WEB-INF/web.xml, META-INF/application.xml) found
      at org.jboss.deployment.LegacyInstaller.determineType(LegacyInstaller.java:384)
      at org.jboss.deployment.LegacyInstaller.execute(LegacyInstaller.java:135)
      at org.jboss.deployment.InstallerFactory.install(InstallerFactory.java:120)
      at org.jboss.deployment.J2eeDeployer.installApplication(J2eeDeployer.java:409)
      at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:185)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:395)
      at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:233)
      at org.jboss.deployment.AutoDeployer.startService(AutoDeployer.java:371)
      at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:103)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(ConfigurationService.java:967)
      at $Proxy0.start(Unknown Source)
      at org.jboss.util.ServiceControl.start(ServiceControl.java:79)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.Main.(Main.java:208)
      at org.jboss.Main$1.run(Main.java:110)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.jboss.Main.main(Main.java:106)

        • 1. Re: EJB deployment error
          bvenkata

          I'm answering my own Q.
          Earlier my META-INF directory was under the Java "package" directory which houses all of my java files.
          For example: all my java files are under directory ejbExamples, and the META-INF was under that.
          When I moved the META-INF one level up to be at the same level as my package, the deployment worked.

          Thanks,