Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.lang.NoClassDefFoundError

 
Silu gill
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone, I am learning EJB. The following is what I have done. I want to know If I am doing right. I appreciate your help. Thanks in advance
1. I created EJB project in Eclipse and glassfish bundle and package.
2. I created stateless bean. Eclispe created interface for me.
3. I created web project and added the EJB project in the project.
4. I called the methoid and got very nice excetion: java.lang.NoClassDefFoundError. Please help !

My Interface



My bean


My Servlet

I have done this much. Are there any steps I need to do? Thanks a lot.
 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Silu,
Please next time, use code tags to format your code in order to make it easier to read. I did it for you this time.

java.lang.NoClassDefFoundError isn't sufficient, check the log file and tell us the whole exception including the message.
 
Silu gill
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Hussein, thanks, I am using Glassfish and Eclispe bundle and dont have any idea of log file , where it is located. Please guide. Thanks in Advance.
 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By default the file is named server.log and it is located in domain-dir/logs.
 
Silu gill
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hussein Baghdadi wrote:By default the file is named server.log and it is located in domain-dir/logs.


HI Hussein, I looked for the server.log file and there is nothing in the domain dir. The log filder is empty. I am using Gassfish and Eclipse bundle .I have attached the screen shot. Thanks
scr_shot.PNG
[Thumbnail for scr_shot.PNG]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic