"java.lang.NoSuchMethodError: javax.xml.parsers.DocumentBuilderFactory.newInstance" Exception While Starting SOA Server and Initializing wsm-pm Application (Doc ID 1527687.1)

Last updated on JUNE 10, 2016

Applies to:

Oracle SOA Platform - Version 11.1.1.6.0 and later
Information in this document applies to any platform.

Symptoms

On : 11.1.1.6.0 version, BPEL Service Engine

After upgrading SOA Environment from 11.1.1.3 to 11.1.1.6, wsm-pm deployment fails with the following exception

ERROR

weblogic.application.ModuleException: [HTTP:101216]Servlet: "PolicyManagerValidator" failed to preload on startup in Web application: "/wsm-pm".
java.lang.NoSuchMethodError: javax.xml.parsers.DocumentBuilderFactory.newInstance(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljavax/xml/parsers/DocumentBuilderFactory;
at oracle.wsm.xml.XMLUtils.getDocBuilderFactoryToUse(XMLUtils.java:375)
at oracle.wsm.xml.XMLUtils.getDocFromInputStream(XMLUtils.java:442)
at oracle.wsm.policymanager.bean.util.DocumentManagerUtil.loadDocumentsFromSeedJar(DocumentManagerUtil.java:201)
at oracle.wsm.policymanager.bean.UpgradeManagerBean.loadSeedPolicyJar(UpgradeManagerBean.java:330)
at oracle.wsm.policymanager.bean.UpgradeManagerBean.(UpgradeManagerBean.java:189)
at oracle.wsm.policymanager.web.PolicyManagerValidator.init(PolicyManagerValidator.java:108)
at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:283)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64)
at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
at weblogic.servlet.internal.StubLifecycleHelper.(StubLifecycleHelper.java:48)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:539)
at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1981)
at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1955)

 


STEPS

The issue can be reproduced at will with the following steps:

  1. Upgrade to a SOA environment from 11.1.1.3 to 11.1.1.6
  2. Start the SOA Server which uses wsm-pm application to get the exception
  3. The above failure occurs if the application deployed through console as well

BUSINESS IMPACT

The issue has the following business impact:
Due to this issue, upgraded SOA environment because unusable, and SOA infrastructure is not able to use the wsm policies.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms