我在Tomcat 8.0.11和JRE 1.8.0_20中部署了dashboard-builder-6.1.0.Final.war应用程序。 最初有ClassNotFoundException这是好的,我找到了所需的依赖项并将它们提供给它。在我的例子中是slf4j-api-1.7.7.jar和cdi-api-1.2.jar。
不幸的是,当尝试通过http://myhost.com:8080/dashboard-builder/打开JBPM仪表板时,更令人困惑的是:
org.apache.jasper.JasperException: An exception occurred processing JSP page /login.jsp at line 162
159:
160: <div id="login-content">
161: <%
162: LocaleManager localeManager = LocaleManager.lookup();
163: Locale currentLocale = localeManager.getCurrentLocale();
164: SessionInitializer.PreferredLocale preferredLocale = SessionInitializer.getPreferredLocale(request);
165: if (preferredLocale != null) currentLocale = preferredLocale.asLocale();
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:568)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:470)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:405)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:349)
javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
root cause
java.lang.NullPointerException
org.jboss.dashboard.commons.cdi.CDIBeanLocator.getBeanByName(CDIBeanLocator.java:50)
org.jboss.dashboard.LocaleManager.lookup(LocaleManager.java:37)
org.apache.jsp.login_jsp._jspService(login_jsp.java:214)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:405)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:349)
javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
我真的不明白这个原因。任何想法都将不胜感激,谢谢!
答案 0 :(得分:0)