Vadim Gritsenko | 12 Mar 19:46

RE: Jetty and Cocoon2, help?

> From: Skansen [mailto:skansen <at> telia.com]
> 
> Thank you very much for all the help and assistens.
> 
> I got one last question regarding the extra-classpath
> 
> Why is it required to do the steps in presented in

In two words: classloading issues.
More detailed answer: AFAIU, some servlet engine (newer ones) prevent
webapp from loading some xml classes in the webapp's classloader but
forces to use classes loaded by the servlet engine; this causes
ClassCastException.

> >
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=101509865506696&w=2
> 
> which i interperted as follows.
> * copy xalan, xerces, xml-apis, batik to a directory
> * add jars in the above directory to the classpath for jetty
> 
> * remove xt from the cocoon servlet
> 
> * uncomment extra-classpath in web.xml and add the path to above jars

Java compiler has to know were the classes are on the hard drive.

> * do clean build
> * remove the above mentioned jars from the servlet

(Continue reading)


Gmane