26.7.07

OpenCMS 7.0.1 and Jetty

Finally had some time to play around with OpenCMS again. This time trying to get OpenCMS running on Jetty servlet engine.

Installing on Jetty is pretty straight forward. Just downloaded the OpenCMS zip file, unpacked the war file under $JETTY_HOME/webapps/opencms and extracted the war file with jar xvf opencms.war.

After bouncing the Jetty engine and trying to startup the OpenCMS setup screen I got an exception:

2007-07-25 19:21:06.019::WARN:  EXCEPTION
javax.servlet.ServletException: Critical error during OpenCms initialization: The OpenCms setup wizard is still enabled.
        at org.opencms.main.OpenCmsServlet.init(OpenCmsServlet.java:262)
        at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:400)
...

This actually caused the whole Jetty engine to misbehave since I could not any more use other applications on the Servlet engine. And naturally the OpenCMS could not be started at all.

Downloaded the source code from read-only CVS repository and looked at the problem. This seems to be the same issue as with BEA WL9, so I needed to uncomment the "OnErrorExitWithoutException" parameter setting under $JETTY_HOME/webapps/opencms/WEB-INF/web.xml.

After uncommenting the servlet parameter and bouncing the Jetty engine I was able to startup OpenCMS setup screen successfully.

1 comment:

govind said...

Hi Harri

Un - Commenting part is only if your using BEA WLS 9.x ??

I am also getting this exception on server startup . using jboss 4.2.0GA and mysql 5.1X

Any comments