[opencms-dev] Problem with beanutils after upgrading 7.0.5 -> 7.5.0
Stephan Hartmann
hartmann at metamesh.de
Thu Jun 25 20:26:09 CEST 2009
Hi Roman,
it seems that you have two versions of beanutils in your classpath.
org.apache.commons.beanutils.PropertyUtilsBean.getReadMethod
is loaded from commons-beanutils-1.7.0.jar
while
org.apache.commons.beanutils.MethodUtils.getAccessibleMethod
is loaded from commons-beanutils-1.8.0.jar
Just get rid of version 1.7.0 and restart your tomcat.
I never did an update so far but i assume that the update wizard would
remove the old versions of libraries that have been updated since 7.0.5
(and there are more than one).
Are you sure that your tomcat user had write permission on the whole
webapp during the update process?
Regards,
Stephan
Roman Uhlig schrieb:
> Hi,
> after upgrading five of our OpenCms-Servers from 7.0.5 to 7.5.0, three of
> them throw the following exception when entering certain modules (e.g. flex
> cache) of the admin area. There is no particular difference between them,
> all servers run on GenToo Linux with Sun JDK 6, Tomcat 6 and PostgreSQL 8.
>
> We also had this issue with one of our OpenCms test servers running on
> Windows XP with the same config as above.
>
> We already played around with the commons-beanutils-1.x jar files, but no
> success.
>
> Any ideas on this would be very appreciated.
>
> Thanks in advance,
> Roman
>
>
> thrown Exception:
>
> Jun 25, 2009 1:50:35 PM org.apache.catalina.core.ApplicationDispatcher
> invoke
> SEVERE: Servlet.service() for servlet jsp threw exception
> java.lang.NoSuchMethodError:
> org.apache.commons.beanutils.MethodUtils.getAccessibleMethod(Ljava/lang/Class;Ljava/lang/reflect/Method;)Ljava/lang/reflect/Method;
> at
> org.apache.commons.beanutils.PropertyUtilsBean.getReadMethod(PropertyUtilsBean.java:1247)
> at
> org.apache.commons.beanutils.PropertyUtilsBean.isReadable(PropertyUtilsBean.java:1426)
> at
> org.opencms.workplace.CmsWidgetDialogParameter.<init>(CmsWidgetDialogParameter.java:298)
> at
> org.opencms.workplace.CmsWidgetDialogParameter.<init>(CmsWidgetDialogParameter.java:247)
> at
> org.opencms.workplace.CmsWidgetDialogParameter.<init>(CmsWidgetDialogParameter.java:209)
> at
> org.opencms.workplace.tools.cache.CmsImageCacheClearDialog.defineWidgets(CmsImageCacheClearDialog.java:179)
> at
> org.opencms.workplace.CmsWidgetDialog.initWorkplaceRequestValues(CmsWidgetDialog.java:1510)
> at
> org.opencms.workplace.CmsWorkplace.initWorkplaceMembers(CmsWorkplace.java:1955)
> at
> org.opencms.workplace.tools.cache.CmsImageCacheClearDialog.initWorkplaceMembers(CmsImageCacheClearDialog.java:208)
> at org.opencms.workplace.CmsWorkplace.<init>(CmsWorkplace.java:259)
> at org.opencms.workplace.tools.CmsToolDialog.<init>(CmsToolDialog.java:94)
> at org.opencms.workplace.CmsDialog.<init>(CmsDialog.java:268)
> at org.opencms.workplace.CmsWidgetDialog.<init>(CmsWidgetDialog.java:154)
> at
> org.opencms.workplace.tools.cache.CmsImageCacheClearDialog.<init>(CmsImageCacheClearDialog.java:76)
> at
> org.opencms.workplace.tools.cache.CmsImageCacheClearDialog.<init>(CmsImageCacheClearDialog.java:89)
> at
> org.apache.jsp.WEB_002dINF.jsp.offline.system.workplace.admin.cache.images_005fflush_jsp._jspService(images_005fflush_jsp.java:57)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
> at
> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
> at
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
> at
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
> at
> org.opencms.flex.CmsFlexRequestDispatcher.forward(CmsFlexRequestDispatcher.java:117)
> at org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:509)
> at
> org.opencms.loader.CmsResourceManager.loadResource(CmsResourceManager.java:964)
> at org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1524)
> at org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:152)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
> at
> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
> at
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
> at
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
> at
> org.opencms.flex.CmsFlexRequestDispatcher.forward(CmsFlexRequestDispatcher.java:117)
> at org.opencms.util.CmsRequestUtil.forwardRequest(CmsRequestUtil.java:461)
> at
> org.opencms.workplace.tools.CmsToolManager.jspForwardPage(CmsToolManager.java:482)
> at
> org.opencms.workplace.administration.CmsAdminDialog.displayDialog(CmsAdminDialog.java:100)
> at
> org.apache.jsp.WEB_002dINF.jsp.offline.system.workplace.views.admin.admin_002dmain_jsp._jspService(admin_002dmain_jsp.java:57)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
> at
> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
> at
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
> at
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
> at org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:509)
> at
> org.opencms.loader.CmsResourceManager.loadResource(CmsResourceManager.java:964)
> at org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1524)
> at org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:152)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> at java.lang.Thread.run(Unknown Source)
>
>
More information about the opencms-dev
mailing list