5 Replies Latest reply on Jul 30, 2015 3:36 AM by Tomas Remes

    java.lang.ClassNotFoundException: org.jboss.seam.pdf.DocumentStoreServlet while migrating from Jboss 5.1 to WildFly 8.2

    Sreenath Reddy Novice

      I am working on migrating Jboss 5.1 to WildFly 8.2, While running the application I am getting the below Exeption

       

      22:58:45,363 INFO  [org.jboss.modules] (main) JBoss Modules version 1.3.3.Final

      22:58:46,509 INFO  [org.jboss.msc] (main) JBoss MSC version 1.2.2.Final

      22:58:46,971 INFO  [org.jboss.as] (MSC service thread 1-2) JBAS015899: WildFly 8.2.0.Final "Tweek" starting

      22:59:02,299 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found project-ear.ear in deployment directory. To trigger deployment create a file called project-ear.ear.dodeploy

      22:59:02,348 INFO  [org.jboss.as.server] (Controller Boot Thread) JBAS015888: Creating http management service using socket-binding (management-http)

      22:59:02,392 INFO  [org.xnio] (MSC service thread 1-2) XNIO version 3.3.0.Final

      22:59:02,419 INFO  [org.xnio.nio] (MSC service thread 1-2) XNIO NIO Implementation Version 3.3.0.Final

      22:59:02,501 INFO  [org.jboss.remoting] (MSC service thread 1-2) JBoss Remoting version 4.0.6.Final

      22:59:02,577 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 39) JBAS011800: Activating Naming Subsystem

      22:59:02,602 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.

      22:59:03,151 INFO  [org.wildfly.extension.io] (ServerService Thread Pool -- 30) WFLYIO001: Worker 'default' has auto-configured to 4 core threads with 32 task threads based on your 2 available processors

      22:59:03,172 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 47) JBAS015537: Activating WebServices Extension

      22:59:03,147 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013171: Activating Security Subsystem

      22:59:03,166 WARN  [org.jboss.as.txn] (ServerService Thread Pool -- 45) JBAS010153: Node identifier property is set to the default value. Please make sure it is unique.

      22:59:03,264 INFO  [org.jboss.as.security] (MSC service thread 1-4) JBAS013170: Current PicketBox version=4.0.21.Final

      22:59:03,237 INFO  [org.jboss.as.jsf] (ServerService Thread Pool -- 37) JBAS012615: Activated the following JSF Implementations: [main]

      22:59:04,191 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 46) JBAS017502: Undertow 1.1.0.Final starting

      22:59:03,944 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 26) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)

      22:59:04,193 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-2) JBAS017502: Undertow 1.1.0.Final starting

      22:59:04,392 INFO  [org.jboss.as.naming] (MSC service thread 1-1) JBAS011802: Starting Naming Service

      22:59:04,411 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-1) JBAS015400: Bound mail session [java:jboss/mail/Default]

      22:59:05,102 INFO  [org.jboss.as.connector.logging] (MSC service thread 1-1) JBAS010408: Starting JCA Subsystem (IronJacamar 1.1.9.Final)

      22:59:05,116 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-1) JBAS010417: Started Driver service with driver-name = h2

      22:59:05,389 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 46) JBAS017527: Creating file handler for path D:\Migration_Workspace\Jboss\Jboss-8\wildfly-8.2.0.Final/welcome-content

      22:59:06,669 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-2) JBAS017525: Started server default-server.

      22:59:07,124 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-2) JBAS017531: Host default-host starting

      22:59:07,297 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "project-ear.ear" (runtime-name: "project-ear.ear")

      22:59:07,333 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-1) JBAS015012: Started FileSystemDeploymentService for directory D:\Migration_Workspace\Jboss\Jboss-8\wildfly-8.2.0.Final\standalone\deployments

      22:59:07,371 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-4) JBAS017519: Undertow HTTP listener default listening on localhost/127.0.0.1:8280

      22:59:07,426 WARN  [org.jboss.metadata.parser.jboss.JBossAppMetaDataParser] (MSC service thread 1-1) loader-repository element in jboss-app.xml is deprecated and has been ignored

      22:59:08,948 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-3) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]

      22:59:10,604 INFO  [org.jboss.ws.common.management] (MSC service thread 1-4) JBWS022052: Starting JBoss Web Services - Stack CXF Server 4.3.2.Final

      22:59:25,519 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015960: Class Path entry iText-toolbox.jar in /D:/Migration_Workspace/Jboss/Jboss-8/wildfly-8.2.0.Final/standalone/deployments/project-ear.ear/lib/itext.jar  does not point to a valid jar for a Class-Path reference.

      22:59:25,521 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015960: Class Path entry iText-toolbox-2.1.2.jar in /D:/Migration_Workspace/Jboss/Jboss-8/wildfly-8.2.0.Final/standalone/deployments/project-ear.ear/lib/itext.jar  does not point to a valid jar for a Class-Path reference.

      22:59:25,521 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015960: Class Path entry bcmail-jdk14-138.jar in /D:/Migration_Workspace/Jboss/Jboss-8/wildfly-8.2.0.Final/standalone/deployments/project-ear.ear/lib/itext.jar  does not point to a valid jar for a Class-Path reference.

      22:59:25,521 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015960: Class Path entry bcprov-jdk14-138.jar in /D:/Migration_Workspace/Jboss/Jboss-8/wildfly-8.2.0.Final/standalone/deployments/project-ear.ear/lib/itext.jar  does not point to a valid jar for a Class-Path reference.

      22:59:25,577 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015973: Starting subdeployment (runtime-name: "jboss-seam.jar")

      22:59:25,577 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015973: Starting subdeployment (runtime-name: "project.war")

      22:59:25,578 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015973: Starting subdeployment (runtime-name: "project-ejb.jar")

      22:59:25,578 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015973: Starting subdeployment (runtime-name: "project-gen.jar")

      22:59:27,460 INFO  [org.jboss.as.jpa] (MSC service thread 1-3) JBAS011401: Read persistence.xml for project

      22:59:30,234 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-1) JBAS018567: Deployment "deployment.project-ear.ear.jboss-seam-pdf.jar" is using a private module ("com.sun.jsf-impl:main") which may be changed or removed in future versions without notice.

      22:59:30,238 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-1) JBAS018567: Deployment "deployment.project-ear.ear.jboss-seam-pdf.jar" is using a private module ("com.sun.jsf-impl:main") which may be changed or removed in future versions without notice.

      22:59:30,239 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-1) JBAS018567: Deployment "deployment.project-ear.ear.jboss-seam-pdf.jar" is using a private module ("org.javassist:main") which may be changed or removed in future versions without notice.

      22:59:30,239 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-1) JBAS018567: Deployment "deployment.project-ear.ear.jboss-seam-pdf.jar" is using a private module ("org.javassist:main") which may be changed or removed in future versions without notice.

      22:59:30,240 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-1) JBAS018567: Deployment "deployment.project-ear.ear.jboss-seam-pdf.jar" is using a private module ("org.apache.commons.collections:main") which may be changed or removed in future versions without notice.

      22:59:30,240 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-1) JBAS018567: Deployment "deployment.project-ear.ear.jboss-seam-pdf.jar" is using a private module ("org.apache.commons.collections:main") which may be changed or removed in future versions without notice.

      22:59:30,366 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-3) JBAS018567: Deployment "deployment.project-ear.ear.project.war" is using a private module ("com.sun.jsf-impl:main") which may be changed or removed in future versions without notice.

      22:59:30,371 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-3) JBAS018567: Deployment "deployment.project-ear.ear.project.war" is using a private module ("com.sun.jsf-impl:main") which may be changed or removed in future versions without notice.

      22:59:30,728 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-2) JBAS018567: Deployment "deployment.project-ear.ear" is using a private module ("com.sun.jsf-impl:main") which may be changed or removed in future versions without notice.

      22:59:30,733 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-2) JBAS018567: Deployment "deployment.project-ear.ear" is using a private module ("com.sun.jsf-impl:main") which may be changed or removed in future versions without notice.

      22:59:30,733 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-2) JBAS018567: Deployment "deployment.project-ear.ear" is using a private module ("org.javassist:main") which may be changed or removed in future versions without notice.

      22:59:30,733 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-2) JBAS018567: Deployment "deployment.project-ear.ear" is using a private module ("org.javassist:main") which may be changed or removed in future versions without notice.

      22:59:30,734 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-2) JBAS018567: Deployment "deployment.project-ear.ear" is using a private module ("org.apache.commons.collections:main") which may be changed or removed in future versions without notice.

      22:59:30,735 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-2) JBAS018567: Deployment "deployment.project-ear.ear" is using a private module ("org.apache.commons.collections:main") which may be changed or removed in future versions without notice.

      22:59:31,051 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-3) JNDI bindings for session bean named EjbSynchronizations in deployment unit subdeployment "jboss-seam.jar" of deployment "project-ear.ear" are as follows:

       

       

        java:global/project-ear/jboss-seam/EjbSynchronizations!org.jboss.seam.transaction.LocalEjbSynchronizations

        java:app/jboss-seam/EjbSynchronizations!org.jboss.seam.transaction.LocalEjbSynchronizations

        java:module/EjbSynchronizations!org.jboss.seam.transaction.LocalEjbSynchronizations

        java:global/project-ear/jboss-seam/EjbSynchronizations

        java:app/jboss-seam/EjbSynchronizations

        java:module/EjbSynchronizations

       

       

      22:59:31,061 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-3) JNDI bindings for session bean named TimerServiceDispatcher in deployment unit subdeployment "jboss-seam.jar" of deployment "project-ear.ear" are as follows:

       

       

        java:global/project-ear/jboss-seam/TimerServiceDispatcher!org.jboss.seam.async.LocalTimerServiceDispatcher

        java:app/jboss-seam/TimerServiceDispatcher!org.jboss.seam.async.LocalTimerServiceDispatcher

        java:module/TimerServiceDispatcher!org.jboss.seam.async.LocalTimerServiceDispatcher

        java:global/project-ear/jboss-seam/TimerServiceDispatcher

        java:app/jboss-seam/TimerServiceDispatcher

        java:module/TimerServiceDispatcher

       

       

      22:59:32,373 INFO  [org.hibernate.validator.internal.util.Version] (MSC service thread 1-2) HV000001: Hibernate Validator 5.1.3.Final

      22:59:32,519 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.deployment.subunit."project-ear.ear"."project.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."project-ear.ear"."project.war".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of subdeployment "project.war" of deployment "project-ear.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_11]

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

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

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: java.lang.ClassNotFoundException: org.jboss.seam.pdf.DocumentStoreServlet from [Module "deployment.project-ear.ear.project.war:main" from Service Module Loader]

        at org.jboss.as.jaxrs.deployment.JaxrsScanningProcessor.checkDeclaredApplicationClassAsServlet(JaxrsScanningProcessor.java:292)

        at org.jboss.as.jaxrs.deployment.JaxrsScanningProcessor.scanWebDeployment(JaxrsScanningProcessor.java:154)

        at org.jboss.as.jaxrs.deployment.JaxrsScanningProcessor.deploy(JaxrsScanningProcessor.java:105)

        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: org.jboss.seam.pdf.DocumentStoreServlet from [Module "deployment.project-ear.ear.project.war: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.jaxrs.deployment.JaxrsScanningProcessor.checkDeclaredApplicationClassAsServlet(JaxrsScanningProcessor.java:290)

        ... 8 more

       

       

      22:59:32,575 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014613: Operation ("add") failed - address: ([

          ("subsystem" => "datasources"),

          ("data-source" => "ESDS")

      ]) - failure description: {"JBAS014771: Services with missing/unavailable dependencies" => [

          "jboss.driver-demander.java:/projectDatasource is missing [jboss.jdbc-driver.ojdbc6_jar]",

          "jboss.data-source.java:/projectDatasource is missing [jboss.jdbc-driver.ojdbc6_jar]"

      ]}

      22:59:32,586 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "project-ear.ear")]) - failure description: {

          "JBAS014671: Failed services" => {"jboss.deployment.subunit.\"project-ear.ear\".\"project.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"project-ear.ear\".\"project.war\".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of subdeployment \"project.war\" of deployment \"project-ear.ear\"

          Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: java.lang.ClassNotFoundException: org.jboss.seam.pdf.DocumentStoreServlet from [Module \"deployment.project-ear.ear.project.war:main\" from Service Module Loader]

          Caused by: java.lang.ClassNotFoundException: org.jboss.seam.pdf.DocumentStoreServlet from [Module \"deployment.project-ear.ear.project.war:main\" from Service Module Loader]"},

          "JBAS014771: Services with missing/unavailable dependencies" => [

              "jboss.naming.context.java.comp.project-ear.jboss-seam.EjbSynchronizations.ValidatorFactory is missing [jboss.naming.context.java.comp.project-ear.jboss-seam.EjbSynchronizations]",

              "jboss.naming.context.java.comp.project-ear.jboss-seam.EjbSynchronizations.InstanceName is missing [jboss.naming.context.java.comp.project-ear.jboss-seam.EjbSynchronizations]",

              "jboss.naming.context.java.comp.project-ear.jboss-seam.TimerServiceDispatcher.InstanceName is missing [jboss.naming.context.java.comp.project-ear.jboss-seam.TimerServiceDispatcher]",

              "jboss.naming.context.java.comp.project-ear.jboss-seam.EjbSynchronizations.Validator is missing [jboss.naming.context.java.comp.project-ear.jboss-seam.EjbSynchronizations]",

              "jboss.naming.context.java.comp.project-ear.jboss-seam.TimerServiceDispatcher.Validator is missing [jboss.naming.context.java.comp.project-ear.jboss-seam.TimerServiceDispatcher]",

              "jboss.naming.context.java.comp.project-ear.jboss-seam.TimerServiceDispatcher.InAppClientContainer is missing [jboss.naming.context.java.comp.project-ear.jboss-seam.TimerServiceDispatcher]",

              "jboss.naming.context.java.comp.project-ear.jboss-seam.TimerServiceDispatcher.ValidatorFactory is missing [jboss.naming.context.java.comp.project-ear.jboss-seam.TimerServiceDispatcher]",

              "jboss.naming.context.java.comp.project-ear.jboss-seam.EjbSynchronizations.InAppClientContainer is missing [jboss.naming.context.java.comp.project-ear.jboss-seam.EjbSynchronizations]"

          ],

          "JBAS014879: One or more services were unable to start due to one or more indirect dependencies not being available." => {

              "Services that were unable to start:" => [

                  "jboss.deployment.subunit.\"project-ear.ear\".\"project-ejb.jar\".POST_MODULE",

                  "jboss.deployment.subunit.\"project-ear.ear\".\"project-gen.jar\".INSTALL",

                  "jboss.deployment.subunit.\"project-ear.ear\".\"jboss-seam.jar\".INSTALL",

                  "jboss.deployment.unit.\"project-ear.ear\".INSTALL",

                  "jboss.persistenceunit.\"project-ear.ear/project-ejb.jar#project\".__FIRST_PHASE__"

              ],

              "Services that may be the cause:" => [

                  "jboss.jdbc-driver.ojdbc6_jar",

                  "jboss.naming.context.java.comp.project-ear.jboss-seam.EjbSynchronizations",

                  "jboss.naming.context.java.comp.project-ear.jboss-seam.TimerServiceDispatcher"

              ]

          }

      }

      22:59:32,590 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014613: Operation ("add") failed - address: ([

          ("subsystem" => "datasources"),

          ("data-source" => "ESDS")

      ]) - failure description: {

          "JBAS014771: Services with missing/unavailable dependencies" => [

              "jboss.driver-demander.java:/projectDatasource is missing [jboss.jdbc-driver.ojdbc6_jar]",

              "jboss.data-source.java:/projectDatasource is missing [jboss.jdbc-driver.ojdbc6_jar]"

          ],

          "JBAS014879: One or more services were unable to start due to one or more indirect dependencies not being available." => {

              "Services that were unable to start:" => [

                  "jboss.data-source.reference-factory.ESDS",

                  "jboss.naming.context.java.projectDatasource"

              ],

              "Services that may be the cause:" => [

                  "jboss.jdbc-driver.ojdbc6_jar",

                  "jboss.naming.context.java.comp.project-ear.jboss-seam.EjbSynchronizations",

                  "jboss.naming.context.java.comp.project-ear.jboss-seam.TimerServiceDispatcher"

              ]

          }

      }

      22:59:32,701 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 27) JBAS018559: Deployed "project-ear.ear" (runtime-name : "project-ear.ear")

      22:59:32,787 INFO  [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report

      JBAS014775:    New missing/unsatisfied dependencies:

            service jboss.jdbc-driver.ojdbc6_jar (missing) dependents: [service jboss.driver-demander.java:/projectDatasource, service jboss.data-source.java:/projectDatasource]

            service jboss.naming.context.java.comp.project-ear.jboss-seam.EjbSynchronizations (missing) dependents: [service jboss.naming.context.java.comp.project-ear.jboss-seam.EjbSynchronizations.InstanceName, service jboss.naming.context.java.comp.project-ear.jboss-seam.EjbSynchronizations.ValidatorFactory, service jboss.naming.context.java.comp.project-ear.jboss-seam.EjbSynchronizations.InAppClientContainer, service jboss.naming.context.java.comp.project-ear.jboss-seam.EjbSynchronizations.Validator]

            service jboss.naming.context.java.comp.project-ear.jboss-seam.TimerServiceDispatcher (missing) dependents: [service jboss.naming.context.java.comp.project-ear.jboss-seam.TimerServiceDispatcher.Validator, service jboss.naming.context.java.comp.project-ear.jboss-seam.TimerServiceDispatcher.InstanceName, service jboss.naming.context.java.comp.project-ear.jboss-seam.TimerServiceDispatcher.InAppClientContainer, service jboss.naming.context.java.comp.project-ear.jboss-seam.TimerServiceDispatcher.ValidatorFactory]

      JBAS014777:   Services which failed to start:      service jboss.deployment.subunit."project-ear.ear"."project.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."project-ear.ear"."project.war".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of subdeployment "project.war" of deployment "project-ear.ear"

       

       

      22:59:33,017 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:10190/management

      22:59:33,017 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:10190

      22:59:33,018 ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: WildFly 8.2.0.Final "Tweek" started (with errors) in 49512ms - Started 276 of 343 services (18 services failed or missing dependencies, 93 services are lazy, passive or on-demand)

      22:59:33,973 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015974: Stopped subdeployment (runtime-name: project-gen.jar) in 358ms

      22:59:33,973 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015974: Stopped subdeployment (runtime-name: jboss-seam.jar) in 359ms

      22:59:33,974 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015974: Stopped subdeployment (runtime-name: project.war) in 359ms

      22:59:33,974 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015974: Stopped subdeployment (runtime-name: project-ejb.jar) in 359ms

      22:59:34,734 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877: Stopped deployment project-ear.ear (runtime-name: project-ear.ear) in 1126ms

      22:59:35,364 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018558: Undeployed "project-ear.ear" (runtime-name: "project-ear.ear")

      22:59:35,366 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report

      JBAS014775:    New missing/unsatisfied dependencies:

            service jboss.naming.context.java.module.project-ear.project-gen (missing) dependents: [service jboss.deployment.subunit."project-ear.ear"."project-gen.jar".INSTALL]

            service jboss.naming.context.java.module.project-ear.jboss-seam (missing) dependents: [service jboss.deployment.subunit."project-ear.ear"."jboss-seam.jar".INSTALL]

            service jboss.persistenceunit."project-ear.ear/project-ejb.jar#project".__FIRST_PHASE__ (missing) dependents: [service jboss.deployment.subunit."project-ear.ear"."project-ejb.jar".POST_MODULE]

      JBAS014777:   Services which failed to start:      service jboss.deployment.subunit."project-ear.ear"."project.war".POST_MODULE

       

       

      22:59:37,976 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) JBAS015003: Found project-ear.ear in deployment directory. To trigger deployment create a file called project-ear.ear.dodeploy

       

      The below is my jboss-eployment-structure.xml

       

      <?xml version="1.0" encoding="UTF-8"?>

      <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2">

        <deployment>

        <exclusions>

            <module name="org.hibernate" slot="main"/>

          </exclusions>

        <dependencies>

                <module name="org.dom4j" export="true"/>

                <module name="javax.faces.api" export="true"/>

                <module name="com.sun.jsf-impl" export="true"/>

                <module name="org.javassist" export="true"/>

                <module name="org.hibernate" export="true"/>

                <module name="org.hibernate.envers" export="true"/>

                <module name="org.apache.commons.logging" export="true"/>

                <module name="org.apache.commons.collections" export="true"/>

        </dependencies>

        </deployment>

        <sub-deployment name="project.war"> 

            <exclusions>

                <module name="javax.faces.api"/>

                <module name="com.sun.jsf-impl"/>

                <module name="org.hibernate"/>

              </exclusions>

              <dependencies>

                <module name="javax.faces.api"/>

                <module name="com.sun.jsf-impl"/>

              </dependencies>

        </sub-deployment> 

        <sub-deployment name="project-ejb.jar">

          <exclusions>

            <module name="org.hibernate"/>

          </exclusions>

        </sub-deployment>

      </jboss-deployment-structure>

        • 1. Re: java.lang.ClassNotFoundException: org.jboss.seam.pdf.DocumentStoreServlet while migrating from Jboss 5.1 to WildFly 8.2
          James Livingston Apprentice

          Starting subdeployment (runtime-name: "jboss-seam.jar")

          This means JBoss is treating jboss-seam.jar as a subdeployment (presumably an EJB-jar), rather than a library jar, do you have it added as a module in your application.xml?

           

          Caused by: java.lang.ClassNotFoundException: org.jboss.seam.pdf.DocumentStoreServlet from [Module "deployment.project-ear.ear.project.war:main" from Service Module Loader]

          Similarly, is your seam-pdf jar a subdeployment or a library jar? That looks like project.war can't see it. EAP 5 made EAR contents available everywhere by default, and WF does not.

           

           

          jboss.jdbc-driver.ojdbc6_jar

          You have a datasource that refers to this driver, is it installed?

          • 2. Re: java.lang.ClassNotFoundException: org.jboss.seam.pdf.DocumentStoreServlet while migrating from Jboss 5.1 to WildFly 8.2
            Sreenath Reddy Novice

            I Hi James,

             

            Yes, I have added jboss-seam.jar as a module in application.xml and seam-pdf jar is not a sub deployment, added as a library jar in ear/lib.

            I have installed datasource, it is configured correctly. I have tried adding the jboss-pdf jar in META-INF, still the problem was not resolved.

            • 3. Re: java.lang.ClassNotFoundException: org.jboss.seam.pdf.DocumentStoreServlet while migrating from Jboss 5.1 to WildFly 8.2
              James Livingston Apprentice

              You've installed the datasource, but is the JDBC driver set up correctly? Do you have a ojdbc6.jar in your deployment directory, and does the log indicate that it has been deployed?

               

              Adding a jar to META-INF will not do anything. If jboss-seam-pdf.jar is in the EAR's lib directory (and you haven't changed the library-directory), the WAR should be able to see it's classes. If org.jboss.seam.pdf.DocumentStoreServlet definitely in the jar?

              • 4. Re: java.lang.ClassNotFoundException: org.jboss.seam.pdf.DocumentStoreServlet while migrating from Jboss 5.1 to WildFly 8.2
                Sreenath Reddy Novice

                Hi James,

                 

                I have deployed ojdbc6.jar and log shows it is deployed, but the Exception was not resolved. After adding ojdbc6.jar I got one more exception in addition to the above ClassNotFoundException

                 

                12:02:35,506 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.deployment.subunit."project-ear.ear"."project-ejb.jar".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."project-ear.ear"."project-ejb.jar".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of subdeployment "project-ejb.jar" of deployment "project-ear.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_11]

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

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

                Caused by: java.lang.RuntimeException: JBAS018757: Error getting reflective information for class com.harasoftware.project.session.impl.OrgImportSchedulerTransactionHandlerBean with ClassLoader ModuleClassLoader for Module "deployment.project-ear.ear.project-ejb.jar:main" from Service Module Loader

                  at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:72) [wildfly-server-8.2.0.Final.jar:8.2.0.Final]

                  at org.jboss.as.ee.metadata.MethodAnnotationAggregator.runtimeAnnotationInformation(MethodAnnotationAggregator.java:58)

                  at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.handleAnnotations(InterceptorAnnotationProcessor.java:107)

                  at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:92)

                  at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:77)

                  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.NoClassDefFoundError: org/hibernate/validator/InvalidStateException

                  at java.lang.Class.getDeclaredFields0(Native Method) [rt.jar:1.8.0_11]

                  at java.lang.Class.privateGetDeclaredFields(Class.java:2570) [rt.jar:1.8.0_11]

                  at java.lang.Class.getDeclaredFields(Class.java:1903) [rt.jar:1.8.0_11]

                  at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:57) [wildfly-server-8.2.0.Final.jar:8.2.0.Final]

                  at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:68) [wildfly-server-8.2.0.Final.jar:8.2.0.Final]

                  ... 10 more

                Caused by: java.lang.ClassNotFoundException: org.hibernate.validator.InvalidStateException from [Module "deployment.project-ear.ear.project-ejb.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]

                  ... 15 more

                 

                I am suspecting that there is some error in the jboss-deployment-structure xml which is added in the initial comments.

                • 5. Re: java.lang.ClassNotFoundException: org.jboss.seam.pdf.DocumentStoreServlet while migrating from Jboss 5.1 to WildFly 8.2
                  Tomas Remes Expert

                  I guess you need to bundle older hibernate within your EAR deployment. There is really no org.hibernate.validator.InvalidStateException in Hibernate Validator 5.1.3.Final. I didn't read entire thread but I think you should follow Marek's suggestions from Invoking JBPM business process from Seam pageflow