With the upgrade from Apache to Sun Webserver, I had to migrate the redirect functionality that points the photo section of the wiki to other parts of the site (this bug should be fixed now and we might be able to use the wiki for photos....).
When evaluating what to do with a request, the webserver has to decide what order to place items that are going to cause a redirect either at the HTTP level or within the server to something like an application server. Unfortunatley, the GUI and the CLI on Sun Webserver both add new redirects to the bottom of the list of redirects already there so if you add HTTP redirects to the part of your site that already has a web application, it won't work.
You need to edit the obj.conf file and move the following below any redirects you want to do inside the web application space:
NameTrans fn="ntrans-j2ee" name="j2ee"
For example, my obj.conf for this site now has:
<If $uri =~ "^/xwiki/bin/view/Photos/Opal(/|)$">
NameTrans fn="redirect" url="/opal"
</If>
<If $uri =~ "^/xwiki/bin/view/Photos/Wedding(/|)$">
NameTrans fn="redirect" url="/wedding"
</If>
<If $uri =~ "^(/|)$">
NameTrans fn="redirect" url="/xwiki/bin/view/Main/WebHome"
</If>
NameTrans fn="ntrans-j2ee" name="j2ee"
Unfortunately, neither the CLI nor the GUI seem to offer the ability to do this there so you're going to have to edit the config file manually and then use wadm to push the new config.