Getting error in CAS

1 message Options
Embed this post
Permalink
Wellington Santos

Getting error in CAS

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Hi everyone,


I've tried to install uPortal with postgreSQL in my machine.
I've gotten success on build and deploy, but I don't have SSL Certificate in.
All configurations were done.

The configurations that I've done are:

File: build.properties in uPortal-3.1.1 folder
a) [hidden email]@ to server.home=/home/people/tomcat
b) #maven.home= to #maven.home=/home/people/apache-maven-2.0.9
c)extractWars=true to extractWars=false

File: rdbm.properties in uPortal-3.1.1/uportal-impl/src/main/resources/properties
a) The below lines were commented
hibernate.connection.driver_class=org.hsqldb.jdbcDriver
hibernate.connection.url=jdbc:hsqldb:hsql://localhost:8887
hibernate.connection.username=sa
hibernate.connection.password=
hibernate.dialect=org.hibernate.dialect.HSQLDialect

b) the below lines were uncommented
#hibernate.connection.driver_class=org.postgresql.Driver
#hibernate.connection.url=jdbc:postgresql://my.school.edu/portal
#hibernate.connection.username=test
#hibernate.connection.password=mypass
#hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect

c) the line #hibernate.connection.url=jdbc:postgresql://my.school.edu/portal was change to #hibernate.connection.url=jdbc:postgresql://localhost/portal
and the username and password as changed to my personal data.

File: security.properties in uPortal-3.1.1/uportal-impl/src/main/resources/properties
a) logoutRedirect.root=http://localhost:8080/cas/logout?url=http://localhost:8080/uPortal/Login to logoutRedirect.root=http://myserver.com/cas/logout?url=http://myserver.com/uPortal/Login
b) org.jasig.portal.channels.CLogin.CasLoginUrl=http://localhost:8080/cas/login?service=http://localhost:8080/uPortal/Login to
    org.jasig.portal.channels.CLogin.CasLoginUrl=http://myserver.com/cas/login?service=http://myserver.com/uPortal/Login

Reading the full file, I found it:
## Answers what tokens are examined in the request for each context during authentication.
## A subcontext only needs to set its tokens if it differs from those of the root context.
principalToken.root=userName
credentialToken.root=password
credentialToken.root.cas=ticket

I must change those lines? If so, what I should put there?

File: pom.xml in uPortal-3.1.1
a) I added the below lines:
<dependency>
    <groupId>postgresql</groupId>
    <artifactId>postgresql</artifactId>
    <version>8.2-507.jdbc3</version>
</dependency>

b) changed the below lines:
 <jdbc.groupId>hsqldb</jdbc.groupId>
 <jdbc.artifactId>hsqldb</jdbc.artifactId>
 <jdbc.version>${hsqldb.version}</jdbc.version>

    to

   
<jdbc.groupId>postgresql</jdbc.groupId>
<jdbc.artifactId>postgresql</jdbc.artifactId>
<jdbc.version>8.2-507.jdbc3</jdbc.version>

Well, when I tried build through ant with initportal tag, everything worked and the BUILD SUCCESSFUL message appeared.
I tried start my tomcat up and server it works. I went in browser and typed http://myserver.com/uPortal and it works as well.
However, when I tried to login through CAS an error appeared.
The error says: The token is invalid, so I can't get the token of CAS and pass to



Best Regards,


Wellington Santos
System Analyst and System Integrator
People Brasil Educação
Campinas - SP - Brazil
msn: [hidden email]
skype: wellington.deh

-- 
You are currently subscribed to [hidden email] as: [hidden email]
To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/uportal-user