Skip to content

Instantly share code, notes, and snippets.

@qmx
qmx / error
Created February 23, 2012 15:23 — forked from owenthereal/error
error when installing posix-spawn gem with JRuby 1.6.7
Installing posix-spawn (0.3.6) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/Users/Owen/.rvm/rubies/jruby-1.6.7/bin/jruby extconf.rb
WARNING: JRuby does not support native extensions or the `mkmf' library very well.
Check http://kenai.com/projects/jruby/pages/Home for alternatives.
creating Makefile
make
cc -I. -I/Users/Owen/.rvm/rubies/jruby-1.6.7/lib/native/include -I/Users/Owen/.rvm/rubies/jruby-1.6.7/lib/native/include/ruby -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fPIC -DTARGET_RT_MAC_CFM=0 -fno-omit-frame-pointer -fno-strict-aliasing -fexceptions -Wall -arch i386 -c posix-spawn.c
archetype.groupId=org.jboss.as.quickstarts
archetype.artifactId=jboss-as-kitchensink-html5-mobile-archetype
archetype.version=1.0.0-SNAPSHOT
archetype.name=jboss-javaee6-html5-mobile-archetype
packageName=org.jboss.as.quickstarts.html5_mobile
name=Java EE 6 HTML5 Mobile Web Application
enterprise=false
tableSuffix=html5mobi
From fd510995c4fc4a4da865fc85b88a18f7a48afd1c Mon Sep 17 00:00:00 2001
From: Douglas Campos <[email protected]>
Date: Fri, 9 Mar 2012 13:33:10 -0300
Subject: [PATCH] expected
---
.../as/quickstarts/html5_mobile/model/Member.java | 2 +-
.../html5_mobile/rest/JaxRsActivator.java | 2 +-
.../html5_mobile/rest/MemberService.java | 2 +-
.../quickstarts/html5_mobile/util/Resources.java | 2 +-
From 5a95c6ba5362422448d64d604ed4c1bab00591b5 Mon Sep 17 00:00:00 2001
From: Douglas Campos <[email protected]>
Date: Fri, 9 Mar 2012 13:33:10 -0300
Subject: [PATCH] expected
---
pom.xml | 61 ++++++++-----------
src/etc/license.txt | 14 +++++
.../as/quickstarts/html5_mobile/model/Member.java | 2 +-
.../html5_mobile/rest/JaxRsActivator.java | 2 +-
From 2adb81b66ca8de36ea567a2ac9981f486da37ceb Mon Sep 17 00:00:00 2001
From: Douglas Campos <[email protected]>
Date: Fri, 9 Mar 2012 16:43:17 -0300
Subject: [PATCH] from quickstart
---
.gitignore | 11 +-
LICENSE.txt | 202 ++++++++++++++++++++
README.md | 69 +++++--
SERVICES.md | 123 ++++++++++++
[ERROR] Failed to execute goal on project jboss-as-kitchensink-html5-mobile: Could not resolve dependencies for project org.jboss.as.quickstarts:jboss-as-kitchensink-html5-mobile:war:1.0.0-M2b: Failed to collect dependencies for [javax.enterprise:cdi-api:jar:[1.0-SP4,1.0-SP4-redhat-1] (provided), org.jboss.spec.javax.annotation:jboss-annotations-api_1.1_spec:jar:1.0.0.Final-redhat-1 (provided), org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_1.1_spec:jar:[1.0.0.Final,1.0.0.Final-redhat-1] (provided), org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:[1.0.1.Final,1.0.1.Final-redhat-1] (provided), org.jboss.spec.javax.ejb:jboss-ejb-api_3.1_spec:jar:[1.0.1.Final,1.0.1.Final-redhat-1] (provided), org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec:jar:[1.0.0.Final,1.0.0.Final-redhat-1] (provided), org.hibernate:hibernate-validator:jar:4.2.0.Final (provided), org.hibernate:hibernate-jpamodelgen:jar:1.1.1.Final (provided), junit:junit:jar:4.10 (test), org.jboss.arquillian.junit:arquillian-junit-container:jar
qmx@mirkwood /Volumes/v2/git/jruby ±master⚡ » bin/jruby spec/mspec/bin/mspec tag spec/ruby/core/process/daemon_spec.rb 130 ↵jruby 1.7.0.dev (ruby-2.0.0dev) (2012-03-15 61bd77a) (Java HotSpot(TM) 64-Bit Server VM 1.7.0_04-ea) [darwin-amd64-java]
NoMethodError: undefined method `daemon' for Process:Module
return_value at /Volumes/v2/git/jruby/spec/ruby/core/process/fixtures/daemon.rb:33
__send__ at org/jruby/RubyBasicObject.java:1786
send at org/jruby/RubyKernel.java:1975
run at /Volumes/v2/git/jruby/spec/ruby/core/process/fixtures/daemon.rb:11
(root) at /Volumes/v2/git/jruby/spec/ruby/core/process/fixtures/daemon.rb:111
^C
Process aborted!
# Option 1 or 2?
# 1
return @app.call(env) if @exclude && @exclude.call(env)
# 2
if @exclude && @exclude.call(env)
return @app.call(env)
end
package org.jboss.aerogear.controller;
import org.jboss.aerogear.controller.router.Routes;
import org.junit.Test;
import static org.jboss.aerogear.controller.RequestMethod.GET;
import static org.jboss.aerogear.controller.RequestMethod.POST;
public class RoutesTest {