免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 6526 | 回复: 0

tomcat启动报错 [复制链接]

论坛徽章:
0
发表于 2011-12-22 08:54 |显示全部楼层

公司用的tomcat6.0.26,而家里的版本是6.0.18,程序部署过来之后启动时显示如下错误信息

信息: Not binding factory to JNDI, no JNDI name configured

2011-8-21 18:56:28 org.apache.catalina.core.StandardContext start

严重: Error listenerStart

2011-8-21 18:56:28 org.apache.catalina.core.StandardContext start

严重: Context [] startup failed due to previous errors

log4j:ERROR LogMananger.repositorySelector was null likely due to error in class

 reloading, using NOPLoggerRepository.

2011-8-21 18:56:35 org.apache.coyote.http11.Http11Protocol start

信息: Starting Coyote HTTP/1.1 on http-8080

第一个问题:log4j:ERROR这里,问题原因和解决方法如下:

The reason for the error is a new listener in Tomcat 6.0.24. You can fix this error by adding this line:

org.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=false

to the "conf/catalina.properties" file in your tomcat directory.

第二个问题:Context [] startup failed due to previous errors,这里看不出具体的错误,查看tomcatlogs目录下的localhost.xxxx-xx-xx.log文件发现如下问题:

2011-8-21 18:59:38 org.apache.catalina.core.StandardContext listenerStart

严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener

java.lang.OutOfMemoryError: Java heap space

错误很明显,需要的就是增大相关jvm内存:

bin目录下的catalina.bat中增加下面内容:

set JAVA_OPTS=%JAVA_OPTS% -server -Xms512m -Xmx768m -XX:MaxNewSize=768m

 

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP