• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

can't run EJB in jBoss

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, Guys,
I am new to EJB world.
I am using jBoss-2.2.2.
I have a EJB jar file in the structure: -
META-INF\
ejb-jar.xml
productMg\
Product.class
ProductHome.class
ProductBean.class
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.
Florence
 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Florence,
Include jbosssx-client.jar (which is in the jboss/client directory), in the classpath.
 
Florence Cheung
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
Florence
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 kundanvarma@rediffmail.com
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You will also need to add the following to your classpath:
$JBOSS_HOME/lib/jboss-jaas.jar

Dennis
 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moved to the JBoss forum.
 
You guys haven't done this much, have ya? I suggest you study this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic