File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes Unable to deploy EJB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Unable to deploy EJB" Watch "Unable to deploy EJB" New topic

Unable to deploy EJB

Tariq Ahsan
Ranch Hand

Joined: Nov 03, 2003
Posts: 116
Hi All,

I am trying to deploy my EJB using the Weblogic 7.0 console. I am getting the this error -

Unable to deploy EJB: MyEJB in My.jar
java.lang.NoClassDefFoundError: com/dir1/dir2/MyClass

Any idea in what circumstances normally one would get this kind of error?

Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33108

If the class is not in your file, this error is likely to occur.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Nalini Gupta

Joined: Dec 21, 2007
Posts: 4
Check whether the package declaration is correct or not in your class
[ May 25, 2008: Message edited by: Nalini Gupta ]
I agree. Here's the link:
subject: Unable to deploy EJB
It's not a secret anymore!