Re: Not Able to build using Xdoclet

"Gwyn Evans" <[email protected]>
Newsgroups gmane.comp.java.xdoclet.user
Message-ID <[email protected]>
Hi,
  The one thing that I can suggest is to check that the
xdoclet.classpath contains all the jars you use in the EJB, not just
the XDoclet ones, in case that's what the issue is...
/Gwyn

On 13/06/06, Russell Ray <[email protected]> wrote:
>
> I am really semi-new to XDoclet. I am following the examples from our
> application and other EJBs in the application (Local EJBs)
>
> The build process is failing on my newly created EJB when I try to build it
> outside WSAD.
>
> Build error:
>
> code:
> --------------------------------------------------------------------------------
>
> <target name="ejbdoclet" time="9 seconds">
>            <task location="file:C:/build-ejb-mdb.xml:75: " name="ejbdoclet"
> time="9 seconds">
>                 Deploy TEMPLATE URL:
> jar:file:C:\xdoclet-1.2\lib\xdoclet-apache-module-1.2.jar!/xdoclet/modules/apache/axis/ejb/resources/axis-deploy_wsdd.xdt
>                 Undeploy TEMPLATE URL:
> jar:file:C:\xdoclet-1.2\lib\xdoclet-apache-module-1.2.jar!/xdoclet/modules/apache/axis/ejb/resources/axis-undeploy_wsdd.xdt
>                (XDocletMain.start                   47  ) Running
> <remoteinterface/>
>                Generating Remote interface for
> 'com.company.division.product.ejb.admin.site.SiteEJBLocal'
>                (TemplateEngine.invokeMethod         541 ) Invoking method
> failed: xdoclet.modules.ejb.intf.InterfaceTagsHandler.extendsFrom, line=10
> of template file:
> jar:file:C:\xdoclet-1.2\lib\xdoclet-ejb-module-1.2.jar!/xdoclet/modules/ejb/intf/resources/remote.xdt
>               java.lang.reflect.InvocationTargetException
>               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>               at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>               at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>               at java.lang.reflect.Method.invoke(Method.java:324)
>               at
> xdoclet.template.TemplateEngine.invoke(TemplateEngine.java:635)
>               at
> xdoclet.template.TemplateEngine.invokeMethod(TemplateEngine.java:534)
>               at
> xdoclet.template.TemplateEngine.invokeContentMethod(TemplateEngine.java:614)
>               at
> xdoclet.template.TemplateEngine.handleTag(TemplateEngine.java:469)
>               at
> xdoclet.template.TemplateEngine.generate(TemplateEngine.java:347)
>               at
> xdoclet.template.TemplateEngine.start(TemplateEngine.java:414)
>               at
> xdoclet.TemplateSubTask.startEngine(TemplateSubTask.java:560)
>               at
> xdoclet.TemplateSubTask.generateForClass(TemplateSubTask.java:767)
>               at
> xdoclet.TemplateSubTask.startProcessPerClass(TemplateSubTask.java:667)
>               at
> xdoclet.TemplateSubTask.startProcess(TemplateSubTask.java:594)
>               at xdoclet.TemplateSubTask.execute(TemplateSubTask.java:486)
>               at xdoclet.XDocletMain.start(XDocletMain.java:48)
>               at xdoclet.DocletTask.start(DocletTask.java:464)
>               at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:110)
>               at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)
>
> --------------------------------------------------------------------------------
>
>
>
> ANT Task This has been working with no changes:
>
> code:
> --------------------------------------------------------------------------------
>
> <target name="ejbdoclet" depends="filter">
>                 <taskdef name="ejbdoclet" classname="xdoclet.modules.ejb.EjbDocletTask">
>                         <classpath>
>                                 <path refid="xdoclet.classpath"/>
>                         </classpath>
>                 </taskdef>
>
>                 <ejbdoclet destdir="${ejb.build.dir}/src/"
> excludedtags="@version,@author"
> line 75>>>>>>   addedtags="@xdoclet-generated at ${TODAY}" ejbspec="2.0"
> verbose="${debug}">
>                         <fileset dir="${ejb.build.dir}/src/ejbModule">
>                                 <include name="**/*.java"/>
>                         </fileset>
>
>                         <!--
>                         We currently write the DAOs ourselves.
>                         <dataobject/>
>                         -->
>
>                         <remoteinterface pattern="{0}Remote"/>
>                         <localinterface pattern="{0}Local"/>
>
>                         <homeinterface />
>                         <localhomeinterface/>
>
>                         <entitypk/>
>                         <entitycmp/>
>
>                         <deploymentdescriptor destdir="${ejb.build.dir}/ejb/META-INF"/>
>                         <websphere destdir="${ejb.build.dir}/ejb/META-INF" />
>                         <weblogic version="7.0" destdir="${ejb.build.dir}/ejb/META-INF" />
>                         <!--jboss version="3.0" destdir="${ejb.build.dir}/ejb/META-INF"
> /-->
>                 </ejbdoclet>
>                 <copy todir="${ejb.build.dir}/ejb/META-INF">
>                         <fileset dir="${ejb.src.dir}/ejbModule/META-INF">
>                                 <include name="ibm*.xmi"/>
>                                 <include name="jboss.xml"/>
>                         </fileset>
>                 </copy>
> </target>
> --------------------------------------------------------------------------------
>
>
>
>
> EJB XDoclet within EJB. This is a duplicate of all other LocalEJBs
>
>
> code:
> --------------------------------------------------------------------------------
>
> /**
>  * Description:This is the Site Key EJB.
>  *
>  * @ejb.bean
>  *     name="SiteEJB"
>  *     type="Stateless"
>  *     local-jndi-name="local/SiteEJB"
>  *     jndi-name="local/SiteEJB"
>  *     view-type="local"
>  *
>  * @ejb.transaction type="Required"
>  * @weblogic.pool
>  *     initial-beans-in-free-pool="10"
>  *     max-beans-in-free-pool="2000"
>  *
>  * @ejb.home
> local-class="com.company.division.product.ejb.admin.site.SiteEJBLocalHome"
> generate="false"
>  * @ejb.interface
> local-class="com.company.division.product.ejb.admin.site.SiteEJBLocal"
> generate="false"
>  *
>  * @author   me
>  * @author  me
>  * @version  1.0 May 16, 2006
>  */
>
> --------------------------------------------------------------------------------
>
>
>
>
> Any help would be greatly appreicated.
>
> Russ
> --
> View this message in context: http://www.nabble.com/Not-Able-to-build-using-Xdoclet-t1778086.html#a4840647
> Sent from the xdoclet-user forum at Nabble.com.
>
>
>
> _______________________________________________
> xdoclet-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.