[jbossws-issues] [JBoss JIRA] Created: (JBWS-2620) wscompile fails to generate artifacts when reserved word is in WSDL namespace

Brad Maxwell (JIRA) jira-events at lists.jboss.org
Thu Apr 16 10:46:22 EDT 2009


wscompile fails to generate artifacts when reserved word is in WSDL namespace
-----------------------------------------------------------------------------

                 Key: JBWS-2620
                 URL: https://jira.jboss.org/jira/browse/JBWS-2620
             Project: JBoss Web Services
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: tools-jaxws
    Affects Versions: jbossws-2.0.1.SP2
            Reporter: Brad Maxwell
            Assignee: Darran Lofthouse


If you have a webservice with the package name 'com.jboss.examples.Public.ws', running wsprovide generates a wsdl with the namespace: 'com.jboss.examples.Public.ws''.
Then if you run wsconsume on the wsdl, it fails to generate the java artifacts.  

According to JAXB2.0 specification - Appendix D Section 5.1 Mapping from a Namespace URI.  The algorithm in this section states, in item 8b, "If any of the resulting package name components are keywords then append underscore to them."

Looking at the JAXB code, it does check for reserved words and will prepend an '_', however the order of operations should be changed.  Currently it looks for reserved words first, then changes the package to lowercase as is the Java standard.  It should change it to lowercase first then check for reserved words and it will function correctly.

A bug [1] was opened on JAXWS showing the issue and suggesting the fix, which is a change to jaxb com/sun/xml/bind/api/impl/NameConverter.java

[1] https://jax-ws.dev.java.net/issues/show_bug.cgi?id=599 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbossws-issues mailing list