Hello Christopher, Thank you for your answer and sorry for putting the wrong mailing list ;)
2015-02-19 20:22 GMT+01:00 Christopher Schultz <ch...@christopherschultz.net >: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > Marco, > > This is probably a question better asked on the user mailing list. I'm > cross-posting to both lists, and I'll give more feedback on the user list. > > - -chris > > On 2/19/15 11:25 AM, Marco Semiao wrote: > > I use on my application a web listener ( ServletContextListener ) > > that allows you to compile jsp at startup . > > > > It does not work on Tomcat 8 in call : > > servletContext.getRequestDispatcher ( path); > > > > Here is the stack : > > > > org.apache.catalina.core.ApplicationContext.log Error during > > mapping java.lang.NullPointerException at > > org.apache.catalina.mapper.Mapper.internalMapWrapper(Mapper.java:842) > > > > > at org.apache.catalina.mapper.Mapper.map(Mapper.java:712) > > at > > > org.apache.catalina.core.ApplicationContext.getRequestDispatcher(ApplicationContext.java:503) > > > > > at > > > org.apache.catalina.core.ApplicationContextFacade.getRequestDispatcher(ApplicationContextFacade.java:221) > > > > > at > > > fr.ms.tomcat.servlet.listener.JspCompileRunnable.run(JspCompileRunnable.java:25) > > > > > This is occurs when the map contextObjectToContextVersionMap is still null. > > > > It is enriched at the end of the boot StandardServer so after > > initializing listeners . > > > > Thread [main] (Suspended (breakpoint at line 265 in Mapper)) owns: > > MapperListener (id=456) owns: StandardService (id=457) owns: > > Object (id=458) owns: StandardServer (id=459) > > Mapper.addContextVersion(String, Host, String, String, Context, > > String[], WebResourceRoot, Collection<WrapperMappingInfo>) line: > > 265 MapperListener.registerContext(Context) line: 380 > > MapperListener.registerHost(Host) line: 302 > > MapperListener.startInternal() line: 110 > > MapperListener(LifecycleBase).start() line: 150 > > StandardService.startInternal() line: 450 > > StandardService(LifecycleBase).start() line: 150 > > StandardServer.startInternal() line: 769 > > StandardServer(LifecycleBase).start() line: 150 Catalina.start() > > line: 625 NativeMethodAccessorImpl.invoke0(Method, Object, > > Object[]) line: not available [native method] > > NativeMethodAccessorImpl.invoke(Object, Object[]) line: 57 > > DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 43 > > Method.invoke(Object, Object...) line: 606 Bootstrap.start() line: > > 351 Bootstrap.main(String[]) line: 485 > > > > > > > > it works fine with tomcat 5, 6 and 7. > > > > > > Environnement : apache- tomcat- 8.0.15 or apache -tomcat- 8.0.18 > > Windows 8.1 Java 7 update 75 > > > > > > Thank you. > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1 > Comment: GPGTools - http://gpgtools.org > > iQIcBAEBCAAGBQJU5jfqAAoJEBzwKT+lPKRYgYcP/3nIEDDxUvgsFn7nkyyGPmbP > NEPbJc+a95V71X/8UHyYTbwB/rp5NOKaDU8KwJMzolZi03A8tRID9JX4irqRJhAR > 7MpqCoAuW469zyxzUVlqRQK0rv9MB6PORZRZZ320yfFokWSapjoe7RC4sB/wTCXr > J5BxSV7l0hJOwuHSi9lq417EdCxVxm9y/kCdasMBG0t8eB11oQQER8y78tuuUdJQ > EaTiK8gxYyDeJstuep+tayLswmLHF6FFJxbzLoFxawPpSBpvjtZUGkNGtV1Wpu+C > i1D/V3oHm/rAgLeHZlpH7Zcq43jr7w0ev2t5PxisO9Kz/SgB2jEZfw8t7DqYmD64 > 2oWhVxB1xOnB86+6QkhWDtQ0gdc3gsUUilbMdUNE1Me7oTkTJQkq09h7nARmdiIT > 04w7mXJ55cC3YrKA0yncVYW0qRWBCfx5omNHhCU3OAaGXgrmLX4/ZoiKUK5zdK2s > IdZmXUbrlIN186YDXWd/lkzoF/SmLtvBSEOuAGHTXLCepP0Y7u3RdX473wqm9zh+ > pmA4tHg1HJQuwkIonC7dwJ7fROsU4V0Zvy5wQ5pu1Gm+zOxNsQ88WnZlzCbY0cct > e1PIgAkiFD6FiVtetvYfHPP3KMzNURN40OEkaBGY46NDUj9tPCe0tuZ8Yn8VEwXA > pULqLLdBRINZF0NLa/Qh > =rlyu > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org > For additional commands, e-mail: dev-h...@tomcat.apache.org > >