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(NativeMethodAccessorImpl.java:62)  
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
      at java.lang.reflect.Method.invoke(Method.java:498)  
      at org.wildfly.swarm.bootstrap.Main.invoke(Main.java:86)  
      at org.wildfly.swarm.bootstrap.Main.run(Main.java:50)  
      at org.wildfly.swarm.bootstrap.Main.main(Main.java:45)  
 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(NativeConstructorAccessorImpl.java:62)  
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)  
      at java.lang.reflect.Constructor.newInstance(Constructor.java:423)  
      at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:446)  
      at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:274)  
      at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:78)  
      at org.jboss.modules.Module.loadModuleClass(Module.java:605)  
      at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)  
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:363)  
      at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:351)  
      at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:93)  
      at org.wildfly.swarm.container.Container.createServer(Container.java:218)  
      at org.wildfly.swarm.container.Container.<init>(Container.java:146)  
      at org.wildfly.swarm.container.Container.<init>(Container.java:124)  
      at org.wildfly.swarm.Swarm.simpleMain(Swarm.java:64)  
      at org.wildfly.swarm.Swarm.main(Swarm.java:57)  
      ... 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

#JavaOne2015

#JavaOne2015

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.