6 Replies Latest reply on Sep 16, 2003 8:54 AM by raja05

    [Classloader related: JBoss 3.x] Accessing a class from a st

    ronaldoc

      I've written an app framework using Entity Bean for persistence. So I've package up the whole thing with an application.xml that looks like this:


      <display-name>myFramework</display-name>

      Module1.jar


      Module2.jar



      <!-- entry point to the framework is via this Controller servlet -->
      <web-uri>Controller.war</web-uri>
      <context-root>Foo</context-root>




      Off I go to develop a web app using Struts. I package this as StrutsClient.war. First I deploy myFramework.ear to JBoss. Then I deploy StrutsClient.war. Right now, I'm getting a ClassNotFoundException because several classes in StrutsClient.war extends from the an abstract class in the framework. I know this is a ClassLoader issue. What is the solution to my problem ?

      Thanks

      Ronaldo