igniterealtime / REST-API-Client

Java REST API Client for the Openfire to manage Openfire instances by sending an REST/HTTP request to the server
Apache License 2.0
102 stars 62 forks source link

RESTServicePlugin cannot be resolved to a type in JSP #50

Closed guestlist-chris closed 2 years ago

guestlist-chris commented 2 years ago

I am trying to compile jar but the it fails at the JSP file.

[WARNING] org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: [17] in the generated java file: [/openfire-restAPI-plugin/target/classes/org/jivesoftware/openfire/plugin/restAPI/rest_002dapi_jsp.java] Only a type can be imported. org.jivesoftware.openfire.plugin.rest.RESTServicePlugin resolves to a package

An error occurred at line: [60] in the jsp file: [/rest-api.jsp] RESTServicePlugin cannot be resolved to a type 57:
58: final PluginManager pluginManager = admin.getXMPPServer().getPluginManager(); 59:
60: RESTServicePlugin plugin = (RESTServicePlugin) XMPPServer.getInstance().getPluginManager() 61: .getPlugin("restapi"); 62: 63: // Handle a save

Thanks in advance!