Re: How to Guarantee that a WAR Imports the Same Version of javax.servlet As Pax Web?

2011-05-04 Thread Achim Nierbeck
Hi could you please provide some more information on which karaf version and what you have included inside your war archive. But from my experience this is due to the fact that your war archive includes some sort of servlet.jar which is actually not allowed by any web container, just that the

Re: How to Guarantee that a WAR Imports the Same Version of javax.servlet As Pax Web?

2011-05-04 Thread Jean-Baptiste Onofré
Just as reminder, it's the same problem outside OSGi/Karaf. For instance, try to deploy a WAR in Tomcat or JBoss if you embed servlet.jar from another version, it will fail ;) The J2EE best practice specifies to avoid to include servlet.jar in the webapp classloader. Regards JB On

Re: How to Guarantee that a WAR Imports the Same Version of javax.servlet As Pax Web?

2011-05-04 Thread yourang
Thanks for the quick reply. It is indeed included on the class-path (not due to an explicit decision on our part, but because the application we OSGifying included it). I've made the change, but need to get it onto a box that was showing the problem. I'll provide an update in the next couple of