Re: How to access JNDI resources on Tomcat level

2009-12-18 Thread André Warnier
vramanaj wrote: Can we have the below 2 security constraints in web.xml ? auth-methods are different for the both. There was an earlier thread on this same list about that, about a week ago. Basically the answer is no, because the Servlet Spec does not allow for that. (In other words, it is n

Re: How to access JNDI resources on Tomcat level

2009-12-18 Thread vramanaj
Can we have the below 2 security constraints in web.xml ? auth-methods are different for the both. In our existing application we have 2nd security-constraint/login-config is existing. As part of Josso configuration, we need have the configuration like 1st one. Can we club both of them with out di

Re: How to access JNDI resources on Tomcat level

2009-12-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To whom it may concern, On 12/15/2009 7:44 AM, vramanaj wrote: > Yes, I did [read the SSL HOWTO]. I have followed those configuration > steps for other applications earlier. You may still need to import the /remote server's/ certificate into your key

Re: How to access JNDI resources on Tomcat level

2009-12-15 Thread Pid
On 15/12/2009 12:44, vramanaj wrote: Yes, I did. I have followed those configuration steps for other applications earlier. Are there any other configurations required to store the cookies in IE browser, if the application is ssl enabled ? No, Tomcat doesn't need to do anything special for IE.

Re: How to access JNDI resources on Tomcat level

2009-12-15 Thread vramanaj
Yes, I did. I have followed those configuration steps for other applications earlier. Are there any other configurations required to store the cookies in IE browser, if the application is ssl enabled ? Pid Ster wrote: > > On 15/12/2009 11:25, vramanaj wrote: >> >> The problem is https. For rem

Re: How to access JNDI resources on Tomcat level

2009-12-15 Thread Pid
On 15/12/2009 11:25, vramanaj wrote: The problem is https. For rememberMe in Josso, the site should be in ssl. I configured ssl in tomcat. Now i am getting the following error. I have installed the cert. in IE. Please help me if there are tomcat settings required for ssl. If the problem is se

Re: How to access JNDI resources on Tomcat level

2009-12-15 Thread vramanaj
The problem is https. For rememberMe in Josso, the site should be in ssl. I configured ssl in tomcat. Now i am getting the following error. I have installed the cert. in IE. Please help me if there are tomcat settings required for ssl. 15 Dec 2009 06:14:38,992 DEBUG Error getting client certs j

Re: How to access JNDI resources on Tomcat level

2009-12-14 Thread Pid
On 14/12/2009 12:55, vramanaj wrote: Hi, I am through with the Josso configuration. Could be able to see the sso logon page, redirecting the authenticated username to the partner application. Facing problem with rememberMe option. Second time when i try to logon to the application, logon page i

Re: How to access JNDI resources on Tomcat level

2009-12-14 Thread vramanaj
Hi, I am through with the Josso configuration. Could be able to see the sso logon page, redirecting the authenticated username to the partner application. Facing problem with rememberMe option. Second time when i try to logon to the application, logon page is showing up again. I set 'rememberMeEn

Re: How to access JNDI resources on Tomcat level

2009-12-01 Thread vramanaj
Resolved AuthenticationFailureException issue. This is coming because i have used basic-authentication scheme. If basic-authentication scheme used, we need remove hasAlgorithm and hasEnconding properties in josso-gateway-auth.xml file. Now Josso session id is getting created. But getting the belo

Re: How to access JNDI resources on Tomcat level

2009-12-01 Thread vramanaj
User name and password are correct only. Pid Ster wrote: > > On 01/12/2009 12:37, vramanaj wrote: >> >> I have passed through this DataSource look up problem. I altered >> context.xml/web.xml of josso webapp. And also used short JNDI names at >> tomcat/web.xml/context.xml level (e.g. jdbc/Defau

Re: How to access JNDI resources on Tomcat level

2009-12-01 Thread Pid
On 01/12/2009 12:37, vramanaj wrote: I have passed through this DataSource look up problem. I altered context.xml/web.xml of josso webapp. And also used short JNDI names at tomcat/web.xml/context.xml level (e.g. jdbc/DefaultDS), and full JNDI name at Josso configuration level (e.g. java:comp/env

Re: How to access JNDI resources on Tomcat level

2009-12-01 Thread vramanaj
No, DataSource is working fine now. Thank yoy very much for all of your support in resolving that problem. New issue has come in configuring the authentication scheme. Pid Ster wrote: > > On 01/12/2009 11:41, vramanaj wrote: >> >> I have removed path and docbase from webapp.xml file. I have

Re: How to access JNDI resources on Tomcat level

2009-12-01 Thread Pid
On 01/12/2009 11:41, vramanaj wrote: I have removed path and docbase from webapp.xml file. I have tried the db connection from a servlet as below. I have gone through the josso source codes. It is failing at below getDataSource function. protected DataSource getDataSource() throws SSOIdent

Re: How to access JNDI resources on Tomcat level

2009-12-01 Thread vramanaj
I have passed through this DataSource look up problem. I altered context.xml/web.xml of josso webapp. And also used short JNDI names at tomcat/web.xml/context.xml level (e.g. jdbc/DefaultDS), and full JNDI name at Josso configuration level (e.g. java:comp/env/jdbc/DefaultDS). Now when i try to

Re: How to access JNDI resources on Tomcat level

2009-12-01 Thread vramanaj
Added context.xml in META-INF directory. And also added resurce-ref in josso webapp. Still getting the same error. Mikolaj Rydzewski-2 wrote: > > vramanaj wrote: >> I have used jdbc/DefaultDS. Added ResourceLink to >> Catalina/localhost/webapp.xml. >> >> > docBase="/usr2/tomcat/sso/apache-tomca

Re: How to access JNDI resources on Tomcat level

2009-12-01 Thread vramanaj
I have removed path and docbase from webapp.xml file. I have tried the db connection from a servlet as below. I have gone through the josso source codes. It is failing at below getDataSource function. protected DataSource getDataSource() throws SSOIdentityException { if (_datasource

Re: How to access JNDI resources on Tomcat level

2009-12-01 Thread Mikolaj Rydzewski
vramanaj wrote: I have used jdbc/DefaultDS. Added ResourceLink to Catalina/localhost/webapp.xml. And also added resource-ref to WEB-INF/web.xml. Stacktraces you have posted originate from josso webapp, not from test app. You need to alter context.xml / web.xml of josso webapp. -- Mikol

Re: How to access JNDI resources on Tomcat level

2009-12-01 Thread vramanaj
I have used jdbc/DefaultDS. Added ResourceLink to Catalina/localhost/webapp.xml. And also added resource-ref to WEB-INF/web.xml. - Mikolaj Rydzewski-2 wrote: > > vramanaj wrote: >> 1. Defined DataSource within GlobalNaming

Re: How to access JNDI resources on Tomcat level

2009-12-01 Thread Pid
On 01/12/2009 10:36, vramanaj wrote: Full Stack Trace: Dec 1, 2009 1:46:58 AM org.josso.gateway.identity.service.store.db.DataSourceIdentityStore getDataSource SEVERE: Error during DB connection lookup javax.naming.NameNotFoundException: Name jdbc is not bound in this Context at org.apa

Re: How to access JNDI resources on Tomcat level

2009-12-01 Thread Mikolaj Rydzewski
vramanaj wrote: 1. Defined DataSource within GlobalNamingResources As already mentioned here, you should rather use jdbc/DefaultDS. * add JNDI support to josso webapp (e.g. and ResourceLink to META-INF/context.xml and resource-ref to WEB-INF/web.xml) Did you miss th

Re: How to access JNDI resources on Tomcat level

2009-12-01 Thread Mikolaj Rydzewski
vramanaj wrote: Still getting the same error after changing Data Source name to 'jdbc/DefaultDS'. Added resource link in webapp.xml. Error : Error During Lookup Name jdbc is not bound in this Context Are there any extra customizations required for Josso+Tomcat6? The 'trick' with Jos

Re: How to access JNDI resources on Tomcat level

2009-12-01 Thread vramanaj
Full Stack Trace: Dec 1, 2009 1:46:58 AM org.josso.gateway.identity.service.store.db.DataSourceIdentityStore getDataSource SEVERE: Error during DB connection lookup javax.naming.NameNotFoundException: Name jdbc is not bound in this Context at org.apache.naming.NamingContext.lookup(NamingCo

Re: How to access JNDI resources on Tomcat level

2009-12-01 Thread Pid
On 01/12/2009 05:13, vramanaj wrote: Still getting the same error after changing Data Source name to 'jdbc/DefaultDS'. Added resource link in webapp.xml. Error : Error During Lookup Name jdbc is not bound in this Context What is the full stack trace? Are you adding it to tomcat/con

Re: How to access JNDI resources on Tomcat level

2009-11-30 Thread vramanaj
Still getting the same error after changing Data Source name to 'jdbc/DefaultDS'. Added resource link in webapp.xml. Error : Error During Lookup Name jdbc is not bound in this Context Are there any extra customizations required for Josso+Tomcat6?

Re: How to access JNDI resources on Tomcat level

2009-11-30 Thread Pid
On 30/11/2009 13:46, vramanaj wrote: Hi, I am facing problem with configuring JNDI DataSources for Josso project in Tomcat 6. Getting the following errors in tomcat log when i am trying to access the application. Defined resource in conf/Catalina/localhost/webapp.xml. And res-reference in the a

Re: How to access JNDI resources on Tomcat level

2009-11-30 Thread vramanaj
Hi, I am facing problem with configuring JNDI DataSources for Josso project in Tomcat 6. Getting the following errors in tomcat log when i am trying to access the application. Defined resource in conf/Catalina/localhost/webapp.xml. And res-reference in the application's web.xml. Nov 30, 2009 7:4

Re: How to access JNDI resources on Tomcat level

2008-09-26 Thread Mikolaj Rydzewski
Christopher Schultz wrote: * add JNDI support to josso webapp (e.g. and ResourceLink to META-INF/context.xml and resource-ref to WEB-INF/web.xml) Note that this is not required for Realms. See http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html#Context+versu

Re: How to access JNDI resources on Tomcat level

2008-09-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mikolaj, A few notes: see below. Mikolaj Rydzewski wrote: > Mikolaj Rydzewski wrote: >> Now, I want to setup Josso single sign on system (www.josso.org) and >> force it to use JNDI DataSources as well. With no luck. > Here's the solution for anyone i

Re: How to access JNDI resources on Tomcat level

2008-09-26 Thread Mikolaj Rydzewski
Mikolaj Rydzewski wrote: Now, I want to setup Josso single sign on system (www.josso.org) and force it to use JNDI DataSources as well. With no luck. Here's the solution for anyone interested (addition to typical josso setup): * define DataSource within GlobalNamingResources (e.g. jdbc/users

Re: How to access JNDI resources on Tomcat level

2008-09-25 Thread Mark Thomas
Mikolaj Rydzewski wrote: > So - is there any 'special' way to obtain reference to JNDI resources > from within a Realm? Make sure your data source is global (i.e. defined in server.xml) and then take a look at how the JNDI realm uses global data sources. Mark --