Thursday, February 25, 2016

Failed to link org/wildfly/swarm/container/runtime/RuntimeServer

I got the following error running the WildFly Swarm jaxrs-cdi example:

 Exception in thread "main" java.lang.reflect.InvocationTargetException  
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
      at sun.reflect.NativeMethodAccessorImpl.invoke(  
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(  
      at java.lang.reflect.Method.invoke(  
      at org.wildfly.swarm.bootstrap.Main.invoke(  
      at org.wildfly.swarm.bootstrap.Main.main(  
 Caused by: java.lang.NoClassDefFoundError: Failed to link org/wildfly/swarm/container/runtime/RuntimeServer (Module "org.wildfly.swarm.container:runtime" from BootModuleLoader@29ca901e for finders [BootstrapClasspathModuleFinder, BootstrapModuleFinder(org.wildfly.swarm.bootstrap:main), ClasspathModuleFinder, ApplicationModuleFinder(swarm.application:main)]): org/wildfly/swarm/container/Server  
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)  
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(  
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(  
      at java.lang.reflect.Constructor.newInstance(  
      at org.jboss.modules.ModuleClassLoader.defineClass(  
      at org.jboss.modules.ModuleClassLoader.loadClassLocal(  
      at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(  
      at org.jboss.modules.Module.loadModuleClass(  
      at org.jboss.modules.ModuleClassLoader.findClass(  
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(  
      at org.jboss.modules.ConcurrentClassLoader.performLoadClass(  
      at org.jboss.modules.ConcurrentClassLoader.loadClass(  
      at org.wildfly.swarm.container.Container.createServer(  
      at org.wildfly.swarm.container.Container.<init>(  
      at org.wildfly.swarm.container.Container.<init>(  
      at org.wildfly.swarm.Swarm.simpleMain(  
      at org.wildfly.swarm.Swarm.main(  
      ... 7 more  

The fix was pretty simple: rebuild WildFly Swarm itself.  After a quick mvn clean install everything was up and running.

Wednesday, November 25, 2015

Apache on OSX Yosemite

I was recently doing some web stuff on my laptop for the first time in a while. I could pull up the "It Works!" page, but nothing else.
This Apple forum post solved it.
Blogged here to help search results :)

Sunday, October 25, 2015



My fifth JavaOne started today.  I attended a Java University class.  It was interesting to be on the other side of that sort of presentation.

Red Hat is well represented this year.  There is a microsite on Red Hat Developer.

Stop by the Red Hat booth in the vendor hall if you are attending.  We have presentations all day long, and there is a rumor about trucker hats...

The agenda at our booth this week:

Monday, October 26th

10:15 - 11:00 
Standardized Extension-Building in Java EE with CDI and JCA

- Jason Porter

11:45 - 12:30
Taming Microservices Testing with Arquillian Cube
- Aslak Knutsen, Alex Soto & Bartosz Majsak

1:45 - 2:30
Docker for Java EE Developers
- Rafael Benevides & Markus Eisele

3:30 -  4:15
Shenandoah: An Ultralow-Pause-Time Garbage Collector for OpenJDK
- Christine H. Flood

Friday, June 19, 2015

Monday, May 19, 2014

Rails 4 MiniTest error

I got the following cryptic error on a new project:

~/…/unit.rb:1037:in `block in process_args’: invalid option: —use-color (OptionParser::InvalidOption)

Thanks to this blog for pointing the way.

I did not copy/paste the suggested code though.  I just ran :

guard init minitest

Strange Bundler error, noexec.rb:5:in `pwd'

I got the following after running "bundle install" :
rubygems-bundler-1.4.2/lib/rubygems-bundler/noexec.rb:5:in `pwd': No such file or directory - getcwd (Errno::ENOENT)

Thanks to stackoverflow and this blog I cd'd into the parent directory and then back into my working directory and bundler worked.