tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wendy Smoak <Wendy.Sm...@asu.edu>
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
needed
             if you want to set non-default properties, or have web
application
             document roots in places other than the virtual host's
appBase
             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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message