I am trying to get Resin XDoclet to work. I am trying to generate CMP/CMR
relationships and table mappings.
(I got XDoclet to work with JBoss and WebLogic. I fully tested the example
with WebLogic. I really dig XDoclet.)
I actually got past a few hurdles (see blog) with Resin XDoclet, but still
seem to be stuck in the mud. I am using the Resin tutorial on XDoclet as a
base.
I get the error message "javadoc: No source files for package C:\ejbql\src"
when trying to create the Resin specific deployment descriptors. Yet... it
seems to find the java source files see output below.
Here is the complete error message...
C:\ejbql\build>ant resingen
Buildfile: build.xml
resingen:
[resingendd] Generating Javadoc
[resingendd] Javadoc execution
[resingendd] Loading source file
C:\ejbql\src\com\rickhightower\auth\GroupBean.j
ava...
[resingendd] Loading source file
C:\ejbql\src\com\rickhightower\auth\RoleBean.ja
va...
[resingendd] Loading source file
C:\ejbql\src\com\rickhightower\auth\UserBean.ja
va...
[resingendd] Loading source file
C:\ejbql\src\com\rickhightower\auth\UserInfoBea
n.java...
[resingendd] Loading source file
C:\ejbql\src\com\rickhightower\auth\UserManagem
entBean.java...
[resingendd] Loading source files for package C:\ejbql\src...
[resingendd] javadoc: No source files for package C:\ejbql\src
[resingendd] 1 error
BUILD FAILED
The ant target is as follows:
<target name="resingen" >
<path id="resinclasspath">
<pathelement path="${resin}/resin-ejb.jar" />
<pathelement path="${resin}/ejb.jar" />
</path>
<taskdef name="resingendd"
classname="com.caucho.xdoclet.ResinEjbDocletTask"
classpath="${xdoclet.path}"
/>
<resingendd
ejbspec="2.0"
sourcepath="${src}"
ejbClassNameSuffix="Bean"
mergedir="${src}"
destdir="${meta}/WEB-INF"
classpathref="resinclasspath"
>
<fileset dir="${src}">
<include name="${beans}" />
</fileset>
<deploymentdescriptor destdir="${meta}/WEB-INF"
validatexml="true" />
<resinejb
destinationFile="${meta}/WEB-INF/resin.ejb"/>
</resingendd>
</target>
The properties are set as follows:
beans=com/rickhightower/auth/*Bean.java
ant.lib=${env.ANT_HOME}/lib
xdoclet.jar=${ant.lib}/xdoclet.jar
log4j.jar=${ant.lib}/log4j.jar
ant.jar=${ant.lib}/ant.jar
xdoclet.path=${xdoclet.jar};${log4j.jar};${ant.jar}
...
The complete source and build script can be found here.
http://www.rickhightower.com/ejbqlresin.zip
A detailed description of the application can be found here.
http://www.rickhightower.com/ejbcmpcmrtut.html
Blog with details.
http://rickhightower.blogspot.com/
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Got root? We do.
http://thinkgeek.com/sf
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user