tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Grotzke <martin.grot...@javakaffee.de>
Subject Re: How to access webapp classes from a Context/Manager implementation (jar located in in $CATALINA_HOME/lib/)
Date Mon, 11 Jan 2010 00:42:04 GMT
On Mon, 2010-01-11 at 02:54 +0300, Konstantin Kolinko wrote:
> 2010/1/10 Martin Grotzke <martin.grotzke@javakaffee.de>:
> > Hi,
> >
> > Jan 10, 2010 2:57:51 PM org.apache.catalina.connector.CoyoteAdapter service
> > SEVERE: An exception or error occurred in the container during the request processing
> > java.lang.NoClassDefFoundError: org/joda/time/format/ISODateTimeFormat
> >        at de.javakaffee.web.msm.serializer.javolution.JodaDateTimeFormat.<clinit>(JodaDateTimeFormat.java:35)
> >        at java.lang.Class.forName0(Native Method)
> >        at java.lang.Class.forName(Class.java:247)
> 
> So, JodaDateTimeFormat was found and its <clinit> was called,
> but ISODateTimeFormat was not.
JodaDateTimeFormat is the joda DateTime serializer shipped with the
memcached-session-manager (msm), which should be used/activated if joda
is available in the webapp classpath.

ISODateTimeFormat is a class provided by joda.

> 
> Where have you placed your joda jar?
The joda jar is placed in WEB-INF/lib of the application. I don't want
to have this in $CATALINA_HOME/lib as joda serialization shall only be
supported if it's required by the webapp.
The JodaDateTimeFormat comes with the msm jar located in tomcat's lib.

> 
> Also please read
> http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html
I've already done that, but I didn't find the information to solve this
issue. Also reading again didn't help ;-)

Thanx && cheers,
Martin


> 
> Best regards,
> Konstantin Kolinko
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 

Mime
View raw message