Friday, 27 February 2015

Weblogic

Version: check:
locate registry.xml
ex:
   /u01/oracle/products/identity/registry.xml
   component name="WebLogic Server" version="10.3.6.0"

or:

java -cp weblogic.jar weblogic.version



Problem: 
When deploying a spring application with hibernate-validator, getting the exception below when starting the app:
Caused by: java.lang.ClassCastException: weblogic.xml.stax.XMLStreamInputFactory
at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136)

at org.hibernate.validator.internal.xml.XmlParserHelper.<init>(XmlParserHelper.java:66)

Solution:
Added woodstox-core-asl-4.2.0.jar to lib


See all the classes loaded in the perm in weblogic:

add -verbose:class to start parameters (JAVA_OPTIONS)

No comments:

Post a Comment