problems with JPA and tapestry 5.4.0

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

problems with JPA and tapestry 5.4.0

Qbyte Consulting
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):
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.OperationTrackerImpl.logAndRethrow(OperationTrackerImpl.java:121)
at
org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:88)
at
org.apache.tapestry5.ioc.internal.OperationTrackerImpl.run(OperationTrackerImpl.java:47)
at
org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.run(PerThreadOperationTracker.java:76)
at
org.apache.tapestry5.ioc.internal.RegistryImpl.addToOrderedConfiguration(RegistryImpl.java:629)
at
org.apache.tapestry5.ioc.internal.RegistryImpl.getOrderedConfiguration(RegistryImpl.java:483)
at
org.apache.tapestry5.ioc.internal.ServiceResourcesImpl$2.invoke(ServiceResourcesImpl.java:110)
at
org.apache.tapestry5.ioc.internal.ServiceResourcesImpl$2.invoke(ServiceResourcesImpl.java:107)
at
org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:74)
at
org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:87)
at
org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1124)
at
org.apache.tapestry5.ioc.internal.ServiceResourcesImpl.getOrderedConfiguration(ServiceResourcesImpl.java:105)
at
org.apache.tapestry5.ioc.internal.AbstractServiceCreator.getOrderedConfiguration(AbstractServiceCreator.java:123)
at
org.apache.tapestry5.ioc.internal.AbstractServiceCreator.access$200(AbstractServiceCreator.java:35)
at
org.apache.tapestry5.ioc.internal.AbstractServiceCreator$1.findResource(AbstractServiceCreator.java:103)
at
org.apache.tapestry5.ioc.internal.util.DelegatingInjectionResources.findResource(DelegatingInjectionResources.java:38)
at
org.apache.tapestry5.ioc.internal.util.InternalUtils.calculateInjection(InternalUtils.java:231)
at
org.apache.tapestry5.ioc.internal.util.InternalUtils.access$000(InternalUtils.java:50)
at
org.apache.tapestry5.ioc.internal.util.InternalUtils$4.invoke(InternalUtils.java:289)
at
org.apache.tapestry5.ioc.internal.util.InternalUtils$4.invoke(InternalUtils.java:286)
at
org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:74)
at
org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:87)
at
org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1124)
at
org.apache.tapestry5.ioc.internal.util.InternalUtils.calculateParameters(InternalUtils.java:293)
at
org.apache.tapestry5.ioc.internal.util.InternalUtils$23.invoke(InternalUtils.java:1488)
at
org.apache.tapestry5.ioc.internal.util.InternalUtils$23.invoke(InternalUtils.java:1483)
at
org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:74)
at
org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:87)
at
org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1124)
at
org.apache.tapestry5.ioc.internal.util.InternalUtils.createConstructorConstructionPlan(InternalUtils.java:1480)
at
org.apache.tapestry5.ioc.internal.ConstructorServiceCreator.getPlan(ConstructorServiceCreator.java:52)
at
org.apache.tapestry5.ioc.internal.ConstructorServiceCreator.createObject(ConstructorServiceCreator.java:61)
at
org.apache.tapestry5.ioc.internal.OperationTrackingObjectCreator$1.invoke(OperationTrackingObjectCreator.java:45)
at
org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:74)
at
org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:87)
at
org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1124)
at
org.apache.tapestry5.ioc.internal.OperationTrackingObjectCreator.createObject(OperationTrackingObjectCreator.java:49)
at
org.apache.tapestry5.ioc.internal.SingletonServiceLifecycle.createService(SingletonServiceLifecycle.java:29)
at
org.apache.tapestry5.ioc.internal.LifecycleWrappedServiceCreator.createObject(LifecycleWrappedServiceCreator.java:46)
at
org.apache.tapestry5.ioc.internal.RecursiveServiceCreationCheckWrapper.createObject(RecursiveServiceCreationCheckWrapper.java:60)
at
org.apache.tapestry5.ioc.internal.OperationTrackingObjectCreator$1.invoke(OperationTrackingObjectCreator.java:45)
at
org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:74)
at
org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:87)
at
org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1124)
at
org.apache.tapestry5.ioc.internal.OperationTrackingObjectCreator.createObject(OperationTrackingObjectCreator.java:49)
at
org.apache.tapestry5.ioc.internal.services.JustInTimeObjectCreator.obtainObjectFromCreator(JustInTimeObjectCreator.java:66)
at
org.apache.tapestry5.ioc.internal.services.JustInTimeObjectCreator.createObject(JustInTimeObjectCreator.java:54)
at $MasterObjectProvider_a94252dfd3820.delegate(Unknown Source)
at $MasterObjectProvider_a94252dfd3820.provide(Unknown Source)
at
org.apache.tapestry5.ioc.internal.RegistryImpl.getObject(RegistryImpl.java:871)
at
org.apache.tapestry5.ioc.internal.ObjectLocatorImpl.getObject(ObjectLocatorImpl.java:57)
at
org.apache.tapestry5.ioc.internal.util.InternalUtils.calculateInjection(InternalUtils.java:257)
at
org.apache.tapestry5.ioc.internal.util.InternalUtils.access$000(InternalUtils.java:50)
at
org.apache.tapestry5.ioc.internal.util.InternalUtils$4.invoke(InternalUtils.java:289)
at
org.apache.tapestry5.ioc.internal.util.InternalUtils$4.invoke(InternalUtils.java:286)
at
org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:74)
at
org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:87)
at
org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1124)
at
org.apache.tapestry5.ioc.internal.util.InternalUtils.calculateParameters(InternalUtils.java:293)
at
org.apache.tapestry5.ioc.internal.ModuleImpl.instantiateModuleInstance(ModuleImpl.java:425)
at
org.apache.tapestry5.ioc.internal.ModuleImpl.access$1200(ModuleImpl.java:39)
at
org.apache.tapestry5.ioc.internal.ModuleImpl$6$1.invoke(ModuleImpl.java:355)
at
org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:74)
at
org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:87)
at
org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1124)
at org.apache.tapestry5.ioc.internal.ModuleImpl$6.run(ModuleImpl.java:350)
at
org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier$2.invoke(ConcurrentBarrier.java:200)
at
org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier$2.invoke(ConcurrentBarrier.java:197)
at
org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withWrite(ConcurrentBarrier.java:140)
at
org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withWrite(ConcurrentBarrier.java:206)
at
org.apache.tapestry5.ioc.internal.ModuleImpl$7.invoke(ModuleImpl.java:366)
at
org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:85)
at
org.apache.tapestry5.ioc.internal.ModuleImpl.getModuleBuilder(ModuleImpl.java:374)
at
org.apache.tapestry5.ioc.internal.ServiceResourcesImpl.getModuleBuilder(ServiceResourcesImpl.java:138)
at org.apache.ta
Info:
 pestry5.ioc.internal.ServiceBuilderMethodInvoker.getPlan(ServiceBuilderMethodInvoker.java:47)
at
org.apache.tapestry5.ioc.internal.ServiceBuilderMethodInvoker.createObject(ServiceBuilderMethodInvoker.java:60)
at
org.apache.tapestry5.ioc.internal.OperationTrackingObjectCreator$1.invoke(OperationTrackingObjectCreator.java:45)
at
org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:74)
at
org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:87)
at
org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1124)
at
org.apache.tapestry5.ioc.internal.OperationTrackingObjectCreator.createObject(OperationTrackingObjectCreator.java:49)
at
org.apache.tapestry5.ioc.internal.SingletonServiceLifecycle.createService(SingletonServiceLifecycle.java:29)
at
org.apache.tapestry5.ioc.internal.LifecycleWrappedServiceCreator.createObject(LifecycleWrappedServiceCreator.java:46)
at
org.apache.tapestry5.ioc.internal.AdvisorStackBuilder.createObject(AdvisorStackBuilder.java:63)
at
org.apache.tapestry5.ioc.internal.InterceptorStackBuilder.createObject(InterceptorStackBuilder.java:54)
at
org.apache.tapestry5.ioc.internal.RecursiveServiceCreationCheckWrapper.createObject(RecursiveServiceCreationCheckWrapper.java:60)
at
org.apache.tapestry5.ioc.internal.OperationTrackingObjectCreator$1.invoke(OperationTrackingObjectCreator.java:45)
at
org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:74)
at
org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:87)
at
org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1124)
at
org.apache.tapestry5.ioc.internal.OperationTrackingObjectCreator.createObject(OperationTrackingObjectCreator.java:49)
at
org.apache.tapestry5.ioc.internal.services.JustInTimeObjectCreator.obtainObjectFromCreator(JustInTimeObjectCreator.java:66)
at
org.apache.tapestry5.ioc.internal.services.JustInTimeObjectCreator.createObject(JustInTimeObjectCreator.java:54)
at $ServletApplicationInitializer_a94252dfd381f.delegate(Unknown Source)
at
$ServletApplicationInitializer_a94252dfd381f.initializeApplication(Unknown
Source)
at org.apache.tapestry5.TapestryFilter.init(TapestryFilter.java:116)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
at
org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:131)
at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:5329)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:5974)
at com.sun.enterprise.web.WebModule.start(WebModule.java:691)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:1041)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:1024)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:747)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2286)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1932)
at com.sun.enterprise.web.WebApplication.start(WebApplication.java:139)
at org.glassfish.internal.data.EngineRef.start(EngineRef.java:122)
at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:291)
at
org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:352)
at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:500)
at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219)
at
org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:539)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:535)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:360)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:534)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:565)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:557)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:360)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:556)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1464)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1300(CommandRunnerImpl.java:109)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1846)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1722)
at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:534)
at
com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:224)
at
org.glassfish.grizzly.http.server.StaticHttpHandlerBase.service(StaticHttpHandlerBase.java:189)
at
com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459)
at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167)
at
org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:206)
at
org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:180)
at
org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235)
at
org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
at
org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:283)
at
org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200)
at
org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:132)
at
org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:111)
at
org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at
org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:536)
at
org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
at
org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117)
at
org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56)
at
org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137)
at
org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:591)
at
org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:571)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: 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;
at
org.apache.tapestry5.ioc.internal.ContributionDefImpl.invokeMethod(ContributionDefImpl.java:130)
at
org.apache.tapestry5.ioc.internal.ContributionDefImpl.contribute(ContributionDefImpl.java:80)
at
org.apache.tapestry5.ioc.internal.RegistryImpl$9.run(RegistryImpl.java:633)
at
org.apache.tapestry5.ioc.internal.OperationTrackerImpl$1.invoke(OperationTrackerImpl.java:51)
at
org.apache.tapestry5.ioc.internal.OperationTrackerImpl$1.invoke(OperationTrackerImpl.java:48)
at
org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:74)
... 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
at
org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:135)
at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:5329)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:5974)
at com.sun.enterprise.web.WebModule.start(WebModule.java:691)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:1041)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:1024)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:747)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2286)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1932)
at com.sun.enterprise.web.WebApplication.start(WebApplication.java:139)
at org.glassfish.internal.data.EngineRef.start(EngineRef.java:122)
at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:291)
at
org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:352)
at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:500)
at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219)
at
org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:539)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:535)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:360)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:534)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:565)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:557)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:360)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:556)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1464)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1300(CommandRunnerImpl.java:109)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1846)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1722)
at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:534)
at
com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:224)
at
org.glassfish.grizzly.http.server.StaticHttpHandlerBase.service(StaticHttpHandlerBase.java:189)
at
com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459)
at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167)
at
org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:206)
at
org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:180)
at
org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235)
at
org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
at
org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:283)
at
org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200)
at
org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:132)
at
org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:111)
at
org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at
org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:536)
at
org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
at
org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117)
at
org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56)
at
org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137)
at
org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:591)
at
org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:571)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: Exception constructing service
'ServletApplicationInitializer': Unable to instantiate class
org.apache.tapestry5.services.TapestryModule as a module: Exception
constructing service 'MasterObjectProvider': 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;
at
org.apache.tapestry5.ioc.internal.services.JustInTimeObjectCreator.obtainObjectFromCreator(JustInTimeObjectCreator.java:75)
at
org.apache.tapestry5.ioc.internal.services.JustInTimeObjectCreator.createObject(JustInTimeObjectCreator.java:54)
at $ServletApplicationInitializer_a94252dfd381f.delegate(Unknown Source)
at
$ServletApplicationInitializer_a94252dfd381f.initializeApplication(Unknown
Source)
at org.apache.tapestry5.TapestryFilter.init(TapestryFilter.java:116)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
at
org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:131)
... 51 more
Reply | Threaded
Open this post in threaded view
|

Re: problems with JPA and tapestry 5.4.0

Cezary Biernacki
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 <[hidden email]
> 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
>
Reply | Threaded
Open this post in threaded view
|

Re: problems with JPA and tapestry 5.4.0

Qbyte Consulting

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 <[hidden email]> 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 <[hidden email]
>> 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: [hidden email]
For additional commands, e-mail: [hidden email]