Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: eclipse-plugin
-
Labels:None
-
Environment:eclipse 3.1 on linux
-
Number of attachments :
Description
The JiBX eclipse builder fails to execute because of classpath issues. The error that is thrown is that org.jibx.runtime.Utility cannot be located. The JiBX compiler does some adhoc classloading which doesn't jive with the eclipse plugin context. It is necessary to add jibx-run.jar to the eclipse project and have it picked up by the JiBX builder to send to the Compile#compile method.
Additionally, for projects that use alternate output locations, such as WTP (.deployables/../classes), it is necessary to ensure that all of these folders are included properly. The buildJibxClasspath method should look at all "output" folders and referenced jar files (since it needs the runtime jar).
Apply this patch to /jibxeclipse-plugin/src/java/org/jibx/plugins/eclipse/JibxBuilder.java
This patch finds all output folders (folders that contain *.class files generated by the project), includes the jibx-run.jar in the classpath (if found, if not informs user to add it to build path), and cleans up the message output to avoid double printed messages and a more verbose error output by using e.rootCause() when compile fails.