I've run into this same problem and can confirm that it wasn't fixed by SLING-1928. Sorry for that false hope.
>From my perspective, the problem is that WebLogic's JSP compiler (i.e. the component which generates Java source code from a JSP page) inserts a cast like this: javax.servlet.jsp.JspWriter out = pageContext.getOut(); weblogic.servlet.jsp.ByteWriter bw = (weblogic.servlet.jsp.ByteWriter)out; The problem, of course, is that Sling's JspWriterImpl doesn't implement the ByteWriter interface. I suspect the solution is to create a JSP tag specific to Sling which can be used instead of c:import and will set/reset the default JSPFactory before doing the include. Justin On Mon, Apr 11, 2011 at 11:08 AM, Carsten Ziegeler <[email protected]> wrote: > Hi, > > you need to make the jsp/servlet-api classes from weblogic available to > Sling/OSGi. You can do this by adding this line to the sling.properties > file: > > sling.bootdelegation.weblogic=javax.el,javax.servlet.jsp,javax.servlet.jsp.el,javax.servlet.jsp.resources,javax.servlet.jsp.tagext > > You might need to add additional packages (I wrote this out of my head) > > Regards > Carsten > > tim tam wrote >> I am using version 2.0.14 of org.apache.sling.scripting.jsp >> >> On Fri, Apr 8, 2011 at 11:07 AM, tim tam <[email protected]> wrote: >> >>> I am not sure how to check that. I am using sling as a part of using Day CQ >>> version 5.4 >>> >>> >>> On Fri, Apr 8, 2011 at 10:10 AM, Carsten Ziegeler >>> <[email protected]>wrote: >>> >>>> Hi, >>>> >>>> are you using the latest Sling JSP scripting? >>>> >>>> Regards >>>> Carsten >>>> >>>> tim tam wrote >>>>> I am accessing a tag from a 3rd party library, which is loaded into my >>>> ear >>>>> where I also have CQ apps. >>>>> Am running into this exception on weblogic >>>>> >>>>> Caused by: java.lang.ClassCastException: org.apache.sling.scripting. >>>>> jsp.jasper.runtime.JspWriterImpl cannot be cast to >>>>> weblogic.servlet.jsp.ByteWriter >>>>> at jsp_servlet.__frag1._jspService(__frag1.java:68) >>>>> at weblogic.servlet.jsp.JspBase.service(JspBase.java:34) >>>>> at >>>>> >>>> weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) >>>>> at >>>>> >>>> weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) >>>>> at >>>>> >>>> weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300) >>>>> at >>>>> >>>> weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:416) >>>>> at >>>>> >>>> weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:326) >>>>> at >>>>> >>>> weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:183) >>>>> at >>>>> >>>> weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:526) >>>>> at >>>>> >>>> weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:447) >>>>> at gopa.taglibrary.IncludeTag.doEndTag(IncludeTag.java:585) >>>>> at >>>>> >>>> gopa.apache.jsp.apps.myapp.components.page.contentpage.contentpage_jsp._jspx_meth_gopa_005finclude_005f0(contentpage_jsp.java:247) >>>>> at >>>>> >>>> gopa.apache.jsp.apps.myapp.components.page.contentpage.contentpage_jsp._jspService(contentpage_jsp.java:102) >>>>> at >>>>> >>>> gopa.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) >>>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) >>>>> at >>>>> >>>> org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:419) >>>>> >>>>> Would appreciate any troubleshooting tips- what to look for >>>>> Thankyou >>>>> Tim >>>>> >>>> >>>> >>>> -- >>>> Carsten Ziegeler >>>> [email protected] >>>> >>> >>> >> > > > -- > Carsten Ziegeler > [email protected] >
