I´m working on a new system to be deployed on Google App Engine using Google Cloud SQL as database.
My environment is based on Eclipse JUNO (SR1) plus GPE latest available. Using MySQL 5.2 and mysql-connector-java-5.1.22-bin everything on Windows 7 (x64).
I´ve been trying test codes using GAE and GWT mainly based on vanilla GEP auto-generated sample. I may also consider use SmartGWT for fast UI development. At testing time it starts up, the web page gets loaded and I can interact with buttons, etc but the DataBase data never gets populated - it shows the animated fetching icon all the time. Looking at Eclipse console it looks like JDBC connector fails somewhere. Showing the error messages like (full file errors attached):
My environment is based on Eclipse JUNO (SR1) plus GPE latest available. Using MySQL 5.2 and mysql-connector-java-5.1.22-
I´ve been trying test codes using GAE and GWT mainly based on vanilla GEP auto-generated sample. I may also consider use SmartGWT for fast UI development. At testing time it starts up, the web page gets loaded and I can interact with buttons, etc but the DataBase data never gets populated - it shows the animated fetching icon all the time. Looking at Eclipse console it looks like JDBC connector fails somewhere. Showing the error messages like (full file errors attached):
=== 2012-11-21 23:13:10,192 [01-0] ERROR IDACall - Top-level servlet error:
java.lang.ExceptionInInitializerError
at com.mysql.jdbc.jdbc2.optional.MysqlDataSource.<clinit>(MysqlDataSource.java:58)
....
....
Caused by: java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "modifyThreadGroup")
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:366)
Searching I found a post in one blog mentioning that there is a issue at java.security.AccessControlException and a potential fix would be like:
In your Java SDK directory you need to remove or modify thesepermission. Modify JDK1.7.0_05\jre\lib\security\java.security file as below:Change (remove the sun.,):FROMpackage.access=sun.,com.sun.xml.internal.ws .,com.sun.xml.internal.bind.,com.sun. imageio.,com.sun.org.apache. xerces.internal.utils.,com. sun.org.apache.xalan.internal. utils. TOpackage.access=com.sun.xml.internal.ws .,com.sun.xml.internal.bind.,com.sun. imageio.,com.sun.org.apache. xerces.internal.utils.,com. sun.org.apache.xalan.internal. utils. Change (not totally necessary but to avoid other problems):FROMpackage.definition=sun.,com.sun.xml.internal.ws .,com.sun.xml.internal.bind.,com.sun. imageio.,com.sun.org.apache. xerces.internal.utils.,com. sun.org.apache.xalan.internal. utils. topackage.definition=com.sun.xml.internal.ws .,com.sun.xml.internal.bind.,com.sun. imageio.,com.sun.org.apache. xerces.internal.utils.,com. sun.org.apache.xalan.internal. utils. This may leave open other java programs sun.* calls to local accessbut for dev purposes this is the quickest solution without knowingspecifically what the AppEngine Driver is doing locally and messingwith app signing and policy files.
s
Is this workaround really needed, or I may be missing something else?
Appreciate by any hint on that since I´ve been fighting for about 2 weeks and not progressing.
thanks
Conejo
No comments:
Post a Comment