tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Drobiazko <igor.drobia...@gmail.com>
Subject Re: Jenkins failures --- JPA
Date Thu, 14 Apr 2011 09:08:01 GMT
I fixed the problem with missinf dbcp dependency. The trick was to add it as
compile dependency to tapestry-test.

But 8 tests in tapestry-jpa are still failing. Seems like it has something
to do with the recent changes.

On Thu, Apr 14, 2011 at 2:43 AM, Howard Lewis Ship <hlship@gmail.com> wrote:

> Can't get my local build to work with tapestry-jpa either.  9/18 tests
> fail; here's the first exception in the console:
>
> 17:27:05.448 INFO - Starting tomcat server
> 17:27:05.565 INFO - Starting Servlet Engine: Apache Tomcat/6.0.30
> 17:27:05.574 WARN - Could not get url for
> /javax/servlet/jsp/resources/web-jsptaglibrary_2_1.xsd
> 17:27:05.591 WARN - Could not get url for
> /javax/servlet/jsp/resources/web-jsptaglibrary_2_1.xsd
> 17:27:05.680 INFO - No default web.xml
> 17:27:05.762 WARN - Failed to register in JMX:
> javax.naming.NamingException: Could not create resource factory
> instance [Root exception is java.lang.ClassNotFoundException:
> org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory]
> [ERROR] Registry Error invoking service builder method
> org.apache.tapestry5.jpa.JpaModule.buildEntityManagerSource(Logger,
> Resource, PersistenceUnitConfigurer, Map, RegistryShutdownHub) (at
> JpaModule.java:89) (for service 'EntityManagerSource'):
> java.lang.RuntimeException: java.lang.RuntimeException:
> javax.naming.NamingException: Could not create resource factory
> instance [Root exception is java.lang.ClassNotFoundException:
> org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory]
> [ERROR] Registry Operations trace:
> [ERROR] Registry [ 1] Reloading class
> org.apache.tapestry5.ioc.internal.services.RegistryStartup.
> [ERROR] Registry [ 2] Determining injection value for parameter #2
> (java.util.List)
> [ERROR] Registry [ 3] Collecting ordered configuration for service
> RegistryStartup
> [ERROR] Registry [ 4] Invoking method
> org.apache.tapestry5.jpa.JpaModule.startupEarly(EntityManagerManager,
> boolean) (at JpaModule.java:249).
> [ERROR] Registry [ 5] Realizing service EntityManagerSource
> [ERROR] Registry [ 6] Invoking
> org.apache.tapestry5.jpa.JpaModule.buildEntityManagerSource(Logger,
> Resource, PersistenceUnitConfigurer, Map, RegistryShutdownHub) (at
> JpaModule.java:89)
> [ERROR] EntityManagerSource Construction of service
> EntityManagerSource failed: Error invoking service builder method
> org.apache.tapestry5.jpa.JpaModule.buildEntityManagerSource(Logger,
> Resource, PersistenceUnitConfigurer, Map, RegistryShutdownHub) (at
> JpaModule.java:89) (for service 'EntityManagerSource'):
> java.lang.RuntimeException: java.lang.RuntimeException:
> javax.naming.NamingException: Could not create resource factory
> instance [Root exception is java.lang.ClassNotFoundException:
> org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory]
> org.apache.tapestry5.ioc.internal.OperationException: Error invoking
> service builder method
> org.apache.tapestry5.jpa.JpaModule.buildEntityManagerSource(Logger,
> Resource, PersistenceUnitConfigurer, Map, RegistryShutdownHub) (at
> JpaModule.java:89) (for service 'EntityManagerSource'):
> java.lang.RuntimeException: java.lang.RuntimeException:
> javax.naming.NamingException: Could not create resource factory
> instance [Root exception is java.lang.ClassNotFoundException:
> org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory]
>        at
> org.apache.tapestry5.ioc.internal.OperationTrackerImpl.logAndRethrow(OperationTrackerImpl.java:102)
>        at
> org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:69)
>        at
> org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:68)
>        at
> org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1082)
>        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:60)
>        at
> org.apache.tapestry5.ioc.internal.InterceptorStackBuilder.createObject(InterceptorStackBuilder.java:52)
>        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:65)
>        at
> org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:68)
>        at
> org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1082)
>        at
> org.apache.tapestry5.ioc.internal.OperationTrackingObjectCreator.createObject(OperationTrackingObjectCreator.java:49)
>        at
> org.apache.tapestry5.ioc.internal.services.JustInTimeObjectCreator.obtainObjectFromCreator(JustInTimeObjectCreator.java:68)
>        at
> org.apache.tapestry5.ioc.internal.services.JustInTimeObjectCreator.createObject(JustInTimeObjectCreator.java:56)
>        at
> $PlasticProxy$EntityManagerSource_121443dbf37d9dc3.delegate(Unknown Source)
>        at
> $PlasticProxy$EntityManagerSource_121443dbf37d9dc3.getPersistenceUnitInfos(Unknown
> Source)
>        at
> org.apache.tapestry5.internal.jpa.EntityManagerManagerImpl.createAllEntityManagers(EntityManagerManagerImpl.java:66)
>        at
> org.apache.tapestry5.internal.jpa.EntityManagerManagerImpl.getEntityManagers(EntityManagerManagerImpl.java:59)
>        at
> $EntityManagerManager_12f5167213b.getEntityManagers($EntityManagerManager_12f5167213b.java)
>        at
> $PlasticProxy$EntityManagerManager_121443dbf37d9dc2.getEntityManagers(Unknown
> Source)
>        at
> org.apache.tapestry5.jpa.JpaModule.startupEarly(JpaModule.java:252)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at
> org.apache.tapestry5.ioc.internal.ContributionDefImpl.invokeMethod(ContributionDefImpl.java:122)
>        at
> org.apache.tapestry5.ioc.internal.ContributionDefImpl.contribute(ContributionDefImpl.java:82)
>        at
> org.apache.tapestry5.ioc.internal.RegistryImpl$9.run(RegistryImpl.java:670)
>        at
> org.apache.tapestry5.ioc.internal.OperationTrackerImpl$1.invoke(OperationTrackerImpl.java:50)
>        at
> org.apache.tapestry5.ioc.internal.OperationTrackerImpl$1.invoke(OperationTrackerImpl.java:1)
>        at
> org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:65)
>        at
> org.apache.tapestry5.ioc.internal.OperationTrackerImpl.run(OperationTrackerImpl.java:46)
>        at
> org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.run(PerThreadOperationTracker.java:56)
>        at
> org.apache.tapestry5.ioc.internal.RegistryImpl.addToOrderedConfiguration(RegistryImpl.java:665)
>        at
> org.apache.tapestry5.ioc.internal.RegistryImpl.getOrderedConfiguration(RegistryImpl.java:511)
>        at
> org.apache.tapestry5.ioc.internal.ServiceResourcesImpl$2.invoke(ServiceResourcesImpl.java:110)
>        at
> org.apache.tapestry5.ioc.internal.ServiceResourcesImpl$2.invoke(ServiceResourcesImpl.java:1)
>        at
> org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:65)
>        at
> org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:68)
>        at
> org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1082)
>        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$2(AbstractServiceCreator.java:119)
>        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:265)
>        at
> org.apache.tapestry5.ioc.internal.util.InternalUtils.access$0(InternalUtils.java:233)
>        at
> org.apache.tapestry5.ioc.internal.util.InternalUtils$2.invoke(InternalUtils.java:314)
>        at
> org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:65)
>        at
> org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:68)
>        at
> org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1082)
>        at
> org.apache.tapestry5.ioc.internal.util.InternalUtils.calculateParameters(InternalUtils.java:318)
>        at
> org.apache.tapestry5.ioc.internal.util.InternalUtils.calculateParametersForConstructor(InternalUtils.java:289)
>        at
> org.apache.tapestry5.ioc.internal.ConstructorServiceCreator.createObject(ConstructorServiceCreator.java:56)
>        at
> org.apache.tapestry5.ioc.internal.ReloadableServiceImplementationObjectCreator.createInstance(ReloadableServiceImplementationObjectCreator.java:52)
>        at
> org.apache.tapestry5.ioc.internal.AbstractReloadableObjectCreator$1.invoke(AbstractReloadableObjectCreator.java:148)
>        at
> org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:65)
>        at
> org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:68)
>        at
> org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1082)
>        at
> org.apache.tapestry5.ioc.internal.AbstractReloadableObjectCreator.createInstance(AbstractReloadableObjectCreator.java:142)
>        at
> org.apache.tapestry5.ioc.internal.AbstractReloadableObjectCreator.createObject(AbstractReloadableObjectCreator.java:135)
>        at $PlasticProxy$Runnable_121443dbf37d9dc1.delegate(Unknown Source)
>        at $PlasticProxy$Runnable_121443dbf37d9dc1.run(Unknown Source)
>        at $PlasticProxy$Runnable_121443dbf37d9dc0.run(Unknown Source)
>        at
> org.apache.tapestry5.ioc.internal.RegistryImpl.performRegistryStartup(RegistryImpl.java:352)
>        at
> org.apache.tapestry5.ioc.internal.RegistryWrapper.performRegistryStartup(RegistryWrapper.java:73)
>        at org.apache.tapestry5.TapestryFilter.init(TapestryFilter.java:104)
>        at
> org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)
>        at
> org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)
>        at
> org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:115)
>        at
> org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4038)
>        at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4692)
>        at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
>        at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
>        at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
>        at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
>        at org.apache.catalina.startup.Embedded.start(Embedded.java:825)
>        at
> org.apache.tapestry5.test.Tomcat6Runner.<init>(Tomcat6Runner.java:101)
>        at
> org.apache.tapestry5.test.SeleniumTestCase.launchWebServer(SeleniumTestCase.java:271)
>        at
> org.apache.tapestry5.test.SeleniumTestCase.testStartup(SeleniumTestCase.java:167)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at
> org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:74)
>        at
> org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:525)
>        at
> org.testng.internal.Invoker.invokeConfigurations(Invoker.java:202)
>        at
> org.testng.internal.Invoker.invokeConfigurations(Invoker.java:130)
>        at org.testng.TestRunner.beforeRun(TestRunner.java:624)
>        at org.testng.TestRunner.run(TestRunner.java:592)
>        at org.testng.SuiteRunner.runTest(SuiteRunner.java:317)
>        at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:312)
>        at org.testng.SuiteRunner.privateRun(SuiteRunner.java:274)
>        at org.testng.SuiteRunner.run(SuiteRunner.java:223)
>        at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
>        at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
>        at org.testng.TestNG.runSuitesSequentially(TestNG.java:995)
>        at org.testng.TestNG.runSuitesLocally(TestNG.java:920)
>        at org.testng.TestNG.run(TestNG.java:856)
>        at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:110)
>        at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:205)
>        at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:174)
>
>
> I tried adding "org.apache.tomcat:dbcp:6.0.32" to the test runtime,
> but that didn't seem to make a difference, which is odd, because
> that's where the BasicDataSourceFactory class is defined.
>
> Any ideas?  What's different on Igor's machine that it presumably builds
> there?
>
> --
> Howard M. Lewis Ship
>
> Creator of Apache Tapestry
>
> The source for Tapestry training, mentoring and support. Contact me to
> learn how I can get you up and productive in Tapestry fast!
>
> (971) 678-5210
> http://howardlewisship.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: dev-help@tapestry.apache.org
>
>


-- 
Best regards,

Igor Drobiazko
http://tapestry5.de

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