tag:blogger.com,1999:blog-24455298432146418672024-11-27T02:11:54.440-05:00Arrogant ProgrammerUseful (I hope) information from a JBoss Solution Architect.jeremyrdavishttp://www.blogger.com/profile/15604770943158550759noreply@blogger.comBlogger139125tag:blogger.com,1999:blog-2445529843214641867.post-82197787127572127002019-03-21T15:15:00.000-04:002019-03-21T15:15:56.044-04:00<pre style="background: #f0f0f0; border: 1px dashed #cccccc; color: black; font-family: "arial"; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> -- Starting Minishift VM ..... FAIL E0321 11:29:07.578030 </code></pre>
<pre style="background: #f0f0f0; border: 1px dashed #cccccc; color: black; font-family: "arial"; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;">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"
</code></pre>
<br />
I got the above error while firing up Minishift to run through <a href="http://rafabene.com/" target="_blank">Rafaele Benevides</a> Istio Tutorial for Red Hat Developers, which you can find here: https://github.com/redhat-developer-demos/istio-tutorial<br />
<br />
The error is related to an incomplete uninstall of Virtual Box. The solution is simple: download Virtual Box and run the Uninstall Tool.<br />
<br />
<br />jeremyrdavishttp://www.blogger.com/profile/15604770943158550759noreply@blogger.com0tag:blogger.com,1999:blog-2445529843214641867.post-24245780566765821952018-04-17T11:06:00.002-04:002018-04-17T11:07:15.257-04:00How to let Arquillian know that JBoss is running on localhostJust add the following to the configuration section:<br />
<br />
<pre style="background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: "andale mono" , "lucida console" , "monaco" , "fixed" , monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;"><code><property name="managementAddress">${arquillian.wildfly.host:localhost}</property>
</code></pre>
<br />
My complete file was:
<br />
<br />
<pre style="background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: "andale mono" , "lucida console" , "monaco" , "fixed" , monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;"><code> <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>
</code></pre>
jeremyrdavishttp://www.blogger.com/profile/15604770943158550759noreply@blogger.com0tag:blogger.com,1999:blog-2445529843214641867.post-79980838726416424022016-02-25T13:56:00.001-05:002016-02-25T13:56:05.347-05:00Failed to link org/wildfly/swarm/container/runtime/RuntimeServerI got the following error running the WildFly Swarm jaxrs-cdi example:<br />
<br />
<br />
<pre style="background: #f0f0f0; border: 1px dashed #cccccc; color: black; font-family: "arial"; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> 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
</code></pre>
<br />
The fix was pretty simple: rebuild WildFly Swarm itself. After a quick mvn clean install everything was up and running.jeremyrdavishttp://www.blogger.com/profile/15604770943158550759noreply@blogger.com0tag:blogger.com,1999:blog-2445529843214641867.post-3089648307257058722015-11-25T12:36:00.005-05:002015-11-25T12:36:50.749-05:00Apache on OSX YosemiteI 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.<br />
<a href="https://discussions.apple.com/message/27497748#27497748" target="_blank">This</a> <a href="https://discussions.apple.com/message/27497748#27497748" target="_blank">Apple</a> <a href="https://discussions.apple.com/message/27497748#27497748" target="_blank">forum</a> <a href="https://discussions.apple.com/message/27497748#27497748" target="_blank">post</a> solved it.<br />
Blogged here to help search results :)jeremyrdavishttp://www.blogger.com/profile/15604770943158550759noreply@blogger.com0tag:blogger.com,1999:blog-2445529843214641867.post-11457209763844374462015-10-25T19:58:00.002-04:002015-10-25T19:58:58.114-04:00#JavaOne2015<b>#JavaOne2015</b><br />
<br />
My fifth JavaOne started today. I attended a <a href="https://www.oracle.com/javaone/java-university.html" target="_blank">Java University</a> class. It was interesting to be on the other side of that sort of presentation.<br />
<br />
Red Hat is well <a href="http://developers.redhat.com/events/javaone/2015/#featured-speakers" target="_blank">represented</a> this year. There is a <a href="http://developers.redhat.com/events/javaone/2015" target="_blank">microsite</a> on <a href="http://developers.redhat.com/events/javaone/2015/" target="_blank">Red Hat Developer</a>.<br />
<br />
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...<br />
<br />
The agenda at our booth this week:<br />
<br />
<b>Monday, October 26th</b><br />
<div class="p1">
<span class="s1"><br /></span></div>
<div class="p1">
<span class="s1">10:15 - 11:00 </span></div>
<div class="p1">
<span class="s1">Standardized Extension-Building in Java EE with CDI and JCA</span></div>
<br />
<div class="p2">
<span class="s2">- Jason Porter</span></div>
<div class="p2">
<span class="s2"><b><br /></b></span></div>
<div class="p1">
<span class="s1">11:45 - 12:30</span></div>
<div class="p1">
<span class="s1">Taming Microservices Testing with Arquillian Cube</span></div>
<div class="p2">
<span class="s2">
</span></div>
<div class="p2">
<span class="s2">- Aslak Knutsen, Alex Soto & Bartosz Majsak</span></div>
<div class="p2">
<span class="s2"><b><br /></b></span></div>
<div class="p2">
<span class="s2">1:45 - 2:30</span></div>
<div class="p1">
<span class="s1">Docker for Java EE Developers</span></div>
<div class="p2">
<span class="s2">
</span></div>
<div class="p2">
<span class="s2">- Rafael Benevides & Markus Eisele</span></div>
<div class="p2">
<span class="s2"><b><br /></b></span></div>
<div class="p2">
<span class="s2">3:30 - 4:15</span></div>
<div class="p1">
<span class="s1">Shenandoah: An Ultralow-Pause-Time Garbage Collector for OpenJDK</span></div>
<div class="p2">
<span class="s2">
</span></div>
<div class="p2">
<span class="s2">- Christine H. Flood</span></div>
jeremyrdavishttp://www.blogger.com/profile/15604770943158550759noreply@blogger.com1tag:blogger.com,1999:blog-2445529843214641867.post-70287457214483065832015-06-22T07:31:00.001-04:002015-06-22T07:31:38.412-04:00How to open Finder from the Terminal in OSX<pre style="background-image: URL(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKvHOi_Vyfjj7QEDlHLgMwJlkEhhQLnvLAoJStmHURsiN88Vbo1za_2naOZcK8EFIneBncNVr-X2AA39l7AReFfqK5aD6zCGLCXgzsA8oM9sCEzf8a7az2iVNE1kwn0ScU_VFLBdBAXxVQ/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> open .
</code></pre>
<br />
This came in handy this morning.jeremyrdavishttp://www.blogger.com/profile/15604770943158550759noreply@blogger.com0tag:blogger.com,1999:blog-2445529843214641867.post-82148232640211280472015-06-19T06:32:00.001-04:002015-06-19T06:32:59.816-04:00How to find a Java class file in your Maven repository (or any other directory full of jar files)<!-- HTML generated using hilite.me --><br />
<div style="background: #ffffff; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;">
<pre style="line-height: 125%; margin: 0;">find . -name <span style="background-color: #fff0f0;">"*.jar"</span> | xargs grep -r [CLASS NAME]
</pre>
</div>
<br />
In case you are ever wondering why your builds aren't working.jeremyrdavishttp://www.blogger.com/profile/15604770943158550759noreply@blogger.com0tag:blogger.com,1999:blog-2445529843214641867.post-63989714947729182012014-05-19T14:19:00.000-04:002014-05-19T14:19:00.065-04:00Rails 4 MiniTest errorI got the following cryptic error on a new project:<br />
<br />
<pre style="background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;"><code>~/…/unit.rb:1037:in `block in process_args’: invalid option: —use-color (OptionParser::InvalidOption)
</code></pre>
<br />
Thanks to <a href="http://bitplaying.tumblr.com/post/55711657471/rails-4-defaults-to-minitest-frustration-follows" target="_blank">this blog</a> for pointing the way.<br />
<br />
I did not copy/paste the suggested code though. I just ran :<br />
<br />
<pre style="background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;"><code>guard init minitest</code></pre>
<br />jeremyrdavishttp://www.blogger.com/profile/15604770943158550759noreply@blogger.com0tag:blogger.com,1999:blog-2445529843214641867.post-51446519512082320332014-05-19T13:58:00.002-04:002014-05-19T13:58:55.007-04:00Strange Bundler error, noexec.rb:5:in `pwd'I got the following after running "bundle install" :<br />
<pre style="background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;"><code>rubygems-bundler-1.4.2/lib/rubygems-bundler/noexec.rb:5:in `pwd': No such file or directory - getcwd (Errno::ENOENT)
</code></pre>
<br />
Thanks to <a href="http://stackoverflow.com/questions/15421392/tried-to-load-twitter-bootstrap-now-getting-a-funny-error" target="_blank">stackoverflow</a> and <a href="http://shriikant.blogspot.co.uk/2010/04/shell-init-error-retrieving-current.html" target="_blank">this blog</a> I cd'd into the parent directory and then back into my working directory and bundler worked.jeremyrdavishttp://www.blogger.com/profile/15604770943158550759noreply@blogger.com1tag:blogger.com,1999:blog-2445529843214641867.post-80016104702154550222014-04-14T22:36:00.001-04:002014-04-14T22:36:14.081-04:00DevNation Day OneI'm in San Francisco for Red Hat's new developer conference, <a href="http://www.devnation.org/" target="_blank">DevNation</a> It was a great foggy San Francisco morning and then a beautiful day for the first day of the conference.<br />
<br />
I caught several good presentations. <a href="http://nealford.com/" target="_blank">Neal Ford</a>'s talk was up first, and he was as insightful as usual. I've seen Neal speak many times. Any talk that begins with the "poetry of Donald Rumsfeld" is going to get my attention. Known unknowns...<br />
<br />
Scott Cranton presented Camel recipes from his recent book, <a href="http://amzn.to/1hPBgzH" target="_blank">Apache Camel Cookbook</a> There is some really useful stuff in the book. I have already ordered it from Amazon.<br />
<br />
They middleware keynote was great <a href="http://burrsutter.blogspot.com/" target="_blank">Burr Sutter</a> led a team through "Bare metal to BPM" deploying <a href="https://www.openshift.com/" target="_blank">Openshift</a> on a bunch of old laptops (using <a href="http://openstack.redhat.com/" target="_blank">OpenStack</a>) and pushing Tweets through a jBPM process.<br />
<br />
Can't wait for day twojeremyrdavishttp://www.blogger.com/profile/15604770943158550759noreply@blogger.com0tag:blogger.com,1999:blog-2445529843214641867.post-51213431983288687502014-03-01T06:44:00.000-05:002014-03-01T09:24:54.618-05:00Sublime Text key bindings to jump out of parans, quotes and brackets like in EclipseOne of the best features of Eclipse is having the "Enter" key move you outside of the parentheses, ticks, or brackets of a method. That shortcut is so ingrained in me after a decade of Eclipse usage that I doubt I will ever be able to forget it.<br />
<br />
Sublime Text is a great editor, but it doesn't have that shortcut. I added it to Preferencs -> Key Bindings -> User<br />
<br />
<pre style="background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;"><code>{ "keys": ["enter"], "command": "move", "args": {"by": "characters", "forward": true}, "context":
[
{ "key": "following_text", "operator": "regex_match", "operand": "[\"')}](.|$)", "match_all": true }
]
}</code></pre>
jeremyrdavishttp://www.blogger.com/profile/15604770943158550759noreply@blogger.com0tag:blogger.com,1999:blog-2445529843214641867.post-6301458447518854512014-02-28T06:43:00.001-05:002014-02-28T06:43:57.468-05:00DevNexus 2014Earlier this week I attended AJUG's <a href="http://devnexus.org/" target="_blank">DevNexus</a> conference.<br />
<br />
I get the impression that JavaScript is hot again. There were many sessions on JavaScript testing, frameworks and especially Node.js. Atlanta is heavy in the web development space so maybe that is just regional, but there was talk of one Fortune 50 company having moved their online backend to Node.js.<br />
<br />
I caught several really good presentations (in alphabetical order by speaker's last name):<br />
<br />
<ul>
<li><a href="http://devnexus.org/s/devnexus2014/speakers#Aaron_Bedra" target="_blank">Aaron Bedra</a>'s talk on Web Security was something everyone writing webapps should attend</li>
<li><a href="http://devnexus.org/s/devnexus2014/speakers#Ted_Neward" target="_blank">Ted Neward</a>'s introduction to Node.js</li>
<li><a href="http://devnexus.org/s/devnexus2014/speakers#Grant_Shipley" target="_blank">Grant Shipley</a> made me want to try out Titanium (I already use OpenShift, the other thing he talked about)</li>
<li><a href="http://devnexus.org/s/devnexus2014/speakers#Burr_Sutter" target="_blank">Burr Sutter</a>'s presentation on Vert.x was eye opening. I work for Red Hat, but I don't get to spend much time with the community projects</li>
<li><a href="http://devnexus.org/s/devnexus2014/speakers#Stephen_Thomas" target="_blank">Stephen Thomas</a>' presentation on testing JavaScript</li>
<li><a href="http://devnexus.org/s/devnexus2014/speakers#Andrew_Trice" target="_blank">Andrew Trice</a> gave a great overview of PhoneGap</li>
</ul>
The <a href="http://devnexus.org/" target="_blank">DevNexus</a> site should be updated with slides and recordings soon.<br />
<br />
<br />
If you are in the Southeast keep this conference in mind next year. The sessions are high quality and the price is an absolute bargain.<br />
<br />jeremyrdavishttp://www.blogger.com/profile/15604770943158550759noreply@blogger.com0tag:blogger.com,1999:blog-2445529843214641867.post-72164649236945479602013-12-06T16:42:00.001-05:002013-12-06T16:42:16.068-05:00Mac OS X and VIMBy default Vim on OS X doesn't have any color. I forgot about .vimrc.<br />
<br />
<a href="http://tech.enekochan.com/2013/04/20/turn-on-syntax-highlighting-for-vi-and-vim-in-mac-os-x/" target="_blank">This blog post</a> clued me in on how to set it up. Just add the following to your .vimrc file :<br />
<br />
<pre style="background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;"><code>set nocompatible
syntax on
</code></pre>
<br />
<br />jeremyrdavishttp://www.blogger.com/profile/15604770943158550759noreply@blogger.com0tag:blogger.com,1999:blog-2445529843214641867.post-80035142359671231542013-11-26T10:21:00.002-05:002013-11-26T10:22:23.174-05:00How to increase JBoss Developer Studio or Eclipse font size in Mac OSXI typically use <a href="https://devstudio.jboss.com/download/7.x.html" target="_blank">JBoss Developer Studio </a>since it has all of the JBoss plugins already installed. All of the plugins are available for plain Eclipse, but it's nice to have them already packaged together.<br />
<br />
I recently downloaded the Mac version, and the font sizes on a Mac are <i>tiny</i>.<br />
<br />
This <a href="http://hints.macworld.com/article.php?story=20070605235127186" target="_blank">Mac OSX Hints</a> post contains the instructions for Eclipse.<br />
<br />
It is a little different for JBoss Developer Studio :<br />
<br />
<ul>
<li>locate the "JBoss Developer Studio.app" located in <<instal folder="">>/studio/JBoss Developer Studio.app</instal></li>
<li>"control" + click on the "JBoss Developer Studio.app" and choose "Show Package Contents"</li>
<li>this will open a folder "Contents"</li>
<li>open Contents/MacOS/jbdevstudio.ini</li>
<li>remove the line, "-Dorg.eclipse.swt.internal.carbon.smallFonts"</li>
<li>restart JBDS</li>
</ul>
<div>
Happy coding!</div>
jeremyrdavishttp://www.blogger.com/profile/15604770943158550759noreply@blogger.com0tag:blogger.com,1999:blog-2445529843214641867.post-54225470479811620262013-10-31T15:35:00.003-04:002013-10-31T15:35:49.766-04:0030 Technologies in 30 Days at whyjava.wordpress.comMy favorite thing about JUG meetings is getting a reasonable preview of a new technology in an hours time. I travel a lot with work now and don't get to attend <a href="http://www.ajug.org/" target="_blank">AJUG</a> meetings as often as I'd like. I really miss getting that monthly preview.<br />
<br />
Shekhar Gulati is taking this concept to a new level on his blog <a href="http://whyjava.wordpress.com/">whyjava.wordpress.com</a><br />
<br />
He is kicking the tires on a new technology every day for the next 30 days and blogging his impressions. So far he has tackled Bower, AngularJS and Flask. <br />
<br />
I found his posts on all 3 technologies interesting and well written. Bower was nowhere on my radar, and I only vaguely knew what Flask was.<br />
<br />
I will definitely be following his progress.jeremyrdavishttp://www.blogger.com/profile/15604770943158550759noreply@blogger.com0tag:blogger.com,1999:blog-2445529843214641867.post-2907028365406310652013-09-11T05:55:00.002-04:002013-09-11T05:55:41.979-04:00How to change the side bar fonts in Sublime Text 2This information is available in the forums under a few <a href="http://www.sublimetext.com/forum/viewtopic.php?f=2&t=7411" target="_blank">posts</a>.<br />
<br />
The settings that need to be changed are located in Default.sublime-theme. I'm using Fedora so the file is located at, [HOME]/.config/sublime-text-2/Packages/Theme - Default/Default.sublime-theme.<br />
<br />
Add the font size to "sidebar_heading" and "sidebar_label."<br />
<br />
<br />
<pre style="background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;"><code>{
"class": "sidebar_heading",
"color": [130, 130, 130],
"font.bold": true,
"shadow_color": [250, 250, 250],
"shadow_offset": [0, 1],
"font.size": 16
},
</code></pre>
jeremyrdavishttp://www.blogger.com/profile/15604770943158550759noreply@blogger.com0tag:blogger.com,1999:blog-2445529843214641867.post-66081429315276313672013-05-07T05:50:00.001-04:002013-05-07T05:50:40.966-04:00Toggle sidebar in Sublime TextThe more I use Sublime Text the more I like it. <br />
<br />
One thing that is missing (at least in the Linux version) is a shortcut to toggle the side bar. The Mac version used to use "ctrl+s", but that's what I associate with saving a file. I added a shortcut for "ctrl+b"; "b" for "bar" :<br />
<br />
<pre style="background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;"><code>{ "keys": ["ctrl+b"], "command": "toggle_side_bar" }
</code></pre>
<br />
To add this choose Preferences -> Key Bindings User<br />
<br />
Be sure to add a comma to the line above as well.jeremyrdavishttp://www.blogger.com/profile/15604770943158550759noreply@blogger.com4tag:blogger.com,1999:blog-2445529843214641867.post-16692648175766828022013-05-06T13:24:00.003-04:002013-05-06T13:25:33.545-04:00Siently add a management user in JBoss EAP6/AS7Adding a management user is required and simple to doin EAP6. AS7 is the same even though its a dead branch.<br />
<br />
If you need to add the user silently simply add the "--silent=true" flag to the command :<br />
<br />
<br />
<pre style="background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;"><code>jboss-eap-6.0/bin/add-user.sh --silent=true <username> <password> [ManagementRealm]
</code></pre>
jeremyrdavishttp://www.blogger.com/profile/15604770943158550759noreply@blogger.com0tag:blogger.com,1999:blog-2445529843214641867.post-42137226332713439572013-03-28T10:11:00.002-04:002013-03-28T10:12:01.147-04:00bash: javaws: command not found...I'm currently running Fedora 17. I got the following error starting up a .jnlp file for a web conference :<br />
<br />
<br />
<pre style="background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;"><code>bash: javaws: command not found...
</code></pre>
<br />
<br />
I checked alternatives, but there was no javaws. A quick yum install solved it :
<br />
<br />
<pre style="background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;"><code>sudo yum install icedtea-web
</code></pre>
jeremyrdavishttp://www.blogger.com/profile/15604770943158550759noreply@blogger.com0tag:blogger.com,1999:blog-2445529843214641867.post-25415366191998939072013-03-15T08:53:00.002-04:002013-03-15T08:53:54.492-04:00Fedora, docking stations and external monitorsI am running Fedora 17 and using a docking station with an external monitor. Beefy Miracle does not play well in this scenario; apparently Fedora 18, Spherical Cow, doesn't either.<br />
<br />
I found the answer on the blog "<a href="http://note-to-self.baker.com/" target="_blank">Note to Self</a>", <a href="http://note-to-self.baker.com/" target="_blank">http://note-to-self.baker.com/</a>. <a href="http://note-to-self.baker.com/2013/01/21/operating-a-fedora-17-beefy-miracle-laptop-with-an-outboard-monitor-and-the-lid-closed-e-g-on-a-dock/" target="_blank">This</a> blog post has a solution for 17, and <a href="http://note-to-self.baker.com/2013/01/22/operating-a-fedora-18-spherical-cow-laptop-with-an-outboard-monitor-and-the-lid-closed-e-g-on-a-dock/" target="_blank">this</a> post has one for 18.jeremyrdavishttp://www.blogger.com/profile/15604770943158550759noreply@blogger.com0tag:blogger.com,1999:blog-2445529843214641867.post-2531782324159532592012-12-18T09:31:00.000-05:002012-12-18T09:31:22.278-05:00find and mv files in bashI thought I would document this shell command for posterity's sake. My bash skills are sketchy so I will need to look it up again.<br />
<br />
I downloaded a few zip files this morning and needed to move them to a new directory. Moving them to a new directory from the command line was trivial:<br />
<br />
<br />
<pre style="background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;"><code>for i in $(find . -type f -newermt 2012-12-18); do cp $i /[NEW DIRECTORY PATH/; done;
</code></pre>
jeremyrdavishttp://www.blogger.com/profile/15604770943158550759noreply@blogger.com0tag:blogger.com,1999:blog-2445529843214641867.post-40722380170474369732012-12-10T16:58:00.005-05:002012-12-10T16:58:56.639-05:00You have already activated torquebox...Working with <a href="http://torquebox.org/" target="_blank">TorqueBox</a> this afternoon I got the following error just after creating a new application :<br />
<br />
<pre style="background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;"><code>You have already activated torquebox-core 2.1.2, but your Gemfile requires torquebox-core 2.0.3.redhat.1. Using bundle exec may solve this.
</code></pre>
<br />
A quick check inside my .rvm/gems/jruby-1.6.7.2@appname/ folder showed that I had two versions of torquebox installed :<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSDpYDp3HVDXnz6qJAu_caGk8r2h0BRSOLzgRKopqVLv6x5mkSy93arNemSwhBJM88hYB56P1dLjmj53I0GA5w_nvDNfnA3mXuKu4xxCE2SkyG_YlRuBtwNGsBOM-eGNoI5_0kXO-0vlY6/s1600/Screenshot+from+2012-12-10+16:54:00.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSDpYDp3HVDXnz6qJAu_caGk8r2h0BRSOLzgRKopqVLv6x5mkSy93arNemSwhBJM88hYB56P1dLjmj53I0GA5w_nvDNfnA3mXuKu4xxCE2SkyG_YlRuBtwNGsBOM-eGNoI5_0kXO-0vlY6/s1600/Screenshot+from+2012-12-10+16:54:00.png" height="194" width="320" /></a></div>
<br />
<br />
I deleted the incorrect version, 2.1.1. Everything was fine.jeremyrdavishttp://www.blogger.com/profile/15604770943158550759noreply@blogger.com0tag:blogger.com,1999:blog-2445529843214641867.post-88130201797198592712012-08-14T14:49:00.000-04:002012-08-14T22:09:05.739-04:00Fedora fonts and infinality.netI use Fedora, and I really like Gnome 3. Gnome-shell is extremely productive. However, Fedora is not known for the beauty of its' fonts.<br />
<br />
A colleague suggested that I install the infinality fonts from <a href="http://infinality.net/">infinality.net</a><br />
.<br />
<br />
Run :<br />
sudo yum install fontconfig-infinality<br />
sudo yum install freetype-infinality<br />
<br />
Fedora looks great.<br />
<br />
Be careful though : it deleted a lot of my preferences.jeremyrdavishttp://www.blogger.com/profile/15604770943158550759noreply@blogger.com2tag:blogger.com,1999:blog-2445529843214641867.post-23931691853560733242012-07-03T21:58:00.001-04:002012-07-03T21:59:38.746-04:00rvm requirementsI recently upgraded to Fedora 17, Beefy Miracle. The first time I used rvm to install a gem I got the following :<br />
<br />
<pre style="background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;"><code>ERROR: Loading command: install (LoadError)
no such file to load -- zlib
ERROR: While executing gem ... (NameError)
uninitialized constant Gem::Commands::InstallCommand
</code></pre>
<br />
I ran :<br />
<br />
<pre style="background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;"><code>rvm notes
</code></pre>
<br />
and<br />
<br />
<pre style="background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;"><code>rvm requirements
</code></pre>
<br />
And installed everything listed as a requirement for Fedora 17. That still didn't do the trick.
I reinstalled 1.9.2 with :<br />
<br />
<pre style="background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;"><code>rvm install 1.9.2
</code></pre>
<br />
And finally :<br />
<br />
<pre style="background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;"><code>sudo yum install -y gcc ruby-devel libxml2 libxml2-devel libxslt libxslt-devel1.9.2
</code></pre>
<br />
Finally!<br />
<br />
The moral of the story is :<br />
<ul>
<li>run rvm requirements </li>
<li>check the error logs if there are any (the location is the last line of the output)</li>
</ul>
<br />jeremyrdavishttp://www.blogger.com/profile/15604770943158550759noreply@blogger.com0tag:blogger.com,1999:blog-2445529843214641867.post-68617181001236213222012-05-16T09:29:00.001-04:002012-05-16T09:30:07.850-04:00Fun with RVMI typically work with jRuby. I don't have "rvm use jruby" in my bash scripts, but I might as well.<br />
<br />
I wanted to install awestruct this morning. I wanted to use C Ruby, or MRI.<br />
<br />
The frst step for using awestruct is of course to install awestruct, gem install awestruct.<br />
<br />
I got the following :<br />
<br />
ERROR: Loading command: install (LoadError)<br />
no such file to load -- zlib<br />
ERROR: While executing gem ... (NameError)<br />
uninitialized constant Gem::Commands::InstallCommand<br />
<br />
<br />
I tried to install zlib with RVM :<br />
rvm pkg install zlib<br />
<br />
Unfortunately that didn't work:<br />
/home/jeremy/.rvm/scripts/functions/pkg: line 52: cd: /home/jeremy/.rvm/src/zlib-1.2.6: No such file or directory<br />
Configuring zlib in /home/jeremy/.rvm/src/zlib-1.2.6.<br />
Error running ' ./configure --prefix="/home/jeremy/.rvm/usr" ', please read /home/jeremy/.rvm/log/zlib/configure.log<br />
Compiling zlib in /home/jeremy/.rvm/src/zlib-1.2.6.<br />
Error running 'make ', please read /home/jeremy/.rvm/log/zlib/make.log<br />
<br />
I tried the quick fix from the RVM site, https://rvm.io/packages/zlib/.<br />
Reinstalled Ruby with :<br />
rvm reinstall 1.9.2<br />
rvm use 1.9.2<br />
gem install awestruct<br />
<br />
And back to work.jeremyrdavishttp://www.blogger.com/profile/15604770943158550759noreply@blogger.com0