NutzCN Logo
问答 nutz-book-project 启动失败
发布于 1286天前 作者 Hamming 848 次浏览 复制 上一个帖子 下一个帖子
标签:

Git下载下来项目 运行就抛异常了 如下

"D:\Program Files\Java\jdk1.8.0_101\bin\java" -Didea.launcher.port=7532 "-Didea.launcher.bin.path=E:\Program Files (x86)\JetBrains\IntelliJ IDEA 14.0.3\bin" -Dfile.encoding=UTF-8 -classpath "D:\Program Files\Java\jdk1.8.0_101\jre\lib\charsets.jar;D:\Program Files\Java\jdk1.8.0_101\jre\lib\deploy.jar;D:\Program Files\Java\jdk1.8.0_101\jre\lib\javaws.jar;D:\Program Files\Java\jdk1.8.0_101\jre\lib\jce.jar;D:\Program Files\Java\jdk1.8.0_101\jre\lib\jfr.jar;D:\Program Files\Java\jdk1.8.0_101\jre\lib\jfxswt.jar;D:\Program Files\Java\jdk1.8.0_101\jre\lib\jsse.jar;D:\Program Files\Java\jdk1.8.0_101\jre\lib\management-agent.jar;D:\Program Files\Java\jdk1.8.0_101\jre\lib\plugin.jar;D:\Program Files\Java\jdk1.8.0_101\jre\lib\resources.jar;D:\Program Files\Java\jdk1.8.0_101\jre\lib\rt.jar;D:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\access-bridge-64.jar;D:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\cldrdata.jar;D:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\dnsns.jar;D:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\jaccess.jar;D:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\jfxrt.jar;D:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\localedata.jar;D:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\nashorn.jar;D:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\sunec.jar;D:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\sunjce_provider.jar;D:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\sunmscapi.jar;D:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\sunpkcs11.jar;D:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\zipfs.jar;E:\project\nutz-book-project\target\classes;D:\java\apache-maven-3.3.9\repository\org\nutz\nutz-integration-quartz\1.r.56\nutz-integration-quartz-1.r.56.jar;D:\java\apache-maven-3.3.9\repository\org\quartz-scheduler\quartz\2.2.1\quartz-2.2.1.jar;D:\java\apache-maven-3.3.9\repository\org\nutz\nutz-integration-shiro\1.r.56\nutz-integration-shiro-1.r.56.jar;D:\java\apache-maven-3.3.9\repository\commons-logging\commons-logging\1.1.1\commons-logging-1.1.1.jar;D:\java\apache-maven-3.3.9\repository\org\apache\lucene\lucene-highlighter\4.9.1\lucene-highlighter-4.9.1.jar;D:\java\apache-maven-3.3.9\repository\org\apache\lucene\lucene-memory\4.9.1\lucene-memory-4.9.1.jar;D:\java\apache-maven-3.3.9\repository\org\apache\lucene\lucene-queries\4.9.1\lucene-queries-4.9.1.jar;D:\java\apache-maven-3.3.9\repository\org\nutz\nutz-plugins-daocache\1.r.56\nutz-plugins-daocache-1.r.56.jar;D:\java\apache-maven-3.3.9\repository\net\sf\ehcache\ehcache\2.10.1\ehcache-2.10.1.jar;D:\java\apache-maven-3.3.9\repository\redis\clients\jedis\2.8.1\jedis-2.8.1.jar;D:\java\apache-maven-3.3.9\repository\org\apache\commons\commons-pool2\2.4.2\commons-pool2-2.4.2.jar;D:\java\apache-maven-3.3.9\repository\org\apache\commons\commons-email\1.4\commons-email-1.4.jar;D:\java\apache-maven-3.3.9\repository\com\sun\mail\javax.mail\1.5.2\javax.mail-1.5.2.jar;D:\java\apache-maven-3.3.9\repository\javax\activation\activation\1.1.1\activation-1.1.1.jar;D:\java\apache-maven-3.3.9\repository\org\brickred\socialauth\4.9\socialauth-4.9.jar;D:\java\apache-maven-3.3.9\repository\org\json\json\20090211\json-20090211.jar;D:\java\apache-maven-3.3.9\repository\org\openid4java\openid4java-consumer\0.9.5\openid4java-consumer-0.9.5.jar;D:\java\apache-maven-3.3.9\repository\org\openid4java\openid4java-nodeps\0.9.5\openid4java-nodeps-0.9.5.jar;D:\java\apache-maven-3.3.9\repository\commons-httpclient\commons-httpclient\3.0.1\commons-httpclient-3.0.1.jar;D:\java\apache-maven-3.3.9\repository\commons-codec\commons-codec\1.2\commons-codec-1.2.jar;D:\java\apache-maven-3.3.9\repository\net\sourceforge\nekohtml\nekohtml\1.9.7\nekohtml-1.9.7.jar;D:\java\apache-maven-3.3.9\repository\xerces\xercesImpl\2.8.1\xercesImpl-2.8.1.jar;D:\java\apache-maven-3.3.9\repository\cn\apiclub\tool\simplecaptcha\1.2.2\simplecaptcha-1.2.2.jar;D:\java\apache-maven-3.3.9\repository\org\apache\shiro\shiro-ehcache\1.2.4\shiro-ehcache-1.2.4.jar;D:\java\apache-maven-3.3.9\repository\org\apache\shiro\shiro-core\1.2.4\shiro-core-1.2.4.jar;D:\java\apache-maven-3.3.9\repository\commons-beanutils\commons-beanutils\1.8.3\commons-beanutils-1.8.3.jar;D:\java\apache-maven-3.3.9\repository\mysql\mysql-connector-java\5.1.38\mysql-connector-java-5.1.38.jar;D:\java\apache-maven-3.3.9\repository\commons-dbutils\commons-dbutils\1.6\commons-dbutils-1.6.jar;D:\java\apache-maven-3.3.9\repository\javassist\javassist\3.12.1.GA\javassist-3.12.1.GA.jar;D:\java\apache-maven-3.3.9\repository\org\postgresql\postgresql\9.4-1201-jdbc41\postgresql-9.4-1201-jdbc41.jar;D:\java\apache-maven-3.3.9\repository\jstl\jstl\1.2\jstl-1.2.jar;D:\java\apache-maven-3.3.9\repository\org\slf4j\slf4j-api\1.7.13\slf4j-api-1.7.13.jar;D:\java\apache-maven-3.3.9\repository\com\ibeetl\beetl\2.2.14\beetl-2.2.14.jar;D:\java\apache-maven-3.3.9\repository\org\antlr\antlr4-annotations\4.3\antlr4-annotations-4.3.jar;D:\java\apache-maven-3.3.9\repository\org\antlr\antlr4-runtime\4.3\antlr4-runtime-4.3.jar;D:\java\apache-maven-3.3.9\repository\org\abego\treelayout\org.abego.treelayout.core\1.0.1\org.abego.treelayout.core-1.0.1.jar;D:\java\apache-maven-3.3.9\repository\org\freemarker\freemarker\2.3.20\freemarker-2.3.20.jar;D:\java\apache-maven-3.3.9\repository\org\nutz\nutz-plugins-views\1.r.57\nutz-plugins-views-1.r.57.jar;D:\java\apache-maven-3.3.9\repository\org\thymeleaf\thymeleaf\3.0.0.RELEASE\thymeleaf-3.0.0.RELEASE.jar;D:\java\apache-maven-3.3.9\repository\ognl\ognl\3.1.3\ognl-3.1.3.jar;D:\java\apache-maven-3.3.9\repository\org\attoparser\attoparser\2.0.0.RELEASE\attoparser-2.0.0.RELEASE.jar;D:\java\apache-maven-3.3.9\repository\org\unbescape\unbescape\1.1.3.RELEASE\unbescape-1.1.3.RELEASE.jar;D:\java\apache-maven-3.3.9\repository\org\apache\shiro\shiro-web\1.2.4\shiro-web-1.2.4.jar;D:\java\apache-maven-3.3.9\repository\org\pegdown\pegdown\1.5.0\pegdown-1.5.0.jar;D:\java\apache-maven-3.3.9\repository\org\parboiled\parboiled-java\1.1.7\parboiled-java-1.1.7.jar;D:\java\apache-maven-3.3.9\repository\org\parboiled\parboiled-core\1.1.7\parboiled-core-1.1.7.jar;D:\java\apache-maven-3.3.9\repository\org\ow2\asm\asm\5.0.3\asm-5.0.3.jar;D:\java\apache-maven-3.3.9\repository\org\ow2\asm\asm-tree\5.0.3\asm-tree-5.0.3.jar;D:\java\apache-maven-3.3.9\repository\org\ow2\asm\asm-analysis\5.0.3\asm-analysis-5.0.3.jar;D:\java\apache-maven-3.3.9\repository\org\ow2\asm\asm-util\5.0.3\asm-util-5.0.3.jar;D:\java\apache-maven-3.3.9\repository\com\rometools\rome\1.5.1\rome-1.5.1.jar;D:\java\apache-maven-3.3.9\repository\com\rometools\rome-utils\1.5.1\rome-utils-1.5.1.jar;D:\java\apache-maven-3.3.9\repository\org\jdom\jdom\2.0.2\jdom-2.0.2.jar;D:\java\apache-maven-3.3.9\repository\com\google\code\sitemapgen4j\1.0.1\sitemapgen4j-1.0.1.jar;D:\java\apache-maven-3.3.9\repository\IKAnalyzer\IKAnalyzer\2012FF_hf1\IKAnalyzer-2012FF_hf1.jar;D:\java\apache-maven-3.3.9\repository\org\apache\lucene\lucene-analyzers-common\4.9.1\lucene-analyzers-common-4.9.1.jar;D:\java\apache-maven-3.3.9\repository\org\apache\lucene\lucene-core\4.9.1\lucene-core-4.9.1.jar;D:\java\apache-maven-3.3.9\repository\org\apache\lucene\lucene-queryparser\4.9.1\lucene-queryparser-4.9.1.jar;D:\java\apache-maven-3.3.9\repository\org\apache\lucene\lucene-sandbox\4.9.1\lucene-sandbox-4.9.1.jar;D:\java\apache-maven-3.3.9\repository\cn\jpush\api\jpush-client\3.2.8\jpush-client-3.2.8.jar;D:\java\apache-maven-3.3.9\repository\com\google\code\gson\gson\2.3\gson-2.3.jar;D:\java\apache-maven-3.3.9\repository\org\jsoup\jsoup\1.8.3\jsoup-1.8.3.jar;D:\java\apache-maven-3.3.9\repository\com\alibaba\druid\1.0.23\druid-1.0.23.jar;D:\java\apache-maven-3.3.9\repository\org\nutz\nutz-qrcode\1.b.53\nutz-qrcode-1.b.53.jar;D:\java\apache-maven-3.3.9\repository\com\google\zxing\core\3.2.0\core-3.2.0.jar;D:\java\apache-maven-3.3.9\repository\com\google\zxing\javase\3.2.0\javase-3.2.0.jar;D:\java\apache-maven-3.3.9\repository\com\alibaba\fastjson\1.2.7\fastjson-1.2.7.jar;D:\java\apache-maven-3.3.9\repository\commons-lang\commons-lang\2.6\commons-lang-2.6.jar;D:\java\apache-maven-3.3.9\repository\org\apache\logging\log4j\log4j-core\2.5\log4j-core-2.5.jar;D:\java\apache-maven-3.3.9\repository\org\apache\logging\log4j\log4j-api\2.5\log4j-api-2.5.jar;D:\java\apache-maven-3.3.9\repository\org\apache\logging\log4j\log4j-slf4j-impl\2.5\log4j-slf4j-impl-2.5.jar;D:\java\apache-maven-3.3.9\repository\org\apache\logging\log4j\log4j-1.2-api\2.5\log4j-1.2-api-2.5.jar;D:\java\apache-maven-3.3.9\repository\org\apache\commons\commons-compress\1.10\commons-compress-1.10.jar;D:\java\apache-maven-3.3.9\repository\com\h2database\h2\1.4.190\h2-1.4.190.jar;D:\java\apache-maven-3.3.9\repository\com\googlecode\json-simple\json-simple\1.1.1\json-simple-1.1.1.jar;D:\java\apache-maven-3.3.9\repository\dom4j\dom4j\1.6.1\dom4j-1.6.1.jar;D:\java\apache-maven-3.3.9\repository\xml-apis\xml-apis\1.0.b2\xml-apis-1.0.b2.jar;D:\java\apache-maven-3.3.9\repository\org\nutz\nutzwx\1.r.57\nutzwx-1.r.57.jar;D:\java\apache-maven-3.3.9\repository\org\nutz\nutz-mipush-sdk\3.0.MOD\nutz-mipush-sdk-3.0.MOD.jar;D:\java\apache-maven-3.3.9\repository\log4j\log4j\1.2.17\log4j-1.2.17.jar;D:\java\apache-maven-3.3.9\repository\org\nutz\nutz-web\1.r.57\nutz-web-1.r.57.jar;D:\java\apache-maven-3.3.9\repository\org\eclipse\jetty\jetty-servlets\9.2.17.v20160517\jetty-servlets-9.2.17.v20160517.jar;D:\java\apache-maven-3.3.9\repository\org\eclipse\jetty\jetty-continuation\9.2.17.v20160517\jetty-continuation-9.2.17.v20160517.jar;D:\java\apache-maven-3.3.9\repository\org\eclipse\jetty\jetty-http\9.2.17.v20160517\jetty-http-9.2.17.v20160517.jar;D:\java\apache-maven-3.3.9\repository\org\eclipse\jetty\jetty-util\9.2.17.v20160517\jetty-util-9.2.17.v20160517.jar;D:\java\apache-maven-3.3.9\repository\org\eclipse\jetty\jetty-io\9.2.17.v20160517\jetty-io-9.2.17.v20160517.jar;D:\java\apache-maven-3.3.9\repository\org\eclipse\jetty\websocket\websocket-server\9.2.17.v20160517\websocket-server-9.2.17.v20160517.jar;D:\java\apache-maven-3.3.9\repository\org\eclipse\jetty\websocket\websocket-common\9.2.17.v20160517\websocket-common-9.2.17.v20160517.jar;D:\java\apache-maven-3.3.9\repository\org\eclipse\jetty\websocket\websocket-api\9.2.17.v20160517\websocket-api-9.2.17.v20160517.jar;D:\java\apache-maven-3.3.9\repository\org\eclipse\jetty\websocket\websocket-servlet\9.2.17.v20160517\websocket-servlet-9.2.17.v20160517.jar;D:\java\apache-maven-3.3.9\repository\org\eclipse\jetty\jetty-servlet\9.2.17.v20160517\jetty-servlet-9.2.17.v20160517.jar;D:\java\apache-maven-3.3.9\repository\org\eclipse\jetty\jetty-security\9.2.17.v20160517\jetty-security-9.2.17.v20160517.jar;D:\java\apache-maven-3.3.9\repository\org\eclipse\jetty\jetty-server\9.2.17.v20160517\jetty-server-9.2.17.v20160517.jar;D:\java\apache-maven-3.3.9\repository\org\eclipse\jetty\websocket\websocket-client\9.2.17.v20160517\websocket-client-9.2.17.v20160517.jar;D:\java\apache-maven-3.3.9\repository\javax\websocket\javax.websocket-api\1.1\javax.websocket-api-1.1.jar;D:\java\apache-maven-3.3.9\repository\org\eclipse\jetty\websocket\javax-websocket-server-impl\9.2.17.v20160517\javax-websocket-server-impl-9.2.17.v20160517.jar;D:\java\apache-maven-3.3.9\repository\org\eclipse\jetty\jetty-annotations\9.2.17.v20160517\jetty-annotations-9.2.17.v20160517.jar;D:\java\apache-maven-3.3.9\repository\org\eclipse\jetty\jetty-plus\9.2.17.v20160517\jetty-plus-9.2.17.v20160517.jar;D:\java\apache-maven-3.3.9\repository\org\eclipse\jetty\jetty-jndi\9.2.17.v20160517\jetty-jndi-9.2.17.v20160517.jar;D:\java\apache-maven-3.3.9\repository\org\eclipse\jetty\jetty-webapp\9.2.17.v20160517\jetty-webapp-9.2.17.v20160517.jar;D:\java\apache-maven-3.3.9\repository\org\eclipse\jetty\jetty-xml\9.2.17.v20160517\jetty-xml-9.2.17.v20160517.jar;D:\java\apache-maven-3.3.9\repository\javax\annotation\javax.annotation-api\1.2\javax.annotation-api-1.2.jar;D:\java\apache-maven-3.3.9\repository\org\ow2\asm\asm-commons\5.0.1\asm-commons-5.0.1.jar;D:\java\apache-maven-3.3.9\repository\org\eclipse\jetty\websocket\javax-websocket-client-impl\9.2.17.v20160517\javax-websocket-client-impl-9.2.17.v20160517.jar;D:\java\apache-maven-3.3.9\repository\org\nutz\nutz\1.r.57.r3\nutz-1.r.57.r3.jar;D:\java\apache-maven-3.3.9\repository\org\nutz\nutz-integration-dubbo\1.r.58-SNAPSHOT\nutz-integration-dubbo-1.r.58-20160816.080109-53.jar;D:\java\apache-maven-3.3.9\repository\com\alibaba\dubbo\2.5.3\dubbo-2.5.3.jar;D:\java\apache-maven-3.3.9\repository\org\javassist\javassist\3.15.0-GA\javassist-3.15.0-GA.jar;D:\java\apache-maven-3.3.9\repository\org\jboss\netty\netty\3.2.5.Final\netty-3.2.5.Final.jar;E:\Program Files (x86)\JetBrains\IntelliJ IDEA 14.0.3\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain net.wendal.nutzbook.SelfLauncher
15:31:01.124 INFO  (Slf4jLogAdapter.java:22) canWork - Using Slf4jLogger
15:31:01.135 INFO  (WebLauncher.java:50) start - launch by 'E:\project\nutz-book-project\target\classes\web.properties'
15:31:01.154 WARN  (WebServer.java:151) run - Unknow error
java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletResponse
	at org.nutz.web.WebServer.prepare(WebServer.java:50) ~[nutz-web-1.r.57.jar:?]
	at org.nutz.web.WebServer.run(WebServer.java:92) [nutz-web-1.r.57.jar:?]
	at org.nutz.web.WebLauncher.start(WebLauncher.java:55) [nutz-web-1.r.57.jar:?]
	at org.nutz.web.WebLauncher.main(WebLauncher.java:25) [nutz-web-1.r.57.jar:?]
	at net.wendal.nutzbook.SelfLauncher.main(SelfLauncher.java:8) [classes/:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_101]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_101]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_101]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_101]
	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134) [idea_rt.jar:?]
Caused by: java.lang.ClassNotFoundException: javax.servlet.http.HttpServletResponse
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[?:1.8.0_101]
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_101]
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) ~[?:1.8.0_101]
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_101]
	... 10 more
15:31:01.160 INFO  (WebLauncher.java:61) start - Server is down!

Process finished with exit code 0

11 回复

用mvn跑

mvn compile jetty:run

来自炫酷的 NutzCN

@wendal

"D:\Program Files\Java\jdk1.8.0_101\bin\java" -Dmaven.home=D:\java\apache-maven-3.3.9 -Didea.modules.paths.file=C:\Users\Administrator.USER-20160313MB\.IntelliJIdea14\system\Maven\idea-projects-state-7ba39ceb.properties -Dclassworlds.conf=C:\Users\Administrator.USER-20160313MB\.IntelliJIdea14\system\tmp\idea-7579849488253046453-mvn.conf -Didea.launcher.port=7533 "-Didea.launcher.bin.path=E:\Program Files (x86)\JetBrains\IntelliJ IDEA 14.0.3\bin" -Dfile.encoding=UTF-8 -classpath "D:\java\apache-maven-3.3.9\boot\plexus-classworlds-2.5.2.jar;E:\Program Files (x86)\JetBrains\IntelliJ IDEA 14.0.3\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain org.codehaus.classworlds.Launcher -Didea.version=14.0.3 -s D:\java\apache-maven-3.3.9\conf\settings.xml -Dmaven.repo.local=D:\java\apache-maven-3.3.9\repository mvn compile jetty:run
-Dmaven.multiModuleProjectDirectory system property is not set. Check $M2_HOME environment variable and mvn script match.
Process finished with exit code 1

@wendal 环境变量我也设置了

你贴的是这是啥东西...

@wendal IDEA 启动 打印出来的信息

我晕,我给的是maven命令

idea -- 右侧 -- maven projects -- Plugins -- Jetty -- jetty:run

@wendal
提示错误是这样的

-Dmaven.multiModuleProjectDirectory system property is not set. Check $M2_HOME environment variable and mvn script match.[ERROR] Maven execution terminated abnormally (exit code 1)

按我说的操作步骤去点

@wendal [INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.645 s
[INFO] Finished at: 2016-08-18T18:09:21+08:00
[INFO] Final Memory: 6M/77M
[INFO] ------------------------------------------------------------------------
[ERROR] Unknown lifecycle phase "mvn". You must specify a valid lifecycle phase or a goal in the format : or :[:]:. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1] [ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/LifecyclePhaseNotFoundException
[ERROR] Maven execution terminated abnormally (exit code 1)

这是在idea中运行mvn命令?那就去掉mvn呢,仅 compile jetty:run

或者连compile都去掉

来自炫酷的 NutzCN

添加回复
请先登陆
回到顶部