[Beginners Corner] - Tomcat fails to send WWW-Authenticate header when custom 401
by wiwwy
I'm running jboss-3.2.7 and need to use a custom 401 error page with my servlets. But by doing so, I don't get a dialog box asking me to authenticate and it immediately errors out and displays the custom 401 page. If I comment out the following from my web.xml,
<error-page>
| <error-code>401</error-code>
| <location>/unauth.jsp</location>
| </error-page>
then I properly get the dialog box prompting me to log in, but the default Tomcat/5.0.30 error page is used. After doing some cURL tests, I noticed that when I use a custom 401 error page, I lose the WWW-Authentication header that is passed via:
resp.setHeader("WWW-Authenticate", "Basic realm=\"" + realmName + "\"");
| resp.sendError(HttpServletResponse.SC_UNAUTHORIZED);
Searching the Internet shows that this could be a bug in many versions of Tomcat. Is there a fix or work-around for this bug?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4218467#4218467
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4218467
17 years, 3 months
[JBoss jBPM] - Re: JBPM process composition-correction
by Thinkstream09
Sorry, the initial post HTML ate-up parts of the definition.
Here they are again, this time complete:
| <process-definition name="process-civil-inquiry-fingerprints" initial="startFP">
|
| <!-- Process-wide definition - begin -->
| <event type='node-leave'>
| <action class='com.think.process.impl.jbpm.ActionHandler' />
| </event>
| <!-- Process-wide definition - end -->
|
| <start-state name='startFP'>
| <transition to='common_1' />
| </start-state>
|
| <process-state name="common_1">
| <sub-process name="process-common-elements-1" />
| <transition to='end' />
| </process-state>
|
| <end-state name='end' />
|
| </process-definition>
|
|
|
| <process-definition name="process-common-elements-1" initial="start">
|
| <!-- Process-wide definition - begin -->
| <event type='node-enter'>
| <action class='com.think.process.impl.jbpm.ActionHandler' />
| </event>
| <event type='node-leave'>
| <action class='com.think.process.impl.jbpm.ActionHandler' />
| </event>
| <!-- Process-wide definition - end -->
|
| <!-- Node of the type 'start-state' is alwys required. All other nodes are optional-->
| <start-state name='start'>
| <transition to='ProcessInstanceAssign' />
| </start-state>
| <!-- -->
|
| <task-node name='ProcessInstanceAssign'>
| <task>
| <assignment class='com.think.process.impl.jbpm.AssignmentHandler' />
| </task>
| <transition to='agentGet' />
| </task-node>
|
| <task-node name='agentGet'>
| <task>
| <assignment class='com.think.process.impl.jbpm.AssignmentHandler' />
| </task>
| <transition to='agentCredentialsGet' />
| </task-node>
|
| <task-node name='agentCredentialsGet'>
| <task>
| <assignment class='com.think.process.impl.jbpm.AssignmentHandler' />
| </task>
| <transition to='processInstanceInitialize' />
| </task-node>
|
| <task-node name='processInstanceInitialize'>
| <task>
| <assignment class='com.think.process.impl.jbpm.AssignmentHandler' />
| </task>
| <transition to='end' />
| </task-node>
|
| <end-state name='end'>
| </end-state>
|
| </process-definition>
|
|
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4218455#4218455
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4218455
17 years, 3 months