History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: UP-2142
Type: Bug Bug
Status: Closed Closed
Resolution: Won't Fix
Priority: Trivial Trivial
Assignee: Unassigned
Reporter: Gary Weaver
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
uPortal

Login doesn't work in uPortal 3.0.1 quick start for developers (uPortal-3.0.1-quick-start-dev.tar.gz)

Created: 21/Aug/08 01:21 PM   Updated: 19/Sep/08 07:43 AM
Component/s: Quick Start
Affects Version/s: 3.0.1
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: 1. GZip Archive logs-3.0.1.tar.gz (8 kb)
2. GZip Archive logs.tar.gz (2 kb)

Environment:
Mac OS X 10.5,
java version "1.5.0_13"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05-237)
Java HotSpot(TM) Client VM (build 1.5.0_13-119, mixed mode, sharing),
uPortal-3.0.1-quick-start-dev.tar.gz


 Description  « Hide
Downloaded and untarred/ungzipped uPortal-3.0.1-quick-start-dev.tar.gz

Did ant start as it says in README.txt

Upon startup, I got to http://localhost:8080/uPortal/

Then click on the "Sign In with CAS" button to left.

Attempted to sign in with user/pass admin/admin and got:

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Unable to validate ProxyTicketValidator [[edu.yale.its.tp.cas.client.ProxyTicketValidator proxyList=[null] [edu.yale.its.tp.cas.client.ServiceTicketValidator BROKEN SECURITY MODE SUITABLE ONLY FOR DEMO PURPOSES casValidateUrl=[http://localhost:8080/cas/serviceValidate] proxyCallbackUrl=[http://localhost:8080/uPortal/CasProxyServlet] ticket=[ST-4-S7K9Mr2hO19BdDe2ea4D-cas] service=[http%3A%2F%2Flocalhost%3A8080%2FuPortal%2FLogin] renew=false]]]
   edu.yale.its.tp.cas.client.filter.CASValidateFilter.doFilter(CASValidateFilter.java:345)

root cause

edu.yale.its.tp.cas.client.CASAuthenticationException: Unable to validate ProxyTicketValidator [[edu.yale.its.tp.cas.client.ProxyTicketValidator proxyList=[null] [edu.yale.its.tp.cas.client.ServiceTicketValidator BROKEN SECURITY MODE SUITABLE ONLY FOR DEMO PURPOSES casValidateUrl=[http://localhost:8080/cas/serviceValidate] proxyCallbackUrl=[http://localhost:8080/uPortal/CasProxyServlet] ticket=[ST-4-S7K9Mr2hO19BdDe2ea4D-cas] service=[http%3A%2F%2Flocalhost%3A8080%2FuPortal%2FLogin] renew=false]]]
   edu.yale.its.tp.cas.client.CASReceipt.getReceipt(CASReceipt.java:52)
   edu.yale.its.tp.cas.client.filter.CASValidateFilter.getAuthenticatedUser(CASValidateFilter.java:393)
   edu.yale.its.tp.cas.client.filter.CASValidateFilter.doFilter(CASValidateFilter.java:342)

root cause

java.io.FileNotFoundException: http://localhost:8080/cas/serviceValidate?service=http%3A%2F%2Flocalhost%3A8080%2FuPortal%2FLogin&ticket=ST-4-S7K9Mr2hO19BdDe2ea4D-cas&pgtUrl=http://localhost:8080/uPortal/CasProxyServlet
   sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1168)
   edu.yale.its.tp.cas.util.SecureURL.retrieve(SecureURL.java:91)
   edu.yale.its.tp.cas.client.ServiceTicketValidator.validate(ServiceTicketValidator.java:218)
   edu.yale.its.tp.cas.client.CASReceipt.getReceipt(CASReceipt.java:50)
   edu.yale.its.tp.cas.client.filter.CASValidateFilter.getAuthenticatedUser(CASValidateFilter.java:393)
   edu.yale.its.tp.cas.client.filter.CASValidateFilter.doFilter(CASValidateFilter.java:342)

note The full stack trace of the root cause is available in the Apache Tomcat/5.5.23 logs.
Apache Tomcat/5.5.23

---

Thanks in advance for any help you can provide,

Gary



 All   Comments   Work Log   Change History      Sort Order:
Gary Weaver [21/Aug/08 02:48 PM]
replicated again per Eric's request and attached logs (tarred/gzipped to reduce space).

Gary Weaver [21/Aug/08 03:06 PM]
Oops. logs.tar.gz didn't have the portal logs. Blew away 3.0.1, reinstalled (again), run ant start, waited 30+ sec, and used Firefox 3.0.1 on OS X 10.5 to browse to http://localhost:8080/uPortal and then immediately logged in as admin/admin and got the error mentioned above. Attaching new logs that contain the portal.log and pluto-testsuite.log that I copied from the tomcat directory along with the logs from tomcat/logs/*.

So the logs attachment to look at is now logs-3.0.1.tar.gz.


Eric Dalquist [21/Aug/08 09:56 PM]
This is a uportal-user list support issue at this point. No need for it to be marked as a critical uPortal bug.

Gary Weaver [25/Aug/08 09:40 AM]
Followed up on uportal-user list but just to follow up for anyone who found this ticket:

Eric,

I don't have a local firewall running.

I restarted my computer and now it is working. I was able to start uPortal 3.0.1 and login as admin and see the "Lorem ipsum dolor sit amet" stuff, etc.

I would think that maybe it was some problem with CAS not starting up correctly. However, if something external to the JVM was using some resource/port CAS needed (assuming it needed something), I would have thought there would be something in the logs about it. Looking at the logs in logs-3.0.1.tar.gz of http://www.ja-sig.org/issues/browse/UP-2142, I don't see any CAS related issues.

Last week I was also making sure that after I did "ant stop" and that all Java processes were killed off before reinstalling (blowing away and untarring/ungzipping uPortal) and (re)starting each time. So, I don't think that was it.

Oh well! At least it is working now. Thanks!

Gary

Eric Dalquist wrote:
> So from the error message
>
> ERROR [http-8080-Processor17] [/uPortal].[Login].[] Aug/21 15:01:34 - Servlet.service() for servlet Login threw exception
> java.io.FileNotFoundException: http://localhost:8080/cas/serviceValidate?service=http%3A%2F%2Flocalhost%3A8080%2FuPortal%2FLogin&ticket=ST-1-AFOJn5He4E4VFb2QvjM3-cas&pgtUrl=http://localhost:8080/uPortal/CasProxyServlet
> at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1168)
> at edu.yale.its.tp.cas.util.SecureURL.retrieve(SecureURL.java:91)
>
> It looks like the JVM can't find the URL, which doesn't make any sense since you're on the same server. My only initial thoughts are do you have any sort of firewall running on your machine that would cause problems with the JVM making that HTTP connection?
>
> -Eric


Eric Dalquist [25/Aug/08 11:30 AM]
Not a uPortal bug

Eric Dalquist [15/Sep/08 06:49 PM]
Verified as wont-fix