I've been working to port our application to Orion and have encountered a
strange problem with file access.
I can successfully deploy our application (web app plus ejbs) and on
accessing it the first part now runs correctly; a session bean is
instantiated and responds correctly...
When we move on to using the second session bean we get the errors below:
it looks like the sort of problem a dodgy policy file would cause but we're
not using one (and the default supplied with teh jdk has not been changed).
The last two errors (accessing server.xml and default-web-site.xml) repeat
every second or so (ie every time orion checks if they have changed or not).
This is really strange because until I cause the error by accessing
the session bean, the checks on these files work correctly...
The file being complained about (VMPervasives) is in a jar file in the orion
lib directory and within the jar it has the correct path. Files used in the
same manner by the first session bean are also stored in a jar in the lib
directory and they seem to work.
Anyone got any ideas on this??
Stats are:
Orion 1.5.2
Windows NT 4 (sp6a)
JDK 1.3.0-C
Cheers,
-Dominic
SessionBean Initialisation Error: access denied (java.io.FilePermission
D:\orion\lib\com\telelogic\vbs\vm
\main\VMPervasives.class read)
java.security.AccessControlException: access denied (java.io.FilePermission
D:\orion\lib\com\telelogic\vb
s\vm\main\VMPervasives.class read)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java
:272)
at
java.security.AccessController.checkPermission(AccessController.java:399)
at
java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
at java.lang.SecurityManager.checkRead(SecurityManager.java:890)
at java.io.File.exists(File.java:543)
at com.evermind.naming.file.FileContext.lookup(Unknown Source)
at com.evermind._ff.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.evermind._dz.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at com.telelogic.vbs.vm.servlet.VMRemote.init(VMRemote.java:67)
at
com.telelogic.vbs.vm.servlet.VMAppletHandler.init(VMAppletHandler.java:138
)
at com.telelogic.vbs.vm.servlet.VMServlet.init(VMServlet.java:41)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at com.evermind._ah._axe(Unknown Source)
at com.evermind._ah._fpd(Unknown Source)
at com.evermind._ah._cwc(Unknown Source)
at com.evermind._io._twc(Unknown Source)
at com.evermind._io._gc(Unknown Source)
at com.evermind._if.run(Unknown Source)
access denied (java.io.FilePermission
D:\orion\lib\com\telelogic\vbs\vm\main\VMPervasives.class read)
java.security.AccessControlException: access denied (java.io.FilePermission
D:\orion\config\server.xml re
ad)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java
:272)
at
java.security.AccessController.checkPermission(AccessController.java:399)
at
java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
at java.lang.SecurityManager.checkRead(SecurityManager.java:890)
at java.io.File.lastModified(File.java:636)
at com.evermind._ag.isUpdated(Unknown Source)
at com.evermind._hz.isUpdated(Unknown Source)
at com.evermind.server.ApplicationServer._wn(Unknown Source)
at com.evermind._ir.run(Unknown Source)
at com.evermind._co.run(Unknown Source)
at com.evermind._if.run(Unknown Source)
java.security.AccessControlException: access denied (java.io.FilePermission
D:\orion\config\default-web-s
ite.xml read)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java
:272)
at
java.security.AccessController.checkPermission(AccessController.java:399)
at
java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
at java.lang.SecurityManager.checkRead(SecurityManager.java:890)
at java.io.File.lastModified(File.java:636)
at com.evermind._ag.isUpdated(Unknown Source)
at com.evermind._ab._wn(Unknown Source)
at com.evermind._ebb.run(Unknown Source)
at com.evermind._co.run(Unknown Source)
at com.evermind._if.run(Unknown Source)
--
Dominic Tulley
Lead Architect, VBS
Telelogic Technologies UK Ltd,
4th Floor, Hanover Buildings
Rose Street, Edinburgh, EH2 2NN
Phone: +44 131 622 3624
mailto:[EMAIL PROTECTED]
http://www.telelogic.com
Telelogic - Putting you ahead in