For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 7 replies, 5 voices, and was last updated 21 years, 9 months ago by
Scott Anderson.
-
AuthorPosts
-
moswuMemberHi,
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 : 256MBSeptember 2, 2003 at 12:26 am #198224
support-michaelKeymasterI 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 SupportSeptember 2, 2003 at 12:50 am #198226
moswuMemberThanks! 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??
September 2, 2003 at 2:22 am #198227
support-michaelKeymasterI 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” attributeFrom the XDoclet properties for your sample project do the following:
2) unselect packageSubstitution
3) select deploymentdescriptor, fileset, homeinterface, localhomeinterface, localinterface, remoteInterface, session4) 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, TestSessionMicheal
MyEclipse SupportSeptember 2, 2003 at 3:26 am #198228
moswuMemberTHANKS!!!
Your superb answer get all my problems solved!!April 25, 2004 at 1:33 am #206383
Fernando DelgadoMemberThanks.
I had the same problem an i got it .
1000’S of ThanksNovember 11, 2004 at 4:51 am #219325
jeanlucMemberThis 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.
November 11, 2004 at 8:29 am #219332
Scott AndersonParticipantjeanluc,
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.
-
AuthorPosts
