Invoking https web services from Glassfish 4 returns HTTPS 403 Error

ⅰ亾dé卋堺 提交于 2019-12-25 03:06:11

问题


I am developing a web service client with NetBeans 7.4 in Glassfish 4.0; The host server runs https (secured). I could access the WSDL in NetBeans successfully and generated the required classes. The problem is that I get a error:

com.sun.xml.ws.client.ClientTransportException: The server sent HTTP status code 403: Forbidden

when I deploy my application into Glassfish 4.0. Interestingly, this problem does not occur when I deploy into Tomcat or when I develop, build and run as a Java Desktop application.

Is there some setup I need to do on Glassfish? I noticed the host server I am accessing uses a Verisign Certificate. Any help will be very much appreciated!


回答1:


Well, after searching everywhere for a solution; I got the hint from My application on Glassfish 3.1 won't perform client authentication by removing -Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as from the default glassfish domain's jvm option

Thanks!



来源:https://stackoverflow.com/questions/20442889/invoking-https-web-services-from-glassfish-4-returns-https-403-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!