I am a bit confused about your use case? Eclipse and servlet? Are they in
the same process ...

For the uDig app (based on eclipse rich client platform) we use geotools to
draw - but we need to be sure to run AWT in "headless" mode - so that SWT
can control graphics (rather than AWT).

Jody Garnett


On Tue, Mar 25, 2014 at 3:43 AM, Elena Pop <elena0...@gmail.com> wrote:

> Hello,
>
> I am working on a project that requires me to pass data from a client to
> eclipse and for that i am using a servlet. But i will need to display the
> points passed on a shape file.
>
> I am handling  the shape file loading in the contextDestroyed method,
> however when i try to display it i get an error that looks like this and
> the server does not stop :
>
>
>
>
>
>
>
>
>
> *Exception in thread "AWT-Windows" java.lang.IllegalStateException:
> Shutdown in progress     at
> java.lang.ApplicationShutdownHooks.add(ApplicationShutdownHooks.java:66)
> at java.lang.Runtime.addShutdownHook(Runtime.java:211)    at
> sun.awt.windows.WToolkit$2.run(WToolkit.java:279)    at
> java.security.AccessController.doPrivileged(Native Method)     at
> sun.awt.windows.WToolkit.registerShutdownHook(WToolkit.java:264)    at
> sun.awt.windows.WToolkit.run(WToolkit.java:290)    at
> java.lang.Thread.run(Thread.java:744)*
> After some debugging i found out that the error comes from this line
> *JMapFrame.showMap(map);*
> Could you please give me a hand to understand where is the problem?
>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and their
> applications. Written by three acclaimed leaders in the field,
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/13534_NeoTech
> _______________________________________________
> GeoTools-GT2-Users mailing list
> GeoTools-GT2-Users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
>
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to