2010-12-11 4 views
1

Lorsque je tente de démarrer mon application web à partir d'Eclipse, je reçois l'exception suivante:Tomcat ApplicationContext getInitParameter lance NullPointerException

SCHWERWIEGEND: Exception sending context initialized event to listener instance of class org.springframework.web.util.Log4jConfigListener 
java.lang.NullPointerException 
    at java.util.concurrent.ConcurrentHashMap.put(Unknown Source) 
    at org.apache.catalina.core.ApplicationContext.mergeParameters(ApplicationContext.java:883) 
    at org.apache.catalina.core.ApplicationContext.getInitParameter(ApplicationContext.java:255) 
    at org.apache.catalina.core.ApplicationContextFacade.getInitParameter(ApplicationContextFacade.java:299) 
    at org.springframework.web.util.Log4jWebConfigurer.exposeWebAppRoot(Log4jWebConfigurer.java:185) 
    at org.springframework.web.util.Log4jWebConfigurer.initLogging(Log4jWebConfigurer.java:116) 
    at org.springframework.web.util.Log4jConfigListener.contextInitialized(Log4jConfigListener.java:45) 
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934) 
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429) 
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) 

Quand je commence avec la jetée, il n'y a pas de problème. Comme il m'a fallu quelques heures pour trouver le problème, je l'affiche ici, afin de trouver la réponse plus tôt la prochaine fois.

Répondre

1

Le problème était que l'un des paramètres du fichier context.xml n'avait pas d'attribut "value".

+0

Avez-vous également fait une mise à jour? – duffymo

+1

Non, mais vous pouvez toujours me downvote, si vous pensez que la réponse n'est pas utile. – Dominik

Questions connexes