eova在mac下运行报错

caplla 发布于 2015/09/08 17:32
阅读 545
收藏 0

@Jieven 你好,想跟你请教个问题:在mac os x上eclipse mars运行eova 1.4,tomat 6.0.44 按视频用非maven方式建立的项目,运行时报错:

严重: Exception starting filter jfinal

java.lang.RuntimeException: Can not create instance of class: com.eova.config.EovaConfig

at com.jfinal.core.JFinalFilter.createJFinalConfig(JFinalFilter.java:98)

at com.jfinal.core.JFinalFilter.init(JFinalFilter.java:47)

at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:298)

at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:119)

at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4076)

at org.apache.catalina.core.StandardContext.start(StandardContext.java:4730)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:822)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)

at org.apache.catalina.core.StandardService.start(StandardService.java:525)

at org.apache.catalina.core.StandardServer.start(StandardServer.java:759)

at org.apache.catalina.startup.Catalina.start(Catalina.java:595)

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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

Caused by: java.lang.ClassNotFoundException: com.eova.config.EovaConfig

at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)

at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:195)

at com.jfinal.core.JFinalFilter.createJFinalConfig(JFinalFilter.java:96)

... 18 more

修改EovaConfig.java内的

private boolean isLocal() {

String osName = System.getProperty("os.name");

return osName.indexOf("Mac OS X") != -1;

}

也没有效果,请问是什么原因呢?

加载中
0
Jieven
Jieven
目测 根源问题是:估计是项目没编译,可能是缺Jar
Caused by: java.lang.ClassNotFoundException: com.eova.config.EovaConfig

你可尝试手工部署项目:
纯手工用Eclipse部署,用Tomcat运行,视频为了精简都是无声的。

By Eova新手引导
返回顶部
顶部