Hi Edgar,

Have your tried to refresh the packages after uploading the servlet 2.4
bundle ?

Nevertheless, the problem seems to be that the servlet bundle used
includes two old jsp packages which conflict with the requirements of
JSP 2.0.

Regards
Felix

Am Sonntag, den 23.09.2007, 08:13 -0700 schrieb Edgar Poce (JIRA):
> jsp scripting depends on servlet api 2.4 but the 2.3 version is declared in 
> the parent pom
> ------------------------------------------------------------------------------------------
> 
>                  Key: SLING-20
>                  URL: https://issues.apache.org/jira/browse/SLING-20
>              Project: Sling
>           Issue Type: Bug
>             Reporter: Edgar Poce
>             Priority: Minor
> 
> 
> Jsp scripting doesn't work out of the box because sling app includes the 
> servlet 2.3 osgi bundle. With the current configuration the servlet 2.4 
> bundle must be deployed later and the server must be restarted because the 
> jsp scripting bundle keeps bound to the 2.3 version.
> 
> proposed patch
> 
> Index: /home/epoce/hd2/projects/sling/trunk/parent/pom.xml
> ===================================================================
> --- /home/epoce/hd2/projects/sling/trunk/parent/pom.xml       (revision 
> 578464)
> +++ /home/epoce/hd2/projects/sling/trunk/parent/pom.xml       (working copy)
> @@ -366,7 +366,13 @@
>              <dependency>
>                  <groupId>javax.servlet</groupId>
>                  <artifactId>servlet-api</artifactId>
> -                <version>2.3</version>
> +                <version>2.4</version>
> +                <scope>provided</scope>
> +            </dependency>
> +            <dependency>
> +                <groupId>javax.servlet</groupId>
> +                <artifactId>jsp-api</artifactId>
> +                <version>2.0</version>
>                  <scope>provided</scope>
>              </dependency>
>  
> Index: /home/epoce/hd2/projects/sling/trunk/sling-app/pom.xml
> ===================================================================
> --- /home/epoce/hd2/projects/sling/trunk/sling-app/pom.xml    (revision 
> 578464)
> +++ /home/epoce/hd2/projects/sling/trunk/sling-app/pom.xml    (working copy)
> @@ -207,7 +207,7 @@
>          <dependency>
>              <groupId>org.apache.felix.commons</groupId>
>              <artifactId>org.apache.felix.commons.servlet-api</artifactId>
> -            <version>2.3.0-0001-SNAPSHOT</version>
> +            <version>2.4.0-0002-SNAPSHOT</version>
>          </dependency>
>          <dependency>
>              <groupId>org.apache.sling</groupId>
> 
> 
> Index: /home/epoce/hd2/projects/sling/trunk/scripting-jsp-taglib/pom.xml
> ===================================================================
> --- /home/epoce/hd2/projects/sling/trunk/scripting-jsp-taglib/pom.xml 
> (revision 578464)
> +++ /home/epoce/hd2/projects/sling/trunk/scripting-jsp-taglib/pom.xml 
> (working copy)
> @@ -104,6 +104,10 @@
>              <artifactId>servlet-api</artifactId>
>          </dependency>
>          <dependency>
> +            <groupId>javax.servlet</groupId>
> +            <artifactId>jsp-api</artifactId>
> +        </dependency>
> +        <dependency>
>              <groupId>commons-collections</groupId>
>              <artifactId>commons-collections</artifactId>
>          </dependency>
> 
> 

Reply via email to