/**
* @ejb.bean name="EJBStateless"
* display-name="Name for EJBStateless"
* description="Description for EJBStateless"
* jndi-name="ejb/EJBStateless"
* type="Stateless"
* view-type="both"
*/
public class EJBStatelessBean implements SessionBean {
public EJBStatelessBean() {
super();
// TODO Auto-generated constructor stub
}
public void setSessionContext(SessionContext arg0)
throws EJBException,
RemoteException {
// TODO Auto-generated method stub
}
public void ejbRemove() throws EJBException, RemoteException {
// TODO Auto-generated method stub
}
public void ejbActivate() throws EJBException, RemoteException {
// TODO Auto-generated method stub
}
public void ejbPassivate() throws EJBException, RemoteException {
// TODO Auto-generated method stub
}
}
the ant task to generate the source files
<target name="N65540" description="EJB-Config">
<taskdef name="ejbdoclet" classname="xdoclet.modules.ejb.EjbDocletTask" classpathref="xdoclet.classpath"/>
<ejbdoclet ejbSpec="2.0" excludedTags="@version,@author,@todo" destDir="src" verbose="true" addedTags="@xdoclet-generated at ${TODAY},@copyright The XDoclet Team,@author XDoclet,@version ${version}" >
<fileset dir="src" includes="**/*.java" />
<remoteinterface/>
<localinterface/>
<homeinterface/>
<localhomeinterface/>
<deploymentdescriptor validateXML="true" destDir="src/META-INF" />
<weblogic Version="6.1" createtables="False" destDir="src/META-INF" />
</ejbdoclet>
</target>
when executing the <weblogic> tag, I got this error:
Buildfile: C:\eclipse\workspace\weblogic\xdoclet-build.xml
N65540:
[ejbdoclet] ( XDocletMain.start 47 ) Running <remoteinterface/>
[ejbdoclet] (XDocletMain.start 47 ) Running <localinterface/>
[ejbdoclet] (XDocletMain.start 47 ) Running <homeinterface/>
[ejbdoclet] (XDocletMain.start 47 ) Running <localhomeinterface/>
[ejbdoclet] (XDocletMain.start 47 ) Running <deploymentdescriptor/>
[ejbdoclet] (XDocletMain.start 47 ) Running <weblogic/>
[ejbdoclet] (TemplateEngine.getTagHandlerFor 206 ) Could not find tag handler for prefix: 'XDtEjbEnv'
[ejbdoclet] (TemplateEngine.invokeMethod 519 ) Error occured at/around line 345, offending template tag: XDtEjbEnv:forAllTags
[ejbdoclet] (XDocletMain.start 53 ) Running XDoclet failed.
[ejbdoclet] (XDocletMain.start 54 ) <<xdoclet.template.TemplateException: Could not find tag handler for prefix: 'XDtEjbEnv'>>
[ejbdoclet] xdoclet.template.TemplateException: Could not find tag handler for prefix: 'XDtEjbEnv'
[ejbdoclet] at xdoclet.template.TemplateEngine.getTagHandlerFor(TemplateEngine.java:207)
[ejbdoclet] at xdoclet.template.TemplateParser.getTagHandlerFor (TemplateParser.java:56)
The affected file by this error is the weblogic-ejb-jar.xml which was partially generated:
<!DOCTYPE weblogic-ejb-jar PUBLIC "-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN" " http://www.bea.com/servers/wls600/dtd/weblogic-ejb-jar.dtd">
<weblogic-ejb-jar>
<description><![CDATA[Generated by XDoclet]]></description>
<weblogic-enterprise-bean>
<ejb-name>EJBStateless</ejb-name>
<stateless-session-descriptor>
</stateless-session-descriptor>
<reference-descriptor>
Any idea?
--
Mario Rodriguez
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ xdoclet-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
