Blank page In Server Settings -> Rest API plugin

Hi,

We have installed Openfire 3.101.13.

We have installed plugin Rest API.

We need to consume rest api for adding roster entry, creating room and adding users to room.

but when are navigating to server settings -> REST API for setting secure key; only blank page occurs.

same case when we tried to open …/restapi/v1/users url, it’s also blank.

we tried to consume rest api using one of the rest clients, then it throws 404 NOT found exception.

if anyone knows, please help.

I think, below error gets logged in debug / error

2015.11.25 20:21:58 org.jivesoftware.openfire.container.PluginServlet - javax.servlet.jsp.JspFactory.getJspApplicationContext(Ljavax/servlet/ServletCon text;)Ljavax/servlet/jsp/JspApplicationContext;

java.lang.NoSuchMethodError: javax.servlet.jsp.JspFactory.getJspApplicationContext(Ljavax/servlet/ServletCon text;)Ljavax/servlet/jsp/JspApplicationContext;

at org.jivesoftware.openfire.plugin.restAPI.rest_002dapi_jsp._jspInit(rest_002dapi _jsp.java:47)

at org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:79)

at org.jivesoftware.openfire.container.PluginServlet.registerServlets(PluginServle t.java:179)

at org.jivesoftware.openfire.container.PluginManager.loadPlugin(PluginManager.java :458)

at org.jivesoftware.openfire.container.PluginManager.access$300(PluginManager.java :76)

at org.jivesoftware.openfire.container.PluginManager$PluginMonitor.run(PluginManag er.java:1068)

at org.jivesoftware.openfire.container.PluginManager.installPlugin(PluginManager.j ava:191)

at org.jivesoftware.openfire.update.UpdateManager.downloadPlugin(UpdateManager.jav a:285)

at org.jivesoftware.openfire.update.PluginDownloadManager.installPlugin(PluginDown loadManager.java:68)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at uk.ltd.getahead.dwr.impl.ExecuteQuery.execute(ExecuteQuery.java:248)

at uk.ltd.getahead.dwr.impl.DefaultExecProcessor.handle(DefaultExecProcessor.java: 48)

at uk.ltd.getahead.dwr.impl.DefaultProcessor.handle(DefaultProcessor.java:81)

at uk.ltd.getahead.dwr.AbstractDWRServlet.doPost(AbstractDWRServlet.java:162)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)

at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1669)

at org.jivesoftware.admin.AuthCheckFilter.doFilter(AuthCheckFilter.java:159)

at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1652)

at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:11 8)

at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)

at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1652)

at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)

at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)

at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)

at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:22 3)

at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:11 27)

at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)

at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185 )

at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:106 1)

at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)

at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandler Collection.java:215)

at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.jav a:110)

at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)

at org.eclipse.jetty.server.Server.handle(Server.java:497)

at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)

at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)

at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)

at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635 )

at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)

at java.lang.Thread.run(Unknown Source)

Regards,

Sachin Shinde

sorry, server version is 3.10.3

You have the error after you updated your existing openfire to 3.10.3?

Thanks for replying.

We checked after upgrade.

we upgraded because of internal server error 500, we were receiving for adding roster entries

It seems to be a compatibility problem in the REST API v. 1.2.1 . Please use the latest working version 1.1.7 http://bamboo.igniterealtime.org/artifact/OPENFIRE-NIGHTLYPLUGINS/shared/build-1 817/Project-Plugins/restAPI.jar

Yes, it worked. thanks