Win a copy of Succeeding with AI this week in the Artificial Intelligence and Machine Learning forum!
  • 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
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Junilu Lacar
Sheriffs:
  • Tim Cooke
  • Jeanne Boyarsky
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • fred rosenberger
  • Frits Walraven

Firefox can't establish a connection to the server at localhost:8443.

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have setup web.xml for Confidential transport guarantee I am getting unable to connect port 8443 instead of login.html

Please see the code snippet below and give me your suggestion

<security-constraint>
<web-resource-collection>
<web-resource-name>ServListenerTest</web-resource-name>
<url-pattern>/ServListenerTest.html</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>

<auth-constraint>
<role-name>admin</role-name>
</auth-constraint>

<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>

</security-constraint>


<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/login.html</form-login-page>
<form-error-page>/error.html</form-error-page>
</form-login-config>
</login-config>

<security-role>
<role-name>admin</role-name>
</security-role>
[ January 04, 2008: Message edited by: Venkatesan Sathiamurthy ]
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need an SSL certificate. The knowledge of how to get one and set it up isn't required for the exam.

If you're really eager to do the extra work and figure this out, VeriSign offers a Trial for on their Secure Site certificate. You'll probably also need to Google for tutorials on how to set this up with Tomcat.

If you're trying to study for the exam though, this could become a very frustrating distraction.
 
v sat
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks- your suggestion was helpful and I agree this could cause distraction while preparing for exam.

Regarding certificate - Also, SUN allows to create test certifcate.
 
Rancher
Posts: 43015
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Leaving aside the necessity of doing this for the exam, setting up SSL for Tomcat is pretty easy, and is documented well. You don't need a certificate from Verisign for your experiments; you can create one yourself (and that page tells you how).

As an aside, you may have missed that we have a policy on screen names here at JavaRanch. Basically, it must consist of a first name, a space, and a last name, and not be obviously fictitious. Since yours does not conform with it, please take a moment to change it, which you can do right here.
 
Every snowflake is perfect and unique. And every snowflake contains a very tiny ad.
Two software engineers solve most of the world's problems in one K&R sized book
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic