Hi Ankit, if you look at the exception message and the stacktrace at then end you can see the source of the problem:
Two modules are contributing to ApplicationStatePersistenceStrategySource with the key 'entity': - HibernateModule.java:149 - JpaModule.java:133 These are both tapestry modules, and AFAIK can't be used together. Either use tapetry-jpa and provide your own persistence implementation, or use tapestry-hibernate. Check your code where you import those modules and remove the non-required one, that should fix the issue I believe. Cheers, Ben On Wed, Mar 30, 2022 at 6:11 PM Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Wed, Mar 30, 2022 at 10:14 AM Jain, Ankit <aj...@cincom.com.invalid> > wrote: > > > Hi Volker, > > > Hello! > > > > configuration.add(User.class, new > > ApplicationStateContribution(PersistenceConstants.SESSION, userCreator)); > > > > Try changing configuration.add() to configuration.override() and let us > know whether the problem goes away. > > > > We are not adding any contribution for key ‘entity’ > > > > You aren't, but I guess tapestry-jpa is. > > > > > > Please provide some information on this. > > Tried debugging RegistryImpl but could not get something useful out of > it. > > > > Regards, Ankit > > > > > > -----Original Message----- > > From: Volker Lamp <volker.l...@gmail.com> > > Sent: 30 March 2022 12:59 > > To: Tapestry development <dev@tapestry.apache.org> > > Subject: Re: Migrated project from 5.4.3 to 5.8.00, still searching for > > older jars > > > > CAUTION: This email originated from outside of Cincom's email system. Do > > not click links or open attachments unless you recognize the sender and > > know the content is safe. Thanks - If in doubt, contact the Helpdesk at > > helpd...@cincom.com or your local IT personnel. > > > > > > Hello Ankit, > > > > Tapestry 5.7.0 introduced some backward-incompatible changes. A migration > > tool is available. See the Tapestry 5.7.0 release notes ( > > https://tapestry.apache.org/release-notes-570.html). > > > > Regards, > > > > Volker > > > > > Am 30.03.2022 um 00:32 schrieb Ankit Jain <ankit.j...@aspiresys.com > > .invalid>: > > > > > > Hi, > > > > > > I have migrated my project from Tapestry v5.4.3 to v5.8.00. > > > When I run, it seems to be still searching for older jars. > > > > > > In the below exception, RegistryBuilder, IOCUtilities and HTTP.java is > > pointing to 5.8 jars. > > > > > > I am getting the following error: > > > > > > SEVERE: Exception starting filter [app] > > > java.lang.NoClassDefFoundError: > > org/apache/tapestry5/ioc/services/Coercion > > > at java.base/java.lang.Class.forName0(Native Method) > > > at java.base/java.lang.Class.forName(Class.java:467) > > > at > > org.apache.tapestry5.ioc.RegistryBuilder.add(RegistryBuilder.java:164) > > > at > > > org.apache.tapestry5.ioc.IOCUtilities.addModulesInList(IOCUtilities.java:161) > > > at > > > org.apache.tapestry5.ioc.IOCUtilities.addModulesInManifest(IOCUtilities.java:123) > > > at > > > org.apache.tapestry5.ioc.IOCUtilities.addDefaultModules(IOCUtilities.java:94) > > > at > > > org.apache.tapestry5.http.internal.TapestryAppInitializer.<init>(TapestryAppInitializer.java:102) > > > at > > org.apache.tapestry5.http.TapestryFilter.init(TapestryFilter.java:106) > > > at > > > org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:277) > > > at > > > org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:258) > > > at > > > org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:104) > > > at > > > org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4427) > > > at > > > org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5067) > > > at > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) > > > at > > > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1427) > > > at > > > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1417) > > > at > > java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) > > > at > > > org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) > > > at > > > java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145) > > > at > > > org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:943) > > > at > > > org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:839) > > > at > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) > > > at > > > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1427) > > > at > > > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1417) > > > at > > java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) > > > at > > > org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) > > > at > > > java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145) > > > at > > > org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:943) > > > at > > > org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:258) > > > at > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) > > > at > > > org.apache.catalina.core.StandardService.startInternal(StandardService.java:422) > > > at > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) > > > at > > > org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:770) > > > at > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) > > > at org.apache.catalina.startup.Catalina.start(Catalina.java:682) > > > at > > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native > > Method) > > > at > > > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) > > > at > > > java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > > > at java.base/java.lang.reflect.Method.invoke(Method.java:568) > > > at > org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:353) > > > at > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:493) > > > Caused by: java.lang.ClassNotFoundException: > > org.apache.tapestry5.ioc.services.Coercion > > > at > > > org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1275) > > > at > > > org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1104) > > > ... 41 more > > > > > > Please provide some information on how to fix this. > > > > > > Regards, Ankit > > > [Aspire Systems] > > > > > > This e-mail message and any attachments are for the sole use of the > > intended recipient(s) and may contain proprietary, confidential, trade > > secret or privileged information. Any unauthorized review, use, > disclosure > > or distribution is prohibited and may be a violation of law. If you are > not > > the intended recipient, please contact the sender by reply e-mail and > > destroy all copies of the original message. > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: dev-unsubscr...@tapestry.apache.org > > For additional commands, e-mail: dev-h...@tapestry.apache.org > > > > > > -- > Thiago >