Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

XwsSecurityInterceptor throws java.lang.IllegalArgumentException  RSS feed

 
Mat Anthony
Ranch Hand
Posts: 262
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I'm currently trying to use a spring ws security to guard my spring webservices.
I use a securityPolicy.xml within the XwsSecurityInterceptor.
I'm getting a java.lang.IllegalArgumentException everytime I attempt to deploy the application.
The problem seems to occur within class SecurityConfigurationXmlReader method parseXmlStream.
I think the InputStream xmlStream ref securityPolicy.xml.

Everytime the code reaches the following line within class SecurityConfigurationXmlReader it hits
java.lang.IllegalArgumentException.

factory.setAttribute(
"http://apache.org/xml/features/validation/dynamic",
Boolean.FALSE);

Stack Trace:-




file:securityPolicy.xml




Mat>
 
Mat Anthony
Ranch Hand
Posts: 262
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
for anybody interested, this error was due to the application server (i.e. oc4j 10.1.3) using it's default parser xmlparserv2.jar.
To resolve this fault I added xerces parser to the shared-library on the server. This allowed the server to load up xerces first into it's class
loader on boot up.

Mat
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!