Date: Fri, 16 Mar 2001 10:31:38 +0900 (JST) From: Daichi GOTO <daichi@ongs.gr.jp> To: freebsd-java@FreeBSD.ORG Subject: Cocoon 1.8.2 on Tomcat 3.2.1 Message-ID: <84730698.984706298782.JavaMail.daichi@localhost>
next in thread | raw e-mail | index | archive | help
Anyone can use Cocoon 1.8.2 on Tomcat 3.2.1? I have setuped it but it cannot work. My Installation work: 1. FreeBSD JDK122 install 2. Apache(1.3.19) install 3. Tomcat 3.2.1 install 4. Apache-Tomcat bridge setting (with mod_jk.so) untill here, that works fine. (see about this "Tomcat for BSD (was: RE: Trying to Create a simple Bean)" mail threads) 5. Cocoon 1.8.2 install # fetch http://xml.apache.org/cocoon/dist/Cocoon-1.8.2.tar.gz # tar xzf Cocoon-1.8.2.tar.gz # mkdir /usr/local/cocoon # cp -R ./cocoon-1.8.2/* /usr/local/cocoon/ # cp /usr/local/cocoon/bin/cocoon.jar /usr/local/tomcat/lib/ # cp /usr/local/cocoon/lib/*.jar /usr/local/tomcat/lib/ # cd /usr/local/tomcat/webapps/ # mkdir cocoon # chmod 755 cocoon # cd /usr/local/tomcat/conf/ # vi server.xml (addition follow description) <Context path="/cocoon" docBase="webapps/cocoon" debug="0" reloadable="true"> </Context> # cd /usr/local/tomcat/webapps/cocoon/ # cp -R /usr/local/cocoon/samples ./servlets # mkdir WEB-INF # cd /usr/local/tomcat/webapps/cocoon/WEB-INF/ # cp -R /usr/local/cocoon/src/WEB-INF/* ./ # cp /usr/local/cocoon/conf/cocoon.properties ./ # vi cocoon.properties (change repository setting) processor.xsp.repository = /usr/local/cocoon/repository # mkdir /usr/local/cocoon/repository # vi web.xml (change param-value element value) <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>/WEB-INF/cocoon.properties</param-value> </init-param> </servlet> # vi /usr/local/etc/apache/httpd.conf (addition allow line) JkMount /cocoon/*.xml ajp12 # sh /usr/local/etc/rc.d/tomcat.sh start (this script starts up tomcat and apache correctly) Cocoon 1.8.2 installation is finished. And I access http://127.0.0.1/cocoon/servlets/index.xml, Cocoon outputs error message as follow: ----------------------------------------------------------------------- Publishing Engine could not be initialized. java.lang.RuntimeException: Exception when creating " org.apache.cocoon.processor.xsp.XSPProcessor" : java.lang.NoSuchMethodError: See http://xml.apache.org/cocoon/faqs.html#faq-normalize at org.apache.cocoon.framework.Manager.create(Manager.java:124) at org.apache.cocoon.framework.Router.init(Router.java:80) at org.apache.cocoon.framework.Manager.create(Manager.java:109) at org.apache.cocoon.Engine.<init>(Engine.java:179) at org.apache.cocoon.Engine.getInstance(Engine.java:232) at org.apache.cocoon.Cocoon.init(Cocoon.java:157) at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317) at org.apache.tomcat.core.Handler.init(Handler.java:215) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296) at org.apache.tomcat.core.Handler.service(Handler.java:254) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210) 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:479) ----------------------------------------------------------------------- Daichi T.GOTO(ONGS) http://www.ongs.net/daichi, daichi@ongs.gr.jp To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?84730698.984706298782.JavaMail.daichi>