Discussion:
Question in ID-FF 1.1 Java Toolkit 1.2 with Tomcat 5.0.28
Wang Jun
2005-06-07 11:44:45 UTC
Permalink
Hi,all,

My problem is the same as
http://mail.sourceid.org/pipermail/sso-users/2004-June/000428.html
There is no answer yet.
Please help.

My environment is:
jdk1.4.2
Tomcat 5.0.28
Mysql jdbc/sourceid
<!--account-handler>org.sourceid.sso.handlers.AccountHandlerInMemoryImpl</account-handler-->

<account-handler>org.sourceid.sso.handlers.AccountHandlerJDBC</account-handler>



http://localhost:8080/sso-sample-idp/ OK, but
http://localhost:8080/sso-sample-sp/sp/index.jsp errors:
--------------------------------------------------------------------------------

type Exception report
message
description The server encountered an internal error () that prevented it
from fulfilling this request.
exception
org.apache.jasper.JasperException: String index out of range: -1

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jsp.sp.index_jsp._jspService(index_jsp.java:49)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
java.lang.String.substring(String.java:1444)

org.sourceid.sso.handlers.AccountHandlerJDBC.unmungeName(AccountHandlerJDBC.java:247)


org.sourceid.sso.handlers.AccountHandlerJDBC.getNamePair(AccountHandlerJDBC.java:204)

--------------------------------------------------------------------------------




Jack Wang

_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn
Wang Jun
2005-06-07 23:22:57 UTC
Permalink
Hi,
There are so many questions ,but few answers.

If anyone met the same problem and know why .please tell me, thaks.

question 1:
Should Tomcat set RAS in server.xml?

question 2:
I have test SSO's example "SourceID-Sample-IDP" and
"SourceID-Sample-SP"
in memory handle, how can I updte to use jdbc handler? I have modified with
<!--account-handler>org.sourceid.sso.handlers.AccountHandlerInMemoryImpl</account-handler-->


<account-handler>org.sourceid.sso.handlers.AccountHandlerJDBC</account-handler>


in sourceid-sso.xml
and configured jdbc source in tomcat server.xml,
but it seemed not work out with jdbc handler. I test it with browsing
http://localhost:8080/sso-sample-idp/
and logon with name "wj" and password "wj" that is stored in table
accounts.
But the following output after logon is not my wishes.
----------------------------
You are now logged in as: wj (Session Index:1)
To log out (this session and all authenticated SP sessions), Click here.
This Identity Provider can interact with the following Service Providers:
ProviderID Authenticated? Federated?
SourceID-Sample-SP Not authenticated Not federated (Federation can be done

from the SP's site)
----------------------------
How can I logon IDP, and visit all the SP's web ?
If you are busy, can you tell me some material for me to study ?


Thanks

Jack Wang

_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn
Loading...