问题描述
D:jdkbinjava -Xmx256m -Didea.launcher.port=7532 "-Didea.launcher.bin.path=G:IDEA11.1.4IntelliJ IDEA 11.1.4bin" -Dfile.encoding=UTF-8 -classpath "G:gwt-2.5.0_SDKgwt-dev.jar;G:IDEASpacesrc;D:jdkjrelibcharsets.jar;D:jdkjrelibdeploy.jar;D:jdkjrelibjavaws.jar;D:jdkjrelibjce.jar;D:jdkjrelibjsse.jar;D:jdkjrelibmanagement-agent.jar;D:jdkjrelibplugin.jar;D:jdkjrelibresources.jar;D:jdkjrelibrt.jar;D:jdkjrelibextdnsns.jar;D:jdkjrelibextlocaledata.jar;D:jdkjrelibextsunjce_provider.jar;G:IDEASpaceouttestIDEASpace;G:IDEASpaceoutproductionIDEASpace;G:gwt-2.5.0_SDKgwt-user.jar;G:gwt-2.5.0_SDKvalidation-api-1.0.0.GA-sources.jar;G:gwt-2.5.0_SDKvalidation-api-1.0.0.GA.jar;G:IDEA11.1.4IntelliJ IDEA 11.1.4libidea_rt.jar" com.intellij.rt.execution.application.AppMain com.google.gwt.dev.DevMode -war C:Usersxinjing.IntelliJIdea11systemgwtbnmn.3d8c9086IDEASpace.adf862adrunwww -remoteUI 7901:IntelliJIdea -startupUrl MySampleApplication.html com.mySampleApplication.MySampleApplicationStarting Jetty on port 8888 [WARN] EXCEPTION java.lang.ClassNotFoundException: com.mySampleApplication.server.MySampleApplicationServiceImplat java.lang.ClassLoader.findClass(Unknown Source)at java.lang.ClassLoader.loadClass(Unknown Source)at java.lang.ClassLoader.loadClass(Unknown Source)at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:352)at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:337)at org.mortbay.util.Loader.loadClass(Loader.java:91)at org.mortbay.util.Loader.loadClass(Loader.java:71)at org.mortbay.jetty.servlet.Holder.doStart(Holder.java:73)at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:233)at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:616)at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1220)at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:513)at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)at com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload.doStart(JettyLauncher.java:468)at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)at org.mortbay.jetty.handler.RequestLogHandler.doStart(RequestLogHandler.java:115)at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)at org.mortbay.jetty.Server.doStart(Server.java:222)at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:672)at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509)at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1093)at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:836)at com.google.gwt.dev.DevMode.main(DevMode.java:311)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.intellij.rt.execution.application.AppMain.main(AppMain.java:120) [WARN] failed com.mySampleApplication.MySampleApplication MySampleApplicationServicejavax.servlet.UnavailableException: com.mySampleApplication.server.MySampleApplicationServiceImplat org.mortbay.jetty.servlet.Holder.doStart(Holder.java:79)at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:233)at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:616)at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1220)at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:513)at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)at com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload.doStart(JettyLauncher.java:468)at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)at org.mortbay.jetty.handler.RequestLogHandler.doStart(RequestLogHandler.java:115)at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)at org.mortbay.jetty.Server.doStart(Server.java:222)at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:672)at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509)at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1093)at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:836)at com.google.gwt.dev.DevMode.main(DevMode.java:311)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.intellij.rt.execution.application.AppMain.main(AppMain.java:120) [WARN] Failed startup of context com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload@25520567{/,C:Usersxinjing.IntelliJIdea11systemgwtbnmn.3d8c9086IDEASpace.adf862adrunwww}javax.servlet.UnavailableException: com.mySampleApplication.server.MySampleApplicationServiceImplat org.mortbay.jetty.servlet.Holder.doStart(Holder.java:79)at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:233)at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:616)at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1220)at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:513)at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)at com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload.doStart(JettyLauncher.java:468)at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)at org.mortbay.jetty.handler.RequestLogHandler.doStart(RequestLogHandler.java:115)at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)at org.mortbay.jetty.Server.doStart(Server.java:222)at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:672)at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509)at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1093)at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:836)at com.google.gwt.dev.DevMode.main(DevMode.java:311)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.intellij.rt.execution.application.AppMain.main(AppMain.java:120)Dev Mode initialized. Startup URL: http://127.0.0.1:8888/MySampleApplication.html?gwt.codesvr=127.0.0.1:9997[ERROR] 503 - GET /MySampleApplication.html?gwt.codesvr=127.0.0.1:9997 (127.0.0.1) 1331 bytes Request headers Host: 127.0.0.1:8888 Connection: keep-alive User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Encoding: gzip,deflate,sdch Accept-Language: zh-CN,zh;q=0.8 Accept-Charset: GBK,utf-8;q=0.7,*;q=0.3 Response headers Content-Type: text/html; charset=iso-8859-1 Content-Length: 1331[ERROR] 503 - GET /favicon.ico (127.0.0.1) 1318 bytes Request headers Host: 127.0.0.1:8888 Connection: keep-alive User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11 Accept: */* Accept-Encoding: gzip,deflate,sdch Accept-Language: zh-CN,zh;q=0.8 Accept-Charset: GBK,utf-8;q=0.7,*;q=0.3 Response headers Content-Type: text/html; charset=iso-8859-1 Content-Length: 1318
解决方案
java.lang.ClassNotFoundException: com.mySampleApplication.server.MySampleApplicationServiceImpl 很明显缺该类,你看看是不是classes下没有 或生成后放到别的目录了