Mantis - Resin
Viewing Issue Advanced Details
390 minor always 09-20-05 00:00 11-30-05 14:42
agrebnev  
 
immediate  
closed 3.0.14  
3.0.14 fixed  
none    
none 3.0.15  
0000390: JSP 1.2 Tag inside JSP 2.0 Tag
RSN-436
Hello

I am project owner of Blandware AtLeap (https://atleap.dev.java.net). [^] AtLeap works correctly under 9 application servers (Tomcat, Weblogic, Websphere etc.). But it does not work under Resin 3.0.14. My developer has already tried to submit this bug (http://www.caucho.com/bugtrack/browse/RSN-376) [^] to you but it looks like you ignore it. Special for you I have written sample web application (see attachment) which demonstrates this bug.

The idea of bug is that Resin generates the java from JSP which cannot be compiled. Resin does not support correctly jsp12tag (extends TagSupport) inside jsp20tag (extends SimpleTagSupport) if before it there is the the same jsp20tag with simple text body e.g.

<atleap:jsp20tag>
    Some text
</atleap:jsp20tag>

<atleap:jsp20tag>
   <atleap:jsp12tag/>
</atleap:jsp20tag>

As result we have the following error

500 Servlet Exception
/index.jsp:15: cannot resolve symbol
symbol : variable _jsp_JSP20Tag_0_adapter
location: class _jsp._index__jsp
      _jsp_JSP20Tag_0_adapter = new javax.servlet.jsp.tagext.TagAdapter(_jsp_JSP20Tag_0);
      ^
/index.jsp:15: cannot resolve symbol
symbol : variable _jsp_JSP20Tag_0_adapter
location: class _jsp._index__jsp
      _jsp_JSP20Tag_0.setJspBody(_jsp_fragment_1 = _CauchoFragment.create(_jsp_fragment_1, 1, pageContext, _jsp_JSP20Tag_0_adapter, null));
                                                                                                           ^
2 errors
com.caucho.java.JavaCompileException: /index.jsp:15: cannot resolve symbol
symbol : variable _jsp_JSP20Tag_0_adapter
location: class _jsp._index__jsp
      _jsp_JSP20Tag_0_adapter = new javax.servlet.jsp.tagext.TagAdapter(_jsp_JSP20Tag_0);
      ^
/index.jsp:15: cannot resolve symbol
symbol : variable _jsp_JSP20Tag_0_adapter
location: class _jsp._index__jsp
      _jsp_JSP20Tag_0.setJspBody(_jsp_fragment_1 = _CauchoFragment.create(_jsp_fragment_1, 1, pageContext, _jsp_JSP20Tag_0_adapter, null));
                                                                                                           ^
2 errors
    at com.caucho.java.InternalCompiler.executeInt(InternalCompiler.java)
    at com.caucho.java.InternalCompiler.compileInt(InternalCompiler.java:79)
    at com.caucho.java.AbstractJavaCompiler.run(AbstractJavaCompiler.java:101)
    at java.lang.Thread.run(Thread.java:534)


I this it is very critical bug and it should be fixed as soon as possible.

Best regards.
Andrey Grebnev
http://www.jroller.com/page/agrebnev [^]
Resin 3.0.14, Sun JDK 1.4.2_04

Notes
(0000448)
ferg   
09-20-05 00:00   
jsp/18ei