using body content in conditional custom tags (if then else)

2002-10-25 Thread Glania, Damian
Hi all, I'm trying to test my own "if", "then" and "else" custom tags using Cactus (1.4.1). I previously tested the tags using simple JSPs, so I assume, they work properly. All my cactus tests work properly with Tomcat4.0. If I use Tomcat 4.1 then one test fails. The failing test case is very sim

FormAuthentication

2002-10-25 Thread Dhar, Pranab
Hi, I am in a situation where I have EJB's and servlets created with security roles defined.I need to test the Servlets and EJB's doing the authentication in the process.I am using FormAuthentication for the secured jsp/servlets/struts forms and actions. I installed cactus 1.4.1 and found out

RE: FormAuthentication

2002-10-25 Thread Robertson, Jason
Buried in the stack trace is "Failed to authenticate the principal". If you try to log into the website normally using admin/admin does it work? What server are you using? We have test cases that work with Tomcat and WebLogic. Jason -Original Message- From: Dhar, Pranab [mailto:Pranab.D

RE: FormAuthentication

2002-10-25 Thread Dhar, Pranab
Hi Jason, Yes Authentication works. I am using JBoss app server. with user defined security realm/domain where all the users and roles are mapped using users.properties and roles.properties.I can run the servlet straightaway and I am asked to authenticate using a FormLogin.I have been able to

RE: FormAuthentication

2002-10-25 Thread Dhar, Pranab
Hi, To add further the server side exception log says:- 11:56:31,899 ERROR [Engine] StandardWrapperValve[ServletRedirector]: Servlet.service() for servlet ServletRedirector threw exception javax.servlet.ServletException: Missing service name parameter [Cactus_Service] in HTTP request. Received

RE: FormAuthentication

2002-10-25 Thread Robertson, Jason
One thing I notice is that cactus connects to http://localhost:8080/ServletRedirector but you have the Tomcat config url pattern as /ServletRedirectorSecure. Try removing the "Secure" from the end. Make the ServletRedirector servlet a secure resource. (Alternatively, you could add "Secure" to you c

RE: FormAuthentication

2002-10-25 Thread Dhar, Pranab
Jason, The servlet mapping in WEB-INF/web.xml is ServletRedirector org.apache.cactus.server.ServletTestRedirector ServletRedirectorSecure org.apache.cactus.server.ServletTestRedirector two aliases for the same Redirector servlet and the security constraint i

RE: FormAuthentication

2002-10-25 Thread Robertson, Jason
I think you've found a problem! I was unaware that you could change the redirector name in the WebRequest so I didn't deal with that scenario. If you can, change the authenticate function to be this (add the WebRequest argument, and then use it to get the redirector name): public void authen

RE: FormAuthentication

2002-10-25 Thread Dhar, Pranab
Jason, I think the resource string should be the URL ( http://localhost:8080/ServletRedirectorSecure ) String resource = theRequest.getConfiguration().getContextURL()+"/"+theRequest.getRedirectorUR L(); Pranab -Original Message- From: Robertson, Jason [mailto:Jason.Robertson@

RE: FormAuthentication

2002-10-25 Thread Dhar, Pranab
Jason, Sorry for the typo Error in my last post.it should be getConfiguration().getContextURL()+"/"+theRequest.getRedirectorName(); I just compiled the code and tested it. I am getting past the authentication now but getting stuck somewhere after that. Somewhere down the line the ServletRedirect

configuring struts1.0 with lateste version of cactus

2002-10-25 Thread Manoj, Mathew
Hi I am finding problems in configuring Jakarta struts 1.0 with cactus latest version.because the package name has changed in ths latest version of cactus...Do i have to use struts1.1B with latest version of cactus to overcome that?Or is there any fix?anyway i want to use latest version of cactu

RE: About Cactus and Quality Assurance

2002-10-25 Thread Marco Barcella
Thanks a lot, I think your email was very helpful for me, I will be even more specific: 1) Using Ant, and running 10 tests in one build.xml, how can I complete all of them, even if the third one (for example) fails. Right now, since I don't catch the exceptions the build fails and the following te

RE: FormAuthentication

2002-10-25 Thread Robertson, Jason
Yes, you're correct with the need to get the context URL as well. As for the rest of it, I'm not sure. I'll try looking at the log again, but there's a lot of information there! Jason -Original Message- From: Dhar, Pranab [mailto:Pranab.Dhar@;DFA.STATE.NY.US] Sent: Friday, October 25, 20

Problem with cactus, ant and weblogic 6.1: runservertests hangs if weblogic dooesn't start

2002-10-25 Thread Herve Marcellini
Hello, I am using the ant task 'runservertests' as indicated in the manual. It works perfectly well when the server starts correctly, but I have a problem when the weblogic server doesn't start (because of a misconfiguration, a file missing...). The ant logs returns "Java Result: 1", and ant never

RE: FormAuthentication

2002-10-25 Thread Dhar, Pranab
Jason, I found the Redirector change happening at function (AbstractHttpClient.java) private WebTestResult callGetResult( AbstractAuthentication theAuthentication) throws Throwable { WebRequest resultsRequest = new WebRequest(this.configuration); <--- here // Ad