MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
FergusonEnt
Post subject: JAXB2 RI bug - read this  PostPosted: Aug 21, 2006 - 11:10 PM
Registered Member
Registered Member


Joined: Jul 03, 2006
Posts: 3

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
 
 View user's profile Send private message  
Reply with quote Back to top
support-michael
Post subject:   PostPosted: Aug 22, 2006 - 09:12 PM
Moderator
Moderator


Joined: May 05, 2003
Posts: 1037

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.

_________________
Michael
MyEclipse Support

Posting Guidelines FYI
When posting a bug report, click the "Insert" button above the message window and fill out the empty fields to help us troubleshoot your problem.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits