Tomcat configuration on Linux?
Still can't figure out how to install Tomcat on Linux properly for 6 hours !
It is working fine when I run it as 'root' but not with user 'tomcat'. Running tomcat as root is a huge security issue as user can read, write and delete any file on the system.
Any suggestion ? Thanks.
It is working fine when I run it as 'root' but not with user 'tomcat'. Running tomcat as root is a huge security issue as user can read, write and delete any file on the system.
Any suggestion ? Thanks.
Code:
bash-2.05a$ ./catalina.sh Using CATALINA_BASE: /usr/local/jakarta/jakarta-tomcat-4.0.3-src/build Using CATALINA_HOME: /usr/local/jakarta/jakarta-tomcat-4.0.3-src/build Using CATALINA_TMPDIR: /usr/local/jakarta/jakarta-tomcat-4.0.3-src/build/temp Using JAVA_HOME: /usr/local/jdk Usage: catalina.sh ( commands ... ) commands: debug Start Catalina in a debugger debug -security Debug Catalina with a security manager embedded Start Catalina in embedded mode jpda start Start Catalina under JPDA debugger run Start Catalina in the current window run -security Start in the current window with security manager start Start Catalina in a separate window start -security Start in a separate window with security manager stop Stop Catalina bash-2.05a$ ./catalina.sh debug Using CATALINA_BASE: /usr/local/jakarta/jakarta-tomcat-4.0.3-src/build Using CATALINA_HOME: /usr/local/jakarta/jakarta-tomcat-4.0.3-src/build Using CATALINA_TMPDIR: /usr/local/jakarta/jakarta-tomcat-4.0.3-src/build/temp Using JAVA_HOME: /usr/local/jdk An unexpected exception has been detected in native code outside the VM. Unexpected Signal : 11 occurred at PC=0x4006D6D6 Function=(null)+0x4006D6D6 Library=/lib/libc.so.6 NOTE: We are unable to locate the function name symbol for the error just occurred. Please refer to release documentation for possible reason and solutions. Current Java thread: at java.lang.System.initProperties(Native Method) at java.lang.System.initializeSystemClass(System.java:870) Dynamic libraries: 08048000-0804d000 r-xp 00000000 08:03 1490968 /usr/java/j2sdk1.4.0/bin/jdb 0804d000-0804f000 rw-p 00004000 08:03 1490968 /usr/java/j2sdk1.4.0/bin/jdb 40000000-40011000 r-xp 00000000 08:03 3653634 /lib/ld-2.2.93.so 40011000-40012000 rw-p 00010000 08:03 3653634 /lib/ld-2.2.93.so 40012000-40018000 r--s 00000000 08:03 4653238 /usr/lib/gconv/gconv-modules.cache 40018000-40019000 r--p 00000000 08:03 1294444 /usr/lib/locale/en_US.iso885915/LC_IDENTIFICATION 40019000-4001a000 r--p 00000000 08:03 1294445 /usr/lib/locale/en_US.iso885915/LC_MEASUREMENT 4001a000-4001b000 r--p 00000000 08:03 1294449 /usr/lib/locale/en_US.iso885915/LC_TELEPHONE 4001c000-40029000 r-xp 00000000 08:03 3653731 /lib/libpthread-0.10.so 40029000-4002c000 rw-p 0000d000 08:03 3653731 /lib/libpthread-0.10.so 4004c000-4004e000 r-xp 00000000 08:03 3653645 /lib/libdl-2.2.93.so 4004e000-4004f000 rw-p 00001000 08:03 3653645 /lib/libdl-2.2.93.so 4004f000-40164000 r-xp 00000000 08:03 3653641 /lib/libc-2.2.93.so 40164000-40169000 rw-p 00115000 08:03 3653641 /lib/libc-2.2.93.so 4016d000-40430000 r-xp 00000000 08:03 5111915 /usr/java/j2sdk1.4.0/jre/lib/i386/client/libjvm.so 40430000-40578000 rw-p 002c2000 08:03 5111915 /usr/java/j2sdk1.4.0/jre/lib/i386/client/libjvm.so 4058c000-4059d000 r-xp 00000000 08:03 3653649 /lib/libnsl-2.2.93.so 4059d000-4059e000 rw-p 00010000 08:03 3653649 /lib/libnsl-2.2.93.so 405a0000-405d4000 r-xp 00000000 08:03 344273 /usr/lib/libstdc++-2-libc6.1-1-2.9.0.so 405d4000-405e0000 rw-p 00033000 08:03 344273 /usr/lib/libstdc++-2-libc6.1-1-2.9.0.so 405e2000-40602000 r-xp 00000000 08:03 3653728 /lib/libm-2.2.93.so 40602000-40603000 rw-p 00020000 08:03 3653728 /lib/libm-2.2.93.so 40603000-4060c000 r-xp 00000000 08:03 5521489 /usr/java/j2sdk1.4.0/jre/lib/i386/native_threads/libhpi.so 4060c000-4060d000 rw-p 00008000 08:03 5521489 /usr/java/j2sdk1.4.0/jre/lib/i386/native_threads/libhpi.so 4060d000-4061e000 r-xp 00000000 08:03 3588226 /usr/java/j2sdk1.4.0/jre/lib/i386/libverify.so 4061e000-40620000 rw-p 00010000 08:03 3588226 /usr/java/j2sdk1.4.0/jre/lib/i386/libverify.so 40620000-40641000 r-xp 00000000 08:03 3588214 /usr/java/j2sdk1.4.0/jre/lib/i386/libjava.so 40641000-40643000 rw-p 00020000 08:03 3588214 /usr/java/j2sdk1.4.0/jre/lib/i386/libjava.so 40644000-40658000 r-xp 00000000 08:03 3588227 /usr/java/j2sdk1.4.0/jre/lib/i386/libzip.so 40658000-4065b000 rw-p 00013000 08:03 3588227 /usr/java/j2sdk1.4.0/jre/lib/i386/libzip.so 4065b000-41cd3000 r--s 00000000 08:03 5668939 /usr/java/j2sdk1.4.0/jre/lib/rt.jar 41d15000-41d2c000 r--s 00000000 08:03 5668940 /usr/java/j2sdk1.4.0/jre/lib/sunrsasign.jar 41d2c000-41d9a000 r--s 00000000 08:03 5668933 /usr/java/j2sdk1.4.0/jre/lib/jsse.jar 41d9a000-41dad000 r--s 00000000 08:03 5668932 /usr/java/j2sdk1.4.0/jre/lib/jce.jar 41dad000-4202e000 r--s 00000000 08:03 5668921 /usr/java/j2sdk1.4.0/jre/lib/ch****ts.jar 440d6000-440d7000 r--p 00000000 08:03 1294382 /usr/lib/locale/en_US.iso885915/LC_ADDRESS 440d7000-440d8000 r--p 00000000 08:03 1294447 /usr/lib/locale/en_US.iso885915/LC_NAME 4c160000-4c18c000 r--p 00000000 08:03 262196 /usr/lib/locale/en_US.iso885915/LC_CTYPE Local Time = Tue Jan 27 18:54:54 2004 Elapsed Time = 0 # # The exception above was detected in native code outside the VM # # Java VM: Java HotSpot(TM) Client VM (1.4.0-b92 mixed mode) # # An error report file has been saved as hs_err_pid12160.log. # Please refer to the file for further information. # Aborted (core dumped) bash-2.05a$
Quoted a problem my friend is facing now regarding Tomcat Installation on Linux server....
Wonder anyone here know what's the problem? Any suggestions in order to solve the problem?
Thanks first.
Regards,
WaiSing