-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
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
-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
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.
; - 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.
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
P,
This is everything from server.xml
factory
org.apache.catalina.users.MemoryUserDatabaseFactory
pathname
conf/tomcat-users.xml
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
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
Also, here is a copy of my server.xml.
factory
org.apache.catalina.users.MemoryUserDatabaseFactory
pathname
conf/tomcat-users.xml
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
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,
> 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.
-
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
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
-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
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,
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
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
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
20 matches
Mail list logo