History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: XFIRE-591
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Dan Diephouse
Reporter: Eugene Toporov
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
XFire

Stubs generation error after moving to 1.2-RC1 from 1.1

Created: 19/Aug/06 10:38 AM   Updated: 15/Sep/06 08:40 AM
Component/s: Generator
Affects Version/s: 1.2-RC
Fix Version/s: 1.2.1

Time Tracking:
Not Specified

File Attachments: 1. XML File CategoryService.xml (9 kb)



 Description  « Hide
xfire-1.1 generates stubs for the attached WSDL ok

But 1.2-RC fails with following errors:

[wsgen] Aug 18, 2006 5:45:24 PM org.codehaus.xfire.gen.Wsdl11Generator generate
[wsgen] INFO: Generating code for WSDL at
http://localhost:8083/AdminWebUI/services/CategoryService?wsdl with a
base URI of http://localhost:8083/AdminWebUI/services/CategoryService?wsdl
[wsgen] Aug 18, 2006 5:45:25 PM
org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl warning
[wsgen] SEVERE: Error generating JAXB classes: src-resolve.4.2: Error
resolving component 'ns2:PodcastSecurityException'. It was detected
that 'ns2:PodcastSecurityException' is in namespace
'http://security.podcasts.simple.com', but components from this
namespace are not referenceable from schema document
'http://localhost:8083/AdminWebUI/services/CategoryService?wsdl#types?schema1'.
If this is the incorrect namespace, perhaps the prefix of
'ns2:PodcastSecurityException' needs to be changed. If this is the
correct namespace, then an appropriate 'import' tag should be added to
'http://localhost:8083/AdminWebUI/services/CategoryService?wsdl#types?schema1'.
at -1,-1 in http://localhost:8083/AdminWebUI/services/CategoryService?wsdl#types?schema1
[wsgen] Aug 18, 2006 5:45:25 PM
org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl warning
[wsgen] SEVERE: Error generating JAXB classes: src-resolve.4.2: Error
resolving component 'ns1:Category'. It was detected that
'ns1:Category' is in namespace
'http://entities.bom.podcasts.simple.com', but components from this
namespace are not referenceable from schema document
'http://localhost:8083/AdminWebUI/services/CategoryService?wsdl#types?schema1'.
If this is the incorrect namespace, perhaps the prefix of
'ns1:Category' needs to be changed. If this is the correct namespace,
then an appropriate 'import' tag should be added to
'http://localhost:8083/AdminWebUI/services/CategoryService?wsdl#types?schema1'.
at -1,-1 in http://localhost:8083/AdminWebUI/services/CategoryService?wsdl#types?schema1
[wsgen] com\simple\podcasts\security\AuthException.java
[wsgen] com\simple\podcasts\security\ObjectFactory.java
[wsgen] com\simple\podcasts\security\PodcastSecurityException.java
[wsgen] com\simple\podcasts\security\package-info.java
[wsgen] com\simple\podcasts\bom\entities\ArrayOfCategory.java
[wsgen] com\simple\podcasts\bom\entities\Category.java
[wsgen] com\simple\podcasts\bom\entities\ObjectFactory.java



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Dan Diephouse - 24/Aug/06 05:25 PM
I think this is an issue with JAXB actually. Would you mind trying the latest nightly JAXB build?

https://jaxb.dev.java.net/servlets/ProjectDocumentList?folderID=460&expandFolder=460&folderID=0


Eugene Toporov - 01/Sep/06 04:40 AM
The issue resolved using the nightly build from 29-Aug-2006

Dan Diephouse - 01/Sep/06 08:05 AM
Great! Thanks Eugnee.

Brice Ruth - 15/Sep/06 08:30 AM
Dan -

I still see this issue with the latest JAXB 2.0.x and 2.1.x nightlies (from the link above). Specifically:

[wsgen] Sep 15, 2006 8:23:46 AM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl warning
[wsgen] SEVERE: Error generating JAXB classes: src-resolve.4.2: Error resolving component 'ns3:Throwable'. It was detected that 'ns3:Throwable' is in namespace 'http://lang.java', but components from this namespace are not referenceable from schema document 'http://deve02/ewsng/services/EwsTaskService?wsdl#types?schema5'. If this is the incorrect namespace, perhaps the prefix of 'ns3:Throwable' needs to be changed. If this is the correct namespace, then an appropriate 'import' tag should be added to 'http://deve02/ewsng/services/EwsTaskService?wsdl#types?schema5'. at 0,0 in http://deve02/ewsng/services/EwsTaskService?wsdl#types?schema5
[wsgen] Sep 15, 2006 8:23:46 AM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl warning
[wsgen] SEVERE: Error generating JAXB classes: src-resolve.4.2: Error resolving component 'tns:anyType2anyTypeMap'. It was detected that 'tns:anyType2anyTypeMap' is in namespace 'http://controller.ewsng.workflow.example.com', but components from this namespace are not referenceable from schema document 'http://deve02/ewsng/services/EwsTaskService?wsdl#types?schema2'. If this is the incorrect namespace, perhaps the prefix of 'tns:anyType2anyTypeMap' needs to be changed. If this is the correct namespace, then an appropriate 'import' tag should be added to 'http://deve02/ewsng/services/EwsTaskService?wsdl#types?schema2'. at 0,0 in http://deve02/ewsng/services/EwsTaskService?wsdl#types?schema2
[wsgen] Sep 15, 2006 8:23:46 AM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl warning
[wsgen] SEVERE: Error generating JAXB classes: src-resolve.4.2: Error resolving component 'ns1:ArrayOfUpdateTaskDTO'. It was detected that 'ns1:ArrayOfUpdateTaskDTO' is in namespace 'http://dto.ewsng.workflow.example.com', but components from this namespace are not referenceable from schema document 'http://deve02/ewsng/services/EwsTaskService?wsdl#types?schema1'. If this is the incorrect namespace, perhaps the prefix of 'ns1:ArrayOfUpdateTaskDTO' needs to be changed. If this is the correct namespace, then an appropriate 'import' tag should be added to 'http://deve02/ewsng/services/EwsTaskService?wsdl#types?schema1'. at 0,0 in http://deve02/ewsng/services/EwsTaskService?wsdl#types?schema1
[wsgen] Sep 15, 2006 8:23:46 AM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl warning
[wsgen] SEVERE: Error generating JAXB classes: src-resolve.4.2: Error resolving component 'ns4:EwsException'. It was detected that 'ns4:EwsException' is in namespace 'http://exceptions.ewsng.workflow.example.com', but components from this namespace are not referenceable from schema document 'http://deve02/ewsng/services/EwsTaskService?wsdl#types?schema3'. If this is the incorrect namespace, perhaps the prefix of 'ns4:EwsException' needs to be changed. If this is the correct namespace, then an appropriate 'import' tag should be added to 'http://deve02/ewsng/services/EwsTaskService?wsdl#types?schema3'. at 0,0 in http://deve02/ewsng/services/EwsTaskService?wsdl#types?schema3
[wsgen] Sep 15, 2006 8:23:46 AM org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl warning
[wsgen] SEVERE: Error generating JAXB classes: src-resolve.4.2: Error resolving component 'ns2:UpdateTaskInput'. It was detected that 'ns2:UpdateTaskInput' is in namespace 'http://io.ewsng.workflow.example.com', but components from this namespace are not referenceable from schema document 'http://deve02/ewsng/services/EwsTaskService?wsdl#types?schema3'. If this is the incorrect namespace, perhaps the prefix of 'ns2:UpdateTaskInput' needs to be changed. If this is the correct namespace, then an appropriate 'import' tag should be added to 'http://deve02/ewsng/services/EwsTaskService?wsdl#types?schema3'. at 0,0 in http://deve02/ewsng/services/EwsTaskService?wsdl#types?schema3


Brice Ruth - 15/Sep/06 08:31 AM
On other detail - this is from an XFire-1.0 generated WSDL (JSR181 POJO)

Dan Diephouse - 15/Sep/06 08:40 AM
There could be a problem with the XFire 1.0 wsdl. It sounds like you have java.lang.* in your wsdl which is kind of odd. I would double check that you have your classpaths set up right too. I've seen this error before and switching to the nightlies definitely fixed it.