Re: problems with JPA and tapestry 5.4.0

Qbyte Consulting <[email protected]>
Newsgroups gmane.comp.java.tapestry.user
Message-ID <[email protected]>
When I update to 5.4.3 and host on GlassFish the app stalls because it can’t find the Postgres driver. This is odd because I provide a jdbc4 driver. Anyway I will copy it to the glassfish modules directory and see what happens. This same build still fails on jetty:run.

A completely different problem I also dont understand.

John

Sent from my iPhone

> On 12 Nov 2017, at 21:26, Cezary Biernacki <[email protected]> wrote:
> 
> I don't use JPA so I don't have a solution, but in your stack trace most
> notable is root exception "java.lang.NoSuchMethodError". Usually such
> exception indicates that an incorrect version of a class is on the class
> path. This can happen if you have two different JARs of the same library is
> on the class path or if dependencies were not upgraded. E.g. you changed
> Tapestry version from 5.3.6 to 5.4.0 and forgot to clean your output
> directory so old versions are still included (if your build scripts are not
> clever enough to remove unused dependencies) or you forgot to upgrade all
> dependencies. So ensure that tapestry-jpa and other related libraries are
> appropriate for Tapestry 5.4.0 and each library appears only once.
> 
> Cezary
> 
> 
> On Sun, Nov 12, 2017 at 5:37 AM, Qbyte Consulting <[email protected]
>> wrote:
> 
>> I just started using Tapestry 5.4.0 on a project that uses tapestry-jpa.
>> The project worked fine with 5.3.6 tapestry but the JPA fails under 5.4.0.
>> 
>> Any ideas?
>> 
>> John
>> 
>> 
>> Info:   [ERROR] ioc.Registry Error invoking service contribution method
>> org.apache.tapestry5.jpa.JpaModule.provideObjectProviders(
>> OrderedConfiguration):
>> org.apache.tapestry5.plastic.PlasticManager.createProxy(
>> Ljava/lang/Class;Ljava/lang/Class;Lorg/apache/tapestry5/plastic/
>> PlasticClassTransformer;)Lorg/apache/tapestry5/plastic/ClassInstantiator;
>> Info:   [ERROR] ioc.Registry Operations trace:
>> Info:   [ERROR] ioc.Registry [ 1] Realizing service
>> ServletApplicationInitializer
>> Info:   [ERROR] ioc.Registry [ 2] Instantiating service
>> ServletApplicationInitializer implementation via
>> org.apache.tapestry5.services.TapestryModule.
>> buildServletApplicationInitializer(Logger,
>> List, ApplicationInitializer) (at TapestryModule.java:1396)
>> Info:   [ERROR] ioc.Registry [ 3] Constructing module class
>> org.apache.tapestry5.services.TapestryModule
>> Info:   [ERROR] ioc.Registry [ 4] Determining injection value for parameter
>> #1 (org.apache.tapestry5.ioc.services.PipelineBuilder)
>> Info:   [ERROR] ioc.Registry [ 5] Realizing service MasterObjectProvider
>> Info:   [ERROR] ioc.Registry [ 6] Instantiating service
>> MasterObjectProvider implementation via
>> org.apache.tapestry5.ioc.internal.services.MasterObjectProviderImpl(List,
>> OperationTracker) (at MasterObjectProviderImpl.java:33) via
>> org.apache.tapestry5.ioc.services.TapestryIOCModule.bind(ServiceBinder)
>> (at
>> TapestryIOCModule.java:49)
>> Info:   [ERROR] ioc.Registry [ 7] Creating plan to instantiate
>> org.apache.tapestry5.ioc.internal.services.MasterObjectProviderImpl via
>> public
>> org.apache.tapestry5.ioc.internal.services.MasterObjectProviderImpl(java.
>> util.List,org.apache.tapestry5.ioc.OperationTracker)
>> Info:   [ERROR] ioc.Registry [ 8] Determining injection value for parameter
>> #1 (java.util.List)
>> Info:   [ERROR] ioc.Registry [ 9] Collecting ordered configuration for
>> service MasterObjectProvider
>> Info:   [ERROR] ioc.Registry [10] Invoking
>> org.apache.tapestry5.jpa.JpaModule.provideObjectProviders(
>> OrderedConfiguration)
>> (at JpaModule.java:105)
>> Info:   [ERROR] TapestryIOCModule.MasterObjectProvider Construction of
>> service MasterObjectProvider failed: Error invoking service contribution
>> method
>> org.apache.tapestry5.jpa.JpaModule.provideObjectProviders(
>> OrderedConfiguration):
>> org.apache.tapestry5.plastic.PlasticManager.createProxy(
>> Ljava/lang/Class;Ljava/lang/Class;Lorg/apache/tapestry5/plastic/
>> PlasticClassTransformer;)Lorg/apache/tapestry5/plastic/ClassInstantiator;
>> org.apache.tapestry5.ioc.internal.OperationException: Error invoking
>> service contribution method
>> org.apache.tapestry5.jpa.JpaModule.provideObjectProviders(
>> OrderedConfiguration):
>> 
>> ...
> 
>> ... 147 more
>> Caused by: java.lang.NoSuchMethodError:
>> org.apache.tapestry5.plastic.PlasticManager.createProxy(
>> Ljava/lang/Class;Ljava/lang/Class;Lorg/apache/tapestry5/plastic/
>> PlasticClassTransformer;)Lorg/apache/tapestry5/plastic/ClassInstantiator;
>> at
>> org.apache.tapestry5.ioc.internal.services.PlasticProxyFactoryImpl.
>> createProxy(PlasticP
>> Severe:   WebModule[/AuditServices]Exception starting filter app
>> java.lang.InstantiationException
>> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.