jQuery in Action, 3rd edition
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

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
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: 32844

If the class is not in your manifest.mf 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: http://aspose.com/file-tools
subject: Unable to deploy EJB
It's not a secret anymore!