有关contextInitializerClasses的ClassNotFoundException(春季4.2)

时间:2018-10-24 06:56:02

标签: java spring tomcat servlets classnotfoundexception

我有一个扩展ApplicationContextInitializer的类,该类用于在spring开始创建其他bean之前向环境添加一些属性源。

但是,在tomcat启动时,出现此错误:

TreeWalker tree = TreeWalker.ControlViewWalker;
        AutomationElement ctrl = tree.GetParent(childElement);
          if (ctrl != null)
          {
              // Perform any action
          }
         return ctrl;

HashSet<Character> hs = new HashSet<Character>(); hs.add('s'); hs.add('t'); hs.add('a'); hs.add('c'); // some code if (hs.contains('a')) { int a = // need the index of a here from hashset } 中存在类ERROR Context initialization failed org.springframework.context.ApplicationContextException: Failed to load context initializer class [com.x.server.spring.LocalConfigPropertiesApplicationInitializer];

我正在使用Servlet 2.4版和Spring 4.2版

这是来自web.xml的相关部分

LocalConfigPropertiesApplicationInitializer

知道我缺少什么吗?

0 个答案:

没有答案