Hi list,
I am trying to add a Weblogic Oracle DataSource as a data store in
Geoserver. After adding the required resource block in web.xml as below
<!-- JNDI -->
<resource-ref>
<description>JDBC Data Source-2</description>
<res-ref-name>jdbc/testoracle</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
I am not able to get geoserver to find the jndi resource. the shared lib of
application server has ojdbc6.jar .. I also tried to replace
with ojdbc14.jar as per documentation. but no luck. The Oracle Data Source
is using "oracle.jdbc.xa.client.OracleXADataSource" , could the problem lie
with driver ?
Geoserver is old 1.7.7, but I`m sure the remedy is similar to the new
series. below is the stack trace.
16 Apr 14:59:43 WARN [geoserver.action] - Unable to fetch a list of
FeatureType names from datastore.
java.io.IOException: Cannot find JNDI data source:
java:comp/env/jdbc/testoracle
at
org.geotools.jdbc.JDBCJNDIDataStoreFactory.createDataSource(JDBCJNDIDataStoreFactory.java:125)
at
org.geotools.jdbc.JDBCDataStoreFactory.createDataStore(JDBCDataStoreFactory.java:137)
at
org.geotools.jdbc.JDBCDataStoreFactory.createDataStore(JDBCDataStoreFactory.java:46)
at
org.vfny.geoserver.util.DataStoreUtils.getDataStore(DataStoreUtils.java:75)
at
org.vfny.geoserver.util.DataStoreUtils.acquireDataStore(DataStoreUtils.java:59)
at
org.vfny.geoserver.action.data.DataDataStoresEditorAction.execute(DataDataStoresEditorAction.java:147)
at org.vfny.geoserver.action.ConfigAction.execute(ConfigAction.java:101)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at
weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal
regards,
Imran
--
I.R
------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users