Re: JSVC error

2014-01-06 Thread vicky007aggarwal
Can somebody please suggest that how can we integrate jsvc with PSI PROBE 
application in order to have restart functionality

Thanks,
Vicky

On Jan 4, 2014, at 10:16 AM, vicky  wrote:
> 
> 
> 
>  I'm able to build the jsvc successfully from 
> "commons-daemon-1.0.15-native-src" file. Thanks for suggesting that .
> 
> I've configured below in my tomcat startup script with this I am able to 
> start my tomcat without any Segmentation error.
> 
> I need this JSVC setup in order to start/stop tomcat instance from PSI PROBE 
> application (http://code.google.com/p/psi-probe/)
> 
> The problem now is that my tomcat is getting started properly with below 
> script even then on PROBE screen i'm seeing the below message.
> ++ PROBE Message on Wrapper Control link 
> +++
> this JVM is not controlled by Java Service Wrapper
> +++
> I was under the impression with JSVC I'm able to start/stop JVM via PROBE but 
> its not happening ,please suggest what wrong I m doing 
>  
> 
> Startup script
> CATALINA_BASE=/root/test/tomcattest
> CATALINA_HOME=/root/test/apache-tomcat-7.0.39
> cd $CATALINA_BASE
> ./bin/jsvc  \
> -cp 
> $CATALINA_HOME/bin/bootstrap.jar:$CATALINA_HOME/bin/tomcat-juli.jar \
> -outfile $CATALINA_BASE/logs/catalina.out \
> -errfile $CATALINA_BASE/logs/catalina.err \
> -Dcatalina.home=$CATALINA_HOME \
> -pidfile "/root/test/tomcattest/pid" \
> -Dcatalina.base=$CATALINA_BASE \
> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager \
> 
> -Djava.util.logging.config.file=$CATALINA_BASE/conf/logging.properties \
> org.apache.catalina.startup.Bootstrap start
> 
> +++++
>  
> 
> From: vicky 
> To: Tomcat Users List ; Tomcat Users List 
>  
> Sent: Saturday, 4 January 2014 9:37 AM
> Subject: Re: JSVC error
> 
> 
> Thanks everybody for sharing your thoughts 
>  
> Can you also please suggest that out of following which file do I need to 
> download for my Linux machine as I' m not sure which one to select 
>  
> Download link ==> http://www.apache.org/dist/commons/daemon/source/
>  
> commons-daemon-1.0.15-native-src.tar.gz  2013-04-02 14:03  200K  GZIP 
> compressed document
> commons-daemon-1.0.15-native-src.tar.gz.asc  2013-04-02 14:03  230   OpenPGP 
> ASCII armored signature
> commons-daemon-1.0.15-native-src.tar.gz.md5  2013-04-02 14:03   74   MD5 
> checksum file
> commons-daemon-1.0.15-native-src.tar.gz.sha1 2013-04-02 14:03   82   SHA1 
> checksum file
> commons-daemon-1.0.15-native-src.zip 2013-04-02 14:03  255K  ZIP 
> compressed archive
> commons-daemon-1.0.15-native-src.zip.asc 2013-04-02 14:03  230   OpenPGP 
> ASCII armored signature
> commons-daemon-1.0.15-native-src.zip.md5 2013-04-02 14:03   71   MD5 
> checksum file
> commons-daemon-1.0.15-native-src.zip.sha12013-04-02 14:03   79   SHA1 
> checksum file
> commons-daemon-1.0.15-src.tar.gz 2013-04-02 14:03 284K GZIP compressed 
> document  commons-daemon-1.0.15-src.tar.gz.asc 2013-04-02 14:03  230  
>  OpenPGP ASCII armored signature
> commons-daemon-1.0.15-src.tar.gz.md5 2013-04-02 14:03   67   MD5 
> checksum file
> commons-daemon-1.0.15-src.tar.gz.sha12013-04-02 14:03   75   SHA1 
> checksum file
> commons-daemon-1.0.15-src.zip2013-04-02 14:03  377K  ZIP 
> compressed archive
> commons-daemon-1.0.15-src.zip.asc2013-04-02 14:03  230   OpenPGP 
> ASCII armored signature
> commons-daemon-1.0.15-src.zip.md52013-04-02 14:03   64   MD5 
> checksum file
> commons-daemon-1.0.15-src.zip.sha1   2013-04-02 14:03   72   SHA1 
> checksum file
> 
> 
> Thanks
> Vicky
> 
> 
> From: André Warnier 
> To: Tomcat Users List  
> Sent: Friday, 3 January 2014 3:18 AM
> Subject: Re: JSVC error
> 
> 
> Christopher Schultz wrote:
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA256
>> 
>> André,
>> 
>>> On 12/31/13, 10:04 AM, André Warnier wrote:
>>> vicky wrote:
>>>> Even after defining the $CATALINA_PID & $JAVA_HOME variable ,
>>>> i'm still the getting segmentation error(detailed error mentioned
>>>> below)
>>> In my experience, a "segmentation fault" often occurs when the
>>> *binary* that you are trying to run, is not made for the platform
>>> on which you are trying to run it.
>> 
>> Nah, you get way weird

Re: JSVC error

2014-01-03 Thread vicky


 I'm able to build the jsvc successfully from 
"commons-daemon-1.0.15-native-src" file. Thanks for suggesting that .

I've configured below in my tomcat startup script with this I am able to start 
my tomcat without any Segmentation error.

I need this JSVC setup in order to start/stop tomcat instance from PSI PROBE 
application (http://code.google.com/p/psi-probe/)

The problem now is that my tomcat is getting started properly with below script 
even then on PROBE screen i'm seeing the below message.
++ PROBE Message on Wrapper Control link 
+++
this JVM is not controlled by Java Service Wrapper
+++
I was under the impression with JSVC I'm able to start/stop JVM via PROBE but 
its not happening ,please suggest what wrong I m doing 
 

Startup script
CATALINA_BASE=/root/test/tomcattest
CATALINA_HOME=/root/test/apache-tomcat-7.0.39
    cd $CATALINA_BASE
    ./bin/jsvc  \
    -cp $CATALINA_HOME/bin/bootstrap.jar:$CATALINA_HOME/bin/tomcat-juli.jar 
\
    -outfile $CATALINA_BASE/logs/catalina.out \
    -errfile $CATALINA_BASE/logs/catalina.err \
    -Dcatalina.home=$CATALINA_HOME \
    -pidfile "/root/test/tomcattest/pid" \
    -Dcatalina.base=$CATALINA_BASE \
    -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager \
    -Djava.util.logging.config.file=$CATALINA_BASE/conf/logging.properties \
    org.apache.catalina.startup.Bootstrap start

+
 

From: vicky 
To: Tomcat Users List ; Tomcat Users List 
 
Sent: Saturday, 4 January 2014 9:37 AM
Subject: Re: JSVC error


Thanks everybody for sharing your thoughts 
 
Can you also please suggest that out of following which file do I need to 
download for my Linux machine as I' m not sure which one to select 
 
Download link ==> http://www.apache.org/dist/commons/daemon/source/
 
commons-daemon-1.0.15-native-src.tar.gz  2013-04-02 14:03  200K  GZIP 
compressed document
commons-daemon-1.0.15-native-src.tar.gz.asc  2013-04-02 14:03  230   OpenPGP 
ASCII armored signature
commons-daemon-1.0.15-native-src.tar.gz.md5  2013-04-02 14:03   74   MD5 
checksum file
commons-daemon-1.0.15-native-src.tar.gz.sha1 2013-04-02 14:03   82   SHA1 
checksum file
commons-daemon-1.0.15-native-src.zip 2013-04-02 14:03  255K  ZIP 
compressed archive
commons-daemon-1.0.15-native-src.zip.asc 2013-04-02 14:03  230   OpenPGP 
ASCII armored signature
commons-daemon-1.0.15-native-src.zip.md5 2013-04-02 14:03   71   MD5 
checksum file
commons-daemon-1.0.15-native-src.zip.sha1    2013-04-02 14:03   79   SHA1 
checksum file
commons-daemon-1.0.15-src.tar.gz 2013-04-02 14:03 284K GZIP compressed document 
 commons-daemon-1.0.15-src.tar.gz.asc 2013-04-02 14:03  230   OpenPGP 
ASCII armored signature
commons-daemon-1.0.15-src.tar.gz.md5 2013-04-02 14:03   67   MD5 
checksum file
commons-daemon-1.0.15-src.tar.gz.sha1    2013-04-02 14:03   75   SHA1 
checksum file
commons-daemon-1.0.15-src.zip    2013-04-02 14:03  377K  ZIP 
compressed archive
commons-daemon-1.0.15-src.zip.asc    2013-04-02 14:03  230   OpenPGP 
ASCII armored signature
commons-daemon-1.0.15-src.zip.md5    2013-04-02 14:03   64   MD5 
checksum file
commons-daemon-1.0.15-src.zip.sha1   2013-04-02 14:03   72   SHA1 
checksum file


Thanks
Vicky


From: André Warnier 
To: Tomcat Users List  
Sent: Friday, 3 January 2014 3:18 AM
Subject: Re: JSVC error


Christopher Schultz wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
> 
> André,
> 
> On 12/31/13, 10:04 AM, André Warnier wrote:
>> vicky wrote:
>>> Even after defining the $CATALINA_PID & $JAVA_HOME variable ,
>>> i'm still the getting segmentation error(detailed error mentioned
>>> below)
>>>
>> In my experience, a "segmentation fault" often occurs when the
>> *binary* that you are trying to run, is not made for the platform
>> on which you are trying to run it.
> 
> Nah, you get way weirder errors when that happens. jsvc is probably
> somewhat fragile when it gets unexpected input. While that should
> probably be fixed, the problem here is very likely to be
> configuration-related.
> 

I was only talking about my experience.
I don't usually do weird things.
Your mileage may be different.

The OP never told us what "file jsvc" is telling him though.
For example on one of our systems :

# uname -a
Linux server.company.com 2.6.26-2-amd64 #1 SMP Tue Jan 25 05:59:43 UTC 2011 
x86_64 GNU/Linux
# find / -name jsvc -exec file {} \;
/usr/share/doc/jsvc: directory
/usr/bin/jsvc: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically 
linked 
(uses shared libs), for GNU/Linux 2.6.8, stri

Re: JSVC error

2014-01-03 Thread vicky
Thanks everybody for sharing your thoughts 
 
Can you also please suggest that out of following which file do I need to 
download for my Linux machine as I' m not sure which one to select 
 
Download link ==> http://www.apache.org/dist/commons/daemon/source/
 
 commons-daemon-1.0.15-native-src.tar.gz  2013-04-02 14:03  200K  GZIP 
compressed document
 commons-daemon-1.0.15-native-src.tar.gz.asc  2013-04-02 14:03  230   OpenPGP 
ASCII armored signature
 commons-daemon-1.0.15-native-src.tar.gz.md5  2013-04-02 14:03   74   MD5 
checksum file
 commons-daemon-1.0.15-native-src.tar.gz.sha1 2013-04-02 14:03   82   SHA1 
checksum file
 commons-daemon-1.0.15-native-src.zip 2013-04-02 14:03  255K  ZIP 
compressed archive
 commons-daemon-1.0.15-native-src.zip.asc 2013-04-02 14:03  230   OpenPGP 
ASCII armored signature
 commons-daemon-1.0.15-native-src.zip.md5 2013-04-02 14:03   71   MD5 
checksum file
 commons-daemon-1.0.15-native-src.zip.sha1    2013-04-02 14:03   79   SHA1 
checksum file
 commons-daemon-1.0.15-src.tar.gz 2013-04-02 14:03 284K GZIP compressed 
document  commons-daemon-1.0.15-src.tar.gz.asc 2013-04-02 14:03  230   
OpenPGP ASCII armored signature
 commons-daemon-1.0.15-src.tar.gz.md5 2013-04-02 14:03   67   MD5 
checksum file
 commons-daemon-1.0.15-src.tar.gz.sha1    2013-04-02 14:03   75   SHA1 
checksum file
 commons-daemon-1.0.15-src.zip    2013-04-02 14:03  377K  ZIP 
compressed archive
 commons-daemon-1.0.15-src.zip.asc    2013-04-02 14:03  230   OpenPGP 
ASCII armored signature
 commons-daemon-1.0.15-src.zip.md5    2013-04-02 14:03   64   MD5 
checksum file
 commons-daemon-1.0.15-src.zip.sha1   2013-04-02 14:03   72   SHA1 
checksum file


Thanks
Vicky

From: André Warnier 
To: Tomcat Users List  
Sent: Friday, 3 January 2014 3:18 AM
Subject: Re: JSVC error


Christopher Schultz wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
> 
> André,
> 
> On 12/31/13, 10:04 AM, André Warnier wrote:
>> vicky wrote:
>>> Even after defining the $CATALINA_PID & $JAVA_HOME variable ,
>>> i'm still the getting segmentation error(detailed error mentioned
>>> below)
>>>
>> In my experience, a "segmentation fault" often occurs when the
>> *binary* that you are trying to run, is not made for the platform
>> on which you are trying to run it.
> 
> Nah, you get way weirder errors when that happens. jsvc is probably
> somewhat fragile when it gets unexpected input. While that should
> probably be fixed, the problem here is very likely to be
> configuration-related.
> 

I was only talking about my experience.
I don't usually do weird things.
Your mileage may be different.

The OP never told us what "file jsvc" is telling him though.
For example on one of our systems :

# uname -a
Linux server.company.com 2.6.26-2-amd64 #1 SMP Tue Jan 25 05:59:43 UTC 2011 
x86_64 GNU/Linux
# find / -name jsvc -exec file {} \;
/usr/share/doc/jsvc: directory
/usr/bin/jsvc: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically 
linked 
(uses shared libs), for GNU/Linux 2.6.8, stripped 


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Re: JSVC error

2014-01-02 Thread André Warnier

Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

André,

On 12/31/13, 10:04 AM, André Warnier wrote:

vicky wrote:

Even after defining the $CATALINA_PID & $JAVA_HOME variable ,
i'm still the getting segmentation error(detailed error mentioned
below)


In my experience, a "segmentation fault" often occurs when the
*binary* that you are trying to run, is not made for the platform
on which you are trying to run it.


Nah, you get way weirder errors when that happens. jsvc is probably
somewhat fragile when it gets unexpected input. While that should
probably be fixed, the problem here is very likely to be
configuration-related.



I was only talking about my experience.
I don't usually do weird things.
Your mileage may be different.

The OP never told us what "file jsvc" is telling him though.
For example on one of our systems :

# uname -a
Linux server.company.com 2.6.26-2-amd64 #1 SMP Tue Jan 25 05:59:43 UTC 2011 
x86_64 GNU/Linux
# find / -name jsvc -exec file {} \;
/usr/share/doc/jsvc: directory
/usr/bin/jsvc: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked 
(uses shared libs), for GNU/Linux 2.6.8, stripped


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: JSVC error

2014-01-02 Thread Ognjen Blagojevic

Vicky,

On 31.12.2013 11:16, vicky wrote:

./startdaemon.sh: line 13:  7429 Segmentation fault  (core dumped) ./bin/jsvc -cp 
$CATALINA_HOME/bin/bootstrap.jar:$CATALINA_HOME/bin/tomcat-juli.jar -outfile 
$CATALINA_BASE/logs/catalina.out -errfile $CATALINA_BASE/logs/catalina.err 
-Dcatalina.home=$CATALINA_HOME -pidfile "$CATALINA_PID" 
-Dcatalina.base=$CATALINA_BASE 
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 
-Djava.util.logging.config.file=$CATALINA_BASE/conf/logging.properties 
org.apache.catalina.startup.Bootstrap start


That is a bug in daemon 1.0.14. It is resolved in daemon 1.0.15. More 
info here:


https://www.mail-archive.com/dev@tomcat.apache.org/msg72208.html
https://issues.apache.org/jira/browse/DAEMON-291
https://issues.apache.org/bugzilla/show_bug.cgi?id=54890

-Ognjen

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: JSVC error

2014-01-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Mark,

On 1/2/14, 11:34 AM, Mark Eggers wrote:
> On 1/1/2014 11:02 PM, vicky wrote:
>> 
>> I've build the JSVC on same machine over which I m running my
>> tomcat instance
>> 
>> I have compiled the JSVC in the following manner but still i'm
>> getting the  Segmentation fault  exception while executing the
>> startup script, please suggest how to fix this:-
>> 
>> Step1: export CFLAGS="-arch i386 -arch x86_64" export
>> LDFLAGS="-arch i386 -arch x86_64" Step2: cd
>> /root/test/commons-daemon-1.0.14-native-src/unix ./configure 
>> ++= *** Current host
>> *** checking build system type... x86_64-unknown-linux-gnu 
>> checking host system type... x86_64-unknown-linux-gnu checking
>> cached host system type... ok *** C-Language compilation tools
>> *** checking for gcc... gcc checking for C compiler default
>> output file name... a.out checking whether the C compiler
>> works... yes checking whether we are cross compiling... no 
>> checking for suffix of executables... checking for suffix of
>> object files... o checking whether we are using the GNU C
>> compiler... yes checking whether gcc accepts -g... yes checking
>> for gcc option to accept ANSI C... none needed checking for
>> ranlib... ranlib checking for strip... strip *** Host support
>> *** checking C flags dependant on host system type... ok *** Java
>> compilation tools *** checking for JDK os include directory...
>> linux gcc flags added checking for cap_init in -lcap... no ***
>> Writing output files *** configure: creating ./config.status 
>> config.status: creating Makefile config.status: creating
>> Makedefs config.status: creating native/Makefile *** All done
>> *** Now you can issue "make" 
>> ++ 
>> Step3: make +command output
>> += (cd native; make  all) make[1]: Entering
>> directory 
>> `/root/test/commons-daemon-1.0.14-native-src/unix/native' gcc
>> -m64  jsvc-unix.o libservice.a -ldl -lpthread -o ../jsvc make[1]:
>> Leaving directory 
>> `/root/test/commons-daemon-1.0.14-native-src/unix/native' 
>> +++
>> 
>> 
>> Vicky From: André Warnier  To: Tomcat Users List
>>  Sent: Tuesday, 31 December 2013 8:34
>> PM Subject: Re: JSVC error
>> 
>> 
>> vicky wrote:
>>> Even after defining the $CATALINA_PID & $JAVA_HOME variable ,
>>> i'm still the getting segmentation error(detailed error
>>> mentioned below)
>>> 
>> 
>> In my experience, a "segmentation fault" often occurs when the 
>> *binary* that you are trying to run, is not made for the platform
>> on which you are trying to run it. For example, you try to use
>> under Solaris a binary made for Linux; or trying to run a 64-bit
>> binary on a 32-bit platform.  Stuff of that kind. So, are you
>> sure that the "jsvc" that you're using matches your platform ? 
>> What about "file (path_to)/jsvc" ? what does it say ?
> 
> Vicky,
> 
> Your CFLAGS and LDFLAGS settings appear that you're trying to
> compile a "fat" binary on MacOS. Is this true?
> 
> If so, I don't think MacOS supports a 32 bit JRE any more.

Apple's JVMs came in 32-bit flavors, and they got rid of it with
Mavericks (thanks, Apple). Older OS Xs may still have the Apple JVM
available and reasonably up-to-date. No current version of Oracle or
OpenJDK is available for Mac OS X.

> I'm not certain, since I don't have a Macintosh, but some people at
> $work do. They indicate that they can no longer run applets in
> Chrome (32 bit) but require Firefox or Safari (64 bit).

Correct. Google won't release a 64-bit version of Chrome on Mac so
lots of stuff simply does not work (including Java plug-ins). (Thanks,
Google.)

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJSxaPUAAoJEBzwKT+lPKRYd6kQAKhwax7ok35XGFZZ/jIgjoie
+xDUfgRnxGOJery88aPsnmwPpAcFKRK5YSYJTHdLdOF4lIXo3gWOxiCCSyC26crj
k4XMvPzmZ/qw2mX1rwz5I/yVhG9WjpWoYziVu97ZsxE9yAdqOlm2yokL+r68lHWG
0adeBiy4KCUfDr7uNbkukcCUadW7NtP/l02vNet2JOVk1iALgAmSDfWbBPwuEXNv
hBKrvWWKQDt+FzoU1h+hirdEpp3XNSiXNlRiOYU4GWgfHwWVjrj6GkSt/1i8rhkR
N1UuzLZeNzKLzsRZCtvNEYwETs8GGnl1dMI61KBEkoDR3/mT8sfEFNd4GyjWp3v+
hw0w3bX9TQbYOFM8cX5KpKMsWtOCHc1N1BfHu/wEipRF+bhJ6+SbvbtISyyxFinY
+mEMlIK2ZVYLNpdQlmZRBubFy5M6uSMGqOoWIfC7S9pr9kSG4Uw9+PVR4oxFocwj
Uiop2lwzzUYj6FHSdWpgmMVujR64d8cYZgZiIYwmKoxLSx7MwVHPk9zktwOYMtpv
sLTODrhmB7vb+ADZwmgDnn3Ei+mDZMyYu86Rxo5IDrJnB3XKCMO+LZSWBIIitG9O
Mz8/rUaBtWIU6jUxTSlnoqEUY6X9vP6SC7WVk/B+md2KMEZM4F0y5EDdXRokAm3x
HcRcLXQ2lM+23gwXt+Pq
=9YX5
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: JSVC error

2014-01-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

André,

On 12/31/13, 10:04 AM, André Warnier wrote:
> vicky wrote:
>> Even after defining the $CATALINA_PID & $JAVA_HOME variable ,
>> i'm still the getting segmentation error(detailed error mentioned
>> below)
>> 
> 
> In my experience, a "segmentation fault" often occurs when the
> *binary* that you are trying to run, is not made for the platform
> on which you are trying to run it.

Nah, you get way weirder errors when that happens. jsvc is probably
somewhat fragile when it gets unexpected input. While that should
probably be fixed, the problem here is very likely to be
configuration-related.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJSxaMdAAoJEBzwKT+lPKRYMawP/jKbAjfnKSmbWl451eHrVF6G
9pHHjI95HccBEgbH3DryaBosQoomAogq9eqNnztma4r0/kwIwNr+KfzLYk2qJVDn
GYGQjbZoN8SBcPqwS8PAILKHXFGreV1S2f0zeMXg6CtH2hixqgenDMhyZUSPebxz
lJutDTnVKW1XCFxXN6LBJwSgF8hKDSPuEE3f42rmsbvNQSkQ6eXO+Q01iMSq4xoI
GCZTL6sANaOr0wamCserlXBQVyZ8kVXsY5xTFhrMzmOBxVN38Kd8ZjqmA8UG+yWv
1KUAio+29shzx+sXlZNmmFpDZ9OgZ61rTrtrsXfNYTpvxIRkihDOFmWOgUM40H2V
1CkuidokYXtW+v0a8TrD712rfSLQSjYLkXRwSk/yUwnR2h2n/7T9sWREndDM45+p
97KB4CgATx7ZRfjeQ9ER4jftTHYfqu+btLew0ObR9A05ccxm94sdAAHS87xtfJaD
UspJX0uc2FfY+JeNCGdyFzFzG/MiCKFNqcZWcJToDJSZMPmTcTFVBBlF7lSlcL64
Q813rXptw4F0+PSx+WPE8p4NcdRdwOsuuU5EjuIO+Q25xNArnPSNxEnkc9aBjC5w
R3CANQNTT71IMU9FN7w82So5zCwf7udfLI59VpGpq19NZhe4Fr6jyvK6mBILbfME
oyBofYjilJC3FqACOvst
=rGEu
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: JSVC error

2014-01-02 Thread vicky
I'm compiling & running JSVC on Linux machine ==>Red Hat Enterprise Linux 
Server release 6.3 (Santiago)

I tried the below steps but still i'm getting the segmetation error.

1. export CFLAGS=-m64
2.  ./configure
3.   make

Can somebody pls  share the source link for JSVC ,from where I can try 
downloading & compiling the binaries again

Thanks
Vicky



On Thursday, 2 January 2014 10:06 PM, Mark Eggers  wrote:
  
On 1/1/2014 11:02 PM, vicky wrote:
>
> I've build the JSVC on same machine over which I m running my tomcat instance
>
> I have compiled the JSVC in the following manner but still i'm getting the  
> Segmentation fault  exception while executing the startup script, please 
> suggest how to fix this:-
>
> Step1:
>   export CFLAGS="-arch i386 -arch x86_64"
>   export LDFLAGS="-arch i386 -arch x86_64"
> Step2:
> cd /root/test/commons-daemon-1.0.14-native-src/unix
>   ./configure
> ++=
> *** Current host ***
> checking build system type... x86_64-unknown-linux-gnu
> checking host system type... x86_64-unknown-linux-gnu
> checking cached host system type... ok
> *** C-Language compilation tools ***
> checking for gcc... gcc
> checking for C compiler default output file name... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for suffix of executables...
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ANSI C... none needed
> checking for ranlib... ranlib
> checking for strip... strip
> *** Host support ***
> checking C flags dependant on host system type... ok
> *** Java compilation tools ***
> checking for JDK os include directory...  linux
> gcc flags added
> checking for cap_init in -lcap... no
> *** Writing output files ***
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating Makedefs
> config.status: creating native/Makefile
> *** All done ***
> Now you can issue "make"
> ++
> Step3:
> make
>   +command output +=
> (cd native; make  all)
> make[1]: Entering directory 
> `/root/test/commons-daemon-1.0.14-native-src/unix/native'
> gcc -m64  jsvc-unix.o libservice.a -ldl -lpthread -o ../jsvc
> make[1]: Leaving directory 
> `/root/test/commons-daemon-1.0.14-native-src/unix/native'
> +++
>
>
>   Vicky
> From: André Warnier 
> To: Tomcat Users List 
> Sent: Tuesday, 31 December 2013 8:34 PM
> Subject: Re: JSVC error
>
>
> vicky wrote:
>> Even after defining the $CATALINA_PID & $JAVA_HOME variable , i'm still the 
>> getting segmentation error(detailed error mentioned below)
>>
>
> In my experience, a "segmentation fault" often occurs when the *binary* that 
> you are
> trying to run, is not made for the platform on which you are trying to run it.
> For example, you try to use under Solaris a binary made for Linux; or trying 
> to run a
> 64-bit binary on a 32-bit platform.  Stuff of that kind.
> So, are you sure that the "jsvc" that you're using matches your platform ?
> What about "file (path_to)/jsvc" ? what does it say ?

Vicky,

Your CFLAGS and LDFLAGS settings appear that you're trying to compile a 
"fat" binary on MacOS. Is this true?

If so, I don't think MacOS supports a 32 bit JRE any more. I'm not 
certain, since I don't have a Macintosh, but some people at $work do. 
They indicate that they can no longer run applets in Chrome (32 bit) but 
require Firefox or Safari (64 bit).

What happens when you don't use those flags (or at least not the -arch 
386 for those flags)?

. . . just my two cents
/mde/



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Re: JSVC error

2014-01-02 Thread Mark Eggers

On 1/1/2014 11:02 PM, vicky wrote:


I've build the JSVC on same machine over which I m running my tomcat instance

I have compiled the JSVC in the following manner but still i'm getting the  
Segmentation fault  exception while executing the startup script, please 
suggest how to fix this:-

Step1:
  export CFLAGS="-arch i386 -arch x86_64"
  export LDFLAGS="-arch i386 -arch x86_64"
Step2:
cd /root/test/commons-daemon-1.0.14-native-src/unix
  ./configure
++=
*** Current host ***
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking cached host system type... ok
*** C-Language compilation tools ***
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for ranlib... ranlib
checking for strip... strip
*** Host support ***
checking C flags dependant on host system type... ok
*** Java compilation tools ***
checking for JDK os include directory...  linux
gcc flags added
checking for cap_init in -lcap... no
*** Writing output files ***
configure: creating ./config.status
config.status: creating Makefile
config.status: creating Makedefs
config.status: creating native/Makefile
*** All done ***
Now you can issue "make"
++
Step3:
make
  +command output +=
(cd native; make  all)
make[1]: Entering directory 
`/root/test/commons-daemon-1.0.14-native-src/unix/native'
gcc -m64  jsvc-unix.o libservice.a -ldl -lpthread -o ../jsvc
make[1]: Leaving directory 
`/root/test/commons-daemon-1.0.14-native-src/unix/native'
+++


  Vicky
From: André Warnier 
To: Tomcat Users List 
Sent: Tuesday, 31 December 2013 8:34 PM
Subject: Re: JSVC error


vicky wrote:

Even after defining the $CATALINA_PID & $JAVA_HOME variable , i'm still the 
getting segmentation error(detailed error mentioned below)



In my experience, a "segmentation fault" often occurs when the *binary* that 
you are
trying to run, is not made for the platform on which you are trying to run it.
For example, you try to use under Solaris a binary made for Linux; or trying to 
run a
64-bit binary on a 32-bit platform.  Stuff of that kind.
So, are you sure that the "jsvc" that you're using matches your platform ?
What about "file (path_to)/jsvc" ? what does it say ?


Vicky,

Your CFLAGS and LDFLAGS settings appear that you're trying to compile a 
"fat" binary on MacOS. Is this true?


If so, I don't think MacOS supports a 32 bit JRE any more. I'm not 
certain, since I don't have a Macintosh, but some people at $work do. 
They indicate that they can no longer run applets in Chrome (32 bit) but 
require Firefox or Safari (64 bit).


What happens when you don't use those flags (or at least not the -arch 
386 for those flags)?


. . . just my two cents
/mde/


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: JSVC error

2014-01-02 Thread Brett Delle Grazie
Hi,

On 2 January 2014 07:02, vicky  wrote:

>
> I've build the JSVC on same machine over which I m running my tomcat
> instance
>
> I have compiled the JSVC in the following manner but still i'm getting
> the  Segmentation fault  exception while executing the startup script,
> please suggest how to fix this:-
>
> Step1:
>  export CFLAGS="-arch i386 -arch x86_64"
>  export LDFLAGS="-arch i386 -arch x86_64"
>

I think you should only use one of these 'arch' commands, not both. Most
makefile based systems can only build for one architecture at a time.
The architecture of JSVC chosen should match that of your JVM.


> Step2:
> cd /root/test/commons-daemon-1.0.14-native-src/unix
>  ./configure
> ++=
> *** Current host ***
> checking build system type... x86_64-unknown-linux-gnu
> checking host system type... x86_64-unknown-linux-gnu
> checking cached host system type... ok
> *** C-Language compilation tools ***
> checking for gcc... gcc
> checking for C compiler default output file name... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for suffix of executables...
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ANSI C... none needed
> checking for ranlib... ranlib
> checking for strip... strip
> *** Host support ***
> checking C flags dependant on host system type... ok
> *** Java compilation tools ***
> checking for JDK os include directory...  linux
> gcc flags added
> checking for cap_init in -lcap... no
> *** Writing output files ***
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating Makedefs
> config.status: creating native/Makefile
> *** All done ***
> Now you can issue "make"
> ++
> Step3:
> make
>  +command output +=
> (cd native; make  all)
> make[1]: Entering directory
> `/root/test/commons-daemon-1.0.14-native-src/unix/native'
> gcc -m64  jsvc-unix.o libservice.a -ldl -lpthread -o ../jsvc
> make[1]: Leaving directory
> `/root/test/commons-daemon-1.0.14-native-src/unix/native'
> +++
>
>
>  Vicky
> From: André Warnier 
> To: Tomcat Users List 
> Sent: Tuesday, 31 December 2013 8:34 PM
> Subject: Re: JSVC error
>
>
> vicky wrote:
> > Even after defining the $CATALINA_PID & $JAVA_HOME variable , i'm still
> the getting segmentation error(detailed error mentioned below)
> >
>
> In my experience, a "segmentation fault" often occurs when the *binary*
> that you are
> trying to run, is not made for the platform on which you are trying to run
> it.
> For example, you try to use under Solaris a binary made for Linux; or
> trying to run a
> 64-bit binary on a 32-bit platform.  Stuff of that kind.
> So, are you sure that the "jsvc" that you're using matches your platform ?
> What about "file (path_to)/jsvc" ? what does it say ?
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>



-- 
Kind regards,

Brett Delle Grazie


Re: JSVC error

2014-01-01 Thread vicky
 
I've build the JSVC on same machine over which I m running my tomcat instance
 
I have compiled the JSVC in the following manner but still i'm getting the  
Segmentation fault  exception while executing the startup script, please 
suggest how to fix this:-
 
Step1:
 export CFLAGS="-arch i386 -arch x86_64"
 export LDFLAGS="-arch i386 -arch x86_64"
Step2:
cd /root/test/commons-daemon-1.0.14-native-src/unix
 ./configure
++=
*** Current host ***
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking cached host system type... ok
*** C-Language compilation tools ***
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for ranlib... ranlib
checking for strip... strip
*** Host support ***
checking C flags dependant on host system type... ok
*** Java compilation tools ***
checking for JDK os include directory...  linux
gcc flags added
checking for cap_init in -lcap... no
*** Writing output files ***
configure: creating ./config.status
config.status: creating Makefile
config.status: creating Makedefs
config.status: creating native/Makefile
*** All done ***
Now you can issue "make"
++
Step3:  
make
 +command output +=
(cd native; make  all)
make[1]: Entering directory 
`/root/test/commons-daemon-1.0.14-native-src/unix/native'
gcc -m64  jsvc-unix.o libservice.a -ldl -lpthread -o ../jsvc
make[1]: Leaving directory 
`/root/test/commons-daemon-1.0.14-native-src/unix/native'
+++


 Vicky
From: André Warnier 
To: Tomcat Users List  
Sent: Tuesday, 31 December 2013 8:34 PM
Subject: Re: JSVC error


vicky wrote:
> Even after defining the $CATALINA_PID & $JAVA_HOME variable , i'm still the 
> getting segmentation error(detailed error mentioned below)
> 

In my experience, a "segmentation fault" often occurs when the *binary* that 
you are 
trying to run, is not made for the platform on which you are trying to run it.
For example, you try to use under Solaris a binary made for Linux; or trying to 
run a 
64-bit binary on a 32-bit platform.  Stuff of that kind.
So, are you sure that the "jsvc" that you're using matches your platform ?
What about "file (path_to)/jsvc" ? what does it say ? 



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Re: JSVC error

2013-12-31 Thread André Warnier

vicky wrote:

Even after defining the $CATALINA_PID & $JAVA_HOME variable , i'm still the 
getting segmentation error(detailed error mentioned below)



In my experience, a "segmentation fault" often occurs when the *binary* that you are 
trying to run, is not made for the platform on which you are trying to run it.
For example, you try to use under Solaris a binary made for Linux; or trying to run a 
64-bit binary on a 32-bit platform.  Stuff of that kind.

So, are you sure that the "jsvc" that you're using matches your platform ?
What about "file (path_to)/jsvc" ? what does it say ?


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: JSVC error

2013-12-31 Thread vicky
Even after defining the $CATALINA_PID & $JAVA_HOME variable , i'm still the 
getting segmentation error(detailed error mentioned below)

++
bin/startdaemon.sh: line 13:  4402 Segmentation fault  (core dumped) 
./bin/jsvc -cp 
$CATALINA_HOME/bin/bootstrap.jar:$CATALINA_HOME/bin/tomcat-juli.jar -outfile 
$CATALINA_BASE/logs/catalina.out -errfile $CATALINA_BASE/logs/catalina.err 
-Dcatalina.home=$CATALINA_HOME -pidfile "/root/test/tomcattest" 
-Dcatalina.base=$CATALINA_BASE 
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 
-Djava.util.logging.config.file=$CATALINA_BASE/conf/logging.properties 
org.apache.catalina.startup.Bootstrap start
 

Thanks
Vicky

From: Konstantin Kolinko 
To: Tomcat Users List  
Sent: Tuesday, 31 December 2013 4:03 PM
Subject: Re: JSVC error


2013/12/31 vicky : 

> Hi,
>
> I  have configured the below in my tomcat 7.0.39 startup script & when 
> executing this script I 'm getting segmentation error(detailed error 
> mentioned below)
>
> Please suggest how to fix this.
>
> + start up script ++
> CATALINA_BASE=/root/test/tomcattest
> CATALINA_HOME=/root/home/apache-tomcat-7.0.39
>    cd $CATALINA_BASE
>    ./bin/jsvc  \
>        -cp 
>$CATALINA_HOME/bin/bootstrap.jar:$CATALINA_HOME/bin/tomcat-juli.jar \
>        -outfile $CATALINA_BASE/logs/catalina.out \
>        -errfile $CATALINA_BASE/logs/catalina.err \
>        -Dcatalina.home=$CATALINA_HOME \
>        -pidfile "$CATALINA_PID" \
>        -Dcatalina.base=$CATALINA_BASE \
>        -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager \
>        -Djava.util.logging.config.file=$CATALINA_BASE/conf/logging.properties 
>\
>        org.apache.catalina.startup.Bootstrap start
> ++
>
>  ERROR 
> ++=
> ./startdaemon.sh: line 13:  7429 Segmentation fault      (core dumped) 
> ./bin/jsvc -cp 
> $CATALINA_HOME/bin/bootstrap.jar:$CATALINA_HOME/bin/tomcat-juli.jar -outfile 
> $CATALINA_BASE/logs/catalina.out -errfile $CATALINA_BASE/logs/catalina.err 
> -Dcatalina.home=$CATALINA_HOME -pidfile "$CATALINA_PID" 
> -Dcatalina.base=$CATALINA_BASE 
> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 
> -Djava.util.logging.config.file=$CATALINA_BASE/conf/logging.properties 
> org.apache.catalina.startup.Bootstrap start
>
> +++


1. Did you tell jsvc where your Java is?
You can use either "-home" argument or JAVA_HOME environment variable.

http://commons.apache.org/proper/commons-daemon/jsvc.html

2. You have not defined the value of CATALINA_PID variable.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org 

Re: JSVC error

2013-12-31 Thread Konstantin Kolinko
2013/12/31 vicky :
> Hi,
>
> I  have configured the below in my tomcat 7.0.39 startup script & when 
> executing this script I 'm getting segmentation error(detailed error 
> mentioned below)
>
> Please suggest how to fix this.
>
> + start up script ++
> CATALINA_BASE=/root/test/tomcattest
> CATALINA_HOME=/root/home/apache-tomcat-7.0.39
> cd $CATALINA_BASE
> ./bin/jsvc  \
> -cp 
> $CATALINA_HOME/bin/bootstrap.jar:$CATALINA_HOME/bin/tomcat-juli.jar \
> -outfile $CATALINA_BASE/logs/catalina.out \
> -errfile $CATALINA_BASE/logs/catalina.err \
> -Dcatalina.home=$CATALINA_HOME \
> -pidfile "$CATALINA_PID" \
> -Dcatalina.base=$CATALINA_BASE \
> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager \
> 
> -Djava.util.logging.config.file=$CATALINA_BASE/conf/logging.properties \
> org.apache.catalina.startup.Bootstrap start
> ++
>
>  ERROR 
> ++=
> ./startdaemon.sh: line 13:  7429 Segmentation fault  (core dumped) 
> ./bin/jsvc -cp 
> $CATALINA_HOME/bin/bootstrap.jar:$CATALINA_HOME/bin/tomcat-juli.jar -outfile 
> $CATALINA_BASE/logs/catalina.out -errfile $CATALINA_BASE/logs/catalina.err 
> -Dcatalina.home=$CATALINA_HOME -pidfile "$CATALINA_PID" 
> -Dcatalina.base=$CATALINA_BASE 
> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 
> -Djava.util.logging.config.file=$CATALINA_BASE/conf/logging.properties 
> org.apache.catalina.startup.Bootstrap start
>
> +++


1. Did you tell jsvc where your Java is?
You can use either "-home" argument or JAVA_HOME environment variable.

http://commons.apache.org/proper/commons-daemon/jsvc.html

2. You have not defined the value of CATALINA_PID variable.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



JSVC error

2013-12-31 Thread vicky
Hi,
 
I  have configured the below in my tomcat 7.0.39 startup script & when 
executing this script I 'm getting segmentation error(detailed error mentioned 
below)
 
Please suggest how to fix this.
 
+ start up script ++
CATALINA_BASE=/root/test/tomcattest
CATALINA_HOME=/root/home/apache-tomcat-7.0.39
    cd $CATALINA_BASE
    ./bin/jsvc  \
    -cp $CATALINA_HOME/bin/bootstrap.jar:$CATALINA_HOME/bin/tomcat-juli.jar 
\
    -outfile $CATALINA_BASE/logs/catalina.out \
    -errfile $CATALINA_BASE/logs/catalina.err \
    -Dcatalina.home=$CATALINA_HOME \
    -pidfile "$CATALINA_PID" \
    -Dcatalina.base=$CATALINA_BASE \
    -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager \
    -Djava.util.logging.config.file=$CATALINA_BASE/conf/logging.properties \
    org.apache.catalina.startup.Bootstrap start
++

 ERROR 
++=
./startdaemon.sh: line 13:  7429 Segmentation fault  (core dumped) 
./bin/jsvc -cp 
$CATALINA_HOME/bin/bootstrap.jar:$CATALINA_HOME/bin/tomcat-juli.jar -outfile 
$CATALINA_BASE/logs/catalina.out -errfile $CATALINA_BASE/logs/catalina.err 
-Dcatalina.home=$CATALINA_HOME -pidfile "$CATALINA_PID" 
-Dcatalina.base=$CATALINA_BASE 
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 
-Djava.util.logging.config.file=$CATALINA_BASE/conf/logging.properties 
org.apache.catalina.startup.Bootstrap start

+++

Thanks
Vickyy


RE: Tomcat install jsvc error

2010-12-06 Thread Caldarale, Charles R
> From: Shamik Bhattacharyya [mailto:shamikbh...@live.com] 
> Subject: Tomcat install jsvc error

> I get the error: 
> Cannot find any VM in Java Home /home/dbadmin/java6/jdk1.6.0_22

My guess is a broken symlink somewhere, or a 32/64-bit mismatch.

What happens when you try this:

/home/dbadmin/java6/jdk1.6.0_22/bin/java -version

The JVM you do have appears to be a 32-bit one; did you build jsvc as 32- or 
64-bit?  The type must match that of the JVM.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Tomcat install jsvc error

2010-12-06 Thread Shamik Bhattacharyya

I am trying to run Tomcat 7.0.5 on Red Hat Linux using Java 1.6.0_22.  Using 
the installation instructions, I proceed to compiling jsvc but when I try to 
execute the command:
 
 ./bin/jsvc -cp ./bin/bootstrap.jar -outfile ./logs/catalina.out -errfile 
./logs/catalina.err org.apache.catalina.startup.Bootstrap
 
I get the error: 
Cannot find any VM in Java Home /home/dbadmin/java6/jdk1.6.0_22
 
My JAVA_HOME is set to: /home/dbadmin/java6/jdk1.6.0_22
My CATALINA_HOME is set to: /home/dbadmin/apache-tomcat-7.0.5
 
When I run the command "java -version", I get the output:
 
java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
Java HotSpot(TM) Client VM (build 17.1-b03, mixed mode, sharing)
 
Otherwise, javac and other commands work just fine.  I would really appreciate 
any help.
 
Thanks in advance!
  

make jsvc error on centos5.3

2010-01-25 Thread sam wong
hi, everybody,

I have some question  on make jsvc  on centos 5.3 linux.

and need your help.

thanks

my step is :

1. install centos
  chosed:  a)server, b)Server-GUI


2. install tomcat.

3. compile jsvc and failed.




[r...@hcrm jsvc-src]# make
make -C native all
make[1]: Entering directory `/usr/local/tomcat/bin/jsvc-src/native'

gcc -g -O2 -DOS_LINUX -DDSO_DLFCN -DCPU=3D\"i386\"

-I/usr/java/jdk1.5.0_22/include -I/usr/java/jdk1.5.0_22/include/linux
-Wall -Wstrict-prototypes -c jsvc-unix.c -o jsvc-unix.o
In file included from /usr/include/signal.h:333,
   from jsvc-unix.c:19:
/usr/include/bits/sigcontext.h:28:29: error: asm/sigcontext.h: No such
file or directory
In file included from jsvc-unix.c:29:

/usr/include/sys/prctl.h:23:66: error: linux/prctl.h: No such file or direc=

tory
In file included from jsvc-unix.c:30:

/usr/include/sys/syscall.h:25:24: error: asm/unistd.h: No such file or dire=

ctory
jsvc-unix.c:32:30: error: linux/capability.h: No such file or directory

jsvc-unix.c: In function =E2set_caps?
jsvc-unix.c:126: error: storage size of =E2caphead?isn=E2t known
jsvc-unix.c:127: error: storage size of =E2cap?isn=E2t known
jsvc-unix.c:130: error: =E2_LINUX_CAPABILITY_VERSION?undeclared (first

use in this function)
jsvc-unix.c:130: error: (Each undeclared identifier is reported only once
jsvc-unix.c:130: error: for each function it appears in.)

jsvc-unix.c:136: error: =E2__NR_capset?undeclared (first use in this functi=
on)
jsvc-unix.c:127: warning: unused variable =E2cap?
jsvc-unix.c:126: warning: unused variable =E2caphead?
jsvc-unix.c: In function =E2linuxset_user_group?
jsvc-unix.c:145: error: =E2CAP_NET_BIND_SERVICE?undeclared (first use in
this function)
jsvc-unix.c:145: error: =E2CAP_SETUID?undeclared (first use in this functio=
n)
jsvc-unix.c:145: error: =E2CAP_SETGID?undeclared (first use in this functio=
n)
jsvc-unix.c:154: error: =E2PR_SET_KEEPCAPS?undeclared (first use in
this function)
make[1]: *** [jsvc-unix.o] Error 1
make[1]: Leaving directory `/usr/local/tomcat/bin/jsvc-src/native'
make: *** [native/all] Error 2
[r...@hcrm jsvc-src]#

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: jsvc error with tomcat and java 1.6 on os x

2009-01-21 Thread Adam Dajka

On 20 Jan 2009, at 06:26, m zyzy wrote:

If this is a jsvc issue, are there any ways to use tomcat without  
jsvc?


try using the core binary download , extract  it and run the startup  
script

inside the /bin folder of extracted folder , test it on the browser
http://localhost:8080 . to stop the server , use the shutdown  
script . Make

sure you have set the JAVA_HOME,PATH of java /bin/ , CLASSPATH , and
CATALINA_HOME in your /etc/profile .



port install tomcat6
/opt/local/share/java/tomcat6/bin/startup.sh
/opt/local/share/java/tomcat6/bin/shutdown.sh

Works fine.

Thank you!
Adam



Re: jsvc error with tomcat and java 1.6 on os x

2009-01-19 Thread m zyzy
try using the core binary download , extract  it and run the startup script
inside the /bin folder of extracted folder , test it on the browser
http://localhost:8080 . to stop the server , use the shutdown script . Make
sure you have set the JAVA_HOME,PATH of java /bin/ , CLASSPATH , and
CATALINA_HOME in your /etc/profile .


On Tue, Jan 20, 2009 at 11:21 AM, Bill Barker  wrote:

>
> > share/java/tomcat6/logs/catalina.out and stderr to /opt/local/share/
> > java/tomcat6/logs/catalina.err
> > ... giving up.
> >
> > If this is a jsvc issue, are there any ways to use tomcat without jsvc?
> >
> > Regards,
> > Adam Dajka
>
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: jsvc error with tomcat and java 1.6 on os x

2009-01-19 Thread Bill Barker
There are some recent fixes to jsvc on OS/X in the commons SVN repository, 
but they haven't been released yet.  You could try those and see if it 
helps.  There is more info from the commons developer's list archive at 
http://markmail.org/message/z7klsse5tylcv5es.


"Adam Dajka"  wrote in message 
news:319cb12e-01f5-49c1-ac99-e67b8cb0d...@adverticum.com...
> Dear List!
>
> I have an issue with both tomcat5 and tomcat6 on os x leopard when  trying 
> to use java 1.6.
>
> When I set JAVA_JVM_VERSION=1.6 in setenv.sh starting tomcat fails.
>
> I get the error message from jsvc into catalina.err:
> 14/01/2009 13:06:42 1465 jsvc error: Cannot dynamically link to / 
> System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/../ 
> Libraries/libclient.dylib
> 14/01/2009 13:06:42 1465 jsvc error: no additional message
> 14/01/2009 13:06:42 1464 jsvc error: Service exit with a return value  of 
> 1
>
> jsvc debug says:
> Starting Tomcat...19/01/2009 15:45:11 69429 jsvc debug: +-- DUMPING 
> PARSED COMMAND LINE ARGUMENTS --
> 19/01/2009 15:45:11 69429 jsvc debug: | Detach:  True
> 19/01/2009 15:45:11 69429 jsvc debug: | Show Version:No
> 19/01/2009 15:45:11 69429 jsvc debug: | Show Help:   No
> 19/01/2009 15:45:11 69429 jsvc debug: | Check Only:  Disabled
> 19/01/2009 15:45:11 69429 jsvc debug: | Stop:False
> 19/01/2009 15:45:11 69429 jsvc debug: | Wait:0
> 19/01/2009 15:45:11 69429 jsvc debug: | Run as service:  No
> 19/01/2009 15:45:11 69429 jsvc debug: | Install service: No
> 19/01/2009 15:45:11 69429 jsvc debug: | Remove service:  No
> 19/01/2009 15:45:11 69429 jsvc debug: | JVM Name:"null"
> 19/01/2009 15:45:11 69429 jsvc debug: | Java Home:   "/System/ 
> Library/Frameworks/JavaVM.framework/Versions/1.6/Home"
> 19/01/2009 15:45:11 69429 jsvc debug: | PID File:"/opt/local/ 
> share/java/tomcat6/logs/tomcat5.pid"
> 19/01/2009 15:45:11 69429 jsvc debug: | User Name:   "www"
> 19/01/2009 15:45:11 69429 jsvc debug: | Extra Options:   7
> 19/01/2009 15:45:11 69429 jsvc debug: |   "-verbose"
> 19/01/2009 15:45:11 69429 jsvc debug: |   "- 
> Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager"
> 19/01/2009 15:45:11 69429 jsvc debug: |   "-Djava.class.path=:/opt/ 
> local/share/java/tomcat6/bin/bootstrap.jar:/opt/local/share/java/ 
> tomcat6/bin/commons-logging-api.jar"
> 19/01/2009 15:45:11 69429 jsvc debug: |   "-Dcatalina.home=/opt/local/ 
> share/java/tomcat6"
> 19/01/2009 15:45:11 69429 jsvc debug: |   "-Dcatalina.base=/opt/local/ 
> share/java/tomcat6"
> 19/01/2009 15:45:11 69429 jsvc debug: |   "-Djava.io.tmpdir=/opt/local/ 
> share/java/tomcat6/temp"
> 19/01/2009 15:45:11 69429 jsvc debug: |   "-Djava.endorsed.dirs=/opt/ 
> local/share/java/tomcat6/endorsed"
> 19/01/2009 15:45:11 69429 jsvc debug: | Class Invoked: 
> "org.apache.catalina.startup.Bootstrap"
> 19/01/2009 15:45:11 69429 jsvc debug: | Class Arguments: 1
> 19/01/2009 15:45:11 69429 jsvc debug: |   "start"
> 19/01/2009 15:45:11 69429 jsvc debug: 
> +---
> 19/01/2009 15:45:11 69430 jsvc debug: user changed to 'www'
> 19/01/2009 15:45:11 69429 jsvc debug: User 'www' validated
> 19/01/2009 15:45:11 69429 jsvc debug: Attempting to locate Java Home  in 
> /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home
> 19/01/2009 15:45:11 69429 jsvc debug: Attempting to locate VM 
> configuration file /System/Library/Frameworks/JavaVM.framework/ 
> Versions/1.6/Home/jre/lib/jvm.cfg
> 19/01/2009 15:45:11 69429 jsvc debug: Attempting to locate VM 
> configuration file /System/Library/Frameworks/JavaVM.framework/ 
> Versions/1.6/Home/lib/jvm.cfg
> 19/01/2009 15:45:11 69429 jsvc debug: Found VM configuration file at / 
> System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/lib/jvm.cfg
> 19/01/2009 15:45:11 69429 jsvc debug: Found VM client definition in 
> configuration
> 19/01/2009 15:45:11 69429 jsvc debug: Checking library /System/Library/ 
> Frameworks/JavaVM.framework/Versions/1.6/Home/../Libraries/ 
> libclient.dylib
> 19/01/2009 15:45:11 69429 jsvc debug: Found VM jvm definition in 
> configuration
> 19/01/2009 15:45:11 69429 jsvc debug: Checking library /System/Library/ 
> Frameworks/JavaVM.framework/Versions/1.6/Home/../Libraries/libjvm.dylib
> 19/01/2009 15:45:11 69429 jsvc debug: Found VM hotspot definition in 
> configuration
> 19/01/2009 15:45:11 69429 jsvc debug: Checking library /System/Library/ 
> Frameworks/JavaVM.framework/Versions/1.6/Home/../Libraries/ 
> libhotspot.dylib
> 19/

jsvc error with tomcat and java 1.6 on os x

2009-01-19 Thread Adam Dajka

Dear List!

I have an issue with both tomcat5 and tomcat6 on os x leopard when  
trying to use java 1.6.


When I set JAVA_JVM_VERSION=1.6 in setenv.sh starting tomcat fails.

I get the error message from jsvc into catalina.err:
14/01/2009 13:06:42 1465 jsvc error: Cannot dynamically link to / 
System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/../ 
Libraries/libclient.dylib

14/01/2009 13:06:42 1465 jsvc error: no additional message
14/01/2009 13:06:42 1464 jsvc error: Service exit with a return value  
of 1


jsvc debug says:
Starting Tomcat...19/01/2009 15:45:11 69429 jsvc debug: +-- DUMPING  
PARSED COMMAND LINE ARGUMENTS --

19/01/2009 15:45:11 69429 jsvc debug: | Detach:  True
19/01/2009 15:45:11 69429 jsvc debug: | Show Version:No
19/01/2009 15:45:11 69429 jsvc debug: | Show Help:   No
19/01/2009 15:45:11 69429 jsvc debug: | Check Only:  Disabled
19/01/2009 15:45:11 69429 jsvc debug: | Stop:False
19/01/2009 15:45:11 69429 jsvc debug: | Wait:0
19/01/2009 15:45:11 69429 jsvc debug: | Run as service:  No
19/01/2009 15:45:11 69429 jsvc debug: | Install service: No
19/01/2009 15:45:11 69429 jsvc debug: | Remove service:  No
19/01/2009 15:45:11 69429 jsvc debug: | JVM Name:"null"
19/01/2009 15:45:11 69429 jsvc debug: | Java Home:   "/System/ 
Library/Frameworks/JavaVM.framework/Versions/1.6/Home"
19/01/2009 15:45:11 69429 jsvc debug: | PID File:"/opt/local/ 
share/java/tomcat6/logs/tomcat5.pid"

19/01/2009 15:45:11 69429 jsvc debug: | User Name:   "www"
19/01/2009 15:45:11 69429 jsvc debug: | Extra Options:   7
19/01/2009 15:45:11 69429 jsvc debug: |   "-verbose"
19/01/2009 15:45:11 69429 jsvc debug: |   "- 
Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager"
19/01/2009 15:45:11 69429 jsvc debug: |   "-Djava.class.path=:/opt/ 
local/share/java/tomcat6/bin/bootstrap.jar:/opt/local/share/java/ 
tomcat6/bin/commons-logging-api.jar"
19/01/2009 15:45:11 69429 jsvc debug: |   "-Dcatalina.home=/opt/local/ 
share/java/tomcat6"
19/01/2009 15:45:11 69429 jsvc debug: |   "-Dcatalina.base=/opt/local/ 
share/java/tomcat6"
19/01/2009 15:45:11 69429 jsvc debug: |   "-Djava.io.tmpdir=/opt/local/ 
share/java/tomcat6/temp"
19/01/2009 15:45:11 69429 jsvc debug: |   "-Djava.endorsed.dirs=/opt/ 
local/share/java/tomcat6/endorsed"
19/01/2009 15:45:11 69429 jsvc debug: | Class Invoked:
"org.apache.catalina.startup.Bootstrap"

19/01/2009 15:45:11 69429 jsvc debug: | Class Arguments: 1
19/01/2009 15:45:11 69429 jsvc debug: |   "start"
19/01/2009 15:45:11 69429 jsvc debug:  
+---

19/01/2009 15:45:11 69430 jsvc debug: user changed to 'www'
19/01/2009 15:45:11 69429 jsvc debug: User 'www' validated
19/01/2009 15:45:11 69429 jsvc debug: Attempting to locate Java Home  
in /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home
19/01/2009 15:45:11 69429 jsvc debug: Attempting to locate VM  
configuration file /System/Library/Frameworks/JavaVM.framework/ 
Versions/1.6/Home/jre/lib/jvm.cfg
19/01/2009 15:45:11 69429 jsvc debug: Attempting to locate VM  
configuration file /System/Library/Frameworks/JavaVM.framework/ 
Versions/1.6/Home/lib/jvm.cfg
19/01/2009 15:45:11 69429 jsvc debug: Found VM configuration file at / 
System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/lib/jvm.cfg
19/01/2009 15:45:11 69429 jsvc debug: Found VM client definition in  
configuration
19/01/2009 15:45:11 69429 jsvc debug: Checking library /System/Library/ 
Frameworks/JavaVM.framework/Versions/1.6/Home/../Libraries/ 
libclient.dylib
19/01/2009 15:45:11 69429 jsvc debug: Found VM jvm definition in  
configuration
19/01/2009 15:45:11 69429 jsvc debug: Checking library /System/Library/ 
Frameworks/JavaVM.framework/Versions/1.6/Home/../Libraries/libjvm.dylib
19/01/2009 15:45:11 69429 jsvc debug: Found VM hotspot definition in  
configuration
19/01/2009 15:45:11 69429 jsvc debug: Checking library /System/Library/ 
Frameworks/JavaVM.framework/Versions/1.6/Home/../Libraries/ 
libhotspot.dylib
19/01/2009 15:45:11 69429 jsvc debug: Found VM server definition in  
configuration
19/01/2009 15:45:11 69429 jsvc debug: Checking library /System/Library/ 
Frameworks/JavaVM.framework/Versions/1.6/Home/../Libraries/ 
libserver.dylib
19/01/2009 15:45:11 69429 jsvc debug: Found VM classic definition in  
configuration
19/01/2009 15:45:11 69429 jsvc debug: Checking library /System/Library/ 
Frameworks/JavaVM.framework/Versions/1.6/Home/../Libraries/ 
libclassic.dylib
19/01/2009 15:45:11 69429 jsvc debug: Cannot locate library for VM  
classic (skipping)
19/01/2009 15:45:11 69429 jsvc debug: Java Home located in /System/ 
Library/Frameworks/JavaVM.framework/Versions/1.6/Home
19/01/2009 15:45:11 69429 jsvc debug: +-- DUMPING JAVA HOME STRUCTURE  
--

jsvc error: Cannot found Daemon Loader "version" entry point

2006-11-13 Thread Odzeyem Nuertey-Y17577
Hello,
I am trying to run Tomcat as a daemon on Solaris. Compilation went
succesfully but when I invoke jsvc, I get the following error log:
 
13/11/2006 10:53:46 12608 jsvc debug: Using default JVM in
/usr/java/jre/lib/sparc/client/libjvm.so
13/11/2006 10:53:46 12608 jsvc debug: Attemtping to load library
/usr/java/jre/lib/sparc/client/libjvm.so
13/11/2006 10:53:46 12608 jsvc debug: JVM library
/usr/java/jre/lib/sparc/client/libjvm.so loaded
13/11/2006 10:53:46 12608 jsvc debug: JVM library entry point found
(0xFEC4A940)
13/11/2006 10:53:46 12608 jsvc debug: +-- DUMPING JAVA VM CREATION
ARGUMENTS -
13/11/2006 10:53:46 12608 jsvc debug: | Version:
10004
13/11/2006 10:53:46 12608 jsvc debug: | Ignore Unrecognized Arguments:
False
13/11/2006 10:53:46 12608 jsvc debug: | Extra options: 2
13/11/2006 10:53:46 12608 jsvc debug: |
"-Djava.class.path=./bin/bootstrap.jar:./bin/commons-daemon.jar"
(0x)
13/11/2006 10:53:46 12608 jsvc debug:
+---
13/11/2006 10:53:46 12608 jsvc debug: Java VM created successfully
13/11/2006 10:53:46 12608 jsvc debug: Class
org/apache/commons/daemon/support/DaemonLoader found
13/11/2006 10:53:46 12608 jsvc debug: Native methods registered
13/11/2006 10:53:46 12608 jsvc error: Cannot found Daemon Loader
"version" entry point
13/11/2006 10:53:46 12607 jsvc error: Service exit with a return value
of 255
 
>From CATALINA_HOME, I am invoking jsvc as follows:
 
./bin/jsvc -cp ./bin/bootstrap.jar:./bin/commons-daemon.jar -version
-home /usr/java -debug -outfile ../cruise/logs/catalina.out -errfile
../cruise/logs/catalina.err -pidfile ../cruise/logs/jsvc.pid
org.apache.catalina.startup.Bootstrap
 
Any help I can get would be very much appreciated.
Thanks
Nuertey
 
p.s. Here is the command line output:
 
13/11/2006 10:53:46 12607 jsvc debug: +-- DUMPING PARSED COMMAND LINE
ARGUMENTS --
13/11/2006 10:53:46 12607 jsvc debug: | Detach:  False
13/11/2006 10:53:46 12607 jsvc debug: | Show Version:Yes
13/11/2006 10:53:46 12607 jsvc debug: | Show Help:   No
13/11/2006 10:53:46 12607 jsvc debug: | Check Only:  Disabled
13/11/2006 10:53:46 12607 jsvc debug: | Stop:False
13/11/2006 10:53:46 12607 jsvc debug: | Wait:0
13/11/2006 10:53:46 12607 jsvc debug: | Run as service:  No
13/11/2006 10:53:46 12607 jsvc debug: | Install service: No
13/11/2006 10:53:46 12607 jsvc debug: | Remove service:  No
13/11/2006 10:53:46 12607 jsvc debug: | JVM Name:"null"
13/11/2006 10:53:46 12607 jsvc debug: | Java Home:   "/usr/java"
13/11/2006 10:53:46 12607 jsvc debug: | PID File:
"../cruise/logs/jsvc.pid"
13/11/2006 10:53:46 12607 jsvc debug: | User Name:   "null"
13/11/2006 10:53:46 12607 jsvc debug: | Extra Options:   1
13/11/2006 10:53:46 12607 jsvc debug: |
"-Djava.class.path=./bin/bootstrap.jar:./bin/commons-daemon.jar"
13/11/2006 10:53:46 12607 jsvc debug: | Class Invoked:
"org.apache.catalina.startup.Bootstrap"
13/11/2006 10:53:46 12607 jsvc debug: | Class Arguments: 0
13/11/2006 10:53:46 12607 jsvc debug:
+---
13/11/2006 10:53:46 12607 jsvc debug: Attempting to locate Java Home in
/usr/java
13/11/2006 10:53:46 12607 jsvc debug: Attempting to locate VM
configuration file /usr/java/jre/lib/jvm.cfg
13/11/2006 10:53:46 12607 jsvc debug: Attempting to locate VM
configuration file /usr/java/lib/jvm.cfg
13/11/2006 10:53:46 12607 jsvc debug: Attempting to locate VM
configuration file /usr/java/jre/lib/sparc/jvm.cfg
13/11/2006 10:53:46 12607 jsvc debug: Found VM configuration file at
/usr/java/jre/lib/sparc/jvm.cfg
13/11/2006 10:53:46 12607 jsvc debug: Found VM client definition in
configuration
13/11/2006 10:53:46 12607 jsvc debug: Checking library
/usr/java/jre/lib/sparc/client/libjvm.so
13/11/2006 10:53:46 12607 jsvc debug: Found VM server definition in
configuration
13/11/2006 10:53:46 12607 jsvc debug: Checking library
/usr/java/jre/lib/sparc/server/libjvm.so
13/11/2006 10:53:46 12607 jsvc debug: Found VM hotspot definition in
configuration
13/11/2006 10:53:46 12607 jsvc debug: Checking library
/usr/java/jre/lib/sparc/hotspot/libjvm.so
13/11/2006 10:53:46 12607 jsvc debug: Checking library
/usr/java/lib/sparc/hotspot/libjvm.so
13/11/2006 10:53:46 12607 jsvc debug: Cannot locate library for VM
hotspot (skipping)
13/11/2006 10:53:46 12607 jsvc debug: Found VM classic definition in
configuration
13/11/2006 10:53:46 12607 jsvc debug: Checking library
/usr/java/jre/lib/sparc/classic/libjvm.so
13/11/2006 10:53:46 12607 jsvc debug: Checking library
/usr/java/lib/sparc/classic/libjvm.so
13/11/2006 10:53:46 12607 jsvc debug: Cannot locate library for VM
classic (skipping)
13/11/2006 10:53:46 12607 jsvc debug: Found VM native definition in
configuration
13/11/2006 10:53:46 12607 jsvc debug: Checking library
/usr/java/jre/lib/sparc/na

Re: jsvc error on Tomcat start

2006-03-03 Thread Peiran Song



case "$1" in
  start)
#
# Start Tomcat
#
$DAEMON_HOME/jsvc \
-user $TOMCAT_USER \
-home $JAVA_HOME \
-Dcatalina.home=$CATALINA_HOME \
#-Dcatalina.base=$CATALINA_BASE \


  ^
Remove the comment ("#") or remove the entire line.
  


That is it! Thank you!

Peiran



Regards
  mks

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: jsvc error on Tomcat start

2006-03-03 Thread Markus Schönhaber
Peiran Song wrote:
> When I tried to start up the Tomcat by:
>
>   /etc/init.d/tomcat start
> Got:
>
> 03/03/2006 11:58:21 13126 jsvc error: No class specified
> 03/03/2006 11:58:21 13126 jsvc error: Cannot parse command line arguments
> /etc/init.d/tomcat: -Djava.io.tmpdir=/tmp: not found
[...]
> case "$1" in
>   start)
> #
> # Start Tomcat
> #
> $DAEMON_HOME/jsvc \
> -user $TOMCAT_USER \
> -home $JAVA_HOME \
> -Dcatalina.home=$CATALINA_HOME \
> #-Dcatalina.base=$CATALINA_BASE \
  ^
Remove the comment ("#") or remove the entire line.

Regards
  mks

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



jsvc error on Tomcat start

2006-03-03 Thread Peiran Song

Hi All,

I have Tomcat 5.5.15 installed on a UNIX machine. Installed jsvc, 
customized the Tomcat5.sh start/stop script and symlinked 
/etc/init.d/tomcat to that script.


When I tried to start up the Tomcat by:

 /etc/init.d/tomcat start
Got:

03/03/2006 11:58:21 13126 jsvc error: No class specified
03/03/2006 11:58:21 13126 jsvc error: Cannot parse command line arguments
/etc/init.d/tomcat: -Djava.io.tmpdir=/tmp: not found

Any ideas on what went wrong?
Thank you very much for any help!

Peiran Song

p.s.   Here is the tomcat script content:
JAVA_HOME=/private/apps/java5.0
CATALINA_HOME=/private/apps/tomcat-5.5.15
DAEMON_HOME=$CATALINA_HOME/bin
TOMCAT_USER=zfishweb

# for multi instances adapt those lines.
TMP_DIR=/tmp
PID_FILE=/var/run/jsvc.pid
#CATALINA_BASE=/home/tomcat5/tomcat5/jakarta-tomcat-5/build

#CATALINA_OPTS="-Djava.library.path=/home/jfclere/jakarta-tomcat-connectors/jni/native/.libs"
CATALINA_OPTS="-Xms512M -Xmx512M"
CLASSPATH=\
$JAVA_HOME/lib/tools.jar:\
$CATALINA_HOME/bin/commons-daemon.jar:\
$CATALINA_HOME/bin/bootstrap.jar

case "$1" in
 start)
   #
   # Start Tomcat
   #
   $DAEMON_HOME/jsvc \
   -user $TOMCAT_USER \
   -home $JAVA_HOME \
   -Dcatalina.home=$CATALINA_HOME \
   #-Dcatalina.base=$CATALINA_BASE \
   -Djava.io.tmpdir=$TMP_DIR \
   -wait 10 \
   -pidfile $PID_FILE \
   -outfile $CATALINA_HOME/logs/catalina.out \
   -errfile '&1' \
   $CATALINA_OPTS \
   -cp $CLASSPATH \
   org.apache.catalina.startup.Bootstrap
   #
   # To get a verbose JVM
   #-verbose \
   # To get a debug of jsvc.
   #-debug \
   exit $?
   ;;

 stop)
   #
   # Stop Tomcat
   #
   $DAEMON_HOME/jsvc \
   -stop \
   -pidfile $PID_FILE \
   org.apache.catalina.startup.Bootstrap
   exit $?
   ;;

 *)
   echo "Usage tomcat.sh start/stop"
   exit 1;;
esac


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]