Reportgeneration via Webservice using SSL
tbar0711 Oct 5, 2010 5:25 AMHi there,
I'm using JBoss 5.1.0.GA. I've got a working webservice, which starts the reportgeneration on the jasperserver and returns the result. Everything's fine so far.
Now I want to enable SSL. So I changed the web.xml (deploy / jasperserver.war / WEB-INF /).
web.xml:
<security-constraint>
<web-resource-collection>
<web-resource-name>JasperServerWebApp</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<!-- SSL disabled
<transport-guarantee>NONE</transport-guarantee> -->
<!-- SSL enabled -->
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
If I start my Webservice now I'm getting: (302) Moved Temporarily.
If I comment the connector port 8080 within server.xml (deploy / jbossweb.sar / ) I'm getting: Connection refused.
server.xml:
<!-- <Connector port="8080" address="${jboss.bind.address}" redirectPort="8443" /> -->
<!-- Add this option to the connector to avoid problems with
.NET clients that don't implement HTTP/1.1 correctly
restrictedUserAgents="^.*MS Web Services Client Protocol 1.1.4322.*$"
-->
<Connector
port="8443" minSpareThreads="5" maxSpareThreads="75"
enableLookups="true" disableUploadTimeout="true"
acceptCount="100" maxThreads="200"
scheme="https" secure="true" SSLEnabled="true"
keystoreFile="${jboss.server.home.dir}/conf/websslcert.p12" keystoreType="PKCS12"
keystorePass="mypassword" sslProtocol = "TLS" compression="on"
compressableMimeType="text/html,text/xml,text/plain,text/css,text/javascript" />
If I don't start the webservice and try to access the jasperserver Login Page via Browser (http://myjasperserver:8080/jasperserver) it automatically redirects me to https and everything's fine.
I only have a problem to use my webservice over SSL.
Could anyone tell me what I am doing wrong or what I have to do to get it working?
Thanks in advance.
Best Regards
Tom