Archive for August, 2008

Ant and the Bug

Took the morning out to explore the spring in my machine. After having the Java_home, path set for Tomcat, it was time for ANT.

For some reason the ant was killing my build. Every time I went

C:\Documents and Settings\MyaccountFolder\workspace\springapp > ant
Or,
C:\Documents and Settings\MyaccountFolder\workspace\springapp > ant -verbose build

I would receive detail error that would go like this..

Buildfile: C:\Documents and Settings\MyaccountFolder\workspace\springapp\build.xml

BUILD FAILED
C:\Documents and Settings\MyaccountFolder\workspace\springapp\build.xml:85: C:\Documents and Settings\MyaccountFolder\Tomcat\lib not found.

But my Tomcat was not inside my C:\Documents and Settings\MyaccountFolder
I have even set a TOMCAT_HOME to C:\Tomcat.

Later I was inspecting the build.xml file and build.properties xml. I have copy-pasted it from tutorial.
The only thing I changed was shown here..

# Ant properties for building the springapp
appserver.home=${user.home}/apache-tomcat-6.0.14 /Tomcat
# for Tomcat 5 use $appserver.home}/server/lib
# for Tomcat 6 use $appserver.home}/lib
appserver.lib=${appserver.home}/lib
deploy.path=${appserver.home}/webapps
tomcat.manager.url=http://localhost:8080/manager
tomcat.manager.username=tomcat
tomcat.manager.password=s3cret

I guessed the user.home had something to do with it. so i modified it to be ..

user.home = C:
# Ant properties for building the springapp
appserver.home=${user.home}/Tomcat
# for Tomcat 5 use $appserver.home}/server/lib

Hoping the {user.home} can be overridden .. and on retry with “ant -verbose build” i got:

Override ignored for property “user.home”

This was getting on my nerves.. so I ripped off my decent attitude and hard coded the path..
Voila! that was it!

# Ant properties for building the springapp
appserver.home=C:/Tomcat

======================================

Btw, if you are facing similar issue try this forum post..

http://forums.sun.com/thread.jspa?forumID=45&threadID=5148390

======================================

Today I had a pure blond moment : when asked about DNS I replied ” something to do with database..” my sup said, “What?”, i enforced my reply saying, “Isn’t it something that use to refer to database”? Lolz.. ( shouldn’t have been thinking too much in to Ant)

He was reading about DNS protocol and the new bug that has been posing question whether the entire protocal should be re-written or not. DNS version 2.  Read more about bug..

Leave a Comment

Episode : Lost and Found

There is a big basement sale going on in the Queen Victoria Market. I am not a great shopping enthusiast, but I did need some utensils, so on Thursday night we took a walk across the basement. It was nice, we had a bite to eat at TGV’s fast food section, browsed through some bags and later joined the shopping frenzy at the basement.

Until we had to head back and I had to look for my small black purse, I had no clue that it dropped out of my pocket! ( Talk about being clueless! hehehehehe..) So we rushed back trailing on the breadcrumbs..

After chasing all the way back to the fast food court, we got hold of security people who had “I know what you lost an hour ago” smile in their face. Rest is a slow walk and reaching to the security office where I found my small black purse!

Of course I got a comment from my Hubby ( which I mistakenly comprehended to be a compliment! ).
He said, “you bring adventures to my life!” It was the most sweet thing if he was smiling.. but he wasn’t. I have taken a personal note of Never sticking my purse in my pocket ever again!

Special thanks to great security that are enforced in Sydney city and around it. It feels strage to be that safe for people like me. Anyway, Keep the great work up, guys!

Comments (2)