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 "Tim Buss (JIRA)" <ji...@apache.org> on 2007/04/09 21:09:32 UTC

[jira] Created: (AXIS2-2487) WSDL2Java creates inconsistent pacakge names if the package name has any uppercase characters

WSDL2Java creates inconsistent pacakge names if the package name has any uppercase characters
---------------------------------------------------------------------------------------------

                 Key: AXIS2-2487
                 URL: https://issues.apache.org/jira/browse/AXIS2-2487
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: adb
    Affects Versions: nightly
         Environment: Axis 1.5, Tomcat 5.5, Axis2 1.2 SNAPSHOT , Eclipse 3.2, WTP 1.5.1, Windows 2003 server

            Reporter: Tim Buss


Thik this problem existed in earlier releases also

If you try to generate a Service called say, ExampleService, and use the namespace to package mapping option " -ns2p <ns1>=<pkg1>[,....] " and you specify a package name like

myorg.ExamplePackage as in 

-ns2p urn:example.namespace=myorg.ExamplePackage

then the "type" code files generated  will observe this and create classes in the package myorg.ExamplePackage but all the "service" code files generated eg:

ExampleService.java
ExampleService.MessgeReceiverInOut.java
ExampleServiceSkeleton.java
ExampleServiceSkeletonInterface.java
ExampleServiceStub.java

have the package name changed to all lower case (ie myorg.examplepackage)

I realize that it is a java convention to use all lowver case for package names but the code generated should be consistent and should take what the user gives.  This does not seem an appropriate plac eto enforce the pacakge name convention.

  I think the eclipse plugin in 1.1.1 refuses to work if  a mixed case package name is specified which seems wrong.  At mose it should issue a warning.

It is probably a "minor" bug really but if you happen to need it to work as I do, the workaround is somewhat painful and I suspect it's fairly easy to fix.



-- 
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-2487) WSDL2Java creates inconsistent pacakge names if the package name has any uppercase characters

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

Davanum Srinivas resolved AXIS2-2487.
-------------------------------------

    Resolution: Fixed

Fixed in svn revision 533916.

thanks,
dims

> WSDL2Java creates inconsistent pacakge names if the package name has any uppercase characters
> ---------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-2487
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2487
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: nightly
>         Environment: Axis 1.5, Tomcat 5.5, Axis2 1.2 SNAPSHOT , Eclipse 3.2, WTP 1.5.1, Windows 2003 server
>            Reporter: Tim Buss
>         Assigned To: Amila Chinthaka Suriarachchi
>
> Thik this problem existed in earlier releases also
> If you try to generate a Service called say, ExampleService, and use the namespace to package mapping option " -ns2p <ns1>=<pkg1>[,....] " and you specify a package name like
> myorg.ExamplePackage as in 
> -ns2p urn:example.namespace=myorg.ExamplePackage
> then the "type" code files generated  will observe this and create classes in the package myorg.ExamplePackage but all the "service" code files generated eg:
> ExampleService.java
> ExampleService.MessgeReceiverInOut.java
> ExampleServiceSkeleton.java
> ExampleServiceSkeletonInterface.java
> ExampleServiceStub.java
> have the package name changed to all lower case (ie myorg.examplepackage)
> I realize that it is a java convention to use all lowver case for package names but the code generated should be consistent and should take what the user gives.  This does not seem an appropriate plac eto enforce the pacakge name convention.
>   I think the eclipse plugin in 1.1.1 refuses to work if  a mixed case package name is specified which seems wrong.  At mose it should issue a warning.
> It is probably a "minor" bug really but if you happen to need it to work as I do, the workaround is somewhat painful and I suspect it's fairly easy to fix.

-- 
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] Updated: (AXIS2-2487) WSDL2Java creates inconsistent pacakge names if the package name has any uppercase characters

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

Davanum Srinivas updated AXIS2-2487:
------------------------------------

    Assignee: Amila Chinthaka Suriarachchi

> WSDL2Java creates inconsistent pacakge names if the package name has any uppercase characters
> ---------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-2487
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2487
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: nightly
>         Environment: Axis 1.5, Tomcat 5.5, Axis2 1.2 SNAPSHOT , Eclipse 3.2, WTP 1.5.1, Windows 2003 server
>            Reporter: Tim Buss
>         Assigned To: Amila Chinthaka Suriarachchi
>
> Thik this problem existed in earlier releases also
> If you try to generate a Service called say, ExampleService, and use the namespace to package mapping option " -ns2p <ns1>=<pkg1>[,....] " and you specify a package name like
> myorg.ExamplePackage as in 
> -ns2p urn:example.namespace=myorg.ExamplePackage
> then the "type" code files generated  will observe this and create classes in the package myorg.ExamplePackage but all the "service" code files generated eg:
> ExampleService.java
> ExampleService.MessgeReceiverInOut.java
> ExampleServiceSkeleton.java
> ExampleServiceSkeletonInterface.java
> ExampleServiceStub.java
> have the package name changed to all lower case (ie myorg.examplepackage)
> I realize that it is a java convention to use all lowver case for package names but the code generated should be consistent and should take what the user gives.  This does not seem an appropriate plac eto enforce the pacakge name convention.
>   I think the eclipse plugin in 1.1.1 refuses to work if  a mixed case package name is specified which seems wrong.  At mose it should issue a warning.
> It is probably a "minor" bug really but if you happen to need it to work as I do, the workaround is somewhat painful and I suspect it's fairly easy to fix.

-- 
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-2487) WSDL2Java creates inconsistent pacakge names if the package name has any uppercase characters

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

Swati Sinha commented on AXIS2-2487:
------------------------------------

This line in PackageFinder.java 
configuration.setPackageName(packageName.toLowerCase());
is the cause of the problem. 

> WSDL2Java creates inconsistent pacakge names if the package name has any uppercase characters
> ---------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-2487
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2487
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: nightly
>         Environment: Axis 1.5, Tomcat 5.5, Axis2 1.2 SNAPSHOT , Eclipse 3.2, WTP 1.5.1, Windows 2003 server
>            Reporter: Tim Buss
>         Assigned To: Amila Chinthaka Suriarachchi
>
> Thik this problem existed in earlier releases also
> If you try to generate a Service called say, ExampleService, and use the namespace to package mapping option " -ns2p <ns1>=<pkg1>[,....] " and you specify a package name like
> myorg.ExamplePackage as in 
> -ns2p urn:example.namespace=myorg.ExamplePackage
> then the "type" code files generated  will observe this and create classes in the package myorg.ExamplePackage but all the "service" code files generated eg:
> ExampleService.java
> ExampleService.MessgeReceiverInOut.java
> ExampleServiceSkeleton.java
> ExampleServiceSkeletonInterface.java
> ExampleServiceStub.java
> have the package name changed to all lower case (ie myorg.examplepackage)
> I realize that it is a java convention to use all lowver case for package names but the code generated should be consistent and should take what the user gives.  This does not seem an appropriate plac eto enforce the pacakge name convention.
>   I think the eclipse plugin in 1.1.1 refuses to work if  a mixed case package name is specified which seems wrong.  At mose it should issue a warning.
> It is probably a "minor" bug really but if you happen to need it to work as I do, the workaround is somewhat painful and I suspect it's fairly easy to fix.

-- 
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-2487) WSDL2Java creates inconsistent pacakge names if the package name has any uppercase characters

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

Tim Buss commented on AXIS2-2487:
---------------------------------

The other file that is effected is services.xml since it references the "service" code class using the full package path.



> WSDL2Java creates inconsistent pacakge names if the package name has any uppercase characters
> ---------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-2487
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2487
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: nightly
>         Environment: Axis 1.5, Tomcat 5.5, Axis2 1.2 SNAPSHOT , Eclipse 3.2, WTP 1.5.1, Windows 2003 server
>            Reporter: Tim Buss
>
> Thik this problem existed in earlier releases also
> If you try to generate a Service called say, ExampleService, and use the namespace to package mapping option " -ns2p <ns1>=<pkg1>[,....] " and you specify a package name like
> myorg.ExamplePackage as in 
> -ns2p urn:example.namespace=myorg.ExamplePackage
> then the "type" code files generated  will observe this and create classes in the package myorg.ExamplePackage but all the "service" code files generated eg:
> ExampleService.java
> ExampleService.MessgeReceiverInOut.java
> ExampleServiceSkeleton.java
> ExampleServiceSkeletonInterface.java
> ExampleServiceStub.java
> have the package name changed to all lower case (ie myorg.examplepackage)
> I realize that it is a java convention to use all lowver case for package names but the code generated should be consistent and should take what the user gives.  This does not seem an appropriate plac eto enforce the pacakge name convention.
>   I think the eclipse plugin in 1.1.1 refuses to work if  a mixed case package name is specified which seems wrong.  At mose it should issue a warning.
> It is probably a "minor" bug really but if you happen to need it to work as I do, the workaround is somewhat painful and I suspect it's fairly easy to fix.

-- 
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