I don't know if this is likely to be the problem, but I wouldn't count on
anything in java working for classes not in an explicit package, as yours
appear to not be. Either that our your fileset doesn't include the file
you wish to apply jmxdoclet to.
david jencks
On 2003.03.21 14:15 Craig Goss wrote:
> Nash Foster reports:
>
> > I've been using xdoclet 1.2 beta 1 for several months now. Every few
> > weeks, we find a feature of the latest version we want to use and try
> > upgrading. However, so far we've not been able to build because beta 3
> > never produces any output files. I feel like an idiot -- It must be
> > something we're doing wrong, but our build file works perfectly under
> > beta 1.
>
> I'm going to second this one. I'm not using ejbdoclet, but I picked up
> the
> b3 CVS code yesterday and have had no end of trouble attempting to use
> jmxdoclet since. The symptom is the same as nash's ... no output at all
> is
> generated.
>
> For target:
>
> <!-- ================================================= -->
> <target name="generate-jmx" depends="init,configure">
> <taskdef name="jmxdoclet" classname="xdoclet.modules.jmx.JMXDocletTask">
> <classpath refid="jmxdoclet.class.path"/>
> </taskdef>
>
> <jmxdoclet destdir="${src.controller.dir}" force="true"
> verbose="yes">
> <fileset dir="${src.controller.dir}">
> <include name="ManagedController.java" />
> </fileset>
> <mbeaninterface/>
> <mx4jdescription/>
> </jmxdoclet>
> </target>
> <!-- ================================================= -->
>
> All I get for output is:
>
> [jmxdoclet] (XDocletMain.start 45 ) Running
> <mbeaninterface/>
> [jmxdoclet] (XDocletMain.start 45 ) Running
> <mx4jdescription/>
>
> Switch to 1.2b2: Same problem.
> Switch to 1.2b1: Not so lucky as Nash ... starts to work then:
>
> [jmxdoclet] Generating output for 'ManagedController' using template file
> 'jar:file:C:\Workspace\thirdparty\xdoclet1.20b1\lib\xdoclet-jmx-module.jar!/
> xdoclet/modules/jmx/resources/mbean.xdt'.
> [jmxdoclet] (TemplateEngine.invokeMethod 490 ) Invoking method
> failed: xdoclet.tagshandler.PackageTagsHandler.packageOf, line=4 of
> template
> file:
> jar:file:C:\Workspace\thirdpartyxdoclet1.20b1\lib\xdoclet-jmx-module.jar!/xd
> oclet/modules/jmx/resources/mbean.xdt
> [jmxdoclet] java.lang.reflect.InvocationTargetException
> [jmxdoclet] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> [jmxdoclet] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
> [jmxdoclet] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:25)
> [jmxdoclet] at java.lang.reflect.Method.invoke(Method.java:324)
> [jmxdoclet] at
> xdoclet.template.TemplateEngine.invoke(TemplateEngine.java:584)
> [jmxdoclet] at
> xdoclet.template.TemplateEngine.invokeMethod(TemplateEngine.java:483)
> [jmxdoclet] at
> xdoclet.template.TemplateEngine.invokeBlockMethod(TemplateEngine.java:904)
> [jmxdoclet] at
> xdoclet.template.TemplateEngine.handleBlockTag(TemplateEngine.java:871)
> [jmxdoclet] at
> xdoclet.template.TemplateEngine.handleTag(TemplateEngine.java:425)
> [jmxdoclet] at
> xdoclet.template.TemplateEngine.generate(TemplateEngine.java:324)
> [jmxdoclet] at
> xdoclet.template.TemplateEngine.start(TemplateEngine.java:373)
> [jmxdoclet] at
> xdoclet.TemplateSubTask.startEngine(TemplateSubTask.java:560)
> [jmxdoclet] at
> xdoclet.TemplateSubTask.generateForClass(TemplateSubTask.java:766)
> [jmxdoclet] at
> xdoclet.TemplateSubTask.startProcessPerClass(TemplateSubTask.java:666)
> [jmxdoclet] at
> xdoclet.TemplateSubTask.startProcess(TemplateSubTask.java:593)
> [jmxdoclet] at xdoclet.TemplateSubTask.execute(TemplateSubTask.java:485)
> [jmxdoclet] at xdoclet.XDocletMain.start(XDocletMain.java:46)
> [jmxdoclet] at xdoclet.DocletTask.start(DocletTask.java:460)
> [jmxdoclet] at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:68)
> [jmxdoclet] at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:185)
> [jmxdoclet] at org.apache.tools.ant.Task.perform(Task.java:348)
> [jmxdoclet] at org.apache.tools.ant.Target.execute(Target.java:309)
> [jmxdoclet] at org.apache.tools.ant.Target.performTasks(Target.java:336)
> [jmxdoclet] at
> org.apache.tools.ant.Project.executeTarget(Project.java:1244)
> [jmxdoclet] at
> org.apache.tools.ant.Project.executeTargets(Project.java:1188)
> [jmxdoclet] at org.apache.tools.ant.Main.runBuild(Main.java:614)
> [jmxdoclet] at org.apache.tools.ant.Main.start(Main.java:197)
> [jmxdoclet] at org.apache.tools.ant.Main.main(Main.java:235)
> [jmxdoclet] Caused by: java.lang.StringIndexOutOfBoundsException: String
> index out of range: -1
> [jmxdoclet] at java.lang.String.substring(String.java:1480)
> [jmxdoclet] at
> xdoclet.tagshandler.PackageTagsHandler.packageOf(PackageTagsHandler.java:167
> )
> [jmxdoclet] ... 28 more
> [jmxdoclet] (XDocletMain.start 51 ) Running XDoclet
> failed.
> [jmxdoclet] (XDocletMain.start 52 ) <<Running XDoclet
> failed.
>
>
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by:Crypto Challenge is now open!
> Get cracking and register here for some mind boggling fun and
> the chance of winning an Apple iPod:
> http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
> _______________________________________________
> xdoclet-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user
>
>
-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open!
Get cracking and register here for some mind boggling fun and
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user