hi,

you have to set your "classpath" in turbine
your TurbineResources.properties has an entry like this:

module.packages=org.mycompany.newapp.modules,org.apache.turbine.flux.modules

these are the packages that get searched when matching a .vm to java class.

make your java have a package and name it in the module.packages or just add
it to an existing package.
ie: WEB-INF/src/java/org/mycompany/modules/screens

regards
rhys


----- Original Message -----
From: "Phillip Rhodes" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 05, 2001 3:04 PM
Subject: HelloWorld help (1x newbie)


> Sorry, seem to be stuck.  Read through all the previous posts!
>
> I have successfully did the "newapp" example with the TDK.
> I can successfully access the application via:
> http://localhost:8080/newapp/servlet/newapp
>
> I then created D:\tdk\webapps\newapp\WEB-INF\src\java\HelloWorld.java
> HelloWorld.java is NOT in a package, as in the example.
> I run ant and HelloWorld is compiled to
> D:\tdk\webapps\newapp\WEB-INF\classes\HelloWorld.class
>
> I then created D:\tdk\webapps\newapp\templates\app\screens\HelloWorld.vm
> This is as it is in the example
>
> According to
> http://jakarta.apache.org/turbine/turbine-2/howto/velocity-site-howto.html
> I should be running by now, but it is not working.
>
> I bounce tomcat, but still keep getting a 404 or the default turbine
screen.
>
> http://localhost:8080/servlet/Turbine/template/HelloWorld.vm
> Gives 404
>
> http://localhost:8080/newapp/servlet/Turbine/template/HelloWorld.vm
> Gives 404
>
> http://localhost:8080/newapp/servlet/newapp/HelloWorld.vm
> Shows default turbine screen, no helloworld
>
>
>
>
>
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to