Felix,
I attached the logs that happened when I ran your command. I';ve
tried restarting CRX, but still .erb files are not interpreted.
However, simply changing the extension to .jst or .esp causes output.
Currently, there is no code in my file, only text.
Here's the command line messaging:
Joshua-Oranskys-MacBook-Pro:ruby joshuaoransky$ mvn -P
autoInstallBundle -Dsling.url=http://localhost:7402/ctx/system/console
clean install
[INFO] Scanning for projects...
[INFO]
----------------------------------------------------------------------------
[INFO] Building Sling - Scripting - Ruby Support
[INFO] task-segment: [clean, install]
[INFO]
----------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory /Users/joshuaoransky/Downloads/slingsrc/
sling/scripting/ruby/target
[INFO] [enforcer:enforce {execution: enforce-java}]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [antrun:run {execution: default}]
[INFO] Executing tasks
[echo] ********************** WARNING (SLING-443)
**********************************
[echo] On most platforms, building Sling currently requires setting
[echo] MAVEN_OPTS="-Xmx256M", see
https://issues.apache.org/jira/browse/SLING-443
[echo] You might get a "java.lang.OutOfMemoryError: Java heap
space" if that
[echo] setting is not correct.
[echo]
*****************************************************************************
[INFO] Executed tasks
[INFO] [compiler:compile]
[INFO] Compiling 2 source files to /Users/joshuaoransky/Downloads/
slingsrc/sling/scripting/ruby/target/classes
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [bundle:bundle]
[INFO] Preparing source:jar
[WARNING] Removing: jar from forked lifecycle, to prevent recursive
invocation.
[INFO] [enforcer:enforce {execution: enforce-java}]
[INFO] [source:jar {execution: attach-sources}]
[INFO] Building jar: /Users/joshuaoransky/Downloads/slingsrc/sling/
scripting/ruby/target/org.apache.sling.scripting.ruby-2.0.0-incubator-
SNAPSHOT-sources.jar
[INFO] [install:install]
[INFO] Installing /Users/joshuaoransky/Downloads/slingsrc/sling/
scripting/ruby/target/org.apache.sling.scripting.ruby-2.0.0-incubator-
SNAPSHOT.jar to /Users/joshuaoransky/.m2/repository/org/apache/sling/
org.apache.sling.scripting.ruby/2.0.0-incubator-SNAPSHOT/
org.apache.sling.scripting.ruby-2.0.0-incubator-SNAPSHOT.jar
[INFO] Installing /Users/joshuaoransky/Downloads/slingsrc/sling/
scripting/ruby/target/org.apache.sling.scripting.ruby-2.0.0-incubator-
SNAPSHOT-sources.jar to /Users/joshuaoransky/.m2/repository/org/apache/
sling/org.apache.sling.scripting.ruby/2.0.0-incubator-SNAPSHOT/
org.apache.sling.scripting.ruby-2.0.0-incubator-SNAPSHOT-sources.jar
[INFO] [bundle:install]
[INFO] Parsing file:/Users/joshuaoransky/.m2/repository/repository.xml
[INFO] Installing org/apache/sling/org.apache.sling.scripting.ruby/
2.0.0-incubator-SNAPSHOT/org.apache.sling.scripting.ruby-2.0.0-
incubator-SNAPSHOT.jar
[INFO] Writing OBR metadata
[INFO] [sling:install {execution: install-bundle}]
[INFO] Installing Bundle org.apache.sling.scripting.ruby(/Users/
joshuaoransky/Downloads/slingsrc/sling/scripting/ruby/target/
org.apache.sling.scripting.ruby-2.0.0-incubator-SNAPSHOT.jar) to http://localhost:7402/ctx/system/console
[INFO] Bundle installed
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 17 seconds
[INFO] Finished at: Wed Aug 27 15:33:18 PDT 2008
[INFO] Final Memory: 15M/45M
[INFO]
------------------------------------------------------------------------
On Aug 27, 2008, at 1:27 PM, Felix Meschberger wrote:
Hi Josh,
Joshua Oransky schrieb:
Felix,
I have a feeling you are correct. I did what you said, and it
appears to have installed. However, .erb files are still not being
interpreted. I'm using CRX, not Jackrabbit, and I check /system/
bundles and it does not show any new bundles, specifically Ruby
ones, installed.
I am going to try this method on Jackrabbit, but was curious if
this should also work on CRX?
It makes no difference. In fact Sling does not care what repository
implements the JCR interface as long as there is one...
Do you have any log messages in the logs/error.log file regarding
the installation of the bundle ?
Regards
Felix
Thanks man...
-Josh
On Aug 26, 2008, at 12:24 AM, Felix Meschberger wrote:
Hi Josh,
Joshua Oransky schrieb:
Rory,
I think that's the issue; I don't have the bundle installed.
There isn't a lot of information on how to get this bundle,
however. I tried following the directions on http://wiki.apache.org/jackrabbit/ApacheSling/SlingGuideInstall
but they
The Sling docs in the Jackrabbit wiki are outdated and invalid.
Please refer to the Sling site at http://incubator.apache.org/
sling for more up to date information.
don't match up with what I'm seeing. I downloaded and tried to
upload the pom.xml file since it contains SVN URLs thinking that
CRX would just download the files, to no avail. That guide makes
it seem like the bundle repository is something like apt-get or
fink, but I can't figure out how to get it to connect to the
repository.
We are considering building a repository similar to the apt-get
stuff for Sling. In the realm of OSGi this is called the OSGi
Bundle Repository or OBR for short. Currently we don't have it yet.
It is not decided yet, what will go into such a repository (except
for the released bundles, of course).
Regards
Felix
I appreciate any help!
-Josh
Have you installed the ruby scripting bundle - I don't think it's
installed by default in the launchpad app?
Joshua Oransky wrote:
I tried that one. I get this:
Node dumped by HtmlRendererServlet
Node path: /content/maniatv/gameology
Resource metadata: {sling.resolutionPath=/content/maniatv/
gameology}
Node properties
jcr:primaryType: nt:unstructured
I've looked all over for the answer. This doesn't seem to be a
topic explored very much.
-Josh
On Aug 20, 2008, at 12:02 PM, Rory Douglas wrote:
I think the extension you need is .erb (see
org
.apache
.sling
.scripting.ruby.ErbScriptEngineFactory#ERB_SCRIPT_EXTENSION)
Joshua Oransky wrote:
I'm just getting started with Sling. I've played around with the
examples and feel pretty comfortable with the layout.
However, I need to use Ruby as my scripting language. What
extension do I use for a template that uses Ruby code? I tried
various extensions, but nothing works.
Thanks in advance - Josh