tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Blue, Neil" <>
Subject RE: [Tomcat Users] Tomcat installation - server.xml setup
Date Tue, 27 Jun 2000 15:24:18 GMT
Yes, app is a class. 
I am using Tomcat with Apache. I also have a line in server.xml that maps
images to /opt/tomcat/images

<Context path="/images" docBase="/opt/tomcat/images" debug="0"

but the dir the it shows in the browser is /opt/tomcat/webapps/images, and
there isn't a /opt/tomcat/images dir.


<Context path="/r" docBase="webapps/ROOT" debug="0" reloadable="true">

works with http://<host>/r/servlet/app

<Context path="" docBase="webapps/ROOT" debug="0" reloadable="true">

but http://<host>/servlet/app
does not

-----Original Message-----
From: Sharad Baranwal []
Sent: Tuesday, June 27, 2000 4:09 PM
Subject: [Tomcat Users] Tomcat installation


Make sure that u have the context for examples in the server.xml
it will be something like this..

<Context path="examples" docBase="webapps/examples" debug="0"

I'm also running Tomcat in stand alone mode without Apache.


the (path="") means that the root path is referred to .... the root path is
the immidiate domain path for your host..

that is for example "" this path....

and that this path is mapped to webapps/ROOT for the particular tomcat


I presume "app" is a class....

Well i had a simple servlet First.class in my tomcat installation as >>>
and i used to invoke it thru url>>>> http://localhost/sharad/servlet/First

then i copied it to c:\tomcat\webapps\root\web_inf\classes\ path..

and now i can access it thru http://localhost/servlet/First also...

hope this helps..

Jan Grant......

I am not using Tomcat with Apache... but u can turn of the file access in
apache using the <Directory> tag. this goes in the httpd.conf file for
Apache. It has some attribute settings too. I don't know in much detail but
this is the tag to look for.

But this does not solve the directory listing problem for Tomcat.. we will
have to do something else for that..

happy serving...........
----- Original Message -----
From: Shaun Campbell <>
To: <>
Sent: Tuesday, June 27, 2000 7:01 PM
Subject: RE: Tomcat installation

> Sharad
> Thanks for this info I can now see how Tomcat runs servlets.
> I am still getting the 404 error just running the example servlets.  Can
> think of anything else I could have missed.  I am a bit puzzled as to how
> Apache fits in because I haven't integrated Tomcat and Apache at this
> Thanks
> Shaun
> -----Original Message-----
> From: Sharad Baranwal []
> Sent: 27 June 2000 13:52
> To:
> Subject: Re: Tomcat installation
> For every web application in your webapps folder there is a path
> "/WEB_INF/classes/"
> this gets mapped to "http://yourhost/webapplication/servlet/"
> for example. consider this path and servlet file on a windows machine..
> c:/tomcat/webapps/test/web_inf/classes/FirstServlet.class
> this gets mapped to..
> http://yourhost/test/servlet/FirstServlet
> where "test" is a web-application on your machine.
> hence to acces Turbine servlet from
> http://yourhost/servlet/Turbine
> put your Turbine.class in "tomcat_home/webapps/root/web_inf/classes/"
> ----- Original Message -----
> From: Shaun Campbell <>
> To: <>
> Sent: Tuesday, June 27, 2000 4:56 PM
> Subject: Tomcat installation
> > I am trying to install Jyve using Tomcat instead of JServ.  I have
> > to get Jyve working using the Apache/Jserv route but am trying out
> > for the first time.
> >
> > I have a conceptual problem when trying to run the Turbine servlet
> > Tomcat.  The documentation says to point the browser at
> > "".  When I do this surprise,
> surprise,
> > I get a "page cannot be found" message.  Nowhere in setting up Tomcat do
> > recall setting up servlet zones as in JServ.
> >
> > I do remember placing the jar files in the tomcat build/lib directory
> > however, but I can't seem to access Turbine.  Where do you put servlets
> > Tomcat?  Any ideas what I am missing?
> >
> > Thanks in advance.
> >
> > Shaun Campbell
> >
> --------------------------------------------------------------------------
> > To unsubscribe, email:
> > For additional commmands, email:
> >
> >
> --------------------------------------------------------------------------
> To unsubscribe, email:
> For additional commmands, email:
> --------------------------------------------------------------------------
> To unsubscribe, email:
> For additional commmands, email:

To unsubscribe, email:
For additional commmands, email:

View raw message