gauri18
12-09-2004, 04:31 AM
HI,
I am trying to develop a messenger type UI in an applet (in which the JTREE gets populated from the database based on the users who are logged in) . I am using tomcat as my webserver and mysql as my db server.
When I access my applet by simply clicking on the html file it works fine.....I can see the following tree structure:
:cool: Users ..this is the root.
:) Colleagues ..another node added to root with colleagues list
:) Friends ..friends node.
But if I try to access the applet from my webserver (http://ipaddr/appname/ui.html) then it displays only the root node like:
:cool: Users (I cannot expand the node)
I cannot understand why this could be happening? When I try to access the url to the ui.html file I keep getting an error saying:
SQLException:java.sql.SQLException:Unable to connect to any hosts due to exception:java.security.AccessControlException:access denied (java.net.SocketPermission 127.0.0.1:3306 connect,resolve)
What does this mean? I have other applets having socket connections to other servers and they work fine..
thanks in advance:
-Gauri.
I am trying to develop a messenger type UI in an applet (in which the JTREE gets populated from the database based on the users who are logged in) . I am using tomcat as my webserver and mysql as my db server.
When I access my applet by simply clicking on the html file it works fine.....I can see the following tree structure:
:cool: Users ..this is the root.
:) Colleagues ..another node added to root with colleagues list
:) Friends ..friends node.
But if I try to access the applet from my webserver (http://ipaddr/appname/ui.html) then it displays only the root node like:
:cool: Users (I cannot expand the node)
I cannot understand why this could be happening? When I try to access the url to the ui.html file I keep getting an error saying:
SQLException:java.sql.SQLException:Unable to connect to any hosts due to exception:java.security.AccessControlException:access denied (java.net.SocketPermission 127.0.0.1:3306 connect,resolve)
What does this mean? I have other applets having socket connections to other servers and they work fine..
thanks in advance:
-Gauri.