NoClassDefFoundError loading class with quartz job

Solution Verified - Updated -

Issue

I am getting following error while trying to load the above class.

I verified and the class is available in ear under jar

bcprov-jdk15-138.jar at location \jboss-as\server\default\deploy\kr.ear\lib\bcprov-jdk15-138.jar.

The same ear running fine in our qa and stage environment. This  error noticed only in production.

java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/bouncycastle/jce/provider/BouncyCastleProvider
at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:174)
at org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationContext.java:44)

Please find the attached server.log.

As a note, the code that is having the NoClassDefFound exception is being fired as a scheduled job through Quartz.

Environment

Jboss Enterprise Application Platform 4.2.0.GA.CP_02

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.