Re: [Deployment] Tomcat 5.5, Single war into multiple apps

2007-03-20 Thread Eugene Wong

 Context path=/fooTest reloadable=true 
 
 Context path=/fooProduction reloadable=true 

 Take out the path attributes - they're not allowed when a Context 
 element is in the conf/Catalina/localhost directory. 


Where should I put context if not in seperate xml under
conf/Catalina/localhost?

I ended up replacement foo with request.getContextPath() and working fine.
Thanks.
-- 
View this message in context: 
http://www.nabble.com/-Deployment--Tomcat-5.5%2C-Single-war-into-multiple-apps-tf3431207.html#a9588114
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Deployment] Tomcat 5.5, Single war into multiple apps

2007-03-20 Thread Eugene Wong

Nevermind, in server.xml
-- 
View this message in context: 
http://www.nabble.com/-Deployment--Tomcat-5.5%2C-Single-war-into-multiple-apps-tf3431207.html#a9588211
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Deployment] Tomcat 5.5, Single war into multiple apps

2007-03-19 Thread Eugene Wong

Dear experts,

I have this foo.war created using netbeans and deployed to 2 apps in Tomcat,
namely fooTest and fooProduction. So I made 2 copies and renamed them to
fooTest.war and fooProduction.war and made changes to
\conf\Catalina\localhost\fooTest.xml and fooProduction.xml

?xml version=1.0 encoding=UTF-8?
Context path=/fooTest reloadable=true
ResourceLink global=jdbc/fooTestDB name=jdbc/fooTestDB
type=javax.sql.DataSource/
/Context

?xml version=1.0 encoding=UTF-8?
Context path=/fooProduction reloadable=true
ResourceLink global=jdbc/fooProductionDB name=jdbc/fooProductionDB
type=javax.sql.DataSource/
/Context

So we have 2 apps which can be accessed from
http://localhost:8080/fooTest and 
http://localhost:8080/fooProduction

Both apps run fine except for links which we hardcoded in our source, like
window.location = '/foo/logout.jsp';. Is there a way to config these apps to
redirect to their corresponding subdirectory when Tomcat see path the /foo ?
Any help would be great, thanks.
-- 
View this message in context: 
http://www.nabble.com/-Deployment--Tomcat-5.5%2C-Single-war-into-multiple-apps-tf3431207.html#a9565386
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]