- This topic has 6 replies, 3 voices, and was last updated 20 years, 2 months ago by Scott Anderson.
-
AuthorPosts
-
yetangMemberhi, i was following LaLiLuna’s Simple Entity EJB with xDoclet, MyEclipse, Jboss and PostgreSql.
everything was fine until i started the first generation of doclet. the error mesg is like this:
[ejbdoclet] Error parsing File C:\Eclipse300\workspace\FirstEJB\src\com\flipmotion\test\session\SimpleBeanHome.java:Encountered “<EOF>” at line 21, column 1.
[ejbdoclet] Was expecting one of:
[ejbdoclet] “abstract” …my environment: w2k, jboss4.0, eclipse3.0, myeclipse3.8.2, mysql4.0, j2sdk1.4.2_06
my schema in mysql is: create table testtable (id varchar(50), name varchar(50), primary key(id));
partial code:
* @ejb.bean name = “SimpleBean”
* type = “CMP”
* cmp-version = “2.x”
* display-name = “SimpleBean”
* description = “SimpleBean EJB”
* view-type = “both”
* jndi-name = “ejb/SimpleBeanHome”
* local-jndi-name = “ejb/SimpleBeanLocalHome”
* primkey-field = “id”
* @ejb.persistence table-name = “testbtable”
* @jboss.persistence table-name = “testtable”
* @ejb:util
* generate=”physical”
*/
public abstract class SimpleBean implements EntityBean {/** The EntityContext */
private EntityContext context;/**
* @ejb.interface-method view-type = “both”
* @ejb.persistence column-name = “id”
* @ejb.pk-field
*
* @return
*/
public abstract String getId();/**
* @ejb.interface-method view-type = “both”
*
* @param name
*/
public abstract void setId(String id);/**
* @ejb.interface-method view-type = “both”
* @ejb.persistence column-name = “name”
* @return
*/
public abstract String getName();/**
* @ejb.interface-method view-type = “both”
*
* @param name
*/
public abstract void setName(String name);ps: i am using jboss4.0 and set version = 4.0 in standard ejb doclet. why does the DOCTYPE in my jboss.xml still say”DTD JBOSS 3.2″?
thanx
Riyad KallaMemberWhat does this file look like?
C:\Eclipse300\workspace\FirstEJB\src\com\flipmotion\test\session\SimpleBeanHome.java
Riyad KallaMemberMoving to J2EE dev
yetangMemberthank you for your prompt reply. i just figured it out…
my package did not end with “.ejb”
after i recreat the package, xdoclet rolls.
how about the jboss 4.0 stuff? i am using jboss 4.0, but the generated jboss.xml shows me “<!DOCTYPE jboss PUBLIC “-//JBoss//DTD JBOSS 3.2//EN” “http://www.jboss.org/j2ee/dtd/jboss_3_2.dtd”>”. and i using 3.2 or 4.0 ?
Riyad KallaMemberYou are using JBoss 4, but there is currently a bug in the XDoclet doclet that even if you change the version to 4.0, it still uses 3.2 for soem reason, when we update XDoclet this should fix it up. Sorry for the inconvenience.
yetangMemberthank you for the info. so even i type in version=”4.0″, i am actually still using the doclet for jboss3.2.x, which could cause some unexpected results. do u know when the jboss4 doclet will be released? and how do i know it is coming out promptly?
thanx
Scott AndersonParticipantFor timngs on XDoclet releases you’ll have to consult the XDoclet website at:
http://xdoclet.sourceforge.net -
AuthorPosts