You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Phillip Rhodes <rh...@yahoo.com> on 2001/12/05 21:04:16 UTC

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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: HelloWorld help (1x newbie)

Posted by Rhys Dixon <rh...@dyxn.net>.
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" <rh...@yahoo.com>
To: <tu...@jakarta.apache.org>
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:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: HelloWorld help (1x newbie)

Posted by Phillip Rhodes <rh...@yahoo.com>.
Thank you.

One missing link was the correct link:

This works.
http://localhost:8080/newapp/servlet/newapp/template/HelloWorld.vm


At 04:05 PM 12/5/2001 -0500, you wrote:
>Sorry that should have been:
>
>D:\tdk\webapps\newapp\WEB-INF\src\java\org\mycompany\newapp\modules\screens\HelloWorld.java
>
>Dan Eyassu
>
>On Wed, 5 Dec 2001, Phillip Rhodes wrote:
>
> > In my D:\tdk\build.properties:
> > target.directory = org/mycompany/newapp
> >
> > Thanks.
> >
> >
> >
> > At 03:43 PM 12/5/2001 -0500, you wrote:
> > >What is your 'target.directory' set to?
> > >
> > >Dan Eyassu
> > >
> > >On Wed, 5 Dec 2001, Phillip Rhodes wrote:
> > >
> > > > My HelloWorld.java is located at
> > > > D:\tdk\webapps\newapp\WEB-INF\src\java\HelloWorld.java
> > > >
> > > > When it is compiled, it is located at
> > > > D:\tdk\webapps\newapp\WEB-INF\classes\HelloWorld.class
> > > >
> > > >
> > > >
> > > >
> > > > At 03:11 PM 12/5/2001 -0500, Dan E. wrote:
> > > > >Where is your HelloWorld.java screen located?
> > > > >
> > > > >Dan Eyassu
> > > > >
> > > > >On Wed, 5 Dec 2001, Phillip Rhodes wrote:
> > > > >
> > > > > > 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:   <ma...@jakarta.apache.org>
> > > > > > For additional commands, e-mail:
> > > > > <ma...@jakarta.apache.org>
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >--
> > > > >To unsubscribe,
> > > e-mail:   <ma...@jakarta.apache.org>
> > > > >For additional commands, e-mail:
> > > > ><ma...@jakarta.apache.org>
> > > >
> > > >
> > > > _________________________________________________________
> > > > Do You Yahoo!?
> > > > Get your free @yahoo.com address at http://mail.yahoo.com
> > > >
> > > >
> > > > --
> > > > To unsubscribe,
> > > e-mail:   <ma...@jakarta.apache.org>
> > > > For additional commands, e-mail:
> > > <ma...@jakarta.apache.org>
> > > >
> > > >
> > >
> > >
> > >--
> > >To unsubscribe, 
> e-mail:   <ma...@jakarta.apache.org>
> > >For additional commands, e-mail:
> > ><ma...@jakarta.apache.org>
> >
> >
> > _________________________________________________________
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://mail.yahoo.com
> >
> >
> > --
> > To unsubscribe, 
> e-mail:   <ma...@jakarta.apache.org>
> > For additional commands, e-mail: 
> <ma...@jakarta.apache.org>
> >
> >
>
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: 
><ma...@jakarta.apache.org>


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: HelloWorld help (1x newbie)

Posted by "Dan E." <ey...@db.erau.edu>.
You need to place your HellowWorld.java like this:

D:\tdk\webapps\newapp\WEB-INF\src\java\org\mycompany\newapp\HelloWorld.java

Dan Eyassu

On Wed, 5 Dec 2001, Phillip Rhodes wrote:

> In my D:\tdk\build.properties:
> target.directory = org/mycompany/newapp
> 
> Thanks.
> 
> 
> 
> At 03:43 PM 12/5/2001 -0500, you wrote:
> >What is your 'target.directory' set to?
> >
> >Dan Eyassu
> >
> >On Wed, 5 Dec 2001, Phillip Rhodes wrote:
> >
> > > My HelloWorld.java is located at
> > > D:\tdk\webapps\newapp\WEB-INF\src\java\HelloWorld.java
> > >
> > > When it is compiled, it is located at
> > > D:\tdk\webapps\newapp\WEB-INF\classes\HelloWorld.class
> > >
> > >
> > >
> > >
> > > At 03:11 PM 12/5/2001 -0500, Dan E. wrote:
> > > >Where is your HelloWorld.java screen located?
> > > >
> > > >Dan Eyassu
> > > >
> > > >On Wed, 5 Dec 2001, Phillip Rhodes wrote:
> > > >
> > > > > 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:   <ma...@jakarta.apache.org>
> > > > > For additional commands, e-mail:
> > > > <ma...@jakarta.apache.org>
> > > > >
> > > > >
> > > >
> > > >
> > > >--
> > > >To unsubscribe, 
> > e-mail:   <ma...@jakarta.apache.org>
> > > >For additional commands, e-mail:
> > > ><ma...@jakarta.apache.org>
> > >
> > >
> > > _________________________________________________________
> > > Do You Yahoo!?
> > > Get your free @yahoo.com address at http://mail.yahoo.com
> > >
> > >
> > > --
> > > To unsubscribe, 
> > e-mail:   <ma...@jakarta.apache.org>
> > > For additional commands, e-mail: 
> > <ma...@jakarta.apache.org>
> > >
> > >
> >
> >
> >--
> >To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> >For additional commands, e-mail: 
> ><ma...@jakarta.apache.org>
> 
> 
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 
> 


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: HelloWorld help (1x newbie)

Posted by "Dan E." <ey...@db.erau.edu>.
Sorry that should have been:

D:\tdk\webapps\newapp\WEB-INF\src\java\org\mycompany\newapp\modules\screens\HelloWorld.java

Dan Eyassu

On Wed, 5 Dec 2001, Phillip Rhodes wrote:

> In my D:\tdk\build.properties:
> target.directory = org/mycompany/newapp
> 
> Thanks.
> 
> 
> 
> At 03:43 PM 12/5/2001 -0500, you wrote:
> >What is your 'target.directory' set to?
> >
> >Dan Eyassu
> >
> >On Wed, 5 Dec 2001, Phillip Rhodes wrote:
> >
> > > My HelloWorld.java is located at
> > > D:\tdk\webapps\newapp\WEB-INF\src\java\HelloWorld.java
> > >
> > > When it is compiled, it is located at
> > > D:\tdk\webapps\newapp\WEB-INF\classes\HelloWorld.class
> > >
> > >
> > >
> > >
> > > At 03:11 PM 12/5/2001 -0500, Dan E. wrote:
> > > >Where is your HelloWorld.java screen located?
> > > >
> > > >Dan Eyassu
> > > >
> > > >On Wed, 5 Dec 2001, Phillip Rhodes wrote:
> > > >
> > > > > 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:   <ma...@jakarta.apache.org>
> > > > > For additional commands, e-mail:
> > > > <ma...@jakarta.apache.org>
> > > > >
> > > > >
> > > >
> > > >
> > > >--
> > > >To unsubscribe, 
> > e-mail:   <ma...@jakarta.apache.org>
> > > >For additional commands, e-mail:
> > > ><ma...@jakarta.apache.org>
> > >
> > >
> > > _________________________________________________________
> > > Do You Yahoo!?
> > > Get your free @yahoo.com address at http://mail.yahoo.com
> > >
> > >
> > > --
> > > To unsubscribe, 
> > e-mail:   <ma...@jakarta.apache.org>
> > > For additional commands, e-mail: 
> > <ma...@jakarta.apache.org>
> > >
> > >
> >
> >
> >--
> >To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> >For additional commands, e-mail: 
> ><ma...@jakarta.apache.org>
> 
> 
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 
> 


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: HelloWorld help (1x newbie)

Posted by Phillip Rhodes <rh...@yahoo.com>.
In my D:\tdk\build.properties:
target.directory = org/mycompany/newapp

Thanks.



At 03:43 PM 12/5/2001 -0500, you wrote:
>What is your 'target.directory' set to?
>
>Dan Eyassu
>
>On Wed, 5 Dec 2001, Phillip Rhodes wrote:
>
> > My HelloWorld.java is located at
> > D:\tdk\webapps\newapp\WEB-INF\src\java\HelloWorld.java
> >
> > When it is compiled, it is located at
> > D:\tdk\webapps\newapp\WEB-INF\classes\HelloWorld.class
> >
> >
> >
> >
> > At 03:11 PM 12/5/2001 -0500, Dan E. wrote:
> > >Where is your HelloWorld.java screen located?
> > >
> > >Dan Eyassu
> > >
> > >On Wed, 5 Dec 2001, Phillip Rhodes wrote:
> > >
> > > > 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:   <ma...@jakarta.apache.org>
> > > > For additional commands, e-mail:
> > > <ma...@jakarta.apache.org>
> > > >
> > > >
> > >
> > >
> > >--
> > >To unsubscribe, 
> e-mail:   <ma...@jakarta.apache.org>
> > >For additional commands, e-mail:
> > ><ma...@jakarta.apache.org>
> >
> >
> > _________________________________________________________
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://mail.yahoo.com
> >
> >
> > --
> > To unsubscribe, 
> e-mail:   <ma...@jakarta.apache.org>
> > For additional commands, e-mail: 
> <ma...@jakarta.apache.org>
> >
> >
>
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: 
><ma...@jakarta.apache.org>


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: HelloWorld help (1x newbie)

Posted by "Dan E." <ey...@db.erau.edu>.
What is your 'target.directory' set to?

Dan Eyassu

On Wed, 5 Dec 2001, Phillip Rhodes wrote:

> My HelloWorld.java is located at
> D:\tdk\webapps\newapp\WEB-INF\src\java\HelloWorld.java
> 
> When it is compiled, it is located at
> D:\tdk\webapps\newapp\WEB-INF\classes\HelloWorld.class
> 
> 
> 
> 
> At 03:11 PM 12/5/2001 -0500, Dan E. wrote:
> >Where is your HelloWorld.java screen located?
> >
> >Dan Eyassu
> >
> >On Wed, 5 Dec 2001, Phillip Rhodes wrote:
> >
> > > 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:   <ma...@jakarta.apache.org>
> > > For additional commands, e-mail: 
> > <ma...@jakarta.apache.org>
> > >
> > >
> >
> >
> >--
> >To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> >For additional commands, e-mail: 
> ><ma...@jakarta.apache.org>
> 
> 
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 
> 


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: HelloWorld help (1x newbie)

Posted by Phillip Rhodes <rh...@yahoo.com>.
My HelloWorld.java is located at
D:\tdk\webapps\newapp\WEB-INF\src\java\HelloWorld.java

When it is compiled, it is located at
D:\tdk\webapps\newapp\WEB-INF\classes\HelloWorld.class




At 03:11 PM 12/5/2001 -0500, Dan E. wrote:
>Where is your HelloWorld.java screen located?
>
>Dan Eyassu
>
>On Wed, 5 Dec 2001, Phillip Rhodes wrote:
>
> > 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:   <ma...@jakarta.apache.org>
> > For additional commands, e-mail: 
> <ma...@jakarta.apache.org>
> >
> >
>
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: 
><ma...@jakarta.apache.org>


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: HelloWorld help (1x newbie)

Posted by "Dan E." <ey...@db.erau.edu>.
Where is your HelloWorld.java screen located?

Dan Eyassu

On Wed, 5 Dec 2001, Phillip Rhodes wrote:

> 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:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 
> 


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>