2 qq 14996607 qq_14996607 于 2016.03.20 12:01 提问

Sturs框架配置出错问题,求大神解答 2C

Unable to locate provider class: superMos.MyconfigurationProvider - Class: org.apache.catalina.loader.WebappClassLoader
File: WebappClassLoader.java
Method: loadClass
Line: 1718 - org/apache/catalina/loader/WebappClassLoader.java:1718:-1
at org.apache.struts2.dispatcher.Dispatcher.init_CustomConfigurationProviders(Dispatcher.java:350)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:414)
at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:190)
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.(ApplicationFilterConfig.java:105)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4809)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5485)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1229)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1875)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
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:722)
Caused by: java.lang.ClassNotFoundException: superMos.MyconfigurationProvider
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1718)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1569)
at org.apache.struts2.util.ClassLoaderUtils.loadClass(ClassLoaderUtils.java:111)
at org.apache.struts2.dispatcher.Dispatcher.init_CustomConfigurationProviders(Dispatcher.java:342)
... 19 more

是什么原因???

1个回答

qq_20039385
qq_20039385   2016.03.20 17:46

Caused by: java.lang.ClassNotFoundException: superMos.MyconfigurationProvider
少jar包,去找这个类的jar包,加入到项目lib目录下。

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!