Re: Datasource problem again..

2004-07-20 Thread Koon Yue Lam
yes, clearly a context file for each web app is a better / wiser choice, thanks for the advice ! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Datasource problem again..

2004-07-20 Thread jthompson
ROTECTED]> | | cc:

Re: Datasource problem again..

2004-07-20 Thread Peng Tuck Kwok
Great, that's always good to hear. Also consider providing your own context xml for each app with the war file, might save you some time in server restarts. Unless you changed server.xml through the administrative interface. On Wed, 21 Jul 2004 10:24:21 +0800, Koon Yue Lam <[EMAIL PROTECTED]> wrot

Re: Datasource problem again..

2004-07-20 Thread Koon Yue Lam
Tthanks for the help for all of u ! Finally I get it done, I create a element and nest a with details of MySql in server.xml and it just work smoothly~~~ Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

RE: Datasource problem again..

2004-07-20 Thread Jim Barrows
> -Original Message- > From: Koon Yue Lam [mailto:[EMAIL PROTECTED] > Sent: Monday, July 19, 2004 7:46 PM > To: Struts Users Mailing List > Subject: Re: Datasource problem again.. > > > Thx ! > Since I am using Tomct 5 with auto-depoly, my Webapp DOESN'

RE: Datasource problem again..

2004-07-20 Thread Jim Barrows
> -Original Message- > From: Koon Yue Lam [mailto:[EMAIL PROTECTED] > Sent: Monday, July 19, 2004 6:54 PM > To: Struts Users Mailing List; Asif Rahman > Subject: Re: Datasource problem again.. > > > Yes, it helps and I know I can get it done if I set the context

Re: Datasource problem again..

2004-07-19 Thread Koon Yue Lam
thanks for the help ! I will give it a try - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Datasource problem again..

2004-07-19 Thread Peng Tuck Kwok
You can still have a context regardless of whether you auto deploy or not. See that snippet that jthopmson sent? You can deploy that with your war file, I think the name of the xml has to match the war file name if I'm not mistaken. Then you will have a context properly setup with the datasource.

Re: Datasource problem again..

2004-07-19 Thread Koon Yue Lam
Thx !! I will try it out tonight after work !! and let u know if I sucess or not, ^^ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Datasource problem again..

2004-07-19 Thread jthompson
| | To: Struts Users Mailing List <[EMAIL PROTECTED]> | | cc:

Re: Datasource problem again..

2004-07-19 Thread Koon Yue Lam
Thx ! Since I am using Tomct 5 with auto-depoly, my Webapp DOESN'T has a element in server.xml. I think I will has a try to setup in , or should I manually all a element of my Webapp in server.xml?? Regards - To unsubscribe, e-

Re: Datasource problem again..

2004-07-19 Thread jthompson
sif Rahman <[EMAIL PROTECTED]> | | cc:

Re: Datasource problem again..

2004-07-19 Thread Koon Yue Lam
Yes, it helps and I know I can get it done if I set the context element in server.xml, but if I set the datasource in server.xml, do I need to set the in struts-config.xml again?? If I am right, I think if datasource is setup in server.xml, it has the scope of entire Tomcat, that means all webapp

Re: Datasource problem again..

2004-07-19 Thread Asif Rahman
I tried using the tags in struts-config.xml, couldnt get it work so I modified the server.xml in tomcat/conf directly. Just add a context element as follows in your server.xml This is my configuration: factory org.apache.commons.dbcp.BasicDataSourceFactory

RE: Datasource problem again..

2004-07-19 Thread Geeta Ramani
P.S. here you go: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources-howto.html Enjoy! :) Geeta > -Original Message- > From: Koon Yue Lam [mailto:[EMAIL PROTECTED] > Sent: Monday, July 19, 2004 12:46 PM > To: Struts Users Mailing List > Subject: Datasource problem again.. > >

RE: Datasource problem again..

2004-07-19 Thread Geeta Ramani
> -Original Message- > From: Koon Yue Lam [mailto:[EMAIL PROTECTED] > Sent: Monday, July 19, 2004 12:46 PM > To: Struts Users Mailing List > Subject: Datasource problem again.. > > > > Do I need to modify the web.xml under $Tomcat/conf ?? You have to add a "Resource" element in your co