首页 > 代码库 > resin启动时报错com.caucho.config.LineConfigException的解决

resin启动时报错com.caucho.config.LineConfigException的解决

resin启动时报以下错误:

[13:32:10.120] {main} WEB-INF/web.xml:42: ‘listener-class‘ is an unknown property of ‘com.caucho.config.types.InterfaceConfig‘.
[13:32:10.120] {main}
[13:32:10.120] {main} 40:
[13:32:10.120] {main} 41: <listener>
[13:32:10.120] {main} 42: <listener-class>
[13:32:10.120] {main} 43: org.springframework.web.context.ContextLoaderListener
[13:32:10.120] {main} 44: </listener-class>
[13:32:10.120] {main}

 

 

 

com.caucho.config.LineConfigException: WEB-INF/web.xml:3: `XXX‘ is not a known servlet.

 

原因是:

resin容器版本与jdk不匹配,换一个jdk环境即可

技术分享

 

resin启动时报错com.caucho.config.LineConfigException的解决