Re: Data Sources Overwritten

2007-06-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Scott, [EMAIL PROTECTED] wrote: > Using your method of including the context within the application how do > you adjust for different environments (dev vs production)? Different > WARs? We use ant for deployment, and we have a "release type". The re

RE: Data Sources Overwritten

2007-06-19 Thread ScottAnders
10:35 AM To: Tomcat Users List Subject: Re: Data Sources Overwritten -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeff, You have not followed my suggestions: 1. Remove all JNDI datasource information from server.xml and never put it back in. 2. Use a META-INF/context.xml file and bundle it

Re: Data Sources Overwritten

2007-06-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeff, You have not followed my suggestions: 1. Remove all JNDI datasource information from server.xml and never put it back in. 2. Use a META-INF/context.xml file and bundle it into your WAR file for deployment. context.xml should include 100% of the

Re: Data Sources Overwritten

2007-06-14 Thread Pid
Jeffrey C. Baldwin wrote: P, (our messages crossed, I think) Looks like you've got the context setup in the server.xml AND the external file. You only need one location, comment out the Context definition in server.xml and we'll work on getting the auto-deploy to work from the WAR/webapp.

Re: Data Sources Overwritten

2007-06-14 Thread Jeffrey C. Baldwin
; - Original Message - From: "Christopher Schultz" >> <[EMAIL PROTECTED]> >> To: "Tomcat Users List" >> Sent: Thursday, June 14, 2007 7:06 PM >> Subject: Re: Data Sources Overwritten >> >> > Jeffrey, > > Jeffrey C.

Re: Data Sources Overwritten

2007-06-14 Thread Jeffrey C. Baldwin
gt; > >> - Original Message - From: "Christopher Schultz" >> <[EMAIL PROTECTED]> >> To: "Tomcat Users List" >> Sent: Thursday, June 14, 2007 7:06 PM >> Subject: Re: Data Sources Overwritten >> >> > Jeffrey, > &g

Re: Data Sources Overwritten

2007-06-14 Thread Jeffrey C. Baldwin
P, This is everything from server.xml factory org.apache.catalina.users.MemoryUserDatabaseFactory pathname conf/tomcat-users.xml

Re: Data Sources Overwritten

2007-06-14 Thread Pid
Jeffrey C. Baldwin wrote: Chris, Thank you for the time. However, I'm still not having any luck... What's in your Host definition in server.xml, can you post that too? p Again, I have the entries in server.xml, so if I restart the Tomcat service AFTER deploying the app, all is well. Howev

Re: Data Sources Overwritten

2007-06-14 Thread Pid
g restarts, and overwritten by the one in your webapp. p - Original Message - From: "Christopher Schultz" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Thursday, June 14, 2007 7:06 PM Subject: Re: Data Sources Overwritten -BEGIN PGP SIGNED MESSAG

Re: Data Sources Overwritten

2007-06-14 Thread Jeffrey C. Baldwin
Also, here is a copy of my server.xml. factory org.apache.catalina.users.MemoryUserDatabaseFactory pathname conf/tomcat-users.xml

Re: Data Sources Overwritten

2007-06-14 Thread Jeffrey C. Baldwin
Chris, Thank you for the time. However, I'm still not having any luck... Again, I have the entries in server.xml, so if I restart the Tomcat service AFTER deploying the app, all is well. However, I want the application developers to be able to deploy their app and not have to, or need to contact

Re: Data Sources Overwritten

2007-06-14 Thread Johnny Kewl
other connection to hand out. If you look at the documentation there is an eg at the bottom that shows u how to make sure you do it right. - Original Message - From: "Jeffrey C. Baldwin" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Thursday, June 14,

RE: Data Sources Overwritten

2007-06-14 Thread wxcd sxdez
> the war, or the app maybe it can be put into context.xml, but are you > > sure? Sure it should be done in this way ! So, you don't need to restart your entire server when you need to add/ change the datasource configuration. Context.xml is part of your webapp, and not of your tomcat.

Re: Data Sources Overwritten

2007-06-14 Thread Johnny Kewl
- From: "Christopher Schultz" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Thursday, June 14, 2007 7:06 PM Subject: Re: Data Sources Overwritten -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeffrey, Jeffrey C. Baldwin wrote: I appreciate all the input gu

Re: Data Sources Overwritten

2007-06-14 Thread Johnny Kewl
POOL for ALL web apps... Magic... nice way to make them... see, getting stuck can help ;) - Original Message - From: "Jeffrey C. Baldwin" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Thursday, June 14, 2007 6:19 PM Subject: Re: Data Sources Overwritten

Re: Data Sources Overwritten

2007-06-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeffrey, Jeffrey C. Baldwin wrote: > I appreciate all the input guys. I put everything into server.xml and > the application is working great. You should put that setup into META-INF/context.xml in your webapp directory (or your WAR file) instead of

Re: Data Sources Overwritten

2007-06-14 Thread Jeffrey C. Baldwin
I appreciate all the input guys. I put everything into server.xml and the application is working great. One small problem though... if I undeploy the app, then deploy it again... I get the same database problem, UNTIL I restart the TomCat service itself. Once I restart Tomcat, all is well.. So,

Re: Data Sources Overwritten

2007-06-14 Thread Johnny Kewl
Jeff, I dont use JNDI for dbs, got my own, but its sounds like you just not configuring some xml somewhere... On your system have a look at this link... http://localhost:8080/tomcat-docs/jndi-datasource-examples-howto.html As I said, no expert, but you can see that in the server.xml, thats where

Re: Data Sources Overwritten

2007-06-14 Thread Jeffrey C. Baldwin
David, Where do I put this context.xml file? I noticed that when I deploy the app using manager, then configure the data sources using the admin tool... that a file names mrs.xml (mrs is the name of the application I am deploying) is created (/usr/local/tomcat/conf/Catalina/localhost), it contain

Re: Data Sources Overwritten

2007-06-14 Thread David Smith
Best bet is to configure it manually in the context.xml for the webapp. I've never had good luck with the administration webapp in the very few times I've tried to use it. You describe tomcat as over-writing the config submitted via the admin webapp. It's more likely the admin webapp is chan