Torquebox and Cygwin don’t work as nicely together as one might hope. That said, here are a couple of findings: In order to deploy, you need to set the $JBOSS_HOME with the Windows path. You can do this via export JBOSS_PATH=cygpath -w PATH_TO_JBOSS. Additionally, the JRUBY_HOME needs to be a windows path as well. Otherwise …
Category Archive: gotchas
Mar 02
Rails & JRuby in a Jar
This is a discussion of what I needed to do to put rails and JRuby together in a single jar.
Jul 29
JBoss port confusion
Sometimes, JBoss reports that it is unable to bind to a port, saying it is already in use. However, this is not always the case.
May 14
SSL Joys
The nice thing about standards is that there are so many of them to choose from. Andrew S. Tanenbaum I’ve been working with a Apache proxy to force SSL and https. Well, I haven’t had any control over the certificates. And they can come in so many versions, especially given that Microsoft wants to do …
Jan 14
SSL and Java Keystores
If you happen to change a machine’s name, be sure to delete the previous definition from the keystore. Otherwise it will complain mightily and, indeed, fail when you attempt to add in the pem file.
Nov 14
Concatenation Note to Self
To concatenate in PHP you use a ‘.’, not a ‘+’. Likewise, you don’t use ‘.’ to reference an object’s members, you use ‘->’. Move along, nothing to see.
Nov 12
DIY Maps and Linux Firefox/Flash Quirks
First off, let me say that I really like DIY Map. It’s quick, and responsive, with an easy to use interface, as well as allowing you to make changes on the fly easily. That said, I discovered lastnight / this morning that there are some quirks with its updating through the Flash JavaScript Integration Kit. …
Nov 11
YUI Datasources
Been a while since I’ve written. I’ve been sick and working on a side project. That said, I’ll be writing more…… Today’s note/reminder is a gotcha about YUI datasources. If you have JSON feeding the datasource and you’re getting back more fields in the results than you’re expecting, the datasource will not behave properly. For …
Sep 25
JBoss run.sh may be harmful
A coworker and I discovered an issue with jboss’ run.sh (which starts the app server). The problem lies in different flavours of unix (or unix-like) shells returning different values for wait. The relevant code is:
1 2 3 4 5 6 7 |
# Wait until the background process exits WAIT_STATUS=0 while [ "$WAIT_STATUS" -ne 127 ]; do JBOSS_STATUS=$WAIT_STATUS wait $JBOSS_PID 2>/dev/null WAIT_STATUS=$? done |
This is all well and good in linux — redhat uses /bin/bash and ubuntu uses /bin/dash for /bin/sh — …
Sep 12
Class is Class, and Instance, Instance, and never the twain shall meet
More about methods, it’s inspired/spurred by a comment on methods, public_methods, and private_methods by Pit Captain. It also corrects some misconceptions I had (and may have (wrongly) given others). I’ve added a new category, “eating crow” for this and any other postings where I step back and re-evaluate my posts. This is to keep me …