[cas-user] Exception on attempting to show login screen

2013-07-30 Thread Chandrashekar Singh
I am testing phpCAS example_simple.php
When I attempt to login, it gives the following exception:

org.springframework.web.util.NestedServletException: Request processing failed; 
nested exception is 
org.springframework.webflow.execution.FlowExecutionException: Exception thrown 
in state 'viewLoginForm' of flow 'login'

org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:659)

org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:552)
javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)

org.jasig.cas.web.init.SafeDispatcherServlet.service_aroundBody2(SafeDispatcherServlet.java:128)

org.jasig.cas.web.init.SafeDispatcherServlet.service_aroundBody3$advice(SafeDispatcherServlet.java:57)

org.jasig.cas.web.init.SafeDispatcherServlet.service(SafeDispatcherServlet.java:1)

org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)

org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)

org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)

org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)

com.github.inspektr.common.web.ClientInfoThreadLocalFilter.doFilter(ClientInfoThreadLocalFilter.java:63)

root cause

org.springframework.webflow.execution.FlowExecutionException: Exception thrown 
in state 'viewLoginForm' of flow 'login'

org.springframework.webflow.engine.impl.FlowExecutionImpl.wrap(FlowExecutionImpl.java:571)

org.springframework.webflow.engine.impl.FlowExecutionImpl.start(FlowExecutionImpl.java:229)

org.springframework.webflow.executor.FlowExecutorImpl.launchExecution(FlowExecutorImpl.java:140)

org.springframework.webflow.mvc.servlet.FlowHandlerAdapter.handle(FlowHandlerAdapter.java:193)

org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:771)

org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)

org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:647)

org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:552)
javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)

org.jasig.cas.web.init.SafeDispatcherServlet.service_aroundBody2(SafeDispatcherServlet.java:128)

org.jasig.cas.web.init.SafeDispatcherServlet.service_aroundBody3$advice(SafeDispatcherServlet.java:57)

org.jasig.cas.web.init.SafeDispatcherServlet.service(SafeDispatcherServlet.java:1)

org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)

org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)

org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)

org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)

com.github.inspektr.common.web.ClientInfoThreadLocalFilter.doFilter(ClientInfoThreadLocalFilter.java:63)

root cause

java.lang.IllegalStateException: Exception occurred rendering view 
org.springframework.web.servlet.view.JstlView: name 'casLoginView'; URL 
[/WEB-INF/view/jsp/default/ui/casLoginView.jsp]

org.springframework.webflow.mvc.view.AbstractMvcView.render(AbstractMvcView.java:191)
org.springframework.webflow.engine.ViewState.render(ViewState.java:296)
org.springframework.webflow.engine.ViewState.doEnter(ViewState.java:186)
org.springframework.webflow.engine.State.enter(State.java:194)

org.springframework.webflow.engine.Transition.execute(Transition.java:227)

org.springframework.webflow.engine.impl.FlowExecutionImpl.execute(FlowExecutionImpl.java:393)

org.springframework.webflow.engine.impl.RequestControlContextImpl.execute(RequestControlContextImpl.java:214)

org.springframework.webflow.engine.TransitionableState.handleEvent(TransitionableState.java:119)
org.springframework.webflow.engine.Flow.handleEvent(Flow.java:555)

org.springframework.webflow.engine.impl.FlowExecutionImpl.handleEvent(FlowExecutionImpl.java:388)

org.springframework.webflow.engine.impl.RequestControlContextImpl.handleEvent(RequestControlContextImpl.java:210)

org.springframework.webflow.engine.ActionState.doEnter(ActionState.java:105)
org.springframework.webflow.engine.State.enter(State.java:194)

org.springframework.webflow.engine.Transition.execute(Transition.java:227)

org.springframework.webflow.engine.impl.FlowExecutionImpl.execute(FlowExecutionImpl

[cas-user] phpCAS not able to validate user

2013-07-30 Thread Chandrashekar Singh
I setup CAS and tried testing the server using phpCAS. However phpCAS  keeps 
saying that it is unable to log in.

The log file is suggesting that Curl is unable to either connect to the CAS 
server or unable to verify the identity of the server. 

This is a test server with a self-signed certificate.

The log is attached.


-- 
You are currently subscribed to cas-user@lists.jasig.org as: 
arch...@mail-archive.com
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

phpCAS.log
Description: Binary data


Re:[cas-user] Exception on attempting to show login screen

2013-07-30 Thread Chandrashekar Singh
I was able to fix the theme issue.

Thanks.
-- 
You are currently subscribed to cas-user@lists.jasig.org as: 
arch...@mail-archive.com
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user


[cas-user] Demo Site

2013-07-30 Thread Chandrashekar Singh
Is there any live demo website of CAS? I know there exists for other opensource 
projects like KOHA.

Thanks,
Chandrashekar Singh.
-- 
You are currently subscribed to cas-user@lists.jasig.org as: 
arch...@mail-archive.com
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user


Re: [cas-user] Demo Site

2013-07-30 Thread chandrashekar singh
That is working (WAR from the distribution on tomcat). However I am having 
issues with the phpCAS client. Curl is throwing an error about certificate not 
being valid (it's self signed) and then saying that there is no response from 
the server. 


 
Thanks, 

Chandrashekar Singh




 From: Scott Battaglia 
To: cas-user@lists.jasig.org 
Sent: Tuesday, July 30, 2013 8:54 PM
Subject: Re: [cas-user] Demo Site
 


I don't believe we host one but you should just be able to take the WAR from 
the distribution and drop it into any Tomcat container with zero configuration 
to have a working demo.

Is that not working?



On Tue, Jul 30, 2013 at 3:54 PM, Chandrashekar Singh 
 wrote:

Is there any live demo website of CAS? I know there exists for other opensource 
projects like KOHA.
>
>Thanks,
>Chandrashekar Singh.
>--
>You are currently subscribed to cas-user@lists.jasig.org as: 
>scott.battag...@gmail.com
>To unsubscribe, change settings or access archives, see 
>http://www.ja-sig.org/wiki/display/JSG/cas-user
>

-- 
You are currently subscribed to cas-user@lists.jasig.org as: 
chandrashekar1...@yahoo.com
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user
-- 
You are currently subscribed to cas-user@lists.jasig.org as: 
arch...@mail-archive.com
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

[cas-user] Problem setting up LDAP on CAS

2013-08-08 Thread Chandrashekar Singh
I am trying to setup LDAP authentication handler. Ultimately I would 
like to connect Bugzilla to cas. Bugzilla support forums are suggesting 
that I use LDAP.

Please say:
1. if this is the best means of performing this integration or not.
2. If this is indeed the best means, please see the attached log file 
and suggest what might be the solution to the exceptions thrown.


Thanks,
Chandrashekar Singh.

-- 
You are currently subscribed to cas-user@lists.jasig.org as: 
arch...@mail-archive.com
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user2013-08-08 14:18:50,377 ERROR 
[org.jasig.cas.web.init.SafeContextLoaderListener] - SafeContextLoaderListener: 
The Spring ContextLoaderListener we wrap threw on contextInitialized.
But for our having caught this error, the web application context would not 
have initialized.
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 261 
in XML document from ServletContext resource 
[/WEB-INF/deployerConfigContext.xml] is invalid; nested exception is 
org.xml.sax.SAXParseException; lineNumber: 261; columnNumber: 33; 
cvc-complex-type.2.4.a: Invalid content was found starting with element 'bean'. 
One of '{"http://www.springframework.org/schema/beans":meta, 
"http://www.springframework.org/schema/beans":constructor-arg, 
"http://www.springframework.org/schema/beans":property, 
"http://www.springframework.org/schema/beans":qualifier, 
"http://www.springframework.org/schema/beans":lookup-method, 
"http://www.springframework.org/schema/beans":replaced-method, 
WC[##other:"http://www.springframework.org/schema/beans"]}' is expected.
at 
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)
at 
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)
at 
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
at 
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
at 
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
at 
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
at 
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124)
at 
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:93)
at 
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)
at 
org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:458)
at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:388)
at 
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:261)
at 
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:192)
at 
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
at 
org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized_aroundBody0(SafeContextLoaderListener.java:75)
at 
org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized_aroundBody1$advice(SafeContextLoaderListener.java:57)
at 
org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized(SafeContextLoaderListener.java:1)
at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779)
at 
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:962)
at 
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1603)
at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
at 
java.util.concurrent.

Re: [cas-user] Problem setting up LDAP on CAS

2013-08-08 Thread Chandrashekar Singh

On 2013-08-08 14:31, Chandrashekar Singh wrote:

I am trying to setup LDAP authentication handler. Ultimately I would
like to connect Bugzilla to cas. Bugzilla support forums are suggesting
that I use LDAP.

Please say:
1. if this is the best means of performing this integration or not.
2. If this is indeed the best means, please see the attached log file
and suggest what might be the solution to the exceptions thrown.


Thanks,
Chandrashekar Singh.

One more thing, does CAS have a built-in LDAP server or do I need to 
setup LDAP server somewhere else? The only reason I am considering LDAP 
is because I would like to authenticate bugzilla users using CAS.



Thanks,
Chandrashekar Singh.

--
You are currently subscribed to cas-user@lists.jasig.org as: 
arch...@mail-archive.com
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user


[cas-user] CAS war overlay demo project fails to deploy on tomcat.

2015-02-25 Thread chandrashekar singh
Dear All,
I am attempting to test CAS with an ldap server. 

We am currently testing the war overlay demo project available from this 
website on Ubuntu 14.04

https://github.com/UniconLabs/simple-cas4-overlay-template

Running mvn clean package generates the target without error. However when 
attempting to deploy the resulting cas.war in tomcat we have the following in 
the catlina.out log file.
Please let us know if there are any binary ldap capable cas war that we can 
try. Our aim is just to test cas on ldap as a proof of concept.

INFO: Deploying web application archive 
/home/ubuntu/ldap/cas/tomcat/webapps/cas.war
log4j:WARN No appenders could be found for logger 
(org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.
SafeContextLoaderListener:
The Spring ContextLoaderListener we wrap threw on contextInitialized.
But for our having caught this error, the web application context would not 
have initialized.
org.springframework.beans.factory.BeanInitializationException: Could not load 
properties; nested exception is java.io.FileNotFoundException: 
/etc/cas/cas.properties (No such file or directory)
    at 
org.springframework.context.support.PropertySourcesPlaceholderConfigurer.postProcessBeanFactory(PropertySourcesPlaceholderConfigurer.java:147)
    at 
org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:681)
    at 
org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:656)
    at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:446)
    at 
org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:385)
    at 
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:284)
    at 
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
    at 
org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized_aroundBody0(SafeContextLoaderListener.java:75)
    at 
org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized_aroundBody1$advice(SafeContextLoaderListener.java:57)
    at 
org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized(SafeContextLoaderListener.java:1)
    at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5016)
    at 
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5524)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
    at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)
    at 
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1081)
    at 
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1877)
    at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.FileNotFoundException: /etc/cas/cas.properties (No such file 
or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.(FileInputStream.java:146)
    at java.io.FileInputStream.(FileInputStream.java:101)
    at 
sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)
    at 
sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188)
    at 
org.springframework.core.io.UrlResource.getInputStream(UrlResource.java:125)
    at 
org.springframework.core.io.support.PropertiesLoaderSupport.loadProperties(PropertiesLoaderSupport.java:181)
    at 
org.springframework.core.io.support.PropertiesLoaderSupport.mergeProperties(PropertiesLoaderSupport.java:161)
    at 
org.springframework.context.support.PropertySourcesPlaceholderConfigurer.postProcessBeanFactory(PropertySourcesPlaceholderConfigurer.java:138)
    ... 22 more
Feb 25, 2015 11:17:13 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error filterStart

 Thanks, 
Chandrashekar Singh

-- 
You are currently subscribed to cas-user@lists.jasig.org as: 
arch...@mail-archive.com
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Re: [cas-user] CAS war overlay demo project fails to deploy on tomcat.

2015-02-26 Thread chandrashekar singh
Dear All,

Thanks for the asistance. The second suggestion to copy the entire folder 
solved all of the issues.
 Thanks, 
Chandrashekar Singh
 

 On Wednesday, 25 February 2015, 11:37, Yannick MOLINET 
 wrote:
   

 #yiv1062320227 #yiv1062320227 -- _filtered #yiv1062320227 {panose-1:2 4 5 3 5 
4 6 3 2 4;} _filtered #yiv1062320227 {font-family:Calibri;panose-1:2 15 5 2 2 2 
4 3 2 4;} _filtered #yiv1062320227 {font-family:Consolas;panose-1:2 11 6 9 2 2 
4 3 2 4;} _filtered #yiv1062320227 {} _filtered #yiv1062320227 
{font-family:Garamond;panose-1:2 2 4 4 3 3 1 1 8 3;}#yiv1062320227 
#yiv1062320227 p.yiv1062320227MsoNormal, #yiv1062320227 
li.yiv1062320227MsoNormal, #yiv1062320227 div.yiv1062320227MsoNormal 
{margin:0cm;margin-bottom:.0001pt;font-size:12.0pt;}#yiv1062320227 a:link, 
#yiv1062320227 span.yiv1062320227MsoHyperlink 
{color:blue;text-decoration:underline;}#yiv1062320227 a:visited, #yiv1062320227 
span.yiv1062320227MsoHyperlinkFollowed 
{color:purple;text-decoration:underline;}#yiv1062320227 pre 
{margin:0cm;margin-bottom:.0001pt;font-size:10.0pt;}#yiv1062320227 
span.yiv1062320227PrformatHTMLCar {font-family:Consolas;}#yiv1062320227 
span.yiv1062320227EmailStyle19 {color:#1F497D;}#yiv1062320227 
.yiv1062320227MsoChpDefault {font-size:10.0pt;} _filtered #yiv1062320227 
{margin:70.85pt 70.85pt 70.85pt 70.85pt;}#yiv1062320227 
div.yiv1062320227WordSection1 {}#yiv1062320227 The /etc/cas/cas.properties 
refer in propertyFileConfigurer.xml is not found.    Create a /etc/cas folder 
and copy the content of the etc folder from the overlay-demo    Regards, 
Yannick    De : chandrashekar singh [mailto:chandrashekar1...@yahoo.com]
Envoyé : mercredi 25 février 2015 16:30
À : cas-user@lists.jasig.org
Objet : [cas-user] CAS war overlay demo project fails to deploy on tomcat.    
Dear All,    I am attempting to test CAS with an ldap server.    We am 
currently testing the war overlay demo project available from this website on 
Ubuntu 14.04    https://github.com/UniconLabs/simple-cas4-overlay-template    
Running mvn clean package generates the target without error. However when 
attempting to deploy the resulting cas.war in tomcat we have the following in 
the catlina.out log file.    Please let us know if there are any binary ldap 
capable cas war that we can try. Our aim is just to test cas on ldap as a proof 
of concept.       INFO: Deploying web application archive 
/home/ubuntu/ldap/cas/tomcat/webapps/cas.war
log4j:WARN No appenders could be found for logger 
(org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.
SafeContextLoaderListener:
The Spring ContextLoaderListener we wrap threw on contextInitialized.
But for our having caught this error, the web application context would not 
have initialized.
org.springframework.beans.factory.BeanInitializationException: Could not load 
properties; nested exception is java.io.FileNotFoundException: 
/etc/cas/cas.properties (No such file or directory)
    at 
org.springframework.context.support.PropertySourcesPlaceholderConfigurer.postProcessBeanFactory(PropertySourcesPlaceholderConfigurer.java:147)
    at 
org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:681)
    at 
org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:656)
    at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:446)
    at 
org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:385)
    at 
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:284)
    at 
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
    at 
org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized_aroundBody0(SafeContextLoaderListener.java:75)
    at 
org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized_aroundBody1$advice(SafeContextLoaderListener.java:57)
    at 
org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized(SafeContextLoaderListener.java:1)
    at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5016)
    at 
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5524)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
    at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)
    at 
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1081)
    at 
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1877)
    at

[cas-user] CAS with ldap

2015-02-26 Thread chandrashekar singh
lExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)
Caused by: org.xml.sax.SAXParseException; lineNumber: 21; columnNumber: 43; The 
prefix "p" for attribute "p:principalIdAttribute" associated with an element 
type "bean" is not bound.
 at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown 
Source)
    at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
    at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 Source)
    at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
    at 
org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)
    at 
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388)
    ... 29 more
Feb 26, 2015 12:31:29 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error filterStart



 Thanks, 
Chandrashekar Singh

-- 
You are currently subscribed to cas-user@lists.jasig.org as: 
arch...@mail-archive.com
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Re: [cas-user] CAS with ldap

2015-02-26 Thread chandrashekar singh
ator configured, but no 
validate flag has been set
    at 
org.ldaptive.pool.AbstractConnectionPool.initialize(AbstractConnectionPool.java:234)
    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:606)
    at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1638)
    at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1579)
    at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1509)
    ... 70 more
 Thanks, 
Chandrashekar Singh
 

 On Thursday, 26 February 2015, 13:21, Dmitriy Kopylenko 
 wrote:
   

 I think the fundamental problem is that the documentation config snippets show 
the use of pseudo ‘p’ XML namespace, but do not show the “beans element header” 
and the need for it to be declared there, assuming folks 100% familiarity with 
Spring. Please note, this is not a criticism of anyone, just pointing out my 
observation.
For this error, please check the top go your app ctx file to have ‘p’ namespace 
declared like so:
http://www.springframework.org/schema/beans"       
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"       
xmlns:p="http://www.springframework.org/schema/p”
...

On Feb 26, 2015, at 11:44 AM, chandrashekar singh  
wrote:
Dear all,
We are attempting to test ldap with cas. 

Our cas server runs on Tomcat 7 over Ubuntu 14.04. (Java version is 1.7.0_75)
Our LDAP server is actually a windows 2012 server. The windows server is 
accessed through IP because we have not setup a dns name for it since this is 
just a test run.
We followed the guide from 
http://jasig.github.io/cas/4.0.x/installation/LDAP-Authentication.html. We 
assume that the placeholders to be replaced are located between { and }. 

We would specifically need help with the following questions:
Is our assumption for the placeholder correct?Is there any completed, or 
working examples of cas configuration for windows active directory (ldap)?
We are having the following error. This is telling us that there is a problem 
with the tag. But we are not sure how to fix this.
Any assistance is appreciated. 
Feb 26, 2015 12:31:19 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive 
/home/ubuntu/ldap/cas/tomcat/webapps/cas.war
log4j:WARN No appenders could be found for logger 
(org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.
SafeContextLoaderListener:
The Spring ContextLoaderListener we wrap threw on contextInitialized.
But for our having caught this error, the web application context would not 
have initialized.
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 21 
in XML document from ServletContext resource 
[/WEB-INF/deployerConfigContext.xml] is invalid; nested exception is 
org.xml.sax.SAXParseException; lineNumber: 21; columnNumber: 43; The prefix "p" 
for attribute "p:principalIdAttribute" associated with an element type "bean" 
is not bound.
    at 
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)
    at 
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)
    at 
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
    at 
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174)
    at 
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209)
    at 
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)
    at 
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125)
    at 
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
    at 
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:131)
    at 
org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:522)
    at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContex

[cas-user] Enable logging

2015-03-05 Thread chandrashekar singh
Dear all,
We are testing CAS 4.0 with database authentication and we feel all of our 
configuration is correct however we keep getting invalid credentials. 

We would like to enable debugging to ensure that the jdbc connection is 
actually working. Please say how to enable this level of logging or debug 
statements.
 Thanks, 
Chandrashekar SinghUniversity of Guyana
-- 
You are currently subscribed to cas-user@lists.jasig.org as: 
arch...@mail-archive.com
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user