The name is not defined correctly in that context.
What kind of a resource is it ?
David Durst wrote:
Does anyone know what this is caused by?
I have admin/larco defined as a resource in server.xml
and I am using the resource under admin.
Why is this causing a problem
--
To unsubscr
The server.xml looks right .
What about the web.xml in your webapp ?
How does it look like ?
David Durst wrote:
The name is not defined correctly in that context.
What kind of a resource is it ?
factoryorg.apache.commons.dbcp.BasicDataSourceFactory
Sure it won't work.
Check out the res-ref-name. Here you claim it is admin/larco , but in
server.xml you tell tomcat it is jdbc/larco. So if you do a lookup for
jdbc/larco or admin/larco the name is not bound to the context.
admin/larco should be jdbc/larco.
Make the changes and see if it works.
Sounds like you don't have the appropiate driver loaded or you have
incorrectly specified your pgsql driver in server.xml. Double check the
values. I make that mistake alot.
David Durst wrote:
Sure it won't work.
Check out the res-ref-name. Here you claim it is admin/larco , but in
server.xml yo
David Durst wrote:
Sounds like you don't have the appropiate driver loaded or you have
incorrectly specified your pgsql driver in server.xml. Double check the
values. I make that mistake alot.
I have gotten that answer like 10 times now :(
I have the correct driver specified :)
I must have beca
I've used DBCP on 4.1.12 and 4.0.X
David Durst wrote:
David Durst wrote:
Sounds like you don't have the appropiate driver loaded or you have
incorrectly specified your pgsql driver in server.xml. Double check
the values. I make that mistake alot.
I have gotten that answer like 10 times now :
David Durst wrote:
I've used DBCP on 4.1.12 and 4.0.X
well, its now working.
Strangely enough haveing the driver in WEB-INF/lib causes a problem,
somone should document that on the page (Specifically telling people where to
put the jar)
Strangely enough they did. If you have some time and go t
print out the connection object. See what it says.
For example in this code fragment :
datafinder = new JNDIFinder("java:comp/env/jdbc/AthenaDB") ;
ds = datafinder.ReturnDataSource() ;
if(ds!=null){
Connection conn = ds.getConnection() ;
System.out.println(conn.toString()) ;
Should result