Return-Path: X-Original-To: apmail-openejb-users-archive@www.apache.org Delivered-To: apmail-openejb-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F2A489B89 for ; Fri, 13 Jan 2012 13:52:12 +0000 (UTC) Received: (qmail 6904 invoked by uid 500); 13 Jan 2012 13:52:12 -0000 Delivered-To: apmail-openejb-users-archive@openejb.apache.org Received: (qmail 6710 invoked by uid 500); 13 Jan 2012 13:52:11 -0000 Mailing-List: contact users-help@openejb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openejb.apache.org Delivered-To: mailing list users@openejb.apache.org Received: (qmail 6702 invoked by uid 99); 13 Jan 2012 13:52:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jan 2012 13:52:10 +0000 X-ASF-Spam-Status: No, hits=3.0 required=5.0 tests=FORGED_YAHOO_RCVD,SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jan 2012 13:52:04 +0000 Received: from joe.nabble.com ([192.168.236.139]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1RlhXj-0004Lq-N0 for users@openejb.apache.org; Fri, 13 Jan 2012 05:51:43 -0800 Date: Fri, 13 Jan 2012 05:51:43 -0800 (PST) From: Scratch To: users@openejb.apache.org Message-ID: <1326462703699-4292186.post@n4.nabble.com> Subject: TomEE Plus (1.0.0-beta-2): Getting NPE for JAX-RS resource with context root "/" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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.