Thanks Tobias, I exported the packages to the bundles modifying the
system.properties file. However once I modified the file and I browse
http://localhost:8080/system/console<http://machinename:8080/system/console>,
appears the following error. I am not sure if it is a problem with the
configuration properties to our LDAP server in my University:
adib.upvnet.upv.es or it is a problem with matterhorn configuration itself.

HTTP ERROR 500

Problem accessing /j_spring_security_check. Reason:

    org.springframework.ldap.CommunicationException:
adib.upvnet.upv.es:389; nested exception is
javax.naming.CommunicationException: adib.upvnet.upv.es:389 [Root
exception is java.net.UnknownHostException: adib.upvnet.upv.es]

Caused by:

com.google.common.collect.ComputationException:
org.springframework.ldap.CommunicationException:
adib.upvnet.upv.es:389; nested exception is
javax.naming.CommunicationException: adib.upvnet.upv.es:389 [Root
exception is java.net.UnknownHostException: adib.upvnet.upv.es]
        at 
com.google.common.collect.ComputingConcurrentHashMap$ComputingValueReference.compute(ComputingConcurrentHashMap.java:325)
        at 
com.google.common.collect.ComputingConcurrentHashMap$ComputingSegment.compute(ComputingConcurrentHashMap.java:140)
        at 
com.google.common.collect.ComputingConcurrentHashMap.apply(ComputingConcurrentHashMap.java:71)
        at 
com.google.common.collect.MapMaker$ComputingMapAdapter.get(MapMaker.java:848)
        at 
org.opencastproject.userdirectory.ldap.LdapUserProvider.loadUser(LdapUserProvider.java:201)
        at 
org.opencastproject.kernel.userdirectory.UserAndRoleDirectoryServiceImpl.loadUser(UserAndRoleDirectoryServiceImpl.java:143)
        at 
org.opencastproject.kernel.userdirectory.UserAndRoleDirectoryServiceImpl.loadUserByUsername(UserAndRoleDirectoryServiceImpl.java:163)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at 
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
        at 
org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58)
        at 
org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at 
org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
        at 
org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at 
org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:56)
        at 
org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:39)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at 
org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at 
org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
        at 
org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
        at $Proxy28.loadUserByUsername(Unknown Source)
        at 
org.springframework.security.authentication.dao.DaoAuthenticationProvider.retrieveUser(DaoAuthenticationProvider.java:82)
        at 
org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider.authenticate(AbstractUserDetailsAuthenticationProvider.java:124)
        at 
org.springframework.security.authentication.ProviderManager.doAuthentication(ProviderManager.java:120)
        at 
org.springframework.security.authentication.AbstractAuthenticationManager.authenticate(AbstractAuthenticationManager.java:48)
        at 
org.springframework.security.authentication.ProviderManager.doAuthentication(ProviderManager.java:138)
        at 
org.springframework.security.authentication.AbstractAuthenticationManager.authenticate(AbstractAuthenticationManager.java:48)
        at 
org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter.attemptAuthentication(UsernamePasswordAuthenticationFilter.java:97)
        at 
org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:200)
        at 
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
        at 
org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
        at 
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
        at 
org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79)
        at 
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
        at 
org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:149)
        at 
org.opencastproject.kernel.security.SecurityFilter.doFilter(SecurityFilter.java:115)
        at 
org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:80)
        at 
org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:68)
        at 
org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:47)
        at 
org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)
        at 
org.opencastproject.kernel.security.OrganizationFilter.doFilter(OrganizationFilter.java:94)
        at 
org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:80)
        at 
org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:68)
        at 
org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:47)
        at 
org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)
        at 
org.opencastproject.kernel.rest.JsonpFilter.doFilter(JsonpFilter.java:106)
        at 
org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:80)
        at 
org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:68)
        at 
org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:47)
        at 
org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)
        at 
org.apache.felix.http.base.internal.dispatch.FilterPipeline.dispatch(FilterPipeline.java:48)
        at 
org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:39)
        at 
org.apache.felix.http.base.internal.DispatcherServlet.service(DispatcherServlet.java:55)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
        at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
        at 
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
        at 
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
        at 
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
        at org.mortbay.jetty.Server.handle(Server.java:326)
        at 
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:536)
        at 
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:930)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:405)
        at 
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
        at 
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
Caused by: org.springframework.ldap.CommunicationException:
adib.upvnet.upv.es:389; nested exception is
javax.naming.CommunicationException: adib.upvnet.upv.es:389 [Root
exception is java.net.UnknownHostException: adib.upvnet.upv.es]
        at 
org.springframework.ldap.support.LdapUtils.convertLdapException(LdapUtils.java:98)
        at 
org.springframework.ldap.core.support.AbstractContextSource.createContext(AbstractContextSource.java:266)
        at 
org.springframework.ldap.core.support.AbstractContextSource.getContext(AbstractContextSource.java:106)
        at 
org.springframework.ldap.core.support.AbstractContextSource.getReadOnlyContext(AbstractContextSource.java:125)
        at 
org.springframework.ldap.core.LdapTemplate.executeReadOnly(LdapTemplate.java:792)
        at 
org.springframework.security.ldap.SpringSecurityLdapTemplate.searchForSingleEntry(SpringSecurityLdapTemplate.java:192)
        at 
org.springframework.security.ldap.search.FilterBasedLdapUserSearch.searchForUser(FilterBasedLdapUserSearch.java:116)
        at 
org.springframework.security.ldap.userdetails.LdapUserDetailsService.loadUserByUsername(LdapUserDetailsService.java:35)
        at 
org.opencastproject.userdirectory.ldap.LdapUserProvider.loadUserFromLdap(LdapUserProvider.java:232)
        at 
org.opencastproject.userdirectory.ldap.LdapUserProvider$1.apply(LdapUserProvider.java:161)
        at 
org.opencastproject.userdirectory.ldap.LdapUserProvider$1.apply(LdapUserProvider.java:159)
        at 
com.google.common.collect.ComputingConcurrentHashMap$ComputingValueReference.compute(ComputingConcurrentHashMap.java:316)
        ... 73 more
Caused by: javax.naming.CommunicationException: adib.upvnet.upv.es:389
[Root exception is java.net.UnknownHostException: adib.upvnet.upv.es]
        at com.sun.jndi.ldap.Connection.<init>(Connection.java:223)
        at com.sun.jndi.ldap.LdapClient.<init>(LdapClient.java:136)
        at 
com.sun.jndi.ldap.LdapClientFactory.createPooledConnection(LdapClientFactory.java:64)
        at com.sun.jndi.ldap.pool.Connections.<init>(Connections.java:115)
        at com.sun.jndi.ldap.pool.Pool.getPooledConnection(Pool.java:132)
        at 
com.sun.jndi.ldap.LdapPoolManager.getLdapClient(LdapPoolManager.java:328)
        at com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1590)
        at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2643)
        at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:306)
        at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:193)
        at 
com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:211)
        at 
com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:154)
        at 
com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:84)
        at 
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684)
        at 
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:305)
        at javax.naming.InitialContext.init(InitialContext.java:240)
        at 
javax.naming.ldap.InitialLdapContext.<init>(InitialLdapContext.java:151)
        at 
org.springframework.ldap.core.support.LdapContextSource.getDirContextInstance(LdapContextSource.java:43)
        at 
org.springframework.ldap.core.support.AbstractContextSource.createContext(AbstractContextSource.java:254)
        ... 83 more
Caused by: java.net.UnknownHostException: adib.upvnet.upv.es
        at 
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:175)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)
        at java.net.Socket.connect(Socket.java:546)
        at java.net.Socket.connect(Socket.java:495)
        at java.net.Socket.<init>(Socket.java:392)
        at java.net.Socket.<init>(Socket.java:206)
        at com.sun.jndi.ldap.Connection.createSocket(Connection.java:365)
        at com.sun.jndi.ldap.Connection.<init>(Connection.java:200)
        ... 101 more

Hector

On Wed, Nov 2, 2011 at 1:06 PM, Tobias Wunden <[email protected]>wrote:

> Hector,
>
> There is a section in system.properties which is telling felix to export
> the com.sun classes to your bundles. It's deactivated by default and needs
> to be commented back in by you. That should also be covered by the
> documentation, as far as I remember. Please let us know if that's not the
> case.
>
> Tobias
>
>
> On 02.11.2011, at 13:00, Hector Sanchez <[email protected]> wrote:
>
> Hello,
>
> I just joined the team that is working in my University with the
> Matterhorn Project. We already have installed Matterhorn 1.2.0 and now we
> are trying to configure LDAP with our own LDAP server.
>
> I followed the instructions showed at:
>
> http://opencast.jira.com/wiki/display/MH/University+of+Saskatchewan+CAS+and+LDAP+integration
>
> But when I check the following point of the instructions:
> Double check it's installed by going to
> http://machinename:8080/system/console. You should see the LDAP module
> there, and it should be Active.
>
> I see the module with Status: Installed, but it should be *Active* as
> indicated in the instructions. I press the button start in the UI but
> nothing happens.
>
> Also I want to comment that in the label of Imported Packages shows this:
> com.sun.jndi.ldap -- Cannot be resolved
> com.sun.net.ssl.internal.ssl -- Cannot be resolved
>
> Any suggestions?
>
> Best regards,
>
> Hector Sanchez Sardi
> Politechnic University of Valencia
> Valencia, Spain
>
>
> On Sun, Oct 30, 2011 at 10:52 PM, Christopher Brooks <[email protected]
> > wrote:
>
>> On Sun, 30 Oct 2011 10:10:05 -0700
>> Hank Magnuski <[email protected]> wrote:
>>
>> > I've carefully followed the LDAP configuration instructions, but after
>> > restarting Matterhorn nothing happens. Nada. No hits on my LDAP
>> > server, none of the information on me.json looks different, can't
>> > login under any of the uid's in my server. The LDAP module claims to
>> > be running under Felix.
>> >
>> > Any suggestions on how to continue debugging this?
>> >
>> > Hank
>> >
>>
>> Hank,
>>
>> If you followed the instructions we used on the wiki, I think the next
>> thing is to start adding statements in the LdapUserRoleProvider.java,
>> recompiling, and investigating where data is not not getting through...
>>
>> Chris
>> _______________________________________________
>> Matterhorn-users mailing list
>> [email protected]
>> http://lists.opencastproject.org/mailman/listinfo/matterhorn-users
>>
>
> _______________________________________________
> Matterhorn-users mailing list
> [email protected]
> http://lists.opencastproject.org/mailman/listinfo/matterhorn-users
>
>
> _______________________________________________
> Matterhorn-users mailing list
> [email protected]
> http://lists.opencastproject.org/mailman/listinfo/matterhorn-users
>
>
_______________________________________________
Matterhorn-users mailing list
[email protected]
http://lists.opencastproject.org/mailman/listinfo/matterhorn-users

Reply via email to