You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Srinivasan, Radha" <Ra...@creekpath.com> on 2001/01/12 17:24:08 UTC

RE: Need help fixing XSP...

Hi David,
I got the exact same problem. I just recently installed Cocoon on my system.
For this problem I modified classpath in tomcat.bat to include xerces.jar
before any other jar file.
My tomcat.bat automatically included jar files in some kind of  'for ...
loop'. Renaming Xerces.jar to aaaxerces.jar did not help.
I commented out the for .. loop and set classpath with all the jar files
with xerces.jar as the first jar file.It worked!!
Hope it helps.
Radha Srinivasan

Software Engineer
Email : radha@creekpath.com <ma...@creekpath.com>  
303.417.7329 office
303.417.7416 fax





-----Original Message-----
From: Buttrick, David [mailto:david.buttrick@wilcom.com]
Sent: Friday, January 12, 2001 9:29 AM
To: 'cocoon-users@xml.apache.org'
Subject: Need help fixing XSP...


I've been messing with my Cocoon distribution -- switching out xerces with
the most recent distribution -- just familiarzing myself with the
components.

I've now gotten myself into a place wihere when I try to use XSP
functionality, I get this error:
Error found handling the request.
	java.lang.NoSuchMethodError
		at
org.apache.cocoon.processor.xsp.language.java.XSPJavaPreprocessor.process(XS
PJavaPreprocessor.java:116)
		at
org.apache.cocoon.processor.xsp.language.java.XSPJavaPreprocessor.process(XS
PJavaPreprocessor.java:123)
		at
org.apache.cocoon.processor.xsp.language.java.XSPJavaPreprocessor.preprocess
(XSPJavaPreprocessor.java:81)
		at
org.apache.cocoon.processor.xsp.XSPLogicsheet.apply(XSPLogicsheet.java:99)
		at
org.apache.cocoon.processor.xsp.XSPProcessor.process(XSPProcessor.java:423)
		at org.apache.cocoon.Engine.handle(Engine.java:359)
		at org.apache.cocoon.Cocoon.service(Cocoon.java:167)
		at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
		at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
		at org.apache.tomcat.core.Handler.service(Handler.java:286)
		at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
		at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
		at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
		at
org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection
(Ajp13ConnectionHandler.java:160)
		at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
		at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
		at java.lang.Thread.run(Thread.java:484)
---------------------------------------------------------------
Here is my environment:

Tomcat 3.2.1
Cocoon 1.8 -- fresh install.

It seems to me that XSP should work.
[root@adsl-216-63-34-155 jakarta-tomcat]# su nobody -c "bin/tomcat.sh start"
Using classpath:
/opt/jakarta-tomcat/lib/ant.jar:/opt/jakarta-tomcat/lib/ant_1_1.jar:/opt/jak
arta-tomcat/lib/bsf.jar:/opt/jakarta-tomcat/lib/bsfengines.jar:/opt/jakarta-
tomcat/lib/build.xml:/opt/jakarta-tomcat/lib/cocoon.jar:/opt/jakarta-tomcat/
lib/fop_0_13_0.jar:/opt/jakarta-tomcat/lib/jasper.jar:/opt/jakarta-tomcat/li
b/jaxp.jar:/opt/jakarta-tomcat/lib/parser.jar:/opt/jakarta-tomcat/lib/servle
t.jar:/opt/jakarta-tomcat/lib/servlet_2_2.jar:/opt/jakarta-tomcat/lib/styleb
ook-1.0-b2.jar:/opt/jakarta-tomcat/lib/test:/opt/jakarta-tomcat/lib/turbine-
pool.jar:/opt/jakarta-tomcat/lib/webserver.jar:/opt/jakarta-tomcat/lib/xalan
_1_2_D02.jar:/opt/jakarta-tomcat/lib/xerces_1_2.jar:/opt/jdk1.3/lib/tools.ja
r

You can see that cocoon.jar and tools.jar are both included in the startup
path for Tomcat.

Can someone shed light on where I am going wrong?

Thanks

DAvid


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org