You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Benson Margulies (JIRA)" <ji...@apache.org> on 2010/08/17 01:08:16 UTC

[jira] Created: (CXF-2946) Unexpected namespace behavior in wsdl2java

Unexpected namespace behavior in wsdl2java
------------------------------------------

                 Key: CXF-2946
                 URL: https://issues.apache.org/jira/browse/CXF-2946
             Project: CXF
          Issue Type: Bug
          Components: Tooling
    Affects Versions: 2.2.9
            Reporter: Benson Margulies
         Attachments: Analysis.wsdl

I run the attached wsdl through wsdl2java with the following, and all the generate code ends up in the same package, even though there are several schemata with several different namespace in the wsdl.

{code}

                 <plugin>
                    <groupId>org.apache.cxf</groupId>
                    <artifactId>cxf-codegen-plugin</artifactId>
                    <version>${cxf-version}</version>
                    <executions>
                        <execution>
                            <id>generate-sources</id>
                            <configuration>
                                <sourceRoot>${project.build.directory}/generated/cxf</sourceRoot>
                                <wsdlOptions>
                                    <wsdlOption>
                                        <wsdlArtifact>
                                            <groupId>com.basistech.jug</groupId>
                                            <artifactId>rex-ws</artifactId>
                                            <version>${project.version}</version>
                                        </wsdlArtifact>
                                    </wsdlOption>
                                </wsdlOptions>
                            </configuration>
                            <goals>
                                <goal>wsdl2java</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>

{code}


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CXF-2946) Unexpected namespace behavior in wsdl2java

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-2946?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp updated CXF-2946:
-----------------------------

    Fix Version/s: NeedMoreInfo



Need a better test case for this if we are to continue diagnosing it.   Otherwise,, can we resolve it?


> Unexpected namespace behavior in wsdl2java
> ------------------------------------------
>
>                 Key: CXF-2946
>                 URL: https://issues.apache.org/jira/browse/CXF-2946
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.2.9
>            Reporter: Benson Margulies
>             Fix For: NeedMoreInfo
>
>         Attachments: Analysis.wsdl, pom.xml
>
>
> I run the attached wsdl through wsdl2java with the following, and all the generate code ends up in the same package, even though there are several schemata with several different namespace in the wsdl.
> {code}
>                  <plugin>
>                     <groupId>org.apache.cxf</groupId>
>                     <artifactId>cxf-codegen-plugin</artifactId>
>                     <version>${cxf-version}</version>
>                     <executions>
>                         <execution>
>                             <id>generate-sources</id>
>                             <configuration>
>                                 <sourceRoot>${project.build.directory}/generated/cxf</sourceRoot>
>                                 <wsdlOptions>
>                                     <wsdlOption>
>                                         <wsdlArtifact>
>                                             <groupId>com.basistech.jug</groupId>
>                                             <artifactId>rex-ws</artifactId>
>                                             <version>${project.version}</version>
>                                         </wsdlArtifact>
>                                     </wsdlOption>
>                                 </wsdlOptions>
>                             </configuration>
>                             <goals>
>                                 <goal>wsdl2java</goal>
>                             </goals>
>                         </execution>
>                     </executions>
>                 </plugin>
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (CXF-2946) Unexpected namespace behavior in wsdl2java

Posted by "Benson Margulies (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-2946?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benson Margulies closed CXF-2946.
---------------------------------

    Resolution: Incomplete

> Unexpected namespace behavior in wsdl2java
> ------------------------------------------
>
>                 Key: CXF-2946
>                 URL: https://issues.apache.org/jira/browse/CXF-2946
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.2.9
>            Reporter: Benson Margulies
>             Fix For: NeedMoreInfo
>
>         Attachments: Analysis.wsdl, pom.xml
>
>
> I run the attached wsdl through wsdl2java with the following, and all the generate code ends up in the same package, even though there are several schemata with several different namespace in the wsdl.
> {code}
>                  <plugin>
>                     <groupId>org.apache.cxf</groupId>
>                     <artifactId>cxf-codegen-plugin</artifactId>
>                     <version>${cxf-version}</version>
>                     <executions>
>                         <execution>
>                             <id>generate-sources</id>
>                             <configuration>
>                                 <sourceRoot>${project.build.directory}/generated/cxf</sourceRoot>
>                                 <wsdlOptions>
>                                     <wsdlOption>
>                                         <wsdlArtifact>
>                                             <groupId>com.basistech.jug</groupId>
>                                             <artifactId>rex-ws</artifactId>
>                                             <version>${project.version}</version>
>                                         </wsdlArtifact>
>                                     </wsdlOption>
>                                 </wsdlOptions>
>                             </configuration>
>                             <goals>
>                                 <goal>wsdl2java</goal>
>                             </goals>
>                         </execution>
>                     </executions>
>                 </plugin>
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CXF-2946) Unexpected namespace behavior in wsdl2java

Posted by "Benson Margulies (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-2946?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12899486#action_12899486 ] 

Benson Margulies commented on CXF-2946:
---------------------------------------

I'm beginning to wonder if this is specific to retrieving the WSDL from maven, since it works fine when I run it from command line against a WSDL in the file system. It's going to take me a bit to set up to test that hypothesis.

> Unexpected namespace behavior in wsdl2java
> ------------------------------------------
>
>                 Key: CXF-2946
>                 URL: https://issues.apache.org/jira/browse/CXF-2946
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.2.9
>            Reporter: Benson Margulies
>         Attachments: Analysis.wsdl, pom.xml
>
>
> I run the attached wsdl through wsdl2java with the following, and all the generate code ends up in the same package, even though there are several schemata with several different namespace in the wsdl.
> {code}
>                  <plugin>
>                     <groupId>org.apache.cxf</groupId>
>                     <artifactId>cxf-codegen-plugin</artifactId>
>                     <version>${cxf-version}</version>
>                     <executions>
>                         <execution>
>                             <id>generate-sources</id>
>                             <configuration>
>                                 <sourceRoot>${project.build.directory}/generated/cxf</sourceRoot>
>                                 <wsdlOptions>
>                                     <wsdlOption>
>                                         <wsdlArtifact>
>                                             <groupId>com.basistech.jug</groupId>
>                                             <artifactId>rex-ws</artifactId>
>                                             <version>${project.version}</version>
>                                         </wsdlArtifact>
>                                     </wsdlOption>
>                                 </wsdlOptions>
>                             </configuration>
>                             <goals>
>                                 <goal>wsdl2java</goal>
>                             </goals>
>                         </execution>
>                     </executions>
>                 </plugin>
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CXF-2946) Unexpected namespace behavior in wsdl2java

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-2946?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp updated CXF-2946:
-----------------------------

    Attachment: pom.xml


If I use the attached pom placed in the same directory as the above wsdl and run it, it generates stuff into two packages:

target/generated/cxf/com/basistech/rosette/analysis:
Analysis.java       AnalysisResults.java  AnalyzePlainText.java          NameReference.java  XmlResultStyle.java
AnalysisInput.java  AnalysisService.java  AnalyzePlainTextResponse.java  ObjectFactory.java  package-info.java

target/generated/cxf/com/basistech/util:
Iso15924.java  LanguageCode.java  ObjectFactory.java

which looks correct.  

Can you run mvn with -X?   It should print a line like:

Loading FrontEnd jaxws ...
Loading DataBinding jaxb ...
wsdl2java -d /tmp/t2/target/generated/cxf -verbose file:/tmp/t2/Analysis.wsdl
wsdl2java - Apache CXF 2.2.9

I'm curious to see if it's picking up some extra options in there or something.




> Unexpected namespace behavior in wsdl2java
> ------------------------------------------
>
>                 Key: CXF-2946
>                 URL: https://issues.apache.org/jira/browse/CXF-2946
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.2.9
>            Reporter: Benson Margulies
>         Attachments: Analysis.wsdl, pom.xml
>
>
> I run the attached wsdl through wsdl2java with the following, and all the generate code ends up in the same package, even though there are several schemata with several different namespace in the wsdl.
> {code}
>                  <plugin>
>                     <groupId>org.apache.cxf</groupId>
>                     <artifactId>cxf-codegen-plugin</artifactId>
>                     <version>${cxf-version}</version>
>                     <executions>
>                         <execution>
>                             <id>generate-sources</id>
>                             <configuration>
>                                 <sourceRoot>${project.build.directory}/generated/cxf</sourceRoot>
>                                 <wsdlOptions>
>                                     <wsdlOption>
>                                         <wsdlArtifact>
>                                             <groupId>com.basistech.jug</groupId>
>                                             <artifactId>rex-ws</artifactId>
>                                             <version>${project.version}</version>
>                                         </wsdlArtifact>
>                                     </wsdlOption>
>                                 </wsdlOptions>
>                             </configuration>
>                             <goals>
>                                 <goal>wsdl2java</goal>
>                             </goals>
>                         </execution>
>                     </executions>
>                 </plugin>
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CXF-2946) Unexpected namespace behavior in wsdl2java

Posted by "Benson Margulies (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-2946?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benson Margulies updated CXF-2946:
----------------------------------

    Attachment: Analysis.wsdl

Here's the culprit.

> Unexpected namespace behavior in wsdl2java
> ------------------------------------------
>
>                 Key: CXF-2946
>                 URL: https://issues.apache.org/jira/browse/CXF-2946
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.2.9
>            Reporter: Benson Margulies
>         Attachments: Analysis.wsdl
>
>
> I run the attached wsdl through wsdl2java with the following, and all the generate code ends up in the same package, even though there are several schemata with several different namespace in the wsdl.
> {code}
>                  <plugin>
>                     <groupId>org.apache.cxf</groupId>
>                     <artifactId>cxf-codegen-plugin</artifactId>
>                     <version>${cxf-version}</version>
>                     <executions>
>                         <execution>
>                             <id>generate-sources</id>
>                             <configuration>
>                                 <sourceRoot>${project.build.directory}/generated/cxf</sourceRoot>
>                                 <wsdlOptions>
>                                     <wsdlOption>
>                                         <wsdlArtifact>
>                                             <groupId>com.basistech.jug</groupId>
>                                             <artifactId>rex-ws</artifactId>
>                                             <version>${project.version}</version>
>                                         </wsdlArtifact>
>                                     </wsdlOption>
>                                 </wsdlOptions>
>                             </configuration>
>                             <goals>
>                                 <goal>wsdl2java</goal>
>                             </goals>
>                         </execution>
>                     </executions>
>                 </plugin>
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.