[
https://issues.apache.org/jira/browse/TILES-591?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16147148#comment-16147148
]
Nicolas Le Bas commented on TILES-591:
--------------------------------------
I did some investigation:
# commons-collections in only needed for velocity, tiles itself does not use it
directly.
# I did the following in tiles-test/pom.xml:
{code:xml}
<dependency>
<groupId>org.apache.tiles</groupId>
<artifactId>tiles-extras</artifactId>
<version>${project.version}</version>
<exclusions>
<exclusion>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-collections4</artifactId>
<version>4.1</version>
</dependency>
{code}
got the following stacktrace:
{code:none}
java.lang.NoClassDefFoundError:
org/apache/commons/collections/ExtendedProperties
at
org.apache.velocity.runtime.RuntimeInstance.<init>(RuntimeInstance.java:175)
at org.apache.velocity.app.VelocityEngine.<init>(VelocityEngine.java:60)
at
org.apache.velocity.tools.view.VelocityView.init(VelocityView.java:294)
at
org.apache.velocity.tools.view.VelocityView.<init>(VelocityView.java:213)
at
org.apache.tiles.request.velocity.render.VelocityRendererBuilder.build(VelocityRendererBuilder.java:91)
at
org.apache.tiles.extras.complete.CompleteAutoloadTilesContainerFactory.registerAttributeRenderers(CompleteAutoloadTilesContainerFactory.java:153)
at
org.apache.tiles.test.factory.TestTilesContainerFactory.registerAttributeRenderers(TestTilesContainerFactory.java:49)
at
org.apache.tiles.factory.BasicTilesContainerFactory.createRendererFactory(BasicTilesContainerFactory.java:270)
at
org.apache.tiles.factory.BasicTilesContainerFactory.createContainer(BasicTilesContainerFactory.java:93)
at
org.apache.tiles.startup.AbstractTilesInitializer.createContainer(AbstractTilesInitializer.java:114)
at
org.apache.tiles.startup.AbstractTilesInitializer.initialize(AbstractTilesInitializer.java:64)
at
org.apache.tiles.extras.module.ModularTilesInitializer.initialize(ModularTilesInitializer.java:65)
at
org.apache.tiles.web.startup.AbstractTilesListener.contextInitialized(AbstractTilesListener.java:53)
at
org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:634)
at
org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:228)
at
org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1132)
at
org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:577)
at
org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:491)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
at
org.eclipse.jetty.server.handler.HandlerCollection$1.run(HandlerCollection.java:200)
at
org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:450)
at java.lang.Thread.run(Thread.java:745)
{code}
> Tiles-extras 3.0.x doesn't work with Commons Collections version 4
> ------------------------------------------------------------------
>
> Key: TILES-591
> URL: https://issues.apache.org/jira/browse/TILES-591
> Project: Tiles
> Issue Type: Dependency
> Components: tiles-extras
> Affects Versions: 3.0.7
> Environment: We have to upgrade our Apache Commons Collections to
> version 4. Now, we have a problem. Tiles-extras 3.0.x doesn't work with
> Commons Collections. Is there going to be a new version of Tiles-extras which
> will work with Commons Collections 4, and not depend on Commons Collections
> 3.2?
> Reporter: Raghu Neelagiri
>
> We have to upgrade our Apache Commons Collections to version 4. Now, we have
> a problem. Tiles-extras 3.0.x doesn't work with Commons Collections. Is there
> going to be a new version of Tiles-extras which will work with Commons
> Collections 4, and not depend on Commons Collections 3.2?
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)