facebook

Can’t genertate interfaces file of EJB [Closed]

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #198220 Reply

    moswu
    Member

    Hi,
    I followed the help instruction(HelpContents->MyClipse UserGuide
    ->Task->Working with Enterprise JavaBeans), and :
    1.created a new EJB Module Project,
    (Name:TestEJBProj; Dir:defult Eclipse workspace directory)
    2. then add a session EJB
    (package : com.mos.test.ejb; bean name:TesterBean)
    3.let the wizard do the auto-generating work
    4.then I got the java file TesterBean.java; it seemed OK.
    5.the I opened project properties, selected [MyEclipse XDoclet], and added a [Standard EJB] item
    6.In the lower ejbdoclet tree list, I checked[deployment descriptor], [fileset], [homeinterface], [remoteinterface], and then I pressed [Apply], then [OK]
    7.then I run the XDoclet([Myclipse]->[Run XDoclet])
    8.It seemed fine, except….
    9.NO remote interface file generated!!!

    I’ve tried above steps for at least 10 times. And NO any interface files generated, even local interface or localhome…..

    I really need help!!

    Eclipse ver.: 2.1.1 (using eclipse-SDK-2.1.1-win32.zip, newly installed)
    MyClipse ver.: 2.6.1(newly installed)
    JDK: j2sdk1.4.1_03
    OS: Win2000 Pro SP4
    RAM : 256MB

    #198224

    support-michael
    Keymaster

    I noticed that your step #6 does not specify [packageSubstitution]. Is it also checked? By default packageSubstitution will create a com.mos.test.interface package for your example containingremote and home interfaces.

    If try adding it to your Xdoclet project configuration and then rerunning XDoclet. After XDoclet runs inspect the console output for a message defining remoteInterface creation. You may also need to refresh the contents of you project for new XDoclet files to show up in your Package Explorer view.

    Michael
    MyEclipse Support

    #198226

    moswu
    Member

    Thanks! It seems working, I get the remote interface file!!
    …but I still can’t get local interface by checking [packageSubstitution]…..

    And what if I want to put interface files and bean file in the same package??
    What should I do??(Can I manully add them??)

    any idea??

    #198227

    support-michael
    Keymaster

    I just setup a simple example similar to your’s and here is what I did to generate local and remote interfaces in the same package as the bean class.

    0) Used MyEclipse EJB wizard to create TestBean.java, a stateless session bean.
    1) Open TestBean.java in the Java editor and
    1a) rename the Xdoclet attribute @ejb.bean name=”TestBean” to @ejb.bean name=”Test”
    1b) remove the view-type = “remote” attribute

    From the XDoclet properties for your sample project do the following:
    2) unselect packageSubstitution
    3) select deploymentdescriptor, fileset, homeinterface, localhomeinterface, localinterface, remoteInterface, session

    4) remove all previous Xdoclet generated classes
    5) Now “Run XDoclet” again. If all goes well you should have newly generated home and interface classes in your bean directory.

    These steps generated the following classes from TestBean:
    Test, TestHome, TestLocal, TestLocalHome, TestSession

    Micheal
    MyEclipse Support

    #198228

    moswu
    Member

    THANKS!!!
    Your superb answer get all my problems solved!!

    #206383

    Thanks.
    I had the same problem an i got it .
    1000’S of Thanks

    #219325

    jeanluc
    Member

    This also helped me,

    i believe it an essential tip when trying to migrate existing codebase.

    Thanks for the answer, please do give it a higher visibility somehow.

    #219332

    Scott Anderson
    Participant

    jeanluc,

    Thanks for the answer, please do give it a higher visibility somehow.

    Did you read our Quickstart tutorial on EJB development, available here: http://www.myeclipseide.com/ContentExpress-display-ceid-67.html

    I’m only asking to see if we did as you suggested and made the information more visible, or if the tutorial still didn’t help you with this particular issue.

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: Can’t genertate interfaces file of EJB [Closed]

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