It's the same problem I have...

Few days ago, I managed myself to configure Tomcat to serve XML-XSL files through Cocoon. As Cocoon (http://xml.apache.org ) is itself a servlet, I treated it as another web application and created a new context to place Cocoon into (as documentation suggested).

But I also found inside Cocoon web a reference to the book "Java and XML" by Brett McLaughlin (partly available free online at O'Reilly, http://www.oreilly.com/catalog/javaxml/chapter/ch09.html ). In the "Installation" section, it says:

"The Cocoon framework is built to operate at an engine level rather than as another servlet in your engine. Therefore, we need to add Cocoon and its dependencies to the core servlet engine class path rather than in a particular servlet zone or context."

I really find this approach more indicated than treating Cocoon as simply another web application, because I want to use XSLT transformations provided by Cocoon throughout my site, and not per-context basis. (yes, I can define a context for my document root path, but this seems not elegant for me...)

Well, the problem is that, although I think I followed all the indications of the aforementioned book, I cannot set Cocoon up to work as a system-wide servlet.

Has anyone done this and want to share his/her experience with me?

Thanks in advance

Orestes

mall wrote:

Hi, I've just recently read the JSP and Servlet specifications and I was wondering if there was a way to implement a global applicationin tomcat. I want some of my JSP pages to be able to access an object that manages a pool of database-connected-threads. I trieddeclaring such an object as static but it reloads the object whenever the JSP page gets modified. I've also looked at tomcat'sexplaination of some of the elements in server.xml file and it mentioned something about using Requestinterceptors to implementglobal applications but it doesn't say too much after that.  
begin:vcard 
n:Mas i Casals;Orestes
tel;fax:+34.93.401.72.00
tel;work:+34.93.401.70.72
x-mozilla-html:TRUE
org:Universitat Polit�cnica de Catalunya;TSC
version:2.1
email;internet:[EMAIL PROTECTED]
title:Dr.
adr;quoted-printable:;;Campus Nord - UPC=0D=0Ac/Gran Capit=E0 s/n=0D=0AM=F2dul D4;BARCELONA;;08034;Spain
x-mozilla-cpt:;0
fn:Orestes Mas i Casals
end:vcard

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to