0 Replies Latest reply on Aug 31, 2011 11:43 AM by Tony Qian

    Class loading issue

    Tony Qian Newbie

      I have strange situation with class loading in Jboss 5.1. I have a restful service (use jboss resteasy) packaged in a war file. This service has a dependecy on jaxws-rt.jar which is packaged inside this war file. Also, we used jboss-classloading.xml to isolate class loading with following configuration:

       

      <classloading xmlns="urn:jboss:classloading:1.0"

          name="myService.war"

          domain="myServiceDomain"

          top-level-classloader="true"

          parent-first="false"

          import-all="true">

      </classloading>

       

      Sometimes, the service cannot find classes inside jaxws-rt after stop server (remove tmp and work dirs) and start server. The frustrating thing is I can not reproduce it easily. I have read many postings regarding class loading and tried a lot of suggestions. I'm still not able to fix the issue.

       

      Any suggestions are really appreciated.

       

      Tony