Hi
I am a novice developer, working on ejbs. I am using eclipse ide with Xdoclet to generate DDs and other files. I have only one session bean, and other 10 normal java utility classes. When I build the project, the ant script (may be generated by Xdoclet) is moving all my java classes, except my bean to other package called XYZClient. And obviously as my bean is trying to access those utility classes, and as they no more in that package its giving errors. How to resolve this issue. May be I need to edit my ejb-jar.xml file or that ant script. Can you please help me out with this.
Here is what the built generated and my ant script.
<project name="xdocletBuild" default="ejbdoclet" basedir=".">
And here is what my built generated, it says its moving my java files
I am a novice developer, working on ejbs. I am using eclipse ide with Xdoclet to generate DDs and other files. I have only one session bean, and other 10 normal java utility classes. When I build the project, the ant script (may be generated by Xdoclet) is moving all my java classes, except my bean to other package called XYZClient. And obviously as my bean is trying to access those utility classes, and as they no more in that package its giving errors. How to resolve this issue. May be I need to edit my ejb-jar.xml file or that ant script. Can you please help me out with this.
Here is what the built generated and my ant script.
<project name="xdocletBuild" default="ejbdoclet" basedir=".">
Code:
<!-- Init -->
<target name="init">
<property file="build.properties"/>
<property name="ejb.dd.dir" value="${ejb.project.dir}/${ejb.module.src}/META-INF"/>
<property name="xdoclet.force" value="true"/>
<property name="container.type" value="ejb-jar"/>
<!-- Set up java.class.path -->
<path id="project.class.path">
<pathelement location="${ejb.project.dir}/${ejb.bin.dir}" />
<pathelement path="${ejb.project.classpath}" />
<fileset dir="${ant.home}">
<include name="*/**/ant.jar"/>
</fileset>
<fileset dir="${xdoclet.home}">
<include name="**/*.jar"/>
</fileset>
<!-- append the external classpath lastly -->
<pathelement path="${java.class.path}" />
</path>
</target>
<!-- Run EJBDoclet -->
<target name="ejbdoclet" depends="init">
<taskdef name="ejbdoclet" classname="xdoclet.modules.ejb.EjbDocletTask">
<classpath refid="project.class.path"/>
</taskdef>
<ejbdoclet
destdir="${ejb.project.dir}/${ejb.module.gen}"
mergedir="${ejb.dd.dir}"
excludedtags="@version,@author,@todo"
addedtags="@wtp generated"
ejbspec="${ejb.spec.version}"
force="${xdoclet.force}"
verbose="true" >
<!-- BEANS START -->
<fileset dir="${ejb.project.dir}/${ejb.module.src}" defaultexcludes="yes">
<include name="com/bofa/security/sas/sasreqhandler/ejbs/RequestHandlerBean.java" />
</fileset>
<!-- BEANS END -->
<dataobject/>
<dao pattern="{0}" destdir="${ejb.project.dir}/${ejb.module.gen}"/>
<valueobject/>
<utilobject cacheHomes="true" includeGUID="true" kind="physical"/>
<remoteinterface/>
<localinterface/>
<homeinterface />
<localhomeinterface/>
<entitypk/>
<entitycmp/>
<entitybmp/>
<session/>
<mdb/>
<deploymentdescriptor destdir="${ejb.dd.dir}" displayname="${ejb.dd.displayname}" description="${ejb.dd.description}" validatexml="false" clientjar="${ejb.dd.clientjar}" mergedir="${ejb.dd.dir}" />
<weblogic version="8.1" xmlencoding="UTF-8" destdir="${ejb.dd.dir}" createtables="Disabled" validatexml="false" datasource="${data.source.name}" mergedir="${ejb.dd.dir}" persistence="weblogic" />
</ejbdoclet>
<antcall target="client.jar" />
</target>
<target name="client.jar" if="ejb.client.module.src">
<move todir="${ejb.client.module.src}" >
<fileset dir="${ejb.project.dir}/${ejb.module.src}" id="id">
<include name="**/*.java"/>
<exclude name="**/*Bean.java"/>
<exclude name="**/*EJB.java"/>
<exclude name="**/*Session.java"/>
<exclude name="**/*Mdb.java"/>
</fileset>
</move>
</target>
</project>
And here is what my built generated, it says its moving my java files
Code:
Buildfile: C:\project\sas\.metadata\.plugins\org.eclipse.jst.j2ee.ejb.annotations.xdoclet\tempAnt.xml
init:
ejbdoclet:
[ejbdoclet] (XDocletMain.start 47 ) Running <dataobject/>
[ejbdoclet] (XDocletMain.start 47 ) Running <dao/>
[ejbdoclet] (XDocletMain.start 47 ) Running <valueobject/>
[ejbdoclet] (XDocletMain.start 47 ) Running <utilobject/>
[ejbdoclet] Generating Util class for 'com.bofa.security.sas.sasreqhandler.RequestHandlerBean'.
[ejbdoclet] (XDocletMain.start 47 ) Running <remoteinterface/>
[ejbdoclet] Generating Remote interface for 'com.bofa.security.sas.sasreqhandler.RequestHandlerBean'.
[ejbdoclet] (XDocletMain.start 47 ) Running <localinterface/>
[ejbdoclet] Generating Local interface for 'com.bofa.security.sas.sasreqhandler.RequestHandlerBean'.
[ejbdoclet] (XDocletMain.start 47 ) Running <homeinterface/>
[ejbdoclet] Generating Home interface for 'com.bofa.security.sas.sasreqhandler.RequestHandlerBean'.
[ejbdoclet] (XDocletMain.start 47 ) Running <localhomeinterface/>
[ejbdoclet] Generating Local Home interface for 'com.bofa.security.sas.sasreqhandler.RequestHandlerBean'.
[ejbdoclet] (XDocletMain.start 47 ) Running <entitypk/>
[ejbdoclet] (XDocletMain.start 47 ) Running <entitycmp/>
[ejbdoclet] (XDocletMain.start 47 ) Running <entitybmp/>
[ejbdoclet] (XDocletMain.start 47 ) Running <session/>
[ejbdoclet] Generating Session class for 'com.bofa.security.sas.sasreqhandler.RequestHandlerBean'.
[ejbdoclet] (XDocletMain.start 47 ) Running <mdb/>
[ejbdoclet] (XDocletMain.start 47 ) Running <deploymentdescriptor/>
[ejbdoclet] Generating EJB deployment descriptor (ejb-jar.xml).
[ejbdoclet] (XDocletMain.start 47 ) Running <weblogic/>
[ejbdoclet] Generating weblogic-ejb-jar.xml.
client.jar:
[move] Moving 16 files to C:\project\sas\sas_request_handlerClient\ejbModule
BUILD SUCCESSFUL
Total time: 14 seconds