Friday, December 08, 2006

WebSphere DTMConfigurationException: No default implementation found

WebSphere DTMConfigurationException DTMManager xalan

Problem:After upgrading the WebSphere Application Server JDK with the .11 Fix pack (making it there is the following error when my web app. tries to get a transformer:
org.apache.xml.dtm.DTMConfigurationException: No default implementation found
    at org.apache.xml.dtm.DTMManager.newInstance(
    at org.apache.xpath.XPathContext.(
    at org.apache.xalan.transformer.TransformerImpl.(
    at org.apache.xalan.templates.StylesheetRoot.newTransformer(

The problem seems to be at least associated with the fix pack creating a new file "" in APPSERVER_HOME\java\jre\lib. It could also be upgrading the xalan libraries as well (in xml.jar).

Edit this file - you'll notice this isn't defining any properties, everything is commented out - and add the property:

Alternatively, remove or rename this file and the problem should also go away.

Alternatively again, add the JVM system property "org.apache.xml.dtm.DTMManager". You can do this on WebSphere by going to:
Application servers > server1 > Process Definition > Java Virtual Machine
... and adding to the Generic JVM arguments:

Restart the server and the problem should also go away - use this approach for where you don't have access to the APPSERVER_HOME\java\jre\lib files and can only configure your application's JVM.

No comments: