From digging around in the trace and the xdoclet sources, I concluded that the subtask is not initialized at the time the exception occurs, which means that the engine has not been set.
Going back into the trace I found the following section later in the file:
[webdoclet] 2004-03-01 18:24:05,937 (xdoclet.XDocletMain.start) - Context successfully loaded.
[webdoclet] 2004-03-01 18:24:05,937 (xdoclet.XDocletMain.start) - SubTask strutsconfigxml initialized.
[webdoclet] 2004-03-01 18:24:05,937 (xdoclet.SubTask.init) - mergeDir = null
[webdoclet] 2004-03-01 18:24:05,937 (xdoclet.SubTask.init) - destDir = <some path>\web-inf
[webdoclet] 2004-03-01 18:24:05,937 (xdoclet.SubTask.init) - mergeDir = null
Any contribution to further my understanding is much appreciated
Andreas
Andreas Kemkes wrote:
I've looked through the archive and I located similar problems, but I couldn't find a solution that I was able to apply to my case:
Calling webdoclet like this:
<webdoclet destdir="${project.web-inf.dir}" excludedtags="@version,@author" verbose="true"> <fileset dir="${project.gen-src.dir}"> <include name="**/web/**/*.java" /> </fileset>
<deploymentdescriptor servletspec="2.3" validatexml="true" mergedir="${project.src.dir}/xdoclet"/> <strutsconfigxml destdir="${project.web-inf.dir}"> <configParam name="version" value="1.0"/> </strutsconfigxml> </webdoclet>
causes the following invocation error:
[webdoclet] 2004-03-01 10:27:30,140 (xdoclet.ConfigParamIntrospector.fillConfigParamsHashMapUsingReflectionFor) - name=setEngine
[webdoclet] 2004-03-01 10:27:30,140 (xdoclet.ConfigParamIntrospector.fillConfigParamsHashMapUsingReflectionFor) - propertyName=engine
[webdoclet] 2004-03-01 10:27:30,140 (xdoclet.ConfigParamIntrospector.fillConfigParamsHashMapUsingReflectionFor) - capitalPropertyName=Engine
[webdoclet] 2004-03-01 10:27:30,156 (xdoclet.ConfigParamIntrospector.fillConfigParamsHashMapUsingReflectionFor) - InvocationTargetException
[webdoclet] java.lang.reflect.InvocationTargetException
[webdoclet] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[webdoclet] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[webdoclet] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[webdoclet] at java.lang.reflect.Method.invoke(Method.java:324)
[webdoclet] at xdoclet.ConfigParamIntrospector.fillConfigParamsHashMapUsingReflectionFor(ConfigParamIntrospector.java:187)
[webdoclet] at xdoclet.ConfigParamIntrospector.fillConfigParamsFor(ConfigParamIntrospector.java:113)
[webdoclet] at xdoclet.DocletTask.getConfigParams(DocletTask.java:439)
[webdoclet] at xdoclet.DocletTask.createContext(DocletTask.java:611)
[webdoclet] at xdoclet.DocletTask.validateSubTasks(DocletTask.java:513)
[webdoclet] at xdoclet.DocletTask.validateOptions(DocletTask.java:487)
[webdoclet] at xdoclet.modules.web.WebDocletTask.validateOptions(WebDocletTask.java:21)
[webdoclet] at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:80)
[webdoclet] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:306)
[webdoclet] at org.apache.tools.ant.Task.perform(Task.java:401)
[webdoclet] at org.apache.tools.ant.Target.execute(Target.java:338)
[webdoclet] at org.apache.tools.ant.Target.performTasks(Target.java:365)
[webdoclet] at org.apache.tools.ant.Project.executeTarget(Project.java:1237)
[webdoclet] at org.apache.tools.ant.Project.executeTargets(Project.java:1094)
[webdoclet] at org.apache.tools.ant.Main.runBuild(Main.java:669)
[webdoclet] at org.apache.tools.ant.Main.startAnt(Main.java:220)
[webdoclet] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:215)
[webdoclet] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90)
[webdoclet] Caused by: java.lang.IllegalStateException: Engine is null?!
[webdoclet] at xdoclet.TemplateSubTask.getEngine(TemplateSubTask.java:172)
[webdoclet] ... 22 more
Any hints on what I may be missing are much appreciated.
Andreas
------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
