Sunday, September 11, 2011

Time waste on diagnosing my tomcat

I have my tomcat setup in my desktop PC and JDK is ready to be call. Anyhow I am not able to wake up my tomcat. Checking out the catalina.log showing me the following error:
blah blah blah missing "("
I have spend half of my day diagnosing this problem, I found out that the java, javac, any other binary inside my JDK/bin are not able to execute. Digging into the DuckDuckGo, found out that I have install the 64bit JDK in my PC (my PC is running in 32bit). My bad :p

Joke of the day


This joke is cheering up my day. :o)

Saturday, September 10, 2011

Using DuckDuckGo search engine

Today, I am not using Google because I'm trying duckduckgo search engine. I was so surprise on the search result because I feel more comfortable on the result than Google. I doesn't mean Google doesn't do its job. Let's start the test:
How to start JSP page?
My intention of this question is to ask the expert on how could I write a JSP code and then render it on the web browser.

I ask Google, RoseIndia tutorial is return in the 1st entry of the list. This page is giving a tutorial on writing the JSP code, the require server in order to run the JSP, the tool need to build a JSP, but it doesn't teach on how to upload the JSP into a server.

I ask DuckDuckGo, DeniWeb forum is return in the 1st entry of the list. This page returning a search result of a forum. That guy asking the same question as mine. Not exactly the word but have the same meaning of mine. This page doesn't show the exact result of my search, but the answer reply from the thread already provide me the clue for my search.

To conclude my investigation, I found out that the result return from DuckDuckGo are more focus on discussion forum search. Whereas Google are more focus on the resource search. Another good thing about DuckDuckGo is the search page is auto load when reach to the end of the page and support keystroke interaction too. ;)

What is inside the Web App?

It has been a hard time for me in last week to figure out what is inside Web Application Archive, so called WAR. I was really stressing myself in building this shit using pure ANT script. Basically this file consist of two main portion, the 1st portion storing the JSP file, whereas the 2nd portion is the WEB-INF directory. Now the interesting one, WEB-INF must contain classes (containing the compile binary of java code), lib (containing third party jar file, usually only jar), and web.xml (I don't really bother what the heck is this).