A RTFM for me ^^
as per the doc: "Ehcache manages the internal eviction policy of cached 
objects via timeToIdle and timeToLive settings. This results of having *no 
need* for a Ticket Registry Cleaner."
soo everything's ok here,
just updating in case someone have the same error.

On Sunday, June 7, 2015 at 11:05:20 AM UTC+2, Golgoth wrote:
>
> Ok i changed my ticketRegistry to an ehCache based and removed any 
> reference to ticketRegistryCleaner in ticketRegistry.xml and now everything 
> seems work.
> My question beeing is this by design because ehCache deals with cleaning 
> tickets itself or do i risk disk exhaustion because of cache not beeing 
> cleaned?
> If i have to implements ticketRegistryCleaner can someone please point me 
> to the right one in the documentation?
>
>
> On Wednesday, June 3, 2015 at 1:30:08 PM UTC+2, Golgoth wrote:
>>
>> Hi there,
>> i'm trying to make ClearPass work following this doc: 
>> http://jasig.github.io/cas/4.0.x/integration/ClearPass.html
>> and this source for files:
>>  
>> https://github.com/Jasig/cas/tree/4.0.x/cas-server-webapp/src/main/webapp/WEB-INF/spring-configuration
>>  
>> <https://github.com/Jasig/cas/tree/4.0.x/cas-server-webapp/src/main/webapp/WEB-INF/spring-configuration>
>> At first when starting the webapp on tomcat 7 i had this error, even 
>> though server.name was defined in cas.properties
>> Could not resolve placeholder 'server.name' in string value "${
>> server.name}"
>> so i added this to clearpass-configuration.xml
>> <bean 
>> class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
>>   <property name="location">
>>     <value>/WEB-INF/cas.properties</value>
>>   </property>
>> </bean>
>> then i had this error:
>> jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: 
>> javax/servlet/Servlet.class
>> so i excluded it in my pom.xml like that:
>> <?xml version="1.0" encoding="UTF-8"?>
>> <project xmlns="http://maven.apache.org/POM/4.0.0";
>>          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
>> http://maven.apache.org/xsd/maven-4.0.0.xsd ">
>>     <modelVersion>4.0.0</modelVersion>
>>     <groupId>myorg.mycountry</groupId>
>>     <artifactId>cas4-server-overlay</artifactId>
>>     <packaging>war</packaging>
>>     <version>1.4</version>
>>
>>     <build>
>>         <plugins>
>>             <plugin>
>>                 <groupId>org.apache.maven.plugins</groupId>
>>                 <artifactId>maven-war-plugin</artifactId>
>>                 <version>2.6</version>
>>                 <configuration>
>>                     <warName>cas-server</warName>
>>                     <overlays>
>>                         <overlay>
>>                             <groupId>org.jasig.cas</groupId>
>>                             <artifactId>cas-server-webapp</artifactId>
>>                             <excludes>
>>                                 
>> <exclude>WEB-INF/classes/log4j.xml</exclude>
>>                             </excludes>
>>                         </overlay>
>>                     </overlays>
>>                 </configuration>
>>             </plugin>
>>             <plugin>
>>                 <groupId>org.apache.maven.plugins</groupId>
>>                 <artifactId>maven-compiler-plugin</artifactId>
>>                 <version>3.2</version>
>>             </plugin>
>>             <plugin>
>>                 <groupId>org.apache.tomcat.maven</groupId>
>>                 <artifactId>tomcat7-maven-plugin</artifactId>
>>                 <version>2.2</version>
>>                 <configuration>
>>                         
>> <url>https://myhost.mydomain:myport/manager/text</url>
>>                         <server>TomcatServer</server>
>>                         <path>/cas-server</path>
>>                 </configuration>
>>             </plugin>
>>         </plugins>
>>         <finalName>cas-server</finalName>
>>     </build>
>>
>>     <dependencies>
>>         <dependency>
>>             <groupId>org.jasig.cas</groupId>
>>             <artifactId>cas-server-webapp</artifactId>
>>             <version>${cas.version}</version>
>>             <type>war</type>
>>             <scope>runtime</scope>
>>         </dependency>
>>         <dependency>
>>             <groupId>org.jasig.cas</groupId>
>>             <artifactId>cas-server-support-ldap</artifactId>
>>             <version>${cas.version}</version>
>>         </dependency>
>>         <dependency>
>>             <groupId>org.jasig.cas</groupId>
>>             <artifactId>cas-server-support-saml</artifactId>
>>             <version>${cas.version}</version>
>>         </dependency>
>>         <dependency>
>>           <groupId>org.jasig.cas</groupId>
>>           <artifactId>cas-server-extension-clearpass</artifactId>
>>           <version>${cas.version}</version>
>> *          <exclusions>*
>> *             <exclusion>*
>> *                <groupId>javax.servlet</groupId>*
>> *                <artifactId>servlet-api</artifactId>*
>> *             </exclusion>*
>> *          </exclusions>*
>>           <scope>runtime</scope>
>>         </dependency>
>>     </dependencies>
>>
>>     <properties>
>>         <cas.version>4.0.1</cas.version>
>>         <maven.compiler.source>1.7</maven.compiler.source>
>>         <maven.compiler.target>1.7</maven.compiler.target>
>>         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
>>     </properties>
>>     <repositories>
>>         <repository>
>>             <id>sonatype-releases</id>
>>             <url>http://oss.sonatype.org/content/repositories/releases/
>> </url>
>>         </repository>
>>         <repository>
>>             <id>sonatype-snapshots</id>
>>             <url>https://oss.sonatype.org/content/repositories/snapshots/
>> </url>
>>         </repository>
>>     </repositories>
>> </project>
>> then when i ran the webapp i got the following error:
>> 2015-06-03 12:52:58,535 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.BeanCreationException: Error creating 
>> bean with name 'ticketRegistryCleaner' defined in ServletContext resource 
>> [/WEB-INF/spring-configuration/ticketRegistry.xml]: Could not resolve 
>> matching constructor (hint: specify index/type/name arguments for simple 
>> parameters to avoid type ambiguities)
>>         at 
>> org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:250)
>>         at 
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1075)
>>         at 
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:979)
>>         at 
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:487)
>>         at 
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
>>         at 
>> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)
>>         at 
>> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
>>         at 
>> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)
>>         at 
>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
>>         at 
>> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:628)
>>         at 
>> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
>>         at 
>> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
>>         at 
>> org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)
>>         at 
>> org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)
>>         at 
>> org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
>>         at 
>> org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized(SafeContextLoaderListener.java:75)
>>         at 
>> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4973)
>>         at 
>> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)
>>         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:632)
>>         at 
>> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1073)
>>         at 
>> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
>>         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)
>>
>> and since i'm not used to spring i have no clue where a constructor for 
>> this class should be specified?
>> for instance my ticketRegistry.xml is as follow
>> <?xml version="1.0" encoding="UTF-8"?>
>> <!--
>>     Licensed to Apereo under one or more contributor license
>>     agreements. See the NOTICE file distributed with this work
>>     for additional information regarding copyright ownership.
>>     Apereo licenses this file to you under the Apache License,
>>     Version 2.0 (the "License"); you may not use this file
>>     except in compliance with the License.  You may obtain a
>>     copy of the License at the following location:
>>       http://www.apache.org/licenses/LICENSE-2.0
>>     Unless required by applicable law or agreed to in writing,
>>     software distributed under the License is distributed on an
>>     "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
>>     KIND, either express or implied.  See the License for the
>>     specific language governing permissions and limitations
>>     under the License.
>> -->
>> <beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>        xmlns:p="http://www.springframework.org/schema/p";
>>        xmlns:c="http://www.springframework.org/schema/c";
>>        xmlns="http://www.springframework.org/schema/beans";
>>        xsi:schemaLocation="http://www.springframework.org/schema/beans 
>> http://www.springframework.org/schema/beans/spring-beans.xsd";>
>>     <description>
>>         Configuration for the default TicketRegistry which stores the 
>> tickets in-memory and cleans them out as specified
>>         intervals.
>>     </description>
>>
>>     <!-- Ticket Registry -->
>>     <bean id="ticketRegistryValue" 
>> class="org.jasig.cas.ticket.registry.DefaultTicketRegistry" />
>>
>>     <!--Quartz -->
>>     <!-- TICKET REGISTRY CLEANER -->
>>     <bean id="ticketRegistryCleaner" 
>> class="org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner"
>>           
>> c:centralAuthenticationService-ref="centralAuthenticationService"
>>           c:ticketRegistry-ref="ticketRegistry"/>
>>
>>     <bean id="jobDetailTicketRegistryCleaner"
>>           
>> class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"
>>           p:targetObject-ref="ticketRegistryCleaner"
>>           p:targetMethod="clean"/>
>>
>>     <bean id="triggerJobDetailTicketRegistryCleaner"
>>           
>> class="org.springframework.scheduling.quartz.SimpleTriggerFactoryBean"
>>           p:jobDetail-ref="jobDetailTicketRegistryCleaner"
>>           p:startDelay="20000"
>>           p:repeatInterval="5000000"/>
>> </beans>
>> and the ticketRegistry conf in clearpass-configuration.xml is like that
>>   <bean id="ticketRegistry" 
>> class="org.jasig.cas.extension.clearpass.TicketRegistryDecorator"
>>     c:actualTicketRegistry-ref="ticketRegistryValue" 
>> c:cache-ref="encryptedMap" />
>>
>>
>>
>>
>> -- 
>> You are currently subscribed to cas-user@lists.jasig.org as: 
>> jasig-cas-user+garchive-5...@googlegroups.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: 
> jasig-cas-user+garchive-5...@googlegroups.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

Reply via email to