cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Schult" <>
Subject RE: Cocoon 2.0a7 + Tomcat 3.2.2 as NT service... possible ??
Date Tue, 05 Jun 2001 13:27:16 GMT

When running Tomcat as a service you need to edit the
file to change the classpath.  The snippet from the Cocoon 1 docs below
outline the problem and the solution.  It worked for me.

Kind regards,



IMPORTANT: If you get a NoSuchMethodError when starting up, make sure that
xerces.jar is located before other XML jars in the CLASSPATH, otherwise XSP
won't work. Tomcat 3.1 on UNIX - and Tomcat 3.2 on both UNIX and Windows -
construct their own CLASSPATH automatically and then add the environment
CLASSPATH, so manually setting the CLASSPATH before running Tomcat won't
work. Instead, a hack which some people have found to work is (in the case
of Tomcat 3.2) renaming xml.jar as zxml.jar and parser.jar as zparser.jar.
For other versions try renaming crimson.jar. (Alert readers may have noticed
that xerces is lexicographically prior to xml anyway - so why does this
work? Well, to be quite frank - who cares? It works, okay! ;-)


> -----Original Message-----
> From: thomas@jet []
> Sent: Tuesday, June 05, 2001 8:43 AM
> To:
> Subject: Cocoon 2.0a7 + Tomcat 3.2.2 as NT service... possible ??
> Hi,
> I'm been struggling for some 5 hours now without success trying
> to get Cocoon 2.0a7 going
> under a Tomcat 3.2.2 Win NT-service, but I can for my life not
> figure out what the problem is.
> In console mode everything works great (startup.bat) and the
> usual JSP stuff under
> Tomcat even does fine when running as a service, but Cocoon
> completely phucks up.
> I get some 100 lines in "jvm.stderr" and "server.log" with
> debugging enabled, but unfortunately
> I am not man enough to make any sense out of it apart from seeing
> a set of nulls as no-good.
> SAXParserFactory: null
> DocumentBuilderFactory: null
> --
> urls behave like;
> /cocoon/welcome  << blank page
> /cocoon/status << java.lang.NoSuchMethodError:
> org.w3c.dom.Document: method createElementNS ...
> Has anyone managed to get a similar setup working or has a clue
> what might the problem..
> I know my Apache and the usual DSOs, but I am kindof new to these
> servlet APIs.
> any help appreciated.
> Thomas.

Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message