Error filterStart Context [] startup failed due to previous errors

从另一机子上COPY过来一项目

 

启动时总报:

 

2011-12-29 9:15:24 org.apache.catalina.core.StandardContext start

严重: Error filterStart

2011-12-29 9:15:24 org.apache.catalina.core.StandardContext start

严重: Context [/yadragon-lios-1.1] startup failed due to previous errors

2011-12-29 9:15:25 org.apache.catalina.loader.WebappClassLoader clearReferencesJ

dbc

严重: The web application [/yadragon-lios-1.1] registered the JDBC driver [com.m

ysql.jdbc.Driver] but failed to unregister it when the web application was stopp

ed. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.

2011-12-29 9:15:25 org.apache.catalina.loader.WebappClassLoader clearReferencesT

hreads

 

 

网上找了基本上都是一些WEB.XML或STRUTS.XML配置上的问题,

 

检查也没有发现什么问题

 

在TOMCAT6里面看了下日志文件

如:

 

2011-12-29 2:28:40 org.apache.catalina.core.ApplicationContext log

信息: Initializing Spring root WebApplicationContext

2011-12-29 2:29:48 org.apache.catalina.core.StandardContext filterStart

严重: Exception starting filter struts2Filter

java.lang.OutOfMemoryError: Java heap space

at java.util.jar.Manifest$FastInputStream.<init>(Manifest.java:315)

at java.util.jar.Manifest$FastInputStream.<init>(Manifest.java:310)

at java.util.jar.Manifest.read(Manifest.java:178)

at java.util.jar.Manifest.<init>(Manifest.java:52)

at java.util.jar.JarFile.getManifestFromReference(JarFile.java:165)

at java.util.jar.JarFile.getManifest(JarFile.java:146)

at org.apache.catalina.loader.WebappClassLoader.findResourceInternal(WebappClassLoader.java:2979)

at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2753)

..........

 

 

修改了下catalina.bat的代码,在代码前添加:

set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx612m

 

 

不报错了...........

 

你可能感兴趣的:(error,heap,startup,filterStart)