First, thanks for all the help I've received so far - I'm actually starting to 
make some genuine progress ;-)

I'm currently trying to run the WFSClient demo example (using Geoserver as the 
feature source). It works fine as a standalone application and yields the log 
output below:

[Swan additional logging] got type names: 
[Swan additional logging] topp:tasmania_roads tiger:poly_landmarks 
topp:tasmania_cities tiger:giant_polygon 
[Swan additional logging] topp:tasmania_water_bodies 
topp:tasmania_state_boundaries tiger:tiger_roads 
[Swan additional logging] topp:alaska topp:states tiger:poi 
Schema Attributes:2
Metadata Bounds:[145°11.9'E 43°25.4'S , 148°16.4'E 40°51.2'S]

but when invoked from a Tomcat-hosted webapp, I get the log output as below.

Presumably the RuntimeExeption is a consequence of the failure to a "jdbc/EPSG" 
entry?

Any pointers greatly appreciated.

Jerry.

//////////////////////////////////////////////////////////////////////////////////////////

[Swan additional logging] got type names: 
[Swan additional logging] topp:tasmania_roads tiger:poly_landmarks 
topp:tasmania_cities tiger:giant_polygon 
[Swan additional logging] topp:tasmania_water_bodies 
topp:tasmania_state_boundaries tiger:tiger_roads 
[Swan additional logging] topp:alaska topp:states tiger:poi 
12-Apr-2007 15:02:06 null createBackingStore
WARNING: Failed to bind a "jdbc/EPSG" entry.
javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
        at org.apache.naming.NamingContext.bind(NamingContext.java:842)
        at org.apache.naming.NamingContext.bind(NamingContext.java:170)
        at org.apache.naming.NamingContext.bind(NamingContext.java:186)
        at org.apache.naming.SelectorContext.bind(SelectorContext.java:170)
        at javax.naming.InitialContext.bind(InitialContext.java:400)
        at org.geotools.referencing.factory.epsg.DefaultFactory.createFactory(De
faultFactory.java:316)
        at org.geotools.referencing.factory.epsg.DefaultFactory.createBackingSto
re(DefaultFactory.java:354)
        at org.geotools.referencing.factory.DeferredAuthorityFactory.getBackingS
tore(DeferredAuthorityFactory.java:136)
        at org.geotools.referencing.factory.BufferedAuthorityFactory.isAvailable
(BufferedAuthorityFactory.java:206)
        at org.geotools.referencing.factory.DeferredAuthorityFactory.isAvailable
(DeferredAuthorityFactory.java:124)
        at org.geotools.factory.FactoryRegistry$DefaultFilter.filter(FactoryRegi
stry.java:76)
        at javax.imageio.spi.FilterIterator.advance(ServiceRegistry.java:793)
        at javax.imageio.spi.FilterIterator.<init>(ServiceRegistry.java:787)
        at javax.imageio.spi.ServiceRegistry.getServiceProviders(ServiceRegistry
.java:491)
        at org.geotools.factory.FactoryRegistry.getServiceProviders(FactoryRegis
try.java:177)
        at org.geotools.referencing.FactoryFinder.getFactories(FactoryFinder.jav
a:195)
        at org.geotools.referencing.FactoryFinder.getCRSAuthorityFactories(Facto
ryFinder.java:520)
        at org.geotools.referencing.DefaultAuthorityFactory.<init>(DefaultAuthor
ityFactory.java:58)
        at org.geotools.referencing.DefaultAuthorityFactory.<init>(DefaultAuthor
ityFactory.java:50)
        at org.geotools.referencing.CRS.getAuthorityFactory(CRS.java:377)
        at org.geotools.referencing.CRS.decode(CRS.java:330)
        at org.geotools.referencing.CRS.decode(CRS.java:266)
        at org.geotools.data.wfs.WFSDataStore.getSchema(WFSDataStore.java:364)
        at cgs.ows.wfs.client.WFSClient.dataAccess(WFSClient.java:93)
        at cgs.ows.wfs.client.WFSClient.getFeatures(WFSClient.java:59)
        at cgs.ows.wfs.schematic.FeatureService.respond(FeatureAdaptorService.ja
va:114)
        at cgs.ows.server.Server.respond(Server.java:83)
        at cgs.ows.server.Servlet.doGet(Servlet.java:42)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:869)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
rocessConnection(Http11BaseProtocol.java:664)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
lowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:684)
        at java.lang.Thread.run(Thread.java:619)

Schema Attributes:2
Metadata Bounds:[145░11.9'E 43░25.4'S , 148░16.4'E 40░51.2'S]
ERROR:  'java.lang.RuntimeException: Could not locate namespace for FeatureType
: topp:tasmania_roads:http://www.openplans.org/topplook up in: FeatureTypeNamesp
aces[Default: null, lookUp: {}'



This message has been checked for viruses but the contents of an attachment
may still contain software viruses, which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-gt2-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to