Serving static external content in JBoss

To serve external static content in JBoss you need to add a Context element mapping the url eg. /application/test_data to the external folder as follows: Edit /server/default/deploy/jbossweb-tomcat50.sar/server.xml and add a Context element just under the host tag. Replace C:/test_data with the path to the folder on the server. Redeploy the …

Icefaces link issue in Seam – missing dataModel

The problem is: We have a list of objects (we’ll call them Cars) displayed as results from a search in a seam web application. This is displayed as rows, iterating through the results to reference thisCar for the current result in each row. We want to be able to select …

Use a different compiler with ant’s javac task

To ignore the JAVA_HOME settings and specify the compiler to use in ant’s javac task set the following properties: build.properties: # Set the jdk compiler properties build.javac.executable=C:/Applications/Java/jdk1.5.0_13/bin/javac.exe build.javac.compiler=javac1.5 Then in the build script use: