XDoclet為什麼不能生成介面檔案?

lyojbuilder發表於2004-03-27
大家好:

不知道這裡有沒有用XDoclet的,我想用他生成home和Remote介面檔案,按照例子上說的,但是不行!我的程式碼:
Build.xml

<project name="lyoejb" default="build">
<property name="src" location="src"/>
<property name="generated" location="generated"/>
<property name="ejb.path" value="lib/j2ee.jar"/>
<property name="name" value="LyoEJB"/>
<target name="init">
<mkdir dir="build"/>
</target>
<target name="ejbdoclet" depends="init">
<taskdef name="ejbdoclet" classname="xdoclet.modules.ejb.EjbDocletTask">
<classpath>
<fileset dir="lib" includes="*.jar"/>
</classpath>
</taskdef>
<ejbdoclet destdir="generated" ejbspec="2.0">
<fileset dir=".">
<include name="**/*Bean.java"/>
</fileset>
<remoteinterface pattern="{0}Remote"/>
<homeinterface/>

<deploymentdescriptor destdir="build/ejb/META-INF"/>
<weblogic xmlencoding="UTF-8" destdir="build/ejb/META-INF" validatexml="true"/>

</ejbdoclet>
</target>
</project>
<p class="indent">

EJB code :

package lyo.hotmail;
import javax.ejb.*;
/*
*@ejb.bean type="Stateful"
* name="LogonSBean"
* view-type="both"
*/
public class LogonSessionBean implements SessionBean
{
public String name=null;
SessionContext cs=null;
public void setSessionContext(SessionContext sc){}

//public void create(){}
public void ejbCreate(){}
public void ejbLoad(){}
public void ejbStore(){}
public void ejbActivate(){}
public void ejbPassivate(){}
/*
*@ejb.interface-method 
*/
public void setName(String name){
this.name=name;
}
/*
*@ejb.interface-method
*/
public String getName(){
return this.name;
}
} 
<p class="indent">

When I run the build.xml it output:

Buildfile: build.xml

init:

ejbdoclet:
<p class="indent">[ejbdoclet] Deploy TEMPLATE URL: jar:file:F:\test\ejb\lib\xdoclet-apache-module
-1.2.jar!/xdoclet/modules/apache/axis/ejb/resources/axis-deploy_wsdd.xdt
<p class="indent">[ejbdoclet] Undeploy TEMPLATE URL: jar:file:F:\test\ejb\lib\xdoclet-apache-modu
le-1.2.jar!/xdoclet/modules/apache/axis/ejb/resources/axis-undeploy_wsdd.xdt
<p class="indent">[ejbdoclet] - Running <remoteinterface/>
<p class="indent">[ejbdoclet] - Running <homeinterface/>
<p class="indent">[ejbdoclet] - Running <deploymentdescriptor/>
<p class="indent">[ejbdoclet] - Running <weblogic/>

compile:

build:

BUILD SUCCESSFUL
Total time: 6 seconds 
<p class="indent">

沒有錯誤,但是根本沒有生成home和remote程式碼,哪裡錯了,請指點!

相關文章