[
http://opencast.jira.com/browse/MH-9363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=32780#comment-32780
]
Per Pascal Grube commented on MH-9363:
--------------------------------------
I think there is something broken with the spring context in the default setup,
as I get the following output.
2013-01-16 13:49:11 INFO (SpringSecurityConfigurationArtifactInstaller:115) -
registered OsgiBundleXmlApplicationContext(bundle=matterhorn-kernel,
config=file:/opt/matterhorn/felix/etc/security/mh_default_org.xml): startup
date [Thu Jan 01 01:00:00 CET 1970]; root of context hierarchy for
mh_default_org
2013-01-16 13:54:12 ERROR (SpringSecurityConfigurationArtifactInstaller:121) -
Unable to refresh spring security configuration file
/opt/matterhorn/felix/etc/security/mh_default_org.xml:
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'org.springframework.security.filterChains': Cannot resolve reference
to bean 'org.springframework.security.web.DefaultSecurityFilterChain#7' while
setting bean property 'sourceList' with key [7]; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'org.springframework.security.web.DefaultSecurityFilterChain#7':
Cannot create inner bean '(inner bean)' of type
[org.springframework.security.web.authentication.logout.LogoutFilter] while
setting constructor argument with key [1]; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name '(inner bean)#9': Cannot resolve reference to bean
'org.springframework.s
ecurity.web.authentication.rememberme.TokenBasedRememberMeServices#0' while
setting constructor argument with key [1]; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name
'org.springframework.security.web.authentication.rememberme.TokenBasedRememberMeServices#0':
Cannot create inner bean '(inner bean)' while setting bean property
'userDetailsService'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name '(inner bean)#10': Instantiation of bean failed; nested exception is
org.springframework.beans.factory.BeanDefinitionStoreException: Factory method
[org.springframework.security.core.userdetails.UserDetailsService
org.springframework.security.config.http.UserDetailsServiceFactoryBean.cachingUserDetailsService(java.lang.String)]
threw exception; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'userDetailsService
': FactoryBean threw exception on object creation; nested exception is
org.springframework.osgi.service.ServiceUnavailableException: service matching
filter=[(objectClass=org.springframework.security.core.userdetails.UserDetailsService)]
unavailable
2013-01-16 13:54:22 INFO (SpringSecurityConfigurationArtifactInstaller:115) -
registered OsgiBundleXmlApplicationContext(bundle=matterhorn-kernel,
config=file:/opt/matterhorn/felix/etc/security/mh_default_org.xml): startup
date [Thu Jan 01 01:00:00 CET 1970]; root of context hierarchy for
mh_default_org
I tried to resolve this issue by adding a userDetailsService to the context,
which results in the following error:
2013-01-16 13:40:32 INFO (SpringSecurityConfigurationArtifactInstaller:115) -
registered OsgiBundleXmlApplicationContext(bundle=matterhorn-kernel,
config=file:/opt/matterhorn/felix/etc/security/mh_default_org.xml): startup
date [Thu Jan 01 01:00:00 CET 1970]; root of context hierarchy for
mh_default_org
2013-01-16 13:40:32 ERROR (SpringSecurityConfigurationArtifactInstaller:121) -
Unable to refresh spring security configuration file
/opt/matterhorn/felix/etc/security/mh_default_org.xml:
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'org.springframework.security.filterChains': Cannot resolve reference
to bean 'org.springframework.security.web.DefaultSecurityFilterChain#7' while
setting bean property 'sourceList' with key [7]; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'org.springframework.security.web.DefaultSecurityFilterChain#7':
Cannot create inner bean '(inner bean)' of type
[org.springframework.security.web.authentication.logout.LogoutFilter] while
setting constructor argument with key [1]; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name '(inner bean)#9': Cannot resolve reference to bean
'org.springframework.s
ecurity.web.authentication.rememberme.TokenBasedRememberMeServices#0' while
setting constructor argument with key [1]; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name
'org.springframework.security.web.authentication.rememberme.TokenBasedRememberMeServices#0':
Cannot create inner bean '(inner bean)' while setting bean property
'userDetailsService'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name '(inner bean)#10': Instantiation of bean failed; nested exception is
org.springframework.beans.factory.BeanDefinitionStoreException: Factory method
[org.springframework.security.core.userdetails.UserDetailsService
org.springframework.security.config.http.UserDetailsServiceFactoryBean.cachingUserDetailsService(java.lang.String)]
threw exception; nested exception is
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find
class [org.springframework.sec
urity.provisioning.InMemoryUserDetailsManager] for bean with name
'userDetailsService' defined in null; nested exception is
java.lang.ClassNotFoundException:
org.springframework.security.provisioning.InMemoryUserDetailsManager not found
from bundle [matterhorn-kernel]
The missing class is available in lib/ext/spring-security-core.xxx.jar From
here on, I have no clue how to debug it further.
> Default CA build results in a 500 error for all endpoints
> ---------------------------------------------------------
>
> Key: MH-9363
> URL: http://opencast.jira.com/browse/MH-9363
> Project: Matterhorn Project
> Issue Type: Bug
> Components: Capture (Devices and Software)
> Affects Versions: 1.4
> Reporter: Greg Logan
> Assignee: Greg Logan
> Priority: Release Blocker
> Fix For: 1.4
>
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
http://opencast.jira.com/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
Matterhorn mailing list
[email protected]
http://lists.opencastproject.org/mailman/listinfo/matterhorn
To unsubscribe please email
[email protected]
_______________________________________________