- This topic has 2 replies, 2 voices, and was last updated 15 years, 9 months ago by Mark638.
-
AuthorPosts
-
Mark638MemberI’m trying to convert a Java class into a JAX-WS web service (bottom up approach) in MyEclipse and I’m getting the error below. Googling on the error message is not providing much help. The conversion works (no errors) when I don’t specify Generate WSDL in Project, so I think MyEclipse doesn’t like something about the class (which is accepting a Boolean and String parms).
An internal error occurred during: “Generating JAX-WS Web Services”.
Unable to create JAXBContextConfiguration Details:
*** Date: Tuesday, March 17, 2009 1:46:26 PM CT
*** Platform Details:
*** System properties:
awt.toolkit=sun.awt.windows.WToolkit
com.genuitec.pulse.client.basedir.location.override=C:\Program Files\Genuitec
com.genuitec.pulse.client.blueprint.id=rb-18383
com.genuitec.pulse.client.credentials=aieROoVjn0xqaffOP606yk/HlRukYMDJGSOkND1nFPHaT3GCdh7qOpK3CRCXy9B/AuwbYD+2WgLK JRKMZNf/CsEQ2xRP6VhjBmfB1uLT0qgjebDQTVe08SrCy3cfu1t3O950OJOchoGOaghS8PX//mcH hw9i7TcIB402PFC7vTU=
com.genuitec.pulse.client.handshake.id=4ac8649f-7d7d-49da-861e-6aeec1a7a2f5
com.genuitec.pulse.common.server.url=https://www.poweredbypulse.com:443
eclipse.commands=-os
win32
-ws
win32
-arch
x86
-showsplash
-launcher
C:\Program Files\Genuitec\MyEclipse 7.0\myeclipse.exe
-name
Myeclipse
–launcher.library
C:\Program Files\Genuitec\MyEclipse 7.0\../Common\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.101.R34x_v20080731\eclipse_1115.dll
-startup
C:\Program Files\Genuitec\MyEclipse 7.0\../Common\plugins\org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar
-exitdata
14d4_38
-clean
-configuration
configuration
-vm
C:\Program Files\Java\jdk1.6.0_12\bin\javaw.exe
eclipse.ee.install.verify=false
eclipse.home.location=file:/C:/Program Files/Genuitec/MyEclipse 7.0/
eclipse.launcher=C:\Program Files\Genuitec\MyEclipse 7.0\myeclipse.exe
eclipse.p2.data.area=C:\Program Files\Genuitec\Common\configuration
eclipse.p2.profile=com.poweredbypulse.profile-0-rb-18383
eclipse.product=com.genuitec.myeclipse.product7.ide
eclipse.startTime=1237313435013
eclipse.vm=C:\Program Files\Java\jdk1.6.0_12\bin\javaw.exe
eclipse.vmargs=-Xmx512M
-XX:MaxPermSize=192M
-jar
C:\Program Files\Genuitec\MyEclipse 7.0\../Common\plugins\org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar
file.encoding=Cp1252
file.encoding.pkg=sun.io
file.separator=\Error Log:
!ENTRY org.eclipse.core.jobs 4 2 2009-03-17 13:24:01.371
!MESSAGE An internal error occurred during: “Generating JAX-WS Web Services”.
!STACK 0
javax.xml.ws.WebServiceException: Unable to create JAXBContext
at com.sun.xml.ws.model.AbstractSEIModelImpl.createJAXBContext(AbstractSEIModelImpl.java:158)
at com.sun.xml.ws.model.AbstractSEIModelImpl.postProcess(AbstractSEIModelImpl.java:87)
at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:262)
at com.sun.tools.ws.wscompile.WsgenTool.buildModel(WsgenTool.java:225)
at com.sun.tools.ws.wscompile.WsgenTool.run(WsgenTool.java:124)
at com.genuitec.eclipse.ws.jaxws.JaxWSBUJob.wsGen(JaxWSBUJob.java:224)
at com.genuitec.eclipse.ws.jaxws.JaxWSBUJob.run(JaxWSBUJob.java:124)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: java.security.PrivilegedActionException: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 3 counts of IllegalAnnotationExceptions
java.lang.StackTraceElement does not have a no-arg default constructor.
this problem is related to the following location:
at java.lang.StackTraceElement
at public java.lang.StackTraceElement[] java.lang.Throwable.getStackTrace()
at java.lang.Throwable
at private java.lang.Throwable com.boeing.mes.tooling.materialorder.jaxws.FOPExceptionBean.exception
at com.boeing.mes.tooling.materialorder.jaxws.FOPExceptionBean
javax.xml.transform.SourceLocator is an interface, and JAXB can’t handle interfaces.
this problem is related to the following location:
at javax.xml.transform.SourceLocator
at private javax.xml.transform.SourceLocator com.boeing.mes.tooling.materialorder.jaxws.TransformerExceptionBean.locator
at com.boeing.mes.tooling.materialorder.jaxws.TransformerExceptionBean
javax.xml.transform.SourceLocator does not have a no-arg default constructor.
this problem is related to the following location:
at javax.xml.transform.SourceLocator
at private javax.xml.transform.SourceLocator com.boeing.mes.tooling.materialorder.jaxws.TransformerExceptionBean.locator
at com.boeing.mes.tooling.materialorder.jaxws.TransformerExceptionBeanat java.security.AccessController.doPrivileged(Native Method)
at com.sun.xml.ws.model.AbstractSEIModelImpl.createJAXBContext(AbstractSEIModelImpl.java:148)
… 7 more
Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 3 counts of IllegalAnnotationExceptions
java.lang.StackTraceElement does not have a no-arg default constructor.
this problem is related to the following location:
at java.lang.StackTraceElement
at public java.lang.StackTraceElement[] java.lang.Throwable.getStackTrace()
at java.lang.Throwable
at private java.lang.Throwable com.boeing.mes.tooling.materialorder.jaxws.FOPExceptionBean.exception
at com.boeing.mes.tooling.materialorder.jaxws.FOPExceptionBean
javax.xml.transform.SourceLocator is an interface, and JAXB can’t handle interfaces.
this problem is related to the following location:
at javax.xml.transform.SourceLocator
at private javax.xml.transform.SourceLocator com.boeing.mes.tooling.materialorder.jaxws.TransformerExceptionBean.locator
at com.boeing.mes.tooling.materialorder.jaxws.TransformerExceptionBean
javax.xml.transform.SourceLocator does not have a no-arg default constructor.
this problem is related to the following location:
at javax.xml.transform.SourceLocator
at private javax.xml.transform.SourceLocator com.boeing.mes.tooling.materialorder.jaxws.TransformerExceptionBean.locator
at com.boeing.mes.tooling.materialorder.jaxws.TransformerExceptionBeanat com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:102)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:438)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:286)
at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:139)
at com.sun.xml.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:105)
at com.sun.xml.ws.model.AbstractSEIModelImpl$1.run(AbstractSEIModelImpl.java:153)
at com.sun.xml.ws.model.AbstractSEIModelImpl$1.run(AbstractSEIModelImpl.java:149)
… 9 more
Brian FernandesModeratorMark,
There are a number of issues mentioned in your stack trace which mention classes with no default constructors. These are problematic for JAXB binding class generation, do you reference these classes? There is also another note about using an interface, which JAXB cannot handle.
I’m afraid I would need your class to be able to assist further, if you want to send it in use support@genuitec.com ATTN Brian.
Mark638MemberBrian,
I sent you a copy of the class. -
AuthorPosts