| Author |
java.lang.NoClassDefFoundError
|
Silu gill
Greenhorn
Joined: Dec 31, 2011
Posts: 10
|
|
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
Joined: Nov 08, 2003
Posts: 3334
|
|
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
Joined: Dec 31, 2011
Posts: 10
|
|
|
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
Joined: Nov 08, 2003
Posts: 3334
|
|
|
By default the file is named server.log and it is located in domain-dir/logs.
|
 |
Silu gill
Greenhorn
Joined: Dec 31, 2011
Posts: 10
|
|
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
|
| Filename |
scr_shot.PNG |
Download
|
| Description |
|
| Filesize |
28 Kbytes
|
| Downloaded: |
2 time(s) |
|
 |
 |
|
|
subject: java.lang.NoClassDefFoundError
|
|
|