【问题描述】
PAS6.5 build1733 应用部署在独立实例里报错:
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory]: Factory method 'webServerFactory' threw exception; nested exception is java.lang.NoClassDefFoundError: org/apache/catalina/WebResourceRoot
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:651)
... 95 common frames omitted
Caused by: java.lang.NoClassDefFoundError: org/apache/catalina/WebResourceRoot
at com.allin.AllinApplication.webServerFactory(AllinApplication.java:165)
at com.allin.AllinApplication$$EnhancerBySpringCGLIB$$59d6e6fd.CGLIB$webServerFactory$1()
【解决方案】
业务应用里缺少了catalina和tomcat-embed-core的jar包导致部署出现上述错误,添加了对应的jar后,部署没有再报上述错误了。
【原文链接】
http://doc.primeton.com/pages/viewpage.action?pageId=82157324
文章描述了一个在部署PAS6.5build1733时遇到的错误,具体是由于缺少catalina和tomcat-embed-core的jar包导致的。解决方案是添加这两个jar包到应用中,问题得到解决。
2586

被折叠的 条评论
为什么被折叠?



