facebook

Problem Converting Java Class to Web Service – MyEclipse 7.0

  1. MyEclipse Archived
  2.  > 
  3. Web Services
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #296231 Reply

    Mark638
    Member

    I’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 JAXBContext

    Configuration 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.TransformerExceptionBean

    at 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.TransformerExceptionBean

    at 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

    #296301 Reply

    Brian Fernandes
    Moderator

    Mark,

    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.

    #296305 Reply

    Mark638
    Member

    Brian,
    I sent you a copy of the class.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Problem Converting Java Class to Web Service – MyEclipse 7.0

You must be logged in to post in the forum log in