facebook

run into problems on LaLiLuna tutorial

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #217796 Reply

    yetang
    Member

    hi, 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

    #217800 Reply

    Riyad Kalla
    Member

    What does this file look like?

    C:\Eclipse300\workspace\FirstEJB\src\com\flipmotion\test\session\SimpleBeanHome.java
    #217801 Reply

    Riyad Kalla
    Member

    Moving to J2EE dev

    #217807 Reply

    yetang
    Member

    thank 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”>&#8221;. and i using 3.2 or 4.0 ?

    #217814 Reply

    Riyad Kalla
    Member

    You 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.

    #217819 Reply

    yetang
    Member

    thank 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

    #217835 Reply

    Scott Anderson
    Participant

    For timngs on XDoclet releases you’ll have to consult the XDoclet website at:
    http://xdoclet.sourceforge.net

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: run into problems on LaLiLuna tutorial

You must be logged in to post in the forum log in