Background:
We have 2 solutions/apps (1 for external customers the other for internal use only) that run on the same Apache Tomcat instance. I am working on putting together a dashboard to show our support reps the active users logged into these apps. I created a module with 1 form ("ActiveUsers_v1") with a ws_read() function that uses plugins.clientmanager.getConnectedClients() to get the list of users to return. When testing in the Servoy Developer with either solution the REST calls work just fine using the following url:
- Code: Select all
http://localhost:8080/servoy-service/rest_ws/WS/v1/ActiveUsers
Issue:
The 2 apps run just fine in my QA environment (single Apache Tomcat instance with 2 solutions). When I try testing the new REST calls it only works for 1 of the solutions, which happens to be the first solution (I'll call it App_A). When I make the call to App_B, it returns the following:
- Code: Select all
<html>
<body>No Servoy web service found for '
rest_ws
'</body>
</html>
I can see the headless client start in App_A but not in App_B.
I'm using Postman to test these services using the following urls:
- Code: Select all
http://x.x.x.x:8080/App_A/servoy-service/rest_ws/WS/v1/ActiveUsers
http://x.x.x.x:8080/App_B/servoy-service/rest_ws/WS/v1/ActiveUsers
Do I need to configure something differently for the headless client/REST to work in both solutions?
Louis