There are two separate google projects - GWT and Google App Engine (GAE). If you use GAE, you *cannot* use Oracle database (or any other database for that matter). You are tied to using GAE's data storage mechanism.
If you don't know or care about GAE, just disable it for your project (its just a setting in your eclipse project). Once you disable it, you should be able to access your Oracle database. --Sri 2009/12/23 SergeZ <[email protected]> > Hi everybody!!! Please, help me in solving my problem!!! > > I have the standard simple project. The only customization which is > had been done by me is DB connection (actually Oracle 10g DataBase). > Of course I use the RPC mechanism. Data, retrieved from DB returning > from method with String type. When it's time to do for applicaton an > asyncronous method call, i receiving the such error message: > > Initializing AppEngine server > The server is running at http://localhost:8888/ > 23.12.2009 12:33:21 > com.google.appengine.tools.development.ApiProxyLocalImpl log > SEVERE: [1261571601567000] javax.servlet.ServletContext log: Exception > while dispatching incoming RPC call > com.google.gwt.user.server.rpc.UnexpectedException: Service method > 'public abstract java.lang.String > org.kamal.hello.client.HelloWorld.client.GreetingService.greetServer > (java.lang.String)' threw an unexpected exception: > java.lang.NoClassDefFoundError: java.net.Socket is a restricted class. > Please see the Google App Engine developer's guide for more details. > at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure > (RPC.java:378) > at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse > (RPC.java:581) > at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall > (RemoteServiceServlet.java:188) > at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost > (RemoteServiceServlet.java:224) > at > com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost > (AbstractRemoteServiceServlet.java:62) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) > at > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: > 487) > 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:205) > 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.lang.NoClassDefFoundError: java.net.Socket is a > restricted class. Please see the Google App Engine developer's guide > for more details. > at > com.google.appengine.tools.development.agent.runtime.Runtime.reject > (Runtime.java:51) > at oracle.net.nt.TcpNTAdapter.connect(Unknown Source) > at oracle.net.nt.ConnOption.connect(Unknown Source) > at oracle.net.nt.ConnStrategy.execute(Unknown Source) > at oracle.net.resolver.AddrResolution.resolveAndExecute(Unknown > Source) > at oracle.net.ns.NSProtocol.establishConnection(Unknown Source) > at oracle.net.ns.NSProtocol.connect(Unknown Source) > at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:843) > at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:267) > at oracle.jdbc.driver.PhysicalConnection.<init> > (PhysicalConnection.java:413) > at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:164) > at oracle.jdbc.driver.T4CDriverExtension.getConnection > (T4CDriverExtension.java:34) > at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:752) > at java.sql.DriverManager.getConnection(Unknown Source) > at java.sql.DriverManager.getConnection(Unknown Source) > at > org.kamal.hello.client.HelloWorld.server.GreetingServiceImpl.greetServer > (GreetingServiceImpl.java:23) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at > com.google.appengine.tools.development.agent.runtime.Runtime.invoke > (Runtime.java:100) > at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse > (RPC.java:562) > ... 30 more > > Of course I tried to find a syntax error somewhere in my code, and > also error in my import statements but it all was useless,,, I really > can not find in Internet the appropriate solutions and all my hopes in > fixing this bug in my application are bind with all you!!! What is the > solution ? > > P.S.: Sorry me for my English, it's not native for me . > > -- > > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-web-toolkit%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
