It is a myth that Java requires massive amounts of XML that make your eyes bleed.
It is perfectly possible to configure a servlet environment once with 15 lines of XML and then never look at it again.
Look at Google Guice for example, which does awesome Java based configuration and composition of components.