Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB 2.0 and Xdcolet problems!

 
Srikanth Madasu
Ranch Hand
Posts: 48
Eclipse IDE Hibernate Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All, I am a newbie to EJB. I did a fair amount of research on EJBs and now comfortable with all the basic. SO I decided to do a sample project - but I am struck on this

I m trying the sample provided in this link - http://www.eclipse.org/webtools/community/tutorials/ejbtutorial/buildingejbs.html

But the Xdoclet never generated the files for me, it throws some Doclet exception. Can anyone tell me the reason for this exception and help me run this sample project sucessfully?

Thanks in advance....

 
Stefaan Somers
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I've got the same problem. But after a whole bench of googling still haven't found the solution.
Have you found a solution in the mean time??
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EJB2 & Xdoclet? Any reason you are using these old technologies? Is it a legacy application?
 
Ganesh Parasuraman
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
If you are using EJB 2.0 and XDoclet 1.2.3 in Eclipse IDE then problem might be the EJBSession implemented methods in the class HelloBean.
Please remove all the implemented methods expect the constructor. i.e from the line number the XDoclet is throwing exceptions.
I tried this and worked fine for me.

Please let me know whether it worked for you or not and if you have already resolved the problem please share it so that I can also try that method.

Thanks
 
Sanjib Pal
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I have experience with this problem. Please change the jre path to MyEclipse jre from Build Path Configuration. I think it will solved.

Thanks,
Sanjib
 
dongjun keum
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To. Sanjib Pal

Hi. Sanjib Pal~

Please understand I have the grammar wrong.

How do I change the build path should we do?

According to the JRE in eclipse properties Execution environment, Alternate JRE, Workspace default JRE should I choose, what are you in?

How to ask for more.

Thanks. ^^
 
Brian Lavender
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am following the Eclipse Web Tools Platform by Naci Dai et al and when I use xdoclet I have to tell the project that it is xdoclet project. Just adding the xdoclet facet does not do it.

Net -> EJB Project
Configuration -> "EJB Project with XDoclet"

brian
 
wiesel ac
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Today I handled some legacy code and I got the same stack trace as mentioned above.

The solution was to disable Eclipse Save-actions. Concrete, in my Eclipse configuration the Save-actions add missing Override-annotations. These annotations seem to be unparseable for XDoclet and cause the shown exception.

Maybe this hint saves someone else a lot of debugging time.

Best wishes!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic