Thursday, March 21, 2019

 -- Starting Minishift VM ..... FAIL E0321 11:29:07.578030  
21298 start.go:494] Error starting the VM: Error creating the VM. Error with pre-create check: "Error detecting VBox version: exit status 126". Retrying.  
Error starting the VM: Error creating the VM. Error with pre-create check: "Error detecting VBox version: exit status 126"  

I got the above error while firing up Minishift to run through Rafaele Benevides Istio Tutorial for Red Hat Developers, which you can find here:  https://github.com/redhat-developer-demos/istio-tutorial

The error is related to an incomplete uninstall of Virtual Box.  The solution is simple: download Virtual Box and run the Uninstall Tool.


Tuesday, April 17, 2018

How to let Arquillian know that JBoss is running on localhost

Just add the following to the configuration section:

${arquillian.wildfly.host:localhost}


My complete file was:

   <container qualifier="jboss" default="true">
        <!-- By default, Arquillian will use the JBOSS_HOME environment variable to find the JBoss EAP installation.
             If you prefer not to define the JBOSS_HOME environment variable, alternatively you can uncomment the
             following `jbossHome` property and replace EAP_HOME with the path to your JBoss EAP installation. -->
        <configuration>
            <property name="managementAddress">${arquillian.wildfly.host:localhost}</property>
            <property name="jbossHome">/Users/jeremydavis/Workspace/summit/jboss-eap-7.1</property>
        </configuration>
    </container>

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