5 Replies Latest reply on Mar 31, 2014 9:16 AM by jfclere

    Jboss4 getting org.jboss.deployment.DeploymentException

    1purohit

      Hi all,

      I am using jboss 4.0.1sp1 and i have deployed two web application on my jboss. One is my webapp and other is maintainj reverse engineering tool war.

      MaintainJ war needs jvm argument setup for one of its jar. Argument is as below:

      set JAVA_OPTS=%JAVA_OPTS% -javaagent:%MJ_LIB%\aspectjweaver.jar

       

      If i dont add this argument both the application run but maintainJ gives error for the above argument and

      if i add this argument my application gives me error as :

       

      org.jboss.deployment.DeploymentException: URL file:/C:/development/jboss-4.0.1sp1/server/1.10/tmp/deploy/tmp39303778485527959DNA-1.10-10582.ear-contents/PKC-exp.war/ deployment failed

        at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:365)

        at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:92)

        at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:374)

        at org.jboss.web.WebModule.startModule(WebModule.java:62)

        at org.jboss.web.WebModule.startService(WebModule.java:40)

        at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)

        at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)

        at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597)

        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)

        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:249)

        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)

        at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891)

        at $Proxy0.start(Unknown Source)

        at org.jboss.system.ServiceController.start(ServiceController.java:416)

        at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597)

        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)

        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:249)

        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)

        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)

       

      java.util.zip.ZipException: error in opening zip file

        at java.util.zip.ZipFile.open(Native Method)

        at java.util.zip.ZipFile.<init>(ZipFile.java:127)

        at java.util.jar.JarFile.<init>(JarFile.java:135)

        at java.util.jar.JarFile.<init>(JarFile.java:72)

        at org.jboss.deployment.SubDeployerSupport.processNestedDeployments(SubDeployerSupport.java:285)

        at org.jboss.deployment.SubDeployerSupport.init(SubDeployerSupport.java:183)

        at org.jboss.deployment.MainDeployer.init(MainDeployer.java:828)

        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:765)

        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)

        at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597)

        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)

        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)

        at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:122)

        at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)

        at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)

        at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)

        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)

        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)

        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)

        at $Proxy8.deploy(Unknown Source)

        at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:305)

        at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:481)

        at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204)

        at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:277)

        at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)

        at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)

        at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597)

        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)

        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:249)

        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)

        at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891)

        at $Proxy0.start(Unknown Source)

       

      Thanks