Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Enable SSL on Tomcat Problem  RSS feed

 
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Guru,

I am trying to enable SSL on port 8443 on my application on TOMCAT.

I already got the TOMCAT ROOT application works. https://localhost:8443.
However, my own application only works for port 8080, and port 8443 does not work.

attached file is my server.xml

Here is the doc I follow.

http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html

If I missed something on my app.

Can any help me out?

Thanks and regards,
 
Sam Sunamin
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If Tomcat run as a embedded in eclipse, it causes problem.
If Tomcat run as stand alone, the SSL works fine. And no error or exeption found.
Even after I put keystore under path\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\webapps

Anyone has any idea why?

URL without SSL is working- http://localhost:8080/testProject,
however https://localhost:8443/testproject does not work. It shows "Internet Explorer cannot display the webpage"
And Tomcat did not get any request.
 
Bartender
Posts: 20724
124
Android Eclipse IDE Java Linux Redhat Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's "Tomcat in Eclipse" and then there's "TOMCAT in Eclipse". If you are like most people, you're using the WTP plugin that comes bundled with the J2EE spin of Eclipse to run Tomcat.

One of the things I hate about WTP is that it doesn't simply use your Tomcat's config files, it makes copies of some (but NOT all of them! ) and puts them in an Eclipse workspace directory. When you change the master Tomcat configuration, you frequently have to whack WTP upside the head to get its attention; WTP won't automatically sense and apply those changes to its copy.

Which is why I use the sysdeo Tomcat plugin, myself. It doesn't play those games.
 
Sam Sunamin
Ranch Hand
Posts: 113
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Guys. Problem found: I had two version of JRE (1.50_22) and JRE6(1.6_15), and one JDK which is 1.6 version.

I used JDK 6 to generate .keystore, and JRE1.5 to compile and run application for Tomcat.

Anyway, I unistalled all JRE and JDK. And reinstalled JDK1.6 and JRE1.6, and re-generate .keystore with default value mentioned by Tomcat. And then it works.
No time to find the detail reason. It works now.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Enable SSL on Tomcat Problem

Complete solution at

http://www.ittechguru.net/?p=663
 
The overall mission is to change the world. When you've done that, then you can read this tiny ad:
ScroogeXHTML - small and flexible RTF to HTML converter library
https://coderanch.com/t/710903/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!