Yeah, I'm experiencing the same problem when trying to establish a
connection to a remote database. Does anyone know why this happens? My
applet is unsigned and it should catch any connection problems in the java
code itself.
-Tom
On Wed, 29 Mar 2000, kavitha ramasamy wrote:
> Hello,
>
> I am calling a servlet from my applet. It is working fine in
> appletviewer. But when I do the same in browser i am getting security
> Exception as
>
> netscape.security.AppletSecurityException: security.Couldn't connect to
> '127.0.0.1' with origin from 'local-classpath-classes'.
>
> at java.lang.Throwable.<init>(Compiled Code)
>
> at java.lang.Exception.<init>(Compiled Code)
>
> at java.lang.RuntimeException.<init>(Compiled Code)
>
> at java.lang.SecurityException.<init>(Compiled Code)
>
> at netscape.security.AppletSecurityException.<init>(Compiled Code)
>
> at netscape.security.AppletSecurityException.<init>(Compiled Code)
>
> at netscape.security.AppletSecurity.checkConnect(Compiled Code)
>
> at java.lang.SecurityManager.checkConnect(Compiled Code)
>
> at java.net.Socket.<init>(Compiled Code)
>
> * at java.net.Socket.<init>(Compiled Code)
>
> at CHttpPost.doSocketPost(Compiled Code)
>
> at Applet1.btnPost_MouseClicked(Compiled Code)
>
> at Applet1$SymMouse.mouseClicked(Compiled Code)
>
> at java.awt.Component.processMouseEvent(Compiled Code)
>
> at java.awt.Component.processEvent(Compiled Code)
>
> at java.awt.Button.processEvent(Compiled Code)
>
> at java.awt.Component.dispatchEventImpl(Compiled Code)
>
> at java.awt.Component.dispatchEvent(Compiled Code)
>
> at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled Code)
>
> at java.awt.EventDispatchThread.run(Compiled Code)
>
> at
> netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled
> Code).
>
> How to overcome this?
> Thanks,
> Kavitha
>
>
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html