@王仁辉(java) 你好
@王仁辉(java) 你好,想跟你请教个问题:
很感谢您的Dreampie的开源作品,我DOWN了icedog的demo,用jetty方式启动;报如下错误,请问之前发现过类似问题吗,我新搭建的项目也是一样的,是否有些特殊的配置,THANKS,错误信息如下:
2014-09-24 10:25:49.183:WARN:oejw.WebAppContext:main: Failed startup of context o.e.j.m.p.JettyWebAppContext@7001073a{/,[file:/D:/DevWork/JEE/icedog-master/src/main/webapp/, jar:file:/G:/Maven/jeeMavenRepository/org/webjars/font-awesome/4.1.0/font-awesome-4.1.0.jar!/META-INF/resources/, jar:file:/G:/Maven/jeeMavenRepository/org/webjars/angularjs/1.3.0-beta.17/angularjs-1.3.0-beta.17.jar!/META-INF/resources/, jar:file:/G:/Maven/jeeMavenRepository/org/webjars/coffee-script/1.7.1/coffee-script-1.7.1.jar!/META-INF/resources/, jar:file:/G:/Maven/jeeMavenRepository/org/webjars/bootstrap/3.2.0/bootstrap-3.2.0.jar!/META-INF/resources/, jar:file:/G:/Maven/jeeMavenRepository/org/webjars/angular-ui-calendar/0.9.0-beta.1/angular-ui-calendar-0.9.0-beta.1.jar!/META-INF/resources/, jar:file:/G:/Maven/jeeMavenRepository/org/webjars/nprogress/0.1.2/nprogress-0.1.2.jar!/META-INF/resources/, jar:file:/G:/Maven/jeeMavenRepository/org/webjars/angular-ui-bootstrap/0.11.0-2/angular-ui-bootstrap-0.11.0-2.jar!/META-INF/resources/, jar:file:/G:/Maven/jeeMavenRepository/org/webjars/require-css/0.1.4/require-css-0.1.4.jar!/META-INF/resources/, jar:file:/G:/Maven/jeeMavenRepository/org/webjars/jquery-ui/1.10.3/jquery-ui-1.10.3.jar!/META-INF/resources/, jar:file:/G:/Maven/jeeMavenRepository/org/webjars/angular-bootstrap-switch/0.3.0-alpha.2/angular-bootstrap-switch-0.3.0-alpha.2.jar!/META-INF/resources/, jar:file:/G:/Maven/jeeMavenRepository/org/webjars/less/1.7.3/less-1.7.3.jar!/META-INF/resources/, jar:file:/G:/Maven/jeeMavenRepository/org/webjars/jquery/2.1.1/jquery-2.1.1.jar!/META-INF/resources/, jar:file:/G:/Maven/jeeMavenRepository/org/webjars/fullcalendar/1.6.4/fullcalendar-1.6.4.jar!/META-INF/resources/, jar:file:/G:/Maven/jeeMavenRepository/org/webjars/bootstrap-switch/2.0.1-1/bootstrap-switch-2.0.1-1.jar!/META-INF/resources/, jar:file:/G:/Maven/jeeMavenRepository/org/webjars/requirejs/2.1.14-1/requirejs-2.1.14-1.jar!/META-INF/resources/],STARTING}{file:/D:/DevWork/JEE/icedog-master/src/main/webapp/}
java.lang.NullPointerException
at cn.dreampie.ClassSearchKit.search(ClassSearchKit.java:209)
at cn.dreampie.web.route.AutoBindRoutes.config(AutoBindRoutes.java:87)
at com.jfinal.config.Routes.add(Routes.java:40)
at org.icedog.common.config.AppConfig.configRoute(AppConfig.java:68)
at com.jfinal.core.Config.configJFinal(Config.java:47)
at com.jfinal.core.JFinal.init(JFinal.java:67)
at com.jfinal.core.JFinalFilter.init(JFinalFilter.java:49)
at org.eclipse.jetty.servlet.FilterHolder.initialize(FilterHolder.java:137)
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:810)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:300)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1347)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:743)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:492)
at org.eclipse.jetty.maven.plugin.JettyWebAppContext.doStart(JettyWebAppContext.java:282)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:69)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:117)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:99)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:60)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:154)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:69)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:117)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:99)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:60)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:69)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:117)
at org.eclipse.jetty.server.Server.start(Server.java:355)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:99)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:60)
at org.eclipse.jetty.server.Server.doStart(Server.java:324)
at org.eclipse.jetty.maven.plugin.JettyServer.doStart(JettyServer.java:68)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:69)
at org.eclipse.jetty.maven.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:564)
at org.eclipse.jetty.maven.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:360)
at org.eclipse.jetty.maven.plugin.JettyRunMojo.execute(JettyRunMojo.java:168)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:133)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:108)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:76)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:116)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:361)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
2014-09-24 10:25:49.185:WARN:oejsh.RequestLogHandler:main: !RequestLog
2014-09-24 10:25:49.208:INFO:oejs.ServerConnector:main: Started ServerConnector@2fa2b7c3{HTTP/1.1}{0.0.0.0:9090}
出错位置: List<Class<? extends Controller>> controllerClasses = ClassSearchKit.of(Controller.class).includepaths(includeClassPaths).search();
谢谢!
谢谢,看看 AppConfig下面 这句是否是注释的 // tableBindDefault.addExcludePaths("cn.dreampie.function.shop"); 或者你用gitpull再更新一下项目回复<aclass='referer'target='_blank'>@Ackles:AutoBindRoutesautoBindRoutes=newAutoBindRoutes();routes.add(autoBindRoutes);//autoBindRoutes是空的吗?首先检查你的maven是不是已经下载了所以的引用jar,mvn:compile一下看看有没有找不到class或者对象的情况打个断点看看什么对象报的错,什么对象是空的谢谢您的支持,不过我这边还是出现一样的错误,我从GIT上DOWN了最新的代码,依然是,不知道是否我的JDK7有问题。报错的位置是configRoute方法的routes.add(autoBindRoutes);位置,错误信息一样;谢谢<spanstyle="color:#444444;font-family:Verdana,sans-serif,宋体;font-size:14px;line-height:normal;background-color:#FFFFFF;"> <atarget="_blank"rel="nofollow"><aclass='referer'target='_blank'>@Ackles <atarget="_blank"rel="nofollow">http://icedog.jd-app.com/ 我打包的最新的源码 跑起来没有问题的 如果你还有问题联系我qq:173956022
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。