Hello all, I actually got that problem fixed. I am now getting an error saying: " java.security.AccessControlException: access denied (java.lang.RuntimePermission org.jboss.security.SecurityAssociation.getPrincipalInfo) "
my server.policy file ( in JBoss3.2.1/server/default/conf/) has: " grant { // Allow everything for now permission java.security.AllPermission; }; " Can anyone suggest anything please ? Thanks in advance, Trish. ----- Original Message ----- From: "Trish Hartnett" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 28, 2003 6:13 PM Subject: [JBoss-user] EJB/Applet question > Hello all, > > I am trying to pass some information from my EJB to my Applet. I've been > using the instruction in > "How to use Applets to access EJBs in JBoss" in the JBoss documentation. > > I keep on getting this error > "javax.naming.NameNotFoundException: SpatialInfoSessionImpl not bound" > > Here's the source code that is trying to access the EJB: > " > Properties jndiProps = new Properties() ; > jndiProps.setProperty("java.naming.factory.initial", > "org.jnp.interfaces.NamingContextFactory" ) ; > jndiProps.setProperty("java.naming.provider.url", myServer ) ; > jndiProps.setProperty("java.naming.factory.url.pkgs", > "org.jboss.naming:org.jnp.interfaces" ) ; > SpatialInfoSessionEJBHome home = > (SpatialInfoSessionEJBHome)PortableRemoteObject.narrow( new > InitialContext(jndiProps).lookup( > "SpatialInfoSessionImpl" ),SpatialInfoSessionEJBHome.class) ; > SpatialInfoSessionEJB remote = home.create() ; > myGeometry = remote.getGeom(tableName); > " > > Can anyone suggest anything please ? > > Thanks in advance, > Trish. > > > > ------------------------------------------------------- > This SF.net email is sponsored by: ObjectStore. > If flattening out C++ or Java code to make your application fit in a > relational database is painful, don't do it! Check out ObjectStore. > Now part of Progress Software. http://www.objectstore.net/sourceforge > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > ------------------------------------------------------- This SF.net email is sponsored by: ObjectStore. If flattening out C++ or Java code to make your application fit in a relational database is painful, don't do it! Check out ObjectStore. Now part of Progress Software. http://www.objectstore.net/sourceforge _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user