aspose file tools
The moose likes EJB and other Java EE Technologies and the fly likes java.lang.NoClassDefFoundError Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "java.lang.NoClassDefFoundError" Watch "java.lang.NoClassDefFoundError" New topic
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: 3359

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: 3359

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


[Thumbnail for scr_shot.PNG]

 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: java.lang.NoClassDefFoundError
 
Similar Threads
ERROR DURING DEPLOYMENT OF SESSION BEANS!!HELP
Facing problem running simple ejb 3.0 example using eclipse and jboss
accessing beans in servlet
Exception during compiling servlet
HTTP method GET is not supported by this URL