Hi guys,
I am trying to get layer data including DTED and Political
Boundaries working with the data in a .jar file, and have tried changing the
com.bbn.openmap.io.BinaryFile.java file to use
Thread.currentThread().getContextClassLoader().getResource(name); but this
results in th following error (using JRE Plugin 1.3.1_02, latest apache,
NT4, Netscape 6.2):
*** ERROR ***
access denied (java.io.FilePermission \\host.name.com\openmap\data.jar
read)
*************
java.security.AccessControlException: access denied (java.io.FilePermission
\\host.name.com\openmap\data.jar read)
at java.security.AccessControlContext.checkPermission(Unknown
Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkRead(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at com.bbn.openmap.io.JarInputReader.reopen(JarInputReader.java:73)
at com.bbn.openmap.io.JarInputReader.<init>(JarInputReader.java:58)
at
com.bbn.openmap.io.BinaryFile.setJarInputReader(BinaryFile.java:212)
at com.bbn.openmap.io.BinaryFile.<init>(BinaryFile.java:131)
at
com.bbn.openmap.io.BinaryBufferedFile.<init>(BinaryBufferedFile.java:84)
at
com.bbn.openmap.io.BinaryBufferedFile.<init>(BinaryBufferedFile.java:96)
at
com.bbn.openmap.layer.shape.SpatialIndex.<init>(SpatialIndex.java:178)
at
com.bbn.openmap.layer.shape.SpatialIndex.locateAndSetShapeData(SpatialIndex.
java:709)
at
com.bbn.openmap.layer.shape.ShapeLayer.setProperties(ShapeLayer.java:179)
at com.bbn.openmap.util.ComponentFactory.create(ComponentFactory.java:129)
at com.bbn.openmap.LayerHandler.getLayers(LayerHandler.java:307)
at
com.bbn.openmap.gui.OverviewMapHandler.setProperties(OverviewMapHandler.java
:334)
at
com.bbn.openmap.gui.OverviewMapHandler.init(OverviewMapHandler.java:242)
at
com.bbn.openmap.gui.OverviewMapHandler.findAndInit(OverviewMapHandler.java:9
02)
at
com.bbn.openmap.gui.OverviewMapHandler.setBeanContext(OverviewMapHandler.jav
a:966)
at java.beans.beancontext.BeanContextSupport.add(Unknown Source)
at
com.bbn.openmap.PropertyHandler.createComponents(PropertyHandler.java:515)
at com.bbn.openmap.app.OpenMapApplet.init(OpenMapApplet.java:142)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
where my applet is at http://host.name.com/openmap/
with 2 jar files, openmap.jar that contains the altered BinaryFile.class
and data.jar that contains a layer I am creating and the DTED and Political
Boundaries data
Any ideas why java is acting as if the jar is a local file that I don't hava
permission to access?
thanks,
Barney
-- [To unsubscribe to this list send an email to "majdart@bbn.com" with the following text in the BODY of the message "unsubscribe openmap-users"]Received on Wed Mar 13 18:30:38 2002
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:32 EDT