struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <davelnew...@gmail.com>
Subject Re: java.lang.ClassNotFoundException with struts2 after introducing tiles in my application
Date Wed, 12 Oct 2011 00:10:19 GMT
IIRC the version of Tiles you're using is past what the Tiles plugin
supports:

http://mvnrepository.com/artifact/org.apache.struts/struts2-tiles-plugin/2.2.1

This is one reason why handling dependencies manually is almost always a bad
idea these days.

Dave

On Sat, Oct 8, 2011 at 12:14 PM, sbhatia <bhatia.saurabh16@gmail.com> wrote:

> Correction in the jar i was using and now i am using following jars:
> commons-beanutils-1.8.3.jar
> commons-collections-3.2.1.jar
> commons-digester3-3.0.jar
> commons-fileupload-1.2.2.jar
> commons-io-2.0.1.jar
> commons-logging-1.0.4.jar
> freemarker-2.3.8.jar
> ognl-2.6.11.jar
> struts2-core-2.0.11.jar
> struts2-dojo-plugin-2.1.6.jar
> struts2-tiles-plugin-2.1.6.jar
> tiles-api-2.2.2.jar
> tiles-core-2.2.2.jar
> tiles-jsp-2.2.2.jar
> xwork-2.0.4.jar
>
>
> SEVERE: Error configuring application listener of class
> org.apache.struts2.tiles.StrutsTilesListener
> java.lang.NoClassDefFoundError: org/apache/tiles/web/startup/TilesListener
>        at java.lang.ClassLoader.defineClass1(Native Method)
>        at java.lang.ClassLoader.defineClassCond(Unknown Source)
>        at java.lang.ClassLoader.defineClass(Unknown Source)
>        at java.security.SecureClassLoader.defineClass(Unknown Source)
>        at
>
> org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2820)
>        at
>
> org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1150)
>        at
>
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1645)
>         at
>
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1523)
>        at
>
> org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:415)
>        at
>
> org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:397)
>        at
>
> org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:118)
>        at
>
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4660)
>        at
> org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226)
>        at
> org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221)
>        at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
>        at java.util.concurrent.FutureTask.run(Unknown Source)
>        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(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.TilesListener
>         at
>
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1678)
>        at
>
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1523)
>         ... 19 more
>
> Please help with issue...
>
> --
> View this message in context:
> http://struts.1045723.n5.nabble.com/java-lang-ClassNotFoundException-with-struts2-after-introducing-tiles-in-my-application-tp4882772p4883101.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

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