Apologies if this is too stupid for a response but......
I'm new to Velocity and have just tried the servlet example which I can't
get to work.
I'm using Tomcat 4.x.x and have created the webapp directory as described in
the readme:-
-> velexample
sample.vm
-> WEB-INF
-> classes
SampleServlet.class
-> lib
velocity-1.4.jar
I've created the context in Tomcat:-
<Context path="/velexample"
docBase="E:\Useful
Stuff\Java\Velocity\velocity-1.4\examples\servlet_example1\velexample"
debug="1" reloadable="false"> </Context>
When I try and run the servlet with
http://localhost:8080/velexample/servlet/SampleServlet
I get the following error:-
java.lang.NoClassDefFoundError
at org.apache.velocity.app.Velocity.init(Velocity.java:106)
at
org.apache.velocity.servlet.VelocityServlet.initVelocity(VelocityServlet.jav
a:193)
at
org.apache.velocity.servlet.VelocityServlet.init(VelocityServlet.java:162)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:91
8)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:655)
at
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java
:415)
..................
Now I'm assuming that it can't find a class file or jar, but which one. The
class compiled ok using a simple javac command (not using Ant).
I realise this is pretty basic so apologies.......
Steve
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]