Topic
  • 1 reply
  • Latest Post - ‏2010-12-18T15:24:12Z by SystemAdmin
ChathuraAsanga
ChathuraAsanga
1 Post

Pinned topic Adding *.jar library to EJB Project - java.lang.NoClassDefFoundError

‏2010-05-19T06:41:18Z |
I wanted to add,

commons-codec-1.1.jar
commons-lang-2.1.jar
jasypt-1.6.jar

to my EJB Project; and I defined a library on RAD 7 called "Encyption".

When I type
BasicPasswordEncryptor encryptor=new BasicPasswordEncryptor();

it automatically imports,
import org.jasypt.util.password.BasicPasswordEncryptor; and I can do the coding.

But, when I ran the project, if gives me an error'
>>>>>> java.lang.NoClassDefFoundError: org/jasypt/util/password/BasicPasswordEncryptor

I have added the "Encyption" (User Defined) library to the EJB project's "java build path".
and in "javaEE module dependencies", I have selected the "Encyption" library as well.

What can I do for this. I need to use these 3 jar libs just inside EJB project(but not in WebProject), to meet my other requirements.

Thanks in advance!!!
Updated on 2010-12-18T15:24:12Z at 2010-12-18T15:24:12Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    6042 Posts

    Re: Adding *.jar library to EJB Project - java.lang.NoClassDefFoundError

    ‏2010-12-18T15:24:12Z  
    Hi,

    I would like to know if you have found the solution to add jar in EJB project.

    Best regard