tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kitching Simon <Simon.Kitch...@orange.ch>
Subject RE: java.lang.NoClassDefFoundError:
Date Fri, 20 Oct 2000 14:02:25 GMT
Hi Steven,

It looks to me like your TemplateModel class actually
is a native method wrapper, and that the native-code
library that that wrapper class is supposed to load 
cannot be found. 

Just my guess..

Simon

> -----Original Message-----
> From:	Steven Ford [SMTP:steven.ford@vanderbilt.edu]
> Sent:	Friday, October 20, 2000 3:37 PM
> To:	tomcat-user@jakarta.apache.org
> Cc:	harendt@users.sourceforge.net
> Subject:	java.lang.NoClassDefFoundError:
> 
> I have a servlet that uses a Freemarker HTML template engine.  It compiles
> and 
> it worked fine in iPlanet.  When I switched to Tomcat I get the 
> following error: 
> 
> Error: 500 
> 
> Location: /dvdclub/addDVD 
> 
> Internal Servlet Error: 
> 
> java.lang.NoClassDefFoundError: freemarker/template/TemplateModel 
>  at java.lang.ClassLoader.resolveClass0(Native Method) 
>  at java.lang.ClassLoader.resolveClass(ClassLoader.java, Compiled Code) 
>  at 
> org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader
> .java, 
> Compiled Code) 
>         at 
> org.apache.tomcat.loader.AdaptiveServletLoader.loadClass(AdaptiveServletLo
> ader.java, 
> Compiled Code) 
>         at 
> org.apache.tomcat.core.ServletWrapper.initServlet(ServletWrapper.java, 
> Compiled Code) 
>         at 
> org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java, 
> Compiled Code) 
>         at 
> org.apache.tomcat.core.ContextManager.service(ContextManager.java, 
> Compiled Code) 
>         at 
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Htt
> pConnectionHandler.java, 
> Compiled Code) 
>         at 
> org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java, 
> Compiled Code) 
>         at java.lang.Thread.run(Thread.java, Compiled Code) 
> 
> my freemarker.jar is in my classpath and when I start Tomcat I see that 
> it is in the classpath it is using. 
> 
> Do I have to register the class in web.xml??  It's not a servlet just a 
> class that the servlet uses. 
> -- 
> Steven Ford                             | Vanderbilt University
> MIS Consultant                          | Box 1511 Station B
> steven.ford@vanderbilt.edu      | Nashville, TN 37235
> ICQ: 16776519                           | (615) 343-7358
>  

Mime
View raw message