If you implement a VM Profiler such as 
http://visualvm.java.net/eclipse-launcher.html#installation

and send the profiler output to app1.output 
then stop app1 and stop tomcat
restart tomcat then reference app2 and send the profiler output to app2.output

then diff the 2..

can you confirm from the output that app1 is pulling classes from 
app2/WEB-INF/classes
can you confirm from the output that app2 is pulling classes from 
app1/WEB-INF/classes
?
Martin Gainty 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.


> Subject: RE: ClassCastException org.apache.jasper.runtime.ELContextImpl 
> cannot be cast to org.apache.jasper.el.ELContextImpl
> Date: Wed, 22 Aug 2012 10:35:10 +1200
> From: dale_ogil...@trimble.com
> To: users@tomcat.apache.org
> 
> >-----Original Message-----
> >From: Pid * [mailto:p...@pidster.com] 
> >
> >Where is that dependency JSP jar from?
> >It should not be in WEB-INF/lib if it's providing JSP functionality.
> >
> >
> >p
> 
> The manifest for the jar says "JSP 2.1 Jasper implementation from Glassfish", 
> and yeah it was bad practice for maven to include that in our app2 for us.
> 
> Regardless of where the jar is coming from, it still seems bad to me that 
> Tomcat will respond to my request of app1 by loading a class from 
> app2/WEB-INF/lib/jsp-2.1-6.1.14.jar.
> 
> I think Mark Thomas was saying that Tomcat was preventing loading of classes 
> outside of Tomcat and app1, the vm classloading output seems to suggest 
> otherwise.
> 
> Dale
> B�KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKCB��[��X��ܚX�KK[XZ[�\�\��][��X��ܚX�P�X�]�\X�K�ܙ�B��܈Y][ۘ[��[X[��K[XZ[�\�\��Z[�X�]�\X�K�ܙ�B�
                                          

Reply via email to