I am just wondering, which I need to replace from version 2.1.9 with the above two jar (I want to use the latest version).
When I got the version 2.1.9, I have the following jars:
Any help will be appreciated. Thank you in advance. [ November 26, 2008: Message edited by: Md Uddin ]
MURAD (SCJP 5.0, SCWCD 1.4)
If you learn to program in Java, you'll never be without a job! (Patricia Seybold in 1998) - Knowing the syntax of Java does not make someone a software engineer. (John Knight)
Joined: Jan 11, 2006
As I didn't get any answer from the above thread. Let me try it another way to resolve my issue.
My application was using jaxb-rt-1.0-ea.jar jaxb-xjc-1.0-ea.jar
which I would like to replace with current jaxb 2.1.9 version jars I probably need jaxb-api.jar jaxb-xjc.jar
But I realized that lots of classes from older version has been deprecated, which I am using, like: javax.xml.bind.MarshallableRootElement;
Sorry for the inconvenience, I'm looking for jaxb-rt-1.0-ea.jar documentation. I was looking at http://java.sun.com/webservices/docs/1.5/api/ but found no information about deprecated classes like javax.xml.bind.Dispatcher, javax.xml.bind.RootElement etc. Do you have any ideas where could I found it?
Joined: Dec 28, 2009
Even I searched for the documentation of jaxb-rt-1.0-ea.jar but, no use.
Anyways, there is no replacement for jaxb-rt-1.0-ea.jar. But, we can easily migrate to JAXB 2.1 or 2.2.
Though we need to rewrite the code which uses jaxb-rt-1.0-ea.jar, it is easy to do.
If you want to migrate from jaxb-rt-1.0-ea.jar to JAXB 2.1 or 2.2, I can help you.
One thing is sure, you can't use jaxb-rt-1.0-ea.jar with JDK 1.6 !
Rajesh, we're trying to upgrade from jaxb-rt-1.0-ea but can't find any documentation on how to do it. If you could give me some tips, that would be great! I also PM'ed you about this as well.
Thanks in advance,
Joined: Dec 28, 2009
Please find my comments below
Preliminary Steps: 1. You need to convert all your old .dtd files to .xsd files. You have several tools to convert this.
You can use the below mentioned online tool for conversion:
http://www.hitsw.com/xml_utilites/ 2. Generated .xsd files may not be perfect! But we can fine tune it. I will give a tip for fine tuning the .xsd file.
a. Generate java files for the new .xsd files. (Generating java classes is explained below).
b. Compare the java files against the old java file.
c. If you don’t see any difference in the member variable and its method names then your .xsd file is perfect else you have to modify .xsd file based on the old java file method names.
Steps to convert old jaxb-rt-1.0-ea to new JDK 1.6 JAXB: 1. Remove the old .dtd and .xjs files instead include new .xsd files.
2. Generate new java files using .xsd files and replace the old JAXB related java files with the new generated one.
3. For marshalling and unmarshalling see the below link
https://jaxb.dev.java.net/tutorial/ Read the tutorial, you will get a clear idea about marshalling and un marshalling in JDK 1.6
If you need further assistance then please let me know.