Created attachment 819350 [details] dashbuilder - tomcat7 - invalid credentials error Description of problem: When doing a login with invalid credentials using the tomcat-7 dashbulder distribution, an error page is diplayed with a nullpointer exception. Version-Release number of selected component (if applicable): 6.1.0-SNAPSHOT (builded on 4 nov 2013) How reproducible: Steps to Reproduce: 1. Install tomcat 7 2. Add users specified in https://github.com/droolsjbpm/dashboard-builder/blob/master/builder/src/main/tomcat7/README.md into tomcat-users.xml (tomcat realm) 3. Copy dashbuilder-tomcat-7.war into webapps directory 4. Navigate to http://localhost:8080/dashbuilder-tomcat-7/ 5. Try to login with invalid credentials 6. An error page with a nullpointer exception is displayed. Actual results: Expected results: Invalid credentials error message. Additional info: The exception is: java.lang.NullPointerException org.jboss.weld.context.AbstractBoundContext.deactivate(AbstractBoundContext.java:71) org.jboss.weld.context.http.HttpRequestContextImpl.deactivate(HttpRequestContextImpl.java:86) org.jboss.weld.servlet.WeldListener.requestDestroyed(WeldListener.java:103) org.jboss.weld.servlet.api.helpers.ForwardingServletListener.requestDestroyed(ForwardingServletListener.java:42) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041) org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603) org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) java.lang.Thread.run(Thread.java:724) NOTE: Probably I'm missing some tomcat configuration??
See screenshot attached
Thats a known issue (https://issues.jboss.org/browse/JBPM-4034). The problems it seems to be caused by the following Weld issue https://issues.jboss.org/browse/WELD-1020. It seems to be fixed in Weld 2.0. But unfortunately, Dashbuilder is based on Weld 1.1 as it's the version used by EAP The issue will be fixed when adapting Dashbuilder to forthcoming versions of the AS. WildFly 8 may be.
One possible workaround is using basic authentication instead of form based authentication.
Ok, so... this issue can be marked as duplicate and closed?
It's not duplicated, as it's reported in a JIRA. We'll leave it open by the moment to keep track with low priority.