1 Reply Latest reply on Oct 6, 2003 8:06 AM by Raja

    DeploymentException

    kaushikr Newbie

      I got this stange Exception:
      -----------------------------------------------------------
      Please help
      ------------------------------------------------------
      18:53:10,244 ERROR [MainDeployer] could not create deployment: file:
      0.6_tomcat-4.1.18/server/default/deploy/HelloWorld.jar
      org.jboss.deployment.DeploymentException: expected one enterprise-be
      at org.jboss.metadata.MetaData.getUniqueChild(MetaData.java:
      at org.jboss.metadata.ApplicationMetaData.importEjbJarXml(Ap
      aData.java:178)
      at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:
      at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:321)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.jav
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.jav
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.jav
      at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Sourc
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Delegatin
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(R
      nDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImp
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy3.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(
      tScanner.java:435)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scanDir
      ploymentScanner.java:656)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(UR
      canner.java:507)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.st
      bstractDeploymentScanner.java:261)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSu
      65)
      at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Sourc
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Delegatin
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(R
      nDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImp
      at org.jboss.system.ServiceController$ServiceProxy.invoke(Se
      ler.java:1003)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceControlle
      at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Sourc
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Delegatin
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(R
      nDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImp
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy2.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:2
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.jav
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.jav
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.jav
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Metho
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodA
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Delegatin
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(R
      nDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImp
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.jav
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:
      at org.jboss.Main.boot(Main.java:148)
      at org.jboss.Main$1.run(Main.java:381)
      at java.lang.Thread.run(Thread.java:536)