Monday Dec 11, 2006

Java SE 6 released.....

It's arrived in time for the holiday's. Java Standard Edition 6 which I have been using since last summer in beta is finished.

Check out the announcement
- New Java SE 6 platform with full support from NetBeans IDE 5.5

- Java MultiPlatform Support (JMP) Offering: mission critical Java production support for site wide coverage of Java applications on Solaris, Linux, and Windows.

- New online training course, "New Features in the Java SE 6 Platform": brings developers quickly up to speed on how to get the most out of this latest release.

And as previously announced, the source....

Get the Source

Tuesday Oct 31, 2006

It's arrived...... (Netbeans 5.5), Identity Developers Rejoice!

NetBeans IDE 5.5 is now available.
Get it here:

I have been using Netbeans 5.5 since the first beta release. I have never been a IDE guy, usually reverting to 'vi', but NetBeans has been very helpful in the past year on several projects and now I prefer to use it for development. CVS integration is much easier to configure than previous releases in my experience. I have been working on multiple identity related projects in NetBeans which leverage our provisioning and Access Management products.

The Sun Identity Management suite is now very tightly integrated with NetBeans as a development environment. The Netbeans Enterprise Pack includes Access Manager 7.1, and the just released Identity Manager 7 provisioning and auditing product now includes a NetBeans module for development.


Sunday Oct 29, 2006

Adventures in Deploying Creator app to Tomcat

First let me say that this issue could have been completely avoided by using Sun's Application Server. For reasons beyond my control, I had to deploy an application written with Java Studio Creator 2 to Tomcat on Windows. I hope this information saves someone else some time..

Here are the product instructions: Sun Java Studio Creator 2 Update 1 – Online Help Deployment Example: Tomcat

This application uses a database which requires a datasource to be defined for the application server, and a fererence to the datasource in the applications web.xml file (Creator puts this there automatically). I have been successfully deploying this application onto linux and Solaris on both Sun Application Server and Tomcat without any major problems. In fact after simply creating a Tomcat JNDI datasource, it worked perfectly. On Tomcat Linux (Ubuntu 6.06 and Tomcat 5.5.17), all I had to do to create a datasource was add the following to the <tomcatroot>/conf/context.xml:
<Resource name="jdbc/hrlite" auth="Container"

    type="javax.sql.DataSource" username="hradmin" password="hradmin"

    driverClassName="" url="jdbc:mysql://localhost/hrlite"

    maxActive="8" maxIdle="4"/>

The trouble came when trying to deploy to a Windows Tomcat 5.5 server. The above technique for creating a datasource did not work for me. Also, JSF will not run on the Windows flavor of Tomcat without adding a listener to the web.xml file in your application, so the application would not even start. This is manifested by a Null Pointer Exception on FacesServlet.init when accessing the application . This was resolved after adding the following to the application web.xml file:


Once the faces listener was added to my application's web.xml file, the creator came up, but when I went to a page in the application which used a datasource, I recieved an error from the RowSetReader. The datasource was clearly not being found.

So I attempted to add the database connection pool datasource as described in the Tomcat docs. The Apache Jakarta Tomcat 5 Servlet/JSP Container

I tried many variations and could not get past this issue. I did find many other people with similar problems and a lot of misinformation. But untimately, I resolved my issue by removing Tomcat 5.5.20 and installing Tomcat 5.0.28 since the docs for Tomcat 5.5 datasource appear to be outdated, and I may have been experiencing a bug. In any event, here is the final solution which is now working for me for creating a datasource in Tomcat 5.0 on Windows.

Add the datasource to the <tomcathome>\\conf\\server.xml

I added the following near the end of the file, right before the closing Host tag (</Host>)

<Context path="/hrlite" docBase="hrlite"
        debug="5" reloadable="true" crossContext="true">

  <Logger className="org.apache.catalina.logger.FileLogger"
             prefix="localhost_DBTest_log." suffix=".txt"

  <Resource name="jdbc/hrlite"

  <ResourceParams name="jdbc/hrlite">

    <!-- Maximum number of dB connections in pool. Make sure you
         configure your mysqld max_connections large enough to handle
         all of your db connections. Set to 0 for no limit.

    <!-- Maximum number of idle dB connections to retain in pool.
         Set to -1 for no limit.  See also the DBCP documentation on this
         and the minEvictableIdleTimeMillis configuration parameter.

    <!-- Maximum time to wait for a dB connection to become available
         in ms, in this example 10 seconds. An Exception is thrown if
         this timeout is exceeded.  Set to -1 to wait indefinitely.

    <!-- MySQL dB username and password for dB connections  -->

    <!-- Class name for the old mm.mysql JDBC driver - uncomment this entry and comment next
         if you want to use this driver - we recommend using Connector/J though

    <!-- Class name for the official MySQL Connector/J driver 

    <!-- The JDBC connection url for connecting to your MySQL dB.
         The autoReconnect=true argument to the url makes sure that the
         mm.mysql JDBC Driver will automatically reconnect if mysqld closed the
         connection.  mysqld by default closes idle connections after 8 hours.

Here are a few links which I found along the journey.

Tags: ,

Friday May 20, 2005

Java Bling Bling - Blast From the Past

One Ring to rule them all

Of course the java ring is a bit of a novelty, but when it was first released, it was a very cool technology demonstration. I'm of course referring to the Java Ring from Dallas Semiconductor

I used the ring at custom demonstrations as a give away many years back. People would register at the event and get a free java ring. Then it would be used to associate their identity securely with a door prize giveaway during the event. After a random drawing, the winner would come up and 'insert' the java ring into a reader and a java app would validate that they are the winner. They would then get the real prize, like the coveted leather Java Jacket. For a picture of this and other java memorabilia
I still have several left over java rings and keep one on my desk. The picture above is me fidgeting with my ring, which I find myself subconsiouly doing from time to time as a stress reliever (ever since my squishy stress relief sphere burst).

My prized Java T-shirt

I'm not sure there is a market for this sort of thing on eBay (especially for a tattered specimen after years of use, even if there was, I could not part with it), but I was an contestant in the first Java Cup International and even though I had a lame submission (a psuedo 3D java maze game applet), I recieved a t-shirt (as did all other entrants).

You might ask (and rightly so) why are you posting such old stuff? The reason is I was reading the tech news and I ran across something that did not make sense to me: SAP "Moving Faster Than Java Was 10 Years Ago," Says Agassi

Talk about "apples to oranges", or as a Sun colleague of mine recently quoted "apples to eggplants" (for a different topic). But I would have to ask, If they think they have anywhere near the momentum tha Java had 10 years ago, do they have anything like:
I started using Java 10 years ago and a few years later, I was so impressed that I joined Sun. I certainly agree that SAP has some great products and is a strong Sun partner. But needless to say, I don't plan to join SAP in the near future. So on a personal note, for me, they don't have the momentum Java had 10 years ago.




« July 2016