Here’s a tip: just set endorsed libraries for the XML stuff in Cocoon. Set it on your JVM. I couldn’t get much else working, and I tried a lot of permutations. You don’t need the Servlet classloader hack. See EndorsedLibsProblem on the Cocoon Wiki for more information.
ParanoidCocoonServlet might work too, really, but its warnings about mysterious ClassCastExceptions kept me away. In my testing it worked fine, but I didn’t feel comfortable going forward with it. This is probably something to test after you’ve developed your application; see if you can get away with it.
– darky, who is in over his head