facebook

JAXB2 RI bug – read this

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

    FergusonEnt
    Member

    Hi

    I am having trouble generating a working Web Service project.

    I have an existing web service running under JBoss 4 …I can pass
    the link to the web service
    ( http://fei0018bb05:8080/OrderMaintenance/OrderMaintenance?wsdl )
    and have returned a valid WSDL ( to browser ) …we are also using this
    web service in production so I know it is good.

    I create a new Web Service project
    I then click the “New Web Service” icon and tell MyEclipse to “Create web service from WSDL document”
    I give it my WSDL URL and an appropriate package name …
    ( note that JAXB2 is selected as well as “Generate Test Client” …)

    I then click Finish ….I then receive the message
    “Error generating services” …note that there are no “Details” available.
    ( same problem occurs when I provide the local WSDL file )

    When I look in the Eclipse .log file I see following:

    !ENTRY com.genuitec.eclipse.ws.xfire 4 0 2006-08-21 17:52:58.146
    !MESSAGE Error generating services
    !STACK 0
    java.lang.NullPointerException
    at java.io.File.<init>(File.java:234)
    at org.codehaus.xfire.gen.jaxb.JAXBSchemaSupport$RelativeEntityResolver.resolveEntity(JAXBSchemaSupport.java:195)
    at com.sun.tools.xjc.ModelLoader$1.resolveEntity(ModelLoader.java:413)
    at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.resolveRelativeURL(NGCCRuntimeEx.java:151)
    at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.importSchema(NGCCRuntimeEx.java:188)
    at com.sun.xml.xsom.impl.parser.state.importDecl.action0(importDecl.java:45)
    at com.sun.xml.xsom.impl.parser.state.importDecl.leaveElement(importDecl.java:143)
    at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.endElement(NGCCRuntime.java:275)
    at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:546)
    at com.sun.tools.xjc.reader.ExtensionBindingChecker.endElement(ExtensionBindingChecker.java:275)
    at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:546)
    at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:546)
    at com.sun.tools.xjc.reader.xmlschema.parser.CustomizationContextChecker.endElement(CustomizationContextChecker.java:178)
    at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:546)
    at com.sun.tools.xjc.reader.internalizer.DOMForestScanner$LocationResolver.endElement(DOMForestScanner.java:119)
    at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:235)
    at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:261)
    at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:230)
    at com.sun.xml.bind.unmarshaller.DOMScanner.scan(DOMScanner.java:107)
    at com.sun.tools.xjc.reader.internalizer.DOMForestScanner.scan(DOMForestScanner.java:73)
    at com.sun.tools.xjc.reader.internalizer.DOMForestScanner.scan(DOMForestScanner.java:81)
    at com.sun.tools.xjc.reader.internalizer.DOMForestParser.parse(DOMForestParser.java:83)
    at com.sun.tools.xjc.ModelLoader$XMLSchemaParser.parse(ModelLoader.java:237)
    at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.parseEntity(NGCCRuntimeEx.java:284)
    at com.sun.xml.xsom.impl.parser.ParserContext.parse(ParserContext.java:87)
    at com.sun.xml.xsom.parser.XSOMParser.parse(XSOMParser.java:147)
    at com.sun.xml.xsom.parser.XSOMParser.parse(XSOMParser.java:136)
    at com.sun.tools.xjc.ModelLoader.createXSOM(ModelLoader.java:485)
    at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:197)
    at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:66)
    at org.codehaus.xfire.gen.jaxb.JAXBSchemaSupport.initialize(JAXBSchemaSupport.java:100)
    at org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:115)
    at com.genuitec.eclipse.ws.xfire.generator.WSGenJob.run(WSGenJob.java:59)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)

    Details:

    Java -version returns : Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-b05)

    Eclipse Help: Version: 3.2.0
    Build id: M20060629-1905
    ( this is the Professional version )

    MyEclipse: Version: 5.0 GA
    Build Id: 20060805-5.0-GA

    Installation Details:

    *** Date: Mon Aug 21 18:08:05 EDT 2006

    *** System properties:
    OS=WindowsXP
    OS version=5.1
    Java version=1.5.0_05

    *** MyEclipse details:
    MyEclipse Enterprise Workbench

    Version: 5.0 GA
    Build id: 20060805-5.0-GA

    *** Eclipse details:
    Eclipse SDK

    Version: 3.2.0
    Build id: M20060629-1905

    Eclipse Platform

    Version: 3.2.0.v20060609m-AgOexn6hlEUsvBO
    Build id: M20060629-1905

    Eclipse Java Development Tools

    Version: 3.2.0.v20060609m-F7snq1fxia-Z4XP
    Build id: M20060629-1905

    Eclipse Plug-in Development Environment

    Version: 3.2.0.v20060609m——6zXJJzJzJq
    Build id: M20060629-1905

    Eclipse Project SDK

    Version: 3.2.0.v20060609m-GNq6oQq-7es-Y81
    Build id: M20060629-1905

    Eclipse RCP

    Version: 3.2.0.v20060609m-SVDNgVrNoh-MeGG
    Build id: M20060629-1905

    Eclipse Graphical Editing Framework

    Version: 3.2.0.v20060626
    Build id: 20060627-0816

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -launcher
    C:\Installed_Apps\Eclipse32\eclipse\eclipse.exe
    -name
    Eclipse
    -exitdata
    c5c_7c
    -clean
    -refresh
    -vm
    C:\Installed_Apps\JAVA_JDK1_5_0_4\bin\javaw.exe

    Any ideas would be appreciated.

    Thanks,

    Rod

    #257401 Reply

    support-michael
    Keymaster

    I believe you are experiencing be a bug in JAXB2. See the following XFire support thread that describes a similar problem:

    http://jira.codehaus.org/browse/XFIRE-534

    The next MyEclipse upgrade to XFire 1.2 should resolve this issue.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: JAXB2 RI bug – read this

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