tomcat服务启动几秒钟后自动停止,是什么原因啊?
我用的端口号是8899,而且环境变量都配好啦!
错误信息如下 :
2011-7-19 9:52:07 org.apache.catalina.core.StandardServer await
严重: StandardServer.await: create[8005]:
java.net.BindException: Address already in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
2011-07-19 09:52:09,156 DEBUG [org.wbase.framework.core.anyware.LogAnyWare] - SignOnFilter 正在销毁......
log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository.
log4j:ERROR Error occured while converting date.
java.lang.NullPointerException
at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:671)
DEBUG [org.wbase.framework.core.anyware.LogAnyWare] - 从配置文件中获取参数checkOnFirstTimeLogon.passwords.needcheck的String值为123456 1
log4j:ERROR Error occured while converting date.
java.lang.NullPointerException
at java.lang.System.arraycopy(Native Method)
at java.lang.AbstractStringBuilder.getChars(AbstractStringBuilder.java:328)
at java.lang.StringBuffer.getChars(StringBuffer.java:201)
at org.apache.log4j.helpers.ISO8601DateFormat.format(ISO8601DateFormat.java:130)
at java.text.DateFormat.format(DateFormat.java:316)
at org.apache.log4j.helpers.PatternParser$DatePatternConverter.convert(PatternParser.java:444)
at org.apache.log4j.helpers.PatternConverter.format(PatternConverter.java:65)
at org.apache.log4j.PatternLayout.format(PatternLayout.java:502)
at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:302)
------解决方案--------------------
看看这个:http://www.cnblogs.com/jacob80/archive/2011/03/24/1993362.html