You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Sandro Boehme (JIRA)" <ji...@apache.org> on 2010/12/30 21:33:46 UTC
[jira] Created: (SLING-1907) The Scala hello-world example does not
work
The Scala hello-world example does not work
-------------------------------------------
Key: SLING-1907
URL: https://issues.apache.org/jira/browse/SLING-1907
Project: Sling
Issue Type: Bug
Components: Samples
Affects Versions: Scripting Scala 1.0.0
Reporter: Sandro Boehme
To get the Scala samples to work I executed the following steps:
1. The 2.8.1 versions of the scala-compiler and scala-library jars are not available anymore with the group-id "org.scala-lang-osgi" but with the group-id "com.weiglewilczek.scala-lang-osgi" they are.
The problem is, that the checksum is not defined and thus the jar is not automatically downloaded.
As an alternative to always downloading manually I added the jars and an install-script to the 'contrib/scripting/scala/config' project
2. Removed the license header from /contrib/scripting/scala/script/src/main/resources/META-INF/services/javax.script.ScriptEngineFactory as it resulted in entries like the following one in the log file:
29.12.2010 00:59:35.166 *ERROR* [Background Update org.apache.sling.scripting.scala.script (74)] org.apache.sling.scripting.c
ore.impl.ScriptEngineManagerFactory Cannot register ScriptEngineFactory # limitations under the License. java.lang.ClassNotFo
undException: # limitations under the License. not found by org.apache.sling.scripting.scala.script [74]
at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:787)
at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:71)
at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1768)
at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
at org.apache.felix.framework.ModuleImpl.getClassByDelegation(ModuleImpl.java:645)
at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1599)
at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:904)
at org.apache.sling.scripting.core.impl.ScriptEngineManagerFactory.registerFactories(ScriptEngineManagerFactory.java:
146)
at org.apache.sling.scripting.core.impl.ScriptEngineManagerFactory.refreshScriptEngineManager(ScriptEngineManagerFact
ory.java:102)
at org.apache.sling.scripting.core.impl.ScriptEngineManagerFactory.unbindScriptEngineFactory(ScriptEngineManagerFacto
ry.java:266)
I consider this as a workaround as the parser should be adapted to ignore lines containing comments.
3. Installed 'samples/path-based-rtp' as it is needed by the hello-world example
4. Installed 'contrib/scripting/scala/config', 'contrib/scripting/scala/script' and 'contrib/scripting/scala/samples/hello-world' using 'mvn -PautoInstallBundle clean install -Dsling.url=http://localhost:8888/system/console' as the default Jetty-Port is 8888 and the sling:install plugin is not configured in every pom
Would'nt it make sense to create a Maven multi module project that builds and installs the projects?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (SLING-1907) The Scala hello-world example does
not work
Posted by "Michael Dürig (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-1907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12976201#action_12976201 ]
Michael Dürig commented on SLING-1907:
--------------------------------------
The simplest way to get the sample applications installed and working is using contrib/launchpad/testing:
- build Sling
- cd contriib
- mvn -Dmaven.test.skip=true clean install
- cd contrib/launchpad/testing
- mvn jetty:run
Sling is now running on port 8888. The Scala scripting demo apps are accessible at http://localhost:8888/content/forum.html?sling:authRequestLogin=true and http://localhost:8888/content/helloworld.html. For the forum app please not SLING-1895.
> The Scala hello-world example does not work
> -------------------------------------------
>
> Key: SLING-1907
> URL: https://issues.apache.org/jira/browse/SLING-1907
> Project: Sling
> Issue Type: Bug
> Components: Samples
> Affects Versions: Scripting Scala 1.0.0
> Reporter: Sandro Boehme
> Priority: Minor
> Attachments: install-scala-bundles.sh, SLING-1907.txt
>
>
> To get the Scala samples to work I executed the following steps:
> 1. The 2.8.1 versions of the scala-compiler and scala-library jars are not available anymore with the group-id "org.scala-lang-osgi" but with the group-id "com.weiglewilczek.scala-lang-osgi" they are.
> The problem is, that the checksum is not defined and thus the jar is not automatically downloaded.
> As an alternative to always downloading manually I added the jars and an install-script to the 'contrib/scripting/scala/config' project
> 2. Removed the license header from /contrib/scripting/scala/script/src/main/resources/META-INF/services/javax.script.ScriptEngineFactory as it resulted in entries like the following one in the log file:
> 29.12.2010 00:59:35.166 *ERROR* [Background Update org.apache.sling.scripting.scala.script (74)] org.apache.sling.scripting.c
> ore.impl.ScriptEngineManagerFactory Cannot register ScriptEngineFactory # limitations under the License. java.lang.ClassNotFo
> undException: # limitations under the License. not found by org.apache.sling.scripting.scala.script [74]
> at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:787)
> at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:71)
> at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1768)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
> at org.apache.felix.framework.ModuleImpl.getClassByDelegation(ModuleImpl.java:645)
> at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1599)
> at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:904)
> at org.apache.sling.scripting.core.impl.ScriptEngineManagerFactory.registerFactories(ScriptEngineManagerFactory.java:
> 146)
> at org.apache.sling.scripting.core.impl.ScriptEngineManagerFactory.refreshScriptEngineManager(ScriptEngineManagerFact
> ory.java:102)
> at org.apache.sling.scripting.core.impl.ScriptEngineManagerFactory.unbindScriptEngineFactory(ScriptEngineManagerFacto
> ry.java:266)
> I consider this as a workaround as the parser should be adapted to ignore lines containing comments.
> 3. Installed 'samples/path-based-rtp' as it is needed by the hello-world example
> 4. Installed 'contrib/scripting/scala/config', 'contrib/scripting/scala/script' and 'contrib/scripting/scala/samples/hello-world' using 'mvn -PautoInstallBundle clean install -Dsling.url=http://localhost:8888/system/console' as the default Jetty-Port is 8888 and the sling:install plugin is not configured in every pom
> Would'nt it make sense to create a Maven multi module project that builds and installs the projects?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (SLING-1907) The Scala hello-world example does
not work
Posted by "Michael Dürig (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-1907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12978330#action_12978330 ]
Michael Dürig commented on SLING-1907:
--------------------------------------
> What do you mean with the launchpad testing approach?
See my comment from 31/Dec/10 04:04 AM
This will result in a running Sling instance with the Scala scripting engine and the sample applications installed.
> The Scala hello-world example does not work
> -------------------------------------------
>
> Key: SLING-1907
> URL: https://issues.apache.org/jira/browse/SLING-1907
> Project: Sling
> Issue Type: Bug
> Components: Samples
> Affects Versions: Scripting Scala 1.0.0
> Reporter: Sandro Boehme
> Assignee: Michael Dürig
> Priority: Minor
> Attachments: install-scala-bundles.sh, SLING-1907.txt
>
>
> To get the Scala samples to work I executed the following steps:
> 1. The 2.8.1 versions of the scala-compiler and scala-library jars are not available anymore with the group-id "org.scala-lang-osgi" but with the group-id "com.weiglewilczek.scala-lang-osgi" they are.
> The problem is, that the checksum is not defined and thus the jar is not automatically downloaded.
> As an alternative to always downloading manually I added the jars and an install-script to the 'contrib/scripting/scala/config' project
> 2. Removed the license header from /contrib/scripting/scala/script/src/main/resources/META-INF/services/javax.script.ScriptEngineFactory as it resulted in entries like the following one in the log file:
> 29.12.2010 00:59:35.166 *ERROR* [Background Update org.apache.sling.scripting.scala.script (74)] org.apache.sling.scripting.c
> ore.impl.ScriptEngineManagerFactory Cannot register ScriptEngineFactory # limitations under the License. java.lang.ClassNotFo
> undException: # limitations under the License. not found by org.apache.sling.scripting.scala.script [74]
> at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:787)
> at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:71)
> at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1768)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
> at org.apache.felix.framework.ModuleImpl.getClassByDelegation(ModuleImpl.java:645)
> at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1599)
> at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:904)
> at org.apache.sling.scripting.core.impl.ScriptEngineManagerFactory.registerFactories(ScriptEngineManagerFactory.java:
> 146)
> at org.apache.sling.scripting.core.impl.ScriptEngineManagerFactory.refreshScriptEngineManager(ScriptEngineManagerFact
> ory.java:102)
> at org.apache.sling.scripting.core.impl.ScriptEngineManagerFactory.unbindScriptEngineFactory(ScriptEngineManagerFacto
> ry.java:266)
> I consider this as a workaround as the parser should be adapted to ignore lines containing comments.
> 3. Installed 'samples/path-based-rtp' as it is needed by the hello-world example
> 4. Installed 'contrib/scripting/scala/config', 'contrib/scripting/scala/script' and 'contrib/scripting/scala/samples/hello-world' using 'mvn -PautoInstallBundle clean install -Dsling.url=http://localhost:8888/system/console' as the default Jetty-Port is 8888 and the sling:install plugin is not configured in every pom
> Would'nt it make sense to create a Maven multi module project that builds and installs the projects?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SLING-1907) The Scala hello-world example does not
work
Posted by "Sandro Boehme (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-1907?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sandro Boehme updated SLING-1907:
---------------------------------
Priority: Minor (was: Major)
> The Scala hello-world example does not work
> -------------------------------------------
>
> Key: SLING-1907
> URL: https://issues.apache.org/jira/browse/SLING-1907
> Project: Sling
> Issue Type: Bug
> Components: Samples
> Affects Versions: Scripting Scala 1.0.0
> Reporter: Sandro Boehme
> Priority: Minor
>
> To get the Scala samples to work I executed the following steps:
> 1. The 2.8.1 versions of the scala-compiler and scala-library jars are not available anymore with the group-id "org.scala-lang-osgi" but with the group-id "com.weiglewilczek.scala-lang-osgi" they are.
> The problem is, that the checksum is not defined and thus the jar is not automatically downloaded.
> As an alternative to always downloading manually I added the jars and an install-script to the 'contrib/scripting/scala/config' project
> 2. Removed the license header from /contrib/scripting/scala/script/src/main/resources/META-INF/services/javax.script.ScriptEngineFactory as it resulted in entries like the following one in the log file:
> 29.12.2010 00:59:35.166 *ERROR* [Background Update org.apache.sling.scripting.scala.script (74)] org.apache.sling.scripting.c
> ore.impl.ScriptEngineManagerFactory Cannot register ScriptEngineFactory # limitations under the License. java.lang.ClassNotFo
> undException: # limitations under the License. not found by org.apache.sling.scripting.scala.script [74]
> at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:787)
> at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:71)
> at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1768)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
> at org.apache.felix.framework.ModuleImpl.getClassByDelegation(ModuleImpl.java:645)
> at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1599)
> at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:904)
> at org.apache.sling.scripting.core.impl.ScriptEngineManagerFactory.registerFactories(ScriptEngineManagerFactory.java:
> 146)
> at org.apache.sling.scripting.core.impl.ScriptEngineManagerFactory.refreshScriptEngineManager(ScriptEngineManagerFact
> ory.java:102)
> at org.apache.sling.scripting.core.impl.ScriptEngineManagerFactory.unbindScriptEngineFactory(ScriptEngineManagerFacto
> ry.java:266)
> I consider this as a workaround as the parser should be adapted to ignore lines containing comments.
> 3. Installed 'samples/path-based-rtp' as it is needed by the hello-world example
> 4. Installed 'contrib/scripting/scala/config', 'contrib/scripting/scala/script' and 'contrib/scripting/scala/samples/hello-world' using 'mvn -PautoInstallBundle clean install -Dsling.url=http://localhost:8888/system/console' as the default Jetty-Port is 8888 and the sling:install plugin is not configured in every pom
> Would'nt it make sense to create a Maven multi module project that builds and installs the projects?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (SLING-1907) The Scala hello-world example does
not work
Posted by "Michael Dürig (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-1907?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Dürig reassigned SLING-1907:
------------------------------------
Assignee: Michael Dürig
> The Scala hello-world example does not work
> -------------------------------------------
>
> Key: SLING-1907
> URL: https://issues.apache.org/jira/browse/SLING-1907
> Project: Sling
> Issue Type: Bug
> Components: Samples
> Affects Versions: Scripting Scala 1.0.0
> Reporter: Sandro Boehme
> Assignee: Michael Dürig
> Priority: Minor
> Attachments: install-scala-bundles.sh, SLING-1907.txt
>
>
> To get the Scala samples to work I executed the following steps:
> 1. The 2.8.1 versions of the scala-compiler and scala-library jars are not available anymore with the group-id "org.scala-lang-osgi" but with the group-id "com.weiglewilczek.scala-lang-osgi" they are.
> The problem is, that the checksum is not defined and thus the jar is not automatically downloaded.
> As an alternative to always downloading manually I added the jars and an install-script to the 'contrib/scripting/scala/config' project
> 2. Removed the license header from /contrib/scripting/scala/script/src/main/resources/META-INF/services/javax.script.ScriptEngineFactory as it resulted in entries like the following one in the log file:
> 29.12.2010 00:59:35.166 *ERROR* [Background Update org.apache.sling.scripting.scala.script (74)] org.apache.sling.scripting.c
> ore.impl.ScriptEngineManagerFactory Cannot register ScriptEngineFactory # limitations under the License. java.lang.ClassNotFo
> undException: # limitations under the License. not found by org.apache.sling.scripting.scala.script [74]
> at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:787)
> at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:71)
> at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1768)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
> at org.apache.felix.framework.ModuleImpl.getClassByDelegation(ModuleImpl.java:645)
> at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1599)
> at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:904)
> at org.apache.sling.scripting.core.impl.ScriptEngineManagerFactory.registerFactories(ScriptEngineManagerFactory.java:
> 146)
> at org.apache.sling.scripting.core.impl.ScriptEngineManagerFactory.refreshScriptEngineManager(ScriptEngineManagerFact
> ory.java:102)
> at org.apache.sling.scripting.core.impl.ScriptEngineManagerFactory.unbindScriptEngineFactory(ScriptEngineManagerFacto
> ry.java:266)
> I consider this as a workaround as the parser should be adapted to ignore lines containing comments.
> 3. Installed 'samples/path-based-rtp' as it is needed by the hello-world example
> 4. Installed 'contrib/scripting/scala/config', 'contrib/scripting/scala/script' and 'contrib/scripting/scala/samples/hello-world' using 'mvn -PautoInstallBundle clean install -Dsling.url=http://localhost:8888/system/console' as the default Jetty-Port is 8888 and the sling:install plugin is not configured in every pom
> Would'nt it make sense to create a Maven multi module project that builds and installs the projects?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SLING-1907) The Scala hello-world example does not
work
Posted by "Sandro Boehme (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-1907?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sandro Boehme updated SLING-1907:
---------------------------------
Attachment: install-scala-bundles.sh
> The Scala hello-world example does not work
> -------------------------------------------
>
> Key: SLING-1907
> URL: https://issues.apache.org/jira/browse/SLING-1907
> Project: Sling
> Issue Type: Bug
> Components: Samples
> Affects Versions: Scripting Scala 1.0.0
> Reporter: Sandro Boehme
> Priority: Minor
> Attachments: install-scala-bundles.sh, SLING-1907.txt
>
>
> To get the Scala samples to work I executed the following steps:
> 1. The 2.8.1 versions of the scala-compiler and scala-library jars are not available anymore with the group-id "org.scala-lang-osgi" but with the group-id "com.weiglewilczek.scala-lang-osgi" they are.
> The problem is, that the checksum is not defined and thus the jar is not automatically downloaded.
> As an alternative to always downloading manually I added the jars and an install-script to the 'contrib/scripting/scala/config' project
> 2. Removed the license header from /contrib/scripting/scala/script/src/main/resources/META-INF/services/javax.script.ScriptEngineFactory as it resulted in entries like the following one in the log file:
> 29.12.2010 00:59:35.166 *ERROR* [Background Update org.apache.sling.scripting.scala.script (74)] org.apache.sling.scripting.c
> ore.impl.ScriptEngineManagerFactory Cannot register ScriptEngineFactory # limitations under the License. java.lang.ClassNotFo
> undException: # limitations under the License. not found by org.apache.sling.scripting.scala.script [74]
> at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:787)
> at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:71)
> at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1768)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
> at org.apache.felix.framework.ModuleImpl.getClassByDelegation(ModuleImpl.java:645)
> at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1599)
> at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:904)
> at org.apache.sling.scripting.core.impl.ScriptEngineManagerFactory.registerFactories(ScriptEngineManagerFactory.java:
> 146)
> at org.apache.sling.scripting.core.impl.ScriptEngineManagerFactory.refreshScriptEngineManager(ScriptEngineManagerFact
> ory.java:102)
> at org.apache.sling.scripting.core.impl.ScriptEngineManagerFactory.unbindScriptEngineFactory(ScriptEngineManagerFacto
> ry.java:266)
> I consider this as a workaround as the parser should be adapted to ignore lines containing comments.
> 3. Installed 'samples/path-based-rtp' as it is needed by the hello-world example
> 4. Installed 'contrib/scripting/scala/config', 'contrib/scripting/scala/script' and 'contrib/scripting/scala/samples/hello-world' using 'mvn -PautoInstallBundle clean install -Dsling.url=http://localhost:8888/system/console' as the default Jetty-Port is 8888 and the sling:install plugin is not configured in every pom
> Would'nt it make sense to create a Maven multi module project that builds and installs the projects?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SLING-1907) The Scala hello-world example does not
work
Posted by "Sandro Boehme (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-1907?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sandro Boehme updated SLING-1907:
---------------------------------
Attachment: SLING-1907.txt
> The Scala hello-world example does not work
> -------------------------------------------
>
> Key: SLING-1907
> URL: https://issues.apache.org/jira/browse/SLING-1907
> Project: Sling
> Issue Type: Bug
> Components: Samples
> Affects Versions: Scripting Scala 1.0.0
> Reporter: Sandro Boehme
> Priority: Minor
> Attachments: SLING-1907.txt
>
>
> To get the Scala samples to work I executed the following steps:
> 1. The 2.8.1 versions of the scala-compiler and scala-library jars are not available anymore with the group-id "org.scala-lang-osgi" but with the group-id "com.weiglewilczek.scala-lang-osgi" they are.
> The problem is, that the checksum is not defined and thus the jar is not automatically downloaded.
> As an alternative to always downloading manually I added the jars and an install-script to the 'contrib/scripting/scala/config' project
> 2. Removed the license header from /contrib/scripting/scala/script/src/main/resources/META-INF/services/javax.script.ScriptEngineFactory as it resulted in entries like the following one in the log file:
> 29.12.2010 00:59:35.166 *ERROR* [Background Update org.apache.sling.scripting.scala.script (74)] org.apache.sling.scripting.c
> ore.impl.ScriptEngineManagerFactory Cannot register ScriptEngineFactory # limitations under the License. java.lang.ClassNotFo
> undException: # limitations under the License. not found by org.apache.sling.scripting.scala.script [74]
> at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:787)
> at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:71)
> at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1768)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
> at org.apache.felix.framework.ModuleImpl.getClassByDelegation(ModuleImpl.java:645)
> at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1599)
> at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:904)
> at org.apache.sling.scripting.core.impl.ScriptEngineManagerFactory.registerFactories(ScriptEngineManagerFactory.java:
> 146)
> at org.apache.sling.scripting.core.impl.ScriptEngineManagerFactory.refreshScriptEngineManager(ScriptEngineManagerFact
> ory.java:102)
> at org.apache.sling.scripting.core.impl.ScriptEngineManagerFactory.unbindScriptEngineFactory(ScriptEngineManagerFacto
> ry.java:266)
> I consider this as a workaround as the parser should be adapted to ignore lines containing comments.
> 3. Installed 'samples/path-based-rtp' as it is needed by the hello-world example
> 4. Installed 'contrib/scripting/scala/config', 'contrib/scripting/scala/script' and 'contrib/scripting/scala/samples/hello-world' using 'mvn -PautoInstallBundle clean install -Dsling.url=http://localhost:8888/system/console' as the default Jetty-Port is 8888 and the sling:install plugin is not configured in every pom
> Would'nt it make sense to create a Maven multi module project that builds and installs the projects?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (SLING-1907) The Scala hello-world example does
not work
Posted by "Michael Dürig (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-1907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12976202#action_12976202 ]
Michael Dürig commented on SLING-1907:
--------------------------------------
Re 1: these have gotten out of sync with contrib/launchpad/testing/src/main/bundles/list.xml. I'll fix this
Re 2: Thanks for finding this. I'll apply your patch for the time being. I appropriate we might want to report this as a separate issue.
Re 3: This is noted in the forum demo app readme file
> Would'nt it make sense to create a Maven multi module project that builds and installs the projects?
Not sure how to go about here. I have always used the launchpad/testing approach so far.
> The Scala hello-world example does not work
> -------------------------------------------
>
> Key: SLING-1907
> URL: https://issues.apache.org/jira/browse/SLING-1907
> Project: Sling
> Issue Type: Bug
> Components: Samples
> Affects Versions: Scripting Scala 1.0.0
> Reporter: Sandro Boehme
> Priority: Minor
> Attachments: install-scala-bundles.sh, SLING-1907.txt
>
>
> To get the Scala samples to work I executed the following steps:
> 1. The 2.8.1 versions of the scala-compiler and scala-library jars are not available anymore with the group-id "org.scala-lang-osgi" but with the group-id "com.weiglewilczek.scala-lang-osgi" they are.
> The problem is, that the checksum is not defined and thus the jar is not automatically downloaded.
> As an alternative to always downloading manually I added the jars and an install-script to the 'contrib/scripting/scala/config' project
> 2. Removed the license header from /contrib/scripting/scala/script/src/main/resources/META-INF/services/javax.script.ScriptEngineFactory as it resulted in entries like the following one in the log file:
> 29.12.2010 00:59:35.166 *ERROR* [Background Update org.apache.sling.scripting.scala.script (74)] org.apache.sling.scripting.c
> ore.impl.ScriptEngineManagerFactory Cannot register ScriptEngineFactory # limitations under the License. java.lang.ClassNotFo
> undException: # limitations under the License. not found by org.apache.sling.scripting.scala.script [74]
> at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:787)
> at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:71)
> at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1768)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
> at org.apache.felix.framework.ModuleImpl.getClassByDelegation(ModuleImpl.java:645)
> at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1599)
> at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:904)
> at org.apache.sling.scripting.core.impl.ScriptEngineManagerFactory.registerFactories(ScriptEngineManagerFactory.java:
> 146)
> at org.apache.sling.scripting.core.impl.ScriptEngineManagerFactory.refreshScriptEngineManager(ScriptEngineManagerFact
> ory.java:102)
> at org.apache.sling.scripting.core.impl.ScriptEngineManagerFactory.unbindScriptEngineFactory(ScriptEngineManagerFacto
> ry.java:266)
> I consider this as a workaround as the parser should be adapted to ignore lines containing comments.
> 3. Installed 'samples/path-based-rtp' as it is needed by the hello-world example
> 4. Installed 'contrib/scripting/scala/config', 'contrib/scripting/scala/script' and 'contrib/scripting/scala/samples/hello-world' using 'mvn -PautoInstallBundle clean install -Dsling.url=http://localhost:8888/system/console' as the default Jetty-Port is 8888 and the sling:install plugin is not configured in every pom
> Would'nt it make sense to create a Maven multi module project that builds and installs the projects?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (SLING-1907) The Scala hello-world example does
not work
Posted by "Michael Dürig (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-1907?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Dürig resolved SLING-1907.
----------------------------------
Resolution: Fixed
Fixed at revision 1054990
> The Scala hello-world example does not work
> -------------------------------------------
>
> Key: SLING-1907
> URL: https://issues.apache.org/jira/browse/SLING-1907
> Project: Sling
> Issue Type: Bug
> Components: Samples
> Affects Versions: Scripting Scala 1.0.0
> Reporter: Sandro Boehme
> Assignee: Michael Dürig
> Priority: Minor
> Attachments: install-scala-bundles.sh, SLING-1907.txt
>
>
> To get the Scala samples to work I executed the following steps:
> 1. The 2.8.1 versions of the scala-compiler and scala-library jars are not available anymore with the group-id "org.scala-lang-osgi" but with the group-id "com.weiglewilczek.scala-lang-osgi" they are.
> The problem is, that the checksum is not defined and thus the jar is not automatically downloaded.
> As an alternative to always downloading manually I added the jars and an install-script to the 'contrib/scripting/scala/config' project
> 2. Removed the license header from /contrib/scripting/scala/script/src/main/resources/META-INF/services/javax.script.ScriptEngineFactory as it resulted in entries like the following one in the log file:
> 29.12.2010 00:59:35.166 *ERROR* [Background Update org.apache.sling.scripting.scala.script (74)] org.apache.sling.scripting.c
> ore.impl.ScriptEngineManagerFactory Cannot register ScriptEngineFactory # limitations under the License. java.lang.ClassNotFo
> undException: # limitations under the License. not found by org.apache.sling.scripting.scala.script [74]
> at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:787)
> at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:71)
> at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1768)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
> at org.apache.felix.framework.ModuleImpl.getClassByDelegation(ModuleImpl.java:645)
> at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1599)
> at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:904)
> at org.apache.sling.scripting.core.impl.ScriptEngineManagerFactory.registerFactories(ScriptEngineManagerFactory.java:
> 146)
> at org.apache.sling.scripting.core.impl.ScriptEngineManagerFactory.refreshScriptEngineManager(ScriptEngineManagerFact
> ory.java:102)
> at org.apache.sling.scripting.core.impl.ScriptEngineManagerFactory.unbindScriptEngineFactory(ScriptEngineManagerFacto
> ry.java:266)
> I consider this as a workaround as the parser should be adapted to ignore lines containing comments.
> 3. Installed 'samples/path-based-rtp' as it is needed by the hello-world example
> 4. Installed 'contrib/scripting/scala/config', 'contrib/scripting/scala/script' and 'contrib/scripting/scala/samples/hello-world' using 'mvn -PautoInstallBundle clean install -Dsling.url=http://localhost:8888/system/console' as the default Jetty-Port is 8888 and the sling:install plugin is not configured in every pom
> Would'nt it make sense to create a Maven multi module project that builds and installs the projects?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (SLING-1907) The Scala hello-world example does
not work
Posted by "Sandro Boehme (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-1907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12978338#action_12978338 ]
Sandro Boehme commented on SLING-1907:
--------------------------------------
Ah. Thanks!
> The Scala hello-world example does not work
> -------------------------------------------
>
> Key: SLING-1907
> URL: https://issues.apache.org/jira/browse/SLING-1907
> Project: Sling
> Issue Type: Bug
> Components: Samples
> Affects Versions: Scripting Scala 1.0.0
> Reporter: Sandro Boehme
> Assignee: Michael Dürig
> Priority: Minor
> Attachments: install-scala-bundles.sh, SLING-1907.txt
>
>
> To get the Scala samples to work I executed the following steps:
> 1. The 2.8.1 versions of the scala-compiler and scala-library jars are not available anymore with the group-id "org.scala-lang-osgi" but with the group-id "com.weiglewilczek.scala-lang-osgi" they are.
> The problem is, that the checksum is not defined and thus the jar is not automatically downloaded.
> As an alternative to always downloading manually I added the jars and an install-script to the 'contrib/scripting/scala/config' project
> 2. Removed the license header from /contrib/scripting/scala/script/src/main/resources/META-INF/services/javax.script.ScriptEngineFactory as it resulted in entries like the following one in the log file:
> 29.12.2010 00:59:35.166 *ERROR* [Background Update org.apache.sling.scripting.scala.script (74)] org.apache.sling.scripting.c
> ore.impl.ScriptEngineManagerFactory Cannot register ScriptEngineFactory # limitations under the License. java.lang.ClassNotFo
> undException: # limitations under the License. not found by org.apache.sling.scripting.scala.script [74]
> at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:787)
> at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:71)
> at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1768)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
> at org.apache.felix.framework.ModuleImpl.getClassByDelegation(ModuleImpl.java:645)
> at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1599)
> at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:904)
> at org.apache.sling.scripting.core.impl.ScriptEngineManagerFactory.registerFactories(ScriptEngineManagerFactory.java:
> 146)
> at org.apache.sling.scripting.core.impl.ScriptEngineManagerFactory.refreshScriptEngineManager(ScriptEngineManagerFact
> ory.java:102)
> at org.apache.sling.scripting.core.impl.ScriptEngineManagerFactory.unbindScriptEngineFactory(ScriptEngineManagerFacto
> ry.java:266)
> I consider this as a workaround as the parser should be adapted to ignore lines containing comments.
> 3. Installed 'samples/path-based-rtp' as it is needed by the hello-world example
> 4. Installed 'contrib/scripting/scala/config', 'contrib/scripting/scala/script' and 'contrib/scripting/scala/samples/hello-world' using 'mvn -PautoInstallBundle clean install -Dsling.url=http://localhost:8888/system/console' as the default Jetty-Port is 8888 and the sling:install plugin is not configured in every pom
> Would'nt it make sense to create a Maven multi module project that builds and installs the projects?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (SLING-1907) The Scala hello-world example does
not work
Posted by "Sandro Boehme (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-1907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12978317#action_12978317 ]
Sandro Boehme commented on SLING-1907:
--------------------------------------
Hi Michael,
thanks for your feedback.
>> Would'nt it make sense to create a Maven multi module project that builds and installs the projects?
>Not sure how to go about here. I have always used the launchpad/testing approach so far.
In case I didn't got the message across: The idea is to ease the step 4.
What do you mean with the launchpad testing approach?
>Re 2: Thanks for finding this. I'll apply your patch for the time being. I appropriate we might want to report this as a separate issue.
I have a patch in SLING-1921.
Best,
Sandro
> The Scala hello-world example does not work
> -------------------------------------------
>
> Key: SLING-1907
> URL: https://issues.apache.org/jira/browse/SLING-1907
> Project: Sling
> Issue Type: Bug
> Components: Samples
> Affects Versions: Scripting Scala 1.0.0
> Reporter: Sandro Boehme
> Assignee: Michael Dürig
> Priority: Minor
> Attachments: install-scala-bundles.sh, SLING-1907.txt
>
>
> To get the Scala samples to work I executed the following steps:
> 1. The 2.8.1 versions of the scala-compiler and scala-library jars are not available anymore with the group-id "org.scala-lang-osgi" but with the group-id "com.weiglewilczek.scala-lang-osgi" they are.
> The problem is, that the checksum is not defined and thus the jar is not automatically downloaded.
> As an alternative to always downloading manually I added the jars and an install-script to the 'contrib/scripting/scala/config' project
> 2. Removed the license header from /contrib/scripting/scala/script/src/main/resources/META-INF/services/javax.script.ScriptEngineFactory as it resulted in entries like the following one in the log file:
> 29.12.2010 00:59:35.166 *ERROR* [Background Update org.apache.sling.scripting.scala.script (74)] org.apache.sling.scripting.c
> ore.impl.ScriptEngineManagerFactory Cannot register ScriptEngineFactory # limitations under the License. java.lang.ClassNotFo
> undException: # limitations under the License. not found by org.apache.sling.scripting.scala.script [74]
> at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:787)
> at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:71)
> at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1768)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
> at org.apache.felix.framework.ModuleImpl.getClassByDelegation(ModuleImpl.java:645)
> at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1599)
> at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:904)
> at org.apache.sling.scripting.core.impl.ScriptEngineManagerFactory.registerFactories(ScriptEngineManagerFactory.java:
> 146)
> at org.apache.sling.scripting.core.impl.ScriptEngineManagerFactory.refreshScriptEngineManager(ScriptEngineManagerFact
> ory.java:102)
> at org.apache.sling.scripting.core.impl.ScriptEngineManagerFactory.unbindScriptEngineFactory(ScriptEngineManagerFacto
> ry.java:266)
> I consider this as a workaround as the parser should be adapted to ignore lines containing comments.
> 3. Installed 'samples/path-based-rtp' as it is needed by the hello-world example
> 4. Installed 'contrib/scripting/scala/config', 'contrib/scripting/scala/script' and 'contrib/scripting/scala/samples/hello-world' using 'mvn -PautoInstallBundle clean install -Dsling.url=http://localhost:8888/system/console' as the default Jetty-Port is 8888 and the sling:install plugin is not configured in every pom
> Would'nt it make sense to create a Maven multi module project that builds and installs the projects?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.