taglib directive is:
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
Thursday, 19 November 2009
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.
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:
http://download.java.net/maven/1/
To use this in your pom file:
<repositories>
<repository>
<id>java.net</id>
<name>Java.Net Repository</name>
<url>http://download.java.net/maven/1//</url>
<!-- Maven 1 layout -->
<layout>legacy</layout>
</repository>
</repositories>
then:
<dependency>
<groupId>javaee</groupId>
<artifactId>javaee-api</artifactId>
<version>5</version>
<scope>provided</scope>
</dependency>
http://download.java.net/maven/1/
To use this in your pom file:
<repositories>
<repository>
<id>java.net</id>
<name>Java.Net Repository</name>
<url>http://download.java.net/maven/1//</url>
<!-- Maven 1 layout -->
<layout>legacy</layout>
</repository>
</repositories>
then:
<dependency>
<groupId>javaee</groupId>
<artifactId>javaee-api</artifactId>
<version>5</version>
<scope>provided</scope>
</dependency>
Java EE Jars in Java.Net Maven 2 Repository!
http://download.java.net/maven/2/javax/javaee-api/6.0-SNAPSHOT/
At last in a 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"
xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<jxb:globalBindings>
<jxb:serializable/>
</jxb:globalBindings>
</jxb:bindings>
Maven snippet:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxb2-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>xjc</goal>
</goals>
</execution>
</executions>
<configuration>
<packagename>my.package.name</packagename>
<outputdirectory>${basedir}/src/main/generated-source</outputdirectory>
<bindingFiles>bindings.xjb</bindingFiles>
</configuration>
</plugin>
<jxb:bindings version="1.0"
xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<jxb:globalBindings>
<jxb:serializable/>
</jxb:globalBindings>
</jxb:bindings>
Maven snippet:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxb2-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>xjc</goal>
</goals>
</execution>
</executions>
<configuration>
<packagename>my.package.name</packagename>
<outputdirectory>${basedir}/src/main/generated-source</outputdirectory>
<bindingFiles>bindings.xjb</bindingFiles>
</configuration>
</plugin>
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}
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
Hi,
If you get either of these errors:
Failed to create a new SAX parser
or
[XMLLoginConfigImpl] End loadConfig, failed to load config: login-config.xml
org.jboss.security.auth.login.ParseException: 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:
xml-apis.jar
xercesImpl.jar
xalan.jar
If you get either of these errors:
Failed to create a new SAX parser
or
[XMLLoginConfigImpl] End loadConfig, failed to load config: login-config.xml
org.jboss.security.auth.login.ParseException: 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:
xml-apis.jar
xercesImpl.jar
xalan.jar
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!
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!
Subscribe to:
Posts (Atom)
Links
Buckinghamshire Wedding Photographer
Testing Testing 123