This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes problem on url rewriting and cookies , what is differences Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "problem on url rewriting and cookies , what is differences" Watch "problem on url rewriting and cookies , what is differences" New topic
Author

problem on url rewriting and cookies , what is differences

raminaa niilian
Ranch Hand

Joined: Jul 14, 2005
Posts: 551
Hi
Thank you for reading my post
I have a problem with my hosted application , when i click on some of my
links in the web application
the server return an exception like :


java.lang.IllegalArgumentException: Path http://www.mysite.com/ does not
start with a "/" character

For example that come from clicking a link that change the language.
also i used dynamic forward creation
in the web site that i build . the above exception come when i click on
one of my flags
which produce a url like :

http://www.mysite.com/ChangeLocale.do;jsessionid=2B7855F5F585B96C83B68FBC6B4E78D4?Lang=en

, but when the browser shows the exception if i click GO button of
browser again it will works fine.

I contact the host provider and ask them to give me some help (this
problem introduced after we
moved our web application to new host)
they said :

It looks like a bug in tomcat. Please force your application not to do
url rewriting and use cookies instead. This should solve your problem.

When i ask them about tomcat version they said :
its tomcat 5.5.15 , meanwhile my application works fine on tomcat 5.5.12
my questions are :
What that solution means ?
does tomcat 5.5.15 has that problem ?


Thanks
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: problem on url rewriting and cookies , what is differences
 
Similar Threads
Struts & JPA - How to deploy web application after implementing?
JCaptcha and Struts
Jboss 5.0 not able to connect to databse
I get exception : Path http://www.mywebsite.com/ does not start with a "/" character
Links in jsp getting jsessionid embedded in them causing them to break