Excellent work! I'll make sure this makes it into beta-2 when we re-roll it.
-David On Jan 13, 2012, at 11:44 AM, Romain Manni-Bucau wrote: > fixed on trunk > -> https://issues.apache.org/jira/browse/TOMEE-61 > > - Romain > > > 2012/1/13 Romain Manni-Bucau <rmannibu...@gmail.com> > >> Hi Craig, >> >> yes, we assumed you were not using ROOT webapp to deploy your rest >> services. >> >> I'll fix it soon. >> >> It was because ROOT set by default its ùeta data to complete and we didnt >> think it could be changed. >> >> Thanks for the report! >> >> - Romain >> >> >> >> 2012/1/13 Scratch <craigmical...@yahoo.com> >> >>> Hi guys, >>> >>> First off, great work. I love the idea of being able to deploy EE 6 apps >>> within a Tomcat environment. >>> >>> I've run into a problem with my JAX-RS resources. When I set my app's >>> context root to something like "/myapp", it works fine; but when my app is >>> run in the root context (ROOT.war), I'm seeing this: >>> >>> Caused by: java.lang.NullPointerException >>> at >>> >>> org.apache.tomee.webservices.TomcatRsRegistry.createRsHttpListener(TomcatRsRegistry.java:92) >>> at >>> >>> org.apache.openejb.server.rest.RESTService.deployPojo(RESTService.java:237) >>> at >>> >>> org.apache.openejb.server.rest.RESTService.afterApplicationCreated(RESTService.java:111) >>> at >>> >>> org.apache.tomee.webservices.TomeeJaxRsService.afterApplicationCreated(TomeeJaxRsService.java:55) >>> at >>> >>> org.apache.tomee.catalina.WebDeploymentListeners.afterApplicationCreated(WebDeploymentListeners.java:38) >>> >>> >>> I've stepped through the code, and it looks like createRsHttpListener() is >>> assuming that the webContext is always non-blank. >>> >>> For now, I can just workaround this by deploying to a non-root context, >>> but >>> I just wanted to see if this was a known problem. >>> >>> Thanks! >>> >>> >>> -- >>> View this message in context: >>> http://openejb.979440.n4.nabble.com/TomEE-Plus-1-0-0-beta-2-Getting-NPE-for-JAX-RS-resource-with-context-root-tp4292186p4292186.html >>> Sent from the OpenEJB User mailing list archive at Nabble.com. >>> >> >>