Sharing an application context between two WARs?-Collection of common programming errors

Do you need to share the runtime context, or do you want to just re-use bean definitions across the two applications?

If it is only the latter then you could easily extract the common Spring context XML files into some shared dependency, and just re-use the JAR across the two webapps. However if you need the beans/services in each application to talk to each other, you need a different option.