【问题描述】
Openfire 3.8.2 [Mar 4,2014 2:51:49 PM]
Admin console listening at http://127.0.0.1:9090
14:52:44,749 ERROR AdminConsole:248 - Failed to load admin-sidebar.xml file from Openfire classes - admin console will not work correctly.
java.lang.NullPointerException
at org.jivesoftware.admin.AdminConsole.getAppName(AdminConsole.java:137)
at org.jivesoftware.openfire.admin.decorators.setup_jsp._jspService(setup_jsp.java:177)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:547)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:480)
【问题分析】
两台电脑上跑的效果不一样,很奇怪,跟踪下去
InputStream getResourceAsStream(String name) 传入的参数莫名就变成null了
【解决方案】
尝试在classpath中把admin-sidebar.xml 所在的目录加进来就可以了
有待继续分析