tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wendy Smoak <>
Subject RE: How do I run servlets on the root directory of localhost?
Date Mon, 14 Jun 2004 21:37:19 GMT
Seth Carter wrote:
> i can get to webMathematica right now by going to 
> http://localhost/webMathematica , what I want is 
> when I go to http://localhost 
> it would bring up webMathematica.

Copying everything to the ROOT subdirectory, which you've already noted
is the default root webapp, should have worked.  Try completely stopping
Tomcat, renaming ROOT to something else, and then renaming
webMathematica to 'ROOT'.  Maybe something didn't copy over correctly.

When the images are not appearing, view the HTML source of the page and
see where it's trying to load them from, vs. where they actually are.

Or... Find this part of server.xml, uncomment it, and change the docBase
to wherever your files are.  Note that it's relative to 'webapps'.  This
is from 4.1.30, adjust as necessary for a different Tomcat version.

        <!-- Define properties for each web application.  This is only
             if you want to set non-default properties, or have web
             document roots in places other than the virtual host's
             directory.  -->

        <!-- Tomcat Root Context -->
          <Context path="" docBase="ROOT" debug="0"/>

Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message