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 "Matthew Carey (JIRA)" <ax...@ws.apache.org> on 2004/10/27 23:31:33 UTC

[jira] Created: (AXIS-1629) WSDL2java generates prohibited package names

WSDL2java generates prohibited package names
--------------------------------------------

         Key: AXIS-1629
         URL: http://issues.apache.org/jira/browse/AXIS-1629
     Project: Axis
        Type: Bug
  Components: WSDL processing  
    Versions: 1.1    
 Environment: Running under Linux (SuSE 8.2), Java 1.4, Axis 1.1
    Reporter: Matthew Carey


When faced with certain WDSL files WSDL2java will create a classes with a prohibited package name. This java code will compile but won't run.

The wsdl files that are distributed with the Apache WS-WSRP4J project cause WSDL2java to generate the class java.lang.holders.StringArrayHolder. This is not a permitted name for a package.

I have an example online at http://demo.ssl.co.uk:8080/wsrp/wsdl/wsrp4j_service.wsdl if you don't want go to the trouble of installing this project to prove the point.*

If after running WSDL2java you rename all instances of java.lang.holders in all the created java files to say sumatra.lang.holders and rename the created java directory to sumatra, it is possible to build and run a client.

*An aside if you do install the WS-WSRP4J project locally you need to edit the file $CATALINA_HOME/webapps/wsrp/WEB-INF/web.xml so that Tomcat ships the wsdl files back with xml http headers.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (AXIS-1629) WSDL2java generates prohibited package names

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1629?page=history ]
     
Davanum Srinivas resolved AXIS-1629:
------------------------------------

    Resolution: Fixed

we'd already fixed this problem in Axis 1.2RC. Added a further refinement...Latest code in CVS generates "org\w3\www\_2001\XMLSchema\holders\StringArrayHolder.java" instead of "org\w3\www\_2001\XMLSchema\java\lang\holders\StringArrayHolder.java" (in Axis 1.2 RC1)

thanks,
dims

> WSDL2java generates prohibited package names
> --------------------------------------------
>
>          Key: AXIS-1629
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1629
>      Project: Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.1
>  Environment: Running under Linux (SuSE 8.2), Java 1.4, Axis 1.1
>     Reporter: Matthew Carey

>
> When faced with certain WDSL files WSDL2java will create a classes with a prohibited package name. This java code will compile but won't run.
> The wsdl files that are distributed with the Apache WS-WSRP4J project cause WSDL2java to generate the class java.lang.holders.StringArrayHolder. This is not a permitted name for a package.
> I have an example online at http://demo.ssl.co.uk:8080/wsrp/wsdl/wsrp4j_service.wsdl if you don't want go to the trouble of installing this project to prove the point.*
> If after running WSDL2java you rename all instances of java.lang.holders in all the created java files to say sumatra.lang.holders and rename the created java directory to sumatra, it is possible to build and run a client.
> *An aside if you do install the WS-WSRP4J project locally you need to edit the file $CATALINA_HOME/webapps/wsrp/WEB-INF/web.xml so that Tomcat ships the wsdl files back with xml http headers.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira