Hi Ajay, I'm the author of the offending locale support code in GeoTools. It does indeed require a properties file which is bundled into the gt-swing jar.
I know nothing about JNLP and WebStart but a bit of googling with keywords like "java webstart load properties file" finds lots of pages where people have had similar problems. If you find a solution that requires some change to gt-swing, please let us know via the list or a Jira issue. Sorry I can't be more directly helpful. Perhaps other list members can suggest something. Michael On 28 March 2012 17:19, Ajay Sancheti <[email protected]> wrote: > Hello, > > > > I’m having trouble packing GeoTools into a JAR file when it is used for a > Java Web Start application. > > > > Using the same JAR file on the command line works perfectly. But when I use > it with the attached JNLP file I get the below error. Seems that GeoTools is > searching for a properties file and can’t find it (probably since the JAR > file is loaded with Java Web Start). > > > > Can anyone think of a work around? I’d really like this to run using Java > Web Start. > > > > Thank you. > > Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError > > at > org.geotools.swing.action.NoToolAction.<clinit>(NoToolAction.java:36) > > at > rsrc.datalibrary.view.panels.MapPanel.initComponents(MapPanel.java:116) > > at > rsrc.datalibrary.view.panels.MapPanel.<init>(MapPanel.java:59) > > at > rsrc.datalibrary.view.DataLibraryFrame.createElementPanel(DataLibraryFrame.java:311) > > at > rsrc.datalibrary.view.DataLibraryFrame.valueChanged(DataLibraryFrame.java:267) > > at javax.swing.JTree.fireValueChanged(Unknown Source) > > at > javax.swing.JTree$TreeSelectionRedirector.valueChanged(Unknown Source) > > at > javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(Unknown Source) > > at > javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(Unknown Source) > > at > javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths(Unknown Source) > > at > javax.swing.tree.DefaultTreeSelectionModel.setSelectionPath(Unknown Source) > > at javax.swing.JTree.setSelectionPath(Unknown Source) > > at > javax.swing.plaf.basic.BasicTreeUI.selectPathForEvent(Unknown Source) > > at > javax.swing.plaf.basic.BasicTreeUI$Handler.handleSelection(Unknown Source) > > at > javax.swing.plaf.basic.BasicTreeUI$Handler.mousePressed(Unknown Source) > > at java.awt.AWTEventMulticaster.mousePressed(Unknown Source) > > at java.awt.Component.processMouseEvent(Unknown Source) > > at javax.swing.JComponent.processMouseEvent(Unknown Source) > > at java.awt.Component.processEvent(Unknown Source) > > at java.awt.Container.processEvent(Unknown Source) > > at java.awt.Component.dispatchEventImpl(Unknown Source) > > at java.awt.Container.dispatchEventImpl(Unknown Source) > > at java.awt.Component.dispatchEvent(Unknown Source) > > at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown > Source) > > at java.awt.LightweightDispatcher.processMouseEvent(Unknown > Source) > > at java.awt.LightweightDispatcher.dispatchEvent(Unknown > Source) > > at java.awt.Container.dispatchEventImpl(Unknown Source) > > at java.awt.Window.dispatchEventImpl(Unknown Source) > > at java.awt.Component.dispatchEvent(Unknown Source) > > at java.awt.EventQueue.dispatchEventImpl(Unknown Source) > > at java.awt.EventQueue.access$000(Unknown Source) > > at java.awt.EventQueue$1.run(Unknown Source) > > at java.awt.EventQueue$1.run(Unknown Source) > > at java.security.AccessController.doPrivileged(Native > Method) > > at > java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source) > > at > java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source) > > at java.awt.EventQueue$2.run(Unknown Source) > > at java.awt.EventQueue$2.run(Unknown Source) > > at java.security.AccessController.doPrivileged(Native > Method) > > at > java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source) > > at java.awt.EventQueue.dispatchEvent(Unknown Source) > > at > java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) > > at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown > Source) > > at > java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) > > at java.awt.EventDispatchThread.pumpEvents(Unknown Source) > > at java.awt.EventDispatchThread.pumpEvents(Unknown Source) > > at java.awt.EventDispatchThread.run(Unknown Source) > > Caused by: java.lang.NullPointerException > > at > org.geotools.swing.locale.PropertiesFileFinder.getSelfPath(PropertiesFileFinder.java:121) > > at > org.geotools.swing.locale.PropertiesFileFinder.scan(PropertiesFileFinder.java:70) > > at > org.geotools.swing.locale.LocaleUtils.loadLocaleInfo(LocaleUtils.java:292) > > at > org.geotools.swing.locale.LocaleUtils.<clinit>(LocaleUtils.java:121) > > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > _______________________________________________ > GeoTools-GT2-Users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ GeoTools-GT2-Users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
