Warning!!

View: New views
3 Messages — Rating Filter:   Alert me  

Warning!!

by Keenan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

My primary aim was to read a shapefile, and i'm doing that succesfully. but this warning is popping up every time i run the program.
How on earth do i get rid of this warning?


Mar 7, 2008 10:23:30 AM org.geotools.data.db2.DB2DataStoreFactory isAvailable
INFO: DB2 driver found: false
Mar 7, 2008 10:23:30 AM org.geotools.arcsde.ArcSDEDataStoreFactory isAvailable
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:49)
        at org.geotools.arcsde.ArcSDEDataStoreFactory.isAvailable(ArcSDEDataStoreFactory.java:323)
        at org.geotools.data.DataStoreFinder.getAvailableDataStores(DataStoreFinder.java:120)
        at org.geotools.data.DataStoreFinder.getDataStore(DataStoreFinder.java:84)
        at src.ShapefileRead.main(ShapefileRead.java:39)
Caused by: java.lang.ClassNotFoundException: com.esri.sde.sdk.client.SeConnection
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)
        ... 5 more


TIA

Re: Warning!!

by 李游 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hi,
        I think you can remove gt2-arcsde.jar and gt2-arcgrid.jar from you build classpath.
  otherwise , geotools will search DB2 driver ....
   
   


>
>Hi,
>
>My primary aim was to read a shapefile, and i'm doing that succesfully. but
>this warning is popping up every time i run the program.
>How on earth do i get rid of this warning?
>
>
>Mar 7, 2008 10:23:30 AM org.geotools.data.db2.DB2DataStoreFactory
>isAvailable
>INFO: DB2 driver found: false
>Mar 7, 2008 10:23:30 AM org.geotools.arcsde.ArcSDEDataStoreFactory
>isAvailable
>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:49)
> at
>org.geotools.arcsde.ArcSDEDataStoreFactory.isAvailable(ArcSDEDataStoreFactory.java:323)
> at
>org.geotools.data.DataStoreFinder.getAvailableDataStores(DataStoreFinder.java:120)
> at org.geotools.data.DataStoreFinder.getDataStore(DataStoreFinder.java:84)
> at src.ShapefileRead.main(ShapefileRead.java:39)
>Caused by: java.lang.ClassNotFoundException:
>com.esri.sde.sdk.client.SeConnection
> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:169)
> ... 5 more
>
>
>TIA
>
>--
>View this message in context: http://www.nabble.com/Warning%21%21-tp15890061p15890061.html
>Sent from the geotools - dev mailing list archive at Nabble.com.
>
>
>---------------------------------------------------------------------
>To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>

= = = = = = = = = = = = = = = = = = = =



Re: Warning!!

by Keenan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yeah man, I dint get any warnings after  i removed them.
Thanks a lot.
李游 wrote:
hi,
        I think you can remove gt2-arcsde.jar and gt2-arcgrid.jar from you build classpath.
  otherwise , geotools will search DB2 driver ....
   
   


>
>Hi,
>
>My primary aim was to read a shapefile, and i'm doing that succesfully. but
>this warning is popping up every time i run the program.
>How on earth do i get rid of this warning?
>
>
>Mar 7, 2008 10:23:30 AM org.geotools.data.db2.DB2DataStoreFactory
>isAvailable
>INFO: DB2 driver found: false
>Mar 7, 2008 10:23:30 AM org.geotools.arcsde.ArcSDEDataStoreFactory
>isAvailable
>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:49)
> at
>org.geotools.arcsde.ArcSDEDataStoreFactory.isAvailable(ArcSDEDataStoreFactory.java:323)
> at
>org.geotools.data.DataStoreFinder.getAvailableDataStores(DataStoreFinder.java:120)
> at org.geotools.data.DataStoreFinder.getDataStore(DataStoreFinder.java:84)
> at src.ShapefileRead.main(ShapefileRead.java:39)
>Caused by: java.lang.ClassNotFoundException:
>com.esri.sde.sdk.client.SeConnection
> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:169)
> ... 5 more
>
>
>TIA
>
>--
>View this message in context: http://www.nabble.com/Warning%21%21-tp15890061p15890061.html
>Sent from the geotools - dev mailing list archive at Nabble.com.
>
>
>---------------------------------------------------------------------
>To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>

= = = = = = = = = = = = = = = = = = = =