Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to start Liferay. It was working a few weeks ago. When I enter localhost:8080 I get a 404 error.

Here is the stack trace, where the error occurs. Does anyone have any ideas regarding how to fix this. I am using Liferay Portal 5.2.2 and Tomcat 5.5

08:07:46,919 ERROR [ContextLoader:220] Context initialization failed
java.lang.StackOverflowError at java.lang.ClassLoader.findBootstrapClass(Native Method)at 
java.lang.ClassLoader.findBootstrapClass0( at 
java.lang.ClassLoader.loadClass( at 
java.lang.ClassLoader.loadClass( at 
sun.misc.Launcher$AppClassLoader.loadClass( at 
java.lang.ClassLoader.loadClass( at at at at 
sun.misc.URLClassPath$FileLoader.getResource( at 
sun.misc.URLClassPath$FileLoader.findResource( at 
sun.misc.URLClassPath.findResource( at$ at Method) at at 
java.lang.ClassLoader.getResource( at 
java.lang.ClassLoader.getResource( at 
org.apache.catalina.loader.WebappClassLoader.getResource(WebappClassL at 
th( at 
org.apache.commons.configuration.ConfigurationUtils.locate(Configurat at 
org.apache.commons.configuration.AbstractFileConfiguration.load(Abstr at
share|improve this question
Nice, a stackoverflow question belonging to serverfault ;-) (couldn't resist) – Olaf May 25 '09 at 22:21

This forum thread on could contain a hint hwo to solve this issue:

I removed my and changed my DB setting directly in portal-impl.jar and now I am no longer seeing this issue.

share|improve this answer

It might be this issue, fixed in the current trunk. The subversion commit information is also included in Jira, so you can apply the same patch to your code. (see the fisheye information in the issuetracker)

Otherwise (and if splattne's link didn't help) we'll need more information:

  • What database is involved?
  • Is this exception upon server start or on access to localhost:8080 ?
  • What happens if you use a fresh installation (with your customizations, most likely in liferay's, also with the required database driver)
  • Can you give more stacktrace information? I expect it to be prohibitively long, but a bit more information for localizing the root cause would be good.
  • Did you try the Liferay forums? There might be more people hanging around there with in-depth Liferay knowledge than here (no pun intended).
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.