Thursday, 19 November 2009

Weblogic 10 JSTL 1.2

taglib directive is:

<%@ taglib uri="" prefix="c" %>

EJB 3 JNDI Names

What is the default EJB JNDI name in JBoss?

If the application is deployed in a EAR file, the default JNDI name is the EAR-FILE-BASE-NAME/EJB-CLASS-NAME/local for the stub for local interface. For the remote interface (see below), it is EAR-FILE-BASE-NAME/EJB-CLASS-NAME/remote.

If the bean is deployed in a JAR file, the JNDI names are EJB-CLASS-NAME/local and EJB-CLASS-NAME/remote.

javaee.jar Maven 2

The Java 5 EE API jar file is available in the Java.Net repository here:

To use this in your pom file:

<name>Java.Net Repository</name>
<!-- Maven 1 layout -->



Java EE Jars in Java.Net Maven 2 Repository!

At last in a maven 2 repository!

Monday, 16 November 2009

Maven 2 Jaxb 2 Generated Serializable Classes

If using maven, place the bindings.xjb in src/main/xjb.

<jxb:bindings version="1.0"



Maven snippet:


Thursday, 29 October 2009

Selenium Javascript JQuery UI TreeView

I had an issue today where the tree component of JQuery UI appears to render an additional div element if working in Firefox rather than IE.

This broke my selenium ide test as I could not click on the expandable.

Cut a long story short, here is a snippet of selenium IDE javascript code to get around the problem, but it also demonstrates nicely a function nested within a selenium IDE statement ( I could not find any other sample elsewhere). I hace used bar | symbol to denote split of column values in selenium IDE add-on.

storeElementPresent | //li[@id='1']/div | expandableDivPresent

echo | ${expandableDivPresent}

storeEval | function go() { if (${expandableDivPresent}) { return "//li[@id='1']/div"; } else { return "//li[@id='1']"; } }; go(); | expandableElementXPath

echo | ${expandableElementXPath}
click | ${expandableElementXPath}

Friday, 17 July 2009

Cryptic JBoss Exceptions


If you get either of these errors:

Failed to create a new SAX parser


[XMLLoginConfigImpl] End loadConfig, failed to load config: login-config.xml Encountered "
Chances are this is a jar compatibility issue. Take your war file and remove
candidate jar files that are in your war, but that JBoss already has on its classpath, such as:


Monday, 11 May 2009

Changing Background Colour in Joomla 1.5

I am using the default template rhuk_milkyway and I had changed the background colour via the drop downs to green.

I wanted a slightly different shade of green to the default so I edited the CSS in the template, located CSS file green_bg.css and modified the background value to what I wanted. It worked first time for me!