| Author |
Message |
|
|
Post subject: JAXB/JAXBBuilder in Eclipse
Posted: Aug 19, 2011 - 09:51 PM
|
|
Joined: Aug 19, 2011
Posts: 4
|
|
I am trying to get JAXBBuIlder working in MyEclipse. My goal is to have a project with XML schemas(s) that will auto build the JAXB java classes anytime a schema is modified. The general instructions for installing JAXBBuilder say to copy the files form zip into <EclipseDir>/plugins. First, there was no 'plugins' folder' in my Eclipse directory, so I created one, and then copied the files. However, JAXBBuilder does not seem to work as it should. Any advice, or installation instructions would be greatly appreciated.
I am using:
MyEclipse Enterprise Workbench
Version: 8.5
Build id: 8.5-20100319 |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Aug 22, 2011 - 03:59 AM
|
|

Joined: Nov 11, 2010
Posts: 2191
|
|
|
_________________ Swapna
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject: Installed but not working
Posted: Aug 22, 2011 - 09:23 PM
|
|
Joined: Aug 19, 2011
Posts: 4
|
|
I am now seeing the error:
Description Resource Path Location Type
java.io.IOException: Cannot run program "C:\tools\jaxb-ri-20110601\bin\xjc.bat": CreateProcess error=193, %1 is not a valid Win32 application schema /ETSchemas Unknown JAXB Generation Problem
The jaxbpath is
C:\tools\jaxb-ri-20110601\bin\xjc.bat |
|
|
| |
|
|
|
 |
|
|
Post subject: Hmmm. Seems to work now
Posted: Aug 22, 2011 - 11:51 PM
|
|
Joined: Aug 19, 2011
Posts: 4
|
|
I Created a new project, and it seems to work properly. Upon further investigation, I see that the project defaults to 'Castor' as the Active Code Generator. By changing to JAXB 2.0, I get the error shown above. Castor seems to work OK, and so I will move on. That said, I appreciate any feedback that can help me to fully understand JAXB. |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Aug 23, 2011 - 06:32 AM
|
|

Joined: Nov 11, 2010
Posts: 2191
|
|
videophool ,
Glad that it is working.
Take a look at this tutorial for complete understanding of JAXB :
http://jaxb.java.net/tutorial/
I suggest you cross post JAXB specific issues to JAXB forums for better support.
Hope this helps. |
_________________ Swapna
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject: All problems solved
Posted: Aug 23, 2011 - 06:36 AM
|
|
Joined: Aug 19, 2011
Posts: 4
|
|
I also got the JAXB working. The jaxb install includes a tool xjc.bat which generates classes from xsd, and I was pointing to this file. However, Eclipse needs to be pointed to xjc.exe which is in the jdk/bin folder. Everything is now working perfectly in Eclipse, and I am working on the Ant/Ivy side. Thanks. |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Aug 23, 2011 - 09:15 AM
|
|

Joined: Nov 11, 2010
Posts: 2191
|
|
videophool ,
Glad that it is working.
Do let us know if you have any other issues. |
_________________ Swapna
MyEclipse Support
|
| |
|
|
|
 |
|
|