I recently
downloaded the 1.1 version of the Java XML security library. I notice that
it now uses the Apache commons logging package rather than log4j.
When I replaced the
1.0 version in my web app with the 1.1 version (and
supporting commons-logging library) and deployed it to WebSphere
application server 5.1, I'm now getting the following ClassCastException during
initialisation:
org.apache.commons.logging.LogConfigurationException:
java.lang.ClassCastException:
com.ibm.ws.commons.logging.TrLogFactory
at org.apache.commons.logging.LogFactory$2.run(LogFactory.java:609)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:561)
at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:352)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:414)
at at org.apache.xml.security.Init.<clinit>(Unknown Source).null(Unknown Source)
... 64 more
at org.apache.commons.logging.LogFactory$2.run(LogFactory.java:609)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:561)
at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:352)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:414)
at at org.apache.xml.security.Init.<clinit>(Unknown Source).null(Unknown Source)
... 64 more
Any suggestions how
to resolve this?
Steve
