XFire

Stubs generation error after moving to 1.2-RC1 from 1.1

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.2-RC
  • Fix Version/s: 1.2.1
  • Component/s: Generator
  • Labels:
    None
  • Number of attachments :
    1

Description

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

Activity

Hide
Dan Diephouse added a comment -

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

Show
Dan Diephouse added a comment - 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
Hide
Eugene Toporov added a comment -

The issue resolved using the nightly build from 29-Aug-2006

Show
Eugene Toporov added a comment - The issue resolved using the nightly build from 29-Aug-2006
Hide
Dan Diephouse added a comment -

Great! Thanks Eugnee.

Show
Dan Diephouse added a comment - Great! Thanks Eugnee.
Hide
Brice Ruth added a comment -

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

Show
Brice Ruth added a comment - 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
Hide
Brice Ruth added a comment -

On other detail - this is from an XFire-1.0 generated WSDL (JSR181 POJO)

Show
Brice Ruth added a comment - On other detail - this is from an XFire-1.0 generated WSDL (JSR181 POJO)
Hide
Dan Diephouse added a comment -

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.

Show
Dan Diephouse added a comment - 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.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: