高手们看看,linux下启动tomcat服务器过程中报错,学弟跪求解决方案
在aix上部署ServiceIntegrate这个组件时,部署成功后在启动tomcat服务器过程中时候,报ISO-8859-1: ISO Latin 1 - Western Europe字符集编码错误.
Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@16ae16ae: display name [org.springframework.context.support.ClassPathXmlApplicationContext@16ae16ae]; startup date [Thu Jun 23 18:03:27 GMT+08:00 2011]; parent: org.springframework.context.support.ClassPathXmlApplicationContext@15d115d1
Loading XML bean definitions from class path resource [default.domain.xml]
There are no work items to return.
java.io.UnsupportedEncodingException
at java.net.URLEncoder$ResettableBufferedOutputStreamWriter.<init>(URLEncoder.java:332)
at java.net.URLEncoder.encode(URLEncoder.java:230)
at com.hw.isap.workflow.JarLoader.checkURLFormat(JarLoader.java:187)
at com.hw.isap.workflow.JarLoader.convertJarListToURLFormat(JarLoader.java:163)
at com.hw.isap.workflow.JarLoader.getUrls(JarLoader.java:125)
at com.hw.isap.workflow.JarLoader.<init>(JarLoader.java:60)
at com.hw.isap.workflow.JarLoader.<init>(JarLoader.java:41)
at com.hw.isap.workflow.JarLoader$1.run(JarLoader.java:91)
at java.security.AccessController.doPrivileged(AccessController.java:192)
at com.hw.isap.workflow.JarLoader.getInstance(JarLoader.java:83)
at com.hw.isap.workflow.WorkflowInitializerImpl$1.run(WorkflowInitializerImpl.java:117)
Caused by:
java.nio.charset.IllegalCharsetNameException: ISO-8859-1: ISO Latin 1 - Western Europe
at java.nio.charset.Charset.checkName(Charset.java:326)
at java.nio.charset.Charset.lookup(Charset.java:499)
at java.nio.charset.Charset.forName(Charset.java:537)
at java.net.URLEncoder$ResettableBufferedOutputStreamWriter.<init>(URLEncoder.java:330)
... 10 more
There are no work items to return.
java.io.UnsupportedEncodingException
at java.net.URLEncoder$ResettableBufferedOutputStreamWriter.<init>(URLEncoder.java:332)
at java.net.URLEncoder.encode(URLEncoder.java:230)
at com.hw.isap.workflow.JarLoader.checkURLFormat(JarLoader.java:187)
at com.hw.isap.workflow.JarLoader.convertJarListToURLFormat(JarLoader.java:163)
at com.hw.isap.workflow.JarLoader.getUrls(JarLoader.java:125)
at com.hw.isap.workflow.JarLoader.<init>(JarLoader.java:60)
at com.hw.isap.workflow.JarLoader.<init>(JarLoader.java:41)
at com.hw.isap.workflow.JarLoader$1.run(JarLoader.java:91)
at java.security.AccessController.doPrivileged(AccessController.java:192)
at com.hw.isap.workflow.JarLoader.getInstance(JarLoader.java:83)
at com.hw.isap.workflow.WorkflowInitializerImpl$1.run(WorkflowInitializerImpl.java:117)
Caused by:
java.nio.charset.IllegalCharsetNameException: ISO-8859-1: ISO Latin 1 - Western Europe
at java.nio.charset.Charset.checkName(Charset.java:326)
at java.nio.charset.Charset.lookup(Charset.java:499)
at java.nio.charset.Charset.forName(Charset.java:537)
at java.net.URLEncoder$ResettableBufferedOutputStreamWriter.<init>(URLEncoder.java:330)
... 10 more
There are no work items to return.
java.io.UnsupportedEncodingException
at java.net.URLEncoder$ResettableBufferedOutputStreamWriter.<init>(URLEncoder.java:332)
at java.net.URLEncoder.encode(URLEncoder.java:230)
at com.hw.isap.workflow.JarLoader.checkURLFormat(JarLoader.java:187)
at com.hw.isap.workflow.JarLoader.convertJarListToURLFormat(JarLoader.java:163)
at com.hw.isap.workflow.JarLoader.getUrls(JarLoader.java:125)
at com.hw.isap.workflow.JarLoader.<init>(JarLoader.java:60)
at com.hw.isap.workflow.JarLoader.<init>(JarLoader.java:41)
at com.hw.isap.workflow.JarLoader$1.run(JarLoader.java:91)
at java.security.AccessController.doPrivileged(AccessController.java:192)
at com.hw.isap.workflow.JarLoader.getInstance(JarLoader.java:83)
at com.hw.isap.workflow.WorkflowInitializerImpl$1.run(WorkflowInitializerImpl.java:117)
Caused by:
java.nio.charset.IllegalCharsetNameException: ISO-8859-1: ISO Latin 1 - Western Europe
at java.nio.charset.Charset.checkName(Charset.java:326)
at java.nio.charset.Charset.lookup(Charset.java:499)
at java.nio.charset.Charset.forName(Charset.java:537)
at java.net.URLEncoder$ResettableBufferedOutputStreamWriter.<init>(URLEncoder.java:330)
... 10 more
There are no work items to return.
Loading XML bean definitions from class path resource [com/hw/isap/workflow/engine/cache/process.cache.conf.xml]
There are no work items to return.
java.io.UnsupportedEncodingException
at java.net.URLEncoder$ResettableBufferedOutputStreamWriter.<init>(URLEncoder.java:332)
at java.net.URLEncoder.encode(URLEncoder.java:230)
at com.hw.isap.workflow.JarLoader.checkURLFormat(JarLoader.java:187)
at com.hw.isap.workflow.JarLoader.convertJarListToURLFormat(JarLoader.java:163)
at com.hw.isap.workflow.JarLoader.getUrls(JarLoader.java:125)
at com.hw.isap.workflow.JarLoader.<init>(JarLoader.java:60)
at com.hw.isap.workflow.JarLoader.<init>(JarLoader.java:41)
at com.hw.isap.workflow.JarLoader$1.run(JarLoader.java:91)
at java.security.AccessController.doPrivileged(AccessController.java:192)
at com.hw.isap.workflow.JarLoader.getInstance(JarLoader.java:83)
at com.hw.isap.workflow.WorkflowInitializerImpl$1.run(WorkflowInitializerImpl.java:117)
Caused by:
java.nio.charset.IllegalCharsetNameException: ISO-8859-1: ISO Latin 1 - Western Europe
at java.nio.charset.Charset.checkName(Charset.java:326)
at java.nio.charset.Charset.lookup(Charset.java:499)
at java.nio.charset.Charset.forName(Charset.java:537)
at java.net.URLEncoder$ResettableBufferedOutputStreamWriter.<init>(URLEncoder.java:330)
... 10 more
Loading XML bean definitions from class path resource [com/hw/isap/workflow/engine/cache/activity.cache.conf.xml]
Loading XML bean definitions from class path resource [default.domain.ext.timer.xml]
Loading XML bean definitions from class path resource [com/hw/isap/workflow/engine/timer/timers.conf.xml]
Loading XML bean definitions from class path resource [default.domain.ext.history.xml]
Overriding bean definition for bean 'processCacheDeleteAdvice': replacing [Generic bean: class [com.hw.isap.workflow.engine.core.dao.cache.ProcessCacheDeleteAdvice]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [com/hw/isap/workflow/engine/cache/process.cache.conf.xml]] with [Generic bean: class [com.hw.isap.workflow.engine.core.dao.cache.ProcessCacheDeleteAdvice]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [default.domain.ext.history.xml]]
Loading XML bean definitions from class path resource [default.domain.ext.processDump.xml]
Loading XML bean definitions from class path resource [default.domain.ext.statistics.xml]
Loading XML bean definitions from class path resource [default.domain.ext.exception.xml]
Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext@16ae16ae]: org.springframework.beans.factory.support.DefaultListableBeanFactory@690f690f
Loading properties file from class path resource [default.domain.properties]
Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@690f690f: defining beans [controller.cache.aroundPointcutInitProcess,processCacheInitAdvice,controller.cache.aroundPointcutSaveProcess,processCacheSaveAdvice,controller.cache.aroundPointcutGetProcess,processCacheGetAdvice,controller.cache.aroundPointcutUpdateProcess,processCacheUpdateAdvice,controller.cache.aroundPointcutDeleteProcess,processCacheDeleteAdvice,controller.cache.aroundPointcutInitActivity,activityCacheInitAdvice,controller.cache.aroundPointcutSaveActivity,activityCacheSaveAdvice,controller.cache.aroundPointcutGetActivity,activityCacheGetAdvice,controller.cache.aroundPointcutUpdateActivity,activityCacheUpdateAdvice,controller.cache.aroundPointcutDeleteActivity,activityCacheDeleteAdvice,org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,cacheAccessorHolder,processFactory,processRepository,processRepositoryImpl,activityFactory,activityRepositoryImpl,activityRepository,workItemRepository,workItemFactory,workItemTimeOutCallback,timerTasksHandlerImpl,engineTimerService,engineTimerManager,timerTaskFactory,timerIntervalRuleExcutor,elapsedTimeCalculator,activityGroupTimerDeleteHandler,timerRepositoryActual,timerRepository,timerRepositoryPointcutAdvisor,timerRepositoryAdvice,historyDataRepository,historyDataRepositoryOriginal,historyStatusRepository,historyStatusRepositoryOriginal,historyProcessRepository,historyTimerRepository,historyWorkListRepository,historyActivityRepository,historyDataTransactionProxy,historyStatusTransactionProxy,baseTransactionProxy,controller.cache.aroundPointcutMoveProcess,processDumpRepository,statisticsRepository,exceptionDataQueryRepository]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@0
... initialized Struts-Spring integration successfully
Setting DefaultObjectTypeDeterminer as default ...
Jun 23, 2011 6:03:29 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-9095
Jun 23, 2011 6:03:29 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:9096
Jun 23, 2011 6:03:29 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=1/16 config=null
Jun 23, 2011 6:03:29 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Jun 23, 2011 6:03:29 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 15763 ms
[解决办法]
你们代码问题
tomcat启动会作一些初始化工作,代码有问题会报错,实际上tomcat已经启动了。
[解决办法]
我的建议,先停掉原来的tomcat service,再重启comcat