1 Reply Latest reply on Feb 5, 2015 10:58 PM by jaikiran pai

    migration JBoss 4.2.2 to Wildfly

    Ferhat De?irmenci Newbie

      Hello,

       

      I want to migrate our application from JBoss 4.2.2. to Wildfly.

       

      I did a lot of changes. For example I created jboss-deployment-structure.xml file, and set some modules in it. I solved many errors with that.

       

      But last one is a little bit different. I got CLASSNOTFOUNDEXCEPTION, but class is in the ejb jar file.

       

      Somebody has an idea ?

       

       

       

      my jar structure is:

      api-ejb-1.4.7

           com

                xx

                     api

                          delegate

                               listing

                                    impl

                                         ProductListingOperationDelegate.class

           META-INF

                jboss-deployment-structure.xml

                MANIFEST.MF

                persistence.xml

      ---------------------------------------------------------------------------------------------------------------------------------------------

       

      2015-02-05 16:15:07,270 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.deployment.subunit."api-ear-1.4.7.ear"."api-ejb-1.4.7.jar".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."api-ear-1.4.7.ear"."api-ejb-1.4.7.jar".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of subdeployment "api-ejb-1.4.7.jar" of deployment "api-ear-1.4.7.ear"

        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.2.0.Final.jar:8.2.0.Final]

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_31]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_31]

        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_31]

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: java.lang.ClassNotFoundException: com.xx.api.delegate.listing.impl.ProductListingOperationDelegate from [Module "deployment.api-ear-1.4.7.ear.api-ear-1.4.7.api-ejb-1.4.7.jar:main" from Service Module Loader]

        at org.jboss.as.ejb3.deployment.processors.BusinessViewAnnotationProcessor.getEjbClass(BusinessViewAnnotationProcessor.java:231)

        at org.jboss.as.ejb3.deployment.processors.BusinessViewAnnotationProcessor.deploy(BusinessViewAnnotationProcessor.java:89)

        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [wildfly-server-8.2.0.Final.jar:8.2.0.Final]

        ... 5 more

      Caused by: java.lang.ClassNotFoundException: com.xx.api.delegate.listing.impl.ProductListingOperationDelegate from [Module "deployment.api-ear-1.4.7.ear.api-ear-1.4.7.api-ejb-1.4.7.jar:main" from Service Module Loader]

        at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) [jboss-modules.jar:1.3.3.Final]

        at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final]

        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final]

        at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final]

        at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final]

        at org.jboss.as.ejb3.deployment.processors.BusinessViewAnnotationProcessor.getEjbClass(BusinessViewAnnotationProcessor.java:229)

        ... 7 more