From: | Achilleus Mantzios <achill(at)matrix(dot)gatewaynet(dot)com> |
---|---|
To: | Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov> |
Cc: | pgsql-jdbc(at)postgresql(dot)org, <paveek(at)yahoo(dot)com> |
Subject: | Re: doubt |
Date: | 2005-11-07 08:05:34 |
Message-ID: | Pine.LNX.4.44.0511070958590.28525-100000@matrix.gatewaynet.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
O Kevin Grittner έγραψε στις Nov 5, 2005 :
> Java takes a pretty conservative approach to security. An applet
> is only allowed to connect back to the server from which it was
> loaded. The database must be on the same computer as the web
> app, or you must use tunnelling software.
>
> Without more information I can't be sure that this is your issue,
> but it seems likely.
>
> -Kevin
>
>
> >>> pavi thra <paveek(at)yahoo(dot)com> >>>
>
> how can i run jdbc in applet. it compiled correctly. but in runnig it
> gives security error.how can i overcome
If security is an issue, you can always sign your applet.
http://java.sun.com/j2se/1.4.2/docs/tooldocs/solaris/jarsigner.html
and
http://java.sun.com/j2se/1.4.2/docs/tooldocs/solaris/keytool.html
are your friends.
Also check that postgresql.jar is in your CLASSPATH as in :
<applet name="PhotoJApplet"
archive="../SMA_APPLETS.jar,../commons-httpclient-2.0.2.jar,../commons-codec-1.3.jar,../commons-logging.jar,../
crewapp,../postgresql.jar"
code="com.gatewaynet.web.applets.PhotoJApplet.class"
MAYSCRIPT
width="800"
height="300">
.......
<PARAM NAME="cookiename" VALUE="JSESSIONID">
<PARAM NAME="cookievalue" VALUE="<%=session.getId()%>">
<PARAM NAME="cookiehost" VALUE="<%=request.getServerName()%>">
<PARAM NAME="cookiepath" VALUE="<%=request.getContextPath()%>">
.......
</applet>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
>
--
-Achilleus
From | Date | Subject | |
---|---|---|---|
Next Message | Heikki Linnakangas | 2005-11-07 14:07:17 | Re: Stable JDBC drivers for 8.1 |
Previous Message | Neil Dugan | 2005-11-07 07:38:50 | Re: begginer question jdbc not working (solved) |