Using Spring ContextLoaderListener in JBoss config with default wars?

You must have your application context at WEB-INF/applicationContext. Xml As this is application-specific, it should be configured for your applications, not other applications. That is, don't map the ContextLoaderListener at an application server level.

You must have your application context at /WEB-INF/applicationContext.xml. As this is application-specific, it should be configured for your applications, not other applications. That is, don't map the ContextLoaderListener at an application server level.

You CAN setup an alternative location, using: contextConfigLocation /WEB-INF/mylocation/spring. Xml But you can't (and you must not) ignore it.

I'm not sure I'm following you... are you saying that I must add a /WEB-INF/applicationContext. Xml to ALL the . War files, even if it is just an empty file?

The jboss default setup includes 6 wars: admin-console. War, http-invoker. Sar/invoker.

War, jbossws. Sar/jbossws-management. War, jmx-console.

War, management/console-mgr. War, and ROOT.war. I have worked around the problem by doing this (adding an empty applicationContext.

Xml), it just seems kind of hackish to have to change these . Wars that come with jboss by default and will never have any spring config. – Kevin Pauli Dec 8 '09 at 18:19 No, I meant you must have ContextLoaderListener declared only for your application, not for all – Bozho Dec 8 '09 at 18:31 Oh!

For some reason I was under the misconception that the only place you could add filters was in the web. Xml under jbossweb.deployer. Thanks, that of course is the correct solution!

– Kevin Pauli Dec 8 '09 at 19:46.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions