Using Spring ContextLoaderListener in JBoss config with default wars -


I am trying to use Spring to configure a web app posted in Jebos. I've added it to web.xml:

  & lt; Listener & gt; & Lt; Audience category & gt; Org.springframework.web.context.ContextLoaderListener & lt; / Listener Category & gt; & Lt; / Listener & gt;  

However, I have made my configuration based on the 'default' jabos config, which includes war, such as jmx-console.war, and can no longer be deployed with this error:

  [contextloader] Failure initializing references org.springframework.beans.factory.BeanDefinitionStoreException: XML document parsing from IOException ServletContext processing [/WEB-INF/applicationContext.xml]; The nested exception is Java. IFFileNotefx is an exception: can not open the ServletContext resource [/WEB-INF/applicationContext.xml]  

How can I tell ContextLoaderListener to ignore this error, or At least bypass these special wars, while still trying to take action on their own wars?

code> /WEB-INF/applicationContext.xml . Since this is application-specific, it should be configured for your application, not other apps. It is, do not map ContextLoaderListener at an application server level.

You can set up an alternate location, using it:

  & lt; Context param & gt; & Lt; Ultimate Name & gt; ContextConfigLocation & lt; / Lastname & gt; & Lt; Ultimate Price & gt; /WEB-INF/mylocation/spring.xml & lt; / Ultimate-value & gt; & Lt; / Reference param & gt;  

But you (and you should not do) can not ignore it.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -