You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Gasper <ga...@gorenc.com> on 2000/10/10 22:20:05 UTC

Re: XSP erros when running tomcat (with cocoon) from Jboss

Hi

Here is an answer from the jboss list.

X-POP3-Rcpt: mbgasper@juhu
From: "Ingo Bruell" <ib...@gmx.de>
To: "jBoss" <jb...@list.working-dogs.com>
Subject: Re: [jBoss-User] XSP erros when running tomcat (with cocoon) from
 Jboss 
Date: Wed, 11 Oct 2000 13:50:03 +0200
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Reply-To: "jBoss" <jb...@list.working-dogs.com>
Sender: <jb...@list.working-dogs.com>
List-Software: LetterRip Pro 3.0.7 by Fog City Software, Inc.
List-Subscribe: <ma...@list.working-dogs.com>
List-Digest: <ma...@list.working-dogs.com>
List-Unsubscribe: <ma...@list.working-dogs.com>

Hi,

> We have setup tomcat with JBoss running in the same VM and configured
tomcat
> with cocoon. All of the examples in
> cocoon's samples directories work OK except for the XSP samples. They give
> the following error:
>
> java.lang.NoSuchMethodError
> at
>
org.apache.cocoon.processor.xsp.language.java.XSPJavaPreprocessor.process(XS
> PJavaPreprocessor.java:116)

The jasper.jar and xerces.jar must be bevor any other xml parser in the
classpath. If you have jaxp.jar and parser.jar in the lib/ext directory of
the jdk/jre you must remove them and put them after jasper.jar and
xerces.jar in the run.bat from jboss.

Here my classpath part from jboss's run.bat:

----- snipp -----
:gotTomcatHome
set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib
set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\jasper.jar
set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\webserver.jar
rem set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\xml.jar
rem set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\jaxp.jar
rem set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\parser.jar
rem set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\servlet.jar

rem Cocoon Stuff
set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\xerces_1_2.jar
set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\xalan_1_2_D02.jar
set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\fop_0_13_0.jar
set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\servlet_2_2.jar
set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\cocoon.jar
set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\turbine-pool.jar
set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\bsfengines.jar
set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\stylebook-1.0-b2.jar
set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\bsf.jar
set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\ant_1_1.jar

set CLASSPATH=%CLASSPATH%;F:\Programme\Java\jaxp\jaxp.jar
set CLASSPATH=%CLASSPATH%;F:\Programme\Java\jaxp\parser.jar

----- snapp -----

CU

---
Ingo Bruell
OBL GmbH (ibruell@gmx.de)
Hude (Oldenburg)
Germany




--
--------------------------------------------------------------
To subscribe:        jboss-user-on@list.working-dogs.com
To unsubscribe:      jboss-user-off@list.working-dogs.com
Problems?:           jon@working-dogs.com




At 14:39 11. 10. 2000 +0100, you wrote:
>
>We have setup tomcat with JBoss running in the same VM and configured tomcat
>with cocoon. All of the examples in 
>cocoon's samples directories work OK except for the XSP samples. They give
>the following error:
>
>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:385)
>	at org.apache.cocoon.Engine.handle(Engine.java:305)
>	at org.apache.cocoon.Cocoon.service(Cocoon.java:167)
>	at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
>	at
>org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
>	at
>org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
>	at
>org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
>onnectionHandler.java:160)
>	at
>org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338
>)
>	at java.lang.Thread.run(Unknown Source)
>
>Any help would be much appricated.
>
>Eoin
>
>
>DISCLAIMER: This e-mail contains proprietary information some or all of
>which may be legally privileged. It is for the intended recipient only. If
>an addressing or transmission error has misdirected this e-mail, please
>notify the author by replying to this e-mail. If you are not the intended
>recipient you must not disclose, distribute, copy, print, or rely on this
>e-mail.
>All information contained within this e-mail is subject to the Terms &
>Conditions of Valtech Ltd. which are available upon request.
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
>For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
>
>