how to solve java.lang.NoClassDefFoundError: javax/ejb/EJBObject?

    Question by:
    On

    Topics:

    Hi all,
    i am new to JDeveloper and J2ee.
    i opened an application in Jdeveloper 11, and complie it, it is fine. run it, i got error java.lang.NoClassDefFoundError: javax/ejb/EJBObject

    what library i missing?

    thanks a lot

    Loading libraries
    Exception in thread "main" java.lang.NoClassDefFoundError: javax/ejb/EJBObject
    	at java.lang.ClassLoader.defineClass1(Native Method)
    	at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    	at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    	at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
    	at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    	at au.com.ords.commission.client.CommissionMain.<init>(CommissionMain.java:83)
    	at au.com.ords.commission.client.CommissionMain.main(CommissionMain.java:992)
    Caused by: java.lang.ClassNotFoundException: javax.ejb.EJBObject
    	at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    	... 14 more
    Library directory not found.Process exited with exit code 1.
    

    Open in new window

    Good Question?
    0

    Featured Post

    Course: AWS Professional Certification

    These classes are designed to help you pass the AWS Certified Solutions Architect – Associate, AWS Certified Developer, and AWS Certified SysOps Administrator Associate exams—all essential to a career as an AWS professional.

    Top Expert Contributor

    Essential articles and videos from the Experts

    For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
    After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
    Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
    This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

    More valuable questions with Expert answers

    Question: I am having difficulty understanding the logic of a multi-file .jar file. When I looked at the MANIFEST.MF file I found the following code: Manifest-Version: 1.0 Rsrc-Class-Path: ./ commons-codec-1.7.jar sqljdbc4.jar ojdbc6.jar jt40 0.jar...

    Answer: You're getting confused between source code and bytecode. A class file contains the latter. What you're looking at in your attached text file is halfway between the two, being a result of decompilation of bytecode. In other respects,...

    Question: Hi team, I need JPA XML mapping tags tutorial , any help would be really appreciated. I need the entire tags description used in ORM.xml and Persistence.XML files .

    Answer: Lots of good information at Java Persistence WikiBooks (https://en.wikibooks.org/wiki/Java_Persistence) including links to the JPA orm.xml spec. Also lots of good information and examples at the EclipseLink...

    Question: Hi, I am running below example http://www.javatpoint.com/hibernate-and-struts-integration where i get all the related jars to run this example using eclispe. this seems like non maven application. please advise

    Answer: Well the stack trace suggests you are connecting to a MySQL database but having communication problems. This is probably a infrastructure issue in your environment. Can't really help with that.

    Question: This is about a program Java Exe4j that makes Windows EXE files that run Java byte code (class files) on Windows as regular executables as long as Java Runtime is installed. When I use the latest Exe4j 5.1 I get the attached error message....

    Answer: 1. I don't really get that. It just seems a difficult way to get platform-specific code to me. The only possible advantage of an exe maker is when it provides the JVM for you, which doesn't seem to be the case here 2. You are right, I am...

    201601-LO-Qu-076

    Extend your technology team with the Experts Exchange community.

    — trusted by —

    Who answers my questions?Our community has technology experts around the world.

    mccarl

    1,476

    Solutions

    Expert in:

    • Java
    • Java EE
    • JSP
    • Programming-Other
    • Algorithms

    gheist

    5,376

    Solutions

    Expert in:

    • Unix OS
    • Linux
    • Linux Distributions
    • Networking-Other
    • Apache Web Server

    dpearson

    916

    Solutions

    Expert in:

    • Java
    • Java EE
    • JSP
    • Programming-Other
    • Game Programming

    Scott Fell,  EE MVE

    1

    Articles

    3,699

    Solutions

    Expert in:

    • ASP
    • CSS
    • HTML
    • Web Development-Other
    • JavaScript

    marlon_rnr

    9

    Articles

    1

    Solutions

    ayanexpert

    1

    Articles

    Amitkumar Panchal

    515

    Solutions

    Expert in:

    • Java
    • Java EE
    • JSP
    • Oracle Database

    RELATED TOPICS view all topics

    1. Java
      (98,140)
    2. JSP
      (15,277)
    3. Java App Servers
      (6,800)
    4. Programming-Other
      (51,579)
    5. Web Servers
      (31,943)
    6. Editors IDEs
      (24,919)
    7. Programming Languages-Other
      (19,530)
    8. JavaScript
      (118,111)
    9. Web Languages/Standards-Other
      (39,377)
    10. Web Applications
      (13,945)