tomcat  
Author Message
bob





PostPosted: 2005-4-16 8:21:00 Top

java-programmer, tomcat I just installed Tomcat 5.5 and went to http://127.0.0.1:8080/. Then I
clicked on Servlet Examples to see what examples it comes with, but I
got a 404 File not found error. Anyone know what the deal is? Are the
servlet examples separate?

 
bob





PostPosted: 2005-4-16 8:21:00 Top

java-programmer >> tomcat I just installed Tomcat 5.5 and went to http://127.0.0.1:8080/. Then I
clicked on Servlet Examples to see what examples it comes with, but I
got a 404 File not found error. Anyone know what the deal is? Are the
servlet examples separate?

 
Angus Parvis





PostPosted: 2005-4-16 9:02:00 Top

java-programmer >> tomcat email***@***.com wrote:
> I just installed Tomcat 5.5 and went to http://127.0.0.1:8080/. Then I
> clicked on Servlet Examples to see what examples it comes with, but I
> got a 404 File not found error. Anyone know what the deal is? Are the
> servlet examples separate?
>

afaik during setup u have to chose whether to install the examples or
not. maybe you've forgotten to do check the box ..

angus
 
 
pathipati.mca@gmail.com





PostPosted: 2006-12-26 20:43:00 Top

java-programmer >> tomcat Dear all iam new for java,i have one dought that is how to set path to
tomcat and how to deploy.


regards,
chinni.

 
 
pathipati.mca@gmail.com





PostPosted: 2006-12-26 20:44:00 Top

java-programmer >> tomcat Dear all iam new for java,i have one dought that is how to set path to
tomcat and how to deploy.


regards,
chinni.

 
 
Prof





PostPosted: 2006-12-27 20:30:00 Top

java-programmer >> tomcat

In windows xp create a new system variable as JAVA_HOME and give path
for tomcat dir's bin folder. Your tomacat will start working

 
 
jupiter





PostPosted: 2006-12-28 7:07:00 Top

java-programmer >> tomcat
<email***@***.com> wrote in message
news:email***@***.com...
> Dear all iam new for java,i have one dought that is how to set
> path to
> tomcat and how to deploy.
>
>
> regards,
> chinni.
>

I see that somebody already told you how to set a Windows path.

Deployment is different for jsp versus servlets. Servlets get
compiled manually *before* you deploy, and jsp gets compiled at
runtime during the first invocation of the jsp.

Deployment is typically done by creating a web archive (a "war"
file with .war extension) using the jar utility. Invoke the jar
utility at the command line in the root of the project. Assuming
you use jar correctly, it will create the .war file in the current
directory, which you need to copy to the Tomcat webapps folder.
Tomcat, assuming that it's running, then will deploy (explode the
.war file) automatically and you can test your url.

This is the short story. There are many details missing because
they are details that you need to discover as you go. Just
remember that when you create the .war file it will explode/deploy
under Tomcat\webapps to create folders and files that look
*exactly* like what you have in your development path.

Good luck, it's a steep learning curve but Tomcat is actually
easier to use than some other containers. It's a good choice.



 
 
KevinRobinson





PostPosted: 2007-11-28 3:27:00 Top

java-programmer >> tomcat Can anyone please advise me on the following.

I have set Tomcat up on my PC with two different folders containing two
different web applications using port 80.

I can access them thus :- http://localhost/A/index.htm and
http://localhost/B/index.htm

If my PC is connected to the internet with a static ip address of say
123.123.84.84 and I have rented two different domain names say mynameA.com
and mynameB.com, how do I set Tomcat up so that the domain names relate to
folders A and B.

For example so that 123.123.84.84/A = mynameA.com and 123.123.84.84/B =
mynameB.com.

The objective is to access the two different web applications using the
relevant domain names on Tomcat.

Is this possible and how can it be set up? Or can you please direct me to a
book which explains how this can be achieved.

Thanks in advance.

Kevin


 
 






PostPosted: 2007-11-28 4:49:00 Top

java-programmer >> tomcat On 11/27/2007 at 14:27:27, "KevinRobinson" <email***@***.com> wrote:

> Can anyone please advise me on the following.
> I have set Tomcat up on my PC with two different folders containing two
> different web applications using port 80.
> I can access them thus :- http://localhost/A/index.htm and
> http://localhost/B/index.htm
> If my PC is connected to the internet with a static ip address of say
> 123.123.84.84 and I have rented two different domain names say mynameA.com
> and mynameB.com, how do I set Tomcat up so that the domain names relate to
> folders A and B.
> For example so that 123.123.84.84/A = mynameA.com and 123.123.84.84/B =
> mynameB.com.
> The objective is to access the two different web applications using the
> relevant domain names on Tomcat.
> Is this possible and how can it be set up? Or can you please direct me to a
> book which explains how this can be achieved.
> Thanks in advance.
> Kevin

Do a search on the Host tag.
Its in the server.xml file.

<Host name="local.programmersbible.com" appBase="pb" unpackWars="false" autoDeploy="false"
xmlValidation="false" xmlNamespaceAware="false">
<Context path="" docBase="">
</Context>
</Host>

Also, tomcat docs talk about it.

http://tomcat.apache.org/tomcat-5.5-doc/config/host.html

 
 
Momo





PostPosted: 2008-2-11 11:51:00 Top

java-programmer >> tomcat Hi
I've a small question.
I configured Tomcat 5.5 and deployed a page using it. The prob is that when
I try to view just the folder
for example:
http://localhost/person contains the file form.html
normally, when we type the link given above, we should get the files
contained in the folder. I get "resource not available" but when I type the
whole of the link http://localhost/person/form.html it appears correctly.
Is there some one who can give me a hint.

Thanks


 
 
zzantozz





PostPosted: 2008-2-21 3:21:00 Top

java-programmer >> tomcat On Feb 10, 9:50 pm, "Momo" <email***@***.com> wrote:
> Hi
> I've a small question.
> I configured Tomcat 5.5 and deployed a page using it. The prob is that when
> I try to view just the folder
> for example:http://localhost/personcontains the file form.html
> normally, when we type the link given above, we should get the files
> contained in the folder. I get "resource not available" but when I type the
> whole of the linkhttp://localhost/person/form.htmlit appears correctly.
> Is there some one who can give me a hint.
>
> Thanks

I'm surprised that nobody has replied to you yet. Maybe I missed
something? In Tomcat 5.5, directory listing is disabled by default,
meaning that your request for the "person" directory will respond with
an error. To learn how to enable directory listings, search this page
for "directory listings":
<http://wiki.apache.org/tomcat/FAQ/Miscellaneous>