Andreas Kemkes
2004-03-01 16:59:05 UTC
I'm trying to use the new adapter/struts/hibernate plugins from CVS and
do have two problems, which I can't seem to pin down:
(1) ${persistenceClass} is left in the Struts*Delegate.java files. How
can I correct the issue? My middlegen adapter plugin is called from
ant's middlegen target with the following settings:
<adapter destination="${project.gen-src.dir}"
package="${project.name}.adapter"
persistenceLayerName="hibernate"
actionLayerName="struts"/>
(2) This is probably unrelated, but even though it doesn't happen in the
samples case of the middlegen distribution, I can't get rid of it in my
own project:
[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
My webdoclet target calls 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>
Any hints on what I'm missing are much appreciated.
Andreas
do have two problems, which I can't seem to pin down:
(1) ${persistenceClass} is left in the Struts*Delegate.java files. How
can I correct the issue? My middlegen adapter plugin is called from
ant's middlegen target with the following settings:
<adapter destination="${project.gen-src.dir}"
package="${project.name}.adapter"
persistenceLayerName="hibernate"
actionLayerName="struts"/>
(2) This is probably unrelated, but even though it doesn't happen in the
samples case of the middlegen distribution, I can't get rid of it in my
own project:
[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
My webdoclet target calls 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>
Any hints on what I'm missing are much appreciated.
Andreas