From: Lena P. <Len...@we...> - 2005-08-26 12:38:51
|
Hello everybody! I'm having problems to deal with a WFSDataStore. If I try this: //SAXParserTest10: String urlString =3D "http://localhost:8080/geoserver/wfs/GetCap= abilities"; URL u =3D new URL(urlString); =20 Map map =3D new HashMap(); map.put(WFSDataStoreFactory.URL.key,u); =20 map.put(WFSDataStoreFactory.TIMEOUT.key,new Integer(10000)); map.put(WFSDataStoreFactory.PROTOCOL,Boolean.FALSE); =20 WFSDataStoreFactory factory =3D new WFSDataStoreFactory(); WFSDataStore store =3D (WFSDataStore)factory.createNewDataStore(= map); //Line 87 =20 String[] typeNames =3D store.getTypeNames(); System.out.println(typeNames.toString()); I get the following error message: java.lang.NoClassDefFoundError: org/geotools/data/ows/Service at org.geotools.xml.wfs.WFSCapabilitiesComplexTypes$ServiceType.getValue(= WFSCapabilitiesComplexTypes.java:1977) at org.geotools.xml.handlers.ComplexElementHandler.endElement(ComplexElem= entHandler.java:184) at org.geotools.xml.XMLSAXHandler.endElement(XMLSAXHandler.java:222) at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source) at org.apache.crimson.parser.Parser2.content(Unknown Source) at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source) at org.apache.crimson.parser.Parser2.parseInternal(Unknown Source) at org.apache.crimson.parser.Parser2.parse(Unknown Source) at org.apache.crimson.parser.XMLReaderImpl.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(Unknown Source) at org.geotools.xml.DocumentFactory.getInstance(DocumentFactory.java:139)= at org.geotools.data.wfs.WFSDataStore.findCapabilities(WFSDataStore.java:= 170) at org.geotools.data.wfs.WFSDataStore.<init>(WFSDataStore.java:153) at org.geotools.data.wfs.WFSDataStoreFactory.createNewDataStore(WFSDataSt= oreFactory.java:170) at SAXParserTest10.main(SAXParserTest10.java:87) There is a capabilities document when I go directly to: "http://localhost:= 8080/geoserver/wfs/GetCapabilities". So what am I going wrong here=3F Thank you for your help! Lena =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F Mit der Gruppen-SMS von WEB.DE FreeMail k=F6nnen Sie eine SMS an alle=20 Freunde gleichzeitig schicken: http://freemail.web.de/features/=3Fmc=3D021179 |