Chinmayee Srivathsa's Weblog

Looking to Redirect URLs in Your Web App?

Wednesday Apr 16, 2008


If you are deploying web applications, you will most often want to provide "friendly" URLs to your end users. You do not want your end users to be typing long URLs to be able to view web pages. GlassFish or Sun Java System Application Server helps you easily accomplish URL redirection even without using the load balancer and without making any changes to your web application.
This article on BigAdmin explains URL redirection in GlassFish or Sun Java System Application Server quite clearly.

Like this post? del.icio.us | furl | slashdot | technorati | digg

Troubleshooting GlassFish - part 2

Friday Apr 11, 2008


I was reading about the persistent Baital (or vampire) who continually caused difficulties for the legendary king Vikramaditya with his puzzling tales and I was reminded that I should write the second part to my earlier blog about recurring problems in GlassFish.
These two installation-related problems pop up really often!

Most Common Problems and Solutions


Problem Solution
On Linux or Solaris, GlassFish or Sun Java System Application Server installation fails. Error message says the installer could not create the default domain.
Set your environment variable LC_CTYPE to "C".
GlassFish or Sun Java System Application Server installer freezes and does not allow you to continue installing after you provide the installation path.
This problem occurs because of a previous unclean/partial uninstallation. or failed installation. The solution is to delete Application Server-specific entries from the productregistry file:
* On Windows, the productregistry file is usually at c:\Windows\system32\productregistry. Do NOT delete this file. Search for all application server-specific entries and remove them.

* On Solaris, run /bin/prodreg and uninstall application server. * On Linux or other non-Solaris Unix systems, the productregistry file is at var/tmp/productregistry. Delete all application server-related information.

Like this post? del.icio.us | furl | slashdot | technorati | digg