Building the bundles:
To build Jboss Web native libraries you need to download the sources from http://labs.jboss.com/jbossweb/downloads/.
Use tar to extract the sources.
To build you only need to run the buildworld.sh script for example:
cd jboss-native-2.0.0-src; bash build.sh
That should create a tar file in the output subdirectory.
To install just extract it in the home directory of your Jboss Web installation. For example:
tar zxvf /home/user/TMP/jboss-native-2.0.5-src-ssl/output/jboss-native-2.0.5-linux2-x64.tar.gz
notes:
You need a gnu tar and a C compiler. On Solaris you need the C compiler of SunStudio. (/opt/SUNWspro/bin/cc)
The *.so files aren't in the bin/native but in something like bin/META-INF/lib/linux2/x64/.
The *.so files could be moved in bin/native to restore the previous versions behaviour.
Building just the dynamic library:
To build just the tc-native dynamic library download and extract the sources as above.
Change to the native library sources for example:
cd jboss-native-2.0.5-src-ssl/srclib/tomcat-native-1.1.15
Configure using apr-config location:
./configure --with-apr=/usr/bin/apr-1-config
Make and install:
make && sudo make install
edit the bin/setenv.sh on jbossweb install directory and add something like:
LD_LIBRARY_PATH=/usr/local/apr/lib/ export LD_LIBRARY_PATH
Note that in a lot platforms the package tomcat-native could be with jbossweb, for example in fedora9 use yum to install:
yum install tomcat-native
Comments