Do you have any idea how I can make it available?  It compiles so the compiler
found it.  The jar file is in the classpath that Tomcat is using.  It worked in
iPlanet, all I had to do was put the jar in iPlanets classpath.

Do you think I need to move the freemarker.jar file to $TOMCAT_HOME/lib?  I
think I will try that.
Kitching Simon wrote:

> 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:[EMAIL PROTECTED]]
> > Sent: Friday, October 20, 2000 3:37 PM
> > To:   [EMAIL PROTECTED]
> > Cc:   [EMAIL PROTECTED]
> > 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
> > [EMAIL PROTECTED]      | Nashville, TN 37235
> > ICQ: 16776519                           | (615) 343-7358
> >

--
Steven Ford                             | Vanderbilt University
MIS Consultant                          | Box 1511 Station B
[EMAIL PROTECTED]      | Nashville, TN 37235
ICQ: 16776519                           | (615) 343-7358



Reply via email to