tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: JSVC error
Date Thu, 02 Jan 2014 17:37:24 GMT
Hash: SHA256


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,

- -chris
Version: GnuPG v1
Comment: GPGTools -
Comment: Using GnuPG with Thunderbird -


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message