Iam migrating my application from weblogic 9.2 to weblogic 10.0 also from jdk1.5 to jdk1.6.
Iam getting sevaral access exeption like the one below.
Exception in
thread "main" java.lang.ExceptionInInitializerError
at weblogic.Home.getFileSource(Home.java:70)
at weblogic.Home.<init>(Home.java:33)
at weblogic.Home.<init>(Home.java:18)
at weblogic.Home$HomeSingleton.<clinit>(Home.java:24)
at weblogic.Home.getInstance(Home.java:88)
at weblogic.Home.getPath(Home.java:96)
at weblogic.Server.getLibraryExtensions(Server.java:231)
at weblogic.Server.getExtensionJars(Server.java:198)
at weblogic.Server.intializeClassloader(Server.java:135)
at weblogic.Server.main(Server.java:66)
Caused by: java.security.AccessControlException: access denied (java.io.FilePermission C:\Program Files
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:269)
at java.security.AccessController.checkPermission(AccessController.java:401)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
at java.lang.SecurityManager.checkRead(SecurityManager.java:863)
at java.io.File.exists(File.java:678)
at java.io.Win32FileSystem.canonicalize(Win32FileSystem.java:360)
at java.io.File.getCanonicalPath(File.java:513)
at weblogic.utils.classloaders.ClasspathClassFinder2.<clinit>(ClasspathClassFinder2.java:24)
... 10 more
On modifying the access policy iam getting the following error.
java.security.AccessControlException: access denied (java.lang.RuntimePermission shutdownHooks)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
at java.security.AccessController.checkPermission(AccessController.java:546)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at java.lang.Runtime.addShutdownHook(Runtime.java:190)
at java.util.logging.LogManager.<init>(LogManager.java:237)
Truncated. see log file for complete stacktrace
>
***************************************************************************
The WebLogic Server encountered a critical failure
Reason: Assertion violated
***************************************************************************
Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class weblogic.protocol.ServerIdentityManager$Initializer
at weblogic.protocol.ServerIdentityManager.findServerIdentity(ServerIdentityManager.java:65)
at weblogic.protocol.URLManager.findAdministrationURL(URLManager.java:172)
at weblogic.server.ServerLifeCycleRuntime.getLifeCycleOperationsRemote(ServerLifeCycleRuntime.java:687)
at weblogic.t3.srvr.ServerRuntime.sendStateToAdminServer(ServerRuntime.java:412)
at weblogic.t3.srvr.ServerRuntime.updateRunState(ServerRuntime.java:398)
at weblogic.t3.srvr.T3Srvr.setState(T3Srvr.java:172)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:389)
at weblogic.Server.main(Server.java:67)
Please let me know what's the change in policy files between weblogic9.2 to weblogic10.0