Carlos69
unread,May 21, 2011, 1:47:56 PM5/21/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Web Toolkit
Hey,
I have been trying to find a solution to this problem. I am
developing a web app in GWT using Eclipse Helios but when trying to
connect to the SQL server I get this error:
java.security.AccessControlException: access denied
(java.net.SocketPermission localhost:1433 connect,resolve)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)...etc,
etc.
I am not sure what to do. I am trying to understand this kind of
architecture. The class that is calling the SQL server is on the
Server Side. From what I have read the Apache web server needs to
allow communication with SQL server though the file catalina.pocily.
Is there any other file that I need to change?
Now when I installed Eclipse Helios Apache Tomcat 7 was installed. I
found the file catalina.policy. I have to assume that everytime I run
my web application in eclipse, the IDE uses this Tomcat version. Am I
correct on this? So it must use the catalina.policy file.
Now, when I try to change the file policy it seems that the file is
locked by some other process. I have tried to to change the file even
when Eclipse is not running.
I would appreciate any info on this. I have been dealing with this for
the past 4 days and I so far behind on my project. I must say that the
class I use to connect to the SQL server was used on a regular java
application and connects beautifully.
I would I appreciate any comments that are NOT "condescending". I
really don't like reading those kind of comments. I really appreciate
any information.
I am running:
Windows 7 64bit OS
Eclipse Helios
SQL server 2005 (running on different computer)