Hi all,
Recently switched to JBoss 2.1 CVS version from 2.0 FINAL, and i've run
into a problem running client programs for my ejbs. My .ear file deploys
fine, but when i run a basic java client program against it, i get this
error:
$ java -classpath
$JBOSS_HOME/lib/ext/ejb.jar:$JBOSS_HOME/client/jboss-client.jar:.
com.nohea.sayit.SayingClient all
action: all
Exception in thread "main" java.lang.NoClassDefFoundError:
org/jboss/security/SecurityAssociation
at
org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.getPrincipal(GenericProxy.java:184)
at
org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:231)
at $Proxy0.findAll(Unknown Source)
at com.nohea.sayit.SayingClient.main(SayingClient.java:75)
However, if i run the client and add $JBOSS_HOME/lib/jboss-jaas.jar to
the classpath, it works fine.
$ java -classpath
$JBOSS_HOME/lib/ext/ejb.jar:$JBOSS_HOME/client/jboss-client.jar:.:$JBOSS_HOME/lib/jboss-jaas.jar
com.nohea.sayit.SayingClient all
action: all
sayingId:1, sayingText:first post
sayingId:2, sayingText:number 2 rulez
sayingId:12, sayingText:another one by web
I didn't think i should have to do that, though. It works fine under
JBoss 2.0. I don't fully understand what
org.jboss.security.SecurityAssociation does, but i did notice in the api
docs it is org.jboss.system.SecurityAssociation.
I am using JBoss cvs as of yesterday, with Embedded Tomcat 3.2.1,
PostgreSQL 7.0, Sun JDK 1.3,and RH Linux 6.2. I also use EJBDoclet to
gen code and deploy as EAR.
Any ideas?
Raul Nohea Goodness
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]