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
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.