Skip to content
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

NoClassDefFoundError org.apache.xml.serializer.TreeWalker #6614

Closed
wmz7year opened this issue Oct 30, 2015 · 5 comments
Closed

NoClassDefFoundError org.apache.xml.serializer.TreeWalker #6614

wmz7year opened this issue Oct 30, 2015 · 5 comments

Comments

@wmz7year
Copy link

java.lang.NoClassDefFoundError: org/apache/xml/serializer/TreeWalker
    at org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:823)
    at com.hazelcast.config.AbstractXmlConfigHelper.schemaValidation(AbstractXmlConfigHelper.java:182)
    at com.hazelcast.config.XmlConfigBuilder.parseAndBuildConfig(XmlConfigBuilder.java:211)
    at com.hazelcast.config.XmlConfigBuilder.build(XmlConfigBuilder.java:194)
    at com.hazelcast.config.ClasspathXmlConfig.<init>(ClasspathXmlConfig.java:100)
    at com.hazelcast.config.ClasspathXmlConfig.<init>(ClasspathXmlConfig.java:57)
    at com.hazelcast.config.ClasspathXmlConfig.<init>(ClasspathXmlConfig.java:44)

I use hazelcast 3.5.1 and got this exception,How can I fix it?

@pveentjer
Copy link
Contributor

That is a strange error.

Can you post your JVM version?
Can you post the full classpath? Perhaps you have some Xalan jars on your classpath that might cause conflicts (wild guess)

@wmz7year
Copy link
Author

wmz7year commented Nov 2, 2015

java version "1.7.0_79"
Java(TM) SE Runtime Environment (build 1.7.0_79-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)

hazelcast-3.5.1.jar hazelcast-cloud-3.5.1.jar and xalan-1.3.jar

@bilalyasar
Copy link
Contributor

@wmz7year , this is known issue for us.. We have completely fixed this issue in 3.6.. For 3.5, we advice some workarounds. Can you please set this system property in your jvm , (also you can pass this property to your jvm as an arg line)

System.setProperty("javax.xml.transform.TransformerFactory",
                "com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl");

many thanks for feedback and we are waiting your new feedbacks..

@wmz7year
Copy link
Author

wmz7year commented Nov 2, 2015

@bilalyasar Thanks, it works!

@wmz7year wmz7year closed this as completed Nov 2, 2015
wmz7year added a commit to wmz7year/Openfire that referenced this issue Nov 2, 2015
wmz7year added a commit to wmz7year/Openfire that referenced this issue Nov 4, 2015
wmz7year added a commit to wmz7year/Openfire that referenced this issue Nov 4, 2015
@smallCabbage
Copy link

@bilalyasar good, it work! My error is
"java.lang.IllegalStateException: You are running with invalid JAXP api or implementation. JAXP api/implementation of version 1.3.1 (included in JDK6) or higher is required. In case you are using ant, make sure ant 1.7.0 or higher is used - older versions of ant contain JAXP api/impl version 1.2 (in xml-apis.jar). If you want to keep using older ant versions, you have to configure it to use higher the JAXP api/impl versions.";

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

No branches or pull requests

4 participants