tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steven Ford <steven.f...@vanderbilt.edu>
Subject java.lang.NoClassDefFoundError:
Date Fri, 20 Oct 2000 13:36:48 GMT
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
I have a servlet that uses a Freemarker HTML template engine.&nbsp; It
compiles and
<br>it worked fine in iPlanet.&nbsp; When I switched to Tomcat I get the
<br>following error:
<p>Error: 500
<p>Location: /dvdclub/addDVD
<p>Internal Servlet Error:
<p>java.lang.NoClassDefFoundError: freemarker/template/TemplateModel
<br>&nbsp;at java.lang.ClassLoader.resolveClass0(Native Method)
<br>&nbsp;at java.lang.ClassLoader.resolveClass(ClassLoader.java, Compiled
Code)
<br>&nbsp;at
<br>org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.java,
<br>Compiled Code)
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
<br>org.apache.tomcat.loader.AdaptiveServletLoader.loadClass(AdaptiveServletLoader.java,
<br>Compiled Code)
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
<br>org.apache.tomcat.core.ServletWrapper.initServlet(ServletWrapper.java,
<br>Compiled Code)
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
<br>org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java,
<br>Compiled Code)
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
<br>org.apache.tomcat.core.ContextManager.service(ContextManager.java,
<br>Compiled Code)
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
<br>org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java,
<br>Compiled Code)
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
<br>org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java,
<br>Compiled Code)
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.lang.Thread.run(Thread.java,
Compiled Code)
<p>my freemarker.jar is in my classpath and when I start Tomcat I see that
<br>it is in the classpath it is using.
<p>Do I have to register the class in web.xml??&nbsp; It's not a servlet
just a
<br>class that the servlet uses.
<pre>--&nbsp;
Steven Ford&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
| Vanderbilt University
MIS Consultant&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
| Box 1511 Station B
steven.ford@vanderbilt.edu&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | Nashville,
TN 37235
ICQ: 16776519&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
| (615) 343-7358</pre>
&nbsp;</html>


Mime
View raw message