I have a servlet that was running fine until a few days ago. But the only thing that I’ve changed is the nexus repo I’m using for maven. I’m running the servlet via mvn jetty:run
But when I try to access the site instead of seeing the home page, I see:
HTTP ERROR 500
Problem accessing /. Reason:
jregex/Pattern
I can access other url’s fine such as /favicon.ico. But I can’t find anything on this jregex/Pattern error and it doesn’t look like the jregex library is being used in the code at all.
I also don’t see any problems in the logs. It looks like requests for the homepage are not making it to my servlet but requests for other pages are.
This is happening on both Arch Linux and Mac OS X 10.7
This is almost certainly a dependency issue because after replacing my ~/.m2 folder with an old one (with dependencies from the old nexus server) it works.
Sometimes I also get:
HTTP ERROR: 503
Problem accessing /. Reason:
SERVICE_UNAVAILABLE
I would start with comparing the
ear/warfile created before and after you changed yourpom.xml. This should lead you to jar files that were changed. Assumming everything is open source, download sources from maven repo and compare them. \Edit: JRegex is a java library with Perl regexp support.
Perhaps changing maven repo caused downloading other versions of your dependencies, and they have some optional dependency to JRegex. (You should be able to check that).
Try adding JRegex to your dependencies and see what happens. (Note this whould be a workaround if you’re in production and in a hurry)