This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
OlderNewer