What kind of application? If a WAR, then simply rename the file and deploy again. Example: someapp.war, otherapp.war
thanks peter, this works partially for me.
the issue is that the main application is indeed a WAR file.
however, this WAR uses external JARs loaded also with server start.
even though the WAR and JARs are located in different directories, when the second WAR loads, it tries to load the JAR files, which are already loaded from the startup process of the WAR in the aforementioned directory.
when this happens, the log issues errors and says the JAR files are already registered and the server does not load the second instance.
is there a way to fix this without going into class loaders?
I have had mulitple apps use common JARs located in the lib directory without any issues. What is it about your apps that is different? And what do you mean by "when the second WAR loads, it tries to load the JAR files" - this sounds to me like you are already using classloaders.
By the way, a simple quick fix might be to package the common JARs in your WAR. If youare really wanting to load the JARs twice, then the only "waste" this introduces is additional disk space (and disk is cheap!)