Reputation: 101
I created appEngine project from the Maven glass java starter project, and I am trying to run it as appengine:devserver But, when I try to access the localhost on the browser, it says:- "This webpage has a redirect loop".
Also, how do I delete the cache on the chrome browser, because even when the localserver is not running, I still get the above mentioned error, unless I delete the cache from the browser and restart my Windows m/c.
Upvotes: 2
Views: 241
Reputation: 101
I resolved this issue.
Basically, it was a url-rewriting issue and the Jetty server was inserting the sessionId (jsessionId
) into the URL.
I disabled this by having this in the web.xml
:
<context-param>
<param-name>org.mortbay.jetty.servlet.SessionURL</param-name>
<param-value>none</param-value>
</context-param>
and this in the appengine-web.xml
:
<sessions-enabled>true</sessions-enabled>
Upvotes: 2
Reputation: 22306
Instead of "localhost", try creating a host entry in your %SystemRoot%\system32\drivers\etc\hosts file (eg. devserver.example.com 127.0.01)
When testing, you can disable Chrome cache by going into devtools and clicking the settings gear.
Upvotes: 0