503 error in waffle-mixed implementation

Sep 19, 2011 at 11:45 AM
Edited Sep 19, 2011 at 11:57 AM

I am trying to implement waffle-mixed approach in my application.

Waffle-mixed demo is working fine in my tomcat 6.0.26. I have copied the said four jars in tomcat lib.

But when i try to implement this in my application I get HTTP 503 error. For now, I am using the same login.jsp from the waffle-mixed demo.
This is my web.xml snippet -

<security-constraint>
    <display-name>Waffle Security Constraint</display-name>
    <web-resource-collection>
      <web-resource-name>Protected Area</web-resource-name>
      <url-pattern>/*</url-pattern>
      <http-method>DELETE</http-method>
      <http-method>GET</http-method>
      <http-method>POST</http-method>
      <http-method>PUT</http-method>
    </web-resource-collection>
    <auth-constraint>
      <role-name>Everyone</role-name>
    </auth-constraint>
  </security-constraint>
  
  <security-role>
		  <role-name>Everyone</role-name>
  </security-role>
  
<security-constraint>
    <display-name>Login Page</display-name>
    <web-resource-collection>
      <web-resource-name>Unprotected Login Page</web-resource-name>
      <url-pattern>/jsp/login.jsp</url-pattern>
    </web-resource-collection>
  </security-constraint>

<login-config>
   <form-login-config>
      <form-login-page>/jsp/login.jsp</form-login-page>  
      <form-error-page>/jsp/error.jsp</form-error-page>  
   </form-login-config>
</login-config>

 

context.xml is unchanged as in demo.

When I tried without security constraint, 503 error disappears. But remote username becomes null.

Please help.

Thanks in advance.

 

Coordinator
Sep 20, 2011 at 11:08 PM

Please go through Troubleshooting Negotiate steps and post the HTTP client trace and the server-side log of a failure.