0 Replies Latest reply on Feb 7, 2015 3:47 PM by tomte-da

    jar  does not point to a valid jar for a Class-Path reference

    tomte-da Newbie

      Hi, I am trying  to deploy an application via an EAR file into standalone/deployments in wildfly-8.2.0.Final. There are;

       

      - MoCoEAR.ear - having no .class but only references to .jar within Eclipse Luna

      - - MoCoBusiness.jar    (business, *.class of 4 included common src-Eclipse-projects)

      - - MoCoEJB3.jar

      - - MoCoJSP.war

       

      Only the big MoCoBusiness.jar has been deployed successfully (separately).

       

      So I tried to deploy MoCoEJB3.jar  manually again but got:

      MoCoEJB3.jar  does not point to a valid jar for a Class-Path reference.   (see below).

      - What does thet meen?

      - Log.class is within MoCoBusiness.jar, so MoCoEJB3.jar should by default be able to access it?

       

      The error messages are:

      18:47:01,916 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015877:

      Stopped deployment MoCoEJB3.jar (runtime-name: MoCoEJB3.jar) in 10ms

      18:47:01,919 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876:

      Starting deployment of "MoCoEJB3.jar" (runtime-name: "MoCoEJB3.jar")

      18:47:01,936 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015960:

      Class Path entry MoCoEJB3Client.jar in /content/MoCoEJB3.jar  does not point to a valid jar for a Class-Path reference.    <<<<

      18:47:01,959 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001:

      Failed to start service jboss.deployment.unit."MoCoEJB3.jar".POST_MODULE:

      org.jboss.msc.service.StartException in service jboss.deployment.unit."MoCoEJB3.jar".POST_MODULE:

      JBAS018733: Failed to process phase POST_MODULE of deployment "MoCoEJB3.jar"

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

      Caused by: java.lang.RuntimeException: JBAS018757: Error getting reflective information for class com.moco.ejb.slsb.impl.BatchSlsb

      with ClassLoader ModuleClassLoader for Module "deployment.MoCoEJB3.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) [...]

      Caused by: java.lang.NoClassDefFoundError: com/cnc/common/Log

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

      Caused by: java.lang.ClassNotFoundException: com.cnc.common.Log from [Module "deployment.MoCoEJB3.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] [...]

       

      18:47:01,961 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 1) JBAS014613:

      Operation ("full-replace-deployment") failed - address: ([]) - failure description: {"JBAS014671:

      Failed services" => {"jboss.deployment.unit.\"MoCoEJB3.jar\".POST_MODULE" =>

      "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"MoCoEJB3.jar\".POST_MODULE: JBAS018733:

      Failed to process phase POST_MODULE of deployment \"MoCoEJB3.jar\"

          Caused by: java.lang.RuntimeException: JBAS018757:

      Error getting reflective information for class com.moco.ejb.slsb.impl.BatchSlsb

      with ClassLoader ModuleClassLoader for Module \"deployment.MoCoEJB3.jar:main\" from Service Module Loader [...]

      18:47:02,082 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS018565:

      Replaced deployment "MoCoEJB3.jar" with deployment "MoCoEJB3.jar"

      18:47:02,083 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 1) JBAS014774: Service status report

      JBAS014777:   Services which failed to start:      service jboss.deployment.unit."MoCoEJB3.jar".POST_MODULE

            service jboss.deployment.unit."MoCoEJB3.jar".POST_MODULE:

      org.jboss.msc.service.StartException in service jboss.deployment.unit."MoCoEJB3.jar".POST_MODULE: JBAS018733:

      Failed to process phase POST_MODULE of deployment "MoCoEJB3.jar"

      Thank you in advance

      tomte