You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Peter Kehren (JIRA)" <ji...@apache.org> on 2007/02/13 17:00:40 UTC

[jira] Created: (AXIS2-2168) Mistake in uri to namespace mapping in mojo of wsdl2code

Mistake in uri to namespace mapping in mojo of wsdl2code
--------------------------------------------------------

                 Key: AXIS2-2168
                 URL: https://issues.apache.org/jira/browse/AXIS2-2168
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: Tools
    Affects Versions: 1.1
            Reporter: Peter Kehren


There is a bug in class org.apache.axis2.maven2.wsdl2code.WSDL2CodeMojo in the method getNamespaceToPackagesMap(). If i define in my pom for example 

....
<configuration>
  <packageName>de.regioit.wikor.openapi</packageName>
    <namespaceURIs>
      <namespaceURI>
	<uri>http://www.test.de/service/</uri>
	<packageName>de.test</packageName>
	</namespaceURI>
      <namespaceURI>
	<uri>http://www.test.de/types/</uri>
	<packageName>de.test.types</packageName>
  </namespaceURI>
</namespaceURIs>

the mojo throws the following exception: 

org.apache.maven.BuildFailureException: A namespace to package mapping requires a packageName child element.
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:555)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoFailureException: A namespace to package mapping requires a packageName child element.
        at org.apache.axis2.maven2.wsdl2code.WSDL2CodeMojo.getNamespaceToPackagesMap(WSDL2CodeMojo.java:367)
        at org.apache.axis2.maven2.wsdl2code.WSDL2CodeMojo.fillOptionMap(WSDL2CodeMojo.java:344)
        at org.apache.axis2.maven2.wsdl2code.WSDL2CodeMojo.execute(WSDL2CodeMojo.java:392)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
        ... 16 more

But the packageName is set. In the code there can be found the wrong if-statement at line 366 (Revision 475355): 

if (uriPackageName != null) {

This must be 

if (uriPackageName == null) {

and the problem should be resolved.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Resolved: (AXIS2-2168) Mistake in uri to namespace mapping in mojo of wsdl2code

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

Davanum Srinivas resolved AXIS2-2168.
-------------------------------------

    Resolution: Fixed

Fixed in svn revision 518135

thanks,
dims

> Mistake in uri to namespace mapping in mojo of wsdl2code
> --------------------------------------------------------
>
>                 Key: AXIS2-2168
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2168
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 1.1
>            Reporter: Peter Kehren
>
> There is a bug in class org.apache.axis2.maven2.wsdl2code.WSDL2CodeMojo in the method getNamespaceToPackagesMap(). If i define in my pom for example 
> ....
> <configuration>
>   <packageName>de.regioit.wikor.openapi</packageName>
>     <namespaceURIs>
>       <namespaceURI>
> 	<uri>http://www.test.de/service/</uri>
> 	<packageName>de.test</packageName>
> 	</namespaceURI>
>       <namespaceURI>
> 	<uri>http://www.test.de/types/</uri>
> 	<packageName>de.test.types</packageName>
>   </namespaceURI>
> </namespaceURIs>
> the mojo throws the following exception: 
> org.apache.maven.BuildFailureException: A namespace to package mapping requires a packageName child element.
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:555)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>         at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoFailureException: A namespace to package mapping requires a packageName child element.
>         at org.apache.axis2.maven2.wsdl2code.WSDL2CodeMojo.getNamespaceToPackagesMap(WSDL2CodeMojo.java:367)
>         at org.apache.axis2.maven2.wsdl2code.WSDL2CodeMojo.fillOptionMap(WSDL2CodeMojo.java:344)
>         at org.apache.axis2.maven2.wsdl2code.WSDL2CodeMojo.execute(WSDL2CodeMojo.java:392)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
>         ... 16 more
> But the packageName is set. In the code there can be found the wrong if-statement at line 366 (Revision 475355): 
> if (uriPackageName != null) {
> This must be 
> if (uriPackageName == null) {
> and the problem should be resolved.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-2168) Mistake in uri to namespace mapping in mojo of wsdl2code

Posted by "Severin Ecker (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2168?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12480751 ] 

Severin Ecker commented on AXIS2-2168:
--------------------------------------

I've seen this issue being reported numerous times now.

Is there a plan to implement the fix already presented sometime in the near future?

> Mistake in uri to namespace mapping in mojo of wsdl2code
> --------------------------------------------------------
>
>                 Key: AXIS2-2168
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2168
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 1.1
>            Reporter: Peter Kehren
>
> There is a bug in class org.apache.axis2.maven2.wsdl2code.WSDL2CodeMojo in the method getNamespaceToPackagesMap(). If i define in my pom for example 
> ....
> <configuration>
>   <packageName>de.regioit.wikor.openapi</packageName>
>     <namespaceURIs>
>       <namespaceURI>
> 	<uri>http://www.test.de/service/</uri>
> 	<packageName>de.test</packageName>
> 	</namespaceURI>
>       <namespaceURI>
> 	<uri>http://www.test.de/types/</uri>
> 	<packageName>de.test.types</packageName>
>   </namespaceURI>
> </namespaceURIs>
> the mojo throws the following exception: 
> org.apache.maven.BuildFailureException: A namespace to package mapping requires a packageName child element.
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:555)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>         at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoFailureException: A namespace to package mapping requires a packageName child element.
>         at org.apache.axis2.maven2.wsdl2code.WSDL2CodeMojo.getNamespaceToPackagesMap(WSDL2CodeMojo.java:367)
>         at org.apache.axis2.maven2.wsdl2code.WSDL2CodeMojo.fillOptionMap(WSDL2CodeMojo.java:344)
>         at org.apache.axis2.maven2.wsdl2code.WSDL2CodeMojo.execute(WSDL2CodeMojo.java:392)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
>         ... 16 more
> But the packageName is set. In the code there can be found the wrong if-statement at line 366 (Revision 475355): 
> if (uriPackageName != null) {
> This must be 
> if (uriPackageName == null) {
> and the problem should be resolved.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org