Hey all, Well, I thought I'd post my updated stuff to see if anyone could help catch any problems I might have. I still can't get it to generate home and remote interface files for my entity bean though my ejb-jar.xml and jboss.xml to get created (albeit w/ no bean info). I've posted my Bean file, ant build task, and build output.
Any help much appreciated. --- my empty DeviceBean.java file /** * This is the Device entity bean. * * @see Register * * @ejb.bean * name="my/Device" * type="BMP" * jndi-name="ejb/my/Device" * local-jndi-name="ejb/my/LocalDevice" * primkey-field="id" * * @ejb.interface * remote-class="com.comp.management.ejb.interfaces.Device" * * @ejb.transaction * type = "Supports" */ public class DeviceBean implements EntityBean { private EntityContext context = null; private transient Connection dbConn = null; private transient DataSource dataSource =null; //private static Logger log = new Logger(); static { try { Class.forName("org.postgresql.Driver"); } catch (ClassNotFoundException cnfe) { System.out.println("Logger not working"); //log.error(DeviceBean.class, cnfe.getMessage()); } } public DeviceBean() { } public void setId(String id) {} /** * @ejb.interface-method */ public String getId() { return null; } /** * @ejb.interface-method */ public void setLocation(String location) {} /** * @ejb.interface-method */ public String getLocation() { return null; } /** * @ejb.interface-method */ public void setIpAddress(String address) {} /** * @ejb.interface-method */ public String getIpAddress() { return null; } /** * @ejb.interface-method */ public void setStartup(Date date) {} /** * @ejb.interface-method */ public Date getStartup() { return null; } /** * @ejb.create-method */ public String ejbCreate(String serialNo) throws CreateException { setId(serialNo); return null; } public void ejbPostCreate(String serialNo) { } public void setEntityContext(EntityContext ctx) { context = ctx; } public void unsetEntityContext() throws EJBException { context = null; } public void ejbRemove() { } public void ejbActivate() { } public void ejbPassivate() { } public void ejbLoad() throws EJBException, RemoteException { } public void ejbStore() throws EJBException, RemoteException { } public Connection getConnection() throws SQLException { return null; } } --- my build.xml ... <target name="ejbdoclet" depends="select-platform"> <!-- taskdef name="xdoclet" classname="xdoclet.DocletTask" classpathref="classpath.ejbDoclet" / --> <taskdef name="ejbdoclet" classname="xdoclet.modules.ejb.EjbDocletTask" classpathref="classpath.ejbDoclet" /> <!-- I use these to test to see if my paths are correct and where stuff is going. --> <echo>Source: ${proj.src}</echo> <echo>Dest: ${src.ejb}/interfaces</echo> <echo>MetaDest: ${proj.meta-inf}</echo> <tstamp> <format property="TODAY" pattern="d-MM-yy"/> </tstamp> <ejbdoclet destdir="${src.ejb}/interfaces" excludedtags="@version,@author" addedtags="@xdoclet-generated at ${TODAY}" ejbspec="2.0"> <fileset dir="${proj.src}"> <include name="com/comp/management/ejb/entities/*Bean.java"/> </fileset> <packageSubstitution packages="ejb" substituteWith="interfaces"/> <remoteinterface pattern="{0}Remote"/> <localinterface pattern="{0}"/> <homeinterface/> <localhomeinterface/> <dataobject/> <valueobject/> <entitypk/> <entitybmp/> <entitycmp/> <session/> <deploymentdescriptor destdir="${proj.meta-inf}"/> <jboss version="3.2" destdir="${proj.meta-inf}" datasource="java:/PostgresDS" typemapping="PostgreSQL"/> </ejbdoclet> --- Ant output when I build my proj ... Buildfile: build.xml init: [mkdir] Created dir: /home/me/projects/egServer/build [mkdir] Created dir: /home/me/projects/egServer/build/web select-platform: [echo] Using /home/me/projects/egServer/etc/linux.properties ejbdoclet: [echo] Source: /home/me/projects/egServer/src [echo] Dest: /home/me/projects/egServer/src/com/comp/management/ejb/interfaces [echo] MetaDest: /home/me/projects/egServer/build/META-INF [ejbdoclet] Deploy TEMPLATE URL: jar:file:/home/public/xdoclet-1.2.1/lib/xdoclet-apache-module-1.2.1.jar!/xdoclet/modules/apache/axis/ejb/resources/axis-deploy_wsdd.xdt [ejbdoclet] Undeploy TEMPLATE URL: jar:file:/home/public/xdoclet-1.2.1/lib/xdoclet-apache-module-1.2.1.jar!/xdoclet/modules/apache/axis/ejb/resources/axis-undeploy_wsdd.xdt [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 <dataobject/> [ejbdoclet] (XDocletMain.start 47 ) Running <valueobject/> [ejbdoclet] (XDocletMain.start 47 ) Running <entitypk/> [ejbdoclet] (XDocletMain.start 47 ) Running <entitybmp/> [ejbdoclet] (XDocletMain.start 47 ) Running <entitycmp/> [ejbdoclet] (XDocletMain.start 47 ) Running <session/> [ejbdoclet] (XDocletMain.start 47 ) Running <deploymentdescriptor/> [ejbdoclet] Generating EJB deployment descriptor (ejb-jar.xml). [ejbdoclet] (XDocletMain.start 47 ) Running <jboss/> [ejbdoclet] Generating jboss.xml. compile: [javac] Compiling 12 source files to /home/me/projects/egServer/build [copy] Copying 112 files to /home/me/projects/egServer/build/web [copy] Copied 13 empty directories to 2 empty directories under /home/me/projects/egServer/build/web [jar] Building jar: /home/me/projects/egServer/dist/megs.war [jar] Building jar: /home/me/projects/egServer/dist/megs-ejb.jar BUILD SUCCESSFUL Total time: 11 seconds __________________________________ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user