I am trying to display an HTML file in a ULCHtmlPane. The file resides
on the server.
It works fine with the development launcher, but when I try to run in
Tomcat, I get the following exception. I was surprised to see this
because I am only accessing files on the server, not on the client. I
signed all the client-side jars anyway, but it didn't help. This is
only a problem with HTML; accessing other data files such as images for
button icons works fine, so perhaps it is how I am accessing the file
that is causing the problem?
I am loading the file with:
URL pagepath = new File(htmlFile).toURI().toURL();
aboutEMSTHtmlPane.setPage(pagepath.toString());
where htmlFile is a relative path:
"webapps/emst/WEB-INF/data/portal/aboutEMST.html"
This is accessing the server, correct? Is it a signing issue, or
something else?
Thanks,
Mary Ann
2 09.02.2007 17:17:00.037 900 WARNING
Thread[http-8080-1,5,main] com.ulcjava.base.server.ULCSession
a Exception received from client:
java.security.AccessControlException: access denied
(java.io.FilePermission D:\Program Files\Apache Software
Foundation\Tomcat 5.5\webapps\emst\WEB-INF\data\portal\aboutEMST.html
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.io.File.isDirectory(Unknown Source)
at
sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source)
at
sun.net.www.protocol.file.FileURLConnection.initializeHeaders(Unknown
Source)
at
sun.net.www.protocol.file.FileURLConnection.getHeaderField(Unknown
Source)
at sun.net.www.URLConnection.getContentType(Unknown Source)
at
javax.swing.JEditorPane.handleConnectionProperties(Unknown Source)
at javax.swing.JEditorPane.getStream(Unknown Source)
at javax.swing.JEditorPane.setPage(Unknown Source)
at com.ulcjava.base.client.UIHtmlPane.a(UIHtmlPane.java:8)
Thanks,
Mary Ann