Hi all!

I'm trying to configure CAS so I can store the login/password of all users
in a MySQL database. So I've followed the JDBC manual (
https://wiki.jasig.org/display/CASUM/JDBC), but it seems I'm missing
something.

There are the relevant parts of my deployerConfigContext.xml file:

<?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:sec="http://www.springframework.org/schema/security";
       xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
       http://www.springframework.org/schema/security
http://www.springframework.org/schema/security/spring-security-3.0.xsd";>

       [...]

       <bean id="authenticationManager"

class="org.jasig.cas.authentication.AuthenticationManagerImpl">
                <property name="authenticationHandlers">
                        <list>
                                <bean
class="org.jasig.cas.adaptors.jdbc.SearchModeSearchDatabaseAuthenticationHandler">
                                    <property
name="tableUsers"><value>users</value></property>
                                    <property
name="fieldUser"><value>login</value></property>
                                    <property
name="fieldPassword"><value>password</value></property>
                                    <property name="dataSource"
ref="dataSource"/>
                                </bean>
                        </list>
                </property>
        </bean>

        [...]

        <bean id="dataSource"
class="org.apache.commons.dbcp.BasicDataSource">
            <property name="driverClassName">
               <value>com.mysql.jdbc.Driver</value>
             </property>
             <property name="url">
               <value>jdbc:mysql://localhost:3306/cas</value>
             </property>
             <property name="username"><value>cas</value></property>
             <property name="password"><value>pass</value></property>
        </bean>
</beans>

The problem is that once I open the CAS page I get a 404 error page with
this message: Required resource () is not available.

I noticed once I issue 'mvn clean package' at the root pom.xml file I get
these warnings:

[WARNING] Using platform encoding (UTF-8 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory
/root/cas-local/src/main/resources
Downloading:
http://oss.sonatype.org/content/repositories/releases//org/opensaml/opensaml/1.1b/opensaml-1.1b.pom
[WARNING] Unable to get resource 'org.opensaml:opensaml:pom:1.1b' from
repository ja-sig (http://oss.sonatype.org/content/repositories/releases/):
Error transferring file: oss.sonatype.org
Downloading:
http://developer.ja-sig.org/maven2/org/opensaml/opensaml/1.1b/opensaml-1.1b.pom
[WARNING] Unable to get resource 'org.opensaml:opensaml:pom:1.1b' from
repository jasig-repository (http://developer.ja-sig.org/maven2): Error
transferring file: developer.ja-sig.org
Downloading:
http://repository.jboss.org/nexus/content/groups/public-jboss//org/opensaml/opensaml/1.1b/opensaml-1.1b.pom
[WARNING] Unable to get resource 'org.opensaml:opensaml:pom:1.1b' from
repository jboss (
http://repository.jboss.org/nexus/content/groups/public-jboss/): Error
transferring file: repository.jboss.org
Downloading:
http://repo1.maven.org/maven2/org/opensaml/opensaml/1.1b/opensaml-1.1b.pom
[WARNING] Unable to get resource 'org.opensaml:opensaml:pom:1.1b' from
repository central (http://repo1.maven.org/maven2): Error transferring
file: repo1.maven.org

I don't know whether it has something to do with it, but the fact is that
the opensaml-1.1b.pom file never gets downloaded. I can't see one of the
links either (
http://www.helios-technologies.com/wiki/?l=en&p=cas/CAS_JDBC_Authentication_Handler_Setup)
as it returns an error. I see nothing in the catalina.out logs neither.

Does anyone know why does this happen? Eventually any solution to fix it?

Thanks a lot!

Regards,

Alberto

-- 
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

Reply via email to