aspose file tools*
The moose likes Tomcat and the fly likes Url gets changed on mapping Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Url gets changed on mapping" Watch "Url gets changed on mapping" New topic
Author

Url gets changed on mapping

Manpreet Patil
Greenhorn

Joined: Oct 18, 2009
Posts: 18
Hello Guys,

I have mapped my application http://www.example.net:8080/MyApp at http://www.example.net.

But when i hit the url http://www.example.net, while navigation it changes to http://www.example.net/MyApp because of which it started throwing exceptions at various places.

Could anyone help me on this.

Thanks in advance
Misha Ver
Ranch Hand

Joined: Mar 03, 2008
Posts: 470
Manpreet Patil wrote:I have mapped my application http://www.example.net:8080/MyApp at http://www.example.net


How did you do it?
Manpreet Patil
Greenhorn

Joined: Oct 18, 2009
Posts: 18
i have done apache to tomcat mapping using mode proxy for mapping the url "www.example.com:8080/myapp" into www.example.com. but after mapping i got the session null exception in my application in some place. but it's work fine in my old URL "www.example.com:8080/myapp"
Misha Ver
Ranch Hand

Joined: Mar 03, 2008
Posts: 470
Most likely you did something wrong, but it is impossible to tell what exactly is broken without seeing the actual mapping code.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Url gets changed on mapping