You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by vicky <vi...@yahoo.co.in> on 2013/12/31 11:16:00 UTC

JSVC error

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: JSVC error

Posted by Ognjen Blagojevic <og...@gmail.com>.
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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: JSVC error

Posted by vicky <vi...@yahoo.co.in>.
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 <it...@yahoo.com> 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 <aw...@ice-sa.com>
> To: Tomcat Users List <us...@tomcat.apache.org>
> 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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org

Re: JSVC error

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----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 <aw...@ice-sa.com> To: Tomcat Users List
>> <us...@tomcat.apache.org> 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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: JSVC error

Posted by Mark Eggers <it...@yahoo.com>.
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 <aw...@ice-sa.com>
> To: Tomcat Users List <us...@tomcat.apache.org>
> 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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: JSVC error

Posted by Brett Delle Grazie <br...@gmail.com>.
Hi,

On 2 January 2014 07:02, vicky <vi...@yahoo.co.in> 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 <aw...@ice-sa.com>
> To: Tomcat Users List <us...@tomcat.apache.org>
> 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-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>



-- 
Kind regards,

Brett Delle Grazie

Re: JSVC error

Posted by vicky <vi...@yahoo.co.in>.
 
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 <aw...@ice-sa.com>
To: Tomcat Users List <us...@tomcat.apache.org> 
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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org

Re: JSVC error

Posted by vi...@yahoo.co.in.
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 <vi...@yahoo.co.in> 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 <vi...@yahoo.co.in>
> To: Tomcat Users List <us...@tomcat.apache.org>; Tomcat Users List <us...@tomcat.apache.org> 
> 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 <aw...@ice-sa.com>
> To: Tomcat Users List <us...@tomcat.apache.org> 
> 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-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org

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


Re: JSVC error

Posted by vicky <vi...@yahoo.co.in>.

 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 <vi...@yahoo.co.in>
To: Tomcat Users List <us...@tomcat.apache.org>; Tomcat Users List <us...@tomcat.apache.org> 
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 <aw...@ice-sa.com>
To: Tomcat Users List <us...@tomcat.apache.org> 
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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org

Re: JSVC error

Posted by vicky <vi...@yahoo.co.in>.
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 <aw...@ice-sa.com>
To: Tomcat Users List <us...@tomcat.apache.org> 
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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org

Re: JSVC error

Posted by André Warnier <aw...@ice-sa.com>.
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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: JSVC error

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: JSVC error

Posted by André Warnier <aw...@ice-sa.com>.
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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: JSVC error

Posted by vicky <vi...@yahoo.co.in>.
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 <kn...@gmail.com>
To: Tomcat Users List <us...@tomcat.apache.org> 
Sent: Tuesday, 31 December 2013 4:03 PM
Subject: Re: JSVC error


2013/12/31 vicky <vi...@yahoo.co.in>: 

> 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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org 

Re: JSVC error

Posted by Konstantin Kolinko <kn...@gmail.com>.
2013/12/31 vicky <vi...@yahoo.co.in>:
> 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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org