Return-Path: Delivered-To: apmail-struts-dev-archive@www.apache.org Received: (qmail 40765 invoked from network); 26 Sep 2009 18:38:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 Sep 2009 18:38:45 -0000 Received: (qmail 61149 invoked by uid 500); 26 Sep 2009 18:38:44 -0000 Delivered-To: apmail-struts-dev-archive@struts.apache.org Received: (qmail 61086 invoked by uid 500); 26 Sep 2009 18:38:44 -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 61076 invoked by uid 99); 26 Sep 2009 18:38:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Sep 2009 18:38:44 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of musachy@gmail.com designates 209.85.222.193 as permitted sender) Received: from [209.85.222.193] (HELO mail-pz0-f193.google.com) (209.85.222.193) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Sep 2009 18:38:34 +0000 Received: by pzk31 with SMTP id 31so1322171pzk.26 for ; Sat, 26 Sep 2009 11:38:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=EWrckeVBony/YT8cAZRdRJjvOeefUpgNdmE8DYGHsCo=; b=rtZwGXYLO9HvkIGR1uTg9aLzDYsNK6Hl8u7nDAOFQCJ7Be3ROxM84eKPqdWqnC7vMo drFdenS34lifTGFJ8zXBERCTOnJ+PDiAaIg7YDWc+RpDdibz+8qJxPMsUpemvMABo5/v MUZmfG8zJ83W6cnQm8A0LU9BwHSdjFbOkehWE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=eWKdo2EBMNZNFz9nc17TFO2pvRtZeie34bB+MRClaMKnh4HMIAxAwnH/HysyqUShaY e8F2KwKX9f6cYOp0ysP/Z47QNJUyofmLNHAHp1/dUo43Du5iZsrJl1X4mt4mq1Y5VvaW A9USavVvDo4G1+jf1/bSnGqrmpIZYK99DWN2M= MIME-Version: 1.0 Received: by 10.114.7.13 with SMTP id 13mr2168858wag.82.1253990293159; Sat, 26 Sep 2009 11:38:13 -0700 (PDT) In-Reply-To: References: Date: Sat, 26 Sep 2009 11:38:13 -0700 Message-ID: Subject: Re: embeddedJsp plugin causing jsp compilation issues From: Musachy Barroso To: Struts Developers List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org I am trying to replicate it but it seems to work for me. Can you try to replicate it, in the blank application and give me the steps? thanks musachy On Sat, Sep 26, 2009 at 10:55 AM, Musachy Barroso wrote= : > hum, can you open a jira ticket with the details? sdk version, container = etc. > > On Sat, Sep 26, 2009 at 6:08 AM, Obinna wrote: >> I've been able to move some fairly complex interfaces into distributable >> jars using this plugin and by themselves they work great! However, using= it >> has a very strange side-effect wherein if I try to load any 'normal' .js= p >> page in the same web-app which has not been loaded (compiled) prior to t= he >> loading of *any *embedded jsp page causes the following error: >> >> javax.servlet.ServletException: java.lang.AbstractMethodError: >> javax.servlet.jsp.JspFactory.getJspApplicationContext(Ljavax/servlet/Ser= vletContext;)Ljavax/servlet/jsp/JspApplicationContext; >> =A0org.apache.jasper.servlet.JspServlet.service(JspServlet.java:274) >> =A0javax.servlet.http.HttpServlet.service(HttpServlet.java:803) >> >> If the page was loaded prior to any embedded .jsp, then it compiles fine= and >> reloads fine subsequently. >> >> >> >> >> On Fri, Sep 25, 2009 at 8:51 AM, Obinna wrote: >> >>> I figured out the problem. Somehow (don't ask), servlet-api.jar ended u= p in >>> my Tomcat endorsed folder. Removing it fixed the problem. It still seem= s >>> that assuming protectionDomain.getCodeSource() will return a non-null v= alue >>> is dangerous though. >>> >>> >>> >>> On Thu, Sep 24, 2009 at 4:44 PM, Obinna wrote: >>> >>>> I'm getting a NPE in the embeddedJsp plugin. >>>> >>>> It seems to originate from JSPLoader.getJarURL(clazz) at URL loc =3D >>>> codeSource.getLocation() because codeSource is null. >>>> (protectionDomain.getCodeSource() returns null). >>>> >>>> Not sure why this is happening for me (it is occurring when clazz =3D >>>> 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. >>>> >>>> =A0-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 w= rote: >>>>> >>>>>> 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 th= e >>>>>> >> plugin will find them, which goes to show that 'embedded' is a >>>>>> >> terrible name. There are junits for the plugin itself that read t= he >>>>>> >> jsps from the file system(not compressed/embedded). >>>>>> >> >>>>>> >> musachy >>>>>> >> >>>>>> >> On Fri, Aug 14, 2009 at 7:58 AM, Brian Pontarelli< >>>>>> brian@pontarelli.com> >>>>>> >> 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 i= t is >>>>>> so >>>>>> >> >> non-portable, which this very plugin addresses), it is ubiquit= ous. >>>>>> >> >> >>>>>> >> >> -Wes >>>>>> >> >> >>>>>> >> >> On Thu, Aug 13, 2009 at 2:16 PM, Musachy Barroso< >>>>>> musachy@gmail.com> >>>>>> >> 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 sandbo= x >>>>>> 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 >>>>>> >>>>>> >>>>> >>>> >>> >> > > > > -- > "Hey you! Would you help me to carry the stone?" Pink Floyd > --=20 "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