Tapestry
  1. Tapestry
  2. TAPESTRY-1346

tapestry-hibernate module depends on missing ComponentClassLocator service

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 5.0.3
    • Fix Version/s: 5.0.3
    • Component/s: tapestry-hibernate
    • Labels:
      None
    • Environment:
      5.0.3-SNAPSHOT

      Description

      The 5.0.3 snapshots don't appear to be in line with each other. HibernateModule.buildHibernateSessionSource needs a ComponenClassLocator injected, but nothing is exposing such a service.
      (I had some trouble bullying Maven in to grabbing the latest 5.0.3 snapshots, but I think I've twisted its arm sufficiently now.)

      @Inject
      private HibernateSessionManager sessionManager;

      ...

      { ... sessionManager.getSession(); }

      Results in:

      1. java.lang.RuntimeException
        Error invoking service builder method org.apache.tapestry.hibernate.HibernateModule.buildHibernateSessionManager(HibernateSessionSource, ThreadCleanupHub) (for service 'HibernateSessionManager'): Error invoking service builder method org.apache.tapestry.hibernate.HibernateModule.buildHibernateSessionSource(Log, ComponentClassLocator, Collection) (for service 'HibernateSessionSource'): Service id 'ComponentClassLocator' is not defined by any module. Defined services: ActionLinkHandler, ApplicationDefaults, ApplicationGlobals, ApplicationInitializer, ApplicationStateManager, ApplicationStatePersistenceStrategySource, AssetSource, BeanModelSource, BindingSource, ChainBuilder, ClasspathAssetAliasManager, ClasspathAssetFactory, ComponentClassFactory, ComponentClassResolver, ComponentClassTransformWorker, ComponentClassTransformer, ComponentEventResultProcessor, ComponentInstanceResultProcessor, ComponentInstantiatorSource, ComponentInvocationMap, ComponentMessagesSource, ComponentSource, ComponentTemplateSource, Context, ContextAssetFactory, ContextPathSource, CookieSink, CookieSource, Cookies, DataTypeAnalyzer, DefaultComponentParameterBindingSource, DefaultDataTypeAnalyzer, DefaultImplementationBuilder, DefaultRequestExceptionHandler, Environment, EnvironmentalShadowBuilder, ExceptionAnalyzer, ExceptionTracker, FactoryDefaults, FieldValidatorDefaultSource, FieldValidatorSource, FormParameterLookup, HibernateSessionManager, HibernateSessionSource, HttpServletRequestHandler, Infrastructure, InfrastructureOverrides, InjectionProvider, LinkFactory, LocalizationSetter, LocationRenderer, LoggingDecorator, MarkupWriterFactory, MasterDispatcher, MasterObjectProvider, MetaDataLocator, ObjectRenderer, PageElementFactory, PageLinkHandler, PageLoader, PageMarkupRenderer, PagePool, PageRenderInitializer, PageRenderSupport, PageResponseRenderer, PageTemplateLocator, PersistentFieldManager, PersistentLocale, PipelineBuilder, PropBindingFactory, PropertyAccess, PropertyConduitSource, PropertyShadowBuilder, Request, RequestGlobals, RequestHandler, RequestPageCache, ResourceCache, ResourceDigestGenerator, ResourceStreamer, Response, ServiceLifecycleSource, ServletApplicationInitializer, Session, SessionHolder, StrategyBuilder, SymbolSource, TemplateParser, ThreadLocale, TimingFilter, TranslatorDefaultSource, TranslatorSource, TypeCoercer, URLEncoder, UpdateListenerHub, ValidationConstraintGenerator, ValidationMessagesSource.
      2. java.lang.RuntimeException
        Service id 'ComponentClassLocator' is not defined by any module. Defined services: ActionLinkHandler, ApplicationDefaults, ApplicationGlobals, ApplicationInitializer, ApplicationStateManager, ApplicationStatePersistenceStrategySource, AssetSource, BeanModelSource, BindingSource, ChainBuilder, ClasspathAssetAliasManager, ClasspathAssetFactory, ComponentClassFactory, ComponentClassResolver, ComponentClassTransformWorker, ComponentClassTransformer, ComponentEventResultProcessor, ComponentInstanceResultProcessor, ComponentInstantiatorSource, ComponentInvocationMap, ComponentMessagesSource, ComponentSource, ComponentTemplateSource, Context, ContextAssetFactory, ContextPathSource, CookieSink, CookieSource, Cookies, DataTypeAnalyzer, DefaultComponentParameterBindingSource, DefaultDataTypeAnalyzer, DefaultImplementationBuilder, DefaultRequestExceptionHandler, Environment, EnvironmentalShadowBuilder, ExceptionAnalyzer, ExceptionTracker, FactoryDefaults, FieldValidatorDefaultSource, FieldValidatorSource, FormParameterLookup, HibernateSessionManager, HibernateSessionSource, HttpServletRequestHandler, Infrastructure, InfrastructureOverrides, InjectionProvider, LinkFactory, LocalizationSetter, LocationRenderer, LoggingDecorator, MarkupWriterFactory, MasterDispatcher, MasterObjectProvider, MetaDataLocator, ObjectRenderer, PageElementFactory, PageLinkHandler, PageLoader, PageMarkupRenderer, PagePool, PageRenderInitializer, PageRenderSupport, PageResponseRenderer, PageTemplateLocator, PersistentFieldManager, PersistentLocale, PipelineBuilder, PropBindingFactory, PropertyAccess, PropertyConduitSource, PropertyShadowBuilder, Request, RequestGlobals, RequestHandler, RequestPageCache, ResourceCache, ResourceDigestGenerator, ResourceStreamer, Response, ServiceLifecycleSource, ServletApplicationInitializer, Session, SessionHolder, StrategyBuilder, SymbolSource, TemplateParser, ThreadLocale, TimingFilter, TranslatorDefaultSource, TranslatorSource, TypeCoercer, URLEncoder, UpdateListenerHub, ValidationConstraintGenerator, ValidationMessagesSource.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Howard M. Lewis Ship
            Reporter:
            Mike D Pilsbury
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development