You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by Bertrand Delacretaz <bd...@apache.org> on 2009/07/16 18:15:41 UTC

JSP-related integration tests are failing

Hi,

FYI, just tried to run the launchpad/testing integration tests and
most or all JSP-related tests are failing.

Haven't investigated further yet.

-Bertrand

Failing tests:
  testInfiniteLoopDetection(org.apache.sling.launchpad.webapp.integrationtest.JspIncludeTest)
  testForcedResourceType(org.apache.sling.launchpad.webapp.integrationtest.JspIncludeTest)
  testWithoutInclude(org.apache.sling.launchpad.webapp.integrationtest.JspIncludeTest)
  testWithInclude(org.apache.sling.launchpad.webapp.integrationtest.JspIncludeTest)
  testWithIncludeAndExtension(org.apache.sling.launchpad.webapp.integrationtest.JspIncludeTest)
  testMaxCallsDetection(org.apache.sling.launchpad.webapp.integrationtest.JspIncludeTest)
  testWithoutForward(org.apache.sling.launchpad.webapp.integrationtest.JspForwardTest)
  testWithForward(org.apache.sling.launchpad.webapp.integrationtest.JspForwardTest)
  testWithForwardAndExtension(org.apache.sling.launchpad.webapp.integrationtest.JspForwardTest)
  testInfiniteLoopDetection(org.apache.sling.launchpad.webapp.integrationtest.JspForwardTest)
  testForcedResourceType(org.apache.sling.launchpad.webapp.integrationtest.JspForwardTest)
  testCallFooHtml(org.apache.sling.launchpad.webapp.integrationtest.issues.SLING457Test)
  testCallHtml(org.apache.sling.launchpad.webapp.integrationtest.issues.SLING457Test)
  testRtJsp(org.apache.sling.launchpad.webapp.integrationtest.JspScriptingTest)
  testUnstructuredJsp(org.apache.sling.launchpad.webapp.integrationtest.JspScriptingTest)

Re: JSP-related integration tests are failing

Posted by Bertrand Delacretaz <bd...@apache.org>.
On Fri, Jul 17, 2009 at 10:28 AM, Carsten Ziegeler<cz...@apache.org> wrote:
> I guess the new commons classloader bundle is missing.

It was missing, tried to add it manually but JSP scripts still don't run.

steps to reproduce:

cd launchpad/testing
mvn clean package jetty:run
add commons classloader bundle
start bundles that were not running -> all 45 bundles active
try to render node using JSP script -> exception shown below

I can see that

/var/classes/org/apache/jsp/apps/foo/foo_jsp.java
/var/classes/org/apache/jsp/apps/foo/foo_jsp.class

are correct, and the .class file is recreated if I delete it and make
another request.

-Bertrand


Stack trace:

commons classloaderjava.lang.ClassNotFoundException: Class not found:
org.apache.jsp.apps.foo.foo_jsp
        at org.apache.sling.commons.classloader.impl.ClassLoaderFacade.loadClass(ClassLoaderFacade.java:102)
        at org.apache.sling.scripting.jsp.jasper.JspCompilationContext.load(JspCompilationContext.java:644)
        at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:145)
        at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:330)
        at org.apache.sling.scripting.jsp.JspServletWrapperAdapter.service(JspServletWrapperAdapter.java:59)
        at org.apache.sling.scripting.jsp.JspScriptEngineFactory.callJsp(JspScriptEngineFactory.java:130)
        at org.apache.sling.scripting.jsp.JspScriptEngineFactory.access$100(JspScriptEngineFactory.java:71)

Re: JSP-related integration tests are failing

Posted by Carsten Ziegeler <cz...@apache.org>.
I guess the new commons classloader bundle is missing.

Carsten

Bertrand Delacretaz wrote:
> Hi,
> 
> FYI, just tried to run the launchpad/testing integration tests and
> most or all JSP-related tests are failing.
> 
> Haven't investigated further yet.
> 
> -Bertrand
> 
> Failing tests:
>   testInfiniteLoopDetection(org.apache.sling.launchpad.webapp.integrationtest.JspIncludeTest)
>   testForcedResourceType(org.apache.sling.launchpad.webapp.integrationtest.JspIncludeTest)
>   testWithoutInclude(org.apache.sling.launchpad.webapp.integrationtest.JspIncludeTest)
>   testWithInclude(org.apache.sling.launchpad.webapp.integrationtest.JspIncludeTest)
>   testWithIncludeAndExtension(org.apache.sling.launchpad.webapp.integrationtest.JspIncludeTest)
>   testMaxCallsDetection(org.apache.sling.launchpad.webapp.integrationtest.JspIncludeTest)
>   testWithoutForward(org.apache.sling.launchpad.webapp.integrationtest.JspForwardTest)
>   testWithForward(org.apache.sling.launchpad.webapp.integrationtest.JspForwardTest)
>   testWithForwardAndExtension(org.apache.sling.launchpad.webapp.integrationtest.JspForwardTest)
>   testInfiniteLoopDetection(org.apache.sling.launchpad.webapp.integrationtest.JspForwardTest)
>   testForcedResourceType(org.apache.sling.launchpad.webapp.integrationtest.JspForwardTest)
>   testCallFooHtml(org.apache.sling.launchpad.webapp.integrationtest.issues.SLING457Test)
>   testCallHtml(org.apache.sling.launchpad.webapp.integrationtest.issues.SLING457Test)
>   testRtJsp(org.apache.sling.launchpad.webapp.integrationtest.JspScriptingTest)
>   testUnstructuredJsp(org.apache.sling.launchpad.webapp.integrationtest.JspScriptingTest)
> 


-- 
Carsten Ziegeler
cziegeler@apache.org