wood burning stoves 2.0*
The moose likes Other Java Products and Servers and the fly likes why is xdoclet erroring out? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "why is xdoclet erroring out?" Watch "why is xdoclet erroring out?" New topic
Author

why is xdoclet erroring out?

Yan Zhou
Ranch Hand

Joined: Sep 02, 2003
Posts: 137
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

Joined: Sep 02, 2003
Posts: 137
the build file is reposted:
Yan Zhou
Ranch Hand

Joined: Sep 02, 2003
Posts: 137
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>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: why is xdoclet erroring out?
 
Similar Threads
SAXParseException: The content of element type "enterprise-beans" is incomplete, it m
SAXParseException: The content of element type "enterprise-beans" is incomplete, it m
Xdoclet infinite loop
Using ANT and XDoclet
EJB 2.0 and Xdcolet problems!