tomcat启动时报错,求解?
出来两句错误提示
1 ERROR [org.springframework.web.context.ContextLoader] - Context initialization failed
Cannot find class [com.ideal.framework.ibatis.SqlMapClientFactoryBean] for bean with name 'sqlMapClient' defined in ServletContext resource [/WEB-INF/spring/applicationContext.xml]; nested exception is java.lang.ClassNotFoundException: com.ideal.framework.ibatis.SqlMapClientFactoryBean
2 严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.ideal.framework.ibatis.SqlMapClientFactoryBean] for bean with name 'sqlMapClient' defined in ServletContext resource [/WEB-INF/spring/applicationContext.xml]; nested exception is java.lang.ClassNotFoundException: com.ideal.framework.ibatis.SqlMapClientFactoryBean
代码里没有提示有错误啊!
[解决办法]
java.lang.ClassNotFoundException: com.ideal.framework.ibatis.SqlMapClientFactoryBean
错误明显,是不是有些jar没有加入
[解决办法]
WEB-INF/spring/applicationContext.xml文件配置是不是写错了?他说没有找到sqlMapClient它。你在配置文件里搜一下sqlMapClient看看是不是路径写错了?不行就按二楼说的看看是否有jar包没有引入