0 Replies Latest reply on Jul 29, 2005 5:59 AM by autiaa

    Failed to deploy ear file.

    autiaa

      When I try to deploy one of my ear files, I see the following error on the console:

      11:32:03,722 INFO [EARDeployer] Init J2EE application: file:/usr/local/jboss-4.0.3RC1/server/tradenexus/deploy/trade-engine-singleton-1.0.ear
      11:32:06,899 ERROR [MainDeployer] Could not create deployment: file:/usr/local/jboss-4.0.3RC1/server/tradenexus/tmp/deploy/tmp26916trade-engine-singleton-1.0.ear-contents/ev-aptsimulator-1.0.jar-contents/jboss-service.xml
      org.jboss.deployment.DeploymentException: org.jboss.mx.modelmbean.XMBean.(java.lang.Object, org.w3c.dom.Element, java.lang.String); - nested throwable: (java.lang.NoSuchMethodException: org.jboss.mx.modelmbean.XMBean.(java.lang.Object, org.w3c.dom.Element, java.lang.String))
      at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:141)
      at org.jboss.system.ServiceController.install(ServiceController.java:202)
      at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy4.install(Unknown Source)
      Caused by: java.lang.NoSuchMethodException: org.jboss.mx.modelmbean.XMBean.(java.lang.Object, org.w3c.dom.Element, java.lang.String)
      at java.lang.Class.getConstructor0(Class.java:2647)
      at java.lang.Class.getConstructor(Class.java:1629)
      at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:1217)
      at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:271)
      at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:329)
      at org.jboss.system.ServiceCreator.install(ServiceCreator.java:148)
      at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:151)
      at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:116)
      ... 81 more

      The structure of this ear file is as follows:
      META-INF/
      META-INF/MANIFEST.MF
      META-INF/jboss-app.xml
      META-INF/application.xml
      netrade-7.0.jar
      calathus-1.0.jar
      ev-aptsimulator-1.0.jar
      token-lock-1.0.jar
      schemas-1.1.jar
      apt-gateway-1.0.jar
      ev-kasbank-1.0.jar
      stax-1.1.1-dev.jar
      ev-simulator-1.0.jar
      cache-1.1.jar
      xbean-2.0.0-beta1.jar
      stax-api-1.0.jar
      epistula-1.0.jar

      The deployer seems to complain about the jboss-service.xml file (packaged inside the ev-aptsimulator-1.0.jar file). However, this ejb deploys fine when I remove the jboss-app.xml from the ear file.

      I've triple checked and compared the classpath parameters of the ejb jar files, so I think this is a bug in either the deployer, or the classloader implementation.

      You can check the files at http://jira.jboss.org/jira/browse/JBAS-2055