Hi, I am attempting to get C2 working with weblogic sp2 (using J2EE 1.3 functionality), after successfully getting C2 to work with Tomcat 3.2.3. One important difference between these 2 environments is Tomcat complies with version 2.2 of the Servlet Spec. while my weblogic setup adheres to version 2.3.
My question concerns how the URL received from a browser is split up into servletPath and pathInfo. Cocoon's web.xml has the servlet mapping <sevlet-mapping> <url-pattern>/</url-pattern> </servlet-mapping> if I attempt to access cocoon/protected/login via my Tomcat config I see the following in the cocoon log file CONTEXT PATH: /cocoon SERVLET PATH: /protected/login PATH INFO: null while if I do the same using my weblogic config, I get the following CONTEXT PATH: /cocoon SERVLET PATH: / PATH INFO: /protected/login as a consequence of this with my weblogic configuration, I get an exception telling me "The current URI(/protected/login) doesn't start with given prefix (protected) Looking at the code for CocoonServlet.jar tells me that the source of this problem is weblogic setting the SERVLET PATH to "/" since the uri is got by combining the servletPath and the pathInfo (resulting in a url of //protected/login). If it was either null or even an empty string then all would be fine! Having looked at the servlet spec's for 2.2 and 2.3 I'm a little confused as both spec's seem to suggest that the weblogic handling is the more correct, i.e. servletPath = what was matched - context path info = url - servlet path (also the 2.3 spec states that a pattern match of /*, should result in a servlet path of an empty string. Unfortunately the weblogic implementation doesn't quite stretch that far, it still sets the sevlet path to "/"). So the question is what should servletpath and pathinfo be set to in this case? I realise this is more of a servlet engine question, but I was just wondering if anyone out there in C2 land had any ideas! thanks Aidan Any e-mail message from the European Central Bank (ECB) is sent in good faith but shall neither be binding nor construed as constituting a commitment by the ECB except where provided for in a written agreement. This e-mail is intended only for the use of the recipient(s) named above. Any unauthorised disclosure, use or dissemination, either in whole or in part, is prohibited. If you have received this e-mail in error, please notify the sender immediately via e-mail and delete this e-mail from your system. --------------------------------------------------------------------- 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: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>