cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Borut ┼Żagar [] <>
Subject Structuring WEB-INF/lib
Date Wed, 18 May 2005 23:20:47 GMT
We are developing web application with Cocoon, Spring and Hibernate to be
run under JBoss AS. Since we have a lot of external JARS in WEB-INF/lib
directory, we want to structure this directory a bit. Idea is to make
subdirectories in WEB-INF/lib for spring, hibernate, cocoon, etc JARs
instead of keeping them all in a single directory.
In WEB-INF/web.xml I have defined extra-classpath param as follows:

We have also defined our own ContextLoaderListener in web.xml as following:


The problem is when I run JBoss AS, the following error occurs:
01:04:05,729 ERROR [Engine] StandardContext[]Error configuring application
listener of class org.aso
java.lang.ClassNotFoundException: org.asolsme.webapp.Initializer
Error occurs, because our class org.asolsme.webapp.Initializer is
referencing org.springframework..., which is not in classpath I presume.
But if I put Spring JARs in WEB-INF/lib, JBoss AS starts OK. It looks like
the extra-classpath param is ignored.
Can some1 offer advice on how to solve this?

View raw message