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 <vicky007aggar...@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 <vicky007aggar...@yahoo.co.in>
> To: Tomcat Users List <users@tomcat.apache.org>; Tomcat Users List 
> <users@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 <a...@ice-sa.com>
> To: Tomcat Users List <users@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-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org

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

Reply via email to