wood burning stoves 2.0*
The moose likes JBoss/WildFly and the fly likes java.lang.NoClassDefFoundError: org/jboss/security/SecurityContextAssociation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "java.lang.NoClassDefFoundError: org/jboss/security/SecurityContextAssociation" Watch "java.lang.NoClassDefFoundError: org/jboss/security/SecurityContextAssociation" New topic
Author

java.lang.NoClassDefFoundError: org/jboss/security/SecurityContextAssociation

Ifteqar Ald
Ranch Hand

Joined: Dec 26, 2011
Posts: 73
Hi Folks,

While accessing my EJB Cleint Application WAR File i am getting below ERROR




I have the Following Jars in EJB.war/WEB-INF/lib

EJBApp.jar
jboss-messaging-client.jar
jboss-client.jar
jboss-remoting.jar
jbosssx.jar
jbosssx-client.jar
Ifteqar Ald
Ranch Hand

Joined: Dec 26, 2011
Posts: 73
Hi Guys,

Any Ideas why this ERROR Occurs???
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5811
    
    7

Is your WAR deployed to JBoss AS? If so, remove the JBoss-related JAR files from the WEB-INF/lib directory - those JARs are already provided by JBoss AS.

If the WAR is not deployed to JBoss AS, you need to add the jboss-security-spi.jar file (assuming you are running 5.1.0 or 6.0.x)

Which version of JBoss AS?


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.lang.NoClassDefFoundError: org/jboss/security/SecurityContextAssociation
 
Similar Threads
Exception while running client of session bean
Exception while running client of session bean
Servlet accessing EJB through "business delegate" problem
JBOSS5.0 EJB3 lookup issue
can't run EJB in jBoss