Re: Defining JDBC resource and AutoDeploy

2011-10-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Arttu, On 10/1/2011 6:04 PM, Arttu Tanner wrote: Ok, figured it out. I needed to use InitialContext.lookupLink() instead of InitialContext.lookup() what I was using before. That should not be necessary. Here is the code I have been using for years

Re: Defining JDBC resource and AutoDeploy

2011-10-01 Thread Arttu Tanner
Ok, figured it out. I needed to use InitialContext.lookupLink() instead of InitialContext.lookup() what I was using before. Seems obvious now, but I didn't think there would be two similar methods. I just thought I'll post my solution for further reference. It's always annoying to find that

Defining JDBC resource and AutoDeploy

2011-09-29 Thread Arttu Tanner
OS: Linux / CentOS / 2.6.18-028stab092.1 Tomcat: 5.5.23 I have simple XML-RPC -WebApp, that uses MySQL database. Currently I have defined the JDBC resource in server.xml inside the Host -tags as follows: Context docBase=mywebapp path=/mywebapp reloadable=true

Re: Defining JDBC resource and AutoDeploy

2011-09-29 Thread Tim Watts
Try: * conf/Catalina/localhost/mywebapp.xml OR * webapps/mywebapp/META-INF/context.xml OR * If you put it in GlobalNamingResources then you have to add a Resource-Link to Context. See the Configuration documentation.