Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-2549

Wrong classpath for dynamic client compilation in Weblogic

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.2.5
    • 2.1.9, 2.2.6
    • JAXB Databinding
    • None
    • Weblogic 9.2, JDK 1.5

    Description

      Running in Weblogic 9.2 DynamicClientFactory.setupClasspath returns only the jars of the domain home and not the jars from the lib dir in the ear. Therefore the compilation fails:

      C:/Users/DeKiesel/AppData/Local/Temp/org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory@1999620-1258564353941-src/de/testtest/testwebservice/GetRegistrationNumber.java:4: package javax.xml.bind.annotation does not exist
      import javax.xml.bind.annotation.XmlAccessType;
      ^
      [...]
      Note: C:/Users/DeKiesel/AppData/Local/Temp/org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory@1999620-1258564353941-src/de/testtest/testwebservice/ObjectFactory.java uses or overrides a deprecated API.
      Note: Recompile with -Xlint:deprecation for details.
      65 errors
      1118 18:12:35 ERROR org.apache.cxf.endpoint.dynamic.DynamicClientFactory Could not compile java files for https://testtest.de/spartner/Service1.asmx?WSDL.

      It seems the relevant classloader is skipped because it's not an instance of URLClassLoader (weblogic.utils.classloaders.ChangeAwareClassLoader extends weblogic.utils.classloaders.GenericClassLoader extends java.security.SecureClassLoader).

      Any ideas?

      Attachments

        1. cxf-2549.patch
          1 kB
          Dennis Kieselhorst

        Activity

          People

            dkulp Daniel Kulp
            deki Dennis Kieselhorst
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: