Error: Could not initialize class com.netegrity.util.JAXBParsingUtil
search cancel

Error: Could not initialize class com.netegrity.util.JAXBParsingUtil

book

Article ID: 228910

calendar_today

Updated On:

Products

SITEMINDER CA Single Sign On Secure Proxy Server (SiteMinder)

Issue/Introduction


After upgrading the CA Access Gateway (SPS) to 12.8 SP5 or newest release, the Federation Transactions are failing with the following errors:

[11/15/2021][16:38:12][2685][140445043083008][][AssertionConsumer.java][doPost][Stack Trace: java.lang.LinkageError: You are trying to run JAXB 2.0 runtime (from jar:file:/<InstallDir>/secure-proxy/default/Tomcat/webapps/affwebservices/WEB-INF/lib/jaxb-runtime.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class) but you have old JAXB 1.0 runtime earlier in the classpath (at jar:file:/<InstallDir>/secure-proxy/default/Tomcat/webapps/affwebservices/WEB-INF/lib/jaxb-impl.jar!/com/sun/xml/bind/WhiteSpaceProcessor.class) Please remove the JAXB 1.0 runtime for 2.0 runtime to work correctly.

    at com.sun.xml.bind.v2.model.impl.ModelBuilder.<clinit>(ModelBuilder.java:170)
    at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:425)
    at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:273)
    at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:109)
    at com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1126)
    at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:135)
    at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:259)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

[11/15/2021][16:43:11][2685][140445033608960][][AssertionConsumer.java][doPost][Stack Trace: java.lang.NoClassDefFoundError: Could not initialize class com.netegrity.util.JAXBParsingUtil

    at com.netegrity.affiliateminder.webservices.saml2.AssertionConsumer.a(fedfws_obfsc:1060)
    at com.netegrity.affiliateminder.webservices.saml2.AssertionConsumer.doPost(fedfws_obfsc:590)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:652)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166

 

Environment

 

  • CA Access Gateway (SPS) 12.8SP05 on Linux;

 

Cause


The jaxb-impl.jar is no longer being shipped with CA Access Gateway (SPS)12.8SP5.

The upgrade of 12.8SP5 also handles the deletion of jaxb-impl.jar from previous versions if at all present.

During installation, the installer may have an issue deleting the jar file causing the error observed.

 

Resolution

 

To fix the issue, go to

  "/<InstallDir>/secure-proxy/default/Tomcat/webapps/affwebservices/WEB-INF/lib"

and make sure the jaxb-impl.jar is completely removed from this location, restart the Access Gateway to solve this issue.