Monday, April 17, 2006

building Axis 2 locally

steps to get the Axis 2 build in GNU/Linux env
----------------------------------------------

download the source from svn repo
$ svn co http://svn.apache.org/repos/asf/webservices/axis2/trunk/java axis2/

get maven installed in the local env
download maven 1.0.2 tar ball and extract that
get the env valiables set MAVEN_HOME and add MAVEN_HOME/bin to the path
u should create the local repo also and then i ll wornt download those jars at the 2 time
$MAVEN_HOME/bin/install_repo.sh $HOME/.maven/repository

check the maven working - source the .bash_profile and then maven

go to the axis2 home and then maven
this will get all the jars nessesary and build axis
thats it :)

Wednesday, April 05, 2006

Apache Portable Runtime and Tomcat

The Apache Portable Runtime is a highly portable library that is at the heart of Apache HTTP Server 2.x.APR has many uses, including access to advanced IO functionality (such as sendfile, epoll and OpenSSL), OS level functionality (random number generation, system status, etc), and native process handling (shared memory, NT pipes and Unix sockets).

APR support requires three main native components to be installed:

  • APR library
  • JNI wrappers for APR used by Tomcat (libtcnative)
  • OpenSSL libraries
wrapper library sources are located in the Tomcat binary bundle.The file is in the bin/tomcat-native.tar.gz . Once the build environment is installed and the source archive is extracted, the wrapper library can be compiled using (from the folder containing the configure script):
./configure && make && make install

First I need to install the APR on my local machine

that I needed to downlod the APR and the APR util in to the same machine and install it in th /usr/local/apr then I compiled the native code of the comcat then that succeed

./configure --with-apr=/usr/local/apr/
make clean && make && make install
-------------------------------------------------------------------------------------------
Check wether the tomcat uses this APR in their process -

then at this java.library.path it search as
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /home/sandakith/software/jdk1.5.0_06/jre/lib/i386/client:/home/sandakith/software/jdk1.5.0_06/jre/lib/i386:/home/sandakith/software/jdk1.5.0_06/jre/../lib/i386

Then what needed to be done is to include those created libs at /usr/local/apr/lib to the one of the location that it complains that it can not find that

other way is that you can edit the java,library.path - still not done:)
Then that thing in the catalina.out will not be visible and it will optimize the performance using this native libraries

Tuesday, April 04, 2006

All about Acronyms

ASAIK - As Far As I Know
PITA - Pain In The A*

The Microsoft Stress Balls

wso2 had this balls called "stress balls", which we used to play with. These are originally bought from the microsoft itself, by guys who went there. Thilina bought some balls when he arrived in wso2. And there was this "one ball" which was vety flexible and whoever though it feels like to tough it again. Our Apache C team most of the time hold that in their hands when ever they feel any kind of stress. So i got use to this ball and my god one time that ball just explode in my hand and the stuff insode jumped out. O Ow the stuff insode came out and jump in to one of my little friend here who was doing his training. So it was a nightmare to remove all stickey thing from the poor fellow's cloths. It took about 20 mins to wash and dry them. So thasts it, never touch these so called microsoft balls. Never Ever.

One thing is sure.

we came to know how Mr Bill release his stress ;)