Hello all,

I tried to setup an embedded-tomcat/jboss/cocoon, and still have problem on
loading XSP. What I have done is :

1.  Add additional Classpathextension on jboss.conf

        <MLET CODE = "org.jboss.util.ClassPathExtension" ARCHIVE="jboss.jar"
CODEBASE="../../lib/ext/">
                <ARG TYPE="java.lang.String" VALUE="../../../cocoon/lib/">
                <ARG TYPE="java.lang.String" VALUE="Cocoon">
        </MLET>

        <MLET CODE = "org.jboss.util.ClassPathExtension" ARCHIVE="jboss.jar"
CODEBASE="../../lib/ext/">
                <ARG TYPE="java.lang.String" VALUE="../../../cocoon/bin/">
        </MLET>

2.  Based on the latest mailing list on this issue to change the priority of
the classloading on parser.jar and xml.jar, I remove
%TOMCAT_HOME%\lib\parser.jar and %TOMCAT_HOME%\lib\ext\xml.jar from their
directory. and putting them to others directory. there are some changes on
RUN.BAT:

        REM changes of the parser.jar and xml.jar
        set CLASSPATH=%CLASSPATH%;<path to parser.jar>
        set CLASSPATH=%CLASSPATH%;<path to xml.jar>

In this composition, cocoon has successful to run, but the XSP part still
not run with error on classloading.

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
9)
        at org.apache.tomcat.core.ContextManager.service(ContextManager.java:745)
        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)

Please help, I using JBOSS PRE-2.1, tomcat 3.2.1 and cocoon 1.8.

Thanks on advance.

Regards
Johnson




--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to