aspose file tools*
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
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: 5830
    
    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