[
https://issues.apache.org/jira/browse/TAPESTRY-2411?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12596347#action_12596347
]
Robert Pintarelli commented on TAPESTRY-2411:
---------------------------------------------
thx for the suggested solution, but the problem was that I accidentially placed
the ASO in the "pages" package.
that caused the error. moving it to another package solved the problem.
> exception when using @ApplicationState: No service implements the interface
> org.apache.tapestry.internal.InternalComponentResources.
> ------------------------------------------------------------------------------------------------------------------------------------
>
> Key: TAPESTRY-2411
> URL: https://issues.apache.org/jira/browse/TAPESTRY-2411
> Project: Tapestry
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.0.12
> Environment: window, java version "1.6.0_02"
> Reporter: Robert Pintarelli
> Assignee: Howard M. Lewis Ship
> Priority: Minor
>
> the following exception occurs if a variable is annotated with the
> @ApplicationState annotation:
> Example code:
> ...
> @ApplicationState
> private BrandHolder brandHolder;
> ...
> (exception occurs with 5.0.11 and 5.0.12-SNAPSHOT)
> Exception:
> java.lang.RuntimeException
> No service implements the interface
> org.apache.tapestry.internal.InternalComponentResources.
> Stack trace
> *
> org.apache.tapestry.ioc.internal.RegistryImpl.getService(RegistryImpl.java:517)
> *
> org.apache.tapestry.ioc.internal.services.MasterObjectProviderImpl.provide(MasterObjectProviderImpl.java:46)
> *
> org.apache.tapestry.ioc.internal.RegistryImpl.getObject(RegistryImpl.java:621)
> *
> org.apache.tapestry.ioc.internal.RegistryImpl.getObject(RegistryImpl.java:675)
> *
> org.apache.tapestry.ioc.internal.ObjectLocatorImpl.getObject(ObjectLocatorImpl.java:50)
> *
> org.apache.tapestry.ioc.internal.util.InternalUtils.calculateParameterValue(InternalUtils.java:209)
> *
> org.apache.tapestry.ioc.internal.util.InternalUtils.calculateParameters(InternalUtils.java:239)
> *
> org.apache.tapestry.ioc.internal.util.InternalUtils.calculateParametersForConstructor(InternalUtils.java:227)
> *
> org.apache.tapestry.ioc.internal.ConstructorServiceCreator.createObject(ConstructorServiceCreator.java:46)
> *
> org.apache.tapestry.ioc.internal.ServiceResourcesImpl.autobuild(ServiceResourcesImpl.java:123)
> *
> org.apache.tapestry.internal.services.ApplicationStateManagerImpl$1.create(ApplicationStateManagerImpl.java:98)
> *
> org.apache.tapestry.internal.services.SessionApplicationStatePersistenceStrategy.get(SessionApplicationStatePersistenceStrategy.java:56)
> *
> org.apache.tapestry.internal.services.ApplicationStateManagerImpl$ApplicationStateAdapter.getOrCreate(ApplicationStateManagerImpl.java:45)
> *
> org.apache.tapestry.internal.services.ApplicationStateManagerImpl.get(ApplicationStateManagerImpl.java:126)
> Note:
> this bind fixed the problem, but I think this should be done automatically:
> binder.bind(InternalComponentResources.class,
> InternalComponentResourcesImpl.class).withId("ComponentResources");
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]