Hi, thanks for the response. On Thu, 25 Jan 2007 10:27:20 +0000 Pid <[EMAIL PROTECTED]> wrote: > Enable a RequestDumperValve so you can see what WorldPay is doing > when it hits your URL. > > http://tomcat.apache.org/tomcat-5.0-doc/config/valve.html#Request%20Dumper > %20Valve Wow thats a lot of output! I think this is the significant part -
2007-01-25 13:15:03 RequestDumperValve[Catalina]: --------------------------------------------------------------- 2007-01-25 13:15:03 RequestDumperValve[Catalina]: authType=BASIC 2007-01-25 13:15:03 RequestDumperValve[Catalina]: contentLength=-1 2007-01-25 13:15:03 RequestDumperValve[Catalina]: contentType=text/html;charset=ISO-8859-1 2007-01-25 13:15:03 RequestDumperValve[Catalina]: header=Pragma=No-cache 2007-01-25 13:15:03 RequestDumperValve[Catalina]: header=Cache-Control=no-cache 2007-01-25 13:15:03 RequestDumperValve[Catalina]: header=Expires=Thu, 01 Jan 1970 02:00:00 SAST 2007-01-25 13:15:03 RequestDumperValve[Catalina]: message=null 2007-01-25 13:15:03 RequestDumperValve[Catalina]: remoteUser=user 2007-01-25 13:15:03 RequestDumperValve[Catalina]: status=200 2007-01-25 13:15:03 RequestDumperValve[Catalina]: =============================================================== SELECT * FROM Tokens WHERE token_owner_id = 124 2007-01-25 13:15:07 RequestDumperValve[Catalina]: remoteHost=wcc2.worldpay.com 2007-01-25 13:15:07 RequestDumperValve[Catalina]: remoteUser=null 2007-01-25 13:15:07 RequestDumperValve[Catalina]: requestedSessionId=null 2007-01-25 13:15:07 RequestDumperValve[Catalina]: scheme=http 2007-01-25 13:15:07 RequestDumperValve[Catalina]: serverName=server.com 2007-01-25 13:15:07 RequestDumperValve[Catalina]: serverPort=80 2007-01-25 13:15:07 RequestDumperValve[Catalina]: servletPath=/servlet.jsp 2007-01-25 13:15:07 RequestDumperValve[Catalina]: isSecure=false 2007-01-25 13:15:07 RequestDumperValve[Catalina]: --------------------------------------------------------------- I setup worldpay with the following callback url: http://user:[EMAIL PROTECTED]/servlet.jsp This satisfies the apache password. I'm not sure how to now get it past tomcats security. > > > Has the system worked with this configuration before, or is this a > new component? The system worked before. I've now moved it to a new server and the errors have started. > > > What have you got configured in the UserDatabaseRealm file? <?xml version='1.0' encoding='utf-8'?> <tomcat-users> <role rolename="web_user"/> <user username="user" password="password" roles="web_user"/> </tomcat-users> > Have you made sure the Roles are defined in the web.xml file? <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"> <web-app> <security-constraint> <web-resource-collection> <web-resource-name>Restricted site </web-resource-name> <url-pattern>/*</url-pattern> <http-method>GET</http-method> <http-method>POST</http-method> </web-resource-collection> <auth-constraint> <role-name>web_user</role-name> </auth-constraint> </security-constraint> <login-config> <auth-method>BASIC</auth-method> </login-config> </web-app> Regards Wayne --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]