The AdminServer.log shows:
#### <> <> <> weblogic.security.SecurityInitializationException: The loading of OPSS java security policy provider failed due to exception, see the exception stack trace or the server log file for root cause. If still see no obvious cause, enable the debug flag -Djava.security.debug=jpspolicy to get more information. Error message: javax/xml/transform/TransformerFactory.newInstance(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljavax/xml/transform/TransformerFactory;
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.loadOPSSPolicy(CommonSecurityServiceManagerDelegateImpl.java:1402)
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(CommonSecurityServiceManagerDelegateImpl.java:1022)
at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:873)
at weblogic.security.SecurityService.start(SecurityService.java:141)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
Caused By: java.lang.NoSuchMethodError: javax/xml/transform/TransformerFactory.newInstance(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljavax/xml/transform/TransformerFactory;
at oracle.security.jps.service.policystore.info.RuleExpressionEntry.(RuleExpressionEntry.java:1708)
at oracle.security.jps.internal.policystore.entitymanager.impl.PolicyRuleManagerImpl.(PolicyRuleManagerImpl.java:212)
at oracle.security.jps.internal.policystore.info.PolicyDomainEntryImpl.(PolicyDomainEntryImpl.java:111)
at oracle.security.jps.internal.policystore.JpsAppPolicy.(JpsAppPolicy.java:474)
at oracle.security.jps.internal.policystore.xml.XmlPolicyStore.init(XmlPolicyStore.java:355)
at oracle.security.jps.internal.policystore.xml.XmlPolicyStore.initDataStoreEntry(XmlPolicyStore.java:484)
at oracle.security.jps.internal.policystore.xml.XmlPolicyStore.buildFromFile(XmlPolicyStore.java:525)

Changes


Application developer placed application specific classes in the endorsed folder

Cause


After enabling debugging at the command line:
Setting these options:
Set in command line:
set JAVA_OPTIONS=-verbose:class
-Dweblogic.classloader.debug=true
-Dweblogic.utils.classloaders.GenericClassLoader.Verbose=true
-Dweblogic.utils.classloaders.FilteringClassLoader.Verbose=true
-Dweblogic.utils.classloaders.ChangeAwareClassLoader.Verbose=true

This created the file uploaded to the SR which found the following:

java_env.log
FILE=java_env.log
[Loaded javax.xml.transform.TransformerFactory from D:\oracle\Java\jdk\jre\lib\endorsed\xml-apis.jar]
The expected class was from rt.jar, but endorsed directory contents overrides default classes/standards.
Reference:
 http://docs.oracle.com/javase/7/docs/technotes/guides/standards/

As a test, rename or save/remove D:\oracle\Java\jdk\jre\lib\endorsed directory

After moving the endorsed directory the AdminServer is able to start.

Program/Application specific JAr files in the JRE/lib/endorsed directory were causing a conflict. Once these files were removed the issue was resolved.

1 Comments

  1. Hi,

    I have installed SOA in my windows 7 laptop and when I try to start the admin server. I am getting the below error.


    (RegistrySchemaFactory.java:34)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    Truncated. see log file for complete stacktrace

    Could anyone please help me in fixing the issue?

    Thanks in advance.

    ReplyDelete