Hello,
I'm trying to install Cocoon under Jetty. I want to replace Tomcat by Jetty if
possible and therefor I don't want to use Cocoon's embedded Jetty server. The
latest stable release of Jetty is version 5.1.10 and there's a beta-release of
Jetty6, version 6.0.0beta14. The manual of Jetty6 says I should be able to
deploy a .war file by copying the .war file to the webapps dir and start
Jetty. Jetty does unpack and run Cocoon. I can see the welcome page of Cocoon
if I point my browser to http://localhost:8180/cocoon/ and I can run the
samples, but Cocoon is unpacked in directory /tmp/Jetty__cocoon. In version
5.1.10 of Jetty, if I copy the cocoon.war file in the webapps dir and start
Jetty, the .war-file is unpacked in Jetty's work/Jetty__8180__cocoon
directory, but pointing my browser to http://localhost:8180/cocoon/ (I changed
the port to 8180 in file etc/jetty.xml) now results in http error 404
'/cocoon/ Not Found'.
I guess I have to make changes to the etc/jetty.xml file. Has anyone here
managed to get Cocoon 2.1.9 running under Jetty 5.1 or Jetty6 beta.
Unpacking Cocoon 2.1.9 under Jetty 5.1.10 results in three warnings like
these:
20:14:17.807 INFO [main]
org.mortbay.jetty.servlet.WebApplicationContext.resolveWebApp(WebApplicationContext.java:248)
>13> Extract jar:file:/home/jetty/jetty-5.1.10/webapps/javadoc.war!/ to
/home/jetty/jetty-5.1.10/work/Jetty__8180__javadoc/webapp
20:14:18.446 INFO [main] org.mortbay.util.Container.start(Container.java:74)
>15> Started [EMAIL PROTECTED]
20:14:18.448 INFO [main] org.mortbay.util.Container.start(Container.java:74)
>11> Started WebApplicationContext[/javadoc,/javadoc]
20:14:18.459 INFO [main]
org.mortbay.http.SocketListener.start(SocketListener.java:204) >11> Started
SocketListener on 0.0.0.0:8180
20:14:18.460 WARN!! [main] org.mortbay.jetty.Server.main(Server.java:465) >08>
EXCEPTION
org.mortbay.util.MultiException[org.apache.xerces.impl.dv.DVFactoryException:
DTD factory class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not
extend from DTDDVFactory.]
at org.mortbay.http.HttpServer.doStart(HttpServer.java:686)
at org.mortbay.util.Container.start(Container.java:72)
at org.mortbay.jetty.Server.main(Server.java:460)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[...]
Unpacking Cocoon 2.1.9 under Jetty 6.0.0beta14 results in these warnings:
:INFO: Extract jar:file:/home/jetty/jetty-6.0.0beta14/webapps/cocoon.war!/ to
/tmp/Jetty__cocoon/webapp
:WARN: EXCEPTION
java.io.FileNotFoundException:
http://java.sun.com/j2ee/dtds/web-jsptaglib_1_1.dtd
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1147)
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown
Source)
at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown
Source)
at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown
Source)
[...]
INFO [main] (DirectSchedulerFactory.java:333) - Quartz scheduler version:
1.5.1
INFO [main] (QuartzScheduler.java:400) - Scheduler
Cocoon_$_Fri_May_05_20:02:14_CEST_2006 started.
WARN! *** JMS block is installed but jms client library not found. ***
- For the jms block to work you must install and start a JMS server and place
the client jar in WEB-INF/lib.
- The default server, OpenJMS is configured in cocoon.xconf but is not bundled
with Cocoon.
:WARN: failed Xindice
:WARN: failed [EMAIL PROTECTED]/cocoon,file:/tmp/Jetty__cocoon/webapp/}
:INFO: Started SocketConnector @ 0.0.0.0:8181
:INFO: Started SelectChannelConnector @ 0.0.0.0:8180
:WARN: failed [EMAIL PROTECTED]
:WARN: EXCEPTION
org.apache.xindice.util.ConfigurationException: Failed to load configuration.
at
org.apache.xindice.server.XindiceServlet.loadConfiguration(XindiceServlet.java:258)
at
org.apache.xindice.server.XindiceServlet.init(XindiceServlet.java:103)
at
org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:377)
at
org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:234)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:37)
at
org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:563)
at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:974)
at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:341)
at
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:368)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:37)
at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:133)
at org.mortbay.jetty.Server.doStart(Server.java:256)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:37)
at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:900)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.mortbay.start.Main.invokeMain(Main.java:167)
at org.mortbay.start.Main.start(Main.java:491)
at org.mortbay.start.Main.main(Main.java:108)
Caused by: java.lang.NullPointerException
at
org.apache.xindice.server.XindiceServlet.loadConfiguration(XindiceServlet.java:247)
... 20 more
Caused by: java.lang.NullPointerException
at
org.apache.xindice.server.XindiceServlet.loadConfiguration(XindiceServlet.java:247)
at
org.apache.xindice.server.XindiceServlet.init(XindiceServlet.java:103)
at
org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:377)
at
org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:234)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:37)
at
org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:563)
at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:974)
at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:341)
at
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:368)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:37)
at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:133)
at org.mortbay.jetty.Server.doStart(Server.java:256)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:37)
at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:900)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.mortbay.start.Main.invokeMain(Main.java:167)
at org.mortbay.start.Main.start(Main.java:491)
at org.mortbay.start.Main.main(Main.java:108)
I'm using SUN's Java 1.5.0_06 under OpenSuse 10.0 on a Pentium IV.
Any help is really appreciated.
Fred
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]