jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ankur.ku...@axa.com.au
Subject Form Authentication Problem
Date Tue, 17 Feb 2004 04:53:29 GMT
Hi,
I'm using Weblogic Portal Server 7.0 and configured Cactus for unit 
testing my server-side code.


public void begin(WebRequest theRequest){
    theRequest.setRedirectorName("ServletRedirectorSecure");
    FormAuthentication form = new 
FormAuthentication("visitor1","password");
    java.net.URL url = null;
    try{
      url = new 
java.net.URL("http://pc23165/eservice/framework/security/login.jsp");
    }catch(java.net.MalformedURLException malException){
      System.out.println(malException);
    }
    form.setSecurityCheckURL(url); 
    theRequest.setAuthentication(form);
  }

But it throws exception and here is stacktrace of exception :
javax.servlet.ServletException: Missing service name parameter 
[Cactus_Service] in HTTP request. Received query string i
s [].
        at 
org.apache.cactus.server.AbstractWebTestController.getServiceName(AbstractWebTestController.java:208)
        at 
org.apache.cactus.server.AbstractWebTestController.handleRequest_aroundBody0(AbstractWebTestController.java:1
18)


Thanks,
Ankur



*********************************************************************************
Important Note
This email (including any attachments) contains information which is 
confidential and may be subject to legal privilege.  If you are not 
the intended recipient you must not use, distribute or copy this 
email.  If you have received this email in error please notify the 
sender immediately and delete this email. Any views expressed in this 
email are not necessarily the views of AXA.   Thank you.
*********************************************************************************


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message