You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Muscu, Raju" <ra...@mitretek.org> on 2003/08/28 21:25:30 UTC

Tomcat IIS How to

Thanks very much for putting together great information to setup tomcat
with IIS.

 

I have configured my tomcat instance (4.0.3) with IIS and can able to
execute jsp/servlets in the examples folder.  However, not able to run
jsp located in another context.  Though the jsp page from another
context works thru tomcat port, browser with IIS url displays a prompt
to open/save the jsp page. 

 

I suspect the web.xml in the new context is not handling jsp correctly -
am I right?  Can you provide any suggestions or tips to try this?

 

Thanks very much, Raju

Mitretek Systems

703-610-1527 (raju.muscu@mitretek.org)

 


Re: Tomcat IIS How to

Posted by Mark Eggers <it...@yahoo.com>.
If you do not have a full-fledge webapp (with a
WEB-INF/web.xml), you will have to add the context to
Tomcat's server.xml

Here's an example that I use to just "noodle around"
with jsp files:

<Context  
  className="org.apache.catalina.core.StandardContext"
  crossContext="true" reloadable="true"
  mapperClass=
    "org.apache.catalina.core.StandardContextMapper"
  useNaming="true" debug="0" swallowOutput="false"
  privileged="false"
  wrapperClass=
    "org.apache.catalina.core.StandardWrapper"
  docBase="beg-jsp" cookies="true" path="/beg-jsp"
  cachingAllowed="true"
  charsetMapperClass=
    "org.apache.catalina.util.CharsetMapper">
  <Logger
    className=
      "org.apache.catalina.logger.FileLogger"
      debug="0" verbosity="1"
      prefix="localhost_beg-jsp_log."
      directory="logs" timestamp="true"
suffix=".txt"/>
</Context>

This is based on the example in server.xml.  However,
if you want to use taglibs you'll need to go the
entire route with a proper WEB-INF, lib, and
WEB-INF/web.xml.

In the long run, it's probably best to do this, since
any web application you deploy should have the
standard  web application deployment descriptor.

Take a look at
%TOMCAT_HOME%\webapps\tomcat-docs\appdev  and the
subdirectories for a simple example.

HTH

/mde/
just my two cents . . . . 

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com