|
From: David A. <da...@ri...> - 2007-08-31 11:15:58
|
If trace is on at the INFO level, I don't think it is inappropriate to
get the trace message from the DB2DataStore that the DB2 driver (jar
files) is not found. It isn't putting out a stack trace.
David
sfarber wrote:
> I agree. It's annoying. And if I didn't write that code, at the minimum
> I've modified it and never solved that problem. My bad!
>
> I'll drop that stack trace out if the log level isn't set high enough, but I
> think a WARN level message is appropriate.
>
> The idea is that you wouldn't be trying to load the ArcSDE datastore if you
> weren't, well...trying to use ArcSDE? So if you try and load the datastore,
> it seems worthwhile to at least tell you it won't work.
>
> --saul
>
>
>
> aaime wrote:
>
>> Jody Garnett ha scritto:
>>
>>> I am putting together course materials for FOSS4G and am working from
>>> the 2.4-RC0 download.
>>>
>>>> Map<String,Object> connect = new HashMap<String,Object>();
>>>> connect.put("url", file.toURI().toURL());
>>>>
>>>> DataStore dataStore = DataStoreFinder.getDataStore(connect);
>>>>
>>> Results in the following:
>>>
>>>> WARNING: ArcSDE Java API seems to not be on your classpath. Please
>>>> verify that all needed jars are. ArcSDE data stores will not be
>>>> available.
>>>> java.lang.NoClassDefFoundError
>>>> at
>>>> org.geotools.arcsde.ArcSDEDataStoreFactory.class$(ArcSDEDataStoreFactory.java:52)
>>>> at
>>>> org.geotools.arcsde.ArcSDEDataStoreFactory.isAvailable(ArcSDEDataStoreFactory.java:326)
>>>> at
>>>> org.geotools.data.DataStoreFinder.getAvailableDataStores(DataStoreFinder.java:120)
>>>> at
>>>> org.geotools.data.DataStoreFinder.getDataStore(DataStoreFinder.java:84)
>>>> at org.geotools.SampleApplication.main(SampleApplication.java:35)
>>>> Caused by: java.lang.ClassNotFoundException:
>>>> com.esri.sde.sdk.client.SeConnection
>>>> at java.net.URLClassLoader$1.run(Unknown Source)
>>>> at java.security.AccessController.doPrivileged(Native Method)
>>>> at java.net.URLClassLoader.findClass(Unknown Source)
>>>> at java.lang.ClassLoader.loadClass(Unknown Source)
>>>> at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>>>> at java.lang.ClassLoader.loadClass(Unknown Source)
>>>> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
>>>> at java.lang.Class.forName0(Native Method)
>>>> at java.lang.Class.forName(Unknown Source)
>>>> ... 5 more
>>>> 29-Aug-2007 9:30:03 PM org.geotools.data.db2.DB2DataStoreFactory
>>>> isAvailable
>>>> INFO: DB2 driver found: false
>>>>
>>> Is this information needed?
>>>
>> I find this annoying ;)
>> And oh, the property datastore is doing the same (at least we have
>> a similar message at each GeoServer startup...)
>>
>> Cheers
>> Andrea
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by: Splunk Inc.
>> Still grepping through log files to find problems? Stop.
>> Now Search log events and configuration files using AJAX and a browser.
>> Download your FREE copy of Splunk now >> http://get.splunk.com/
>> _______________________________________________
>> Geotools-devel mailing list
>> Geo...@li...
>> https://lists.sourceforge.net/lists/listinfo/geotools-devel
>>
>>
>>
>
>
|