I have a glassfish server on which I deployed an application that contains some web services. Everything was working fine. Then I decided to do port unification in order to direct all http traffic to https. I followed the steps in Glassfish v4 - java 7 - Port Unification - Error - not able to redirect http to https and it works fine. Now the problem is that when I try to deploy an application I get the following error message:
[2015-02-23T21:54:32.750+0000] [glassfish 4.1] [SEVERE] [] [javax.enterprise.system.core] [tid: _ThreadID=127 _ThreadName=admin-listener(7)] [timeMillis: 1424728472750] [levelValue: 1000] [[
Exception while preparing the app
java.lang.NullPointerException
at com.sun.enterprise.deployment.WebServiceEndpoint.composeEndpointAddress(WebServiceEndpoint.java:699)
at com.sun.enterprise.deployment.WebServiceEndpoint.composeEndpointAddress(WebServiceEndpoint.java:691)
at com.sun.enterprise.deployment.WebServiceEndpoint.composeFinalWsdlUrl(WebServiceEndpoint.java:754)
at org.glassfish.webservices.WebServicesDeployer.doWebServicesDeployment(WebServicesDeployer.java:625)
I searched online and found this post Glassfish port unification causes web service deployment exception which talked about forcing the web application to use SSL, so I added the following to the web.xml file of my application:
<security-constraint>
<display-name>Constraint1</display-name>
<web-resource-collection>
<web-resource-name>Secure Area</web-resource-name>
<description/>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<description/>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
but that didn't help. I still get the same error message. I tried adding the above to the default-domain.xml of the glassfish server but still got the same error. How can I solve this problem? Thanks.
Aucun commentaire:
Enregistrer un commentaire