You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Torsten Curdt <tc...@dff.st> on 2001/09/04 18:01:13 UTC

C2: javax.servlet... in XSP

I need to import some classes from the javax.servlet.http
package in my XSP pages. With Tomcat 4b3 the javax package
is unfortunately not known to the Cocoon classloader.

Copying the servlet.jar into WEB-INF/lib prevents
Cocoon to start. (Tomcat does not does not like this)

Shouldn't javax be available in all ServletEngines
automagically or is this more a Cocoon classloader problem?

Maybe I can provide an extra classpath only to the Cocoon
classloader??
--
Torsten

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


RE: C2: javax.servlet... in XSP

Posted by Torsten Curdt <tc...@dff.st>.
> Just a guess : could you try adding servlet.jar in a directory that's 
> not in the standard servlet classpath (e.g. WEB-INF/morelibs) and add it 
> in the "extra-classpath" servlet parameter (e.g. 
> WEB-INF/morelibs/servlet.jar) ?

This did it.
Thanks
--
Torsten

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: C2: javax.servlet... in XSP

Posted by Sylvain Wallez <sy...@anyware-tech.com>.
Torsten Curdt wrote:
> I need to import some classes from the javax.servlet.http
> package in my XSP pages. With Tomcat 4b3 the javax package
> is unfortunately not known to the Cocoon classloader.
> 
> Copying the servlet.jar into WEB-INF/lib prevents
> Cocoon to start. (Tomcat does not does not like this)
> 
> Shouldn't javax be available in all ServletEngines
> automagically or is this more a Cocoon classloader problem?
> 
> Maybe I can provide an extra classpath only to the Cocoon
> classloader??
> --
> Torsten
> 
Just a guess : could you try adding servlet.jar in a directory that's 
not in the standard servlet classpath (e.g. WEB-INF/morelibs) and add it 
in the "extra-classpath" servlet parameter (e.g. 
WEB-INF/morelibs/servlet.jar) ?
-- 
Sylvain Wallez
Anyware Technologies - http://www.anyware-tech.com


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


RE: C2: javax.servlet... in XSP

Posted by Torsten Curdt <tc...@dff.st>.
> I need to import some classes from the javax.servlet.http
> package in my XSP pages. With Tomcat 4b3 the javax package
> is unfortunately not known to the Cocoon classloader.
> 
> Copying the servlet.jar into WEB-INF/lib prevents
> Cocoon to start. (Tomcat does not does not like this)
> 
> Shouldn't javax be available in all ServletEngines
> automagically or is this more a Cocoon classloader problem?
> 
> Maybe I can provide an extra classpath only to the Cocoon
> classloader??

found that specifying an extra-classpath in the web.xml
outside the WEB-INF/lib dir is fine for tomcat
--
Torsten

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>