I think, your database is in another machine.webserver machine and database
machine are different.
So, this exception is normal. Because of Applet security.
You may use 2 or 3 tier architecture.Or database and webserver use same IP.
servlet----JDBCprogram---Database
Jian Li wrote:
> Hi, All,
>
> I searched the archives, found some solutions but still can not solve my
> problem.:-q
>
> I am using Apache 1.3.9, Solaris 5.7, JDK 2, JSDK1.2.1, Oracle 8.0.5. I
> have a servlet doing query from a database on the other server, it works.
> But when I do test on applet with same driver, jdbc:oracle:thin, username,
> passwd, it failed. The error message is:
>
> Exception
> occurrednetscape.security.AppletSecurityException:security.Couldn't
> connect to 'xxx.xxx.xxx.xxx'with origin from 'xxx.xxx.xxx.xxx'.
>
> I have tried numbered IP and named IP, set classpath to current directory,
> disable/enable java security in Netscape, but none of them works.
>
> Any idea? Pls reply to me if it may bother others. Thx in ad.
>
> Best Regards,
>
> Jian
>
> **********************************************
> Name: Jian Li
> Addr: 2900 Kingstown Rd. Apt. 732
> Kingston, RI 02881
> Tel: 401-782-8974(h)/874-4579(o)
> Email: [EMAIL PROTECTED][EMAIL PROTECTED]
> URL: http://www.ele.uri.edu/~lijian
> **********************************************
>
> ___________________________________________________________________________
> 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
--
**************************************************
Ugur KARAKAYA
NOUS Bilgisayar Sistemleri A.S.
NOUS Computer Systems Co.
http://www.nous.com.tr/
Unite for Java -> http://www.javalobby.org
**************************************************
S/MIME Cryptographic Signature