You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Stuart Roebuck <st...@adolos.co.uk> on 2001/02/19 12:21:23 UTC
[C2] Classloader not working with multiple Cocoon versions
Trying to get the latest version of Cocoon running I've come across a problem which may or may not be new news to folk, but was certainly causing me problems getting things running.
I was installing the new version of the cocoon webapp into an Tomcat setup which included two other contexts with older versions of Cocoon 2 in them.
When I tried to access http://localhost:8080/cocoon/ I was getting an error, and looking at the cocoon.log I was finding that the Classpath output by cocoon did not contain any of the library entries in webapp/cocoon/WEB-INF/lib/ - this sent me on a long wild goose chase.
I put in some additional debug traces and discovered that they weren't showing.
Then I tried removing all references in server.xml to my other two cocoon contexts and ran again.
It worked!
So, it appears that the classloader is using the cocoon classes from one of my older external webapps defined in server.xml rather than from the cocoon webapp in tomcat/webapp.
Any thoughts?
Stuart.
-------------------------------------------------------------------------
Stuart Roebuck stuart.roebuck@adolos.com
Lead Developer Java, XML, MacOS X, XP, etc.
ADOLOS http://www.adolos.com/
Re: [C2] Classloader not working with multiple Cocoon versions
Posted by Paul Russell <pa...@luminas.co.uk>.
* Stuart Roebuck (stuart.roebuck@adolos.co.uk) wrote :
> So, it appears that the classloader is using the cocoon classes from one of my older external webapps defined in server.xml rather than from the cocoon webapp in tomcat/webapp.
> Any thoughts?
Maybe. I'm still not entirely awake this morning (bad night), but try
using the new ParanoidCocoonServlet instead of CocoonServlet? I believe
this uses the new cunning classloader etc.
P.
--
Paul Russell Email: paul@luminas.co.uk
Technical Director Tel: +44 (0)20 8553 6622
Luminas Internet Applications Fax: +44 (0)870 28 47489
This is not an official statement or order. Web: www.luminas.co.uk