Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8850751
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T12:58:26+00:00 2026-06-14T12:58:26+00:00

I am new to Https/SSL based configuration.I am trying to invoke a simple Calculator

  • 0

I am new to Https/SSL based configuration.I am trying to invoke a simple Calculator web service with Client Authentication enabled. Following is connector entry from my tomcat(1)’s server.xml

   <Connector clientAuth="true" port="8443" minSpareThreads="5" maxSpareThreads="75"
   enableLookups="true" disableUploadTimeout="true"
   acceptCount="100" maxThreads="200"
   scheme="https" secure="true" SSLEnabled="true"
   keystoreFile="C:\cert\server.jks"
   keystoreType="JKS" keystorePass="password"
   truststoreFile="C:\cert\server.jks"
   truststoreType="JKS" truststorePass="password"
   SSLVerifyClient="require" SSLEngine="on" SSLVerifyDepth="2" sslProtocol="TLS"
   keyAlias="servercert"
/>

I am using a MyEclipse generated client for doing this(generated before SSL was enabled, and then wsdl url was changed to point to new HTTPS connection).WSDL url I am using is:

https://localhost:8443/MyService/CalculatorPort?wsdl

I am hosting this client in another tomcat(2). Here is the tomcat(2)’s server.xml entry:

<Connector port="8444" protocol="HTTP/1.1" SSLEnabled="true"
       maxThreads="150" scheme="https" secure="true"
       clientAuth="false" sslProtocol="TLS"            
           keystoreFile="C:\Cert\servcert"
           keystorePass="password"
           keyAlias="servcert"
/>

But now when I invoke the web service it gives me following error

javax.xml.ws.WebServiceException: Failed to access the WSDL at: https://localhost:8443/MyService/CalculatorPort?wsdl. It failed with: 
    Software caused connection abort: recv failed.
    com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.tryWithMex(RuntimeWSDLParser.java:162)
    com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:144)
    com.sun.xml.ws.client.WSServiceDelegate.parseWSDL(WSServiceDelegate.java:263)
    com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:226)
    com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:174)
    com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:104)
    javax.xml.ws.Service.<init>(Service.java:56)
    com.myeclipseide.ws.CalculatorService.<init>(CalculatorService.java:54)
    org.apache.jsp.index_jsp._jspService(index_jsp.java:86)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:386)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

NOTE:

  1. It works fine when only server side SSL is enabled with client authentication disabled.
  2. I have imported the certificate of server as well as client in JDK’s cacert keystore as trusted certificates.
  3. If I import the certificate in browser, I am able to access the WSDL even with client authentication enabled. But it doesn’t work when I access it via client hosted in tomcat(2) with client authentication enabled.

It seems to me that client is not using the keystore which I have configured as a part of tomcat(2)’s server.xml. But I am not sure. Please help me out with this issue.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T12:58:28+00:00Added an answer on June 14, 2026 at 12:58 pm

    I figured out the solution to this problem. Basically tomcat(2) hosting the client was not using the Certificate which I intended. Solution is to pass following JVM variables during tomcat startup

    • javax.net.ssl.keyStore
    • javax.net.ssl.keyStorePassword

    Documentation for these can easily be found on google. They can be configured in catalina.bat/catalina.sh file as JAVA_OPTS

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm very new to HTTPS/SSL so excuse my lack of knowledge. Right now I'm
The following URL https://developers.geoloqi.com/account/applications/new asks Name,Description,image,Redirect URI etc. P12 Certificate,P12 Password ,APNS Mode. Can
I tried to create a new folder following the instructions at https://developers.google.com/google-apps/documents-list/#creating_a_new_document_or_file_with_metadata_only instead of
I am trying to create a very simple (text based for now) email app
I'm fairly new to HTTPS/SSL/TLS and I'm a bit confused over what exactly the
I am relatively new to phonegap and I have recently set up HTTPS/SSL on
I am new to https configuration in tomcat. I googled a lot but that
I'm new to web programming. I've created a simple login form (with php). Now
I am invoking HTTPS SOAP web service through java code. I have already imported
HttpGet request = new HttpGet(https://192.168.1.140:8732/...); I wonder why I can only send successfully for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.