• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
v sat
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 ]
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • 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.
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic