7 Replies Latest reply on Jan 23, 2013 10:58 AM by Nuno Ferreira

    JBoss AS 7 (EAP 6) with JRockit

    Nuno Ferreira Newbie

      Hi,

       

      Does anyone have JBoss AS 7 with the JRockit JDK??

      I´m trying to put the 2 things together but i´m experience this errors:

       

      15:38:59,010 WARN  [org.jboss.modules] (MSC service thread 1-8) Failed to define class org.apache.cxf.common.logging.Log4jLogger$HandlerWrapper in Module "org.apache.cxf:main" from local module loader @77e29d (roots: D:\jboss-eap-6.0.0\modules): java.lang.LinkageError: Failed to link org/apache/cxf/common/logging/Log4jLogger$HandlerWrapper (Module "org.apache.cxf:main" from local module loader @77e29d (roots: D:\jboss-eap-6.0.0\modules))

                at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:396)

                at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:243)

                at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73)

                at org.jboss.modules.Module.loadModuleClass(Module.java:527)

                at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182)

                at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

                at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:417)

                at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)

                at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)

                at java.lang.Class.forName0(Native Method) [rt.jar:1.6.0_37]

                at java.lang.Class.forName(Class.java:247) [rt.jar:1.6.0_37]

                at org.apache.cxf.common.logging.LogUtils.<clinit>(LogUtils.java:113) [cxf-common-utilities-2.4.6-redhat-1.jar:2.4.6-redhat-1]

                at org.apache.cxf.BusFactory.<clinit>(BusFactory.java:71) [cxf-api-2.4.6-redhat-1.jar:2.4.6-redhat-1]

                at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.start(BusDeploymentAspect.java:60) [jbossws-cxf-server-4.0.4.GA-redhat-1.jar:4.0.4.GA-redhat-1]

                at org.jboss.as.webservices.deployers.AspectDeploymentProcessor.deploy(AspectDeploymentProcessor.java:74) [jboss-as-webservices-server-integration-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]

                at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:116)

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_37]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_37]

                at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_37]

      Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/AppenderSkeleton

                at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.6.0_37]

                at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) [rt.jar:1.6.0_37]

                at java.lang.ClassLoader.defineClass(ClassLoader.java:615) [rt.jar:1.6.0_37]

                at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) [rt.jar:1.6.0_37]

                at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:327)

                at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:391)

                ... 20 more

       

       

      15:38:59,010 WARN  [org.jboss.modules] (MSC service thread 1-8) Failed to define class org.apache.cxf.common.logging.Log4jLogger$HandlerWrapper in Module "org.apache.cxf:main" from local module loader @77e29d (roots: D:\jboss-eap-6.0.0\modules): java.lang.LinkageError: Failed to link org/apache/cxf/common/logging/Log4jLogger$HandlerWrapper (Module "org.apache.cxf:main" from local module loader @77e29d (roots: D:\jboss-eap-6.0.0\modules))

                at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:396)

                at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:243)

                at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73)

                at org.jboss.modules.Module.loadModuleClass(Module.java:527)

                at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182)

                at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

                at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:417)

                at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)

                at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)

                at java.lang.Class.forName0(Native Method) [rt.jar:1.6.0_37]

                at java.lang.Class.forName(Class.java:169) [rt.jar:1.6.0_37]

                at org.apache.cxf.common.logging.LogUtils.<clinit>(LogUtils.java:116) [cxf-common-utilities-2.4.6-redhat-1.jar:2.4.6-redhat-1]

                at org.apache.cxf.BusFactory.<clinit>(BusFactory.java:71) [cxf-api-2.4.6-redhat-1.jar:2.4.6-redhat-1]

                at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.start(BusDeploymentAspect.java:60) [jbossws-cxf-server-4.0.4.GA-redhat-1.jar:4.0.4.GA-redhat-1]

                at org.jboss.as.webservices.deployers.AspectDeploymentProcessor.deploy(AspectDeploymentProcessor.java:74) [jboss-as-webservices-server-integration-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]

                at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:116)

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_37]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_37]

                at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_37]

      Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/AppenderSkeleton

                at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.6.0_37]

                at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) [rt.jar:1.6.0_37]

                at java.lang.ClassLoader.defineClass(ClassLoader.java:615) [rt.jar:1.6.0_37]

                at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) [rt.jar:1.6.0_37]

                at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:327)

                at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:391)

                ... 20 more

       

       

      15:38:59,119 WARN  [org.jboss.modules] (MSC service thread 1-8) Failed to define class org.apache.cxf.service.invoker.SpringBeanFactory in Module "org.apache.cxf:main" from local module loader @77e29d (roots: D:\jboss-eap-6.0.0\modules): java.lang.LinkageError: Failed to link org/apache/cxf/service/invoker/SpringBeanFactory (Module "org.apache.cxf:main" from local module loader @77e29d (roots: D:\jboss-eap-6.0.0\modules))

                at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:396)

                at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:243)

                at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73)

                at org.jboss.modules.Module.loadModuleClass(Module.java:527)

                at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182)

                at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

                at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:417)

                at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)

                at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)

                at org.apache.cxf.service.factory.FactoryBeanListenerManager.<init>(FactoryBeanListenerManager.java:42) [cxf-rt-core-2.4.6-redhat-1.jar:2.4.6-redhat-1]

                at org.apache.cxf.service.factory.FactoryBeanListenerManager.<init>(FactoryBeanListenerManager.java:45) [cxf-rt-core-2.4.6-redhat-1.jar:2.4.6-redhat-1]

                at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.6.0_37]

                at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) [rt.jar:1.6.0_37]

                at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) [rt.jar:1.6.0_37]

                at java.lang.reflect.Constructor.newInstance(Constructor.java:513) [rt.jar:1.6.0_37]

                at org.apache.cxf.bus.extension.Extension.load(Extension.java:165) [cxf-rt-core-2.4.6-redhat-1.jar:2.4.6-redhat-1]

                at org.apache.cxf.bus.extension.ExtensionManagerImpl.loadAndRegister(ExtensionManagerImpl.java:191) [cxf-rt-core-2.4.6-redhat-1.jar:2.4.6-redhat-1]

                at org.apache.cxf.bus.extension.ExtensionManagerImpl.getBeansOfType(ExtensionManagerImpl.java:280) [cxf-rt-core-2.4.6-redhat-1.jar:2.4.6-redhat-1]

                at org.apache.cxf.bus.CXFBusImpl.getExtension(CXFBusImpl.java:99) [cxf-rt-core-2.4.6-redhat-1.jar:2.4.6-redhat-1]

                at org.apache.cxf.ws.policy.PolicyEngineImpl.setBus(PolicyEngineImpl.java:107) [cxf-rt-ws-policy-2.4.6-redhat-1.jar:2.4.6-redhat-1]

                at org.apache.cxf.ws.policy.PolicyEngineImpl.<init>(PolicyEngineImpl.java:90) [cxf-rt-ws-policy-2.4.6-redhat-1.jar:2.4.6-redhat-1]

                at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.6.0_37]

                at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) [rt.jar:1.6.0_37]

                at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) [rt.jar:1.6.0_37]

                at java.lang.reflect.Constructor.newInstance(Constructor.java:513) [rt.jar:1.6.0_37]

                at org.apache.cxf.bus.extension.Extension.load(Extension.java:165) [cxf-rt-core-2.4.6-redhat-1.jar:2.4.6-redhat-1]

                at org.apache.cxf.bus.extension.ExtensionManagerImpl.loadAndRegister(ExtensionManagerImpl.java:191) [cxf-rt-core-2.4.6-redhat-1.jar:2.4.6-redhat-1]

                at org.apache.cxf.bus.extension.ExtensionManagerImpl.initialize(ExtensionManagerImpl.java:118) [cxf-rt-core-2.4.6-redhat-1.jar:2.4.6-redhat-1]

                at org.apache.cxf.bus.extension.ExtensionManagerBus.initialize(ExtensionManagerBus.java:147) [cxf-rt-core-2.4.6-redhat-1.jar:2.4.6-redhat-1]

                at org.jboss.wsf.stack.cxf.client.configuration.JBossWSNonSpringBusFactory.createBus(JBossWSNonSpringBusFactory.java:65) [jbossws-cxf-client-4.0.4.GA-redhat-1.jar:4.0.4.GA-redhat-1]

                at org.apache.cxf.bus.CXFBusFactory.createBus(CXFBusFactory.java:36) [cxf-rt-core-2.4.6-redhat-1.jar:2.4.6-redhat-1]

                at org.apache.cxf.bus.CXFBusFactory.createBus(CXFBusFactory.java:32) [cxf-rt-core-2.4.6-redhat-1.jar:2.4.6-redhat-1]

                at org.jboss.wsf.stack.cxf.client.configuration.JBossWSBusFactory.createBus(JBossWSBusFactory.java:58) [jbossws-cxf-client-4.0.4.GA-redhat-1.jar:4.0.4.GA-redhat-1]

                at org.apache.cxf.BusFactory.getDefaultBus(BusFactory.java:98) [cxf-api-2.4.6-redhat-1.jar:2.4.6-redhat-1]

                at org.apache.cxf.BusFactory.getDefaultBus(BusFactory.java:87) [cxf-api-2.4.6-redhat-1.jar:2.4.6-redhat-1]

                at org.jboss.wsf.stack.cxf.client.configuration.JBossWSBusFactory.getDefaultBus(JBossWSBusFactory.java:156) [jbossws-cxf-client-4.0.4.GA-redhat-1.jar:4.0.4.GA-redhat-1]

                at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.start(BusDeploymentAspect.java:64)

                at org.jboss.as.webservices.deployers.AspectDeploymentProcessor.deploy(AspectDeploymentProcessor.java:74)

                at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:116)

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_37]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_37]

                at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_37]

      Caused by: java.lang.NoClassDefFoundError: org/springframework/context/ApplicationContextAware

                at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.6.0_37]

                at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) [rt.jar:1.6.0_37]

                at java.lang.ClassLoader.defineClass(ClassLoader.java:615) [rt.jar:1.6.0_37]

                at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) [rt.jar:1.6.0_37]

                at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:327)

                at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:391)

                ... 43 more

       

       

      15:38:59,166 WARN  [org.jboss.modules] (MSC service thread 1-8) Failed to define class org.apache.cxf.binding.soap.tcp.SoapTcpDestination in Module "org.apache.cxf:main" from local module loader @77e29d (roots: D:\jboss-eap-6.0.0\modules): java.lang.LinkageError: Failed to link org/apache/cxf/binding/soap/tcp/SoapTcpDestination (Module "org.apache.cxf:main" from local module loader @77e29d (roots: D:\jboss-eap-6.0.0\modules))

                at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:396)

                at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:243)

                at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73)

                at org.jboss.modules.Module.loadModuleClass(Module.java:527)

                at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182)

                at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

                at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:417)

                at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)

                at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)

                at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.startDeploymentBus(BusDeploymentAspect.java:113) [jbossws-cxf-server-4.0.4.GA-redhat-1.jar:4.0.4.GA-redhat-1]

                at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.start(BusDeploymentAspect.java:66) [jbossws-cxf-server-4.0.4.GA-redhat-1.jar:4.0.4.GA-redhat-1]

                at org.jboss.as.webservices.deployers.AspectDeploymentProcessor.deploy(AspectDeploymentProcessor.java:74) [jboss-as-webservices-server-integration-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]

                at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:116)

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_37]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_37]

                at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_37]

      Caused by: java.lang.NoClassDefFoundError: org/apache/mina/core/service/IoHandler

                at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.6.0_37]

                at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) [rt.jar:1.6.0_37]

                at java.lang.ClassLoader.defineClass(ClassLoader.java:615) [rt.jar:1.6.0_37]

                at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) [rt.jar:1.6.0_37]

                at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:327)

                at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:391)

       

       

      I believe this is a class loading problem, but anyone have any idea to solve this?

      This application work with SUN JDK.

       

       

      Cheers,

       

      Nuno Ferreira

        • 1. Re: JBoss AS 7 (EAP 6) with JRockit
          Tomaz Cerar Master

          Hi,

           

          given stacktrace you posted you get this exception on oracles(suns) jdk and not jrockit...

           

          In any case it looks like deployment issue.

          can you post output of

           

          jar tf <name-of-your-archive>

           

          here so we can identify what steps are needed to fix this.

           

          as goes for JRockit it should work, at least I am unaware of any issues with it.

           

          --

          tomaz

          • 2. Re: JBoss AS 7 (EAP 6) with JRockit
            Nuno Ferreira Newbie

            Hi Tomaz,

             

            Here is a small project with similar behaviour, but in small size. All the libs needed are there.

            The call to the test web service works but i get all this WARNINGS that a didn't get with the SUN JVM.

             

             

            Tomaz Cerar wrote:

             

            Hi,

             

            given stacktrace you posted you get this exception on oracles(suns) jdk and not jrockit...

             

            In any case it looks like deployment issue.

            can you post output of

             

            jar tf <name-of-your-archive>

             

            here so we can identify what steps are needed to fix this.

             

            as goes for JRockit it should work, at least I am unaware of any issues with it.

             

            --

            tomaz

            Here is listing:

             

            [EAR]

            META-INF/

            META-INF/MANIFEST.MF

            META-INF/application.xml

            lib/

            lib/acme.jar

            lib/antlr-2.7.6.jar

            lib/aopalliance-1.0.jar

            lib/commons-beanutils-1.8.0.jar

            lib/commons-codec-1.3.jar

            lib/commons-collections-3.2.1.jar

            lib/commons-dbcp-1.2.2.jar

            lib/commons-digester-1.8.1.jar

            lib/commons-fileupload-1.2.2.jar

            lib/commons-io-2.0.1.jar

            lib/commons-lang-2.4.jar

            lib/commons-net-2.0.jar

            lib/commons-pool-1.4.jar

            lib/dom4j-1.6.1.jar

            lib/hibernate-commons-annotations-4.0.1.Final.jar

            lib/hibernate-core-4.1.4.Final.jar

            lib/hibernate-entitymanager-4.1.4.Final.jar

            lib/hibernate-jpa-2.0-api-1.0.1.Final.jar

            lib/hibernate-validator-3.1.0-ga.jar

            lib/itext-paulo-155.jar

            lib/javassist-3.4.GA.jar

            lib/jaxb-impl.jar

            lib/jaxb-xjc.jar

            lib/jaxws-api-2.1.7.jar

            lib/jaxws-rt.jar

            lib/jaxws-tools.jar

            lib/jboss-logging-3.1.0.GA.jar

            lib/jcl-over-slf4j-1.5.6.jar

            lib/jftp-1.5.1.jar

            lib/jmesa-3.0.4-dsts.jar

            lib/jsr250-api-2.1.7.jar

            lib/log4j-1.2.15.jar

            lib/ognl-3.0.5.jar

            lib/org.springframework.aop-3.1.1.RELEASE.jar

            lib/org.springframework.asm-3.1.1.RELEASE.jar

            lib/org.springframework.beans-3.1.1.RELEASE.jar

            lib/org.springframework.context-3.1.1.RELEASE.jar

            lib/org.springframework.context.support-3.1.1.RELEASE.jar

            lib/org.springframework.core-3.1.1.RELEASE.jar

            lib/org.springframework.expression-3.1.1.RELEASE.jar

            lib/org.springframework.jdbc-3.1.1.RELEASE.jar

            lib/org.springframework.orm-3.1.1.RELEASE.jar

            lib/org.springframework.transaction-3.1.1.RELEASE.jar

            lib/org.springframework.web-3.1.1.RELEASE.jar

            lib/saaj-api-2.1.7.jar

            lib/saaj-impl-1.3.2.jar

            lib/slf4j-api-1.5.6.jar

            lib/slf4j-log4j12-1.5.6.jar

            lib/spring-security-core-3.1.3.RELEASE.jar

            lib/stax-ex.jar

            lib/streambuffer.jar

            lib/truezip-6.jar

            lib/xercesImpl-1.5.jar

            lib/xwork-core-2.3.4.1.jar

            JbossEARTest.war

             

            [WAR]

            Don´t have any libs.

             

             

            Any thoughts or ideas for what is happening here?

             

            cheers,

             

            Nuno

            • 3. Re: JBoss AS 7 (EAP 6) with JRockit
              Nicklas Karlsson Master

              You can't really need half of those, right? At least not in the deployment. Lots of dead weight in there (hibernate, xml related stuff, ws-stuff, logging-stuff, db-pool stuff, javassist(?))

              • 4. Re: JBoss AS 7 (EAP 6) with JRockit
                Nuno Ferreira Newbie

                Hi,

                 

                This is the test deployment that has the same issues that my complete project. But the libs are the same in both projects.

                So, all the libs are needed in the orginal project.

                 

                 

                Cheers,

                 

                Nuno

                • 5. Re: JBoss AS 7 (EAP 6) with JRockit
                  Tomaz Cerar Master

                  Hi,

                   

                  few details about your libs and what to do with them:

                   

                  [EAR]

                  META-INF/

                  META-INF/MANIFEST.MF

                  META-INF/application.xml

                  lib/

                  lib/acme.jar

                  lib/antlr-2.7.6.jar --> probably not needed as this is hibernate dependancy

                  lib/aopalliance-1.0.jar

                  lib/commons-beanutils-1.8.0.jar

                  lib/commons-codec-1.3.jar

                  lib/commons-collections-3.2.1.jar

                  lib/commons-dbcp-1.2.2.jar

                  lib/commons-digester-1.8.1.jar

                  lib/commons-fileupload-1.2.2.jar

                  lib/commons-io-2.0.1.jar

                  lib/commons-lang-2.4.jar

                  lib/commons-net-2.0.jar

                  lib/commons-pool-1.4.jar

                  lib/dom4j-1.6.1.jar --> probably not needed

                  lib/hibernate-commons-annotations-4.0.1.Final.jar --> remove, hibernate is part of app server, remove

                  lib/hibernate-core-4.1.4.Final.jar --> remove, hibernate is part of app server, remove

                  lib/hibernate-entitymanager-4.1.4.Final.jar --> remove, hibernate is part of app server, remove

                  lib/hibernate-jpa-2.0-api-1.0.1.Final.jar --> remove, hibernate is part of app server, remove

                  lib/hibernate-validator-3.1.0-ga.jar --> remove, this is now part of app server in newer form.

                  lib/itext-paulo-155.jar

                  lib/javassist-3.4.GA.jar --> remove as it is dependancy of hibernate

                  lib/jaxb-impl.jar --> part of jdk, remove

                  lib/jaxb-xjc.jar --> part of jdk, remove

                  lib/jaxws-api-2.1.7.jar --> part of jdk / app server, remove

                  lib/jaxws-rt.jar --> part of app server, remove

                  lib/jaxws-tools.jar --> part of app server/ jdk, remove

                  lib/jboss-logging-3.1.0.GA.jar --> probably a dependancy of hibernate, remove

                  lib/jcl-over-slf4j-1.5.6.jar --> remove, part of app server

                  lib/jftp-1.5.1.jar

                  lib/jmesa-3.0.4-dsts.jar

                  lib/jsr250-api-2.1.7.jar  --> remove, part of app server

                  lib/log4j-1.2.15.jar --> remove part of app server

                  lib/ognl-3.0.5.jar

                  lib/org.springframework.aop-3.1.1.RELEASE.jar

                  lib/org.springframework.asm-3.1.1.RELEASE.jar

                  lib/org.springframework.beans-3.1.1.RELEASE.jar

                  lib/org.springframework.context-3.1.1.RELEASE.jar

                  lib/org.springframework.context.support-3.1.1.RELEASE.jar

                  lib/org.springframework.core-3.1.1.RELEASE.jar

                  lib/org.springframework.expression-3.1.1.RELEASE.jar

                  lib/org.springframework.jdbc-3.1.1.RELEASE.jar

                  lib/org.springframework.orm-3.1.1.RELEASE.jar

                  lib/org.springframework.transaction-3.1.1.RELEASE.jar

                  lib/org.springframework.web-3.1.1.RELEASE.jar

                  lib/saaj-api-2.1.7.jar --> remove, part of app server

                  lib/saaj-impl-1.3.2.jar --> remove, part of app server

                  lib/slf4j-api-1.5.6.jar --> remove, part of app server

                  lib/slf4j-log4j12-1.5.6.jar --> remove, part of app server

                  lib/spring-security-core-3.1.3.RELEASE.jar

                  lib/stax-ex.jar -> remove, part of app server

                  lib/streambuffer.jar

                  lib/truezip-6.jar

                  lib/xercesImpl-1.5.jar

                  lib/xwork-core-2.3.4.1.jar --> really needed? dont you use jax-ws?

                  JbossEARTest.war

                  I think you have some jar in your app as result of misconfigured dependancies in maven.

                  for dependancies that are part of app server you should have them configured as <scope>provided</scope>.

                  that is absolutly a must for hibernate.

                   

                  also you can check how this jars come into your ear by doing:

                  mvn dependency:tree

                   

                  clean up this ear and then we can continue form there.

                   

                  --

                  tomaz

                  • 6. Re: JBoss AS 7 (EAP 6) with JRockit
                    Nicklas Karlsson Master

                    commons-pool and commons-dbcp are also candidates for removal, one would think.

                    • 7. Re: JBoss AS 7 (EAP 6) with JRockit
                      Nuno Ferreira Newbie

                      Hi,

                       

                      I´ve the need for all the libs above because the project can be deployed in other application servers (like weblogic, tomcat(not an app but ok), etc...).

                      I´ve investigate and tested and i discover what is the problem.

                      The problem is i think i´m using JAXWS but no i´m using CXF from the JBoss, i´ve the module "webservices" loaded and the subsytem configured.

                      When i removed this configuration from my standalone.xml(or domain.xml) the warnings disapear and them i´m using REAL JAXWS and only JAXWS.

                       

                      Just one thing more, when using JAXWS (version 2.1.x) the WSDL_OPERATION key were removed from the api. You need to update to the JAXWS >2.2.x and everything works now.

                       

                      thanks again for the help.

                       

                       

                      cheers,

                       

                      Nuno