Hello mtigua,

Friday, June 10, 2005, 1:12:38 AM, you wrote:

> Hi everyone !
> I have this problem with JBOSS 4:

> I have two context:

> deploy/
> /context1.war
> index.jsp
> META-INF
> WEB-INF
>  - classes/com/cees/edu/Class1.class

> /context2.war 
> index.jsp
> META-INF
> WEB-INF
>  - classes/com/cees/edu/Class1.class

> where index.jsp is same for two contexts, but Class1 is different. 
> index.jsp creates a new object Class1.

>  When browser loads /context1/index.jsp all is OK. But when it
> loads /context2/index.jsp , this page calls
> /context1/classes/com/cees/edu/Class1.class. 

> Is there some problem of configuration?

> Thanks , 
> Mario Tigua - Ecuador.


> View the original post :
> http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3881005#3881005

> Reply to the post :
> http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3881005


> -------------------------------------------------------
> This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
> a projector? How fast can you ride your desk chair down the office luge track?
> If you want to score the big prize, get to know the little guy.  
> Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
> _______________________________________________
> JBoss-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jboss-user

Hi
Read about class loading in jboss in general.
http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassLoadingConfiguration

For this particilar case add following lines into

deploy/context1.war/WEB-INF/jboss-web.xml
<jboss-web>
   <class-loading> 
      <loader-repository> 
      dot.com:loader=context1
      </loader-repository> 
   </class-loading>
</jboss-web>

deploy/context2.war/WEB-INF/jboss-web.xml
<jboss-web>
   <class-loading> 
      <loader-repository> 
      dot.com:loader=context2
      </loader-repository> 
   </class-loading>
</jboss-web>




-- 
Best regards,
 alex                            mailto:[EMAIL PROTECTED]




-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to