简体   繁体   中英

NoClassDefFoundError - external jar file

I am developing a project based on EJB in JDeveloper and I need to import a jar file as an additional library in order of the normal working of the application.

I go to Project Properties/Add library/New, I find the jar file and enter the class and source path and add the library. Next, I start the weblogic server and deploy the project. After that I try to run the application but I see the folloing error: "javax.ejb.EJBException: EJB Exception: ; nested exception is: java.lang.NoClassDefFoundError:".

I have been trying to fix this problem, but I do not know where to configure the settings.

I will be very grateful if you give me some piece of advice! Thank you!

Put the jar ejb.jar in the lib folder which is on classpath as it contains the javax.ejb.EJBException class.

Though you still have to find out what's actually causing the EJBException .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM