cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jordi Guijarro" <jordi.guija...@uab.es>
Subject Unable to determine servlet context URL
Date Fri, 05 Apr 2002 12:32:18 GMT

Hi!
We are installing cocoon 2.0.2 on jakarta tomcat 3.3a (as a war file),
all on a netware server. The JVM version is 1.3.1 (recently upgraded
from 1.1.7b). When we are trying to access cocoon servlet to test it at
the URL http://host:8080/cocoon/ we get this message:

javax.servlet.ServletException: Unable to determine servlet context URL.

 at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:269)

 at org.apache.tomcat.facade.ServletHandler.doInit(Unknown Source)
 at org.apache.tomcat.facade.ServletHandler.init(Unknown Source)
 at
org.apache.tomcat.facade.LoadOnStartupInterceptor.contextInit(Unknown
Source)
 at org.apache.tomcat.core.Context.init(Unknown Source)
 at org.apache.tomcat.core.ContextManager.init(Unknown Source)
 at org.apache.tomcat.startup.EmbededTomcat.initContextManager(Unknown
Source)
 at org.apache.tomcat.startup.EmbededTomcat.execute1(Unknown Source)
 at org.apache.tomcat.startup.EmbededTomcat$1.run(Unknown Source)
 at
org.apache.tomcat.util.compat.Jdk12Support$PrivilegedProxy.run(Unknown
Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at org.apache.tomcat.util.compat.Jdk12Support.doPrivileged(Unknown
Source)
 at org.apache.tomcat.startup.EmbededTomcat.execute(Unknown Source)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.tomcat.util.IntrospectionUtils.execute(Unknown Source)
 at org.apache.tomcat.startup.Main.execute(Unknown Source)
 at org.apache.tomcat.startup.Main.main(Unknown Source)
Root cause:
java.net.MalformedURLException: unknown protocol: sys
 at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:264)

 at org.apache.tomcat.facade.ServletHandler.doInit(Unknown Source)
 at org.apache.tomcat.facade.ServletHandler.init(Unknown Source)
 at
org.apache.tomcat.facade.LoadOnStartupInterceptor.contextInit(Unknown
Source)
 at org.apache.tomcat.core.Context.init(Unknown Source)
 at org.apache.tomcat.core.ContextManager.init(Unknown Source)
 at org.apache.tomcat.startup.EmbededTomcat.initContextManager(Unknown
Source)
 at org.apache.tomcat.startup.EmbededTomcat.execute1(Unknown Source)
 at org.apache.tomcat.startup.EmbededTomcat$1.run(Unknown Source)
 at
org.apache.tomcat.util.compat.Jdk12Support$PrivilegedProxy.run(Unknown
Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at org.apache.tomcat.util.compat.Jdk12Support.doPrivileged(Unknown
Source)
 at org.apache.tomcat.startup.EmbededTomcat.execute(Unknown Source)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.tomcat.util.IntrospectionUtils.execute(Unknown Source)
 at org.apache.tomcat.startup.Main.execute(Unknown Source)
 at org.apache.tomcat.startup.Main.main(Unknown Source)

We get the source code of "CocoonServlet.java" at lines 264 and 269, and
the code is :
try {
   if (path.indexOf(':') > 1) {
       this.servletContextURL = new URL(path);
   } else {
       this.servletContextURL = (new File(path)).toURL();
   }
}
 catch (java.net.MalformedURLException me) {
   throw new ServletException("Unable to determine servlet context
URL.", me);
}

When we inspect the log file "access.log" it has the line:

DEBUG   (2002-04-04) 18:23.13:178   [access](Unknown-URI)
Unknown-thread/CocoonServlet: getRealPath for /:
SYS:\jakarta-tomcat-3.3a\webapps\cocoon\

Finally, and having all this information, it seems cocoon is unable of
translate the real path to a context URL.
You know how we can solve this? The problem is caused by "netware and
its caracteristic path"?
May we install an old version of cocoon, as a servlet on tomcat, insteat
of a web application ?

Thanx a lot!


--
Adolfo Amo
Tècnic Mitjà
Serveis Informàtics Distribuïts
Facultat de Ciències



---------------------------------------------------------------------
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message