Skip to content

java.lang.NoClassDefFoundError: Could not initialize class com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator #564

Description

@tmuldoon

In an attempt to remediate a commons-net vulnerability, CVE-2021-37533, I updated htmlunit from 2.66.0 to 2.70.0 (which bumped commons-net from 3.8.0 to 3.9.0). While this did in fact remediate the vulnerability, it came with a side-effect in which my integration tests now fail...

java.lang.NoClassDefFoundError: Could not initialize class com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator

... while parsing a Spring context file (which has not changed).

Worth noting, I am using java 11.0.16.8.1. Also worth noting, htmlunit:2.7.0 includes a "provided" dependency on xerces:xercesImpl:2.12.2 (while htmlunit 2.66.0 does not).

Appreciate any and all ideas.

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions