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]
ROTECTED]>
|
| cc:
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
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
> -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'
> -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
thanks for the help ! I will give it a try
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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.
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]
|
| To: Struts Users Mailing List <[EMAIL PROTECTED]>
|
| cc:
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-
sif Rahman <[EMAIL
PROTECTED]> |
| cc:
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
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
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..
>
>
> -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
16 matches
Mail list logo