• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

why is xdoclet erroring out?

 
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Running xdoclet 1.2.1 on a simple session bean fails, what am I missing?

Thanks.
Yan

Classpath:

C:\j2sdk1.4.2_05\jre\lib\rt.jar;.;C:\InstalledApps\eclipse3\plugins\org.junit_3.8.1\junit.jar;C:\InstalledApps\Apache\ap
ache-ant-1.5.4\lib\ant.jar;c:\bea\weblogic81\server\lib\weblogic.jar

This is the ANT build file.



here is my EJB code



here is the exception:

do-doclet:
[ejbdoclet] Deploy TEMPLATE URL: jar:file:C:\InstalledApps\xdoclet\lib\xdoclet-apache-module-1.2.1.jar!/xdoclet/modules
/apache/axis/ejb/resources/axis-deploy_wsdd.xdt
[ejbdoclet] Undeploy TEMPLATE URL: jar:file:C:\InstalledApps\xdoclet\lib\xdoclet-apache-module-1.2.1.jar!/xdoclet/modul
es/apache/axis/ejb/resources/axis-undeploy_wsdd.xdt
[ejbdoclet] (XDocletMain.start 47 ) Running <remoteinterface/>
[ejbdoclet] Generating Remote interface for 'DataAccessBean'.
[ejbdoclet] (TemplateEngine.invokeMethod 541 ) Invoking method failed: xdoclet.tagshandler.PackageTagsHandler.pa
ckageOf, line=4 of template file: jar:file:C:\InstalledApps\xdoclet\lib\xdoclet-ejb-module-1.2.1.jar!/xdoclet/modules/ej
b/intf/resources/remote.xdt
[ejbdoclet] java.lang.reflect.InvocationTargetException
[ejbdoclet] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ejbdoclet] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[ejbdoclet] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[ejbdoclet] at java.lang.reflect.Method.invoke(Method.java:324)
[ejbdoclet] at xdoclet.template.TemplateEngine.invoke(TemplateEngine.java:635)
[ejbdoclet] at xdoclet.template.TemplateEngine.invokeMethod(TemplateEngine.java:534)
[ejbdoclet] at xdoclet.template.TemplateEngine.invokeBlockMethod(TemplateEngine.java:959)
[ejbdoclet] at xdoclet.template.TemplateEngine.handleBlockTag(TemplateEngine.java:926)
[ejbdoclet] at xdoclet.template.TemplateEngine.handleTag(TemplateEngine.java:466)
[ejbdoclet] at xdoclet.template.TemplateEngine.generate(TemplateEngine.java:347)
[ejbdoclet] at xdoclet.template.TemplateEngine.start(TemplateEngine.java:414)
[ejbdoclet] at xdoclet.TemplateSubTask.startEngine(TemplateSubTask.java:560)
[ejbdoclet] at xdoclet.TemplateSubTask.generateForClass(TemplateSubTask.java:767)
[ejbdoclet] at xdoclet.TemplateSubTask.startProcessPerClass(TemplateSubTask.java:667)
[ejbdoclet] at xdoclet.TemplateSubTask.startProcess(TemplateSubTask.java:594)
[ejbdoclet] at xdoclet.TemplateSubTask.execute(TemplateSubTask.java:486)
[ejbdoclet] at xdoclet.XDocletMain.start(XDocletMain.java:48)
[ejbdoclet] at xdoclet.DocletTask.start(DocletTask.java:462)
[ejbdoclet] at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:110)
[ejbdoclet] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)
[ejbdoclet] at org.apache.tools.ant.Task.perform(Task.java:341)
[ejbdoclet] at org.apache.tools.ant.Target.execute(Target.java:309)
[ejbdoclet] at org.apache.tools.ant.Target.performTasks(Target.java:336)
[ejbdoclet] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
[ejbdoclet] at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
[ejbdoclet] at org.apache.tools.ant.Main.runBuild(Main.java:609)
[ejbdoclet] at org.apache.tools.ant.Main.start(Main.java:196)
[ejbdoclet] at org.apache.tools.ant.Main.main(Main.java:235)
[ejbdoclet] Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
[ejbdoclet] at java.lang.String.substring(String.java:1444)
[ejbdoclet] at xdoclet.tagshandler.PackageTagsHandler.packageOf(PackageTagsHandler.java:203)
[ejbdoclet] ... 28 more
[ejbdoclet] xdoclet.template.TemplateException: Invoking method in class xdoclet.tagshandler.PackageTagsHandler failed:
packageOf, line=4 of template file: jar:file:C:\InstalledApps\xdoclet\lib\xdoclet-ejb-module-1.2.1.jar!/xdoclet/modules/
ejb/intf/resources/remote.xdt, exception: null
[ejbdoclet] at xdoclet.template.TemplateEngine.invokeMethod(TemplateEngine.java:542)
[ejbdoclet] at xdoclet.template.TemplateEngine.invokeBlockMethod(TemplateEngine.java:959)
[ejbdoclet] at xdoclet.template.TemplateEngine.handleBlockTag(TemplateEngine.java:926)
[ejbdoclet] at xdoclet.template.TemplateEngine.handleTag(TemplateEngine.java:466)
[ejbdoclet] at xdoclet.template.TemplateEngine.generate(TemplateEngine.java:347)
[ejbdoclet] at xdoclet.template.TemplateEngine.start(TemplateEngine.java:414)
[ejbdoclet] at xdoclet.TemplateSubTask.startEngine(TemplateSubTask.java:560)
[ejbdoclet] at xdoclet.TemplateSubTask.generateForClass(TemplateSubTask.java:767)
[ejbdoclet] at xdoclet.TemplateSubTask.startProcessPerClass(TemplateSubTask.java:667)
[ejbdoclet] at xdoclet.TemplateSubTask.startProcess(TemplateSubTask.java:594)
[ejbdoclet] at xdoclet.TemplateSubTask.execute(TemplateSubTask.java:486)
[ejbdoclet] at xdoclet.XDocletMain.start(XDocletMain.java:48)
[ejbdoclet] at xdoclet.DocletTask.start(DocletTask.java:462)
[ejbdoclet] at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:110)
[ejbdoclet] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)
[ejbdoclet] at org.apache.tools.ant.Task.perform(Task.java:341)
[ejbdoclet] at org.apache.tools.ant.Target.execute(Target.java:309)
[ejbdoclet] at org.apache.tools.ant.Target.performTasks(Target.java:336)
[ejbdoclet] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
[ejbdoclet] at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
[ejbdoclet] at org.apache.tools.ant.Main.runBuild(Main.java:609)
[ejbdoclet] at org.apache.tools.ant.Main.start(Main.java:196)
[ejbdoclet] at org.apache.tools.ant.Main.main(Main.java:235)
[ejbdoclet] (XDocletMain.start 53 ) Running XDoclet failed.
 
Yan Zhou
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
the build file is reposted:
 
Yan Zhou
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
try again.

<project name="ejbtest" default="do-doclet" basedir=".">
<target name="do-doclet" >

<path id="xdoclet.class.path">
<fileset dir="C:/InstalledApps/xdoclet/lib">
<include name="**/*.jar"/>
</fileset>
</path>

<taskdef name="ejbdoclet"<br /> classname="xdoclet.modules.ejb.EjbDocletTask"<br /> classpathref="xdoclet.class.path" />

<ejbdoclet <br /> destdir="c:/temp/tts" <br /> ejbspec="2.0" <br /> verbose="true">

<fileset dir="C:/Temp/myproject/ejb/src/java">
<include name="**/*Bean.java" />
</fileset>

<remoteinterface />
<localinterface />
<homeinterface />
<localhomeinterface />

<utilobject />

</ejbdoclet>
</target>
</project>
 
permaculture is giving a gift to your future self. After reading this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic