• 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 ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

The Application works fine on the localhost, but weirdly from remote

Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a really weird problem.
I have quite an old application, it uses a lot of different technologies.

1. Vaadin
2. GWT
3. Icepush

So basically this the web application, but everything happens on the server side.

In this case this not so important what the server side does, consider an abstract experiment.

The problem is that everything works find when running on from the localhost and doesn't work (works not as expected) when accessing via remote url.

Let's consider I have a server with OS Windows installed, GUI available (so I can control the OS as I was using it locally, TeamViewer).

I start Tomcat Servlet Container.

This Tomcat is available via localhost:8080/my_app and (where 12 is my external IP)

So I try to carry out an experiment via localocalhost:8080/my_app - works fine.

First time I try to carry out an via - works fine.

Second time - doesn't work. Produces incorrect results.

Anytime using localhost:8080/my_app - works fine.

NOTE. The tomcat instance is still the same, when using external url to perform an experiment it fails all time except the first one, but locally (localhost) it works perfectly all the time on the same tomcat instance.

But if I reboot the server or simply restart a tomcat instance first time from the external world works all other fails.

It is really weird problem, seems that something is going wrong with a part of shared memory, global variables or session.

I have spent a week trying to find the problem, but still no luck.  

Using different operating systems, Java versions, Jetty instead of a Tomcat server ...

Could you please suggest something taking into the account used technologies, maybe there is some specific stuff happens for remote request like forking, using new instance ....

I would be grateful for any help.
Surfs up space ponies, I'm making gravy without this lumpy, tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!