-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Konstantin,
On 3/14/13 5:25 PM, Konstantin Kolinko wrote: > 2013/3/15 Nick Williams <nicho...@nicholaswilliams.net>: > >> I resolved the NullPointerException by calling >> tomcat.getService().setContainer(tomcat.getEngine()) between >> init() and start(). Everything is working fine now, and I can go >> to http://localhost:8973/MyServlet and it's working great, but I >> still suspect I'm doing something wrong, since no documentation >> or tutorials anywhere mention needing to do that and it seems >> that the container should automatically be set on the service... > > There are a number of working examples in the testsuite. +1 The Tomcat class is used everywhere in the test suites. They even run properly ;) - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEAREIAAYFAlFDd0QACgkQ9CaO5/Lv0PAbkgCeMiVWMr2rHTmyKI+kfXQIoUDU SGIAnA4sBwbGoPzdwIQ62oF4XxLSQrs8 =0saJ -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org