[ 
https://issues.apache.org/jira/browse/GERONIMO-2988?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12485403
 ] 

Lin Sun commented on GERONIMO-2988:
-----------------------------------

Initial code to hook up the wsgen tool for POJO.    Used sun's private API 
WSToolsObjectFactory.wsgen to invoke the tool.   The wsgen tool runs inside of 
the kernel during axis2 web service deployment time so I have to upgrade the 
geronimo-axis2-builder's pom.xml and axis2 config's pom.xml for the additional 
dependencies that wsgen needs.   And I had to pass the classpath parameter to 
the WSToolsObjectFactory.wsgen call as well in order to run the tool 
successfully inside of Axis2Builder.  (spent big time on CNF, CDNF issues...:-( 
)

I have performed the test (regular and hot deployment) and able to see the 
.wsdl and .xsd generated upon deployment of jaxws-war.   The generated files 
are removed when undeployment command is issued.

One remaining issue is the tool needs jdk_home\lib\tools.jar at runtime 
otherwise classdefnotfound error will be thrown.  One workaround I have is to 
put the jar in my .m2 repo and update the axis2 config's pom.xml to pick it up. 
  This is a temp solution before I find a better way thus I have commented this 
in the pom.xml to avoid any build break.

Also need to update the code for EJB - didn't expect much extra work there but 
since EJB is completely broken (G3030) I didn't attempt to do it.

Can someone please review it?  Thanks a lot  

Lin

> Axis2: needs to support optional wsdl file
> ------------------------------------------
>
>                 Key: GERONIMO-2988
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-2988
>             Project: Geronimo
>          Issue Type: New Feature
>      Security Level: public(Regular issues) 
>          Components: webservices
>    Affects Versions: 2.0-M5
>            Reporter: Lin Sun
>             Fix For: 2.0-M5
>
>
> When wsdl file is not created, the axis2 currently uses WSDL2Java tool to 
> generate the schema but the tool doesn't process annotation yet!   The 
> alternative is to use the wsgen tool provided by sun before Axis2 provides a 
> tool to generate the schema from annotation.
> There is code that writes out a web.xml to disk when web.xml is not there and 
> we may be able to use some of the code there.  The idea is to write a 
> generated wsdl file on disk based on java classes and remove the wsdl file 
> when the app is undeployed.
> 3 deployment scenarios need to be supported -
> 1) regular deployment
> 2) in place deployment
> 3) hot deployment.

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

Reply via email to