tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Le" <>
Subject RE: Tomcat and Microsoft IE
Date Sat, 29 Apr 2000 02:22:34 GMT
I have nearly identical server.xml as you do.  The only difference is my
debug is set to "0".  My tomcat.conf is missing the <directory> section.  I
think I see the key here.

In your tomcat.conf:
ApJServMount /currmit /home/sweiss/dev/java/webapps/currmit

I have the equivalent:
ApJServMount /myapp /root

Perhaps ApJServMount needs the fully qualified path for servlets to work

I'll try to change that setting and let you know what happened tomorrow
morning.  Thanks for all your help! I really appreciate it!


-----Original Message-----
From: []
Sent: Friday, April 28, 2000 7:07 PM
Subject: Re: Tomcat and Microsoft IE

Here's the relevant part of tomcat-currmit.conf, which I include in
Apache's httpd.conf:

Alias /currmit /home/sweiss/dev/java/webapps/currmit
<Directory "/home/sweiss/dev/java/webapps/currmit">
    Options Indexes FollowSymLinks
ApJServMount /currmit/servlet /currmit
<Location /currmit/WEB-INF/ >
    AllowOverride None
    deny from all

Using this, I access my application at http://localhost/currmit/ , and
both JSPs and servlets (which are referenced with
/currmit/servlet/<servlet-name> where <servlet-name> is what I have in
web.xml, which is in /home/sweiss/dev/java/webapps/currmit/WEB-INF. My
servlets are in <path-to-currmit>/WEB-INF/classes. In tomcat.conf I
 ApJServMount /currmit /home/sweiss/dev/java/webapps/currmit

Although I normally use Apache, I can also get to my application using
Tomcat's WS with:


I'm not sure how Tomcat's WS gets its mount points, I figure it must be
from either tomcat.conf, or server.xml, since it doesn't know about
tomcat-currmit.conf. In server.xml, I have:

 <Context path="/currmit"
docBase="/home/sweiss/dev/java/webapps/currmit" debug="1"
reloadable="true" >

Tomcat uses this to generate the file tomcat-apache.conf, but it doesn't
correctly get docBase, instead it puts this (which doesn't work) into

Alias /currmit /usr/local/jakarta/tomcat/webapps/currmit  <---- this is
not the correct location
<Directory "/usr/local/jakarta/tomcat/webapps/currmit">   <---- neither
is this
    Options Indexes FollowSymLinks
ApJServMount /currmit/servlet /currmit

That's why I ended up creating my own "tomcat-currmit.conf" and include
that in httpd.conf.

What does your server.xml look like?


Adam Le wrote:
> My tomcat is installed at /var/local/jakarta-tomcat.
> I have my test app at /home/tomcat/myapp.
> I just get:
> ERROR 404
> Location: /myapp/servlet/HelloWorld
> for http://localhost:8080/myapp/servlet/HelloWorld
> What's the proper method of creating a new context with servlets in
> directory?
> Thanks.
> Adam
> PS: Do I need to have a ../webapp/myapp directory?
> -----Original Message-----
> From: []
> Sent: Friday, April 28, 2000 6:27 PM
> To:
> Subject: Re: Tomcat and Microsoft IE
> Adam Le wrote:
> >
> > Yes, my server.xml file is correctly setup.  I can browse my jsp pages
> > that just fine... not the servlet tho :(
> >
> > >
> > > I have a web app that I move to my /home/tomcat/myapp directory.  I
> Is /home/tomcat where you installed Tomcat? If so, maybe try putting
> your application in /home/tomcat/webapps/myapp instead.
> --
> Stephen A. Weiss  Association of American Medical Colleges
> (202)828-0428

To unsubscribe, email:
For additional commmands, email:

View raw message