here is ticketregistry.xml
On Fri, Feb 11, 2011 at 11:18 PM, Ren standist <[email protected]> wrote:
> ticketregistry.xml should works for it create table in database
>
>
> On Fri, Feb 11, 2011 at 11:16 PM, Ren standist <[email protected]> wrote:
>
>> turn up logging for org.hibernate
>>
>> when user logged there is nothing ,it seem like ticketregistry.xml not
>> work at all.
>>
>>
>> On Fri, Feb 11, 2011 at 11:01 PM, Scott Battaglia <
>> [email protected]> wrote:
>>
>>> We're using Hibernate for persistence so you'd need to turn up logging
>>> for org.hibernate
>>>
>>>
>>>
>>> On Fri, Feb 11, 2011 at 9:55 AM, Ren standist <[email protected]>wrote:
>>>
>>>> change to
>>>> <logger name="org.jasig.cas.ticket.registry.JpaTicketRegistry"
>>>> additivity="true">
>>>> <level value="debug" />
>>>> <appender-ref ref="jpa"/>
>>>> </logger>
>>>>
>>>> and there is nothing in jpa.log
>>>>
>>>> On Fri, Feb 11, 2011 at 10:43 PM, Ren standist <[email protected]>wrote:
>>>>
>>>>> change to
>>>>> <logger name="org.jasig.cas.ticket.registry.JpaTicketRegistry">
>>>>> <level value="INFO" />
>>>>> </logger>
>>>>>
>>>>> and got nothing about JpaTicketRegistry
>>>>>
>>>>> On Fri, Feb 11, 2011 at 10:27 PM, Ren standist <[email protected]>wrote:
>>>>>
>>>>>> when i add following to log4j.xml ,got error message ERROR No appender
>>>>>> named [jpa] could be found.
>>>>>> <logger name="org.jasig.cas.ticket.registry.JpaTicketRegistry"
>>>>>> additivity="false">
>>>>>> <level value="INFO" />
>>>>>> <appender-ref ref="jpa"/>
>>>>>> </logger>
>>>>>>
>>>>>>
>>>>>> On Fri, Feb 11, 2011 at 9:47 PM, Ren standist <[email protected]>wrote:
>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Fri, Feb 11, 2011 at 9:16 PM, Marvin Addison <
>>>>>>> [email protected]> wrote:
>>>>>>>
>>>>>>>> > First question how tables was created ?
>>>>>>>>
>>>>>>>> Hibernate schema generation feature.
>>>>>>>>
>>>>>>>> > When user login there is nothing is table TICKETGRANTINGTICKET
>>>>>>>> ,but user
>>>>>>>> > expire policy works fine.
>>>>>>>> > Is there a way to find the problem ,why not insert into table?
>>>>>>>>
>>>>>>>> Can you share your deployerConfigContext.xml file and relevant
>>>>>>>> application logs? See https://wiki.jasig.org/display/CASUM/Logging
>>>>>>>> for help with logging configuration.
>>>>>>>>
>>>>>>>> M
>>>>>>>>
>>>>>>>> --
>>>>>>>> You are currently subscribed to [email protected] as:
>>>>>>>> [email protected]
>>>>>>>> To unsubscribe, change settings or access archives, see
>>>>>>>> http://www.ja-sig.org/wiki/display/JSG/cas-user
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>> --
>>>> You are currently subscribed to [email protected] as:
>>>> [email protected]
>>>>
>>>>
>>>>
>>>>
>>>> To unsubscribe, change settings or access archives, see
>>>> http://www.ja-sig.org/wiki/display/JSG/cas-user
>>>>
>>>>
>>> --
>>>
>>> You are currently subscribed to [email protected] as:
>>> [email protected]
>>>
>>> To unsubscribe, change settings or access archives, see
>>> http://www.ja-sig.org/wiki/display/JSG/cas-user
>>>
>>>
>>
>
--
You are currently subscribed to [email protected] as:
[email protected]
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/cas-user
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd">
<!-- Ticket Registry -->
<bean id="ticketRegistry" class="org.jasig.cas.ticket.registry.JpaTicketRegistry">
<constructor-arg index="0" ref="entityManagerFactory" />
</bean>
<bean id="entityManagerFactory"
class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
<property name="dataSource" ref="dataSource"/>
<property name="jpaVendorAdapter">
<bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
<property name="generateDdl" value="true"/>
<property name="showSql" value="true" />
</bean>
</property>
<property name="jpaProperties">
<props>
<prop key="hibernate.dialect">org.hibernate.dialect.OracleDialect</prop>
<prop key="hibernate.hbm2ddl.auto">update</prop>
</props>
</property>
</bean>
<bean id="transactionManager"
class="org.springframework.orm.jpa.JpaTransactionManager"
p:entityManagerFactory-ref="entityManagerFactory"
/>
<tx:annotation-driven transaction-manager="transactionManager"/>
<!-- TICKET REGISTRY CLEANER -->
<bean id="ticketRegistryCleaner"
class="org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner"
p:ticketRegistry-ref="ticketRegistry"
p:lock-ref="cleanerLock"
/>
<bean id="cleanerLock"
class="org.jasig.cas.ticket.registry.support.JdbcLockingStrategy"
p:uniqueId="${host.name}"
p:platform="SQL92"
p:applicationId="cas-ticket-registry-cleaner"
p:dataSource-ref="dataSource"
/>
<!--
p:platform="${ticket.cleaner.database.platform}"
-->
<bean id="ticketRegistryCleanerJobDetail"
class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"
p:targetObject-ref="ticketRegistryCleaner"
p:targetMethod="clean"
/>
<bean id="periodicTicketRegistryCleanerTrigger"
class="org.springframework.scheduling.quartz.SimpleTriggerBean"
p:jobDetail-ref="ticketRegistryCleanerJobDetail"
p:startDelay="20000"
p:repeatInterval="1800000"
/>
</beans>