This looks like spring issue, and you don't give us much to go on by.
I have 3 web projects in my application, and i have application context xml's in each of these, in which i have entries to choose my properties file based on the above said environment variable configured in the server. when i deploy my application without this System property spring.profiles.active, the server starts up fine with no lags/ hangs. But when i configure the above said seystem property in my Server it gets stucked up, and the last line getting printed in my console is
ServerService Thread Pool -- 58 SpringApplicationContext entered setApplicationContext(): Spring app context: Root WebApplicationContext: startup date [Tue May 27 12:34:09 IST 2014]; root of context hierarchy
Let me know if you need any other info.