This error occurs when Netscape finds the applet classes in the classpath.
You can either unset the classpath and then start Netscpae or start Netscape
from a script or batch file.
Here's a Windows batch file to do this. You may need to change the path to
Netscape.exe, depends on where you installed it.
set classpath=
start C:\Progra~1\Netscape\Communicator\Program\netscape.exe
exit
Rob Griffin
Quest Software
E-mail: [EMAIL PROTECTED]
Web site: http://www.quest.com
> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
> kavitha ramasamy
> Sent: Thursday, 30 March 2000 0:31
> To: [EMAIL PROTECTED]
> Subject: Applet to servlet Security Exception
>
>
> 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