Import the project. In order to enable feed readers I am trying toswitch our implementation on top of tomcat to basic authentication.I've made the relevant change inserver/tomcat/webapps/jazz/WEB-INF/web.xml:
INFO: Initializing Mojarra 2.1.0 (FCS 2.1.0-b11) for context '/Login1' WARNING: No Principals mapped to Role . java:395)at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.ja va:311)at org.apache.catalina.authenticator.FormAuthenticator.forwardToLoginPage(FormAuth enticator.java:321)at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthentica tor.java:245)at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.ja va:528)at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)at com.mcafee.orion.core.server.AjaxValve.invoke(AjaxValve.java:84)at com.mcafee.orion.core.server.OrionUserSetupValve.invoke(OrionUserSetupValve.jav a:41)at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:393)at com.mcafee.orion.core.server.OrionSingleSignOn.invoke(OrionSingleSignOn.java:14 1)at com.mcafee.orion.core.server.ClientCertValve.invoke(ClientCertValve.java:69)at com.mcafee.orion.core.server.ClientCertValve.invoke(ClientCertValve.java:69)at com.mcafee.orion.core.server.ParameterEncodingValve.invoke(ParameterEncodingVal ve.java:37)at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:10 8)at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:879)at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConn ection(Http11BaseProtocol.java:665)at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:5 28)at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorke rThread.java:81)at Test the demo ------------- Enter the following URL into the browser (TCP port depends on your HTTP settings): https://localhost:8443/fedizhelloworld/secure/fedservlet The browser is redirected to the IDP and prompts for username and The classes SecurityTokenThreadLocal.java and FederationFilter.java can be used to achieve that. https://developer.jboss.org/thread/170851
INFO: Initializing Mojarra 2.1.0 (FCS 2.1.0-b11) for context '/Login1' WARNING: No Principals mapped to Role . I would check that i have the right mapping in web.xml and the page is there in the right directory ect. server.log : WARNING: ApplicationDispatcher[/Login1] PWC1231: Servlet.service() for servlet jsp threw exception java.lang.NullPointerException at javax.faces.webapp.UIComponentClassicTagBase.setJspId(UIComponentClassicTagBase.java:1858) at org.apache.jsp.Login_jsp._jspx_meth_f_view_0(Login_jsp.java from :93) at org.apache.jsp.Login_jsp._jspService(Login_jsp.java from :68) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492) at
The jdbc driver is jtds-0.8-rc1.jar and the driver is good as I am able to retrieve and write data to my database later in the application. Show Yang Hua Jie added a comment - 07/Aug/12 02:46 Hi Glen Mazza Thank you for your quick reply. The following wiki page gives instructions how to set up the IDP: http://cxf.apache.org/fediz-idp.html Demo Web Application --------------------- The main code lives in the class FederationServlet. This Servlet is protected and can only be accessed if the browser user is authenticated.
Oh and BTW - if anyone else does come by this the answer is that BASIC and tomcat will authenticate with every request - so unless you want to flood your But currently I don't know >>> which step is wrong. >>> >> The step where you're not using a different Tomcat instance to host the >> IDP compared to the one It's very details. https://jazz.net/forum/questions/8221/cant-convert-to-basic-authentication-w-tomcat-successfully Further, the FederationServlet shows how to access claims data (user data) which were store in the SAML token by using the Fediz interface FederationPrincipal.
We can't read your mind or see your machine. The sample keystores and trust relationships are not defined in 1.0 as they are in 1.0.1 (http://svn.apache.org/viewvc/cxf/fediz/trunk/examples/samplekeys/HowToGenerateKeysREADME.html?view=co) <-- You see, much of the important information in the last two columns are Yesterday >>>>>>> I >>>>>>> file a bug to the jira >>>>>>> >>>>>>> >>>>>>> >>>>>>> Regards, >>>>>>> Prince >>>>>>> >>>>>>> >>>>>>> >>>>>>> > Glen Mazza (Talend) Reply | Threaded Open this post Just saying "it won't > work" doesn't help, I need more info about where the exact problem for you > is occurring. > > But sorry, bedtime for me though... (I'm
Our Fediz samples use a two-Tomcat setup (three for the more > advanced wsClientWebapp sample) in order to try to mimic an actual > production environment. Like Show 0 Likes(0) Actions 6. Instead I investigated as much as I could find (google searchs, mailing list archive, posting on mailing list, etc.) before I posted a possible bug here. If you can't view the WSDL, nothing else will work. >>>> >>>> >>>> 3.) Next, configure Tomcat #2 as the Relying Party instance: >>>> http://cxf.apache.org/fediz-****tomcat.html
I >>>> also think one tomcat setup is also much easier for beginners. >>>> >>> Well, maybe someone else can provide you a single Tomcat setup. http://centralpedia.com/unexpected-error/unexpected-error-nested-exception-is-java-lang-noclassdeffounderror.html I see this detail is what I was missing: If you are using Tomcat, you must also modify "jazz\server\tomcat\conf\Catalina\localhost\jazz.xml" and change the className attribute on the "Valve" element from: org.apache.catalina.authenticator.FormAuthenticator to Instead, I post a bug for the document here. Prerequisite ------------ Please review the README in the samples main directory before continuing.
You could get this information directly from the HTTP session. This keystore is located in webapps/fedizidpsts/WEB-INF/classes/stsstore.jks (deployed) or in services/sts/src/main/resources/stsstore.jks (source) Building the demo using Maven ----------------------------- From the base directory of this sample (i.e., where this README file is located), Tomcat) Install the Fediz Identity Provider (IDP) Build the Demo Web Application Fediz configuration in Tomcat ----------------------------- The Tomcat installation must be updated before a Web Application can be deployed. have a peek at these guys Start with Step #1, Step #2, then...
Hide Permalink Glen Mazza added a comment - 07/Aug/12 02:05 It's better to supply a hyperlink to a web page instead of copying it. In the meantime, I'd >> recommend: >> >> 1.) Downloading and building (mvn clean install) the trunk branch of Fediz >> instead of using the Fediz 1.0 distribution: http://cxf.apache.org/fediz.*>> *html#Fediz-Building
INFO: Initializing Mojarra 2.1.0 (FCS 2.1.0-b11) for context '/Login1' WARNING: No Principals mapped to Role .
But currently I don't know >>>> which step is wrong. >>>> >>> The step where you're not using a different Tomcat instance to host the >>> IDP compared to the one Remy, I'm not trying to get cross with you but your comment came across as insulting. Seen: 4,811 times Last updated: Sep 03 '08, 2:52 p.m. This configuration references the java keystore 'conf/stsstore.jks' which contains the certificate to validate a SAML token issued by the IDP/STS.
However, if after getting the blank screen I goto the login page (http://localhost:8080/E3/login2.jsp) and type in a correct login page then I will get redirected to the CustomerInq/index.faces page correctly. [ Sorry, I see a single Tomcat setup as easier only for those beginners who don't care to learn anything (necessary keystore/truststore relationships between apps and between servlet containers, required setup of Format For Printing -XML -Clone This Bug -Top of page This is ASF Bugzilla: the Apache Software Foundation bug system. check my blog I thought that this could be an issue so I created a test table (usr1) and set it like the example on the document page for JDBC realms.
I have posted my question twice on the Tomcat users list and even sent an email to the tomcat webmaster with no responses from either methods. The user table uses a composite primary key (usr_idd + usr_cmpny). How to send email to the mail list. What have I missed?
This keystore is located in webapps/fedizidpsts/WEB-INF/classes/stsstore.jks (deployed) or in services/sts/src/main/resources/stsstore.jks (source) Building the demo using Maven ----------------------------- From the base directory of this sample (i.e., where this README file is located), Comment by Simon Schlosser [ 04/May/11 ] tested successfully with build2011-04-28 Generated at Mon Oct 31 03:15:51 CET 2016 using JIRA 6.3.6#6336-sha1:cf1622c62a612607f341bda9491a04918e09ebfd. I sent the mail to the mail list. more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed
However, this still gave me the same error. Import the project. If you can't view the WSDL, nothing else will work. >>>> >>>> >>>> 3.) Next, configure Tomcat #2 as the Relying Party instance: >>>> http://cxf.apache.org/fediz-****tomcat.html