Cocoon2 - Internal Server Error

Q

quitaxe

hi
i have tomcat 3.3,jdk1.4 setup and running perfectly on my win 98 pc.i
have tried to install apache cocoon on this but have failed.i'm
getting the following error when i startup tomcat(after it
auto-deploys cocoon) and type the url: http://127.0.0.1:8080/cocoon
into my ie5.5


Cocoon 2 - Internal server error

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

type fatal

message SAX2 driver class org.apache.xerces.parsers.SAXParser not
found

description java.lang.ClassNotFoundException:
org/apache/xerces/parsers/SAXParser

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

stack-trace

java.lang.ClassNotFoundException: org/apache/xerces/parsers/SAXParser
at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:118)
at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:96)
at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.generateCode(AbstractMarkupLanguage.java:377)
at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:390)
at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:353)
at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:312)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:267)
at java.lang.Thread.run(Thread.java:579)


request-uri

/cocoon/

path-info

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

the following is the verbose from tomcat if it helps
--------------------------------------------------------------------------------

2004-03-02 23:46:14 - ServerXmlReader:
Config=$TOMCAT_HOME\conf\server.xml
2004-03-02 23:46:14 - PathSetter: home=E:\tomcat
2004-03-02 23:46:14 - ContextXmlReader: Context
config=$TOMCAT_HOME\conf\apps-12
7.0.0.1.xml
2004-03-02 23:46:15 - ContextXmlReader: Context
config=$TOMCAT_HOME\conf\apps-ad
min.xml
2004-03-02 23:46:15 - ContextXmlReader: Context
config=$TOMCAT_HOME\conf\apps-ex
amples.xml
2004-03-02 23:46:15 - AutoWebApp: Auto-Adding DEFAULT:/cocoon
2004-03-02 23:46:15 - AutoWebApp: Loaded from config: DEFAULT:/admin
2004-03-02 23:46:15 - AutoWebApp: Auto-Adding DEFAULT:/
2004-03-02 23:46:15 - AutoWebApp: Loaded from config:
DEFAULT:/examples
2004-03-02 23:46:15 - ContextManager: Tomcat configured and in stable
state
2004-03-02 23:46:16 - ContextManager: Adding DEFAULT:/admin
2004-03-02 23:46:16 - ContextManager: Adding DEFAULT:/examples
2004-03-02 23:46:16 - ContextManager: Adding DEFAULT:/cocoon
2004-03-02 23:46:16 - ContextManager: Adding DEFAULT:/ROOT
XmlMapper: systemId is 'null'
XmlMapper: systemId is 'null'
XmlMapper: systemId is 'null'
server.properties not found, using command line or default properties
Opening database: E:\tomcat\webapps\cocoon\WEB-INF\db\cocoondb
HSQLDB server 1.7.1 is running
Use SHUTDOWN to close normally. Use [Ctrl]+[C] to abort abruptly
Tue Mar 02 23:47:38 IST 2004 Listening for connections ...
XmlMapper: systemId is 'null'
EmbededTomcat: Init time 124730
2004-03-02 23:48:00 - Http10Interceptor: Starting on 8080
2004-03-02 23:48:00 - Ajp12Interceptor: Starting on 8007
2004-03-02 23:48:00 - Ajp13Interceptor: Starting on 8009
EmbededTomcat: Startup time 2090
--------------------------------------------------------------------------------


i think its a problem with the path settings of my jdk.i have set
path,JAVA_HOME,CATALINA_HOME,and CLASSPATH variables.i have even
installled xerces-2.6.2 and tested it.this too works.

can anybody tell me what i am doing wrong.thanks a lot in advance...

:)
 
S

sara francis

quitaxe said:
hi
i have tomcat 3.3,jdk1.4 setup and running perfectly on my win 98 pc.i
have tried to install apache cocoon on this but have failed.i'm
getting the following error when i startup tomcat(after it
auto-deploys cocoon) and type the url: http://127.0.0.1:8080/cocoon
into my ie5.5

you didn`t mention the cocoon version, but i guess it`s the 2.0.4 binary
war file

did you pick the version for the jdk 1.4? (bound to have "14" somewhere
in its name)

some things you might try

check the docs if 2.0.4 jdk1.4 version actually works with a tomcat 3.3
(it might require tomcat 4 - i`m not sure)

2.0.4 binary is allergic to brand new 1.4.2 java, only works up to 1.4.1

remove the freshly installed xerces xalan parsers from the classpath,
cocoon provides its own versions

other options

use cocon 2.1.3 or above, you need to build it, but it comes with a
jetty server that is completley independent from tomcat - dowload and
follow the instructions carefully (no big deal)
the new version also got some very nice features


sf

Cocoon 2 - Internal server error

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

type fatal

message SAX2 driver class org.apache.xerces.parsers.SAXParser not
found

description java.lang.ClassNotFoundException:
org/apache/xerces/parsers/SAXParser

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

stack-trace

java.lang.ClassNotFoundException: org/apache/xerces/parsers/SAXParser
at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:118)
at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:96)
at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.generateCode(AbstractMarkupLanguage.java:377)
at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:390)
at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:353)
at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:312)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:267)
at java.lang.Thread.run(Thread.java:579)


request-uri

/cocoon/

path-info

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

the following is the verbose from tomcat if it helps
--------------------------------------------------------------------------------

2004-03-02 23:46:14 - ServerXmlReader:
Config=$TOMCAT_HOME\conf\server.xml
2004-03-02 23:46:14 - PathSetter: home=E:\tomcat
2004-03-02 23:46:14 - ContextXmlReader: Context
config=$TOMCAT_HOME\conf\apps-12
7.0.0.1.xml
2004-03-02 23:46:15 - ContextXmlReader: Context
config=$TOMCAT_HOME\conf\apps-ad
min.xml
2004-03-02 23:46:15 - ContextXmlReader: Context
config=$TOMCAT_HOME\conf\apps-ex
amples.xml
2004-03-02 23:46:15 - AutoWebApp: Auto-Adding DEFAULT:/cocoon
2004-03-02 23:46:15 - AutoWebApp: Loaded from config: DEFAULT:/admin
2004-03-02 23:46:15 - AutoWebApp: Auto-Adding DEFAULT:/
2004-03-02 23:46:15 - AutoWebApp: Loaded from config:
DEFAULT:/examples
2004-03-02 23:46:15 - ContextManager: Tomcat configured and in stable
state
2004-03-02 23:46:16 - ContextManager: Adding DEFAULT:/admin
2004-03-02 23:46:16 - ContextManager: Adding DEFAULT:/examples
2004-03-02 23:46:16 - ContextManager: Adding DEFAULT:/cocoon
2004-03-02 23:46:16 - ContextManager: Adding DEFAULT:/ROOT
XmlMapper: systemId is 'null'
XmlMapper: systemId is 'null'
XmlMapper: systemId is 'null'
server.properties not found, using command line or default properties
Opening database: E:\tomcat\webapps\cocoon\WEB-INF\db\cocoondb
HSQLDB server 1.7.1 is running
Use SHUTDOWN to close normally. Use [Ctrl]+[C] to abort abruptly
Tue Mar 02 23:47:38 IST 2004 Listening for connections ...
XmlMapper: systemId is 'null'
EmbededTomcat: Init time 124730
2004-03-02 23:48:00 - Http10Interceptor: Starting on 8080
2004-03-02 23:48:00 - Ajp12Interceptor: Starting on 8007
2004-03-02 23:48:00 - Ajp13Interceptor: Starting on 8009
EmbededTomcat: Startup time 2090
--------------------------------------------------------------------------------


i think its a problem with the path settings of my jdk.i have set
path,JAVA_HOME,CATALINA_HOME,and CLASSPATH variables.i have even
installled xerces-2.6.2 and tested it.this too works.

can anybody tell me what i am doing wrong.thanks a lot in advance...

:)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top