I think that this was reported as a bug about 3 months ago. I fixed it in my environment by doing a
search and replace on the webservices.xml file

C.

Jeff Harmes wrote:

Hi all,

I've been banging my head trying to get all of the appropriate deployment descriptors, interfaces, etc.. generated - using XDoclet - to expose an EJB as a Web Service. I must be missing something very simple, but when the webservices.xml is generated it always points the .wsdl and mapping.xml to WEB-INF/... From looking at the code the xdoclet.modules.wsee.WseeTagsHandler performs the following check within it's:

public String wsdlFilename(Properties props) method:

       if (clazz != null && clazz.getDoc().hasTag("ejb.bean")) {
           prefix = "META-INF/";
       }

For some reason, the clazz variable turns out to be null ( I put some debug statements in and recompiled ). So because of this, the WseeTagsHandler defaults to WEB-INF for the prefix. Thus causing my problem. Anyone have any thoughts on this? See below for my class-level tags as well as a snip from my build.xml.


P.S. I'm new to XDoclet, so please be patient.   :)



Regards,

Jeff



Class-Level Comments:
* @ejb.bean
*    name="MyAdapter"
*    description="My Adapter"
*    display-name"MyAdapter"
*    generate="true"
*    jndi-name="adapters/MyAdapter
*    type="Stateless"
*    transaction-type="Container"
*    view-type="all"
* @ejb.interface
*    generate="remote"
*    service-endpoint-class="com.adapters.ejb.interfaces.MyAdapter"
* @ejb.home
*    generate="remote"
*
* @wsee.port-component
*    name="com.adapters.ejb.interfaces.MyAdapter"
*    local-part="MyAdapter" *    display-name="MyAdapter"
* @wsee.hanlder
*    name="MyAdapter"
*    handler-class="com.adapters.ejb.MyAdapterBean"
* soap-header-namespace-uri="http://xdoclet.sourcefore.net/wsee/my-adpater";
*    soap-header-local-part="MyAdapter"
*    soap-role="MyRole"
*    display-name="MyAdapter"


My build.xml file looks like this:

   /**I call ejbdoclet before this call....**/

    <wseedoclet wsdlFile="wsdl/${wsdl.name}.wsdl"
       wseeSpec="1.1"
       excludedTags="@version,@author,@todo"
       verbose="true"
       destdir="${project.dir}/development/src/${meta-inf.dir}"
       jaxrpcMappingFile="jaxrpc-mapping.xml"
       force="yes">
                       <fileset dir="${project.dir}/development/src">
           <include name="${ws.dir}/*Bean.java"/>
        </fileset>
               <wsdl/>
        <jaxrpc-mapping/>
        <deploymentdescriptor/>             </wseedoclet>




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
xdoclet-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user





-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
xdoclet-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to