Why doesn it work when I put cocoon.jar in my servlet context or servlet zone instead of my classpath?
This is a complex issue – the details are too complicated to go into here. One issue is that, due to a problem in some classloader implementations (for example, Apache JServ 1.1) local resources cannot be loaded if they are located in custom repositories and packaged inside zip/jar files. Some suggested workarounds (which may or may not work) are: • expand the cocoon.jar file and put that directory in your servlet context, • or place the required resources in your classpath • or use a servlet engine that doesn’t have this limitation.