JBoss 4.2.3, JDK 6, JAX-WS

Just a quick note on what not necessarily to do if you intend to deploy applications using webservices on JBoss 4.2.3. JBoss 4.2.3 comes in two flavours, selectable from the download page:

  • JBoss 4.2.3
  • JBoss 4.2.3 JDK6

The latter contains a couple additional JARs in lib/endorsed:

  • jaxb-api.jar
  • jboss-jaxrpc.jar
  • jboss-jaxws.jar
  • jboss-jaxws-ext.jar
  • jboss-saaj.jar

The release notes contain some hidden hints that the JDK6 version of JBoss 4.2.3 is still experimental. Those JARs, especially the jaxws JARs, contain implementations that appear to be under active development. Looking at the source code reveals some pretty “hacky” portions of code here and there. The downside of those JARs is that if you have an application that contains libraries like CXF or Axis, you might run into severe trouble because the JBoss implementation of classes like javax.xml.ws.Service gets loaded first, instead of the version you have packaged with your application. You can of course tune the classloading options of your app, which MAY resolve the problem, but it does not necessarily help you a lot – you will either have to package a whole bunch of additional JARs with the application, or you will simply not make it around the classes from lib/endorsed.

My opinion at the moment is this: unless you have a very good reason OR an application that is completely based on the JBoss JAXWS et alii implementations anyway, simply use the “normal” JBoss 4.2.3, which is compiled against JDK 5 and does not bring along those libraries. On the web, you will most likely find hints like “delete the *jaxws*.jar from lib/endorsed” – actually, why delete them, if you can download the version that was compiled against JDK5. Comments?

Saturday, January 2nd, 2010 Java No Comments

SCJP rants

Hello world,

I’m currently preparing for CX-310-065, you name it, “Sun Certified Programmer for the Java Platform, Standard Edition 6″. It’s interesting to learn about the gory details of Java, although it does sometimes require a good bit of Buddha-like meditation to make it through the SCJP dungeon. Here’s why:

  • Many of the exam questions seem to be pure tests for the trained eye. Most of the example code would blast into red x’es in Eclipse, or whatever icon your favourite IDE would put in place. Are there any serious Java programmers out there using vi?
  • Getting the voucher is a WoW-like quest. If you live in Germany, you cannot order the voucher via Sun’s US website. (Which they tell you only as soon as you log in, and then your shopping cart is automatically emptied) If you order the voucher from the german website, you are under the impression that you are ordering a voucher for a german test. Bad if you are preparing using an english book.
  • There are different conditions regarding the exam. If you take the english version, you are given a lower number of questions. The amount of correct answers for both versions is roughly equivalent if you express it in percent.
  • You have to schedule and take the exam via Prometric – they have an ultra-slow website. Waiting for 2 to 3 minutes between pages is not uncommon. Additionally, I remember the site going down all the time while I was taking my JBoss test in 2007.
  • If you have made it through the Prometric website and you did NOT get the voucher beforehand, you have to go back all the way, feeling a slight bit of pain because you didn’t realize that you CAN NOT buy a voucher directly from Prometric – they do have pricing information on their site though.

In the end, putting aside all the technical trouble and the mix of information you find on the various SUN websites, I’m a little concerned with the title I’m going to earn – “Certified Programmer” sounds pretty nice, but as soon as you pass the exam, you won’t have written a single line of Java code, unless you have tried some of the examples from the various books. Good for me that I’ve been collecting development experience for about two and a half years by now, this makes the certificate a sensible … certificate :-) And of course it’s a prerequisite for the higher levels of certification, like the SCWCD, Sun Certified Web Component Developer, which I’m going to tackle in the near future. Wish me luck for the exam. Thanks :-)

Saturday, January 2nd, 2010 Java No Comments

Inbox Zero, Outlook, Thunderbird, GMail

I’ve become a big fan of Inbox Zero recently, yet I was unable to really do it because I was an Outlook user. Yes, laugh at me if it makes you happy :) Outlook sucks bigtime if you want to keep your inbox clean, and what Inbox Zero doesn’t promote is OUTBOX Zero! – which is what I do as well. In Outlook, for each mail I had to search for all mails having the same topic in order to find the sent mails as well, then delete all of them. Now, I’m a Thunderbird user, and I can view mails as threads, how cool is that? A feature I’ve always missed in Outlook, although it’s not entirely impossible to do this with Outlook, it sucks really bad. So with Thunderbird, I can delete entire threads by just one click and *bing* the inbox looks better. This requires to make reduced use of a “sent” folder of course. Now here comes Google and its GMail philosophy: “do not delete, just remove the label. The ‘all messages’ folder will serve as an archive for your messages” (this is not a real quote, it’s only meant to represent the idea). What the heck? This is absolutely contrary to the Inbox Zero principle. Thus, I’ve decided to ignore Google’s recommendation and make Thunderbird move deleted mails to the trash folder, from where I can exterminate them. Kind of disobedient, but who cares :-)

Sunday, December 6th, 2009 Random Thoughts, Recommended Readings No Comments

Sports log

Thanks to my employer, I can go to McFit for free. I started my “real” training on Monday, and I’ve been there another two times since. The first training resulted in major pain for the rest of the week, the second and third time I came out really relaxed. It’s a great means of getting your head back on the ground, and it’s good for the overall health too ;) Nick, you’re a little behind, let’s keep going ;)

Tags:

Sunday, December 6th, 2009 Random Thoughts No Comments

Episodes From Liberty City

Once again, I used the source (Amazon UK) and ordered “Episodes From Liberty City”, the DVD edition of the two GTA IV addons “The Lost And Damned” and “Ballads Of Gay Tony”. Both episodes are playable without the original GTA IV which was not the case when TLAD was released as DLC on XBOX Live. I have to say that first impressions of BOGT are really great, especially because one of my most intimate dreams has become true: mission replay. Each mission has a couple of targets like time limit, max allowed damage to the character and other constraints, and you are presented with a rating at the end of the mission. You can later choose individual missions to play again. I’ll keep reporting as I make my way through the second episode :)

Tags:

Sunday, November 1st, 2009 Entertainment No Comments

Upcoming games

I recently spent a lot of time playing video games, partially due to one week of being infected by a trojan horse carrying the flu (luckily, no H1N1) – the last game I played with a perverse intensity was Fallout 3, a nasty time killer, yet very entertaining. The next couple of weeks will bring quite a lot of new games to my collection, I’m almost in a state of fear already :)

  • The Ballad of Gay Tony – the second addon for GTA IV
  • Super Mario Galaxy 2 (Wii)
  • New Super Mario Brothers (Wii)
  • Forza Motorsport 3 is definitely an option
  • Assassin’s Creed II
  • Some time next year, Red Dead Redemption will be published
  • Maybe I’ll look at Brütal Legend

Red Dead Redemption and the two Mario games are already ordered. Currently, I’m playing Assassin’s Creed on the XBOX 360 which is a really nice game with lots of historic background, so I’ll probably be heavily eager to play the sequel; Forza 3 appears to be a must-have but I’m unsure if I’d like to play it with a gamepad; Red Dead Redemption is a must-have just because it’s a Rockstar game; Brütal Legend looks funny but of course I can’t play 24/7 so I think I’ll stick with AC and Mario for the next couple of weeks :) Obviously, this is kind of a luxury problem, just like the question “New XBOX or PS3 slim?”. In this case, I think I’ll keep the running hardware and spend the money for christmas presents instead.

    Saturday, October 17th, 2009 Entertainment No Comments

    Java and blue moon

    From the Hibernate-DEV mailing list:

    Java 6 doesn’t support making the moon blue, you’ll have to use Java 5.

    > When I get hibernate to build, I’m very pleased, as it happens once in
    > a blue moon.

    Nice reply.

    Saturday, October 3rd, 2009 Entertainment No Comments

    Google Advertising failure

    Article text in german only, sorry – taken from this article in the Heise newsticker, I’d like to present a case of general failure when it comes to online advertising:

    Article-Ad-Fail

    Article-Ad-Fail

    If you are lucky, you can see this – just go to the source. :)

    Tuesday, September 22nd, 2009 General Failure No Comments

    HTML forms: field naming

    Never do this:
    <form name="form_xy" action="" method="post">
      <input type="hidden" name="submit" value="whatever" />
    </form>

    or this here will cause errors:
    document.form_xy.submit();

    The hidden input’s name “submit” results in a “form_xy.submit is not a function” error. Gnah. (Guess how long it took me to find this error) :P

    Tuesday, September 1st, 2009 General Failure No Comments

    SVN – about branching and reintegrating

    I recommend this article – it provides some valuable information.

    Tags:

    Saturday, August 1st, 2009 Recommended Readings No Comments

    Welcome!

    Have fun reading this blog. You will find some "about" data if you follow the link in the header.

    Archives