TIBCO BusinessWorks application throws "java.lang.AbstractMethodError: javax.xml.parsers.DocumentBuilderFactory.setFeature" on startup.

TIBCO BusinessWorks application throws "java.lang.AbstractMethodError: javax.xml.parsers.DocumentBuilderFactory.setFeature" on startup.

book

Article ID: KB0086435

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks -
Not Applicable -

Description

Resolution:
Description:
============

TIBCO BusinessWorks application throws "java.lang.AbstractMethodError: javax.xml.parsers.DocumentBuilderFactory.setFeature" on startup.

Environment:
===========

TIBCO BusinessWorks 5.x

Symptoms:
========

BW engine fails to start and throws the following error:

java.lang.AbstractMethodError: javax.xml.parsers.DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)V

        at com.tibco.xml.parsers.xmlfactories.DocumentBuilderFactory.<init>(DocumentBuilderFactory.java:63)

        at com.tibco.xml.parsers.xmlfactories.DocumentBuilderFactory.<init>(DocumentBuilderFactory.java:51)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

        at java.lang.Class.newInstance0(Class.java:355)

        at java.lang.Class.newInstance(Class.java:308)

        at javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:147)

        at javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:187)

        at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:123)

        at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:644)

        at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:616)

        at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:602)

        at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:460)

        at org.apache.log4j.LogManager.<clinit>(LogManager.java:113)

        at org.apache.log4j.Logger.getLogger(Logger.java:94)

        at com.tibco.share.util.Trace.do(Unknown Source)

        at com.tibco.share.util.Trace.<init>(Unknown Source)

        at com.tibco.share.util.Trace.<init>(Unknown Source)

        at com.tibco.pe.core.JobPoolCreator.createTrace(Unknown Source)

        at com.tibco.pe.PEMain.a(Unknown Source)

        at com.tibco.pe.PEMain.do(Unknown Source)

        at com.tibco.pe.PEMain.a(Unknown Source)

        at com.tibco.pe.PEMain.<init>(Unknown Source)

        at com.tibco.pe.PEMain.main(Unknown


Cause:
=====

This happens when an old version of Xerces jar is loaded instead of Xerces jar present in <TIBCO_HOME>/tpcl/<version>/lib.


Resolution:
==========

Open the deployed BW application .tra and add the correct reference to Xerces jar ("<TIBCO_HOME>/tpcl/<version>/lib/xercesImpl.jar") as the first entry in the "tibco.class.path.extended" variable.

Issue/Introduction

TIBCO BusinessWorks application throws "java.lang.AbstractMethodError: javax.xml.parsers.DocumentBuilderFactory.setFeature" on startup.