Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-9470

JBoss 5.1.0 - Third party Jar Deployment fail with : Unable to find class path entry ClassPathEntryImpl {path=MyApp/APP-INF/lib/batik-all-1.7.jar} from fop.jar

    XMLWordPrintable

Details

    • Compatibility/Configuration
    • Medium
    • Workaround Exists
    • Hide

      Once We delete Class-Path entry from respective jars which causes problem. This error is resolved.

      Also there is a java-cup-11a.jar file from which we need to remove Main-Class entry from MANIFEST.mf file to get rid of one of the similar error associated with this jar.

      Show
      Once We delete Class-Path entry from respective jars which causes problem. This error is resolved. Also there is a java-cup-11a.jar file from which we need to remove Main-Class entry from MANIFEST.mf file to get rid of one of the similar error associated with this jar.

    Description

      While Trying to Deploy My EJB2.0 Application on JBoss 5.1.0 GA I am getting following Exception on Application server Startup for some of the Jars in MyApp/APP-INF/lib/

      I have fop.jar and batik-all-1.7.jar present in my application's APP-INF/lib directory (But Exception complaining those file are not present in that location).

      As per my understanding it looks like some bug in JBoss 5.1.0 GA , for the way third party jars are being loaded to JBoss Container. Because After we have removed Class-Path Entry from respective Jar(fop.jar and batik-all-1.7.jar)'s MANIFEST.mf file. This Exception is not coming.

      Also there is a java-cup-11a.jar file from which JBoss AS was compplaining about Main-Class entry from MANIFEST.mf file, hence after removing Main-Class entry that exception was resolved.

      Please guide me to get rid of this error, without performing manual step to remove Class-Path entry from Each jar's MANIFEST.mf file.

      Please let me know if you need anymore information for clarification.

      DETAILS:
      ****************

      JBoss Version : jboss-5.1.0.GA

      JDK Version:
      --------------------------
      java version "1.6.0_02-ea"
      Java(TM) SE Runtime Environment (build 1.6.0_02-ea-b02)
      Java HotSpot(TM) Client VM (build 1.6.0_02-ea-b02, mixed mode, sharing)

      Exception Trace :
      --------------------
      2011-12-28 15:21:51,961 INFO [org.jboss.web.WebService] |Logger.java:296| Using RMI server codebase: http://172.19.102.61:8083/
      2011-12-28 15:22:06,696 INFO [org.jboss.wsf.stack.jbws.NativeServerConfig] |Logger.java:296| JBoss Web Services - Stack Native Core
      2011-12-28 15:22:06,696 INFO [org.jboss.wsf.stack.jbws.NativeServerConfig] |Logger.java:296| 3.1.2.GA
      2011-12-28 15:22:08,009 INFO [org.jboss.dependency.plugins.AttributeCallbackItem] |Logger.java:296| Owner callback not implemented.
      2011-12-28 15:22:10,009 INFO [org.jboss.logbridge.LogNotificationListener] |LogNotificationListener.java:71| Adding notification listener for logging mbean "jboss.system:service=Logging,type=Log4jService" to server org.jboss.mx.server.MBeanServerImpl@1135cd9[ defaultDomain='jboss' ]
      2011-12-28 15:22:16,743 ERROR [org.jboss.system.server.profileservice.repository.ProfileDeployAction] |Logger.java:419| Failed to add deployment: fop.jar
      org.jboss.deployers.spi.DeploymentException: Unable to find class path entry ClassPathEntryImpl

      {path=BancsApp/APP-INF/lib/batik-all-1.7.jar}

      from fop.jar
      at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
      at org.jboss.deployers.vfs.plugins.structure.VFSStructureBuilder.applyContextInfo(VFSStructureBuilder.java:188)
      at org.jboss.deployers.structure.spi.helpers.AbstractStructureBuilder.populateContext(AbstractStructureBuilder.java:82)
      at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:89)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.determineStructure(MainDeployerImpl.java:1004)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.determineDeploymentContext(MainDeployerImpl.java:440)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:390)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:300)
      at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.addDeployment(MainDeployerAdapter.java:86)
      at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:61)
      at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
      at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
      at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
      at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
      at org.jboss.Main.boot(Main.java:221)
      at org.jboss.Main$1.run(Main.java:556)
      at java.lang.Thread.run(Thread.java:619)
      Caused by: java.io.IOException: Child not found BancsApp/APP-INF/lib/batik-all-1.7.jar for DelegatingHandler@12804443[path=BancsApp/APP-INF/lib/fop.jar context=file:/D:/Mehul/JBoss/jboss-5.1.0.GA/server/default/deploy/ real=file:/D:/Mehul/JBoss/jboss-5.1.0.GA/server/default/deploy/BancsApp/APP-INF/lib/fop.jar], available children: [ZipEntryHandler@19703023[path=BancsApp/APP-INF/lib/fop.jar/META-INF context=file:/D:/Mehul/JBoss/jboss-5.1.0.GA/server/default/deploy/ real=file:/D:/Mehul/JBoss/jboss-5.1.0.GA/server/default/deploy/BancsApp/APP-INF/lib/fop.jar/META-INF], ZipEntryHandler@26185[path=BancsApp/APP-INF/lib/fop.jar/org context=file:/D:/Mehul/JBoss/jboss-5.1.0.GA/server/default/deploy/ real=file:/D:/Mehul/JBoss/jboss-5.1.0.GA/server/default/deploy/BancsApp/APP-INF/lib/fop.jar/org]]
      at org.jboss.virtual.VirtualFile.findChild(VirtualFile.java:461)
      at org.jboss.deployers.vfs.plugins.structure.VFSStructureBuilder.applyContextInfo(VFSStructureBuilder.java:184)
      ... 23 more
      2011-12-28 15:22:17,900 ERROR [org.jboss.system.server.profileservice.repository.ProfileDeployAction] |Logger.java:419| Failed to add deployment: xalan.jar
      org.jboss.deployers.spi.DeploymentException: Unable to find class path entry ClassPathEntryImpl

      {path=BancsApp/APP-INF/lib/serializer.jar}

      from xalan.jar
      at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
      at org.jboss.deployers.vfs.plugins.structure.VFSStructureBuilder.applyContextInfo(VFSStructureBuilder.java:188)
      at org.jboss.deployers.structure.spi.helpers.AbstractStructureBuilder.populateContext(AbstractStructureBuilder.java:82)
      at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:89)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.determineStructure(MainDeployerImpl.java:1004)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.determineDeploymentContext(MainDeployerImpl.java:440)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:390)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:300)
      at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.addDeployment(MainDeployerAdapter.java:86)
      at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:61)
      at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
      at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
      at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
      at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
      at org.jboss.Main.boot(Main.java:221)
      at org.jboss.Main$1.run(Main.java:556)
      at java.lang.Thread.run(Thread.java:619)
      Caused by: java.io.IOException: Child not found BancsApp/APP-INF/lib/serializer.jar for DelegatingHandler@13335932[path=BancsApp/APP-INF/lib/xalan.jar context=file:/D:/Mehul/JBoss/jboss-5.1.0.GA/server/default/deploy/ real=file:/D:/Mehul/JBoss/jboss-5.1.0.GA/server/default/deploy/BancsApp/

      Regards,
      Mehul Kapadia

      Attachments

        Activity

          People

            ajustin@redhat.com Ales Justin
            mehul.kapadia Mehul Kapadia (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: