struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Nenning <Christoph.Nenn...@lex-com.net>
Subject Re: 2.3.28.1 to 2.5.1 - java.lang.NoSuchMethodError: ognl.SimpleNode.isOperation
Date Thu, 30 Jun 2016 06:34:41 GMT
> > Hello,
> >
> > Upgrade 2.3.28.1 to 2.5.1.
> >
> > Tried to start tomcat7.0.70, and got the following msg. Can someone 
> > let me know which jar(s) are missing/wrong version please?
> >
> >
> > SEVERE: Exception starting filter struts2:
> > java.lang.NoSuchMethodError: 
> > ognl.SimpleNode.isOperation(Lognl/OgnlContext;)Z
> >     at 
> > com.opensymphony.xwork2.ognl.OgnlUtil.isArithmeticExpression
> (OgnlUtil.java:322)
> >     at 
com.opensymphony.xwork2.ognl.OgnlUtil.access$100(OgnlUtil.java:49)
> >     at 
com.opensymphony.xwork2.ognl.OgnlUtil$1.execute(OgnlUtil.java:292)
> >     at 
com.opensymphony.xwork2.ognl.OgnlUtil$1.execute(OgnlUtil.java:287)
> >     at 
> > 
com.opensymphony.xwork2.ognl.OgnlUtil.compileAndExecute(OgnlUtil.java:382)
> >     at 
com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:287)
> >     at 
> > 
com.opensymphony.xwork2.ognl.OgnlUtil.internalSetProperty(OgnlUtil.java:610)
> >     at 
> > com.opensymphony.xwork2.ognl.OgnlUtil.setProperties(OgnlUtil.java:171)
> >     at 
> > com.opensymphony.xwork2.ognl.OgnlUtil.setProperties(OgnlUtil.java:198)
> >     at 
> > com.opensymphony.xwork2.ognl.OgnlUtil.setProperties(OgnlUtil.java:185)
> >     at 
> > com.opensymphony.xwork2.ognl.OgnlReflectionProvider.setProperties
> (OgnlReflectionProvider.java:58)
> >     at 
> > 
> 
com.opensymphony.xwork2.factory.DefaultInterceptorFactory.buildInterceptor
> (DefaultInterceptorFactory.java:43)
> >     at 
> > com.opensymphony.xwork2.ObjectFactory.buildInterceptor
> (ObjectFactory.java:207)
> >     at 
> > 
> 
com.opensymphony.xwork2.config.providers.InterceptorBuilder.constructInterceptorReference
> (InterceptorBuilder.java:71)
> >     at 
> > 
> 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.lookupInterceptorReference
> (XmlConfigurationProvider.java:1137)
> >     at 
> > 
> 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptorStack
> (XmlConfigurationProvider.java:969)
> >     at 
> > 
> 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptorStacks
> (XmlConfigurationProvider.java:982)
> >     at 
> > 
> 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptors
> (XmlConfigurationProvider.java:1005)
> >     at 
> > 
> 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage
> (XmlConfigurationProvider.java:536)
> >     at 
> > 
> 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages
> (XmlConfigurationProvider.java:311)
> >
> >     at 
> > 
> org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages
> (StrutsXmlConfigurationProvider.java:108)
> >     at 
> > 
> com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer
> (DefaultConfiguration.java:187)
> >     at 
> > 
> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration
> (ConfigurationManager.java:67)
> >
> >     at 
> > 
org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:897)
> >     at 
> > org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration
> (Dispatcher.java:437)
> >     at 
org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:478)
> >     at 
> > org.apache.struts2.dispatcher.InitOperations.initDispatcher
> (InitOperations.java:75)
> >     at 
> > 
> org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter.init
> (StrutsPrepareAndExecuteFilter.java:63)
> >
> >     at 
> > org.apache.catalina.core.ApplicationFilterConfig.initFilter
> (ApplicationFilterConfig.java:279)
> >     at 
> > org.apache.catalina.core.ApplicationFilterConfig.getFilter
> (ApplicationFilterConfig.java:260)
> >     at 
> > org.apache.catalina.core.ApplicationFilterConfig.<init>
> (ApplicationFilterConfig.java:105)
> >     at 
> > org.apache.catalina.core.StandardContext.filterStart
> (StandardContext.java:4939)
> >     at 
> > org.apache.catalina.core.StandardContext.startInternal
> (StandardContext.java:5633)
> >     at 
> > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
> >     at 
> > org.apache.catalina.core.ContainerBase.addChildInternal
> (ContainerBase.java:899)
> >     at 
> > 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
> >     at 
> > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
> >     at 
> > 
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:679)
> >     at 
> > org.apache.catalina.startup.HostConfig$DeployDescriptor.run
> (HostConfig.java:1966)
> >
> >     at 
> > 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> >     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> >     at 
> > java.util.concurrent.ThreadPoolExecutor.runWorker
> (ThreadPoolExecutor.java:1142)
> >     at 
> > java.util.concurrent.ThreadPoolExecutor$Worker.run
> (ThreadPoolExecutor.java:617)
> >     at java.lang.Thread.run(Thread.java:745) 
> 
> Sorry forgot to check ognl. Found ognl-3.1.8.jar.
> 
> Used the wrong version.
> 

That is the reason why there are tools like maven or gradle that provide 
dependency management ;)


Regards,
Christoph

This Email was scanned by Sophos Anti Virus

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message