Renaud Richardet wrote:
After using only Jetty for a long time, I gave Tomcat a new try
(5.0.28), had to copy a few jars in Tomcat's
endorsed libs, ([EMAIL PROTECTED]:/opt/tomcat-5.0.28/bin$ cp
~/src/wyona/nj/cocoon/lib/endorsed/* . ) and here we go.

There are a few errors, though:
* Tomcat does some wrong redirects, eg to /null/default/authoring/index.html
* Sometimes, a /lenya part in the url is missing (eg
http://localhost:8080/default/authoring/index.html instead of
http://localhost:8080/lenya/default/authoring/index.html)

Is there a relatively easy way to fix these errors? If yes, I think we
should do it soon to keep in synch with Tomcat, as it is the preffered
servlet container for production. WDYT?

Check the thread called "[1.4] 1.4-alpha1 urls in usecases" on the Lenya user mailing list. In short, this bug can be "fixed" if you modify the lenya/usecases/usecases.js file and replace the

var url = request.getContextPath() + targetUrl;

with the:

var url = "/XXXXX" + targetUrl;

where "/XXXXX" is the name of your web context (the problem is that request.getContextPath() sometimes returns null when lenya.war is deployed on Tomcat).

Kindest regards,
Damjan S. Vujnovic

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

Reply via email to