Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

issue when migrating weblogic9.2 to weblogic10.0

 
guru prasanth
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not aware of a change in policy. Do you have a custom policy for the security manager to load ?
 
guru prasanth
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes there is a custom policy file for the application.But that policy file was working well with weblogic9.2.
 
Joseph Antoine Raja
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guru,

When we have migrated the env from WSL8 to WLS 9 we did not migrate the user credentials/security roles/policie. we have manually configured after the upgrade.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic