Skip to content

Instantly share code, notes, and snippets.

View richardharrington's full-sized avatar

Richard Harrington richardharrington

View GitHub Profile
I have tried to make 2 war files (dev, not uberwars so far).
One app succeeded and the other didn't.
The one that failed, failed with the following error:
`Error: No web.xml found in the wunderboss-wildfly jar.`
There was nothing in the `:target-path` of the one that failed except the file
`<project root>/target/stale/extract-native.dependencies`, which had the following contents:
I have tried to make 2 war files (dev, not uberwars so far).
One app succeeded and the other didn't.
The one that failed, failed with the following error:
`Error: No web.xml found in the wunderboss-wildfly jar.`
There was nothing in the `:target-path` of the one that failed except the file
`<project root>/target/stale/extract-native.dependencies`, which had the following contents:
<jms-destinations>
<jms-queue name="ExpiryQueue">
<entry name="java:/jms/queue/ExpiryQueue"/>
</jms-queue>
<jms-queue name="DLQ">
<entry name="java:/jms/queue/DLQ"/>
</jms-queue>
<jms-queue name="/queue/q">
<entry name="java:/jms/queue/q"/>
</jms-queue>
This is the error that shows up in the cider-repl output:
DuplicateServiceException Service jboss.messaging.default.jms.queue./queue/q is already registered org.jboss.msc.service.ServiceRegistrationImpl.setInstance (ServiceRegistrationImpl.java:158)
And this is what shows up in another emacs window that pops up (it doesn't look related to me at first glance...):
Show: Clojure Java REPL Tooling Duplicates All (0 frames hidden)
@richardharrington
richardharrington / asyncComparison.es6
Last active August 29, 2015 14:26
comparisons of various async methods
// This function fetches complete movie objects from imdb, like so:
// 1) It fetches a random word from a random word api,
// 2) It uses that word to make a search for movies on imdb, and
// 3) It uses the abbreviated search results to fetch complete
// movie objects from imdb
// Furthermore (to make things more interesting):
// 4) The final result displayed to the user will contain the results
var assert = require('assert')
// Underscore and/or lo-dash are great
// utility libraries that abstract lots of cruft
// from javascript code. That said,
// there may be times when including a library
// isn't feasible in a project. Let's dig into
// some of the most valuable methods in the project
// and put together our own version.
@richardharrington
richardharrington / gist:5784897
Last active December 18, 2015 12:48
nodejitsu error trying to deploy 'draw'
Harrington-MacBook-Pro:draw richardharrington$ jitsu deploy
info: Welcome to Nodejitsu richardh
info: jitsu v0.12.11, node v0.8.14
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing application dependencies in app.js
WARN package.json draw@0.2.5-57 No repository field.
WARN package.json policyfile@0.0.4 No repository field.
WARN package.json policyfile@0.0.4 'repositories' (plural) Not supported.
WARN package.json Please pick one as the 'repository' field
@richardharrington
richardharrington / gist:5767783
Last active December 18, 2015 10:19
javascript hoisting
var bar = 10;
var foo = function(){
console.log(bar);
var bar = 12;
}
foo();
function fa(){
fu();
}
function fu(){
arrington-MacBook-Pro:draw richardharrington$ jitsu deploy
info: Welcome to Nodejitsu richardh
info: jitsu v0.12.11, node v0.8.14
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing application dependencies in app.js
WARN package.json draw@0.2.5-58 No repository field.
WARN package.json policyfile@0.0.4 No repository field.
WARN package.json policyfile@0.0.4 'repositories' (plural) Not supported.
WARN package.json Please pick one as the 'repository' field
unknown20c9d07e5c0f:draw-dev richardharrington$ jitsu deploy
info: Welcome to Nodejitsu richardh
info: jitsu v0.11.3, node v0.8.14
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing application dependencies in app.js
warn: Local package version appears to be old
warn: The package.json version will be incremented automatically
warn: About to write /Users/richardharrington/Dropbox/git/draw/draw-dev/package.json
data: