Xalan classes in jdk1.5

My Java application works with 1.4.x versions of java.

If I use 1.5, the following error is thrown :

java.lang.NoClassDefFoundError: org/apache/crimson/tree/XmlDocument

I compared the jar libraries in 1.4.x and 1.5 and found that the xalan classes are missing in 1.5.

What should I do to correct this. Add xalan.jar additionally to the classpath ?

is there a packaging change in 1.5 ?

[421 byte] By [Krish_Sathish_Raja] at [2007-9-30 19:27:43]
# 1

You shouldn't be directly using the bundled XML parser implementations. They are likely to change between different versions of the Java runtime.

Instead you should be using the JAXP interfaces e.g. org.w3c.dom.Document. See chapters 4, 5, 6 and 7 of the J2EE tutorial for more information: http://java.sun.com/j2ee/1.4/docs/tutorial/doc/index.html

philip_ross at 2007-7-6 23:41:21 > top of Java-index,Administration Tools,Sun Connection...
# 2
I'm not sure what you mean... why they are included when i should not use them ?Thanx in advance
arkadycc at 2007-7-6 23:41:21 > top of Java-index,Administration Tools,Sun Connection...
# 3
They get used indirectly when you use the provided factories and interfaces. JAXP is designed so you can 'plug in' any compliant XML parser you want without having to change your code.
philip_ross at 2007-7-6 23:41:21 > top of Java-index,Administration Tools,Sun Connection...
# 4
Add xalan.jar to Classpath.Reboot after modifying Classpath. http://xml.apache.org/xalan-j/thanks,Deepak
dvohra09 at 2007-7-6 23:41:21 > top of Java-index,Administration Tools,Sun Connection...