Im developing a web-based application for inventory data. The system is designed as 3-tier application (Vaadin-based frontend server, backend server, database). The data is requested by the frontend server using JAX-WS.
I added my frontend software to iReports classpath, wrote a small bean factory class to request the data from the backend and provide them to iReport via a bean object.
Now the problem: First i got the exception java.lang.NoClassDefFoundError: Could not initialize class com.sun.xml.internal.ws.spi.ProviderImpl
I could fix this by adding the rl.jar of the java runtime to the classpath in iReport. Now the problem is as follows:
java.lang.ExceptionInInitializerErrorÂ javax.xml.ws.WebServiceException:Â ErrorÂ creatingÂ JAXBContextÂ forÂ W3CEndpointReference.Â
CausedÂ by:Â javax.xml.bind.JAXBException Â -Â withÂ linkedÂ exception: [com.sun.xml.bind.v2.runtime.IllegalAnnotationsException:Â 2Â countsÂ ofÂ IllegalAnnotationExceptions org.w3c.dom.ElementÂ isÂ anÂ interface,Â andÂ JAXBÂ can'tÂ handleÂ interfaces.
CausedÂ by:Â com.sun.xml.bind.v2.runtime.IllegalAnnotationsException:Â 2Â countsÂ ofÂ IllegalAnnotationExceptions org.w3c.dom.ElementÂ isÂ anÂ interface,Â andÂ JAXBÂ can'tÂ handleÂ interfaces.
(Full stack trace as attachment)
I cant figure out the problem by myself. I tried to start iReports with the remote debuger and connected eclipse. The breakpoint in my factory class was hit, but the debugger suddenly exits on requesting the data fron the backend via JAX-WS from the backend without an error. The above stack trace was given by iReports itself in the reports output window.
The problem is the same when i use the JRAbstractBeanDataSourceProvider interface.
Version: iReports 3.7.6