MBeanSupport is a new service which has been added today. The exception is weird. There is no recursion. Please provide the full log output and stack trace.
On Wed, May 26, 2010 at 7:44 PM, Manuel Sugawara <[email protected]>wrote: > Guys > > In the morning when compiling a library maven downloaded a bunch of > new tapestry packages and after that the test suite failed saying that > the class Predicate was missing. I thought that some dependency was > broken so I went to my svn copy, updated an recompiled. Now the test > suite runs again but jetty:run is not working anymore: when tried to > load a page it throws an exception saying: > > Exception constructing service 'PagePool': Error invoking service builder > method > > org.apache.tapestry5.internal.services.InternalModule.buildPagePool(PagePoolImpl, > InvalidationEventHub, InvalidationEventHub, MBeanSupport) (at > InternalModule.java:181) (for service 'PagePool'): Exception constructing > service 'MBeanSupport': Construction of service 'MBeanSupport' has failed > due to recursion: the service depends on itself in some way. Please check > > org.apache.tapestry5.internal.services.InternalModule.buildMBeanSupport(RegistryShutdownHub, > MBeanSupportImpl) (at InternalModule.java:216) for references to another > service that is itself dependent on service 'MBeanSupport'. > > Some backgroud, I'm using jetty 6.1.10 to be able to run it using the > test classes. Everything was working fine until now. The jetty config > is something like: > > <plugin> > <groupId>org.mortbay.jetty</groupId> > <artifactId>maven-jetty-plugin</artifactId> > <version>6.1.10</version> > <configuration> > > <webAppSourceDirectory>${basedir}/src/test/webapp</webAppSourceDirectory> > > > > <classesDirectory>,${project.build.directory}/test-classes,${project.build.directory}/classes</classesDirectory> > <webXml>${basedir}/src/test/webapp/WEB-INF/web.xml</webXml> > .... > > In a different but related issue another library is also failing but in > the test suite. In it's module I've something like: > > public static void > contributeComponentClassResolver(Configuration<LibraryMapping> > configuration) { > configuration.add(new LibraryMapping("core", > "mx.unam.xfc.escuela.t5")); > } > > and while running the test suite tapestry throws an exception that says: > > [ERROR] ioc.Registry [10] Invoking method > > org.apache.tapestry5.services.TapestryModule.contributeClasspathAssetAliasManager(MappedConfiguration, > String, String, ComponentClassResolver) (at TapestryModule.java:470). > [ERROR] TapestryModule.ClasspathAssetAliasManager Construction of service > ClasspathAssetAliasManager failed: Error invoking constructor > > org.apache.tapestry5.internal.services.ClasspathAssetAliasManagerImpl(AssetPathConstructor, > Map) (at ClasspathAssetAliasManagerImpl.java:53) via > org.apache.tapestry5.services.TapestryModule.bind(ServiceBinder) (at > TapestryModule.java:321) (for service 'ClasspathAssetAliasManager'): Error > invoking service contribution method > > org.apache.tapestry5.services.TapestryModule.contributeClasspathAssetAliasManager(MappedConfiguration, > String, String, ComponentClassResolver): Package names for library folder > 'core' (mx.unam.xfc.escuela.t5, org.apache.tapestry5.corelib) can not be > reduced to a common base package (of at least two terms). > java.lang.RuntimeException: Error invoking constructor > > org.apache.tapestry5.internal.services.ClasspathAssetAliasManagerImpl(AssetPathConstructor, > Map) (at ClasspathAssetAliasManagerImpl.java:53) via > org.apache.tapestry5.services.TapestryModule.bind(ServiceBinder) (at > TapestryModule.java:321) (for service 'ClasspathAssetAliasManager'): Error > invoking service contribution method > > org.apache.tapestry5.services.TapestryModule.contributeClasspathAssetAliasManager(MappedConfiguration, > String, String, ComponentClassResolver): Package names for library folder > 'core' (mx.unam.xfc.escuela.t5, org.apache.tapestry5.corelib) can not be > reduced to a common base package (of at least two terms). > > This library was working fine before today's update. Any ideas what > can be wrong and how to solve it?. > > PS. What compiler do you guys use?, Using 1.6.0_18 (OpenJDK) can't > compile tapestry. It reports casting erros in the uses of the newList > method in CollectionFactory. I have added unchecked cast to > java.util.List to get it compiled. > > Best regards, > Manuel. > -- Best regards, Igor Drobiazko http://tapestry5.de/blog
