We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
使用IDEA13,用jfinal.com 官网下载的jfinal_demo_for_mavan.zip项目直接导入IDEA无法启动,启动信息打印 starting complete. 但是是没有加载到web.xml文件的。 有谁遇到过,帮忙解决下,需要更改什么配置之类的么?
自己在IDEA重新构建新的maven项目也是一样的结果。启动信息如下,访问是404,config里面的配置都没有初始化。
启动信息正常打印: @jfinal
/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/bin/java -Didea.launcher.port=7537 "-Didea.launcher.bin.path=/Applications/IntelliJ IDEA 13.app/bin" -Dfile.encoding=UTF-8 -classpath "/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/lib/javafx-doclet.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre/lib/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre/lib/htmlconverter.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre/lib/javaws.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre/lib/jce.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre/lib/jfr.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre/lib/jfxrt.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre/lib/jsse.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre/lib/management-agent.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre/lib/plugin.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre/lib/resources.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre/lib/rt.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre/lib/ext/dnsns.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre/lib/ext/localedata.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre/lib/ext/sunec.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre/lib/ext/sunjce_provider.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre/lib/ext/sunpkcs11.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre/lib/ext/zipfs.jar:/Users/xxx/Documents/Workspace/IDEA/jfinal_demo_for_maven/target/classes:/Users/xxx/Documents/Environment/maven/repos/com/jfinal/jfinal/1.6/jfinal-1.6.jar:/Users/xxx/Documents/Environment/maven/repos/c3p0/c3p0/0.9.1.2/c3p0-0.9.1.2.jar:/Users/xxx/Documents/Environment/maven/repos/org/freemarker/freemarker/2.3.20/freemarker-2.3.20.jar:/Users/xxx/Documents/Environment/maven/repos/com/jfinal/jetty-server/8.1.8/jetty-server-8.1.8.jar:/Users/xxx/Documents/Environment/maven/repos/org/eclipse/jetty/jetty-xml/8.1.8.v20121106/jetty-xml-8.1.8.v20121106.jar:/Users/xxx/Documents/Environment/maven/repos/org/eclipse/jetty/jetty-util/8.1.8.v20121106/jetty-util-8.1.8.v20121106.jar:/Users/xxx/Documents/Environment/maven/repos/org/eclipse/jetty/jetty-servlet/8.1.8.v20121106/jetty-servlet-8.1.8.v20121106.jar:/Users/xxx/Documents/Environment/maven/repos/org/eclipse/jetty/jetty-security/8.1.8.v20121106/jetty-security-8.1.8.v20121106.jar:/Users/xxx/Documents/Environment/maven/repos/org/eclipse/jetty/jetty-server/8.1.8.v20121106/jetty-server-8.1.8.v20121106.jar:/Users/xxx/Documents/Environment/maven/repos/org/eclipse/jetty/orbit/javax.servlet/3.0.0.v201112011016/javax.servlet-3.0.0.v201112011016.jar:/Users/xxx/Documents/Environment/maven/repos/org/eclipse/jetty/jetty-continuation/8.1.8.v20121106/jetty-continuation-8.1.8.v20121106.jar:/Users/xxx/Documents/Environment/maven/repos/org/eclipse/jetty/jetty-http/8.1.8.v20121106/jetty-http-8.1.8.v20121106.jar:/Users/xxx/Documents/Environment/maven/repos/org/eclipse/jetty/jetty-io/8.1.8.v20121106/jetty-io-8.1.8.v20121106.jar:/Users/xxx/Documents/Environment/maven/repos/log4j/log4j/1.2.16/log4j-1.2.16.jar:/Users/xxx/Documents/Environment/maven/repos/mysql/mysql-connector-java/5.1.20/mysql-connector-java-5.1.20.jar:/Users/xxx/Documents/Environment/maven/repos/com/jfinal/cos/26Dec2008/cos-26Dec2008.jar:/Applications/IntelliJ IDEA 13.app/lib/idea_rt.jar" com.intellij.rt.execution.application.AppMain com.demo.common.DemoConfig //我在DemoConfig里面有System.out都没有打印出来。 Starting JFinal 1.6 Starting scanner at interval of 5 seconds. Starting web server on port: 8080 Starting Complete. Welcome To The JFinal World :)
The text was updated successfully, but these errors were encountered:
问题已经解决,经过对ServerFactory进行调试,发现,是找不到src/main/webapp。原因是由于IDEA中项目等同于Module,而Project 是WorkSpase目录,所以使用IDEA的童鞋。需要在JFinal启动那一行这样写:
// IDEA中建议最后一个参数设置为0 // IDEA中手动make,再Scan效率很低,占用内存,还不如直接点击一下Run那个面板的ReRun按钮来得快啊。 JFinal.start("Module(当前的module名称)/src/main/webapp", 8090, "/", 0);
另外给 @jfinal 一个建议,希望下个版本可以验证一下src/main/webapp,传入的这个目录是否有效。 或者采用new WebAppContext("src/main/webapp", contextPath); 来创建context,如果找不到至少会抛出空异常,找不到目录。
解决了,关闭这个issues了,希望可以帮到使用IDEA的小伙伴们。
Sorry, something went wrong.
遇到相同的问题,楼主的方式完美解决
No branches or pull requests
使用IDEA13,用jfinal.com 官网下载的jfinal_demo_for_mavan.zip项目直接导入IDEA无法启动,启动信息打印 starting complete. 但是是没有加载到web.xml文件的。
有谁遇到过,帮忙解决下,需要更改什么配置之类的么?
自己在IDEA重新构建新的maven项目也是一样的结果。启动信息如下,访问是404,config里面的配置都没有初始化。
启动信息正常打印:
@jfinal
The text was updated successfully, but these errors were encountered: