Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Jars of different webapps causing problem

CHHAJED, Amit, GBM

2007-01-29


Hi there,

I have problem running two webapps deployed on my Tomcat 5.X, which
otherwise works fine, when deployed separately. Both the webapps have the
same jars related to visibroker (vbjorb and vbjsec). When I try running both
the webapp together in the same tomcat instance, my first app throws a
ClassCastException (from visibroker). But when I remove the visibroker jars
from the second app and then run the webapps, then my first app does not
throw the exception.

It seems like the visibroker jars loaded in my second app. is affecting the
classes which were loaded in the first app. From what I know, there would be
different classloaders for different web application. If that is correct,
why would I end up with this problem ? Am I missing something ?

Thanks a ton.
Amit Chhajed


***********************************************************************************
The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB.
Authorised and regulated by the Financial Services Authority

This e-mail message is confidential and for use by the
addressee only. If the message is received by anyone other
than the addressee, please return the message to the sender
by replying to it and then delete the message from your
computer. Internet e-mails are not necessarily secure. The
Royal Bank of Scotland plc does not accept responsibility for
changes made to this message after it was sent.

Whilst all reasonable care has been taken to avoid the
transmission of viruses, it is the responsibility of the recipient to
ensure that the onward transmission, opening or use of this
message and any attachments will not adversely affect its
systems or data. No responsibility is accepted by The
Royal Bank of Scotland plc in this regard and the recipient should carry
out such virus and other checks as it considers appropriate.
Visit our websites at:
www.rbs.com
www.rbsgc.com
www.rbsmarkets.com
***********************************************************************************
©2008 junlu.com - Jax Systems, LLC, U.S.A.