Can not create instance of class: config.MainConfig 求助!

java.lang.RuntimeException: Can not create instance of class: config.MainConfig

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

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

at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)

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

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

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

at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5609)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1574)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1564)

at java.util.concurrent.FutureTask.run(FutureTask.java:262)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:745)

Caused by: java.lang.ClassNotFoundException: config.MainConfig

at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1856)

at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1705)

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

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

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

... 13 more


十月 10, 2017 3:40:04 下午 org.apache.catalina.core.StandardContext startInternal

严重: One or more Filters failed to start. Full details will be found in the appropriate container log file

十月 10, 2017 3:40:04 下午 org.apache.catalina.core.StandardContext startInternal

严重: Context [/mes] startup failed due to previous errors

十月 10, 2017 3:40:04 下午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deploying web application directory D:\workspace\apache-tomcat-7.0.67\webapps\docs

十月 10, 2017 3:40:04 下午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deployment of web application directory D:\workspace\apache-tomcat-7.0.67\webapps\docs has finished in 73 ms

十月 10, 2017 3:40:04 下午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deploying web application directory D:\workspace\apache-tomcat-7.0.67\webapps\examples

十月 10, 2017 3:40:05 下午 org.apache.catalina.core.ApplicationContext log

信息: ContextListener: contextInitialized()

十月 10, 2017 3:40:05 下午 org.apache.catalina.core.ApplicationContext log

信息: SessionListener: contextInitialized()

十月 10, 2017 3:40:05 下午 org.apache.catalina.core.ApplicationContext log

信息: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@64d9013e')

十月 10, 2017 3:40:05 下午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deployment of web application directory D:\workspace\apache-tomcat-7.0.67\webapps\examples has finished in 336 ms

十月 10, 2017 3:40:05 下午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deploying web application directory D:\workspace\apache-tomcat-7.0.67\webapps\host-manager

十月 10, 2017 3:40:05 下午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deployment of web application directory D:\workspace\apache-tomcat-7.0.67\webapps\host-manager has finished in 95 ms

十月 10, 2017 3:40:05 下午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deploying web application directory D:\workspace\apache-tomcat-7.0.67\webapps\manager

十月 10, 2017 3:40:05 下午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deployment of web application directory D:\workspace\apache-tomcat-7.0.67\webapps\manager has finished in 79 ms

十月 10, 2017 3:40:05 下午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deploying web application directory D:\workspace\apache-tomcat-7.0.67\webapps\ROOT

十月 10, 2017 3:40:05 下午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deployment of web application directory D:\workspace\apache-tomcat-7.0.67\webapps\ROOT has finished in 60 ms

十月 10, 2017 3:40:05 下午 org.apache.coyote.AbstractProtocol start

信息: Starting ProtocolHandler ["http-bio-8080"]

十月 10, 2017 3:40:05 下午 org.apache.coyote.AbstractProtocol start

信息: Starting ProtocolHandler ["ajp-bio-8009"]

十月 10, 2017 3:40:05 下午 org.apache.catalina.startup.Catalina start

信息: Server startup in 2654 ms



评论区

Jfinal-lx

2017-10-10 15:59

Default output folder配置正常 这是怎么回事@JFinal

JFinal

2017-10-10 20:34

异常是一个最基本的异常:Caused by: java.lang.ClassNotFoundException: config.MainConfig

仔细看看这个类文件是不是存在, 如果存在,看看包名对不对

Jfinal-lx

2017-10-11 10:51

@JFinal 今天又莫名其妙的好了 - -

Jfinal-lx

2017-10-11 10:51

@JFinal 什么都没改。。

热门分享

扫码入社