struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ravirajmishra98@gmail.com"<ravirajmishr...@gmail.com>
Subject Re: Upgrading from struts 2.3.x to struts 2.5.x
Date Wed, 18 Oct 2017 10:14:48 GMT


On 2017-10-18 13:57, Lukasz Lenart <lukaszlenart@apache.org> wrote: 
> 2017-10-18 10:05 GMT+02:00 ravirajmishra98@gmail.com
> <ravirajmishra98@gmail.com>:
> > Hello,
> >
> > I am trying to upgrade from struts 2.3.16 to struts 2.5.13 and i am facing few problems
related to tiles upgradation from tiles 2 to tiles 3
> >
> > to be specific, I have changed the jar files to tiles 3.0.7 and also upgraded the
struts-tiles plugin to version 2.5.13. But I am getting an error
> >  -------------------------------
> > SEVERE: Error configuring application listener of class org.apache.struts2.tiles.StrutsTilesListener
> > java.lang.NoClassDefFoundError: org/apache/tiles/web/startup/AbstractTilesListener
> >         at java.lang.ClassLoader.defineClass1(Native Method)
> >         at java.lang.ClassLoader.defineClass(Unknown Source)
> >         at java.security.SecureClassLoader.defineClass(Unknown Source)
> >         at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2901)
> >         at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1170)
> >         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1678)
> >         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556)
> >         at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:532)
> >         at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:514)
> >         at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:133)
> >         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4726)
> >         at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5284)
> >         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> >         at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1595)
> >         at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1585)
> >         at java.util.concurrent.FutureTask.run(Unknown Source)
> >         at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
> >         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
> >         at java.lang.Thread.run(Unknown Source)
> > Caused by: java.lang.ClassNotFoundException: org.apache.tiles.web.startup.AbstractTilesListener
> >         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1711)
> >         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556)
> >         ... 19 more
> 
> Looks like you are still using Tiles 2
> http://www.findjar.com/class/org/apache/tiles/web/startup/AbstractTilesListener.html;jsessionid=4E5C5461DCB215F832112E33F9316F35
> 
> 
> Regards
> -- 
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> I have updated to jars to version 3.0.7

Following are the list of jars i have updated.

struts2-tiles-plugin-2.5.13.jar
tiles-api-3.0.7.jar
tiles-core-3.0.7.jar
tiles-el-3.0.7.jar
tiles-jsp-3.0.7.jar
commons-beanutils-1.9.2.jar
commons-digester-2.1.jar

with this my web.xml looks like

	<servlet>
			<servlet-name>tiles</servlet-name>
			<servlet-class>org.apache.tiles.web.startup.TilesServlet</servlet-class>
			<load-on-startup>1</load-on-startup>
		</servlet>
			<context-param>
			<param-name>tiles-definitions</param-name>
			<param-value>/WEB-INF/tiles.xml</param-value>
		</context-param>
	
	<listener>
	  <listener-class>org.apache.struts2.tiles.StrutsTilesListener</listener-class>
	</listener>

Please let me know if i need to added anything else to this.

Thanks in advance


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message