Skip to content

Instantly share code, notes, and snippets.

View dcolebatch's full-sized avatar
👋
I may be slow to respond.

David Colebatch dcolebatch

👋
I may be slow to respond.
View GitHub Profile
@dcolebatch
dcolebatch / rvm issue
Created January 7, 2011 21:58
I can't install/run latest jruby using rvm on 64-bit Ubuntu (10.10)
using:
Linux desktop 2.6.35-24-generic #42-Ubuntu SMP Thu Dec 2 02:41:37 UTC 2010 x86_64 GNU/Linux
rvm 1.2.0 by Wayne E. Seguin (wayneeseguin@gmail.com) [http://rvm.beginrescueend.com/]
I can build & install ruby-head just fine, but I really want jruby for some projects I have been working on another machine:
------
ruby-head 16:17 ~ $ rvm install jruby
jruby-1.5.6 - #fetching
jruby-1.5.6 - #extracted to /home/david/.rvm/src/jruby-1.5.6 (already extracted)
@dcolebatch
dcolebatch / arel issue
Created March 16, 2011 22:25
active record + arel's not playing nicely with SQLite3; suspect reflection issue after schema change
I have a table called "tblPods" (legacy MSSQL server app... excuse it) with this schema:
-- Describe TBLPODS
CREATE TABLE tblpods (
"ID" INTEGER(0),
"Name" VARCHAR(50) NOT NULL,
"Location" INTEGER(0) NOT NULL,
"Type" INTEGER(0),
"Production" BOOLEAN NOT NULL,
"MgmtNetworks" VARCHAR(50),
@dcolebatch
dcolebatch / thor_bundler_rails3.1.0rc1_on_jruby-1.6.2
Created June 3, 2011 18:24
thor warning in bundler when using rails generator under jruby-1.6.2
12:18 ~/work $ rails new myapp
create
create README
create Rakefile
create config.ru
create .gitignore
create Gemfile
create app
create app/assets/images/rails.png
create app/assets/javascripts/application.js
@dcolebatch
dcolebatch / libxml-ruby build on linux
Created March 27, 2012 19:07
libxml-ruby-2.3.2 fails to build on Ubuntu 11.04 with jRuby-1.6.6
jruby-1.6.6 15:02 ~/.rvm/gems/jruby-1.6.6/gems/libxml-ruby-2.3.2/ext/libxml $ ruby 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.
checking for socket() in -lsocket... no
checking for gethostbyname() in -lnsl... yes
checking for atan() in -lm... no
checking for atan() in -lm... yes
checking for inflate() in -lz... yes
checking for iconv_open() in -liconv... no
checking for libiconv_open() in -liconv... no
@dcolebatch
dcolebatch / gist:2255678
Created March 30, 2012 21:52
TB agents failing to start
17:51:21,074 INFO [org.jboss.as.server.deployment] (MSC service thread 1-16) JBAS015876: Starting deployment of "lm-agents-knob.yml"
17:51:21,079 INFO [org.torquebox.core] (MSC service thread 1-16) evaling: /media/data/david/work/xn/xn-stack/lm-agents/torquebox.rb
17:51:21,154 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-10) MSC00001: Failed to start service jboss.deployment.unit."lm-agents-knob.yml".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."lm-agents-knob.yml".INSTALL: Failed to process phase INSTALL of deployment "lm-agents-knob.yml"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.uti
@dcolebatch
dcolebatch / TB2.0.1-Ubuntu11.1-HornetQ
Created April 17, 2012 14:29
Torquebox 2.0.1 on ubuntu 11.10 - HornetQ not starting (see line 77: "10:25:09,350 SEVERE...")
/bin/sh bin/standalone.sh -Djruby.home=/home/david/.rvm/rubies/jruby-1.6.7
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /home/david/.rvm/gems/jruby-1.6.7/gems/torquebox-server-2.0.1-java/jboss
JAVA: java
JAVA_OPTS: -server -XX:+TieredCompilation -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.server.default.config=standalone.xml -Xss2048k
@dcolebatch
dcolebatch / gist:2407158
Created April 17, 2012 16:03
server.log output from HornetQ not starting in TB2.01 on Ubuntu 11.10
11:31:34,293 INFO [org.jboss.as.configadmin] (ServerService Thread Pool -- 42) JBAS016200: Activating ConfigAdmin Subsystem
11:31:34,337 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 47) JBAS010280: Activating Infinispan subsystem.
11:31:34,398 INFO [org.jboss.as.jacorb] (ServerService Thread Pool -- 48) JBAS016300: Activating JacORB Subsystem
11:31:34,437 INFO [org.jboss.as.remoting] (MSC service thread 1-4) JBAS017100: Listening on /127.0.0.1:9999
11:31:34,526 INFO [org.jboss.as.security] (ServerService Thread Pool -- 64) JBAS013101: Activating Security Subsystem
11:31:34,653 INFO [org.jboss.as.osgi] (ServerService Thread Pool -- 59) JBAS011940: Activating OSGi Subsystem
11:31:34,721 INFO [org.jboss.as.webservices] (ServerService Thread Pool -- 68) JBAS015537: Activating WebServices Extension
11:31:34,726 INFO [org.jboss.as.connector] (MSC service thread 1-4) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)
11:31:34,757 INFO [org.jboss.as.naming] (Server
@dcolebatch
dcolebatch / gist:3702055
Created September 11, 2012 21:05
torquebox env fail
17:02 jruby-1.7.0.preview2 ~/some-server (package)$ NOEXEC=0 torquebox env
Warning, 'NOEXEC' environment variable is deprecated, switch to 'NOEXEC_DISABLE=1'.
TORQUEBOX_HOME=
JBOSS_HOME=/jboss
JRUBY_HOME=/Users/david/.rvm/rubies/jruby-1.7.0.preview2
@dcolebatch
dcolebatch / gist:3702154
Created September 11, 2012 21:20
torquebox binstub
17:18 jruby-1.7.0.preview2 ~/some-server (package)$ cat bin/torquebox
#!/usr/bin/env jruby
#
# This file was generated by Bundler.
#
# The application 'torquebox' is installed as part of a gem, and
# this file is here to facilitate running it.
#
require 'pathname'
@dcolebatch
dcolebatch / gist:3702540
Created September 11, 2012 22:15
vfs error with torquebox:deploy:archive
After running:
jruby-1.7.0.preview2 ~/some-server $ torquebox:freeze
jruby-1.7.0.preview2 ~/some-server $ torquebox:deploy:archive
The following is observed in server.log:
---- server.log ----
18:07:34,432 INFO [org.jboss.as.osgi] (MSC service thread 1-2) JBAS011908: Unregister module: Module "deployment.some-server.knob:main" from Service Module Loader
18:07:34,436 INFO [org.jboss.as.messaging] (pool-7-thread-2) JBAS011605: Unbound messaging object to jndi name java:/queues/torquebox/some-server/tasks/torquebox_backgroundable