On Wed, Jul 18, 2012 at 9:19 PM, Guntu, Ashok (IS) (Contr) <
[email protected]> wrote:

>  Hello,****
>
> This sounds bizarre and pictures me crazy – when I configure JNDI
> datasource, it does not connect and errors out because of a driver.
> However, when I look in my jboss console, I can see that connection has
> been setup correctly.  I tried to create another JNDI datasource, this time
> the second one connects correctly, however the first one does not.****
>
> ** **
>
> So I delete both and create another one, and it fails to connect.  I
> create a second one and it works fine.  I have no explanation for this
> phenomenon.  I have not looked into the code, but if anybody does know
> about can you share it.
>

There is nothing special with the code, it's the same one used against the
standard DBCP connection
pool that GeoServer ships with, the only difference is that instead of
building the DataSource manually
we get it from JNDI.

A few things that might help:
- remove the jdbc driver from the GeoServer classpath and leave it only in
the
  container
- make sure the connections can be "unwrapped" by the caller if you are
using Oracle
- make sure you have connection validation enabled

Cheers
Andrea


-- 
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:   +39 0584 962313
mob:   +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to