I just installed tomcat 4.0.2, the version designed for jdk 1.4
(jakarta-tomcat-4.0.2-LE-jdk14.exe), on windows XP with jdk 1.4.0.  The
tomcat\common\lib does NOT have xerces.jar.

The only change I made to the tomcat distribution was to change the port
from 8080 to 80.

The jetspeed-1.3a2-release-src.zip, built, starts up fine.  The jetspeed.log
looks great, no exceptions.

When the first user request comes into the server:

http://localhost/jetspeed

there is trouble.  The response is:

Apache Tomcat/4.0.2 - HTTP Status 500 - Internal Server Error

----------------------------------------------------------------------------
----

type Exception report

message Internal Server Error

description The server encountered an internal error (Internal Server Error)
that prevented it from fulfilling this request.

exception 

javax.servlet.ServletException: Servlet.init() for servlet jsp threw
exception
        at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:93
5)

<lots of stack trace snipped out>

root cause 

java.lang.NoClassDefFoundError: org/w3c/dom/ranges/DocumentRange
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:509)
        at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
        at
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLo
ader.java:1631)
        at
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.jav
a:926)
        at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1360)
        at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1243)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
        at
org.apache.xerces.jaxp.DocumentBuilderImpl.(DocumentBuilderImpl.java:110)
        at
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Documen
tBuilderFactoryImpl.java:82)
        at
org.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserUtils.java:197)
        at
org.apache.jasper.compiler.TldLocationsCache.processWebDotXml(TldLocationsCa
che.java:165)
        at
org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:138)
        at
org.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:345)
        at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:266)
        at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:91
6)
<even more stack trace snipped out>

----------------------------------------------------------------------------
----

The *jsp* servlet is having "dom" troubles!

The "examples" webapp that comes with tomcat has some jsp examples, which
seem to work ok.

A request to http://localhost/jetspeed/portal ends up working just fine (no
jsp involved!).

Logging in as "turbine", only the "helloVelocity" portlet and the "Stock
Portfolio" portlets show.

Now, there are exceptions in the Jetspeed.log:

[Thu Feb 14 10:47:11 EST 2002] -- ERROR -- RSSPortlet:  Couldn't parse out
XML document -> null
        Exception:  java.lang.NoClassDefFoundError:
org/w3c/dom/ranges/DocumentRange
        Stack Trace follows:
        java.lang.NoClassDefFoundError: org/w3c/dom/ranges/DocumentRange
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:509)
        at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
        at
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLo
ader.java:1631)
        at
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.jav
a:926)
        at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1360)
        at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1243)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
        at
org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(DocumentBuilderImpl.java:1
10)
        at
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Documen
tBuilderFactoryImpl.java:82)
        at
org.apache.jetspeed.portal.portlets.NewRSSPortlet.init(NewRSSPortlet.java:15
0)

Looks like something is missing from somewhere.

"DocumentRange.class" is in xerces_1_3_1.jar, which is in the
jetspeed/WEB-INF/lib folder, but might the parser that comes with java 1.4
be the one that is looked at instead?

Java's jre/lib/rt.jar has some org\w3c\dom stuff, but no
DocumentRange.class.

Sun claims that jdk 1.4 has DOM Level 2 and SAX 2.0 and XSLT 1.0.

Well, anybody have any ideas about what might be going on here?  I've used
up my knowledge of classpath with Tomcat.

And, while we are on the subject, why this one little piece of .jsp in
Jetspeed, which is otherwise velocity?  The /jetspeed call is redirected to
the jsp and then to the portal.  Is this just historical, and might be
removed soon?

Thanks.

- Glenn

--------------------------------------------
Glenn R. Golden, Systems Research Programmer
University of Michigan School of Information
[EMAIL PROTECTED]           734-615-1419
http://www-personal.si.umich.edu/~ggolden/
--------------------------------------------


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

Reply via email to