Hi,
Is this error occurring after a context reload? You may want to turn
off context reloading in your mvn jetty configuration because, as far
as i can tell, that has always been a completely broken feature.
Do this by adding <scanIntervalSeconds>0</scanIntervalSeconds> to the
"org.mortbay.jetty" <configuration/>
You can setup javarebel if you want to avoid restarting the container
for minor code changes. You may still run into permgen issues as
javarebel reloads classes too. But, these JVM flags will help reduce
the frequency further:
-XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=128m
(add to your MAVEN_OPTS env variable)
I would also suggest looking into sbt as the continuous compilation is
much more robust than scala:cc (it keeps track of dependencies and
will recompile the entire tree). The only downside is there's no yui
compressor plugin, yet.
- Jon