myeclipse6.0下布置jsf项目错误解决

 用myeclipse6.0布置了一个jsf的项目,在启动tomcat6.0时总是报如下错误:

严重: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener java.lang.OutOfMemoryError: Java heap space 2008-6-20 15:02:11 org.apache.catalina.core.StandardContext start 严重: Error listenerStart 2008-6-20 15:02:11 org.apache.catalina.core.StandardContext start 严重: Context [/JSFTest] startup failed due to previous errors

        第一次在web.xml中加入

<listener  >

 <listener-class   > com.sun.faces.config.ConfigureListener   </listener-class   >

</listener  >

问题没有得到解决

第二次修改tomcat6虚拟内存

目录结构:tomcat->bin->catalina.bat

修改:echo Using CATALINA_BASE:  %CATALINA_BASE%                echo Using CATALINA_HOME:  %CATALINA_HOME%                echo Using CATALINA_TMPDIR: %CATALINA_TMPDIR%                ...               在以上几句话后面加入JAVA_OPTS='-server-xms256m-Xmx512m'

重启,问题解决!!

猜你喜欢

转载自blog.csdn.net/hhs57/article/details/2584830