Return-Path: Delivered-To: apmail-struts-dev-archive@www.apache.org Received: (qmail 62828 invoked from network); 24 Sep 2009 13:45:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Sep 2009 13:45:26 -0000 Received: (qmail 97024 invoked by uid 500); 24 Sep 2009 13:45:25 -0000 Delivered-To: apmail-struts-dev-archive@struts.apache.org Received: (qmail 96952 invoked by uid 500); 24 Sep 2009 13:45:25 -0000 Mailing-List: contact dev-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Developers List" Reply-To: "Struts Developers List" Delivered-To: mailing list dev@struts.apache.org Received: (qmail 96942 invoked by uid 99); 24 Sep 2009 13:45:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Sep 2009 13:45:25 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of obinna@gmail.com designates 209.85.210.186 as permitted sender) Received: from [209.85.210.186] (HELO mail-yx0-f186.google.com) (209.85.210.186) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Sep 2009 13:45:17 +0000 Received: by yxe16 with SMTP id 16so2228404yxe.27 for ; Thu, 24 Sep 2009 06:44:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=ltAkPnrnYOPeQblNC7cUG3JAu5sjxjHGi8YVjG90t+c=; b=qdltsVpcDMsakoTwavbvgF7AN+keAm6RjyYE0I3Q8EHFHuQzAs7UHLzpFBR2PgkAyu ncYC5+GVBdGogIVITdTvtXWk6P9/WlbgHp+1jtapLUL5L1nAJz9T9kcq3ksqAdI7KCXM ZLYaXFV2UpOZNtLbGS7knEZqoxZ2ThA1eAx7o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=sLFI2VJ831jd5Ro4oK1fEdNoV57b3l0Fsino6yXxGWM9iJxuPc7MK8iADKtAwGyOHW gOwsi9R8GW4nPXMBvvF+Mcg5Cfh1NAuJJNQw5yUVGXZncWXK2Hd63qYQfvvc5pDKJ7qM 54YnHx562nAVSgAmlloqdrHOtAP1Rkir6q/HQ= MIME-Version: 1.0 Received: by 10.150.33.1 with SMTP id g1mr4977936ybg.265.1253799895816; Thu, 24 Sep 2009 06:44:55 -0700 (PDT) Date: Thu, 24 Sep 2009 16:44:55 +0300 Message-ID: Subject: NPE in embeddedJsp plugin From: Obinna To: Struts Developers List Content-Type: multipart/alternative; boundary=000e0cd63cca68dbd6047453095f X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd63cca68dbd6047453095f Content-Type: text/plain; charset=ISO-8859-1 I'm getting a NPE in the embeddedJsp plugin. It seems to originate from JSPLoader.getJarURL(clazz) at URL loc = codeSource.getLocation() because codeSource is null. (protectionDomain.getCodeSource() returns null). Not sure why this is happening for me (it is occurring when clazz = interface javax.servlet.Servlet), but the API docs say that protectionDomain.getCodeSource() can be null, so there should probably be a check here or another way of getting the jar url. -Eric On Wed, Aug 26, 2009 at 8:07 AM, Obinna wrote: > Nope. I tried that. > Strangely, It builds without error (but without including resources > package) if I build from the plugin pom, but tests error > if I try to build entire struts2 root pom. (seems related b/c > testEmbeddd/testEmbeddedAbsolutePath throw NPE on Localizer line 150 : > bundle must be null) > I suspect I'm doing something wrong with Maven... > > > > > > On Tue, Aug 25, 2009 at 7:23 PM, Musachy Barroso wrote: > >> that's pretty weird. Did you do try a 'mvn clean' first? >> >> On Tue, Aug 25, 2009 at 8:53 AM, Obinna wrote: >> > When I build the embedded jsp plugin, maven doesn't include the >> > org.apache.struts2.jasper.resources package (doesn't create in 'target') >> > which is causing some errors. Any ideas why? >> > >> > - Eric >> > >> > On Fri, Aug 14, 2009 at 6:58 PM, Musachy Barroso >> wrote: >> > >> >> As long as they are in the classpath, embedded or not embedded the >> >> plugin will find them, which goes to show that 'embedded' is a >> >> terrible name. There are junits for the plugin itself that read the >> >> jsps from the file system(not compressed/embedded). >> >> >> >> musachy >> >> >> >> On Fri, Aug 14, 2009 at 7:58 AM, Brian Pontarelli> > >> >> wrote: >> >> > Does this plugin provide for executing the JSPs in unit tests? >> Embedding >> >> is >> >> > really nice, but unit testing is even better. >> >> > >> >> > -bp >> >> > >> >> > >> >> > On Aug 13, 2009, at 12:27 PM, Wes Wannemacher wrote: >> >> > >> >> >> I think it is a good idea, as much as I dislike JSP (because it is >> so >> >> >> non-portable, which this very plugin addresses), it is ubiquitous. >> >> >> >> >> >> -Wes >> >> >> >> >> >> On Thu, Aug 13, 2009 at 2:16 PM, Musachy Barroso >> >> wrote: >> >> >>> >> >> >>> The JSP plugin turned out to work better than I expected(tags and >> >> >>> includes work), so I would like to bring it out of the sandbox and >> >> >>> label it as "experimental" until we get more people to try it out. >> Any >> >> >>> objections/comments (this is not a vote thread, that will be later >> if >> >> >>> there are no objections)? >> >> >>> >> >> >>> musachy >> >> >>> -- >> >> >>> "Hey you! Would you help me to carry the stone?" Pink Floyd >> >> >>> >> >> >>> >> --------------------------------------------------------------------- >> >> >>> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org >> >> >>> For additional commands, e-mail: dev-help@struts.apache.org >> >> >>> >> >> >>> >> >> >> >> >> >> >> >> >> >> >> >> -- >> >> >> Wes Wannemacher >> >> >> >> >> >> Head Engineer, WanTii, Inc. >> >> >> Need Training? Struts, Spring, Maven, Tomcat... >> >> >> Ask me for a quote! >> >> >> >> >> >> >> --------------------------------------------------------------------- >> >> >> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org >> >> >> For additional commands, e-mail: dev-help@struts.apache.org >> >> >> >> >> > >> >> > >> >> > --------------------------------------------------------------------- >> >> > To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org >> >> > For additional commands, e-mail: dev-help@struts.apache.org >> >> > >> >> > >> >> >> >> >> >> >> >> -- >> >> "Hey you! Would you help me to carry the stone?" Pink Floyd >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org >> >> For additional commands, e-mail: dev-help@struts.apache.org >> >> >> >> >> > >> >> >> >> -- >> "Hey you! Would you help me to carry the stone?" Pink Floyd >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org >> For additional commands, e-mail: dev-help@struts.apache.org >> >> > --000e0cd63cca68dbd6047453095f--