This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes Configuring SSL with Eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Configuring SSL with Eclipse " Watch "Configuring SSL with Eclipse " New topic

Configuring SSL with Eclipse

Nelo Angelo
Ranch Hand

Joined: Jul 25, 2011
Posts: 44

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:-




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.

I love java but she hates me... :'(
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15962

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.

Customer surveys are for companies who didn't pay proper attention to begin with.
Nelo Angelo
Ranch Hand

Joined: Jul 25, 2011
Posts: 44

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.
I agree. Here's the link:
subject: Configuring SSL with Eclipse
Similar Threads
Prevent intermediate access to any jsp page
HTTP Status 404 Error - error while calling a servlet from a jsp
error for first web application : The requested resource (/Beer-v1/ is not available.
ContextListener Problem
Redirecting to HTTPS