Monday, May 21, 2012

Problem with Glassfish

When I installed Eclipse for EE developers and Glassfish v3. The IDE detected the server and registered it, but when it comes to run the applications I get the following error message:

GlassFish v3 requires a JDK 1.6 and not a JRE. Please add/select the correct JDK in the Server properties 'Runtime Environment' section.


Then I do research for this problem I find because I am using a new computer so I forgot to install JDK on my computer then I fix the problem by:



  1.  grab just the jdk fromhttp://java.sun.com/javase/downloads/index.jsp
  2.  This is where the error message kinda foobars ya... 
    - Get eclipse started, ignore the message. 
    - Go to Window>Preferences 
    - Then under +Java+Installed JREs hit Add.
    - Select 'Standard VM' then Next
    - JRE Home = C:\Program Files\Java\jdk1.6.XXXX the rest should fill in automagically. Hit Finish.
    - MOST IMPORTANT!!! Click the check box back in the Preferences Window for the new jdk runtime...I don't know why it's necessary, but it definitely is..

Continuing work

After last meeting I am focusing on how to implement glassfish with Eclipse:

There are some helpful links:

http://glassfishplugins.java.net/eclipse36/
http://www.youtube.com/watch?v=9Kf5m7bMu74


Friday, May 4, 2012

Project Meeting for first demo

Today we had a first Demo after Dr.ShiPing Chen came back from oversea.


For back-end system I showed Dr.ShiPing Chen how can I use the JDBC to create TPC-C tables and how to automatically generate input data with given warehouse number. This is working very good for MySQL database. 


However create table format for each database platform are different so this code can only work for MySQL database platform. After everything working fine with MySQL we may improve the code later on so it can work in other database platform as well (for example sql server, Oracle...)


Also I showed him 5 main transactions as well, each one is done by following the transaction's specification and I did unit testing for every single function which I had created in order to make sure functions are working as it is intended. However I did not do the unit test for the hold transaction so I will to test it and show him next time. 


For next following weeks I need to put 5 transactions into glassfish container so it can allow simulate users to access my function concurrently.


Before I didn't learn anything relate to glassfish and the EJB things so I think this will be a big challenge for me and need taking time to learn it.