tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <Chuck.Caldar...@unisys.com>
Subject RE: Can't change servlet path
Date Wed, 14 Sep 2005 03:27:19 GMT
> From: David Thielen [mailto:david@windward.net] 
> Subject: RE: Can't change servlet path
> 
> 1) Why is this forced in server.xml when otherwise we are 
> supposed to put everything in our META-INF?

You should consider the use of <Context> in server.xml as merely a
migration mechanism from older Tomcat versions.  The path attribute has
to be used in this situation, since there is no other means of
determining the application name.  For the other two cases, the
application name is derivable from either the location or the name of
the .xml file.

> 2) In this case, is the context.xml in my META-INF used also? In other
> words, should I put the JDBC <Resource> node in the <Context> node in
> server.xml or in my context.xml?

You simply shouldn't have a <Context> tag in server.xml (see above).

> 3) While /abc now works, /store still does too. Is this by design?

I suspect that your app has actually been deployed twice - once for each
of the <Context> instances you have.  I believe the normal way of
handling a single app that you want to use under multiple path names is
to have trivial secondary apps that merely forward requests to the real
one.  (Others may have better solutions, since I primarily work on the
inside of the JVM, not on J2EE apps.)

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
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