Skip to content

Instantly share code, notes, and snippets.

@peteroyle
peteroyle / gist:958297
Created May 6, 2011 01:25
AsynchronousInterceptor
/*
* JBoss, Home of Professional Open Source
* Copyright 2008, Red Hat Middleware LLC, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
Float add(Float x)(Float y) {
return x+y;
}
Float addOne(Float y) = add(1.0);
Float three = addOne(2.0);
---
web:
context: /cr
queues:
test.queue.bri:
remote_host: 192.168.1.58
topics:
test.topic.bri:
remote_host: 192.168.1.58
messaging:
-------------------------------------------------------------------------------
Test set: org.torquebox.interp.core.RubyComponentResolverTest
-------------------------------------------------------------------------------
Tests run: 6, Failures: 0, Errors: 6, Skipped: 0, Time elapsed: 0.501 sec <<< FAILURE!
testResolveToInstantiate(org.torquebox.interp.core.RubyComponentResolverTest) Time elapsed: 0.116 sec <<< ERROR!
org.jruby.exceptions.RaiseException: (LoadError) no such file to load -- rubygems
testResolveRepeatedly(org.torquebox.interp.core.RubyComponentResolverTest) Time elapsed: 0.057 sec <<< ERROR!
org.jruby.exceptions.RaiseException: (LoadError) no such file to load -- rubygems
DEPLOYMENTS IN ERROR:
Deployment "torquebox.cdr_filter_dev-knob.yml.PojoDeployment.cdr_filter_dev" is in error due to the following reason(s): org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
DEPLOYMENTS IN ERROR:
Deployment "torquebox.cdr_filter_dev.RubyMessageProcessor.test.queue.bri.BriConsumer" is in error due to the following reason(s): javax.jms.InvalidDestinationException: Queue test.queue.bri does not exist
DEPLOYMENTS IN ERROR:
Deployment "torquebox.cdr_filter_dev-knob.yml.PojoDeployment.cdr_filter_dev" is in error due to the following reason(s): org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
DEPLOYMENTS MISSING DEPENDENCIES:
Deployment "torquebox.cdr_filter_dev.RubyMessageProcessor.test.queue.bri.BriConsumer" is missing the following dependencies:
Dependency "naming:test.queue.bri" (should be in state "Installed", but is actually in state "** NOT FOUND Depends on 'naming:test.queue.bri' **")
DEPLOYMENTS IN ERROR:
Deployment "naming:test.queue.bri" is in error due to the following reason(s): ** NOT FOUND Depends on 'naming:test.queue.bri' **
Hektor:bin pete$ ./run.sh
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /Users/pete/softwaredev/servers/torquebox-git/assemblage/assembly/target/stage/torquebox-1.0.0.CR1-SNAPSHOT/jboss
JAVA: /System/Library/Frameworks/JavaVM.framework/Home//bin/java
JAVA_OPTS: -Xms128m -Xmx1024m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dprogram.name=run.sh -Djava.library.path=/Users/pete/softwaredev/servers/torquebox-git/assemblage/assembly/target/stage/torquebox-1.0.0.CR1-SNAPSHOT/jboss/bin/native/lib64
@peteroyle
peteroyle / gist:889911
Created March 28, 2011 02:32
maven rspec dep error
------------------------------------------------------------------------
[ERROR]BUILD ERROR
------------------------------------------------------------------------
Failed to resolve artifact.
Unable to get dependency information: Error in metadata for artifact 'rubygems:rspec:gem': Unable to parse version '[2.3.0,2.3.99999.99999)' for dependency 'rubygems:rspec-core:gem': Range defies version ordering: [2.3.0,2.3.99999.99999)
rubygems:rspec:gem:2.3.0
from the specified remote repositories:
rubygems-proxy (http://rubygems-proxy.torquebox.org/releases),
bash-3.2$ jruby -S gem environment
RubyGems Environment:
- RUBYGEMS VERSION: 1.5.1
- RUBY VERSION: 1.8.7 (2011-03-15 patchlevel 330) [java]
- INSTALLATION DIRECTORY: /opt/torquebox-1.0.0.CR1-SNAPSHOT/jruby/lib/ruby/gems/1.8
bash-3.2$ head -5 /opt/torquebox-current/jruby/bin/rake
#!/usr/bin/env jruby
#
# This file was generated by RubyGems.
#