aspose file tools*
The moose likes GWT and the fly likes Error starting Applikation in Eclipse Developer Mode Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "Error starting Applikation in Eclipse Developer Mode" Watch "Error starting Applikation in Eclipse Developer Mode" New topic
Author

Error starting Applikation in Eclipse Developer Mode

Rainer Garbotz
Greenhorn

Joined: Sep 16, 2011
Posts: 2
Hello,

I am new in GWT development and have a problem that i am not able to solve (after 1 Week of analyse)

I start my first application with eclipse (Run As -> Web Application) and get the following error:

0 [12011149@qtp-9769911-0] INFO de.kubusit.vmware.basic.Parameter - Logging started (using BasicConfigurator)
[ERROR] javax.servlet.ServletContext log: Exception while dispatching incoming RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.lang.String de.kubusit.vmware.plugin.client.I_VMInformations.getVM_GuestName(java.lang.String)' threw an unexpected exception: java.lang.NoClassDefFoundError: javax.net.ssl.SSLContext 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:385)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:588)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
at com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:35)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:58)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:122)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java:97)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:351)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:938)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
Caused by: java.lang.NoClassDefFoundError: javax.net.ssl.SSLContext 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 com.vmware.vim25.ws.WSClient.trustAllHttpsCertificates(WSClient.java:358)
at com.vmware.vim25.ws.WSClient.<init>(WSClient.java:98)
at com.vmware.vim25.ws.VimStub.<init>(VimStub.java:45)
at com.vmware.vim25.VimPortType.<init>(VimPortType.java:9)
at com.vmware.vim25.mo.ServiceInstance.<init>(ServiceInstance.java:82)
at com.vmware.vim25.mo.ServiceInstance.<init>(ServiceInstance.java:69)
at de.kubusit.vmware.basic.Connect.getSi(Connect.java:52)
at de.kubusit.vmware.plugin.server.S_VMInformations.getVM_GuestName(S_VMInformations.java:29)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:100)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569)
... 34 more


If I Compile the project and deploy the war to my fresh installed tomcat instance everything works fine. I think there is anything with my CLASSPATH or any other Problem with the Jetty Server (Eclipse use this to start the GWT Projekt).

I hope anybody can help me.

Thanks a lot

Rainer
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10451
    
    8

Welcome to the Ranch.
javax.net.ssl.SSLContext is a restricted class. Please see the Google App Engine developer's guide for more details.

This would indicate you have created a GWT+GAE project. Is that what you really want? If you want only a GWT project, you need to uncheck the "Use Google Appengine" checkbox in the wizard.

If you want to use GAE, you need to be aware of the restricted classes. More on it here

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Rainer Garbotz
Greenhorn

Joined: Sep 16, 2011
Posts: 2
Thank you very much!!! This solves my problem. Now it works fine!

Have a nice day

Rainer
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error starting Applikation in Eclipse Developer Mode