I need to run multiple contexts but I have only one project/application. In Tomcat, I simply do a copy and paste in the application.xml file and change the name of the context, done.
In WebSphere, I go to the application.xml file and I get a GUI. So I try to add another context and it tells me I only have one project and it's already being used, or rather it already has a context pointing to it.
Well, I've learned it's vendor specific. But the method you are describing sounds pretty nasty. For example, in Tomcat all you have to do is cut and paste about 5 lines of XML in the server.xml file and change the context name. Done. So you can create 10 contexts real easy. The way you're describing would take me all day to create 10 EAR files. Ouch! But I'm using WebSphere and stuck doing it the hard way (the IBM way).