[cas-user] Re: Delivery Status Notification (Failure)

20 views
Skip to first unread message

carlos maddaleno cuellar

unread,
Jul 7, 2016, 12:32:04 PM7/7/16
to cas-...@apereo.org
Could someone help me im getting this error when i run the overlay project i have this on my deployerConfigContext.xml

<?xml version="1.0" encoding="UTF-8"?>


      <!--
    | The authentication manager defines security policy for authentication by specifying at a minimum
    | the authentication handlers that will be used to authenticate credential. While the AuthenticationManager
    | interface supports plugging in another implementation, the default PolicyBasedAuthenticationManager should
    | be sufficient in most cases.
    +-->
    <bean id="authenticationManager" class="org.jasig.cas.authentication.PolicyBasedAuthenticationManager">
        <constructor-arg>
            <map>
                <!--
                | IMPORTANT
                | Every handler requires a unique name.
                | If more than one instance of the same handler class is configured, you must explicitly
                | set its name to something other than its default name (typically the simple class name).
                -->
                
                <entry key-ref="dbAuthHandler"  value-ref="primaryPrincipalResolver" />
            </map>
        </constructor-arg>
 
        <!-- Uncomment the metadata populator to allow clearpass to capture and cache the password
             This switch effectively will turn on clearpass.
        <property name="authenticationMetaDataPopulators">
           <util:list>
              <bean class="org.jasig.cas.extension.clearpass.CacheCredentialsMetaDataPopulator"
                    c:credentialCache-ref="encryptedMap" />
           </util:list>
        </property>
        -->
 
        <!--
        | Defines the security policy around authentication. Some alternative policies that ship with CAS:
        |
        | * NotPreventedAuthenticationPolicy - all credential must either pass or fail authentication
        | * AllAuthenticationPolicy - all presented credential must be authenticated successfully
        | * RequiredHandlerAuthenticationPolicy - specifies a handler that must authenticate its credential to pass
        -->
        <property name="authenticationPolicy">
            <bean class="org.jasig.cas.authentication.AnyAuthenticationPolicy" />
        </property>
    </bean>
 
    <!-- Required for proxy ticket mechanism. -->
    <bean id="proxyAuthenticationHandler"
          class="org.jasig.cas.authentication.handler.support.HttpBasedServiceCredentialsAuthenticationHandler"
          p:httpClient-ref="httpClient" />
 
    <!--
    | TODO: Replace this component with one suitable for your enviroment.
    |
    | This component provides authentication for the kind of credential used in your environment. In most cases
    | credential is a username/password pair that lives in a system of record like an LDAP directory.
    | The most common authentication handler beans:
    |
    | * org.jasig.cas.authentication.LdapAuthenticationHandler
    | * org.jasig.cas.adaptors.jdbc.QueryDatabaseAuthenticationHandler
    | * org.jasig.cas.adaptors.x509.authentication.handler.support.X509CredentialsAuthenticationHandler
    | * org.jasig.cas.support.spnego.authentication.handler.support.JCIFSSpnegoAuthenticationHandler
    -->
   
    <!--
    <bean id="primaryAuthenticationHandler"
          class="org.jasig.cas.authentication.AcceptUsersAuthenticationHandler">
        <property name="users">
            <map>
                <entry key="casuser" value="Mellon"/>
            </map>
        </property>
    </bean>
   
    -->
    
    <!--
<alias name="multiTimeUseOrTimeoutExpirationPolicy" alias="serviceTicketExpirationPolicy" /> 
   
   <alias name="ticketGrantingTicketExpirationPolicy" alias="grantingTicketExpirationPolicy" />
    -->
   
    <bean id="dbAuthHandler"
          class="org.jasig.cas.adaptors.jdbc.SearchModeSearchDatabaseAuthenticationHandler"
          p:dataSource-ref="dataSource"     
          p:tableUsers="SGU_SUJETO"
          p:fieldUser="USUARIO"          
          p:fieldPassword="PASSWORD"
          p:passwordEncoder-ref="encoderPass"
    />    
    
    <bean id="encoderPass" class="org.jasig.cas.authentication.handler.DefaultPasswordEncoder" p:characterEncoding="UTF-8" >
        <constructor-arg index="0" value="MD5" />
    </bean>
 
    <alias name="acceptAnyAuthenticationPolicyFactory" alias="authenticationPolicyFactory" />
    <!--
    | Resolves a principal from a credential using an attribute repository that is configured to resolve
    | against a deployer-specific store (e.g. LDAP).
    -->    
      
    <bean id="primaryPrincipalResolver"
          class="org.jasig.cas.authentication.principal.PersonDirectoryPrincipalResolver" >
        <property name="attributeRepository" ref="attributeRepository" />
    </bean>
    
    
    <!--
    Bean that defines the attributes that a service may return.  This example uses the Stub/Mock version.  A real implementation
    may go against a database or LDAP server.  The id should remain "attributeRepository" though.
    +-->    
    
    <bean id="attributeRepository" class="org.jasig.services.persondir.support.StubPersonAttributeDao"
          p:backingMap-ref="attrRepoBackingMap" />
   
    <util:map id="attrRepoBackingMap">
        <entry key="uid" value="uid" />
        <entry key="eduPersonAffiliation" value="eduPersonAffiliation" />
        <entry key="groupMembership" value="groupMembership" />
    </util:map>
    
 
    <!--
    Sample, in-memory data store for the ServiceRegistry. A real implementation
    would probably want to replace this with the JPA-backed ServiceRegistry DAO
    The name of this bean should remain "serviceRegistryDao".
    +-->
    
    <bean id="serviceRegistryDao" class="org.jasig.cas.services.InMemoryServiceRegistryDaoImpl"
          p:registeredServices-ref="registeredServicesList" />
 
    <util:list id="registeredServicesList">
        <bean class="org.jasig.cas.services.RegexRegisteredService"
              p:id="0" p:name="HTTP and IMAP" p:description="Allows HTTP(S) and IMAP(S) protocols"
              p:serviceId="^(https?|imaps?)://.*" p:evaluationOrder="10000001" />
        <!--
        Use the following definition instead of the above to further restrict access
        to services within your domain (including sub domains).
        Note that example.com must be replaced with the domain you wish to permit.
        This example also demonstrates the configuration of an attribute filter
        that only allows for attributes whose length is 3.
        -->
        <!--
        <bean class="org.jasig.cas.services.RegexRegisteredService">
            <property name="id" value="1" />
            <property name="name" value="HTTP and IMAP on example.com" />
            <property name="description" value="Allows HTTP(S) and IMAP(S) protocols on example.com" />
            <property name="serviceId" value="^(https?|imaps?)://([A-Za-z0-9_-]+\.)*example\.com/.*" />
            <property name="evaluationOrder" value="0" />
            <property name="attributeFilter">
              <bean class="org.jasig.cas.services.support.RegisteredServiceRegexAttributeFilter" c:regex="^\w{3}$" />
            </property>
        </bean>
        -->
    </util:list>
   
    <bean id="auditTrailManager"
          class="org.jasig.inspektr.audit.support.Slf4jLoggingAuditTrailManager"
          p:entrySeparator="${cas.audit.singleline.separator:|}"
          p:useSingleLine="${cas.audit.singleline:false}"/>
   
    <bean id="healthCheckMonitor" class="org.jasig.cas.monitor.HealthCheckMonitor" p:monitors-ref="monitorsList" />
 
    <!--
    <alias name="defaultTicketRegistry" alias="ticketRegistry" />
    -->
    <util:list id="monitorsList">
        <ref bean="memoryMonitor" />
        <ref bean="sessionMonitor" />
    </util:list>
    
    <bean id="dataSource"
          class="org.springframework.jndi.JndiObjectFactoryBean">
        <property name="jndiName" value="jdbc/jdbcseguridad"/>
        <property name="lookupOnStartup" value="false"/>
        <property name="proxyInterface" value="javax.sql.DataSource"/>
    </bean>
    
</beans>

im triying to connect by a dataSource to my oracle database but im getting this error:
Información:   10:28:42.859 [admin-listener(1)] ERROR org.hibernate.hql.spi.id.IdTableHelper - Unable obtain JDBC Connection
java.sql.SQLException: An attempt by a client to checkout a Connection has timed out.
at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:106) ~[c3p0-0.9.1.2.jar:0.9.1.2]
at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:65) ~[c3p0-0.9.1.2.jar:0.9.1.2]
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:527) ~[c3p0-0.9.1.2.jar:0.9.1.2]

at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:802) [hibernate-entitymanager-5.0.3.Final.jar:5.0.3.Final]

Caused by: com.mchange.v2.resourcepool.TimeoutException: A client timed out while waiting to acquire a resource from com.mchange.v2.resourcepool.BasicResourcePool@4fcfacd6 -- timeout at awaitAvailable()
at com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1317) ~[c3p0-0.9.1.2.jar:0.9.1.2]
at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:557) ~[c3p0-0.9.1.2.jar:0.9.1.2]
at com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:477) ~[c3p0-0.9.1.2.jar:0.9.1.2]
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:525) ~[c3p0-0.9.1.2.jar:0.9.1.2]
... 74 more
Información:   10:28:44.908 [admin-listener(1)] ERROR org.hibernate.tool.hbm2ddl.SchemaExport - HHH000231: Schema export unsuccessful
java.sql.SQLException: An attempt by a client to checkout a Connection has timed out.
at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:106) ~[c3p0-0.9.1.2.jar:0.9.1.2]
at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:65) ~[c3p0-0.9.1.2.jar:0.9.1.2]


this is my pom:

<?xml version="1.0" encoding="UTF-8"?>
    <modelVersion>4.0.0</modelVersion>
    <groupId>org.jasig.cas</groupId>
    <artifactId>cas-overlay</artifactId>
    <packaging>war</packaging>
    <version>1.0</version>

    <build>
        <plugins>
            <plugin>
                <groupId>com.rimerosolutions.maven.plugins</groupId>
                <artifactId>wrapper-maven-plugin</artifactId>
                <version>0.0.4</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <version>2.6</version>
                <configuration>
                    <warName>cas</warName>
                    <overlays>
                        <overlay>
                            <groupId>org.jasig.cas</groupId>
                            <artifactId>cas-server-webapp</artifactId>
                            <excludes>
                                <exclude>WEB-INF/cas.properties</exclude>
                                <exclude>WEB-INF/classes/log4j2.xml</exclude>
                            </excludes>
                        </overlay>
                    </overlays>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.3</version>
                <configuration>
                    <source>1.7</source>
                    <target>1.7</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.eclipse.jetty</groupId>
                <artifactId>jetty-maven-plugin</artifactId>
                <version>${maven-jetty-plugin.version}</version>
                <configuration>
                    <jettyXml>${basedir}/etc/jetty/jetty.xml,${basedir}/etc/jetty/jetty-ssl.xml,${basedir}/etc/jetty/jetty-https.xml</jettyXml>
                    <systemProperties>
                        <systemProperty>
                            <name>org.eclipse.jetty.annotations.maxWait</name>
                            <value>240</value>
                        </systemProperty>
                    </systemProperties>
                    <webApp>
                        <contextPath>/cas</contextPath>
                        <overrideDescriptor>${basedir}/etc/jetty/web.xml</overrideDescriptor>
                    </webApp>
                    <webAppConfig>
                        <allowDuplicateFragmentNames>true</allowDuplicateFragmentNames>
                    </webAppConfig>
                    <jvmArgs>-Dlog4j.configurationFile=/etc/cas/log4j2.xml -Xdebug -Xrunjdwp:transport=dt_socket,address=5000,server=y,suspend=n</jvmArgs>
                </configuration>
            </plugin>
        </plugins>
        <finalName>cas</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-webapp-support</artifactId>
            <version>4.2.3</version>
        </dependency>
        
        <dependency>
            <groupId>org.jasig.cas</groupId>
            <artifactId>cas-server-support-jpa-ticket-registry</artifactId>
            <version>${cas.version}</version>
        </dependency>

        
        <!-- jdbc oracle -->
        <dependency>
            <groupId>com.oracle</groupId>
            <artifactId>ojdbc6</artifactId>
            <version>11.2.0</version>
        </dependency>
        
        <dependency>
            <groupId>org.jasig.cas</groupId>
            <artifactId>cas-server-support-jdbc</artifactId>
            <version>4.2.3</version>
        </dependency>
        <dependency>
            <groupId>commons-dbcp</groupId>
            <artifactId>commons-dbcp</artifactId>
            <version>1.4</version>
        </dependency>

        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-support</artifactId>
            <version>2.0.8</version>
        </dependency>
        
        <dependency>
            <groupId>c3p0</groupId>
            <artifactId>c3p0</artifactId>
            <version>0.9.1.2</version>
        </dependency>

        
    </dependencies>

    <properties>
        <cas.version>4.2.3</cas.version>
        <maven-jetty-plugin.version>9.3.6.v20151106</maven-jetty-plugin.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>
        </repository>
        <repository>
            <id>sonatype-snapshots</id>
        </repository>
    </repositories>
</project>

thanks


2016-07-06 13:46 GMT-06:00 Mail Delivery Subsystem <mailer...@googlemail.com>:
Hello Iamcarlos...@gmail.com,

We're writing to let you know that the group you tried to contact (cas-dev) may not exist, or you may not have permission to post messages to the group. A few more details on why you weren't able to post:

 * You might have spelled or formatted the group name incorrectly.
 * The owner of the group may have removed this group.
 * You may need to join the group before receiving permission to post.
 * This group may not be open to posting.

If you have questions related to this or any other Google Group, visit the Help Center at https://support.google.com/a/apereo.org/bin/topic.py?topic=25838.

Thanks,

apereo.org admins



----- Original message -----

X-Received: by 10.159.37.236 with SMTP id 99mr10867851uaf.11.1467834387781;
        Wed, 06 Jul 2016 12:46:27 -0700 (PDT)
Return-Path: <iamcarlos...@gmail.com>
Received: from mail-vk0-x22f.google.com (mail-vk0-x22f.google.com. [2607:f8b0:400c:c05::22f])
        by mx.google.com with ESMTPS id 105si800860uaf.111.2016.07.06.12.46.27
        for <cas...@apereo.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Wed, 06 Jul 2016 12:46:27 -0700 (PDT)
Received-SPF: pass (google.com: domain of iamcarlos...@gmail.com designates 2607:f8b0:400c:c05::22f as permitted sender) client-ip=2607:f8b0:400c:c05::22f;
Authentication-Results: mx.google.com;
       dkim=pass header.i=@gmail.com;
       spf=pass (google.com: domain of iamcarlos...@gmail.com designates 2607:f8b0:400c:c05::22f as permitted sender) smtp.mailfrom=iamcarlos...@gmail.com;
       dmarc=pass (p=NONE dis=NONE) header.from=gmail.com
Received: by mail-vk0-x22f.google.com with SMTP id v6so48070439vkb.2
        for <cas...@apereo.org>; Wed, 06 Jul 2016 12:46:27 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:from:date:message-id:subject:to;
        bh=gX9OMjEG+w9xaL4iGKCQju5asDyypoPThbO2QMKPaTI=;
        b=PZjnuJK9iNVq932BitRdY2QZnU1qfOEH5cVpYfMpODR39n0mYV7CVsrH7KuCk1GV6J
         7pw1l0EhJ3tmBEYPX0V4T3oSeHEtx44uUM1g6VQKAbys3tJz1bO2glpyOlhk9DM4+9o+
         /e6CZJ1aauaFtE3wV7MU4mpZHCIwLFaOIyh7QKv2izV4iAdNQxkemFhe46m1wZM9jzOE
         hiVRxo5WoUslZec6ejNZ9NuOQpHNSSF5XoWn3WH7hu2j5a97zk+PsC5RaYBGVFTEaZAr
         IvOrjKHk8oBVGn9x0yztunaFV82vUntUPxjpBj5rXCqHc0uaI6xq/zqXB0vn9Q02bCzj
         oAJw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
        bh=gX9OMjEG+w9xaL4iGKCQju5asDyypoPThbO2QMKPaTI=;
        b=kFK/8KnpakXWb6ES+r/+p/l8rR4ACABxrP2fE6goKs42Y8uVA0FvoFNJz/iseU8J2p
         ACnCajAeqCSWwHN98S/y/0E9nz3oEeMchkZWI/8J5nZxW0CoEr8csCgbI0fWrDFf+GYw
         X8mGk0BGIQMe/AuVZNaxh5ub/QtcDrrt2eoTVdJ+l5sG54xDzTtu6XQYCKtciukqQ2+r
         TcjT/KQcdMNDevxKv4V4WEMwcoJY5+/E6cAo/sRGNKUvUDZZgW1BdeAKwKZQBW366C8P
         T9WbDSHiNTywhE78B9B0fgPXBl4XAWzG/nnz4e/EgpW14vjPqkkKZ/VxDSN/DbxBJl8Y
         +YRw==
X-Gm-Message-State: ALyK8tIjheN5VNVZtiHf6z7wzpB83AcUseJE+Wt3QNAU4w+HVHNH4iqtUiE0uZ/w4upXxcyoDGSlpJC3CMdk/g==
X-Received: by 10.159.55.165 with SMTP id q34mr10505804uaq.85.1467834387423;
 Wed, 06 Jul 2016 12:46:27 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.103.138.68 with HTTP; Wed, 6 Jul 2016 12:46:27 -0700 (PDT)
From: carlos maddaleno cuellar <iamcarlos...@gmail.com>
Date: Wed, 6 Jul 2016 13:46:27 -0600
Message-ID: <CANEG9+ef+OONVGnT6j-fYnN0...@mail.gmail.com>
Subject: implementation of CAS
To: cas...@apereo.org
Content-Type: multipart/alternative; boundary=94eb2c03edf24068150536fcd3cc

Hi i wanted to know if you can help me with cas implementation im new and i
just download the CAS version and i just cant find out how to configure it
with a oracle database connection using a datasourcev4.2.3
<https://github.com/apereo/cas/releases/tag/v4.2.3>

--
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
To post to this group, send email to cas-...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CANEG9%2Bc%3Dz67xeXJu%3DJfx6zy-rt0KGpTTVjxNr3uArmytmiBCRA%40mail.gmail.com.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.
Reply all
Reply to author
Forward
0 new messages