cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject RE: Problem with Cocoon Installation
Date Wed, 05 Jan 2000 12:41:41 GMT

Spoke to one of our techies & his comments were...

P.S. This problem classically throws a NoClassDefException so it maybe the
problem. If that's it, then it's probably something in the classpath.

By the way there does seem to be a bug in some versions of the jdk1.2 under
where it fails to read jar files. he might try renameing it to a zip file
extracting everything and then rebuilding the zip and renameing it jar and
see if that helps.

Hope this helps...

John Wright

-----Original Message-----
From: []
Sent: 05 January 2000 11:02
Subject: Problem with Cocoon Installation


I am trying to get Cocoon working with Apache 1.3.9 and JServ 1.1b3, on
NT. However, when I try to access an XML file sitting on my Web server,
the Cocoon servlet fails as it appears not to find the XSL processor
class file (see error message later). I would be very grateful for any
advice on where things are going wrong.

I am using the following version of Cocoon, since as far as I can tell
this is the latest release:

Cocoon_1.5.jar          19-Nov-1999 17:09   1.4M

One initial question I have is why doesn't this version support Xalan
and Xerces-J?

The bundled install instructions with Cocoon 1.5 state:

"These are the XML parsers currently supported:
             2.IBM XML4J
             3.Sun ProjectX
             4.Oracle XML Parser v.2

XSL Processor with DOM support

These are the XSL processors currently supported:
             1.XSL:P Processor
             2.Lotus XSL Processor
             3.Oracle XSL Processor (comes with the Oracle XML parser

Since Xalan and Xerces are not supported, I have tried the XSLP and
Lotus XSL processor and always receive an error similar to that below:

Publishing Engine could not be initialized.

      java.lang.RuntimeException: Error creating
org.apache.cocoon.processor.xslt.LotusXSLProcessor: make sure the
needed classes can be found in the classpath
              at org.apache.cocoon.framework.Router.init(,
Compiled Code)
              at org.apache.cocoon.Engine.(
              at org.apache.cocoon.Cocoon.init(

This corresponds to the following code -

   Object object = Class.forName(name).newInstance();

} catch (java.lang.NoClassDefFoundError e) {
            throw new RuntimeException("Error creating " + name + ":
make sure the needed classes can be found in the classpath");

However, I am sure that the XSL processors are in the jserv classpath -
see extracts from my config files below:

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

repositories=C:\Program Files\Apache JServ
1.1b3\servlets,P:\papiani\XML_Tools\cocoon\bin\Cocoon.jar -


#previous efforts:-

#wrapper.classpath=P:\papiani\XML_Tools\cocoon\bin\xslp.19991017-fix.jar -

#processor.type.xslt = org.apache.cocoon.processor.xslt.XSLPProcessor
# Lotus XSL processor (
processor.type.xslt = org.apache.cocoon.processor.xslt.LotusXSLProcessor

##parser = org.apache.cocoon.parser.OpenXMLParser

# IBM XML4J Parser (
parser = org.apache.cocoon.parser.IBMXMLParser

Any suggestions, would be gratefully received.

Mark Papiani

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.

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

View raw message