• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

http://localhost:8080 redirects to http://www.localhost.com:8080

 
Himai Minh
Ranch Hand
Posts: 1359
7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried to deploy my client Servlet for the StringProcessor in Ivan's notes. I use Glassfish to deploy the servlet.
However, the http://localhost:8080/.... is always redirected to http://www.localhost.com:8080/.... and I cannot connect to the server.
Here is my code :



index.jsp


web.xml
 
Himai Minh
Ranch Hand
Posts: 1359
7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know the solution.
My Avast ! Free Antivirus redirects localhost:8080 to www.localhost.com:8080.
I reset the web redirection setting in Avast!
Now, it works.
 
Abhay Agarwal
Ranch Hand
Posts: 1376
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for posting the solution here.

~ abhay
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic