[cas-user] Where is persistence.xml in 4.0.x (JPA Ticket Registry)

2015-05-27 Thread Christian Brunotte
Hello

I was following the JPA Ticket Registiry tutorial on
  https://jasig.github.io/cas/4.0.x/installation/JPA-Ticket-Registry.html
but had problems getting Spring+Hibernate to work.

In CAS 3.x there was as persistence.xml that was inherited from 
cas-server-webapp when using the Maven overlay system:

  
https://github.com/Jasig/cas/blob/3.6.x/cas-server-webapp/src/main/resources/META-INF/persistence.xml

This file has vanished in 4.0.x:

  https://github.com/Jasig/cas/tree/4.0.x/cas-server-webapp/src/main/resources/

Yet, it seems to be necessary:

  org.springframework.beans.factory.BeanCreationException: 
Error creating bean with name 'entityManagerFactory' defined in 
ServletContext resource [/WEB-INF/spring-configuration/ticketRegistry.xml]:
  Invocation of init method failed; nested exception is 
java.lang.IllegalStateException: 
No persistence units parsed from {classpath*:META-INF/persistence.xml}

Some sources on the net suggests that the persistence.xml might be
optional but at least it does not work with the above tutorial and
the latest versions of Hibernate and Spring in the pom.xml.


NB: I could only get CAS 4.0.1 to work with Hibernate 4.1.0.Final, not
4.1.10.Final. It would be nice if the proper value of 
${hibernate.core.version} could be either documented in the tutorial or 
inherited from the Maven Overlay. Or should that be the case and I did
something wrong?

Best Regards

-christian-

-- 
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] Where is persistence.xml in 4.0.x (JPA Ticket Registry)

2015-05-27 Thread Misagh Moayyed
This is now handled by the packagesToScan setting. See this file for reference:
https://github.com/Jasig/cas/blob/master/cas-server-webapp-support/src/test/resources/jpaTestApplicationContext.xml

I have updated the docs.

CAS should work with all versions of Hibernate. What error did you get? 

- Misagh

> On May 27, 2015, at 11:15 AM, Christian Brunotte  wrote:
> 
> Hello
> 
> I was following the JPA Ticket Registiry tutorial on
>  https://jasig.github.io/cas/4.0.x/installation/JPA-Ticket-Registry.html
> but had problems getting Spring+Hibernate to work.
> 
> In CAS 3.x there was as persistence.xml that was inherited from 
> cas-server-webapp when using the Maven overlay system:
> 
>  
> https://github.com/Jasig/cas/blob/3.6.x/cas-server-webapp/src/main/resources/META-INF/persistence.xml
> 
> This file has vanished in 4.0.x:
> 
>  https://github.com/Jasig/cas/tree/4.0.x/cas-server-webapp/src/main/resources/
> 
> Yet, it seems to be necessary:
> 
>  org.springframework.beans.factory.BeanCreationException: 
>Error creating bean with name 'entityManagerFactory' defined in 
> ServletContext resource [/WEB-INF/spring-configuration/ticketRegistry.xml]:
>  Invocation of init method failed; nested exception is 
> java.lang.IllegalStateException: 
>No persistence units parsed from {classpath*:META-INF/persistence.xml}
> 
> Some sources on the net suggests that the persistence.xml might be
> optional but at least it does not work with the above tutorial and
> the latest versions of Hibernate and Spring in the pom.xml.
> 
> 
> NB: I could only get CAS 4.0.1 to work with Hibernate 4.1.0.Final, not
> 4.1.10.Final. It would be nice if the proper value of 
> ${hibernate.core.version} could be either documented in the tutorial or 
> inherited from the Maven Overlay. Or should that be the case and I did
> something wrong?
> 
> Best Regards
> 
> -christian-
> 
> -- 
> You are currently subscribed to cas-user@lists.jasig.org as: 
> mmoay...@unicon.net
> 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] Adding additional login field

2015-05-27 Thread Jonathan Bell
I am trying to add a third login field.  I am getting a message at login  
"Credentials you provided are not supported by cas" Something obviously I am 
missing in the modification. 

This is what I have done

I created a new credentials class, with new getter/setter methods that extends 
usernamepasswordcredentials. 

Modified login-webflow.xml and changed the var name credentials to my 
credentials class. 
added binding property for new field. 

modified loginview.jsp to display new field. 
-- 
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] Adding additional login field

2015-05-27 Thread Dmitriy Kopylenko
What version of CAS and which authentication handler do you use?

Dmitriy.

> On May 27, 2015, at 8:59 AM, Jonathan Bell  wrote:
> 
> I am trying to add a third login field.  I am getting a message at login  
> "Credentials you provided are not supported by cas" Something obviously I am 
> missing in the modification. 
> 
> This is what I have done
> 
> I created a new credentials class, with new getter/setter methods that 
> extends usernamepasswordcredentials. 
> 
> Modified login-webflow.xml and changed the var name credentials to my 
> credentials class. 
> added binding property for new field. 
> 
> modified loginview.jsp to display new field. 
> -- 
> You are currently subscribed to cas-user@lists.jasig.org as: 
> dkopyle...@unicon.net
> 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



Re: [cas-user] Adding additional login field

2015-05-27 Thread Jonathan Bell

Sorry should have included that 3.5

jon

On 2015-05-27 6:11 AM, Dmitriy Kopylenko wrote:

What version of CAS and which authentication handler do you use?

Dmitriy.


On May 27, 2015, at 8:59 AM, Jonathan Bell  wrote:

I am trying to add a third login field.  I am getting a message at login  
"Credentials you provided are not supported by cas" Something obviously I am 
missing in the modification.

This is what I have done

I created a new credentials class, with new getter/setter methods that extends 
usernamepasswordcredentials.

Modified login-webflow.xml and changed the var name credentials to my 
credentials class.
added binding property for new field.

modified loginview.jsp to display new field.
--
You are currently subscribed to cas-user@lists.jasig.org as: 
dkopyle...@unicon.net
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


Re: [cas-user] Adding additional login field

2015-05-27 Thread Jonathan Bell
too quick on the enter. 
|org.jasig.cas.adaptors.jdbc.QueryDatabaseAuthenticationHandler|

On 2015-05-27 6:11 AM, Dmitriy Kopylenko wrote:
> What version of CAS and which authentication handler do you use?
>
> Dmitriy.
>
>> On May 27, 2015, at 8:59 AM, Jonathan Bell  wrote:
>>
>> I am trying to add a third login field.  I am getting a message at login  
>> "Credentials you provided are not supported by cas" Something obviously I am 
>> missing in the modification.
>>
>> This is what I have done
>>
>> I created a new credentials class, with new getter/setter methods that 
>> extends usernamepasswordcredentials.
>>
>> Modified login-webflow.xml and changed the var name credentials to my 
>> credentials class.
>> added binding property for new field.
>>
>> modified loginview.jsp to display new field.
>> -- 
>> You are currently subscribed to cas-user@lists.jasig.org as: 
>> dkopyle...@unicon.net
>> 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


Re: [cas-user] Adding additional login field

2015-05-27 Thread Dmitriy Kopylenko
Seems like the authentication manager is failing to recognize your 
UsernamePasswordCredentials subclass by running this piece of code:

https://github.com/Jasig/cas/blob/v3.5.3/cas-server-core/src/main/java/org/jasig/cas/authentication/handler/support/AbstractUsernamePasswordAuthenticationHandler.java#L138
 


The goal here is to figure out why. I’d personally step through a debugger, as 
there are no useful log instrumentation in authentication manager impl., etc.

D.

> On May 27, 2015, at 9:16 AM, Jonathan Bell  wrote:
> 
> too quick on the enter. 
> org.jasig.cas.adaptors.jdbc.QueryDatabaseAuthenticationHandler
> 
> On 2015-05-27 6:11 AM, Dmitriy Kopylenko wrote:
>> What version of CAS and which authentication handler do you use?
>> 
>> Dmitriy.
>> 
>>> On May 27, 2015, at 8:59 AM, Jonathan Bell  
>>>  wrote:
>>> 
>>> I am trying to add a third login field.  I am getting a message at login  
>>> "Credentials you provided are not supported by cas" Something obviously I 
>>> am missing in the modification. 
>>> 
>>> This is what I have done
>>> 
>>> I created a new credentials class, with new getter/setter methods that 
>>> extends usernamepasswordcredentials. 
>>> 
>>> Modified login-webflow.xml and changed the var name credentials to my 
>>> credentials class. 
>>> added binding property for new field. 
>>> 
>>> modified loginview.jsp to display new field. 
>>> -- 
>>> You are currently subscribed to cas-user@lists.jasig.org 
>>>  as: dkopyle...@unicon.net 
>>> 
>>> 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: 
> dkopyle...@unicon.net
> 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

Re: [cas-user] Adding additional login field

2015-05-27 Thread Jay
Hi Jon

Yes look into the error stacktrace and start to debug from that class as
suggested.

I have used a similar 3rd field for OTP and had my own credential
configured like yours...

And I had my own extended AuthenticationHandler as below where I handled my
credential *OTPUsernamePasswordCredential  *

Hope this would give some idea

public class MyRadiusAuthenticationHandler extends
AbstractUsernamePasswordAuthenticationHandler {

/** Array of RADIUS servers to authenticate against. */
@NotNull
@Size(min = 1)
private List servers;

/**
 * Determines whether to fail over to the next configured RadiusServer if
there was an exception.
 */
private boolean failoverOnException;

/**
 * Determines whether to fail over to the next configured RadiusServer if
there was an authentication failure.
 */
private boolean failoverOnAuthenticationFailure;

@Override
protected final HandlerResult authenticateUsernamePasswordInternal(final
UsernamePasswordCredential credential) throws GeneralSecurityException,
PreventedException {

*OTPUsernamePasswordCredential *otpCredential = null;

if (credential instanceof OTPUsernamePasswordCredential) {
otpCredential = (OTPUsernamePasswordCredential) credential;
}

final String username = otpCredential.getUsername();
for (final RadiusServer radiusServer : this.servers) {
logger.debug("Attempting to authenticate {} at {}", username, radiusServer);
try {
if (radiusServer.authenticate(username, otpCredential.getOtp())) {
return createHandlerResult(otpCredential, new SimplePrincipal(username),
null);
}

if (!this.failoverOnAuthenticationFailure) {
throw new FailedLoginException();
}
logger.debug("failoverOnAuthenticationFailure enabled -- trying next
server");
} catch (final PreventedException e) {
if (!this.failoverOnException) {
throw e;
}
logger.warn("failoverOnException enabled -- trying next server.", e);
}
}
throw new FailedLoginException();
}

/**
 * Determines whether to fail over to the next configured RadiusServer if
there was an authentication failure.
 *
 * @param failoverOnAuthenticationFailure
 *boolean on whether to failover or not.
 */
public final void setFailoverOnAuthenticationFailure(final boolean
failoverOnAuthenticationFailure) {
this.failoverOnAuthenticationFailure = failoverOnAuthenticationFailure;
}

/**
 * Determines whether to fail over to the next configured RadiusServer if
there was an exception.
 *
 * @param failoverOnException
 *boolean on whether to failover or not.
 */
public final void setFailoverOnException(final boolean failoverOnException)
{
this.failoverOnException = failoverOnException;
}

public final void setServers(final List servers) {
this.servers = servers;
}
}


Cheers
Jay

On Wed, May 27, 2015 at 2:24 PM, Dmitriy Kopylenko 
wrote:

> Seems like the authentication manager is failing to recognize your
> UsernamePasswordCredentials subclass by running this piece of code:
>
>
> https://github.com/Jasig/cas/blob/v3.5.3/cas-server-core/src/main/java/org/jasig/cas/authentication/handler/support/AbstractUsernamePasswordAuthenticationHandler.java#L138
>
> The goal here is to figure out why. I’d personally step through a
> debugger, as there are no useful log instrumentation in authentication
> manager impl., etc.
>
> D.
>
> On May 27, 2015, at 9:16 AM, Jonathan Bell  wrote:
>
>  too quick on the enter.
> org.jasig.cas.adaptors.jdbc.QueryDatabaseAuthenticationHandler
>
> On 2015-05-27 6:11 AM, Dmitriy Kopylenko wrote:
>
> What version of CAS and which authentication handler do you use?
>
> Dmitriy.
>
>
>  On May 27, 2015, at 8:59 AM, Jonathan Bell  
>  wrote:
>
> I am trying to add a third login field.  I am getting a message at login  
> "Credentials you provided are not supported by cas" Something obviously I am 
> missing in the modification.
>
> This is what I have done
>
> I created a new credentials class, with new getter/setter methods that 
> extends usernamepasswordcredentials.
>
> Modified login-webflow.xml and changed the var name credentials to my 
> credentials class.
> added binding property for new field.
>
> modified loginview.jsp to display new field.
> --
> You are currently subscribed to cas-user@lists.jasig.org as: 
> dkopyle...@unicon.net
> 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: 
> dkopyle...@unicon.net
> 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: 
> india@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: 
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] Where is persistence.xml in 4.0.x (JPA Ticket Registry)

2015-05-27 Thread Christian Brunotte
Hallo

When using packagesToScan, it works fine without persistence.xml!

Did you only update the dev/4.1 or also the 4.0 documentation? Because it's not 
yet there and 4.0 seems to be the current stable.

BTW, the 4.1 docs also add org.jasig.cas.adaptors.jdbc to the list which is not
in your example. Should I add it as well?

Hibernate 4.1.0.Final works fine now, Hibernate 4.3.10.Final, the latest Final,
gives the following exception:

java.lang.NoSuchMethodError: 
javax.persistence.JoinTable.indexes()[Ljavax/persistence/Index;
at 
org.hibernate.cfg.AnnotationBinder.bindJoinedTableAssociation(AnnotationBinder.java:2412)
at 
org.hibernate.cfg.AnnotationBinder.processElementAnnotations(AnnotationBinder.java:2140)
at 
org.hibernate.cfg.AnnotationBinder.processIdPropertiesIfNotAlready(AnnotationBinder.java:963)
at 
org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:796)
at 
org.hibernate.cfg.Configuration$MetadataSourceQueue.processAnnotatedClassesQueue(Configuration.java:3845)
at 
org.hibernate.cfg.Configuration$MetadataSourceQueue.processMetadata(Configuration.java:3799)
at 
org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1412)
at 
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1846)
at 
org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:857)
at 
org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:850)
at 
org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.withTccl(ClassLoaderServiceImpl.java:425)
at 
org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:849)
at 
org.hibernate.jpa.HibernatePersistenceProvider.createContainerEntityManagerFactory(HibernatePersistenceProvider.java:152)
at 
org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:67)
at 
org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:288)
at 
org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:310)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1571)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1509)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)
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.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1117)
at 
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:922)
at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
...

Wouldn't it be better to put a notice on the web page that people should
use the same hibernate.core.version property as used in the pom.xml of the
CAS version they are going to use? Just to avoid any incompatibilities.

best regards,

-christian-


Am Wed, 27 May 2015 12:02:37 +0400
schrieb Misagh Moayyed :

> This is now handled by the packagesToScan setting. See this file for 
> reference:
> https://github.com/Jasig/cas/blob/master/cas-server-webapp-support/src/test/resources/jpaTestApplicationContext.xml
> 
> I have updated the docs.
> 
> CAS should work with all versions of Hibernate. What error did you get? 
> 
> - Misagh
> 
> > On May 27, 2015, at 11:15 AM, Christian Brunotte  wrote:
> > 
> > Hello
> > 
> > I was following the JPA Ticket Registiry tutorial on
> >  https://jasig.github.io/cas/4.0.x/installation/JPA-Ticket-Registry.html
> > but had problems getting Spring+Hibernate to work.
> > 
> > In CAS 3.x there was as persistence.xml that was inherited from 
> > cas-server-webapp when using the Maven overlay system:
> > 
> >  
> > https://github.com/Jasig/cas/blob/3.6.x/cas-server-webapp/src/main/resources/META-INF/persi

Re: [cas-user] Where is persistence.xml in 4.0.x (JPA Ticket Registry)

2015-05-27 Thread Dmitriy Kopylenko
Hibernate 4.3 is the first version to implement the JPA 2.1 spec. And it's thus 
expecting the JPA 2.1 API jar on the classpath, not the JPA 2.0 API jar. Some 
“dependencies dance” might be required here (Maven excludes, etc.)

Cheers,
D.

> On May 27, 2015, at 10:02 AM, Christian Brunotte  wrote:
> 
> Hallo
> 
> When using packagesToScan, it works fine without persistence.xml!
> 
> Did you only update the dev/4.1 or also the 4.0 documentation? Because it's 
> not 
> yet there and 4.0 seems to be the current stable.
> 
> BTW, the 4.1 docs also add org.jasig.cas.adaptors.jdbc to the list which is 
> not
> in your example. Should I add it as well?
> 
> Hibernate 4.1.0.Final works fine now, Hibernate 4.3.10.Final, the latest 
> Final,
> gives the following exception:
> 
> java.lang.NoSuchMethodError: 
> javax.persistence.JoinTable.indexes()[Ljavax/persistence/Index;
>at 
> org.hibernate.cfg.AnnotationBinder.bindJoinedTableAssociation(AnnotationBinder.java:2412)
>at 
> org.hibernate.cfg.AnnotationBinder.processElementAnnotations(AnnotationBinder.java:2140)
>at 
> org.hibernate.cfg.AnnotationBinder.processIdPropertiesIfNotAlready(AnnotationBinder.java:963)
>at 
> org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:796)
>at 
> org.hibernate.cfg.Configuration$MetadataSourceQueue.processAnnotatedClassesQueue(Configuration.java:3845)
>at 
> org.hibernate.cfg.Configuration$MetadataSourceQueue.processMetadata(Configuration.java:3799)
>at 
> org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1412)
>at 
> org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1846)
>at 
> org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:857)
>at 
> org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:850)
>at 
> org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.withTccl(ClassLoaderServiceImpl.java:425)
>at 
> org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:849)
>at 
> org.hibernate.jpa.HibernatePersistenceProvider.createContainerEntityManagerFactory(HibernatePersistenceProvider.java:152)
>at 
> org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:67)
>at 
> org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:288)
>at 
> org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:310)
>at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1571)
>at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1509)
>at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)
>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.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1117)
>at 
> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:922)
>at 
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
>   ...
> 
> Wouldn't it be better to put a notice on the web page that people should
> use the same hibernate.core.version property as used in the pom.xml of the
> CAS version they are going to use? Just to avoid any incompatibilities.
> 
> best regards,
> 
> -christian-
> 
> 
> Am Wed, 27 May 2015 12:02:37 +0400
> schrieb Misagh Moayyed :
> 
>> This is now handled by the packagesToScan setting. See this file for 
>> reference:
>> https://github.com/Jasig/cas/blob/master/cas-server-webapp-support/src/test/resources/jpaTestApplicationContext.xml
>> 
>> I have updated the docs.
>> 
>> CAS should work with all versions of Hibernate. What error did you get? 
>> 
>> - Misagh
>> 
>>> On May 27, 2015, at 11:15 AM, Christian Brunott

Re:[cas-user] Adding additional login field

2015-05-27 Thread Jonathan Bell
Thanks for all the replies. 

As ususal it appears to be something more nebulous.  I got it working when I 
modified the usernamepasswordcredentials directly in ca-server-core to accept a 
third field. When I copied the classes into a separate package, they give the 
exception. 
It appears, that either i'm missing a property somewhere that needs to be 
updated to point to my package, or i failed to update another class to point to 
my package. 

Anyways, for now it works fine, although not ideal.
-- 
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