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 Kagle (JIRA)" <ax...@ws.apache.org> on 2005/03/22 21:09:20 UTC

[jira] Created: (AXIS-1898) java2wsdl --extraClasses does not add extraClasses option to deploy.wsdd

java2wsdl --extraClasses does not add extraClasses option to deploy.wsdd
------------------------------------------------------------------------

         Key: AXIS-1898
         URL: http://issues.apache.org/jira/browse/AXIS-1898
     Project: Axis
        Type: Bug
  Components: Deployment / Registries  
    Versions: 1.2RC3    
 Environment: Linux
    Reporter: Tim Kagle



When using --extraClasses as an argument to java2wsdl the statically generated WSDL is correct, it includes all extra classes, but an option <parameter name="extraClasses" value="..."/> is not added to the deploy.wsdd generated file. This is a problem because the automatically generated WSDL file by the Axis runtime (by going to http://.../ServiceName?wsdl) is incorrect, it's missing all the extra classes.

Can this be fixed for the 1.2 release please?

Thank you.

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


Re: [jira] Commented: (AXIS-1898) java2wsdl --extraClasses does not add extraClasses option to deploy.wsdd

Posted by Venkat Reddy <vr...@gmail.com>.
It works fine for me with the following options from eclipse.
--location http://localhost:8080/axis/services/J2WTest
-S J2WService
-s J2WServicePort
--style RPC
--use ENCODED
-o /APACHE/ws-axis/HelloWorld.wsdl
--PkgtoNS hello.world.test=http://hello/my/test
--deploy hello.world.test.HelloWorld

The current implementation for -deploy option insists on providing the
--PkgtoNS and -o WSDLFile name..

- venkat

On Apr 12, 2005 5:40 AM, Tim Kagle (JIRA) <ax...@ws.apache.org> wrote:
>     [ http://issues.apache.org/jira/browse/AXIS-1898?page=comments#action_62618 ]
> 
> Tim Kagle commented on AXIS-1898:
> ---------------------------------
> 
> How does one use the --deploy flag?
> 
> Here's what I get:
> 
> java.net.MalformedURLException: no protocol: /ws/generated/wsdl/ArchiveManager.wsdl
>        at java.net.URL.<init>(URL.java:537)
>        at java.net.URL.<init>(URL.java:434)
>        at java.net.URL.<init>(URL.java:383)
>        at oracle.xml.parser.v2.XMLReader.pushXMLReader(XMLReader.java:214)
>        at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:180)
>        at oracle.xml.jaxp.JXDocumentBuilder.parse(JXDocumentBuilder.java:151)
>        at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:369)
>        at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:420)
>        at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:473)
>        at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:356)
>        at java.lang.Thread.run(Thread.java:534)
> 
> I tried --output file:///some/path/Manager.wsdl but then I get FileNotFoundException.
> 
> Is there an example on how to use the --deploy option?
> 
> > java2wsdl --extraClasses does not add extraClasses option to deploy.wsdd
> > ------------------------------------------------------------------------
> >
> >          Key: AXIS-1898
> >          URL: http://issues.apache.org/jira/browse/AXIS-1898
> >      Project: Axis
> >         Type: Bug
> >   Components: Deployment / Registries
> >     Versions: 1.2RC3
> >  Environment: Linux
> >     Reporter: Tim Kagle
> 
> >
> > When using --extraClasses as an argument to java2wsdl the statically generated WSDL is correct, it includes all extra classes, but an option <parameter name="extraClasses" value="..."/> is not added to the deploy.wsdd generated file. This is a problem because the automatically generated WSDL file by the Axis runtime (by going to http://.../ServiceName?wsdl) is incorrect, it's missing all the extra classes.
> > Can this be fixed for the 1.2 release please?
> > Thank you.
> 
> --
> 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] Commented: (AXIS-1898) java2wsdl --extraClasses does not add extraClasses option to deploy.wsdd

Posted by "Tim Kagle (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1898?page=comments#action_61395 ]
     
Tim Kagle commented on AXIS-1898:
---------------------------------

I think I've confused myself with this bug. The problem comes from the existence of the 2 tools java2wsdl and wsdl2java, so starting from the java server classes, generating the WSDL and then the java client classes is a 2 step process and here's what I do:

Java Server Classes -> WSDL:
Java2WSDL --extraClasses ....

WSDL -> Java Stubs/Client Classes + server side deployment descriptor:
WSDL2Java --server-side ...

The problem is that deploy.wsdd is created by WSDL2Java so all the extraClasses information from the first Java2WSDL call is lost, hence the auto-generated WSDL file by the Axis runtime is incomplete, it doesn't include the extra classes.

I'm not sure what the solution here is short of editting deploy.wsdd by hand, which is not really an option in a development env. when these tools are run 50 times a day ...

> java2wsdl --extraClasses does not add extraClasses option to deploy.wsdd
> ------------------------------------------------------------------------
>
>          Key: AXIS-1898
>          URL: http://issues.apache.org/jira/browse/AXIS-1898
>      Project: Axis
>         Type: Bug
>   Components: Deployment / Registries
>     Versions: 1.2RC3
>  Environment: Linux
>     Reporter: Tim Kagle

>
> When using --extraClasses as an argument to java2wsdl the statically generated WSDL is correct, it includes all extra classes, but an option <parameter name="extraClasses" value="..."/> is not added to the deploy.wsdd generated file. This is a problem because the automatically generated WSDL file by the Axis runtime (by going to http://.../ServiceName?wsdl) is incorrect, it's missing all the extra classes.
> Can this be fixed for the 1.2 release please?
> Thank you.

-- 
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] Commented: (AXIS-1898) java2wsdl --extraClasses does not add extraClasses option to deploy.wsdd

Posted by "Tim Kagle (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1898?page=comments#action_62618 ]
     
Tim Kagle commented on AXIS-1898:
---------------------------------

How does one use the --deploy flag?

Here's what I get:

java.net.MalformedURLException: no protocol: /ws/generated/wsdl/ArchiveManager.wsdl
        at java.net.URL.<init>(URL.java:537)
        at java.net.URL.<init>(URL.java:434)
        at java.net.URL.<init>(URL.java:383)
        at oracle.xml.parser.v2.XMLReader.pushXMLReader(XMLReader.java:214)
        at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:180)
        at oracle.xml.jaxp.JXDocumentBuilder.parse(JXDocumentBuilder.java:151)
        at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:369)
        at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:420)
        at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:473)
        at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:356)
        at java.lang.Thread.run(Thread.java:534)


I tried --output file:///some/path/Manager.wsdl but then I get FileNotFoundException.

Is there an example on how to use the --deploy option?

> java2wsdl --extraClasses does not add extraClasses option to deploy.wsdd
> ------------------------------------------------------------------------
>
>          Key: AXIS-1898
>          URL: http://issues.apache.org/jira/browse/AXIS-1898
>      Project: Axis
>         Type: Bug
>   Components: Deployment / Registries
>     Versions: 1.2RC3
>  Environment: Linux
>     Reporter: Tim Kagle

>
> When using --extraClasses as an argument to java2wsdl the statically generated WSDL is correct, it includes all extra classes, but an option <parameter name="extraClasses" value="..."/> is not added to the deploy.wsdd generated file. This is a problem because the automatically generated WSDL file by the Axis runtime (by going to http://.../ServiceName?wsdl) is incorrect, it's missing all the extra classes.
> Can this be fixed for the 1.2 release please?
> Thank you.

-- 
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] Commented: (AXIS-1898) java2wsdl --extraClasses does not add extraClasses option to deploy.wsdd

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1898?page=comments#action_61396 ]
     
Davanum Srinivas commented on AXIS-1898:
----------------------------------------

check latest cvs, java2wsdl has a deploy option that can create the wsdd's as well.

-- dims

> java2wsdl --extraClasses does not add extraClasses option to deploy.wsdd
> ------------------------------------------------------------------------
>
>          Key: AXIS-1898
>          URL: http://issues.apache.org/jira/browse/AXIS-1898
>      Project: Axis
>         Type: Bug
>   Components: Deployment / Registries
>     Versions: 1.2RC3
>  Environment: Linux
>     Reporter: Tim Kagle

>
> When using --extraClasses as an argument to java2wsdl the statically generated WSDL is correct, it includes all extra classes, but an option <parameter name="extraClasses" value="..."/> is not added to the deploy.wsdd generated file. This is a problem because the automatically generated WSDL file by the Axis runtime (by going to http://.../ServiceName?wsdl) is incorrect, it's missing all the extra classes.
> Can this be fixed for the 1.2 release please?
> Thank you.

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