• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

issue when migrating weblogic9.2 to weblogic10.0

 
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 103
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
The happiness of your life depends upon the quality of your thoughts -Marcus Aurelius ... think about this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic