Servlet Authenticator problem

I’m having problem at my hosting place with a java servlet.  The servlet hits another website with authenticated http REST request.  This works fine on my local development box.  However when setting the authentication (Authenticator.setDefault) running at the hosted website it blows up.  Like so

java.security.AccessControlException: access denied (java.net.NetPermission setDefaultAuthenticator) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:269) at java.security.AccessController.checkPermission(AccessController.java:401) at java.lang.SecurityManager.checkPermission(SecurityManager.java:524) at java.net.Authenticator.setDefault(Authenticator.java:84) at
TestServlet.main(
TestServlet.java:48)

It seems to be permission problem on the server.  The hosting place is using Resin.  I’m going to see what they have to say about it.  They might have to adjust the security policy file for me.

One Comment

  1. […] had a problem at the hosting place with an authenticated http request. Now 5 days later it’s finally solved.  5 days mind you is a long time.  It […]

Leave a Reply