Java

JBoss/JAAS Configuration Error: Encountered "<?xml" at line 1, column 1

Recently, I upgraded my JBoss installation to 4.2.3.GA and encountered problems with my existing login configuration files.

The following error was generated on server startup:

JDBC, JAAS and JMS Configuration in JBoss 4.0.x

Recently I have begun work on a J2EE contract. The contract is for an existing application targeted to IBM Websphere. I was given the source code to the application and none of the container configuration files. In my case, I plan to develop using JBoss 4.0.x and as such needed to configure the resources needed by the application.

I encountered a few problems on the way and thought I would post the steps I did, some of the problems I encountered, and the solutions to them.

In this case, the application consists of:

  • WAR file containing web application

JNDI Datasource with GWT Embedded Tomcat Server

Recently, I start playing around with GWT (Google Web Toolkit) and started converting over one of my JSP applications. I make use of JNDI datasources in my servlets and did not want to re-code my server logic to use DriverManager.getConnection() just for testing purposes.

After messing around I bit, I figured out how to get JNDI datasources working with the embedded Tomcat server that ships with GWT.

All path names below are relative to your project directory.

In tomcat/conf/gwt/localhost, add a ROOT.XML file, containing your datasource resource:

JavaDocs in HTML Help Format

With the recent release of J2SE 6, the first thing I always do is get the documentation in a more usable format.

It drives me nuts browsing javadocs inside a browser. A great resource I found on the web is Franck Allimant’s site. He maintains downloads to Javadocs for the all major releases of the JDK in Microsoft’s HTML Help format (.chm).

http://www.allimant.org/javadoc/index.php

Syndicate content