我正在运行tomcat 8-RC10和(尝试)从.war部署的geoserver 2.4.3。 Geoserver不会从上面的错误开始,而catalina.out(这么长而详细,几乎没用)似乎有点麻烦:
ERROR [context.ContextLoader] - context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'geoServerLoader' defined in URL [jar:file:/home/XXX/tomcat/webapps/geoserver/WEB-INF/lib/main-2.2.4.jar!/applicationContext.xml]: Cannot resolve reference to bean 'resourceLoader' while setting constructor argument;
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'resourceLoader' defined in URL [jar:file:/home/XXX/tomcat/webapps/geoserver/WEB-INF/lib/main-2.2.4.jar!/applicationContext.xml]: initialization of bean failed;
nested exception is java.lang.IllegalArgumentException: The resource path [WEB-INF] is not valid.
感谢任何建议,我在这里很清楚。
答案 0 :(得分:0)
你的一个bean引用了一个名为'resourceloader'的bean,但是在你的应用程序上下文中没有带有该名称的bean,如消息所示:
cannot resolve reference to bean 'resourceloader
答案 1 :(得分:0)
如果其他人遇到此问题,那么geoserver目前似乎还不支持tomcat 8。我的建议是从.tar下载和解压缩tomcat7,根据http://diegobenna.blogspot.com.au/2011/01/install-tomcat-7-in-ubuntu-1010.html的说明