• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem in POST request

 
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am using IBM websphere 5.1 and facing a weird "Cannot find server" problem.
I have a multipart/form data jsp page.

My Setup:
I am having a simple servlet/jsp based web application. The request first comes to the servlet1 which does some initialization or variables and then paints jsp1. Jsp1 has action as servlet2, which is the heart of application and acts as a controller servlet.

When i was testing using http://localhost/ContextRoot/servlet1 it was working great. Then what i was doing is logging on to my test server and pointing the domain to localhost in the host file so all my requests were coming to my local server.
I made an entry in %systemroot%\system32\drivers\etc\hosts file - 127.0.0.1 www.abcd.com.

The first servlet is called and painting the page fine. Then i click on the page and do a submit, sometimes it works fine, sometimes it says server not found.

Scenarios:
1) I tried clicking on the refresh button on browser and request went to my local server.
2) When i was submitting back to back it worked sometimes... Then when i wait and hit submit... it cries "Cannot find server".
3) When i deployed the code on my test server it is working fine.
4) And it is working fine on mozilla.

I am really confused... as it works great with localhost instead of domain name...

Thanks,
Karan
 
The human mind is a dangerous plaything. This tiny ad is pretty safe:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic