java - Jetty Maven plugin reload ignores web.xml listeners -


i have spring mvc java web application using 2 spring contexts. root application context, loaded via contextloaderlistener, , servlet context.

i'm loading application jetty maven plugin without problems (9.0.0.rc2), when try reload app manually console scanner (just hitting enter in console), application gets loaded again, contextloaderlistener not called, , servlet context fails not find beans in root context.

the log in initial load goes this:

2013-05-21 12:13:32.676:info:oejw.webinfconfiguration:main: adding virtual project first in resource base list 2013-05-21 12:13:33.149:info:oejpw.plusconfiguration:main: no transaction manager found - if webapp requires one, please configure one. 2013-05-21 12:13:34.879:info:/:main: no spring webapplicationinitializer types detected on classpath 2013-05-21 12:13:36.241:info:/:main: initializing log4j [classpath:log4j.properties] slf4j: class path contains multiple slf4j bindings. slf4j: found binding in [jar:file:/c:/users/j.calero/.m2/repository/org/slf4j/slf4j-log4j12/1.5.10/slf4j-log4j12-1.5.10.jar!/org/slf4j/impl/staticloggerbinder.class] slf4j: found binding in [jar:file:/d:/code/java/sms/portal-licitacion/target/tmp/portal-notificaciones-0_0_3-snapshot_war1/web-inf/lib/slf4j-log4j12-1.5.10.jar!/org/slf4j/impl/staticloggerbinder.class] slf4j: see http://www.slf4j.org/codes.html#multiple_bindings explanation. 2013-05-21 12:13:36.690:info:/:main: initializing spring root webapplicationcontext 12:13:36,691  info contextloader:273 - root webapplicationcontext: initialization started 12:13:37,068  info xmlwebapplicationcontext:495 - refreshing root webapplicationcontext: startup date [tue may 21 12:13:37 cest 2013]; root of context hierarchy 12:13:37,372  info xmlbeandefinitionreader:315 - loading xml bean definitions class path resource [context/applicationcontext.xml] 

and during reload:

2013-05-21 09:59:28.179:info:oejw.webinfconfiguration:console scanner: adding virtual project first in resource base list 2013-05-21 09:59:28.321:info:oejpw.plusconfiguration:console scanner: no transaction manager found - if webapp requires one, please configure one. 2013-05-21 09:59:28.831:info:portal de licitaciĆ³n:console scanner: no spring webapplicationinitializer types detected on classpath slf4j: class path contains multiple slf4j bindings. slf4j: found binding in [jar:file:/c:/users/j.calero/.m2/repository/org/slf4j/slf4j-log4j12/1.5.10/slf4j-log4j12-1.5.10.jar!/org/slf4j/impl/staticloggerbinder.class] slf4j: found binding in [jar:file:/d:/code/java/sms/portal-licitacion/target/tmp/portal-notificaciones-0_0_3-snapshot_war4/web-inf/lib/slf4j-log4j12-1.5.10.jar!/org/slf4j/impl/staticloggerbinder.class] slf4j: see http://www.slf4j.org/codes.html#multiple_bindings explanation. 2013-05-21 09:59:29.293:info:portal de licitaciĆ³n:console scanner: initializing spring frameworkservlet 'portal' 09:59:29,294  info dispatcherservlet:444 - frameworkservlet 'portal': initialization started 09:59:29,316  info xmlwebapplicationcontext:495 - refreshing webapplicationcontext namespace 'portal-servlet': startup date [tue may 21 09:59:29 cest 2013]; root of context hierarchy 09:59:29,353  info xmlbeandefinitionreader:315 - loading xml bean definitions class path resource [context/portal-servlet.xml] 

how can solve this?

well, small bug, indeed. filed bug , solved in less day!

https://bugs.eclipse.org/bugs/show_bug.cgi?id=408723

it solved in 9.0.4


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -