> Here are the contents of
> home.xml:
> 
> <Context path="/user" appBase="/home"
> docBase="michael/webspace/webapps"
>         debug="0" privileged="true">
> </Context>

>From the documentation for Tomcat 5.5.9 at
http://localhost:8080/tomcat-docs/config/context.html:

The Document Base (also known as the Context Root) 
directory for this web application, or the pathname
to the web application archive file (if this web
application is being executed directly from the WAR 
file). You may specify an absolute pathname for this 
directory or WAR file, or a pathname that is relative 
to the appBase directory of the owning Host.

If you've not changed server.xml, then the appBase is
$CATALINA_HOME/webapps.

Rather than using a combination of appBase and docBase

in your context file (and I don't think appBase is
appropriate in a context node - at least in 5.5.9),
you could use an absolute path for docBase:

/home/michael/webspace/webapps/user

This means that the following URL would potentially
work.

www.espersunited.com/user/index.jsp

The next issue is one of permissions.  If you're on a
UNIX machine, make sure that 

/home/michael/webspace/webapps/user

is readable by the owner of the process running
Tomcat.  Otherwise you'll not be able to serve the
files.

Finally, I notice that you're going directly at this
URL:

http://www.espersunited.com/user/index.jsp

Unless your Tomcat is configured to run on port 80,
you will be hitting any web server that is running,
and not your Tomcat server.  By default, Tomcat serves
http on port 8080.

In order to get Tomcat and Apache talking, you'll have
to do a lot more work.  This involves getting mod_jk
(or mod_proxy) built and installed, configuring Apache
httpd.conf, workers.properties, and possibly
server.xml (although the default server.xml already
has the ajp 1.3 connector configured).

I hope that starts you down a more productive path.

/mde/

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to