Hi Stuart,
Try using FISPATIAL as the feature type name. Unfortunately Oracle through JDBC only pays attention to table names in upper case for some reason. I have to Chris to add this to the documentation…
Hope this fixes it,
Sean
From: Stuart.Girvan@anonymised.com [mailto:Stuart.Girvan@anonymised.com]
Sent: Friday, 16 January 2004 12:01 PM
To: geoserver-devel@lists.sourceforge.net
Subject: [Geoserver-devel] Problems recognising Oracle source for Feature TypeHi there,
I’ve recently just installed Geoserver on my PC. I can get responses to the GetCapabilities and GetFeature requests for the example data sources that come with the code but I can’t get it to recognise a new datasource/featuretype in Oracle. The stack trace while starting up Tomcat follows below (by the way the error about obtaining schema is a bit confusing - does it mean Oracle schema or XML.schema, it would be nice to make that a bit clearer in the error message). It seems to be a very similar problem to one reported by Bronwyn Cook (in December I think, can’t tell because the archives are down at the moment). I don’t know if Bronwyn,Sean or anyone else managed to solve the problem but it would be very handy to know. I’ve also added the text of the catalog.xml and info.xml files I’ve used, and the Oracle details at the end of this message.
Secondly, and you’ll have to excuse my ignorance on this because I’ve only been using Java for six months or so, while I was tracking through the code trying to work out the problem above, I kept hitting a dead end at some of the geotools class definitions (for example dataStoreFinder in org.geotools.data), where they are imported into gesoserver classes from jar files as opposed to being packaged up with the rest of the application. Is the source code for the geotools kept encapsulated for some reason (eg its proprietary)? And if not is it possible to look at the source somewhere?
Thanks,
Stuart
9250 [INFO] org.geotools.data.jdbc.JDBCDataStore - returning locking manager or
g.geotools.data.InProcessLockingManager@anonymised.com
org.vfny.geoserver.config.ConfigurationException: Error obtaining schema for cdf
:fispatial: Feature type could not be found for fispatial
at org.vfny.geoserver.config.FeatureTypeConfig.(FeatureTypeConfig.
java:148)
at org.vfny.geoserver.config.CatalogConfig.loadFeatureTypes(CatalogConfi
g.java:539)
at org.vfny.geoserver.config.CatalogConfig.loadFeatureTypes(CatalogConfi
g.java:530)
at org.vfny.geoserver.config.CatalogConfig.loadFeatureTypes(CatalogConfi
g.java:530)
at org.vfny.geoserver.config.CatalogConfig.(CatalogConfig.java:207
)
at org.vfny.geoserver.config.ServerConfig.load(ServerConfig.java:310)
at org.vfny.geoserver.config.ServerConfig.(ServerConfig.java:88)
at org.vfny.geoserver.config.ServerConfig.load(ServerConfig.java:205)
at org.vfny.geoserver.servlets.FreefsLog.init(FreefsLog.java:64)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
java:935)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:82
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
t.java:3420)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:821)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep
loyer.java:307)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:492
)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:400
)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:358)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:166)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347
)
at org.apache.catalina.core.StandardService.start(StandardService.java:4
at org.apache.catalina.core.StandardServer.start(StandardServer.java:219
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Caused by: org.geotools.data.SchemaNotFoundException: Feature type could not be
found for fispatial
at org.geotools.data.jdbc.JDBCDataStore.getSchema(JDBCDataStore.java:246
)
at org.geotools.data.jdbc.JDBCDataStore.getFeatureSource(JDBCDataStore.j
ava:355)
at org.vfny.geoserver.config.FeatureTypeConfig.getRealFeatureSource(Feat
ureTypeConfig.java:352)
at org.vfny.geoserver.config.FeatureTypeConfig.getSchema(FeatureTypeConf
ig.java:482)
at org.vfny.geoserver.config.FeatureTypeConfig.(FeatureTypeConfig.
java:146)
… 37 more
9265 [WARNING] org.vfny.geoserver.config.CatalogConfig - could not add FeatureT
ype at C:\jakarta-tomcat-4.1.24\webapps\geoserver\data\featureTypes\fispatial\in
fo.xml due to org.vfny.geoserver.config.ConfigurationException: Error obtaining
schema for cdf:fispatial: Feature type could not be found for fispatial
Catalog.xml
<?xml version="1.0" encoding="UTF-8"?>British Columbia sample road shapefiles
My local postgis testing database
My local postgis testing database
A test SDE database
info.xml <?xml version="1.0" encoding="UTF-8"?> fispatial Fluid Inclusions These are fluid inclusions geology 4283 Oracle details Host=Mica Instace=ORADEV Username=sgirvan Port=1521 Version 9.2.0.4.0