Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-4258

Modules not getting loaded from classpath in websphere 6.1

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.1
    • Fix Version/s: 1.5
    • Component/s: deployment
    • Labels:
      None
    • Environment:
      JDK 5 , WebSphere application server 6.1

      Description

      I tried to deploy the axis2 ver 1.4.1 in websphere 6.1 with jdk 1.5 and wanted to load the modules from the classpath., which did not work. In websphere a jar URL will be starting with "wsjar" instead of "jar" for eg. the addressing module xml file came up like wsjar:file:/opt/IBM/WebSphere/xyz/xyz.ear/addressing-1.4.1.jar!/META-NNF/module.xml.

      To overcome this issue in the class org.apache.axis2.deployment.RepositoryListener, method name "loadClassPathModules()", i changed its implementation to also look for "wsjar" instead of just "jar" and "file". Also since the "wsjar" is not actually an instance of "java.net.JarURLConnection", we can't use directly this way of getting the URL of the jar
      ((java.net.JarURLConnection)url.openConnection()).getJarFileURL();

      One more "else if" clause was added for "wsjar" and its file name was fetched directly by doing

      else if (fileName.startsWith("wsjar")) {
      fileName =fileName.substring("wsjar:".length());
      fileName =fileName.substring(0, fileName.lastIndexOf("!/META-INF/module.xml"));
      }

      Thanks
      Vijay

        Attachments

          Activity

            People

            • Assignee:
              veithen Andreas Veithen
              Reporter:
              vijpan Vijay Pandey
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: