It's not a secret anymore!
The moose likes JBoss/WildFly and the fly likes can't run EJB in jBoss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "can Watch "can New topic

can't run EJB in jBoss

Florence Cheung

Joined: Mar 18, 2001
Posts: 24
Hi, Guys,
I am new to EJB world.
I am using jBoss-2.2.2.
I have a EJB jar file in the structure: -
I dropped this jar file in the "deploy" directory of jBoss. Then I want to run the client: > java productMg.Client
However, I got the error says:
Exception in thread "main" java.lang.NoClassDefFoundError: org\jboss\security\SecurityAssociation.
Looks it is caused by home.create().
Why is that? How to fix it?
Thanks in advance.
Jayakumar Gopalan

Joined: Jan 27, 2001
Posts: 20
Hi Florence,
Include jbosssx-client.jar (which is in the jboss/client directory), in the classpath.
Florence Cheung

Joined: Mar 18, 2001
Posts: 24
Hi, Jayakuma,
Thanks for help!
I did that already. Actually I added all the jar files in jboss-2.2.2\client to CLASSPATH. But still the same error. Why? Help needed!
kundan varma

Joined: Jul 12, 2001
Posts: 1
Hi florence even i am having the same problem.I have worked with weblogic.Weblogic works fine with my example but in Jboss it give security association exception.
If u get the solution plz inform me also.
My email id is
Dennis M Chin

Joined: Jul 13, 2001
Posts: 1
You will also need to add the following to your classpath:

Jon Wilson

Joined: Oct 15, 2003
Posts: 14
I had the same exception as well as others, and for JBoss 3.0.2 this is the classpath that worked for me when compiling my client app.

-classpath .:/jboss-3.0.2/client/jboss-client.jar:/jboss-3.0.2/client/jnp-client.jar:/jboss-3.0.2/client/jboss-common-client.jar:/jboss-3.0.2/client/log4j.jar:/jboss-3.0.2/client/jboss-j2ee.jar:/jboss-3.0.2/client/jbosssx-client.jar
Hope it works for you too!

Mensa member, Certified bartender, Created the Internet (along with Al Gore), Speak 9 languages fluently (this includes pig latin), Spelling Bee Winner, 8th Grade Math Award, Can hold breath under water for more than 2 minutes
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
Moved to the JBoss forum.

"JavaRanch, where the deer and the Certified play" - David O'Meara
I agree. Here's the link:
subject: can't run EJB in jBoss
It's not a secret anymore!