Hello,

If you do not sign your applet, take care that the URL you type in your
browser to call your jsp page (i.e. http://myserver/myjsp) has the same
server name (i.e. "myserver") as the one in your code that you use when you
do the jndi lookup. A problem will occur if you use myserver in your URL to
get your applet and if in the code you use the IP address for example => the
sand box will prevent you to play this way.

Cheers,



                                        Sacha



> -----Message d'origine-----
> De : [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]De la part de Erik
> Swenson
> Envoyé : vendredi, 22 juin 2001 15:14
> À : [EMAIL PROTECTED]
> Objet : [JBoss-user] JBoss, EJB and Applets
>
>
> Hello,
>
> I am trying to get an Applet to lookup an EJB using JBoss. My applet is
> loaded from a JSP page using jsp:plugin. I initially had problems
> creating
> the InitialContext which I finally solved. Now I get the following errors
> when I do the lookup.
>
> In the JBoss window:
>
> 2001-06-21 10:10:55 - Ctx( /workout ): IOException in: R( /workout +
> /com/efs/wo
> rkout/client/applet/WorkoutApplet.class + null) Connection
> aborted by peer:
> sock
> et write error
> 2001-06-21 10:10:56 - Ctx( /workout ): IOException in: R( /workout +
> /org/jnp/in
> terfaces/NamingContext.class + null) Connection aborted by peer: socket
> write er
> ror
> 2001-06-21 10:10:56 - Ctx( /workout ): IOException in: R( /workout +
> /org/jnp/se
> rver/NamingServer_Stub.class + null) Connection aborted by peer: socket
> write er
> ror
>
> In the Java console:
>
> java.security.AccessControlException: access denied
> (java.net.SocketPermission 100.100.100.100:3576 connect,resolve)      at
> java.security.AccessControlContext.checkPermission(Unknown Source)    at
> java.security.AccessController.checkPermission(Unknown Source)        at
> java.lang.SecurityManager.checkPermission(Unknown Source)     at
> java.lang.SecurityManager.checkConnect(Unknown Source)        at
> java.net.Socket.<init>(Unknown Source)        at
> java.net.Socket.<init>(Unknown
>


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to