-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
org/w3c/dom/ls/DocumentLS #4
Comments
Any solution to this? |
I'm running the bundle jar file wrapped in Python code see code below for testing an input and for testing equivalence for FSAs
|
I have written a similar utility inspired by this repo, you can try it out here: |
Quick FixIf you're using Gradle (solution is similar for Maven, see related reading) you can address this issue by overriding the dependencies {
// ...
implementation("com.github.citiususc:jflap-lib:1.3") {
exclude(group = "xerces", module = "xercesImpl")
}
implementation("xerces:xercesImpl:2.12.2")
// ...
} Related ReadingHere is a related issue: https://stackoverflow.com/questions/62006284/noclassdeffounderror-org-w3c-dom-ls-documentls-issue-occurring-only-on-deploy |
When I try to run the jar bundles with any FSA I always get the following error
Exception in thread "main" java.lang.NoClassDefFoundError: org/w3c/dom/ls/DocumentLS
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1016)
at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:151)
at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:821)
at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:719)
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:642)
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:600)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
at org.apache.xerces.jaxp.DocumentBuilderImpl.(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown Source)
at edu.duke.cs.jflap.file.XMLCodec.decode(XMLCodec.java:59)
at edu.duke.cs.jflap.file.XMLCodec.decode(XMLCodec.java:90)
at es.usc.citius.jflap.cli.IO.loadAutomaton(IO.java:37)
at es.usc.citius.jflap.cli.CommandLine$RunInputCommand.run(CommandLine.java:79)
at es.usc.citius.jflap.cli.CommandLine$Cli.parseAndRun(CommandLine.java:136)
at es.usc.citius.jflap.cli.CommandLine.main(CommandLine.java:21)
Caused by: java.lang.ClassNotFoundException: org.w3c.dom.ls.DocumentLS
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:602)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 17 more
The text was updated successfully, but these errors were encountered: