struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kiran Badi <ki...@poonam.org>
Subject Re: Struts 2.3.15 and Tiles 3 Plugin
Date Wed, 14 Jan 2015 19:41:46 GMT
I am not sure but I am circling with different exception with little
progress.

Let me start over, I have netbean project which has NB struts 2 plugin and
this nb plugin has 2.3.15 as base library.

I downloaded struts 2.3.15 all zip from struts 2 apache site and installed
struts 2 spring plugin. This integration(Struts 2 + Spring) works fine and
no issues so far. I understand that this downloaded package(2.3.15 all zip)
has plugins and their dependent jars bundled in the download.

Now I want to integrate tiles 3 with my project, so I add tiles 3 struts 2
plugin jar, Tiles Extra 3.0.1 jar, Tiles core 2.0.6 jar and tiles jsp 2.0.6
jars then  I add the listener to the web xml.

<listener>

<listener-class>org.apache.tiles.extras.complete.CompleteAutoloadTilesListener</listener-class>
    </listener>

But this set up starts complaining and gives me below exception,,

SEVERE: Error configuring application listener of class
org.apache.tiles.extras.complete.CompleteAutoloadTilesListener
java.lang.NoClassDefFoundError:
org/apache/tiles/web/startup/AbstractTilesListener
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
    at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2957)
    at
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1210)
    at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1690)
    at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
    at
org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:506)
    at
org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:488)
    at
org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:115)
    at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4909)
    at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5492)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
    at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)
    at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:672)
    at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:547)
    at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1668)
    at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at
org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301)
    at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
    at
com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
    at
org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1480)
    at
org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:882)
    at
org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:368)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    at
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    at
org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
    at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
    at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:612)
    at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
    at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
    at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
    at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
    at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
    at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
    at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
    at
org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2466)
    at
org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2455)
    at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException:
org.apache.tiles.web.startup.AbstractTilesListener
    at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)
    at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
    ... 54 more

On further investigation, I can see that
org.apache.tiles.web.startup.AbstractTilesListener is not present tiles
core 2.0.6 jar.

Now I do not understand do strut 2.3.15 has all correct dependencies
bundled for download or they are is some mismatch.Is this tiles core 2.0.6
correct jar or I need to add tiles core 3.0.1 from tiles package.

I checked maven dependencies and I think I am not doing any thing wrong.

Any other thoughts ?

Ken, I followed the link direction at least thrice but still same issue .






On Wed, Jan 14, 2015 at 1:15 PM, Ken McWilliams <ken.mcwilliams@gmail.com>
wrote:

> The steps for integration from scratch is here(useful to understand what
> the plugin is doing exactly):
>
> http://stackoverflow.com/questions/13337938/how-to-integrate-struts-2-with-tiles-3
> The steps assume maven.
> Of further use regarding tiles3 integration this may also be useful:
>
> http://stackoverflow.com/questions/16116142/how-to-integrate-struts-conventions-with-tiles-such-that-the-benefit-of-conventi
>
>
> On Wed, Jan 14, 2015 at 10:23 AM, Kiran Badi <kiran@poonam.org> wrote:
>
> > thanks Chris, Makes Sense.
> >
> > On Wed, Jan 14, 2015 at 5:43 AM, Christoph Nenning <
> > Christoph.Nenning@lex-com.net> wrote:
> >
> > > > Hi Lukasz
> > > >
> > > > I downloaded complete struts 2.3.15 package which contains all jars
> and
> > > > have put everything under app /web inf lib folder. Then I removed
> tiles
> > > 2
> > > > plugin jar. Is this not suppose to work
> > > >
> > > > But I do believe more of version mismatch but not sure which jar let
> me
> > > > check again
> > > >
> > >
> > >
> > > In such cases I setup a small maven project just to download the jars
> and
> > > copy them to my real project.
> > >
> > >
> > > Regards,
> > > Christoph
> > >
> > > This Email was scanned by Sophos Anti Virus
> > >
> >
>

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