RPC calls with GWT, Eclipse and SQL server

61 views
Skip to first unread message

Carlos69

unread,
May 21, 2011, 1:47:56 PM5/21/11
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)


Juan Pablo Gardella

unread,
May 23, 2011, 12:28:23 AM5/23/11
to google-we...@googlegroups.com
Acces denied is permission error. Are you sure that the user have permission on the database?


2011/5/21 Carlos69 <jcne...@gmail.com>


--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.


Reply all
Reply to author
Forward
0 new messages