You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ben Walding <be...@walding.com> on 2002/08/10 10:10:40 UTC

Re: new to tomcat

Possibly :
You should have called the dir webapps

not webaaps

Although this is probably just a typo in your email :)

Amit Luktuke wrote:

>hello 
>
>I am very new to Tomcat4.0.
>I have successfully installed tomcat4.0 on my machine but can not able to run simple HelloWorld.jsp file.
>
>I have put it in folder 
>C:\Tomcat4.0\webaaps\TestJSP\Helloworld.jsp
>
                               webapps

>
>On brower ..
>http://localhost:8080/TestJSP/Helloworld.jsp
>
>My O.S is windows 2000 professional & i have JDK1.3 installed.
>
>Can anyone help me
>
>
>Regards
>
>Amit Luktuke
>
>
>  
>




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


Re: new to tomcat

Posted by Cédric Viaud <ce...@matrasi-tls.fr>.
No,

you can deploy it everywhere, but if you do so, you have to declare your
application in the %TOMCAT_COME%/conf/server.xml

At the end, of the file INSIDE the <HOST></HOST> element, add something like
the following :
<context path="/applicallname" docBase="d:/applidir/everywhereyouwant"
debug="0" reloadable="true" crossContext="false"/>

So you can next call your appli by "http://localhost:8080/applicallname" and
have your sources in "d:/applidir/everywhereyouwant".

Beware of NT and slashes "/" may become "\"

Regards,

    Cédric

----- Original Message -----
From: "Vishal Mukherjee" <VM...@indorama.co.in>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Monday, August 12, 2002 2:25 PM
Subject: Re: new to tomcat


> hi
> Is it necessary to deploy the application under webapps directory only.
> Regards
> Vishal
>
> ----- Original Message -----
> From: "Michael E. Locasto" <lo...@cs.columbia.edu>
> To: "Tomcat Users List" <to...@jakarta.apache.org>
> Sent: Monday, August 12, 2002 6:04 PM
> Subject: Re: new to tomcat
>
>
> Amit,
>
> > But when i create  TESTJSP directory under
> > Tomcat4.0
> >         ----- webapps
> >                 ------- TESTJSP
> >                         -------  HelloWorld.jsp
>
> did you restart Tomcat after you created that directory and put the jsp in
> it?
>
> You don't need a Context entry in server.xml for directories under
webapps/
> ...
> they will get loaded automagically at startup.
>
> Regards,
> Michael
>
>
> >
> > & try to view in browser ..
> > http://localhost:8080/TESTJSP/HelloWorld.jsp
> >
> > it gives error saying HTTP 404 error .. requested resources are not
> > available..
> > Can u tell me what type of error is it?
> >
> > regards
> >
> > Amit Luktuke
> >
> >
> >
> > ----- Original Message -----
> > From: "Ben Walding" <be...@walding.com>
> > To: "Tomcat Users List" <to...@jakarta.apache.org>
> > Sent: Saturday, August 10, 2002 1:40 PM
> > Subject: Re: new to tomcat
> >
> >
> > > Possibly :
> > > You should have called the dir webapps
> > >
> > > not webaaps
> > >
> > > Although this is probably just a typo in your email :)
> > >
> > > Amit Luktuke wrote:
> > >
> > > >hello
> > > >
> > > >I am very new to Tomcat4.0.
> > > >I have successfully installed tomcat4.0 on my machine but can not
able
> to
> > run simple HelloWorld.jsp file.
> > > >
> > > >I have put it in folder
> > > >C:\Tomcat4.0\webaaps\TestJSP\Helloworld.jsp
> > > >
> > >                                webapps
> > >
> > > >
> > > >On brower ..
> > > >http://localhost:8080/TestJSP/Helloworld.jsp
> > > >
> > > >My O.S is windows 2000 professional & i have JDK1.3 installed.
> > > >
> > > >Can anyone help me
> > > >
> > > >
> > > >Regards
> > > >
> > > >Amit Luktuke
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > >
> > > --
> > > 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>
>
>
> --
> 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>
>


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


Re: new to tomcat

Posted by "Michael E. Locasto" <lo...@cs.columbia.edu>.
No sir, you can pretty much put the directory any place you want, as long as
you then specify a <Context> entry telling Tomcat where to find it.

Regards,
Michael


----- Original Message -----
From: "Vishal Mukherjee" <VM...@indorama.co.in>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Monday, August 12, 2002 8:25 AM
Subject: Re: new to tomcat


> hi
> Is it necessary to deploy the application under webapps directory only.
> Regards
> Vishal
>
> ----- Original Message -----
> From: "Michael E. Locasto" <lo...@cs.columbia.edu>
> To: "Tomcat Users List" <to...@jakarta.apache.org>
> Sent: Monday, August 12, 2002 6:04 PM
> Subject: Re: new to tomcat
>
>
> Amit,
>
> > But when i create  TESTJSP directory under
> > Tomcat4.0
> >         ----- webapps
> >                 ------- TESTJSP
> >                         -------  HelloWorld.jsp
>
> did you restart Tomcat after you created that directory and put the jsp in
> it?
>
> You don't need a Context entry in server.xml for directories under
webapps/
> ...
> they will get loaded automagically at startup.
>
> Regards,
> Michael
>
>
> >
> > & try to view in browser ..
> > http://localhost:8080/TESTJSP/HelloWorld.jsp
> >
> > it gives error saying HTTP 404 error .. requested resources are not
> > available..
> > Can u tell me what type of error is it?
> >
> > regards
> >
> > Amit Luktuke
> >
> >
> >
> > ----- Original Message -----
> > From: "Ben Walding" <be...@walding.com>
> > To: "Tomcat Users List" <to...@jakarta.apache.org>
> > Sent: Saturday, August 10, 2002 1:40 PM
> > Subject: Re: new to tomcat
> >
> >
> > > Possibly :
> > > You should have called the dir webapps
> > >
> > > not webaaps
> > >
> > > Although this is probably just a typo in your email :)
> > >
> > > Amit Luktuke wrote:
> > >
> > > >hello
> > > >
> > > >I am very new to Tomcat4.0.
> > > >I have successfully installed tomcat4.0 on my machine but can not
able
> to
> > run simple HelloWorld.jsp file.
> > > >
> > > >I have put it in folder
> > > >C:\Tomcat4.0\webaaps\TestJSP\Helloworld.jsp
> > > >
> > >                                webapps
> > >
> > > >
> > > >On brower ..
> > > >http://localhost:8080/TestJSP/Helloworld.jsp
> > > >
> > > >My O.S is windows 2000 professional & i have JDK1.3 installed.
> > > >
> > > >Can anyone help me
> > > >
> > > >
> > > >Regards
> > > >
> > > >Amit Luktuke
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > >
> > > --
> > > 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>
>
>
> --
> 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>


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


Re: new to tomcat

Posted by Vishal Mukherjee <VM...@indorama.co.in>.
hi
Is it necessary to deploy the application under webapps directory only.
Regards
Vishal

----- Original Message -----
From: "Michael E. Locasto" <lo...@cs.columbia.edu>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Monday, August 12, 2002 6:04 PM
Subject: Re: new to tomcat


Amit,

> But when i create  TESTJSP directory under
> Tomcat4.0
>         ----- webapps
>                 ------- TESTJSP
>                         -------  HelloWorld.jsp

did you restart Tomcat after you created that directory and put the jsp in
it?

You don't need a Context entry in server.xml for directories under webapps/
...
they will get loaded automagically at startup.

Regards,
Michael


>
> & try to view in browser ..
> http://localhost:8080/TESTJSP/HelloWorld.jsp
>
> it gives error saying HTTP 404 error .. requested resources are not
> available..
> Can u tell me what type of error is it?
>
> regards
>
> Amit Luktuke
>
>
>
> ----- Original Message -----
> From: "Ben Walding" <be...@walding.com>
> To: "Tomcat Users List" <to...@jakarta.apache.org>
> Sent: Saturday, August 10, 2002 1:40 PM
> Subject: Re: new to tomcat
>
>
> > Possibly :
> > You should have called the dir webapps
> >
> > not webaaps
> >
> > Although this is probably just a typo in your email :)
> >
> > Amit Luktuke wrote:
> >
> > >hello
> > >
> > >I am very new to Tomcat4.0.
> > >I have successfully installed tomcat4.0 on my machine but can not able
to
> run simple HelloWorld.jsp file.
> > >
> > >I have put it in folder
> > >C:\Tomcat4.0\webaaps\TestJSP\Helloworld.jsp
> > >
> >                                webapps
> >
> > >
> > >On brower ..
> > >http://localhost:8080/TestJSP/Helloworld.jsp
> > >
> > >My O.S is windows 2000 professional & i have JDK1.3 installed.
> > >
> > >Can anyone help me
> > >
> > >
> > >Regards
> > >
> > >Amit Luktuke
> > >
> > >
> > >
> > >
> >
> >
> >
> >
> > --
> > 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>


--
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: new to tomcat

Posted by "Michael E. Locasto" <lo...@cs.columbia.edu>.
Amit,

> But when i create  TESTJSP directory under
> Tomcat4.0
>         ----- webapps
>                 ------- TESTJSP
>                         -------  HelloWorld.jsp

did you restart Tomcat after you created that directory and put the jsp in
it?

You don't need a Context entry in server.xml for directories under webapps/
...
they will get loaded automagically at startup.

Regards,
Michael


>
> & try to view in browser ..
> http://localhost:8080/TESTJSP/HelloWorld.jsp
>
> it gives error saying HTTP 404 error .. requested resources are not
> available..
> Can u tell me what type of error is it?
>
> regards
>
> Amit Luktuke
>
>
>
> ----- Original Message -----
> From: "Ben Walding" <be...@walding.com>
> To: "Tomcat Users List" <to...@jakarta.apache.org>
> Sent: Saturday, August 10, 2002 1:40 PM
> Subject: Re: new to tomcat
>
>
> > Possibly :
> > You should have called the dir webapps
> >
> > not webaaps
> >
> > Although this is probably just a typo in your email :)
> >
> > Amit Luktuke wrote:
> >
> > >hello
> > >
> > >I am very new to Tomcat4.0.
> > >I have successfully installed tomcat4.0 on my machine but can not able
to
> run simple HelloWorld.jsp file.
> > >
> > >I have put it in folder
> > >C:\Tomcat4.0\webaaps\TestJSP\Helloworld.jsp
> > >
> >                                webapps
> >
> > >
> > >On brower ..
> > >http://localhost:8080/TestJSP/Helloworld.jsp
> > >
> > >My O.S is windows 2000 professional & i have JDK1.3 installed.
> > >
> > >Can anyone help me
> > >
> > >
> > >Regards
> > >
> > >Amit Luktuke
> > >
> > >
> > >
> > >
> >
> >
> >
> >
> > --
> > 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>


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


Re: new to tomcat

Posted by Amit Luktuke <Am...@egenietech.com>.
Hello Ben..
That was my type error only..
I have created HelloWorld.jsp & compile it
When i put it in ROOT folder of Tomcat4.0 &
view in browse ..
http://localhost:8080/HelloWorld.jsp
it works.............

But when i create  TESTJSP directory under
Tomcat4.0
        ----- webapps
                ------- TESTJSP
                        -------  HelloWorld.jsp

& try to view in browser ..
http://localhost:8080/TESTJSP/HelloWorld.jsp

it gives error saying HTTP 404 error .. requested resources are not
available..
Can u tell me what type of error is it?

regards

Amit Luktuke



----- Original Message -----
From: "Ben Walding" <be...@walding.com>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Saturday, August 10, 2002 1:40 PM
Subject: Re: new to tomcat


> Possibly :
> You should have called the dir webapps
>
> not webaaps
>
> Although this is probably just a typo in your email :)
>
> Amit Luktuke wrote:
>
> >hello
> >
> >I am very new to Tomcat4.0.
> >I have successfully installed tomcat4.0 on my machine but can not able to
run simple HelloWorld.jsp file.
> >
> >I have put it in folder
> >C:\Tomcat4.0\webaaps\TestJSP\Helloworld.jsp
> >
>                                webapps
>
> >
> >On brower ..
> >http://localhost:8080/TestJSP/Helloworld.jsp
> >
> >My O.S is windows 2000 professional & i have JDK1.3 installed.
> >
> >Can anyone help me
> >
> >
> >Regards
> >
> >Amit Luktuke
> >
> >
> >
> >
>
>
>
>
> --
> 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>