10-27-2009 05:28 PM
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: org.alfresco.web.site.exception.RequestContextException: Exception running UserFactory in HttpRequestContextFactory
org.alfresco.web.site.servlet.DispatcherServlet.service(DispatcherServlet.java:146)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
root cause
org.alfresco.web.site.exception.RequestContextException: Exception running UserFactory in HttpRequestContextFactory
org.alfresco.web.site.DefaultRequestContextFactory.newInstance(DefaultRequestContextFactory.java:117)
org.alfresco.web.site.FrameworkHelper.initRequestContext(FrameworkHelper.java:202)
org.alfresco.web.site.servlet.DispatcherServlet.service(DispatcherServlet.java:142)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
root cause
org.alfresco.web.site.exception.UserFactoryException: Unable to retrieve user from repository
org.alfresco.web.site.AlfrescoUserFactory.loadUser(AlfrescoUserFactory.java:252)
org.alfresco.web.site.UserFactory.faultUser(UserFactory.java:176)
org.alfresco.web.site.UserFactory.faultUser(UserFactory.java:110)
org.alfresco.web.site.DefaultRequestContextFactory.newInstance(DefaultRequestContextFactory.java:93)
org.alfresco.web.site.FrameworkHelper.initRequestContext(FrameworkHelper.java:202)
org.alfresco.web.site.servlet.DispatcherServlet.service(DispatcherServlet.java:142)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.json.JSONException: A JSONObject text must begin with '{' at character 1 of <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>…..</html>
org.json.JSONTokener.syntaxError(Unknown Source)
org.json.JSONObject.<init>(Unknown Source)
org.json.JSONObject.<init>(Unknown Source)
org.alfresco.web.site.AlfrescoUserFactory.loadUser(AlfrescoUserFactory.java:165)
org.alfresco.web.site.UserFactory.faultUser(UserFactory.java:176)
org.alfresco.web.site.UserFactory.faultUser(UserFactory.java:110)
org.alfresco.web.site.DefaultRequestContextFactory.newInstance(DefaultRequestContextFactory.java:93)
org.alfresco.web.site.FrameworkHelper.initRequestContext(FrameworkHelper.java:202)
org.alfresco.web.site.servlet.DispatcherServlet.service(DispatcherServlet.java:142)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
<alfresco-config>
<!– Overriding endpoints to reference a remote Alfresco server –>
<!–
<config evaluator="string-compare" condition="Remote">
<remote>
<endpoint>
<id>alfresco-noauth</id>
<name>Alfresco - unauthenticated access</name>
<description>Access to Alfresco Repository WebScripts that do not require authentication</description>
<connector-id>alfresco</connector-id>
<endpoint-url>http://yourserver:8080/alfresco/s</endpoint-url>
<identity>none</identity>
</endpoint>
<endpoint>
<id>alfresco</id>
<name>Alfresco - user access</name>
<description>Access to Alfresco Repository WebScripts that require user authentication</description>
<connector-id>alfresco</connector-id>
<endpoint-url>http://yourserver:8080/alfresco/s</endpoint-url>
<identity>user</identity>
</endpoint>
<endpoint>
<id>alfresco-feed</id>
<name>Alfresco Feed</name>
<description>Alfresco Feed - supports basic HTTP authentication</description>
<connector-id>http</connector-id>
<endpoint-url>http://yourserver:8080/alfresco/s</endpoint-url>
<basic-auth>true</basic-auth>
<identity>user</identity>
</endpoint>
</remote>
</config>
–>
<!– Overriding endpoints to reference an Alfresco server with external SSO or NTLM enabled –>
<!– NOTE: For NTLM, the NTLM Authentication Filter must also be enabled in share web.xml –>
<!– NOTE: if utilising a load balancer between web-tier and repository cluster, the "sticky –>
<!– sessions" feature of your load balancer must be used –>
<config evaluator="string-compare" condition="Remote" replace="true">
<remote>
<!– SSL client certificate + trusted CAs. Optionally used to authenticate share to an external SSO system such as CAS –>
<keystore>
<path>/opt/Alfresco/tomcat/shared/classes/alfresco/web-extension/alfresco-system.p12</path>
<type>pkcs12</type>
<password>alfresco</password>
</keystore>
<connector>
<id>alfrescoCookie</id>
<name>Alfresco Connector</name>
<description>Connects to an Alfresco instance using cookie-based authentication</description>
<class>org.alfresco.connector.AlfrescoConnector</class>
</connector>
<endpoint>
<id>alfresco</id>
<name>Alfresco - user access</name>
<description>Access to Alfresco Repository WebScripts that require user authentication</description>
<connector-id>alfrescoCookie</connector-id>
<endpoint-url>http://<hostname removed>/alfresco/wcs</endpoint-url>
<identity>user</identity>
<external-auth>true</external-auth>
</endpoint>
</remote>
</config>
</alfresco-config>
11-05-2009 08:56 AM
11-05-2009 02:39 PM
11-05-2009 02:40 PM
11-05-2009 05:43 PM
2009-11-05 17:23:07,779 DEBUG [org.jasig.cas.adaptors.x509.web.flow.X509CertificateCredentialsNonInteractiveAction] - <Action 'X509CertificateCredentialsNonInteractiveAction' beginning execution>
2009-11-05 17:23:07,781 DEBUG [org.jasig.cas.adaptors.x509.web.flow.X509CertificateCredentialsNonInteractiveAction] - <Certificate found in request.>
2009-11-05 17:23:07,781 DEBUG [org.jasig.cas.CentralAuthenticationServiceImpl] - <Attempting to create TicketGrantingTicket for org.jasig.cas.adaptors.x509.authentication.principal.X509CertificateCredentials@4a2dd4>
2009-11-05 17:23:07,781 DEBUG [org.jasig.cas.adaptors.x509.authentication.handler.support.X509CredentialsAuthenticationHandler] - <–examining cert[14653026945918949920] CN=alfresco-system, O="Vitech Systems Group, Inc.", L=Manhattan, ST=New York, C=US" from issuer "EMAILADDRESS=foo@bar.com, CN=Sundar CA, O="Vitech Systems Group, Inc.", ST=New York, C=US">
2009-11-05 17:23:07,781 DEBUG [org.jasig.cas.adaptors.x509.authentication.handler.support.X509CredentialsAuthenticationHandler] - <certificate is valid>
2009-11-05 17:23:07,782 DEBUG [org.jasig.cas.adaptors.x509.authentication.handler.support.X509CredentialsAuthenticationHandler] - <Pattern Match: true [EMAILADDRESS=foo@bar.com, CN=Sundar CA, O="Vitech Systems Group, Inc.", ST=New York, C=US] against [^.*CN=Sundar CA.*$].>
2009-11-05 17:23:07,782 DEBUG [org.jasig.cas.adaptors.x509.authentication.handler.support.X509CredentialsAuthenticationHandler] - <certificate was issued by trusted issuer>
2009-11-05 17:23:07,782 DEBUG [org.jasig.cas.adaptors.x509.authentication.handler.support.X509CredentialsAuthenticationHandler] - <this is an end-user certificate>
2009-11-05 17:23:07,782 DEBUG [org.jasig.cas.adaptors.x509.authentication.handler.support.X509CredentialsAuthenticationHandler] - <Pattern Match: true [CN=alfresco-system, O="Vitech Systems Group, Inc.", L=Manhattan, ST=New York, C=US] against [.*].>
2009-11-05 17:23:07,782 DEBUG [org.jasig.cas.adaptors.x509.authentication.handler.support.X509CredentialsAuthenticationHandler] - <cert[14653026945918949920] ok, setting as credentials candidate>
2009-11-05 17:23:07,782 INFO [org.jasig.cas.adaptors.x509.authentication.handler.support.X509CredentialsAuthenticationHandler] - <authentication OK; SSL client authentication data meets criteria for cert[14653026945918949920]>
2009-11-05 17:23:07,782 INFO [org.jasig.cas.authentication.AuthenticationManagerImpl] - <AuthenticationHandler: org.jasig.cas.adaptors.x509.authentication.handler.support.X509CredentialsAuthenticationHandler successfully authenticated the user which provided the following credentials: org.jasig.cas.adaptors.x509.authentication.principal.X509CertificateCredentials@4a2dd4>
2009-11-05 17:23:07,782 DEBUG [org.jasig.cas.adaptors.x509.authentication.principal.X509CertificateCredentialsToIdentifierPrincipalResolver] - <Attempting to resolve a principal…>
2009-11-05 17:23:07,782 INFO [org.jasig.cas.adaptors.x509.authentication.principal.X509CertificateCredentialsToIdentifierPrincipalResolver] - <Creating principal for: CN=alfresco-system, O="Vitech Systems Group, Inc.", L=Manhattan, ST=New York, C=US>
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.webflow.engine.ActionExecutionException: Exception thrown executing [AnnotatedAction@b4b0a4 targetAction = org.jasig.cas.adaptors.x509.web.flow.X509CertificateCredentialsNonInteractiveAction@b90a6e, attributes = map[[empty]]] in state 'startAuthenticate' of flow 'login-webflow' – action execution attributes were 'map[[empty]]'; nested exception is java.lang.ArrayIndexOutOfBoundsException: 1
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:583)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.jasig.cas.web.init.SafeDispatcherServlet.service(SafeDispatcherServlet.java:115)
org.inspektr.common.web.ClientInfoThreadLocalFilter.doFilterInternal(ClientInfoThreadLocalFilter.java:48)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
root cause
org.springframework.webflow.engine.ActionExecutionException: Exception thrown executing [AnnotatedAction@b4b0a4 targetAction = org.jasig.cas.adaptors.x509.web.flow.X509CertificateCredentialsNonInteractiveAction@b90a6e, attributes = map[[empty]]] in state 'startAuthenticate' of flow 'login-webflow' – action execution attributes were 'map[[empty]]'; nested exception is java.lang.ArrayIndexOutOfBoundsException: 1
org.springframework.webflow.engine.ActionExecutor.execute(ActionExecutor.java:64)
org.springframework.webflow.engine.ActionState.doEnter(ActionState.java:156)
org.springframework.webflow.engine.State.enter(State.java:191)
org.springframework.webflow.engine.Transition.execute(Transition.java:212)
org.springframework.webflow.engine.DecisionState.doEnter(DecisionState.java:54)
org.springframework.webflow.engine.State.enter(State.java:191)
org.springframework.webflow.engine.Transition.execute(Transition.java:212)
org.springframework.webflow.engine.DecisionState.doEnter(DecisionState.java:54)
org.springframework.webflow.engine.State.enter(State.java:191)
org.springframework.webflow.engine.Transition.execute(Transition.java:212)
org.springframework.webflow.engine.TransitionableState.onEvent(TransitionableState.java:107)
org.springframework.webflow.engine.Flow.onEvent(Flow.java:534)
org.springframework.webflow.engine.impl.RequestControlContextImpl.signalEvent(RequestControlContextImpl.java:205)
org.springframework.webflow.engine.ActionState.doEnter(ActionState.java:161)
org.springframework.webflow.engine.State.enter(State.java:191)
org.springframework.webflow.engine.Flow.start(Flow.java:521)
org.springframework.webflow.engine.impl.RequestControlContextImpl.start(RequestControlContextImpl.java:193)
org.springframework.webflow.engine.impl.FlowExecutionImpl.start(FlowExecutionImpl.java:177)
org.springframework.webflow.executor.FlowExecutorImpl.launch(FlowExecutorImpl.java:187)
org.springframework.webflow.executor.support.FlowRequestHandler.handleFlowRequest(FlowRequestHandler.java:125)
org.springframework.webflow.executor.mvc.FlowController.handleRequestInternal(FlowController.java:165)
org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.jasig.cas.web.init.SafeDispatcherServlet.service(SafeDispatcherServlet.java:115)
org.inspektr.common.web.ClientInfoThreadLocalFilter.doFilterInternal(ClientInfoThreadLocalFilter.java:48)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
root cause
java.lang.ArrayIndexOutOfBoundsException: 1
org.jasig.cas.adaptors.x509.authentication.principal.X509CertificateCredentialsToIdentifierPrincipalResolver.resolvePrincipalInternal(X509CertificateCredentialsToIdentifierPrincipalResolver.java:56)
org.jasig.cas.adaptors.x509.authentication.principal.AbstractX509CertificateCredentialsToPrincipalResolver.extractPrincipalId(AbstractX509CertificateCredentialsToPrincipalResolver.java:24)
org.jasig.cas.authentication.principal.AbstractPersonDirectoryCredentialsToPrincipalResolver.resolvePrincipal(AbstractPersonDirectoryCredentialsToPrincipalResolver.java:42)
org.jasig.cas.authentication.AuthenticationManagerImpl.authenticate(AuthenticationManagerImpl.java:124)
org.jasig.cas.CentralAuthenticationServiceImpl.createTicketGrantingTicket(CentralAuthenticationServiceImpl.java:417)
org.jasig.cas.web.flow.AbstractNonInteractiveCredentialsAction.doExecute(AbstractNonInteractiveCredentialsAction.java:80)
org.springframework.webflow.action.AbstractAction.execute(AbstractAction.java:192)
org.springframework.webflow.engine.AnnotatedAction.execute(AnnotatedAction.java:146)
org.springframework.webflow.engine.ActionExecutor.execute(ActionExecutor.java:59)
org.springframework.webflow.engine.ActionState.doEnter(ActionState.java:156)
org.springframework.webflow.engine.State.enter(State.java:191)
org.springframework.webflow.engine.Transition.execute(Transition.java:212)
org.springframework.webflow.engine.DecisionState.doEnter(DecisionState.java:54)
org.springframework.webflow.engine.State.enter(State.java:191)
org.springframework.webflow.engine.Transition.execute(Transition.java:212)
org.springframework.webflow.engine.DecisionState.doEnter(DecisionState.java:54)
org.springframework.webflow.engine.State.enter(State.java:191)
org.springframework.webflow.engine.Transition.execute(Transition.java:212)
org.springframework.webflow.engine.TransitionableState.onEvent(TransitionableState.java:107)
org.springframework.webflow.engine.Flow.onEvent(Flow.java:534)
org.springframework.webflow.engine.impl.RequestControlContextImpl.signalEvent(RequestControlContextImpl.java:205)
org.springframework.webflow.engine.ActionState.doEnter(ActionState.java:161)
org.springframework.webflow.engine.State.enter(State.java:191)
org.springframework.webflow.engine.Flow.start(Flow.java:521)
org.springframework.webflow.engine.impl.RequestControlContextImpl.start(RequestControlContextImpl.java:193)
org.springframework.webflow.engine.impl.FlowExecutionImpl.start(FlowExecutionImpl.java:177)
org.springframework.webflow.executor.FlowExecutorImpl.launch(FlowExecutorImpl.java:187)
org.springframework.webflow.executor.support.FlowRequestHandler.handleFlowRequest(FlowRequestHandler.java:125)
org.springframework.webflow.executor.mvc.FlowController.handleRequestInternal(FlowController.java:165)
org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.jasig.cas.web.init.SafeDispatcherServlet.service(SafeDispatcherServlet.java:115)
org.inspektr.common.web.ClientInfoThreadLocalFilter.doFilterInternal(ClientInfoThreadLocalFilter.java:48)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
For the subject name, use alfresco-system. We will later configure Alfresco to trust that this subject is the Share application.. I did not see anything that explicitly trusts the CN of alfresco-system in the instructions. Did I miss something?
<beanIs this still correct even for Active Directory's LDAP?
class="org.jasig.cas.adaptors.x509.authentication.principal.X509CertificateCredentialsToIdentifierPrincipalResolver">
<property name="identifier" value="$CN" />
</bean>
11-06-2009 05:59 AM
11-06-2009 09:02 AM
11-06-2009 10:10 AM
01-18-2010 01:23 PM
02-07-2010 06:02 AM
SSLVerifyDepth 2
to apache configuration of https vhostopenssl verify -CAfile ca.pem -purpose sslclient alfresco-system.crt
answer should be "OK" (with no error)openssl x509 -purpose -in intermediate_certificate.pem
SSL Client CA should be "Yes"Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.