cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Deploying a Cocoon 2.2 webapp in Tomcat 6.0.20
Date Mon, 04 Oct 2010 15:25:27 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Florian,

On 10/4/2010 7:01 AM, Florian Schmitt wrote:
> i'm quite new regarding cocoon 2.2 and i'm stuck trying to deploy a
> Cocoon 2.2 webapp in Tomcat 6.0.20.

Ok.

> I followed those steps to create a minimal webapp :

Good. If you have a WAR file, then you should be done with the
Cocoon-related steps.

> - Tomcat log contains the stacktrace attached.
> 
> I found some hints online regarding class loaders, but i'm not
> experienced enough to fix this on my own.

These issues can sometimes be complex: note that the server can't find
javax/servlet/ServletContextListener, which is a pretty intrinsic class
for a servlet container.

> I tried to add
> 
> <dependency>
> <groupId>javax.servlet</groupId>
> <artifactId>servlet-api</artifactId>
> <version>2.5</version>
> </dependency>
> 
> to webapp/pom.xml because it seems that Tomcat can't find the
> javax.servlet.ServletContextListener class, but that didn't help.

This is unlikely to help: Tomcat doesn't use pom.xml for anything: only
Maven and the compilation/build steps use it. If your code has complied
properly, then your pom.xml should be good to go.

Can you tell us how you installed Tomcat? Please list the libraries in
TOMCAT_HOME/lib and also (all) the libraries in your WAR file's
WEB-INF/lib directory.

It might also be a good idea to cross-post to users@tomcat.apache.org.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyp8ecACgkQ9CaO5/Lv0PCn/wCgtXHghVzdRxZtY56R6h3Ju7jJ
xuAAn3nCXbKzWJDiKvPWnvkY0qxVjOCU
=K0FI
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message