Category: Java EE

  • Fastest Updates in SQL Server

    The project I’m working on at the moment requires me to achieve the fastest updates I can into a moderate sized SQL Server database table. My initial attempts were adequate for the testing I was doing on my development machine but when I came to do a more thorough test in a production like environment…

  • NetBeans and Tomcat – Transport Error 202

    I generally develop any Java applications I’m working on in NetBeans and while I prefer to use GlassFish as a container I find myself using Tomcat quite a bit. Unfortunately the debugging connection between NetBeans and Tomcat can sometimes be less than perfect.

  • Pinyin causing Glassfish and Jetty to Fail

    For as long as I can remember I’ve been hitting a bug when I start one of my web applications under GlassFish. The error message is about an ArrayIndexOutOfBounds exception and is related to Pinyin. I’ve looked for a solution a few times but never found an answer that worked. It seems to be one…

  • ManagedBeanCreationException – What’s gone wrong now!

    I recently failed to inject a managed bean into another bean that I was writing and for the life of me I couldn’t see what I’d done wrong. As is often the case it’s the little things that trip us up and in this case I was so used to doing it I couldn’t see…

  • UIInstructions cannot be cast

    I f, like me, you are getting an error message along the lines of “UIInstructions cannot be cast to org.primefaces.model.menu.MenuElement” you are in luck because here’s the answer.

  • JavaEE 7 – A First Look

    Now that JavaEE 7 is out of the starting blocks and running free I thought I’d have a first look. I decided that as I’ve not had a look at the JavaEE tutorial for a while I’d work my way through it as both a refresher and to find out about the new API’s available.…

  • PrimeFaces p:fileUpload not Appearing

    I hit this issue with the PrimeFaces p:fileUpload component this morning and it had me going for about an hour until I figured out what was wrong. A good googling shows that more than a few people have hit this problem but no one had reported a solution, there was even a bug report closed…

  • Hudson Hell Part 2

    Just when I think that I’ve got everything working I hit another issue. This time it’s with Subversion. I’m trying to create a new job so I select Subversion under the SCM section and enter the appropriate URL. Hudson tells me that I need to enter credentials so I click the link which takes me…

  • Tomcat Service Fails to Start

    I’ve run more Tomcat services than I care to think about and I reckon I’ve probably seen just about every different way they can fail now. The failure mode I describe here seems to catch me out every time though so I thought I’d write it up so everyone can benefit from my pain.

  • Using a Java Web Service Hosted Behind Apache

    I recently set up a new system running most of the software my business produces. Unlike our other sites right from the beginning all of Java servers (a mixture of Tomcat and GlassFish) will be access via Apache using Apache Tomcat Connector mod_jk. Typically we start of will one server and add Apache in later but…

  • Providing EL Access for Beans

    There are a lot of good ideas in JEE but there are also some sharp corners that the unwary developer could hurt themselves on. Over the next few articles I’m going to point out a few of these less than brilliant pieces of design so that hopefully you’ll be able to avoid them. This article…

  • MySQL JDBC Connection Pool in GlassFish

    Creating a connection pool should be a simple and straight forward task in an application server but sometimes it just becomes unnecessarily difficult. That is completely true for creating MySQL connections pools in all versions of GlassFish from 3 onwards.