David Jitendranath [http://community.jboss.org/people/davestar] replied to the discussion
"Error on java.lang.IllegalStateException: Cannot build JAXB" To view the discussion, visit: http://community.jboss.org/message/536401#536401 -------------------------------------------------------------- I have the same exception thrown on JBoss 5.1 when I run wsprovide to generate the wsdl and server classes. Did you get this resolved? can you please post how? Here's my exception. C:\Projects\BOR\ETASWS\ETAS-Service-2.0\ETASWS\build\classes>wsprovide -t -k -w -o c:\Projects\BOR\ETASWS\ETAS-Service-2.0\ETASWS\src\gov\usbr\ws\jaxw s\ gov.usbr.ws.ETAS Output directory: c:\Projects\BOR\ETASWS\ETAS-Service-2.0\ETASWS\src\gov\usbr\ws\jaxws Source directory: c:\Projects\BOR\ETASWS\ETAS-Service-2.0\ETASWS\src\gov\usbr\ws\jaxws Generating WSDL: Error: Could not generate. (use --show-traces to see full traces) java.lang.IllegalStateException: Cannot build JAXB context at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilder.createJAXBContext(JAXWSMetaDataBuilder.java:984) at org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.buildWebServiceMetaData(JAXWSWebServiceMetaDataBuilder.java:154) at org.jboss.ws.tools.jaxws.impl.JBossWSProviderImpl.provide(JBossWSProviderImpl.java:108) at org.jboss.ws.tools.jaxws.impl.JBossWSProviderImpl.provide(JBossWSProviderImpl.java:124) at org.jboss.wsf.spi.tools.cmd.WSProvide.generate(WSProvide.java:183) at org.jboss.wsf.spi.tools.cmd.WSProvide.main(WSProvide.java:76) Caused by: org.jboss.ws.WSException: Failed to create JAXBContext at org.jboss.ws.core.jaxws.CustomizableJAXBContextFactory.createContext(CustomizableJAXBContextFactory.java:114) at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilder.createJAXBContext(JAXWSMetaDataBuilder.java:980) ... 5 more Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions java.io.Serializable is an interface, and JAXB can't handle interfaces. this problem is related to the following location: at java.io.Serializable at public java.io.Serializable gov.usbr.data.etas.Timesheet.getEmpSigned() at gov.usbr.data.etas.Timesheet at public gov.usbr.data.etas.Timesheet gov.usbr.data.etas.Employee.getTimesheet() at gov.usbr.data.etas.Employee at private gov.usbr.data.etas.Employee gov.usbr.ws.jaxws.GetEmployeeResponse._return at gov.usbr.ws.jaxws.GetEmployeeResponse java.io.Serializable does not have a no-arg default constructor. this problem is related to the following location: at java.io.Serializable at public java.io.Serializable gov.usbr.data.etas.Timesheet.getEmpSigned() at gov.usbr.data.etas.Timesheet at public gov.usbr.data.etas.Timesheet gov.usbr.data.etas.Employee.getTimesheet() -------------------------------------------------------------- Reply to this message by going to Community [http://community.jboss.org/message/536401#536401] Start a new discussion in JBoss Web Services at Community [http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]
_______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user