Help: java.security.AccessControlException: access denied (java.net.SocketPermission localhost:1433 connect,resolve) !!!

274 views
Skip to first unread message

laxman lingampally

unread,
May 10, 2012, 9:32:34 AM5/10/12
to google-we...@googlegroups.com
Hi all,

Please help me out , asap,

i am trying to work with using GWT/RF , GAE and SQL Server ,when ever i am trying to connect database at that time ,  i got  below exception 

Exception : java.security.AccessControlException: access denied (java.net.SocketPermission localhost:1433 connect,resolve)


but one intersting thing is iam using two ways one is 

1) USING JDBC:ODBC driver (SQL Server DataBase)

  jdbc:odbc:JdbcOdbcDriver (i created DSN)   it is connecting fine,

2) USING SQL SERVER Driver (SQL Server DataBase)

com.microsoft.sqlserver.jdbc.SQLServerDriver   it is not connecting to sql server database 

at this time i got this Exception:java.security.AccessControlException: access denied (java.net.SocketPermission localhost:1433 connect,resolve).



please tell me where i am did  wrong.

thanks in advance.

Thanks & regards
Laxman



Brandon Donnelson

unread,
May 10, 2012, 8:45:01 PM5/10/12
to google-we...@googlegroups.com
I'm wondering:
1. Is this in the dev environment that this is happening? 
2. Can you use a static method running outside of the gwt jetty container to connect to the db?

Reply all
Reply to author
Forward
0 new messages