facebook

Help me regarding XDoclet Options for EJB…

  1. MyEclipse Archived
  2.  > 
  3. Documentation
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #244510 Reply

    tiwari_p_k
    Member

    Hi,
    I am creating a small CMP EJB application using JDK1.5, Eclipse 3.1, Myeclipse 4.0, & JBOSS 4.0.3 with JBOSS IDE for Eclipse. I ve written a small bean implementation calss. Then I created xdoclet-build.xml using Window provided for same in Myeclipse. Name of my bean implementation class is:-“cartmasterbean”

    When I select option “RUN XDOCLET” it generates following files:-
    *cartmasterbean.java
    *cartmasterbeanCMP.java
    *cartmasterbeanData.java
    *cartmasterbeanHome.java
    *cartmasterbeanLocal.java
    *cartmasterbeanLocalHome.java
    *cartmasterbeanPK.java
    *cartmasterbeanUtil.java

    & 3 xml descriptors files correctly.

    But the Problem here is that in above list of generated java files it does not genarates the seperate remote interface file for bean. Instead when I am deploying the jar it treats cartmasterbean.java file as my remote interface which is actually my bean implementation calss & gives me error like
    ======
    12:47:48,734 WARN [verifier] EJB spec violation:
    Bean : cartmasterbean
    Section: 9.2.7
    Warning: Entity bean’s remote interface must extend the javax.ejb.EJBObject interface
    ………….
    ========

    I think here it is not generating Remote interface during build. How to solve this problem???? to create some remote interface like cartmaster.java????

    Pls help me…
    Thanx,
    Prash

    #244569 Reply

    Riyad Kalla
    Member

    Prash,

    I asked someone to take a look at this.

    #245599 Reply

    Greg
    Member

    Prash,

    Sorry for the delay in responding. Is the package that contains the cartmasterbean end with the suffix “ejb” ? If it isn’t, make the package that the cartmasterbean end in .ejb. Then the remote interface will be generated in a package called interfaces.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Help me regarding XDoclet Options for EJB…

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