I had submitted a bug in error this morning regarding problems with the DataSource not 
setting the pool manager name.

I've done some experimentation with this that has resulted in some issues arising.  
Before I submit a bug on this I want to get input as to whether or not I'm doing 
something wrong here.

I've got a web app that refers to a database.

I have put a resource ref of type javax.sql.DataSource under the name jdbc/vision.

Through the admin application I create a datasource for the entire site under the name 
jdbc/vision.

Through the admin application I then deploy my app, with the reference to jdbc/vision.

When I attempt to reference it I get a null driverClassName error in the logs.

Then in the admin application I attempt to check the settings for the DataSource under 
the application context.  That results in a null pointer exception with the error 
stating that driverClassName is null.

So I started over.  This time, I started tomcat and deployed the application.  Copied 
the global DS configuration into the context level configuration, shutdown, and 
restarted.

After that everything seemed to work just fine.

Now, is there anyway to construct the datasource for an application which references 
one short of manually editing the file?

Can web apps reference global Datasources without a ResourceLink?

Reply via email to