[JDEV] peculiar Connection problem !
Matthew A. Miller
linuxwolf at outer-planes.no-ip.com
Fri Jul 11 10:36:07 CDT 2003
What can also be done is to package your applet within a JAR, and sign
it. In most cases (including the JRE default install), signed applets
are granted "all permissions", as long as you grant the certificate.
The JDK tools provide a way to generate the necessary keystores and
certificates (including self-signed):
keytool docs:
http://java.sun.com/j2se/1.4.1/docs/tooldocs/windows/keytool.html
jarsigner docs:
http://java.sun.com/j2se/1.4.1/docs/tooldocs/windows/jarsigner.html
One additional note: these questions are Java-specific, and there's a
much more useful places to get help with these, such as
http://developer.java.sun.com/ or the new http://java.net/. I would
suggest you try any further questions there first, unless your questions
deal specifically and directly with Jabber. You'll get much more prompt
responses there than here (-:
- LW
On Fri, 2003-07-11 at 06:03, Dov B Katz wrote:
> The jabber server needs to run on the same hostname that the webserver is running on. However, if you sign your applet/jar it can
> connect wherever it wants, I believe.
> -Dov
>
> Satish Plakote wrote:
>
> > hi
> > I got rid of the problem by upgradding the jdk to 1.4.
> > Now i am stuck in the security issue related to applets.
> > Mike can u tell me how did u give ur applet permission to connect to jabberserver.
> > My applet is being served by apache server.
> >
> > Thnkx
> > Satish
> >
> > -----Original Message-----
> > From: jdev-admin at jabber.org [mailto:jdev-admin at jabber.org]On Behalf Of
> > Dov B Katz
> > Sent: Friday, July 11, 2003 3:30 PM
> > To: jdev at jabber.org; jdev at jabber.org
> > Subject: RE: [JDEV] peculiar Connection problem !
> >
> > Mike/Satish
> >
> > While the applet problem of security is indeed tied to which server is
> > used, the fundamental problem Satish is describing is due to having a
> > version of JVM which is too low to run with his particular applet....
> >
> > The setKeepAlive method of java.net.Socket is only available in JRE 1.3 and
> > higher... See the javadoc for Socket there... I'm sure he's using the
> > standard browser install of either Sun JRE 1.1.8, or Microsoft JVM which is
> > also <1.2 compatible.
> >
> > What you need to do is either:
> >
> > compile your applet with the target compatibility version set to 1.1.8, and
> > see where the errors are and fix them,
> >
> > or upgrade your browser's java plugin to use Sun's JRE 1.3 or higher. (This
> > may be nothing more than changing some settings, if you have JVM installed
> > already on the target machine)
> >
> > Then it is very possible that a security exception like the one described
> > by Mike might occur. But currently, that code is never reached because the
> > socket can't even be created to connect to anywhere.
> >
> > -Dov
> >
> > "Mike Prince" <mike at mikeprince.com> wrote:
> > >
> > >Solve the root problem; Applets can make connections back to the server
> > >where they came from. Just make sure that Jabber is on the same
> > >machine, or your load balancer/firewall makes it look like both are on
> > >the same machine.
> > >
> > >I know this works because I use Jabber applet clients on my website :)
> > >
> > >Hope that helps,
> > >
> > >Mike
> > >
> > >> -----Original Message-----
> > >> From: jdev-admin at jabber.org [mailto:jdev-admin at jabber.org] On
> > >> Behalf Of Satish Plakote
> > >> Sent: Thursday, July 10, 2003 3:42 AM
> > >> To: jdev at jabber.org
> > >> Subject: [JDEV] peculiar Connection problem !
> > >>
> > >>
> > >>
> > >>
> > >> hi
> > >> I have hit upon a problem while making a connection to a
> > >> jabber server.. I am trying to establish a connection to a
> > >> jabber server thro a servlet on my tomcat engine.I am doing
> > >> this coz of restriction placed by jvm on applets to make a
> > >> connection. I get this exception thrown when i try to make a
> > >> connection.
> > >>
> > >> java.lang.NoSuchMethodError: java.net.Socket: method
> > >> setKeepAlive(Z)V not found
> > >> at
> > >> com.echomine.net.SocketConnector$_1.run(SocketConnector.java:280)
> > >> at java.lang.Thread.run(Thread.java:479)
> > >>
> > >> can anyone give me tips to handle this ?
> > >> Thnkx
> > >> Satish
> > >>
> > >> _______________________________________________
> > >> jdev mailing list
> > >> jdev at jabber.org
> > >> http://mailman.jabber.org/listinfo/jdev
> > >>
> > >
> > >
> > >_______________________________________________
> > >jdev mailing list
> > >jdev at jabber.org
> > >http://mailman.jabber.org/listinfo/jdev
> > >
> > >
> >
> > --
> > NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is
> > prohibited.
> >
> > _______________________________________________
> > jdev mailing list
> > jdev at jabber.org
> > http://mailman.jabber.org/listinfo/jdev
> >
> > _______________________________________________
> > jdev mailing list
> > jdev at jabber.org
> > http://mailman.jabber.org/listinfo/jdev
>
> --
> NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is
> prohibited.
--
Matt "linuxwolf" Miller
JID: linuxwolf at outer-planes.net
E-MAIL: linuxwolf at outer-planes.net
- Got "JABBER"? (http://www.jabber.org/)
More information about the JDev
mailing list