I did get cocoon working with jboss, but some of the samples throw
exceptions that they haven't thrown when I used cocoon with tomcat stand
alone, so I suppose I must have done something not quite right. Here is what
I did:
I extended the classpath of jboss run.bat by:
set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\cocoon.jar
set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\xalan.jar
set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\xerces.jar
set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\fop.jar
set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\tools.jar
set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\bsf.jar
set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\bsfengines.jar
set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\stylebook.jar
set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\turbine-pool.jar

then I added a war-file to the deployment directory. It only contains the
sample directory, cocoon.properties and the web-inf/web.xml file. The
web.xml file contains:
<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">

<web-app>
                <servlet>
                        <servlet-name>
                                org.apache.cocoon.Cocoon
                        </servlet-name>
                        <servlet-class>
                                org.apache.cocoon.Cocoon
                        </servlet-class>
                        <init-param>
                                <param-name>
                                        properties
                                </param-name>
                                <param-value>
                                        cocoon.properties
                                </param-value>
                        </init-param>
                </servlet>
                <servlet-mapping>
                        <servlet-name>
                                org.apache.cocoon.Cocoon
                        </servlet-name>
                        <url-pattern>
                                *.xml
                        </url-pattern>
                </servlet-mapping>
</web-app>

The properties file I left as is. I am able to get the Cocoon.xml status
page and am able to run some example. But if I try to run the xsp example I
get the following exception:

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:387)
        at org.apache.tomcat.core.Handler.service(Handler.java:263)
        at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:371)
        at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:78
6)
        at org.apache.tomcat.core.ContextManager.service(ContextManager.java:732)
        at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
        at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:407)
        at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
        at java.lang.Thread.run(Thread.java:484)

...any thoughts on what is going on?

Christian



-----Urspr�ngliche Nachricht-----
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]Im Auftrag von Eoin Lane
Gesendet: Thursday, November 30, 2000 10:26 AM
An: 'jBoss'
Betreff: RE: [jBoss-User] Hosting & Cocoon

I have checked this myself and have no problem

-----Original Message-----
From: Thad Humphries [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 30, 2000 1:09 PM
To: jBoss
Subject: RE: [jBoss-User] Hosting & Cocoon


I get a 404 on http://jaba.sourceforge.net/index_files/sourceforge.css when
I try to access http://jaba.sourceforge.net

At 10:23 11/30/2000 +0000, you wrote:
>Sean,
>
>I have just started an open source project to demonstrate the capabilities
>of jBoss/tomcat and cocoon. I will try an write a quick how to (using
>embedded tomcat and jBoss and cocoon 1.7.4) and paste it there.
>
>The url for this project is http://jaba.sourceforge.net
>
>Eoin

--------------------------------------------------------------------------
Thad Humphries                        "Who is this that darkens my counsel
Web Development Manager                With words without knowledge?"
Phone: 540/675-3015, ext. 225                              - Job 38:1, NIV



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]



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 subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]


__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to