URL for servlet in plugin

My plugin contains a servlet similar to the UserService plugin. I model my plugin after the UserService plugin, but it appears that the client can not find the right URL.

The URL for the servlet in UserService plugin is http://127.0.0.1:9090/plugins/userService/userservice?..

So modeling after the pattern above, in my case, the URL my client uses to make an HTTP request : http://127.0.0.1:9090/plugins/myPlugin/servletmapping?..

but apparently, that does not work.

My plugin works in other areas such as intercepting packets. Can you please help? Thanks