Jenkins build is back to normal : sling-trunk-1.6 #1068

2011-10-04 Thread Apache Jenkins Server
See 




Jenkins build is back to normal : sling-trunk-1.6 » Apache Sling Scripting Implementation API #1068

2011-10-04 Thread Apache Jenkins Server
See 





Jenkins build is unstable: sling-trunk-1.5 #1387

2011-10-04 Thread Apache Jenkins Server
See 




Jenkins build is back to normal : sling-trunk-1.5 » Apache Sling Scripting Implementation API #1387

2011-10-04 Thread Apache Jenkins Server
See 





Jenkins build is unstable: sling-trunk-1.5 » Apache Sling Installer Integration Tests #1387

2011-10-04 Thread Apache Jenkins Server
See 





Build failed in Jenkins: sling-trunk-1.6 #1067

2011-10-04 Thread Apache Jenkins Server
See 

Changes:

[justin] SLING-2229 - using latest snapshot of Scripting API

[justin] SLING-2228 - applying Felix's patch to not reregister 
ScriptEngineManager when a script engine is added/removed.

[justin] SLING-2229 - applying Felix's patch to rationalize ScriptEngineManager 
implementations

--
[...truncated 6415 lines...]

 [echo] 
**
[INFO] Executed tasks
[INFO] --- maven-antrun-plugin:1.6:run (default) @ 
org.apache.sling.servlets.compat ---
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ 
org.apache.sling.servlets.compat ---
[INFO] Compiling 1 source file to 

[INFO] 
[INFO] --- maven-scr-plugin:1.7.2:scr (generate-scr-scrdescriptor) @ 
org.apache.sling.servlets.compat ---
[WARNING] Class org.apache.sling.servlets.compat.impl.JsonQueryServlet is using 
deprecated javadoc tags  at 
:43
[WARNING] It is highly recommended to fix these problems, as future versions 
might not support these features anymore.
[INFO] Writing abstract service descriptor 

 with 1 entries.
[INFO] Generating 1 Service Component Descriptors to 

[INFO] [INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 

[INFO] Copying 3 resources

[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ 
org.apache.sling.servlets.compat ---
[INFO] [INFO] No sources to compile

[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ 
org.apache.sling.servlets.compat ---
[INFO] [INFO] Surefire report directory: 


[INFO] --- maven-surefire-plugin:2.7.2:test (default-test) @ 
org.apache.sling.servlets.compat ---

---
 T E S T S
---
There are no tests to run.

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[JENKINS] Recording test results[INFO] Checking unresolved references to 
org.codehaus.mojo.signature:java15:1.0

[INFO] 
[INFO] --- animal-sniffer-maven-plugin:1.7:check (default) @ 
org.apache.sling.servlets.compat ---
[INFO] 
[INFO] --- maven-bundle-plugin:2.0.1:bundle (default-bundle) @ 
org.apache.sling.servlets.compat ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-java) @ 
org.apache.sling.servlets.compat ---
[JENKINS] Archiving 

 to 
/home/hudson/hudson/jobs/sling-trunk-1.6/modules/org.apache.sling$org.apache.sling.servlets.compat/builds/2011-10-05_02-08-44/archive/org.apache.sling/org.apache.sling.servlets.compat/1.0.0-SNAPSHOT/org.apache.sling.servlets.compat-1.0.0-SNAPSHOT.pom
[JENKINS] Archiving 

 to 
/home/hudson/hudson/jobs/sling-trunk-1.6/modules/org.apache.sling$org.apache.sling.servlets.compat/builds/2011-10-05_02-08-44/archive/org.apache.sling/org.apache.sling.servlets.compat/1.0.0-SNAPSHOT/org.apache.sling.servlets.compat-1.0.0-SNAPSHOT.jar
ignoring exception during new ExecutedMojo null
[INFO] 
[INFO] --- maven-source-plugin:2.1.2:jar (attach-sources) @ 
org.apache.sling.servlets.compat ---
[INFO] META-INF already added, skipping
[INFO] META-INF/LICENSE already added, skipping
[INFO] META-INF/NOTICE already added, skipping
[INFO] META-INF/DEPENDENCIES already added, skipping
[INFO] Building jar: 

[INFO] META-INF already added, skipping
[INFO] META-INF/LICENSE already added, skipping
[INFO] META-INF/NOTICE already added, skipping
[INFO] META-INF/DEPENDENCIES already added, skipping
[INFO] Checking legal files in: 
org.apache.sling.servlets.compat-1.0.0-SNAPSHOT.jar
[INFO] [INFO] Checking legal files in: 
org.apache.sling.servlets.compat-1.0.0-SNAPSHOT-sources.jar

[INFO] --- ianal-maven-plugin:1.0-alpha-1:verify-legal-files (default) @ 
org.apache.sling.servlets.compat ---
[INFO] [INFO] Installing 


Build failed in Jenkins: sling-trunk-1.6 » Apache Sling Scripting Implementation API #1067

2011-10-04 Thread Apache Jenkins Server
See 


Changes:

[justin] SLING-2229 - applying Felix's patch to rationalize ScriptEngineManager 
implementations

--
ignoring exception during new ExecutedMojo null
[INFO] 
[INFO] --- maven-source-plugin:2.1.2:jar (attach-sources) @ 
org.apache.sling.servlets.compat ---
[INFO] META-INF already added, skipping
[INFO] META-INF/LICENSE already added, skipping
[INFO] META-INF/NOTICE already added, skipping
[INFO] META-INF/DEPENDENCIES already added, skipping
[INFO] Building jar: 
/home/jenkins/jenkins-slave/workspace/sling-trunk-1.6/trunk/bundles/servlets/compat/target/org.apache.sling.servlets.compat-1.0.0-SNAPSHOT-sources.jar
[INFO] META-INF already added, skipping
[INFO] META-INF/LICENSE already added, skipping
[INFO] META-INF/NOTICE already added, skipping
[INFO] META-INF/DEPENDENCIES already added, skipping
[INFO] Checking legal files in: 
org.apache.sling.servlets.compat-1.0.0-SNAPSHOT.jar
[INFO] [INFO] Checking legal files in: 
org.apache.sling.servlets.compat-1.0.0-SNAPSHOT-sources.jar

[INFO] --- ianal-maven-plugin:1.0-alpha-1:verify-legal-files (default) @ 
org.apache.sling.servlets.compat ---
[INFO] [INFO] Installing 
/home/jenkins/jenkins-slave/workspace/sling-trunk-1.6/trunk/bundles/servlets/compat/target/org.apache.sling.servlets.compat-1.0.0-SNAPSHOT.jar
 to 
/home/jenkins/.m2/repository/org/apache/sling/org.apache.sling.servlets.compat/1.0.0-SNAPSHOT/org.apache.sling.servlets.compat-1.0.0-SNAPSHOT.jar
[INFO] Installing 
/home/jenkins/jenkins-slave/workspace/sling-trunk-1.6/trunk/bundles/servlets/compat/pom.xml
 to 
/home/jenkins/.m2/repository/org/apache/sling/org.apache.sling.servlets.compat/1.0.0-SNAPSHOT/org.apache.sling.servlets.compat-1.0.0-SNAPSHOT.pom
[INFO] Installing 
/home/jenkins/jenkins-slave/workspace/sling-trunk-1.6/trunk/bundles/servlets/compat/target/org.apache.sling.servlets.compat-1.0.0-SNAPSHOT-sources.jar
 to 
/home/jenkins/.m2/repository/org/apache/sling/org.apache.sling.servlets.compat/1.0.0-SNAPSHOT/org.apache.sling.servlets.compat-1.0.0-SNAPSHOT-sources.jar

[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ 
org.apache.sling.servlets.compat ---
[INFO] Local OBR update disabled (enable with -DobrRepository)
[INFO] 
[INFO] --- maven-bundle-plugin:2.0.1:install (default-install) @ 
org.apache.sling.servlets.compat ---
[JENKINS] Archiving 
/home/jenkins/jenkins-slave/workspace/sling-trunk-1.6/trunk/bundles/servlets/compat/target/org.apache.sling.servlets.compat-1.0.0-SNAPSHOT-sources.jar
 to 
/home/hudson/hudson/jobs/sling-trunk-1.6/modules/org.apache.sling$org.apache.sling.servlets.compat/builds/2011-10-05_02-08-44/archive/org.apache.sling/org.apache.sling.servlets.compat/1.0.0-SNAPSHOT/org.apache.sling.servlets.compat-1.0.0-SNAPSHOT-sources.jar
[INFO] [INFO] Deleting 


[INFO] 
[INFO] Building Apache Sling Scripting Implementation API 2.1.3-SNAPSHOT
[INFO] 
[INFO] 
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ 
org.apache.sling.scripting.api ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-java) @ 
org.apache.sling.scripting.api ---
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.1:process (default) @ 
org.apache.sling.scripting.api ---
[INFO] [INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 

[INFO] Copying 3 resources

[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ 
org.apache.sling.scripting.api ---
[INFO] [INFO] Executing tasks

main:
 [echo]  WARNING (SLING-443/SLING-1782) 
**
 [echo] On most platforms, you'll get OutOfMemoryErrors when building 
unless you set
 [echo] on 32bit platforms: MAVEN_OPTS="-Xmx256M -XX:MaxPermSize=256M", see 
SLING-443
 [echo] on 64bit platforms: MAVEN_OPTS="-Xmx512M -XX:MaxPermSize=512M", see 
SLING-1782
 [echo] 
**
[INFO] Executed tasks

[INFO] --- maven-antrun-plugin:1.6:run (default) @ 
org.apache.sling.scripting.api ---
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ 
org.apache.sling.scripting.api ---
[INFO] Compiling 4 source files to 

[INFO] -
[ERROR] COMPILATION ERROR : 
[INFO] ---

Build failed in Jenkins: sling-trunk-1.5 #1386

2011-10-04 Thread Apache Jenkins Server
See 

Changes:

[justin] SLING-2229 - using latest snapshot of Scripting API

[justin] SLING-2228 - applying Felix's patch to not reregister 
ScriptEngineManager when a script engine is added/removed.

[justin] SLING-2229 - applying Felix's patch to rationalize ScriptEngineManager 
implementations

--
[...truncated 7421 lines...]

[INFO] --- maven-surefire-plugin:2.7.2:test (default-test) @ 
org.apache.sling.servlets.compat ---

---
 T E S T S
---
There are no tests to run.

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[JENKINS] Recording test results[INFO] Checking unresolved references to 
org.codehaus.mojo.signature:java15:1.0

[INFO] 
[INFO] --- animal-sniffer-maven-plugin:1.7:check (default) @ 
org.apache.sling.servlets.compat ---
[INFO] 
[INFO] --- maven-bundle-plugin:2.0.1:bundle (default-bundle) @ 
org.apache.sling.servlets.compat ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-java) @ 
org.apache.sling.servlets.compat ---
[JENKINS] Archiving 

 to 
/home/hudson/hudson/jobs/sling-trunk-1.5/modules/org.apache.sling$org.apache.sling.servlets.compat/builds/2011-10-05_01-52-45/archive/org.apache.sling/org.apache.sling.servlets.compat/1.0.0-SNAPSHOT/org.apache.sling.servlets.compat-1.0.0-SNAPSHOT.pom
[JENKINS] Archiving 

 to 
/home/hudson/hudson/jobs/sling-trunk-1.5/modules/org.apache.sling$org.apache.sling.servlets.compat/builds/2011-10-05_01-52-45/archive/org.apache.sling/org.apache.sling.servlets.compat/1.0.0-SNAPSHOT/org.apache.sling.servlets.compat-1.0.0-SNAPSHOT.jar
ignoring exception during new ExecutedMojo null
[INFO] 
[INFO] --- maven-source-plugin:2.1.2:jar (attach-sources) @ 
org.apache.sling.servlets.compat ---
[INFO] META-INF already added, skipping
[INFO] META-INF/LICENSE already added, skipping
[INFO] META-INF/NOTICE already added, skipping
[INFO] META-INF/DEPENDENCIES already added, skipping
[INFO] Building jar: 

[INFO] META-INF already added, skipping
[INFO] META-INF/LICENSE already added, skipping
[INFO] META-INF/NOTICE already added, skipping
[INFO] META-INF/DEPENDENCIES already added, skipping
[INFO] [INFO] Checking legal files in: 
org.apache.sling.servlets.compat-1.0.0-SNAPSHOT.jar
[INFO] Checking legal files in: 
org.apache.sling.servlets.compat-1.0.0-SNAPSHOT-sources.jar

[INFO] --- ianal-maven-plugin:1.0-alpha-1:verify-legal-files (default) @ 
org.apache.sling.servlets.compat ---
[INFO] [INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/sling/org.apache.sling.servlets.compat/1.0.0-SNAPSHOT/org.apache.sling.servlets.compat-1.0.0-SNAPSHOT.jar
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/sling/org.apache.sling.servlets.compat/1.0.0-SNAPSHOT/org.apache.sling.servlets.compat-1.0.0-SNAPSHOT.pom
[INFO] Installing 

 to 
/home/jenkins/.m2/repository/org/apache/sling/org.apache.sling.servlets.compat/1.0.0-SNAPSHOT/org.apache.sling.servlets.compat-1.0.0-SNAPSHOT-sources.jar

[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ 
org.apache.sling.servlets.compat ---
[INFO] Local OBR update disabled (enable with -DobrRepository)
[INFO] 
[INFO] --- maven-bundle-plugin:2.0.1:install (default-install) @ 
org.apache.sling.servlets.compat ---
[INFO] Downloading: 
https://repository.apache.org/content/repositories/snapshots/org/apache/sling/org.apache.sling.servlets.compat/1.0.0-SNAPSHOT/maven-metadata.xml

[INFO] --- maven-deploy-plugin:2.5:deploy (default-deploy) @ 
org.apache.sling.servlets.compat ---
Downloaded: 
https://repository.apache.org/content/repositories/snapshots/org/apache/sling/org.apache.sling.servlets.compat/1.0.0-SNAPSHOT/maven-metadata.xml
 (1016 B at 3.0 KB/sec)
Uploading: 
https://repository.apache.org/content/repositories/snapshots/org/apache/sling/org.apache.sling.servlets.compat/1.0.0-SNAPSHOT/org.apache.sling.servlets.compat-1.0.0-20111005.020426-21.jar
Uploaded: 
https://repository.apache.org/content/repositories/snapshots/org/apache/sling/org.apache.sling.servlets.compat/1.0.0-SNAPSHOT/org.apache.sling.servlets.compat-1.0.0-20111005.020426-21.jar
 (18 KB 

Build failed in Jenkins: sling-trunk-1.5 » Apache Sling Scripting Implementation API #1386

2011-10-04 Thread Apache Jenkins Server
See 


Changes:

[justin] SLING-2229 - applying Felix's patch to rationalize ScriptEngineManager 
implementations

--
ignoring exception during new ExecutedMojo null
[INFO] 
[INFO] --- maven-source-plugin:2.1.2:jar (attach-sources) @ 
org.apache.sling.servlets.compat ---
[INFO] META-INF already added, skipping
[INFO] META-INF/LICENSE already added, skipping
[INFO] META-INF/NOTICE already added, skipping
[INFO] META-INF/DEPENDENCIES already added, skipping
[INFO] Building jar: 
/home/jenkins/jenkins-slave/workspace/sling-trunk-1.5/trunk/bundles/servlets/compat/target/org.apache.sling.servlets.compat-1.0.0-SNAPSHOT-sources.jar
[INFO] META-INF already added, skipping
[INFO] META-INF/LICENSE already added, skipping
[INFO] META-INF/NOTICE already added, skipping
[INFO] META-INF/DEPENDENCIES already added, skipping
[INFO] [INFO] Checking legal files in: 
org.apache.sling.servlets.compat-1.0.0-SNAPSHOT.jar
[INFO] Checking legal files in: 
org.apache.sling.servlets.compat-1.0.0-SNAPSHOT-sources.jar

[INFO] --- ianal-maven-plugin:1.0-alpha-1:verify-legal-files (default) @ 
org.apache.sling.servlets.compat ---
[INFO] [INFO] Installing 
/home/jenkins/jenkins-slave/workspace/sling-trunk-1.5/trunk/bundles/servlets/compat/target/org.apache.sling.servlets.compat-1.0.0-SNAPSHOT.jar
 to 
/home/jenkins/.m2/repository/org/apache/sling/org.apache.sling.servlets.compat/1.0.0-SNAPSHOT/org.apache.sling.servlets.compat-1.0.0-SNAPSHOT.jar
[INFO] Installing 
/home/jenkins/jenkins-slave/workspace/sling-trunk-1.5/trunk/bundles/servlets/compat/pom.xml
 to 
/home/jenkins/.m2/repository/org/apache/sling/org.apache.sling.servlets.compat/1.0.0-SNAPSHOT/org.apache.sling.servlets.compat-1.0.0-SNAPSHOT.pom
[INFO] Installing 
/home/jenkins/jenkins-slave/workspace/sling-trunk-1.5/trunk/bundles/servlets/compat/target/org.apache.sling.servlets.compat-1.0.0-SNAPSHOT-sources.jar
 to 
/home/jenkins/.m2/repository/org/apache/sling/org.apache.sling.servlets.compat/1.0.0-SNAPSHOT/org.apache.sling.servlets.compat-1.0.0-SNAPSHOT-sources.jar

[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ 
org.apache.sling.servlets.compat ---
[INFO] Local OBR update disabled (enable with -DobrRepository)
[INFO] 
[INFO] --- maven-bundle-plugin:2.0.1:install (default-install) @ 
org.apache.sling.servlets.compat ---
[INFO] Downloading: 
https://repository.apache.org/content/repositories/snapshots/org/apache/sling/org.apache.sling.servlets.compat/1.0.0-SNAPSHOT/maven-metadata.xml

[INFO] --- maven-deploy-plugin:2.5:deploy (default-deploy) @ 
org.apache.sling.servlets.compat ---
Downloaded: 
https://repository.apache.org/content/repositories/snapshots/org/apache/sling/org.apache.sling.servlets.compat/1.0.0-SNAPSHOT/maven-metadata.xml
 (1016 B at 3.0 KB/sec)
Uploading: 
https://repository.apache.org/content/repositories/snapshots/org/apache/sling/org.apache.sling.servlets.compat/1.0.0-SNAPSHOT/org.apache.sling.servlets.compat-1.0.0-20111005.020426-21.jar
Uploaded: 
https://repository.apache.org/content/repositories/snapshots/org/apache/sling/org.apache.sling.servlets.compat/1.0.0-SNAPSHOT/org.apache.sling.servlets.compat-1.0.0-20111005.020426-21.jar
 (18 KB at 91.8 KB/sec)
Uploading: 
https://repository.apache.org/content/repositories/snapshots/org/apache/sling/org.apache.sling.servlets.compat/1.0.0-SNAPSHOT/org.apache.sling.servlets.compat-1.0.0-20111005.020426-21.pom
Uploaded: 
https://repository.apache.org/content/repositories/snapshots/org/apache/sling/org.apache.sling.servlets.compat/1.0.0-SNAPSHOT/org.apache.sling.servlets.compat-1.0.0-20111005.020426-21.pom
 (5 KB at 28.8 KB/sec)
Downloading: 
https://repository.apache.org/content/repositories/snapshots/org/apache/sling/org.apache.sling.servlets.compat/maven-metadata.xml
Downloaded: 
https://repository.apache.org/content/repositories/snapshots/org/apache/sling/org.apache.sling.servlets.compat/maven-metadata.xml
 (308 B at 1.8 KB/sec)
Uploading: 
https://repository.apache.org/content/repositories/snapshots/org/apache/sling/org.apache.sling.servlets.compat/1.0.0-SNAPSHOT/maven-metadata.xml
Uploaded: 
https://repository.apache.org/content/repositories/snapshots/org/apache/sling/org.apache.sling.servlets.compat/1.0.0-SNAPSHOT/maven-metadata.xml
 (1016 B at 5.4 KB/sec)
Uploading: 
https://repository.apache.org/content/repositories/snapshots/org/apache/sling/org.apache.sling.servlets.compat/maven-metadata.xml
Uploaded: 
https://repository.apache.org/content/repositories/snapshots/org/apache/sling/org.apache.sling.servlets.compat/maven-metadata.xml
 (308 B at 2.1 KB/sec)
Uploading: 
https://repository.apache.org/content/repositories/snapshots/org/apache/sling/org.apache.sling.servlets.compat/1.0.0-SNAPSHOT/org.apache.sling.servlets.compat-1.0.0-20111005.020426-21-sources.jar
Uploaded: 
https://repository.apache.org/content/repositories/snapshots/org/apache/sling/

[jira] [Resolved] (SLING-2229) Create Sling implementation fo the JSR 223 ScriptEngineManager

2011-10-04 Thread Justin Edelson (Resolved) (JIRA)

 [ 
https://issues.apache.org/jira/browse/SLING-2229?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Edelson resolved SLING-2229.
---

   Resolution: Fixed
Fix Version/s: Scripting API 2.1.4

applied patch in r1179019

> Create Sling implementation fo the JSR 223 ScriptEngineManager
> --
>
> Key: SLING-2229
> URL: https://issues.apache.org/jira/browse/SLING-2229
> Project: Sling
>  Issue Type: Improvement
>  Components: Scripting
>Affects Versions: Scripting API 2.1.2
>Reporter: Felix Meschberger
>Assignee: Justin Edelson
> Fix For: Scripting API 2.1.4
>
> Attachments: SLING-2229.patch
>
>
> Currently we are using the Livetribe implementation of the JSR 223 API to 
> have a consistent implementation on Java 5 platforms (not including JSR-223) 
> and Java 6 platforms (including JSR-223). We do this by exporting the JSR-223 
> API from the scripting api bundle and not through the system bundle.
> The Livetribe implementation has some issues, though:
>   * According to the spec it scans the class path for implementations
>   * It contains a slight API deviation from the Java 6 implementation: 
> get/setGlobalContext instead of get/setBindings
> To fix this, we implement our own ScriptEngineManager based on the Livetribe 
> implementation:
>  - without the class loader scanning
>  - adding the get/setBIndings methods
>  - marking the get/setGlobalContext methods deprecated

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Resolved] (SLING-2228) Prevent Reregistration of ScriptEngineManager on ScriptEngineFactory update

2011-10-04 Thread Justin Edelson (Resolved) (JIRA)

 [ 
https://issues.apache.org/jira/browse/SLING-2228?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Edelson resolved SLING-2228.
---

   Resolution: Fixed
Fix Version/s: Scripting Core 2.0.20

applied patch in r1179020

> Prevent Reregistration of ScriptEngineManager on ScriptEngineFactory update
> ---
>
> Key: SLING-2228
> URL: https://issues.apache.org/jira/browse/SLING-2228
> Project: Sling
>  Issue Type: Improvement
>  Components: Scripting
>Affects Versions: Scripting Core 2.0.18
>Reporter: Felix Meschberger
>Assignee: Justin Edelson
> Fix For: Scripting Core 2.0.20
>
> Attachments: SLING-2228-fmeschbe.patch, SLING-2228.patch
>
>
> The ScriptEngineManager must be recreated when an existing 
> ScriptEngineFactory is removed or updated. This causes the 
> ScriptEngineManager service to be unregistered and registered again.
> We should probably prevent this, maybe along these lines:
>   * Register the ScriptEngineManager as a service during the whole lifetime 
> of the Scripting Core
>   * The registered ScriptEngineManager is a proxy to the actual 
> ScriptEngineManager which gets ScriptEngineFactory registered
>   * On ScriptEngineFactory update, the proxied ScriptEngineManager is just 
> replaced

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (SLING-2228) Prevent Reregistration of ScriptEngineManager on ScriptEngineFactory update

2011-10-04 Thread Justin Edelson (Updated) (JIRA)

 [ 
https://issues.apache.org/jira/browse/SLING-2228?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Edelson updated SLING-2228:
--

Assignee: Justin Edelson

> Prevent Reregistration of ScriptEngineManager on ScriptEngineFactory update
> ---
>
> Key: SLING-2228
> URL: https://issues.apache.org/jira/browse/SLING-2228
> Project: Sling
>  Issue Type: Improvement
>  Components: Scripting
>Affects Versions: Scripting Core 2.0.18
>Reporter: Felix Meschberger
>Assignee: Justin Edelson
> Attachments: SLING-2228-fmeschbe.patch, SLING-2228.patch
>
>
> The ScriptEngineManager must be recreated when an existing 
> ScriptEngineFactory is removed or updated. This causes the 
> ScriptEngineManager service to be unregistered and registered again.
> We should probably prevent this, maybe along these lines:
>   * Register the ScriptEngineManager as a service during the whole lifetime 
> of the Scripting Core
>   * The registered ScriptEngineManager is a proxy to the actual 
> ScriptEngineManager which gets ScriptEngineFactory registered
>   * On ScriptEngineFactory update, the proxied ScriptEngineManager is just 
> replaced

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (SLING-2229) Create Sling implementation fo the JSR 223 ScriptEngineManager

2011-10-04 Thread Justin Edelson (Updated) (JIRA)

 [ 
https://issues.apache.org/jira/browse/SLING-2229?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Edelson updated SLING-2229:
--

Assignee: Justin Edelson  (was: Felix Meschberger)

> Create Sling implementation fo the JSR 223 ScriptEngineManager
> --
>
> Key: SLING-2229
> URL: https://issues.apache.org/jira/browse/SLING-2229
> Project: Sling
>  Issue Type: Improvement
>  Components: Scripting
>Affects Versions: Scripting API 2.1.2
>Reporter: Felix Meschberger
>Assignee: Justin Edelson
> Attachments: SLING-2229.patch
>
>
> Currently we are using the Livetribe implementation of the JSR 223 API to 
> have a consistent implementation on Java 5 platforms (not including JSR-223) 
> and Java 6 platforms (including JSR-223). We do this by exporting the JSR-223 
> API from the scripting api bundle and not through the system bundle.
> The Livetribe implementation has some issues, though:
>   * According to the spec it scans the class path for implementations
>   * It contains a slight API deviation from the Java 6 implementation: 
> get/setGlobalContext instead of get/setBindings
> To fix this, we implement our own ScriptEngineManager based on the Livetribe 
> implementation:
>  - without the class loader scanning
>  - adding the get/setBIndings methods
>  - marking the get/setGlobalContext methods deprecated

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (SLING-2237) inject OSGi services into Java script-based servlets

2011-10-04 Thread Justin Edelson (Commented) (JIRA)

[ 
https://issues.apache.org/jira/browse/SLING-2237?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13120600#comment-13120600
 ] 

Justin Edelson commented on SLING-2237:
---

proposed patch here: http://codereview.appspot.com/5178053

> inject OSGi services into Java script-based servlets
> 
>
> Key: SLING-2237
> URL: https://issues.apache.org/jira/browse/SLING-2237
> Project: Sling
>  Issue Type: Improvement
>  Components: Scripting
>Reporter: Justin Edelson
>Assignee: Justin Edelson
>
> originally discussed here: http://markmail.org/thread/yv5re37b7nopboum
> In a Java scripted servlet (i.e. a foo.java resource which is treated like a 
> script), it would be helpful to be able to get OSGi services injected.
> Use cases:
> @Inject
> private ServiceInterface serviceInterface;
> @Inject
> private ServiceInterface[] array;
> @Inject
> private List list
> @Inject
> private Collection list
> (special)
> @Inject
> private SlingScriptingHelper slingScriptingHelper

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Created] (SLING-2237) inject OSGi services into Java script-based servlets

2011-10-04 Thread Justin Edelson (Created) (JIRA)
inject OSGi services into Java script-based servlets


 Key: SLING-2237
 URL: https://issues.apache.org/jira/browse/SLING-2237
 Project: Sling
  Issue Type: Improvement
  Components: Scripting
Reporter: Justin Edelson
Assignee: Justin Edelson


originally discussed here: http://markmail.org/thread/yv5re37b7nopboum

In a Java scripted servlet (i.e. a foo.java resource which is treated like a 
script), it would be helpful to be able to get OSGi services injected.

Use cases:
@Inject
private ServiceInterface serviceInterface;

@Inject
private ServiceInterface[] array;

@Inject
private List list

@Inject
private Collection list

(special)
@Inject
private SlingScriptingHelper slingScriptingHelper

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Created] (SLING-2236) Default POST servlet reports invalid operation when it should report 404

2011-10-04 Thread Jeff Young (Created) (JIRA)
Default POST servlet reports invalid operation when it should report 404


 Key: SLING-2236
 URL: https://issues.apache.org/jira/browse/SLING-2236
 Project: Sling
  Issue Type: Bug
  Components: Servlets
Reporter: Jeff Young


In sling/servlets/post/impl/SlingPostServlet.java's doPost() method, we look up 
the operation (and report an unknown operation) before checking privileges.  
I'd 
like to propose that when the operation is not understood, we first check for 
read access to the resource, and if unsuccessful, report that instead of 
reporting
"invalid operation".

Here's the issue: say I define my own POST servlet which supports 
:operation="foo".  I set a sling:resourceType so that my POST servlet gets 
invoked.  All fine 
and good.

Now someone without read access to the resource tries to do an 
:operation="foo".  Sling can't read the sling:resourceType (no read access), 
and so invokes the
default POST servlet instead of my custom POST servlet.  It looks up 
:operation="foo" and reports "invalid operation" (which is pretty misleading).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (SLING-2192) Support JAX-RS resource classes

2011-10-04 Thread Updated

 [ 
https://issues.apache.org/jira/browse/SLING-2192?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Reto Bachmann-Gmür updated SLING-2192:
--

Attachment: SLING-2192-20111004.patch

With the previous patch registered a default wink resource for / was registered 
which conflicted with WebDav.

> Support JAX-RS resource classes
> ---
>
> Key: SLING-2192
> URL: https://issues.apache.org/jira/browse/SLING-2192
> Project: Sling
>  Issue Type: New Feature
>Reporter: Reto Bachmann-Gmür
> Attachments: SLING-2192-20110310.patch, SLING-2192-20111004.patch, 
> SLING-2192-new-jax-rs-bundle.patch, SLING-2192-new-jax-rs-bundle.patch, 
> SLING-2192-with-sling-style-style-registration.patch, 
> SLING-2192-with-tests.patch
>
>
> It should be possible to register jax resource classes and providers as 
> services. As they don't implement a specific interface services that expose 
> java.lang.Object should be considered as javx-rs services iff they have the 
> service property "javax.ws.rs" set to true.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira