2 Replies Latest reply on May 31, 2005 5:17 PM by yudinanton

    jboss ignores Class-Path in .war files, deployment problems

    yudinanton Newbie

      Question1:

      example:
      lib.jar - utility classes
      ejb1.jar - EJB module (depends on lib.jar)
      META-INF/MANIFEST.MF:
      Class-Path: lib.jar
      web.war - WEB module (depends on lib.jar)
      META-INF/MANIFEST.MF:
      Class-Path: lib.jar
      app.ear - containts lib.jar, web.war and ejb1.jar

      with default configuration:
      false
      false

      Deploying fails on web.war, missing classes from lib.jar.
      Deploying success on ejb1.jar

      Why JBoss ingores Class-Path in .war archives?

      Question2:
      With default configuration (java2ClassLoadingCompliance=false, UseJBossWebLoader=false) if i include lib.jar in WEB-INF/lib of web.war
      deploying success. But running fails with class loading violation.
      How to archive this simple example with lib.jar (utility classes) in
      default JBoss configuration?

      thanks