jQuery in Action, 3rd edition
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
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "java.lang.NoClassDefFoundError: org/jboss/security/SecurityContextAssociation" Watch "java.lang.NoClassDefFoundError: org/jboss/security/SecurityContextAssociation" New topic

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

Ifteqar Ald
Ranch Hand

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

Any Ideas why this ERROR Occurs???
Peter Johnson

Joined: May 14, 2008
Posts: 5852

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
It's not a secret anymore!