This seems to be a common problem, per my experience and this post http://blog.wookets.com/2011/11/spring-31-environment-profile.html
You can use JVM args or system properties instead, read that...