Article View: comp.lang.java.softwaretools
Article #3New context path not working in Tomcat
From: Salvador Valencia
Date: Tue, 05 Jun 2001 19:22
Date: Tue, 05 Jun 2001 19:22
45 lines
2750 bytes
2750 bytes
Hi,
I'm running tomcat on Windows 2000 and IIS. I installed Tomcat and
follow up the steps as described in the tomcat iis-howto:
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-iis-howto.html
The examples work perfectly and all requests go through ISS to Tomcat.
All jsp's and servlets run nicely.
So, when I added my context /Demo/* I can not see the same thing
happening. All I can see is an error message from IIS.
I went far enough as to modify the tomcat.policy file and grant all
permisions to the new code base:
grant codeBase "file:${tomcat.home}/webapps/Demo" {
// Allow the Demo web application full access
permission java.security.AllPermission;
};
This is what I added to server.xml (just below the context for
examples):
<Context path="/Demo"
docBase="webapps/Demo"
crossContext="false"
debug="0"
reloadable="true" >
</Context>
And this what I added to my file under
C:\jakarta-tomcat-3.2.2\webapps\Demo\WEB-INF\web.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
</web-app>
I don't have servlets yet, all I want to do is run some jsp.
And I can't even see my simple index.html. :-(
Any help will be greatly appreciated.
SV.
Technical Details
Message-ID:
<817918af.0106051122.26ccea57@posting.google.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!postnews1.google.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1044d1,d370365f56f9d922,start X-Google-Attributes: gid1044d1,public X-Google-Thread: f5e83,d370365f56f9d922,start X-Google-Attributes: gidf5e83,public X-Google-Thread: 10a146,d370365f56f9d922,start X-Google-Attributes: gid10a146,public X-Google-Thread: f4d39,d370365f56f9d922,start X-Google-Attributes: gidf4d39,public X-Google-Thread: 113ae9,d370365f56f9d922,start X-Google-Attributes: gid113ae9,public X-Google-ArrivalTime: 2001-06-05 12:22:49 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!postnews1.google.com!not-for-mail From: salvadorvp@hotmail.com (Salvador Valencia) Newsgroups: comp.lang.java.softwaretools,comp.lang.java.programmer,microsoft.public.inetserver.iis,borland.public.appserver.servlet-jsp-tomcat,comp.lang.java.help Subject: New context path not working in Tomcat Date: 5 Jun 2001 12:22:49 -0700 Organization: http://groups.google.com/ Lines: 45 Message-ID: <817918af.0106051122.26ccea57@posting.google.com> NNTP-Posting-Host: 192.251.30.171 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 991768969 7797 127.0.0.1 (5 Jun 2001 19:22:49 GMT) X-Complaints-To: groups-support@google.com NNTP-Posting-Date: 5 Jun 2001 19:22:49 GMT