For clarification on the part about servlet called twice: EAS= Explorer application servlet, EA= explorerapp DLH= default login handler
<blockcode>
EAS init
EAS getNewApplication
EAS request org.apache.catalina.core.ApplicationHttpRequest@7695ed9b
EApp RequestStart Method
org.activiti.explorer.ExplorerApp@24155b6
EA User null
EA request: org.apache.catalina.core.ApplicationHttpRequest@7695ed9b
EA response: org.apache.catalina.connector.ResponseFacade@5179f6a
DLH request authenticates
DLH authHeader Basic kermit:kermit
DLH st.hasMoreTokens() true
DHL username: kermit
DHL password: kermit
DHL loggedInUser org.activiti.explorer.identity.LoggedInUserImpl@2c97b5d7
setting user
EA User After Authenticate Response: org.activiti.explorer.identity.LoggedInUserImpl@2c97b5d7
true
true
showing default page
10:28:31,294 [http-nio-8080-exec-2] INFO org.activiti.engine.impl.bpmn.deployer.BpmnDeployer - Processing resource org/activiti/explorer/demo/process/VacationRequest.png
10:28:31,294 [http-nio-8080-exec-2] INFO org.activiti.engine.impl.bpmn.deployer.BpmnDeployer - Processing resource org/activiti/explorer/demo/process/FixSystemFailureProcess.bpmn20.xml
10:28:31,360 [http-nio-8080-exec-2] INFO org.activiti.engine.impl.bpmn.deployer.BpmnDeployer - Processing resource org/activiti/explorer/demo/process/FixSystemFailureProcess.png
10:28:31,360 [http-nio-8080-exec-2] INFO org.activiti.engine.impl.bpmn.deployer.BpmnDeployer - Processing resource org/activiti/explorer/demo/process/createTimersProcess.bpmn20.xml
10:28:31,369 [http-nio-8080-exec-2] INFO org.activiti.engine.impl.bpmn.deployer.BpmnDeployer - Processing resource org/activiti/explorer/demo/process/VacationRequest.bpmn20.xml
10:28:31,373 [http-nio-8080-exec-2] INFO org.activiti.engine.impl.bpmn.deployer.BpmnDeployer - Processing resource org/activiti/explorer/demo/process/simple-approval.simpleApprovalProcess.png
10:28:31,373 [http-nio-8080-exec-2] INFO org.activiti.engine.impl.bpmn.deployer.BpmnDeployer - Processing resource org/activiti/explorer/demo/process/reviewSalesLead.bpmn20.xml
10:28:31,378 [http-nio-8080-exec-2] INFO org.activiti.engine.impl.bpmn.deployer.BpmnDeployer - Processing resource org/activiti/explorer/demo/process/reviewSalesLead.reviewSaledLead.png
10:28:31,378 [http-nio-8080-exec-2] INFO org.activiti.engine.impl.bpmn.deployer.BpmnDeployer - Processing resource org/activiti/explorer/demo/process/Helpdesk.png
10:28:31,378 [http-nio-8080-exec-2] INFO org.activiti.engine.impl.bpmn.deployer.BpmnDeployer - Processing resource org/activiti/explorer/demo/process/Helpdesk.bpmn20.xml
10:28:31,379 [http-nio-8080-exec-2] INFO org.activiti.engine.impl.bpmn.deployer.BpmnDeployer - Processing resource org/activiti/explorer/demo/process/simple-approval.bpmn20.xml
DLH onRequestStart
org.activiti.explorer.identity.LoggedInUserImpl@2c97b5d7
org.apache.catalina.session.StandardSessionFacade@7c61898c
ExplorerApp init
EA LoggedInUser org.activiti.explorer.identity.LoggedInUserImpl@2c97b5d7
!!EAS getApplicationClass!!
!!EAS getApplicationClass!!
EAS getNewApplication
EAS request org.apache.catalina.core.ApplicationHttpRequest@92e5ec4
EApp RequestStart Method
org.activiti.explorer.ExplorerApp@69ed628f
EA User null
EA request: org.apache.catalina.core.ApplicationHttpRequest@92e5ec4
EA response: org.apache.catalina.connector.ResponseFacade@5179f6a
DLH request authenticates
DLH authHeader Basic kermit:kermit
DLH st.hasMoreTokens() true
DHL username: kermit
DHL password: kermit
DHL loggedInUser org.activiti.explorer.identity.LoggedInUserImpl@13eaff
setting user
EA User After Authenticate Response: org.activiti.explorer.identity.LoggedInUserImpl@13eaff
true
true
showing default page
DLH onRequestStart
org.activiti.explorer.identity.LoggedInUserImpl@13eaff
org.apache.catalina.session.StandardSessionFacade@27025142
ExplorerApp init
EA LoggedInUser org.activiti.explorer.identity.LoggedInUserImpl@13eaff
!!EAS getApplicationClass!!
!!EAS getApplicationClass!!
EAS getNewApplication
EAS request org.apache.catalina.core.ApplicationHttpRequest@aac0dac
EApp RequestStart Method
org.activiti.explorer.ExplorerApp@785f5cb8
EA User null
EA request: org.apache.catalina.core.ApplicationHttpRequest@aac0dac
EA response: org.apache.catalina.connector.ResponseFacade@5179f6a
DLH request authenticates
DLH authHeader null
DHL loggedInUser null
EA User After Authenticate Response: null
DLH onRequestStart
null
org.apache.catalina.session.StandardSessionFacade@1baeb1e9
ExplorerApp init
EA LoggedInUser null
!!EAS getApplicationClass!!
!!EAS getApplicationClass!!
EApp RequestStart Method
org.activiti.explorer.ExplorerApp@785f5cb8
EA User null
EA request: org.apache.catalina.connector.RequestFacade@5c6b48f7
EA response: org.apache.catalina.connector.ResponseFacade@5179f6a
DLH request authenticates
DLH authHeader null
DHL loggedInUser null
EA User After Authenticate Response: null
DLH onRequestStart
null
org.apache.catalina.session.StandardSessionFacade@1baeb1e9
EApp RequestStart Method
org.activiti.explorer.ExplorerApp@785f5cb8
EA User null
EA request: org.apache.catalina.connector.RequestFacade@5c6b48f7
EA response: org.apache.catalina.connector.ResponseFacade@5179f6a
DLH request authenticates
DLH authHeader null
DHL loggedInUser null
EA User After Authenticate Response: null
DLH onRequestStart
null
org.apache.catalina.session.StandardSessionFacade@1baeb1e9
</blockcode>
It looks to me like after logging in, the ExplorerApplicationServlet method getApplicationClass is called a second time, and this time after getting through the methods in the servlet the user is null, and the HTTP request and response are also both null.