tomcat 卡死 Initializing Spring root WebApplicationContext

 validateJarFile(C:\apache-tomcat-7.0.55\webapps\developer\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: javax/servlet/Servlet.class
2014-9-20 19:07:08 org.apache.tomcat.websocket.server.WsSci onStartup
信息: JSR 356 WebSocket (Java WebSocket 1.0) support is not available when running on Java 6. To suppress this message, run Tomcat on Java 7, remove the WebSocket JARs from $CATALINA_HOME/lib or add the WebSocket JARs to the tomcat.util.scan.DefaultJarScanner.jarsToSkip property in $CATALINA_BASE/conf/catalina.properties. Note that the deprecated Tomcat 7 WebSocket API will be available. 
2014-9-20 19:07:08 org.apache.catalina.core.ApplicationContext log

信息: Initializing Spring root WebApplicationContext


吧tomcat换成7.0就可以了,不知道为啥

1.先把项目的字符编码改为unix  utf-8

2.再检查hibernate.connection.url 中连接名是否正确,有一部分要改成你自己的ip地址或者loaclhost

3.再就是日志配置问题,在MyEclipse中,在tomcat 7.0.55/bin/config 下面加了两个日志文件log4j.proporties和xxx.properties(至于为啥加这两文件,可以看

public class ServerCfgFileInfo {


private static String USER_DIR = System.getProperty("user.dir");
private static String FILE_SEPARATOR = File.separator;
private static String CFG_DIRECTORY_NAME = "config";
private static String IQOO_PROP = "xxx.properties";//xxx代表配置文件
//private static String IQOO_PROP = "developer.properties";

private static String CFG_BASE_PATH = USER_DIR + FILE_SEPARATOR + CFG_DIRECTORY_NAME + FILE_SEPARATOR;

private static String LOG4J_CFG_FILE_NAME = "log4j.properties";

private static String EHCACHE_CFG_FILE_NAME = "ehcache.xml";

)

你可能感兴趣的:(tomcat 卡死 Initializing Spring root WebApplicationContext)