Hi,
you are missing jbosssx-client.jar from jboss/client in your classpath. To
be sure inclode ALL jars from jboss/client for your clients-classpath.
Burkhard
----- Original Message -----
From: "Federico Vesco" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 12, 2001 5:14 PM
Subject: [JBoss-user] Exception execution problem
> Hi!
> I'm developing a very simple application whith JBoss-2.2.2 and Postgresql.
> I have the following message when i run the application client,immediatly
> after I try to invoke create() from Home Inteface (step 5 of client's
code
> is never executed):
>
>
> 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.create(Unknown Source)
> at WebSessionClient.main(WebSessionClient.java:35)
>
>
> This is the client code:
>
> import javax.rmi.*;
> import java.util.*;
> import javax.ejb.*;
> import javax.naming.*;
> import java.io.*;
> import java.util.*;
>
>
> import com.jdp.ejb.*;
>
> public class WebSessionClient {
>
> public static void main(String[] args) {
>
>
> System.setProperty("java.naming.factory.initial",
> "org.jnp.interfaces.NamingContextFactory");
> System.setProperty("java.naming.provider.url", "localhost:1099");
>
> try {
>
> System.out.println("step1");
>
> Context initial = new InitialContext();
>
> System.out.println("step2");
> Object objref = initial.lookup("jndiWebSession");
>
>
> System.out.println("step3");
> WebSessionHome home =
> (WebSessionHome)PortableRemoteObject.narrow(objref,
> WebSessionHome.class);
>
> System.out.println("step4");
> WebSession ws = home.create();
>
> System.out.println("step5");
>
> if(ws.login("federico","1")){;
> System.out.println("User recognized");
> }
> else {
> System.out.println("Unknown user");
> }
> }catch (Exception ex) {
> System.err.println("Caught an unexpected exception!");
> //ex.printStackTrace();
> }
>
> }
> }
>
> Is this a security problem or just something was wrong with my
> configuration?
> Thank you.
> Federico
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user