PiJava

December 4, 2009

java.lang.LinkageError: Class javax/xml/namespace/QName violates loader constraints: definition mismatch between parent and child loaders

Filed under: java, problems — Tags: , — pijava @ 9:58 am

Reason:
QName.class exists in both j2ee.jar and some jar that was added to the project. A definition mismatch occurs when classloader load these QName classes.

Solution:
Remove QName.class file from the jars that you add to the project. (ie. stax-api-1.0.1.jar, xml-apis-1.3.04.jar)

May 4, 2009

WARNING: Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.

Filed under: java, problems — Tags: , — pijava @ 10:33 am

Solution:

1. download activation.jar http://java.sun.com/javase/technologies/desktop/javabeans/jaf/downloads/index.html

2. download mail.jar http://java.sun.com/products/javamail/downloads/index.html

3. add these two jar’s to the project

Blog at WordPress.com.