[jdev] urgent:applets not connecting to jabber

Anthony Ortiz anthonypaulo at gmail.com
Tue Mar 29 08:42:28 CST 2005


Applets are more limited to what they can access due to security
restrictions (you don't want any applet running on your machine that
can format your hard drive now do you?) The only way you can have your
applet communicate with the jabber server without having it signed or
setting permissions via the java .policy file is to put the jabber
server on the same machine as the web server. As long as your applet
is trying to open a socket connection to the machine hosting your
applet's web page you're okay.

Anthony


On Tue, 29 Mar 2005 08:21:19 +0530, vimal kumar <vimalma1093 at gmail.com> wrote:
> dear members,
> 
> At present i am developing a client to chat using java and jabber
> server(the package i am using to connect to jabber is SMACK)
> 
> but my applet program not getting connected to the jabber server
> 
> the error is
> ---------------------------------------------------------------------------
> java.security.AccessControlException: access denied
> (java.net.SocketPermission 192.168.16.197:5222 connect,resolve)
> ------------------------------------------------------------------------------
> 
> But the java application programs are getting connected to the jabber,
> only the applet programs are not .
> 
> i dont know to solve this.
> 
> please help me as soon as possible
> 
> thank you.
> 
> Vimal Kumar
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mail.jabber.org/mailman/listinfo/jdev
>



More information about the JDev mailing list