How to start Apache Tomcat with SAP JCo on Linux
One of the most web application server in open source community is Apache Tomcat. The latest stable version is 5.5.20. It is possible to develop a web application that tightly interfaces to SAP R/3 or its components via SAP JCo aka SAP Java Connector. Its latest version is 2.1.7. It is a little bit tricky to run SAP JCo inside Apache Tomcat on Linux.
In this howto, I assume that:
- Linux distribution Ubuntu Edgy Eft 6.10
- Apache Tomcat 5.5.20 installed at
/opt/tomcat - SAP JCo 2.1.7 installed at
/opt/sapjco
Make sure that the native shared libraries in /opt/sapjco are loadable by
running ldd to verify dependencies.
$ ldd /opt/sapjco/librfccm.so
linux-gate.so.1 => (0xffffe000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7a04000)
librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0xb79fb000)
libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb79e7000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb78b3000)
libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3 (0xb786b000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7845000)
/lib/ld-linux.so.2 (0x80000000)
If you get like above, you are lucky. In some cases, you might get something like below.
libstdc++-libc6.2-2.so.3 => not found
It is clearly you don't have libstdc++-libc6.2-2.so.3. You may install
libstdc++2.10-glibc2.2 to resolve this dependency.
sudo apt-get install libstdc++2.10-glibc2.2
Next is to try the same at libsapjcorfc.so.
$ ldd /opt/sapjco/libsapjcorfc.so
linux-gate.so.1 => (0xffffe000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7b97000)
librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0xb7b8e000)
librfccm.so => not found
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7a59000)
libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3 (0xb7a11000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb79eb000)
/lib/ld-linux.so.2 (0x80000000)
libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb79d8000)
You may get not found for librfccm.so. Try to set LD_LIBRARY_PATH to
see it help or not.
$ LD_LIBRARY_PATH=/opt/sapjco ldd /opt/sapjco/libsapjcorfc.so
linux-gate.so.1 => (0xffffe000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7c39000)
librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0xb7c30000)
librfccm.so => /opt/sapjco/librfccm.so (0xb76ea000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb75b6000)
libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3 (0xb756e000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7548000)
/lib/ld-linux.so.2 (0x80000000)
libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7535000)
Hooray! It works. This is a good signal. So you just to have a wrapper script to start and stop Tomcat correctly.
#!/bin/sh
JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun-1.5.0.08/jre
TOMCAT_HOME=/opt/tomcat
SAPJCO_HOME=/opt/sapjco
LD_LIBRARY_PATH=$SAPJCO_HOME
export JAVA_HOME TOMCAT_HOME LD_LIBRARY_PATH
case "$1" in
start)
$TOMCAT_HOME/bin/startup.sh
;;
stop)
$TOMCAT_HOME/bin/shutdown.sh
;;
esac
The idea is very easy. You need to add /opt/sapjco to LD_LIBRARY_PATH.
If you copied them to /usr/lib, you don't need this wrapper. Using above
script is as follows (assuming that the script named tomcat.
To start:
tomcat start
To shutdown:
tomcat stop
- sugree's blog
- 2118 reads

情趣用品,情趣用品,情
情趣用品,情趣用品,情趣用品,情趣用品,情趣用品,情趣,情趣,情趣,情趣,情人歡愉用品,情惑用品性哥,情人用品性哥,情趣用品,AIO交友愛情館,情人歡愉用品,美女視訊,情色交友,情人用品性哥,視訊交友,辣妹視訊,美女交友,性愛,嘟嘟成人網,按摩棒,震動按摩棒,微調按摩棒,情趣按摩棒,逼真按摩棒,G點,跳蛋,跳蛋,跳蛋,性感內衣,飛機杯,充氣娃娃,情趣娃娃,角色扮演,性感睡衣,後庭區,SM,潤滑液,情趣禮物,威而柔,香水,精油,芳香精油,自慰,自慰套,性感吊帶襪,情趣用品加盟,情人節禮物,情人節,吊帶襪,辣妹視訊,美女交友,情色交友,成人交友,視訊聊天室,美女視訊,視訊美女,情色視訊,免費視訊聊天,視訊交友,視訊聊天,AIO交友愛情館,嘟嘟成人網,成人貼圖,成人網站,AIO交友愛情館,情色,情色貼圖,情色文學,情色交友,色情聊天室,色情小說,七夕情人節,色情,A片,A片下載,免費A片,免費A片下載,情色視訊,情色電影,色情網站,辣妹視訊,視訊聊天室,情色視訊,免費視訊聊天,視訊聊天,美女視訊,視訊美女,美女交友,美女,情色交友,成人交友,自拍,本土自拍,情人視訊網,視訊交友90739,生日禮物,情色論壇,正妹牆,正妹,成人網站,A片,免費A片,A片下載,免費A片下載,AV女優,成人影片,色情A片,成人論壇,情趣,免費成人影片,成人電影,成人影城,愛情公寓,色情影片,保險套,舊情人,微風成人,成人,成人遊戲,成人光碟,色情遊戲,跳蛋,按摩棒,一夜情,男同志聊天室,肛交,口交,性交,援交erh5r
Video Converter for Mac is
Video Converter for Mac is the most powerful Video Converter for Mac OS software which allows you to convert videos between popular video formats and audio formats. The easy-to-use Video Converter for Mac lets you to enjoy your videos on iPod, PSP, Mobile Phone, Zune, iPhone, Apple TV and MP4/MP3 player. This Video Converter for Mac allows you to set the destination, the name of output files.iPod Converter for Mac is the best Video to iPod Converter for Mac OS X software for you. With the iPod Converter for Mac you can easily convert popular video formats including FLV, MPEG1, MPEG2, DivX, Xvid, WMV, 3GP, 3G2, MOV, AVI, MPEG TS/TP (for HD Video), etc to iPod compatible MPEG-4 videos. And also it is not only and iPod Converter for Mac, but it can convert all popular videos to iPhone, Apple TV, PSP, PS3, Youtube (web), Creative Zen, iRiver PMP, Archos, MP4, various mobile phones and many other digital video and audio players.MP4 Converter for Mac is an excellent Mac MP4 converter which can not only convert MP4 to MP3, WMA, AAC, WAV, etc but also convert avi, flv, wmv, mpeg, divx etc to MP4 on Mac os x to enjoy your favourite video with MP4 Converter for Mac os. Compared with other mp4 converter Mac software, the MP4 Converter for Mac provides powerful edit functions, such as setting the output settings, cropping and trimming files, merging several files into one, etc. With this MP4 Converter for Mac, you can easily convert mp4 videos to varoius format for Mac.
FLV Converter Mac is a
FLV Converter Mac is a powerful FLV Converter for Mac software which can convert FLV video files to all popular video formats and convert FLV to popular audio formats for Mac OS X users. FLV Converter Mac OS X softwrare supports all video popular formats indcluding FLV, MPG, MPEG1, MPEG2, MP4, 3GP, 3G2, MOV, AVI, Mpeg TS/TP (for HD Video), etc. The Mac FLV Converter can also convert FLV to MP3, WAV, OGG, 3GP, AAC and M4A, AC3, APE, etc audio.
How to download YouTube videos for Mac and convert the .FLV files on Mac OS? Here are the easy-to-use and top-user-rating YouTube Video Grabber Mac and Mac FLV converter tools. It is safe to install and no spyware or adware guarenteed.
With the YouTube Video Grabber Mac application, you can easily download youtube for mac and convert YouTube videos on your Mac OS. It can automatically detect the YouTube video files from the YouTube web pages you have opened and download multiple files once a time. YouTube Video Grabber Mac is a totally free download youtube videos for mac, because if you don’t want to convert downloaded videos to your mobile players, you don’t have to pay for it.g
Post new comment