From issues-return-13948-apmail-struts-issues-archive=struts.apache.org@struts.apache.org Mon Sep 28 08:07:11 2009 Return-Path: Delivered-To: apmail-struts-issues-archive@minotaur.apache.org Received: (qmail 70277 invoked from network); 28 Sep 2009 08:07:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Sep 2009 08:07:11 -0000 Received: (qmail 97439 invoked by uid 500); 28 Sep 2009 08:07:10 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 97368 invoked by uid 500); 28 Sep 2009 08:07:10 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 97360 invoked by uid 99); 28 Sep 2009 08:07:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Sep 2009 08:07:10 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Sep 2009 08:07:08 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D27E4234C04B for ; Mon, 28 Sep 2009 01:06:48 -0700 (PDT) Message-ID: <2000352583.1254125208859.JavaMail.jira@brutus> Date: Mon, 28 Sep 2009 01:06:48 -0700 (PDT) From: "Eric Chijioke (JIRA)" To: issues@struts.apache.org Subject: [jira] Closed: (WW-3265) Embedded JSPPlugin causing error compiling non-embedded jsp pages In-Reply-To: <1995968258.1254041868480.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 2265bf7ad70cb93affdfde3e15287371 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/struts/browse/WW-3265?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Eric Chijioke closed WW-3265. ----------------------------- Fixed. Tested with Tomcat 6.0.14 > Embedded JSPPlugin causing error compiling non-embedded jsp pages > ----------------------------------------------------------------- > > Key: WW-3265 > URL: https://issues.apache.org/struts/browse/WW-3265 > Project: Struts 2 > Issue Type: Bug > Components: Other > Affects Versions: 2.1.8 > Environment: jdk 1.6.0_11 > Tomcat version 6.0.14 > Struts 2.1.8 files, dependencies & plugins: > Windows XP Sp3 > Reporter: Eric Chijioke > Assignee: Musachy Barroso > Fix For: 2.1.9 > > > Trying to load regular (non-embedded) jsp page for the first-time (compile) AFTER having loaded any embedded-jsp page for the first time causes the following error : > java.lang.AbstractMethodError: javax.servlet.jsp.JspFactory.getJspApplicationContext(Ljavax/servlet/ServletContext;)Ljavax/servlet/jsp/JspApplicationContext; > at org.apache.jsp.example.Register_jsp._jspInit(Register_jsp.java:25) <-- Depends on page being loaded > at org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:52) > at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:159) > at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329) > I have reproduced this in the struts blank application released with the 2.1.8 build as follows: > 1) Generated struts2-blank web app fro struts2-blank.war (Using eclipse IDE) > 2) Setup to execute in tomcat 6 server > 3) Added my additional dependencies: > - spring 2.5.6 (and related dependencies) > - struts-spring-plugin > - embeddedJsp-plugin > - reporting-framework.jar (this is my packaged ui fmwk with the embedded jsps) > - json.jar (required by reporting-framework.jar) > - commons-el.jar (required by reporting-framework.jar) > - struts-json-plugin (required by reporting-framework.jar) > 4) Configure spring to load reporting framework stuff and reporting action > 5) Add embedded reporting framework struts configuration > - add reporting.xml include in struts.xml config (reporting.xml comes with reporting-framework.jar) > - Add new Reporting action configuration to load embedded jsp page > 6) Add 2 new links on HelloWorld.jsp > - New 'Reporting' link to load reporting page from embedded jsp reporting fmwk > - Add 'Register' link to load existing Register.jsp page > 7) Start application. Load HeloWorld.jsp > 8) Click 'Reporting' link -> loads reporting ui page > 9) Go back to HelloWorld.jsp > 10) Click 'Register' link -> throws Exception -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.