0 Replies Latest reply on Oct 5, 2010 5:25 AM by tbar0711

    Reportgeneration via Webservice using SSL

    tbar0711 Newbie

      Hi 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 /).



                  <!--  SSL disabled
                  <transport-guarantee>NONE</transport-guarantee>   -->
                  <!--  SSL enabled   -->


      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.


            <!-- <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.*$"
                 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