Share all details about your problem, including any error messages you may have received.
Makeing REST calls within my plugin (working in IIQ8.3/4/5) leads into the HTML response 404. Is the REST URL different in IIQ9.0 or what do I have to change to get it working again?
Hello Detlef. I could not find any documented change to the plugin REST URL in IIQ 9.0. Since 9.0 moved to Jakarta EE 10, I would first check whether your plugin is still using the older Java EE dependencies.
If you are calling custom REST endpoints, I would check the following:
Verify the request URL in the browser’s Network tab.
Check the server logs during plugin initialization for any class-loading or REST registration errors.
Replace javax.ws.rs.* with jakarta.ws.rs.* and update the affected dependencies.
Verify the restResources entries in manifest.xml, rebuild the plugin against the IIQ 9.0 libraries, increment the version and redeploy.
If the REST resources are failing to register due to incompatible dependencies, that could explain the 404 you are seeing.
Could you share the REST URL you are calling, with the hostname masked?
thanks for your, I have overlooked the *.ws.rs.* change. That explains it. I guess version dependent restResources entry are not possible. I will figure out how to resolve the issue.
You are welcome, Detlef. I could not find a documented way to make restResources version-dependent either.
I would maintain one codebase and generate two plugin ZIPs:
IIQ 8.x: javax.ws.rs, with maxSystemVersion set to the highest supported 8.x version.
IIQ 9.0: jakarta.ws.rs, with minSystemVersion set to 9.0.
You could try Eclipse Transformer during packaging to avoid maintaining two sets of source code. As long as the resource class names remain the same, you can leave restResources unchanged.
I would test the converted plugin on IIQ 9.0 before releasing it, as namespace conversion alone may not cover other API changes.
I got it working now. I have created two restResources classes. One for IIQ8 (using javax) and one for IIQ9 (using jakarta). I create two plugin zip files. The only difference is the restResources I use in manifest.xml
And I added the jakarta dependencies into my pom.xml (I am using Maven).