错误
严重: Error listenerStart
2008-7-20 2:17:09 org.apache.catalina.core.StandardContext start
严重: Context [/sshj] startup failed due to previous errors
写了一个测试类
public class TextUtil {
public static void main(String[] args) {
ApplicationContext context = new FileSystemXmlApplicationContext(
"src/applicationContext.xml");
context.getBean("sessionFactory");
// new ClassPathXmlApplicationContext("applicationContext.xml").getBean("sessionFactory");
}
}
没有任何错误.所有的Bean都测试了。
WEB.XML
<?xml version="1.0" encoding="UTF-8"?>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.5"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
contextConfigLocation
WEB-INF/classes/applicationContext.xml
org.springframework.web.context.ContextLoaderListene
action
org.apache.struts.action.ActionServlet
config
/WEB-INF/struts-config.xml
debug
3
detail
3
0
action
*.do
index.jsp
我以前遇到过,是因为jar包冲突,你去你的日志里面好好看看,有相关的提示!
看下tomcat的日志,应该是缺jar包之类的问题
web-app_2_5.xsd夸张啊,用2.4看看