no one having an idea or tip?

On Dec 21, 11:36 am, Dominik Erbsland <derbsl...@gmail.com> wrote:
> I wanted to switch my perfectly runningGWTapplication fromGWT1.6
> toGWT2.0also also put it to the Google App Engine.
>
> I got many many errors from which I could fix the most. But I still
> get an error which I can't find to fix. Here is the error I get
> (snippet):
>
> Initializing AppEngine server
> The server is running athttp://localhost:8888/
> 21.12.2009 10:22:14 com.google.apphosting.utils.jetty.JettyLogger warn
> WARNUNG: Nested in javax.servlet.ServletException: init:
> java.lang.ExceptionInInitializerError
>         at com.mysql.jdbc.NonRegisteringDriver.connect
> (NonRegisteringDriver.java:283)
>         at java.sql.DriverManager.getConnection(Unknown Source)
>         at java.sql.DriverManager.getConnection(Unknown Source)
>         at ch.myrss.server.DAO.<init>(DAO.java:80)
>         at ch.myrss.server.DAO.getInstance(DAO.java:60)
>         at ch.myrss.server.RPCServiceImpl.<init>(RPCServiceImpl.java:50)
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
> Source)
>         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
> Source)
>         at java.lang.reflect.Constructor.newInstance(Unknown Source)
>         at java.lang.Class.newInstance0(Unknown Source)
>         at java.lang.Class.newInstance(Unknown Source)
>         at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
>         at org.mortbay.jetty.servlet.ServletHolder.getServlet
> (ServletHolder.java:339)
>         at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
> 463)
>         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1093)
>         at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter
> (ServeBlobFilter.java:51)
>         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1084)
>         at
> com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
> (TransactionCleanupFilter.java:43)
>         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1084)
>         at com.google.appengine.tools.development.StaticFileFilter.doFilter
> (StaticFileFilter.java:121)
>         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1084)
>         at org.mortbay.jetty.servlet.ServletHandler.handle
> (ServletHandler.java:360)
>         at org.mortbay.jetty.security.SecurityHandler.handle
> (SecurityHandler.java:216)
>         at org.mortbay.jetty.servlet.SessionHandler.handle
> (SessionHandler.java:181)
>         at org.mortbay.jetty.handler.ContextHandler.handle
> (ContextHandler.java:712)
>         at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
> 405)
>         at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle
> (DevAppEngineWebAppContext.java:70)
>         at org.mortbay.jetty.handler.HandlerWrapper.handle
> (HandlerWrapper.java:139)
>         at com.google.appengine.tools.development.JettyContainerService
> $ApiProxyHandler.handle(JettyContainerService.java:352)
>         at org.mortbay.jetty.handler.HandlerWrapper.handle
> (HandlerWrapper.java:139)
>         at org.mortbay.jetty.Server.handle(Server.java:313)
>         at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
> 506)
>         at org.mortbay.jetty.HttpConnection$RequestHandler.content
> (HttpConnection.java:844)
>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
>         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
>         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
>         at org.mortbay.io.nio.SelectChannelEndPoint.run
> (SelectChannelEndPoint.java:396)
>         at org.mortbay.thread.BoundedThreadPool$PoolThread.run
> (BoundedThreadPool.java:442)
> Caused by: java.security.AccessControlException: access denied
> (java.lang.RuntimePermission modifyThreadGroup)
>         at java.security.AccessControlContext.checkPermission(Unknown Source)
>         at java.security.AccessController.checkPermission(Unknown Source)
>         at java.lang.SecurityManager.checkPermission(Unknown Source)
>         at com.google.appengine.tools.development.DevAppServerFactory
> $CustomSecurityManager.checkPermission(DevAppServerFactory.java:151)
>         at com.google.appengine.tools.development.DevAppServerFactory
> $CustomSecurityManager.checkAccess(DevAppServerFactory.java:176)
>         at java.lang.ThreadGroup.checkAccess(Unknown Source)
>         at java.lang.Thread.init(Unknown Source)
>         at java.lang.Thread.<init>(Unknown Source)
>         at java.util.TimerThread.<init>(Unknown Source)
>         at java.util.Timer.<init>(Unknown Source)
>         at java.util.Timer.<init>(Unknown Source)
>         at com.mysql.jdbc.ConnectionImpl.<clinit>(ConnectionImpl.java:208)
>         ... 39 more
>
> In the Development Mode tab are no errors.
>
> The error must have something to do with the database. When I run it
> in debug mode it crashes somewhere here:
>
> String userName = "root";
>                         String password = "";
>                         String url = 
> "jdbc:mysql://localhost/myrss?autoReconnect=true";
>                         Class.forName("com.mysql.jdbc.Driver").newInstance();
>                         con = DriverManager.getConnection(url, userName, 
> password);
>                         System.out.println("Database connection established");
>
> I put the mysql_connector jar into the project and classpath - I also
> put the jar into the WAR directory in the project under the /lib/
> folder.
>
> When I create a separate java project and use the same code to connect
> tomysqlthen it works just perfectly. Just in theGWTapplication I
> get thisproblem.
>
> Thanks for any help!
> Dominik

--

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-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.


Reply via email to