1 Reply Latest reply on Oct 19, 2007 6:00 AM by Jeff Yu

    Hang on in the isolated ClassLoader.

    Jeff Yu Master

      Hi,

      I've deployed an EAR that contains a EJB jar and RAR.

      The RAR is the CXF based RA, In the RA, I am establishing a web service to connect the EJB.

      I am setting the jboss-app.xml, "java2ParentDelegation=false", then it will get hang on when I start the web service. I set the Log to the Fine, and the log is shown below:

      My jboss-app.xml:

      <?xml version="1.0" encoding="UTF-8"?>
      <jboss-app>
       <loader-repository>
       apache.cxf:loader=cxf.ear
       <loader-repository-config>
       java2ParentDelegation=false
       </loader-repository-config>
       </loader-repository>
       <module>
       <service>cxf-ds.xml</service>
       </module>
      </jboss-app>
      
      


      application.xml

      
      <?xml version="1.0" encoding="UTF-8"?>
      <application>
       <display-name>cxf-jca</display-name>
       <module>
       <ejb>greeterejb.jar</ejb>
       </module>
       <module>
       <connector>cxf.rar</connector>
       </module>
      </application>
      
      


      cxf-ds.xml

      
      <?xml version="1.0" encoding="UTF-8"?>
      <connection-factories>
       <no-tx-connection-factory>
       <jndi-name>CXFConnector</jndi-name>
       <rar-name>cxf.ear#cxf.rar</rar-name>
       <connection-definition>org.apache.cxf.connector.CXFConnectionFactory</connection-definition>
       </no-tx-connection-factory>
      </connection-factories>
      
      



      Can someone shed some light on this error, I am stucked with it right now,
      since it doesn't throw any exceptions... got hang on here...

      And if I set the "java2ParentDelegation=true", it works fine, but I need to use the "java2ParentDelegation=false", since CXF is using some jars which are conflict with some jars that JBoss shipped.

      Any comments are greatly appreciated!

      -------------------------------------------
      FINE: Checking system property javax.xml.bind.JAXBContext
      Oct 19, 2007 5:13:24 PM javax.xml.bind.ContextFinder find
      FINE: not found
      Oct 19, 2007 5:13:24 PM javax.xml.bind.ContextFinder find
      FINE: Checking META-INF/services
      Oct 19, 2007 5:13:24 PM javax.xml.bind.ContextFinder find
      FINE: Reading jar:file:/C:/jboss-4.0.5.GA/server/default/tmp/deploy/tmp7396cxf.ear-contents/cxf.rar-
      contents/jaxb-impl-2.1.4.jar!/META-INF/services/javax.xml.bind.JAXBContext
      Oct 19, 2007 5:13:24 PM javax.xml.bind.ContextFinder newInstance
      FINE: Trying to load com.sun.xml.bind.v2.ContextFactory
      Oct 19, 2007 5:13:24 PM javax.xml.bind.ContextFinder newInstance
      FINE: loaded com.sun.xml.bind.v2.ContextFactory from jar:file:/C:/jboss-4.0.5.GA/server/default/tmp/
      deploy/tmp7396cxf.ear-contents/cxf.rar-contents/jaxb-impl-2.1.4.jar!/com/sun/xml/bind/v2/ContextFact
      ory.class
      Oct 19, 2007 5:13:24 PM com.sun.xml.bind.v2.ContextFactory createContext
      FINE: Property com.sun.xml.bind.XmlAccessorFactoryis not active. Using JAXB's implementation
      Oct 19, 2007 5:13:24 PM org.jboss.logging.JDK14LoggerPlugin debug
      FINE: setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@183ee9a, cl=org.j
      boss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@105e560{ url=null ,addedOrder=0}
      Oct 19, 2007 5:13:24 PM org.jboss.logging.JDK14LoggerPlugin debug
      FINE: setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@183ee9a, cl=org.j
      boss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@e07e6b{ url=null ,addedOrder=0}
      Oct 19, 2007 5:13:24 PM org.jboss.logging.JDK14LoggerPlugin debug
      FINE: setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@183ee9a, cl=org.j
      boss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@8bb9d1{ url=null ,addedOrder=0}
      Oct 19, 2007 5:13:24 PM org.jboss.logging.JDK14LoggerPlugin debug
      FINE: setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@183ee9a, cl=org.j
      boss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@1d232d1{ url=null ,addedOrder=0}
      Oct 19, 2007 5:13:24 PM org.jboss.logging.JDK14LoggerPlugin debug
      FINE: setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@183ee9a, cl=org.j
      boss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@1ffb2eb{ url=null ,addedOrder=0}



      Thanks
      Jeff