Hi, all
I need some help to set up an context path.
I'm using apache 2.0 ,JK2, tomcat 5.0.24 on Linux.
I made an application and packed into ABC.war.
Then I put the war file into $TOMCAT_HOME\webapps\ directory.
SO, I can access the top JSP with url http://localhost:8080/ABC/top.jsp
This is fine. but, I want the context path to top.jsp as /top.jsp
,not /ABC/top.jsp
So, i did try several ways. but , i cant find the best way to do that.
What I did is to make path blank like following .
<Context path="" docBase="ABC.war" debug="5" reloadable="true" >
..... Logger setting
..... JNDI Datasource setting
<Context/>
but , after deployment of war , tomcat makes 2 directorys /ROOT
and /ABC . Both dirs include
same resources. customers can access to context paths of both
/top.jsp and /ABC/top.jsp
and latter context path causes Datasource problems. i dont want to
let users access the 2nd path.
And <Context path="" docBase="ABC" debug="5" reloadable="true" > didn't
work at all.
(and Tomcat 5.0.24 on Windows doesn't allow "" path. Weird...)
Any advice will be appreciated.
Thanks.
Masashi Nakane
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)