• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Configuring SSL with Eclipse

 
Ranch Hand
Posts: 44
Eclipse IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello everyone,
I have been trying to configure SSL with Eclipse, but I keep getting the Page Cannot Be Displayed message. I have successful configured SSL with Tomcat as per the Tomcat 6.0 documentation.

The example that I created runs successful on my web-browser(outside Eclipse) but generates This Program Cannot Display the Webpage error message in Eclipse.
Here's the code for my example:-

Login.html



usingHttpsForm.html



UsingHttpsServlet.java



web.xml




Is there any other way to configure SSL in Tomcat? I tried to changed the server.xml of the default server in Eclipse workspace but after that the server failed to start in Eclipse. Please advice.
 
Saloon Keeper
Posts: 24325
167
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The JEE version of Eclipse comes with WTP. WTP provides the ability to launch and control a copy of Tomcat. However, it does it very badly. I hate it. I hate it so much that I use the sysdeo Tomcat control plugin, instead.

WTP doesn't actually look at your server.xml every time you start Tomcat. Instead, it makes a private copy of server.xml and some, but not all, of your Tomcat config files. If you change the Tomcat server.xml, you then have to go in and give WTP a good, swift kick to get the changes to take effect. And, because WTP is making all sorts of simplistic assumptions about what's going on inside Tomcat, it can easily mess things up.
 
Nelo Angelo
Ranch Hand
Posts: 44
Eclipse IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Pheew, after a while the problem is now resolved. Changes to the server.xml (Tomcat) had already been made. I just created a new server within Eclipse. It imported the exact copy of Tomcat's server.xml. So, finally, SSL is working with eclipse. Thanks for the reply.
 
You ridiculous clown, did you think you could get away with it? This is my favorite tiny ad!
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic