You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by Joshua Oransky <ca...@gmail.com> on 2008/09/03 03:39:49 UTC
Re: How do I create a Ruby template?
Bertrand,
Thanks for the effort! When I run mvn -P autoInstallBundle -
Dsling.url=http://localhost:8080/ctx/system/console clean install I
get a build error. Nothing shows up in the $sling.home/logs/error.log.
Joshua-Oranskys-MacBook-Pro:ruby joshuaoransky$ mvn -P
autoInstallBundle -Dsling.url=http://localhost:8080/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
Downloading: http://people.apache.org/repo/m2-incubating-repository/org/jruby/jruby-complete/1.1.3/jruby-complete-1.1.3.pom
Downloading: http://repo1.maven.org/maven2/org/jruby/jruby-complete/1.1.3/jruby-complete-1.1.3.pom
[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:8080/ctx/system/console
[ERROR] Installation failed, cause: Created
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 21 seconds
[INFO] Finished at: Tue Sep 02 18:26:49 PDT 2008
[INFO] Final Memory: 15M/42M
[INFO]
------------------------------------------------------------------------
On Aug 28, 2008, at 12:14 AM, Bertrand Delacretaz wrote:
> On Thu, Aug 28, 2008 at 8:48 AM, Bertrand Delacretaz
> <bd...@apache.org> wrote:
>> ...The scripting/ruby bundle was broken in the current trunk, see
>> SLING-632.
>>
>> It should work now, but uses jruby 1.0 again, I didn't have time to
>> look at the additional dependencies required by jruby 1.1.1....
>
> Felix gave me a hint about this, the scripting/ruby module now works
> using the latest jruby 1.1.3.
>
> -Bertrand
Re: How do I create a Ruby template?
Posted by Joshua Oransky <ca...@gmail.com>.
Thanks! That worked!
On Sep 2, 2008, at 11:52 PM, Bertrand Delacretaz wrote:
> Hi,
>
> On Wed, Sep 3, 2008 at 3:39 AM, Joshua Oransky <ca...@gmail.com>
> wrote:
>> ...When I run mvn -P autoInstallBundle
>> -Dsling.url=http://localhost:8080/ctx/system/console clean install
>> I get a
>> build error. Nothing shows up in the $sling.home/logs/error.log...
>
> Looks like your sling.url is wrong, if you open it from a browser you
> should see the OSGi console. I guess the correct one is
> http://localhost:8080/system/console
>
>> ... [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:8080/ctx/system/console
>> [ERROR] Installation failed, cause: Created...
>
> I guess the install plugin gets a "created" HTTP response instead of
> what it expects, which would be the case if using a wrong install URL:
> in this case the SlingPostServlet will create a new node.
>
> -Bertrand
Re: How do I create a Ruby template?
Posted by Bertrand Delacretaz <bd...@apache.org>.
Hi,
On Wed, Sep 3, 2008 at 3:39 AM, Joshua Oransky <ca...@gmail.com> wrote:
> ...When I run mvn -P autoInstallBundle
> -Dsling.url=http://localhost:8080/ctx/system/console clean install I get a
> build error. Nothing shows up in the $sling.home/logs/error.log...
Looks like your sling.url is wrong, if you open it from a browser you
should see the OSGi console. I guess the correct one is
http://localhost:8080/system/console
>... [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:8080/ctx/system/console
> [ERROR] Installation failed, cause: Created...
I guess the install plugin gets a "created" HTTP response instead of
what it expects, which would be the case if using a wrong install URL:
in this case the SlingPostServlet will create a new node.
-Bertrand