A way to keep track of blogs I'm interested in.

8:58 AM / Comments (3) / by Kevin Vu

There are many free and good RSS Reader out there such as NewszCrawler, FeedDemon, Bloglines, etc. (more ...) but I like Google Reader. It has a simple, clean interface, easy to manage and the best part is I can just use my existing gmail account to login and don't have to register a new account for a new service.

1. Login to Google Reader: http://reader.google.com
javascript:void(0)
2. Click on Add A Subscription on the left panel -> Paste a feed URL(like below)-> Click Add

list of my fellows WTP Blogs:
Peter Liu: http://pliu.wordpress.com/
Jatinder Singh: http://jsinghfoss.wordpress.com/
Jian Feng Allen Xie: http://www.heyqule.net/blog/cat/oss
John Dang: http://jdeport.wordpress.com/
Nabeel Khan: http://opensourceproject.wordpress.com/
Tommy Lo: http://tlo5.blogspot.com/
Kevin Vu: http://kvuhome.blogspot.com/
Jesse Valianes: http://jvalianes.blogspot.com/



NOTE: I can take note in my reader, Add Star to keep track of interested Post, etc.

Reproduce Eclipse WTP Bug240698 - Severity Normal - Priority P3

11:44 PM / Comments (1) / by Kevin Vu

After hours of searching, I finally decided to work on Bug240698

STEPS TO REPRODUCE:

1. Run Eclipse WTP -> Change Perspective to JavaEE.

2. Right-Click on Server Tab -> New -> Server


3. Select Apache Tomcat 6.0 -> Click Next button


4. Browse to select your Tomcat Directory -> Click Finish


5. Press F3 to open Server editor

OR Right-Click on Tomcat Server -> Select Open


6. Make modification (change anything or just modify like below) BUT DO NOT SAVE


7. Right-Click on Tomcat Server -> Start


8. WTP prompt to Save Resource -> press No -> Dialog dismissed BUT REAPPEAR AGAIN (BUG) -> press No again -> Dialog permanently dismissed




Note: BUG doesn't occur if Yes or Cancel is pressed when Save Resource first prompt.

Observed: On the second prompt if Yes is pressed, modification will be saved.

Class Demo

12:08 PM / Comments (2) / by Kevin Vu

Hello, I'm in class right now ...;.

Reproducing Eclipse WTP Bug#: 173912

9:33 PM / Comments (2) / by Kevin Vu

This is my first time I try to reproduce an Eclipse WTP Bug and It was successfully reproduced the same just as Ian He, the reporter, reported.




Steps To Reproduce: (Bug#: 173912)
1. Create a dynamic web app named app1. Aim it at an APP server.
2. Create a class, com.whatever.MyClass, add the following methid, and save and
close.
public String getGreeting() {
return "Number one!";
}
3. Create a JSP, index.jsp, in the project's Web Content folder. Add the
following use bean directive just before the "META" tags:
<jsp:useBean id="bean" class="com.whatever.MyClass"
type="com.whatever.MyClass"></jsp:useBean>
Add the following expression in the BODY:
<p><%=bean.getGreeting()%></P>
4. Create a nother dynamic web project named app2.
5. Create a jsp index.jsp in app2 and also create com.whatever.MyClass and
change "Number one!" to "Number two!".
6. Set a breakpoint on the bean expression in app2's index.jsp.
7. Add both projects to the server.
8. Restart the server in debug mode.
9. Run app2's index.jsp on the server.
10. When the breakpoint is hit, select "bean" in the Variables view in the
debugger. Do <context menu>-->Open declared type. The Java editor will open,
but on app1's com.whatever.MyClass.

Revolution OS

10:16 PM / Comments (1) / by Kevin Vu

I've just finished watching this documentary. Very Interesting, entertain and informative. The pace is quick, make the 85 minutes time length went fast. Give you a good understanding about Linux and Open Source movements. Linus Torvalds, Richard Stallmans, Eric Raymond, etc. , those guys are so devoted and just so awesome with their passions and intelligences.

You can watch the video online here: Revolution OS

How to Install Apache Tomcat

7:15 PM / Comments (13) / by Kevin Vu

PART 01: INSTALLING APACHE TOMCAT 6.0.18
1/ Go to Tomcat Download site: http://tomcat.apache.org/download-60.cgi
2/ Look for 6.0.18->Binary Distributions->Core. Download and save the zip file (apache-tomcat-6.0.18.zip) to C:\ drive
3/ Extract the zip file to have C:\apache-tomcat-6.0.18\
4/ Rename folder “apache-tomcat-6.0.18” to “Apache
5/ Copy the following JAR files from apache lib folder (C:\Apache\lib\) to JDK's jre\lib\ext\ folder(C:\Program Files\Java\jdk1.6.0_11\jre\lib\ext\)
servlet-api.jar
jsp-api.jar
el-api.jar
tomcat-dhcp.jar

Note: Those 4 files above contains Java classes that need to be available to the JDK and JRE when you develop servlets and JSPs.

PART 02: SETTING JAVA_HOME ENVIRONMENT VARIABLE
1/ Browse to C:\Apache\bin\. Right click on “catalina.bat” and choose Edit
2/ Look for the following lines:
rem $Id: catalina.bat 656834 2008-05-15 21:04:04Z markt $
rem ---------------------------------------------------------------------------

rem Guess CATALINA_HOME if not defined
set CURRENT_DIR=%cd%

3/ Add this line: set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_11\ in between like below:
rem $Id: catalina.bat 656834 2008-05-15 21:04:04Z markt $
rem ---------------------------------------------------------------------------
set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_11\
rem Guess CATALINA_HOME if not defined
set CURRENT_DIR=%cd%

4/ Save and close catalina.bat file.

PART 03: STARTING TOMCAT
1/ Open the command prompt (Start->Run->Type in cmd->click OK)
2/ Use DOS command (cd \Apache\bin) to navigate to C:\Apache\bin
3/ Type “startup” and hit enter. Tomcat will start and a Tomcat window will appear.

PART 04: STOPPING TOMCAT
Close the Tomcat window or type “shutdow” (C:\Apache\bin\shutdown) and hit enter at the DOS command prompt.

PART 05: TESTING TOMCAT
1/ Start Tomcat.
2/ Open your web browser.
3/ You can test the following addresses with your web browser:
http://localhost:8080/
http://localhost:8080/examples/servlets/
http://localhost:8080/examples/jsp/

Test Message

8:53 PM / Comments (1) / by Kevin Vu

Testing 1-2-3

WTP Getting Started!

6:31 PM / Comments (1) / by Kevin Vu

Finally I have finished registering and setting up all my pages and software. It was fun bookmarking and keeping track all my accounts :D. I'm really eager to dig into WTP Project right now but, I think, It would be best if I spend this week reviewing and sharpening my Java skills. Long break sure made me slow :(.