Thanks Andrea

.....for now since it is only a prototype, I will not fiddle with it.....i will 
use the second JNDI data source which works fine.  If it prototype gets 
approved, then I will look into it deeper.

Are you aware of any kind documentation for KML placemark templates apart from 
what they have in the 
docs(http://docs.geoserver.org/latest/en/user/googleearth/tutorials/kmlplacemark/index.html).
  I need to do more complex stuff.  I have some attributes which contain a 
string of XML.  I need to be able to parse that in description.ftl.  Is that a 
possibility.

Thanks in advance
Ashok

From: [email protected] [mailto:[email protected]] On Behalf Of Andrea 
Aime
Sent: Thursday, July 19, 2012 3:33 AM
To: Guntu, Ashok (IS) (Contr)
Cc: [email protected]
Subject: EXT :Re: [Geoserver-users] PostgreSQL JNDI Issue

On Wed, Jul 18, 2012 at 9:19 PM, Guntu, Ashok (IS) (Contr) 
<[email protected]<mailto:[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