Thursday, May 20, 2010

Jetty hates spaces

When trying to run the J2ee preview in Eclipse, we kept getting a 503 "service unavailable" error even though there were no obvious errors starting up the server.

It turned out the problem was that the developer had placed their Eclipse workspace in the c:\documents and settings\.... area, and jetty gets confused when starting up in an environment with spaces in the path.

Moving the workspace to a non-space-using folder solved the problem.