Two Laptop Bag*
The moose likes JSF and the fly likes page not found when adding jsessionid to URL for icefaces 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 » Java » JSF
Bookmark "page not found when adding jsessionid to URL for icefaces" Watch "page not found when adding jsessionid to URL for icefaces" New topic
Author

page not found when adding jsessionid to URL for icefaces

Jeff Prideaux
Greenhorn

Joined: Sep 07, 2011
Posts: 2
I have a webapp that works fine with icefaces in my MyEclipse development environment using the integrated Tomcat sandbox. It also works find at hosting company A. We are, though, migrating it over to hosting company B and I can't get the subset of my icefaces pages to come up where I programmatically add in the jsessionid to the URL in the links. I don't do this for most of the icefaces links, but parts of the site are doing something somewhat special and need for that to work. I've also found that I can't get the icefaces pages with the jsessionid added to come up with a stand-alone Tomcat sever on my development box (although it works in MyEclipse tomcat sandbox).

For example, (just making up a domain) http://mydomain.com/test.iface gets served up but http://mydomain.com/test.iface;jsessionid=12345 gives a page not found error. Its like the servlet mapping doesn't think that *.iface;jsessionid=12345 is covered by *.iface.

My servlet mapping in my Tomcat web.xml file is as follows:

<servlet-mapping>
<servlet-name>Persistent Faces Servlet</servlet-name>
<url-pattern>*.iface</url-pattern>
</servlet-mapping>

Does anyone have any general guidance on what to look for. Again, it works in some environments of mine but not in others. I haven't yet been able to tell what is different. I'm using the same war file across the board.
Jeff Prideaux
Greenhorn

Joined: Sep 07, 2011
Posts: 2
I have more information about this.

Tomcat finds the iface page with the ;jsessionid added for Tomcat 6.0.32 but does not find it for Tomcat 6.0.33. Therefore, something changed between versions 6.0.32 and 6.0.33 to mess this up for me. Does anyone know what feature or security change bwtween Tomcat 6.0.32 and 6.0.33 might be responsible for the problem with adding sessionid to the URL for resources like iface pages? Also, is there a configuration change in the web.xml, server.xml, or context.xml that can turn off this change so that Tomcat 6.0.33 allows me to serve up pages like *.iface;jsessionid=123

Thanks,
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: page not found when adding jsessionid to URL for icefaces
 
Similar Threads
servlet mapping acting differently after deploying to server
Help with filters in icefaces
Java Servlet - Unable to set root/main/default servlet in Tomcat 5.5
strange instructions for servlet setup
Deploy JSF Problem