Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 13920 invoked from network); 11 Aug 2010 19:53:19 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 11 Aug 2010 19:53:19 -0000 Received: (qmail 76882 invoked by uid 500); 11 Aug 2010 19:53:16 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 76761 invoked by uid 500); 11 Aug 2010 19:53:15 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 76746 invoked by uid 99); 11 Aug 2010 19:53:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Aug 2010 19:53:15 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of cerebrotecnologico@gmail.com designates 74.125.82.41 as permitted sender) Received: from [74.125.82.41] (HELO mail-ww0-f41.google.com) (74.125.82.41) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Aug 2010 19:53:07 +0000 Received: by wwd20 with SMTP id 20so4648265wwd.0 for ; Wed, 11 Aug 2010 12:52:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=hG6rP3+YlasC8mKrF5hpeM8rdXRQzFFWTbZltCjXHAI=; b=PpxmJS3+/EAfT228/iATjqCyveydqH/el6Wfpy/G9/dKK2BZjG5NyK4+cx1Hf20LmN QY6YAsVp4WRjJxwHbPXxIW/sYN740reQi4VUEJj9825JKxYwyEQXFVCIzwhRYb8HztaW GMsniw1mJH276IOgzjuIvCcCyKxj24QGqhoc4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=KzEEmKlFfG1RZvtEBQvRRzmNgmHJT/gLMn2dfpwg1g7TERGyFUAojN5DxluBzt2SFr mh6dXROe1R3HqhCdrAIGLOUHpmdTfgv8APVOZmApDbaZ4dqclpIm3t2JjqAgODUHmxls UqCxnOxV1v52E1CO7vQmBEydqpOB85ficPn04= MIME-Version: 1.0 Received: by 10.216.174.7 with SMTP id w7mr6180123wel.21.1281556367438; Wed, 11 Aug 2010 12:52:47 -0700 (PDT) Received: by 10.216.133.198 with HTTP; Wed, 11 Aug 2010 12:52:47 -0700 (PDT) In-Reply-To: <507419.58930.qm@web65813.mail.ac4.yahoo.com> References: <507419.58930.qm@web65813.mail.ac4.yahoo.com> Date: Wed, 11 Aug 2010 15:52:47 -0400 Message-ID: Subject: Re: Configuring JSVC on a new installation From: Jorge Medina To: Tomcat Users List Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org The following script requires that you have build the APR and APR-utils prior to building JSVC in 64-bit mode. You will need the paths where the APR and APR-utils get installed. I use this script to build jsvc in Linux and Solaris, so you also need to define some variables to define the path to your "autoconf" and "make" commands (that in my case, they live in different directories and the version I want to use is not always in the PATH) JSVC_PATH_SRC must point to the sources for Unix (something like ${tomcat.root}/bin/commons-daemon-${jsvc.version}-native-src/unix ) =3D=3D=3D buildjsvc.sh =3D=3D=3D #!/bin/sh if [ "${JAVA_HOME}" =3D "" ] ; then echo "JAVA_HOME is not defined" exit 1 fi if [ "${CATALINA_HOME}" =3D "" ] ; then echo "CATALINA_HOME is not defined" exit 1 fi if [ "${APR_DIR}" =3D "" ] ; then echo "APR_DIR not defined." exit 1 fi if [ "${APU_DIR}" =3D "" ] ; then echo "APU_DIR not defined." exit 1 fi if [ "${AUTOCONF_CMD}" =3D "" ] ; then echo "AUTOCONF_CMD not defined" exit 1 fi if [ "${JSVC_PATH_SRC}" =3D "" ] ; then echo " JSVC_PATH_SRC not defined" exit 1 fi if [ "${MAKE_CMD}" =3D "" ] ; then echo " MAKE_CMD not defined " exit 1 fi # Kill me on all errors set -e CPPFLAGS=3D"-m64 -O3" CXXFLAGS=3D"-m64 -O3" CFLAGS=3D"-m64 -O3" LDFLAGS=3D"-m64 -O3 -L${APR_DIR}/lib -L${APU_DIR}/lib -L${JAVA_HOME}/jre/lib/amd64 -L${JAVA_HOME}/jre/lib/sparcv9" export CPPFLAGS CXXFLAGS CFLAGS LDFLAGS chmod u+x ${JSVC_PATH_SRC}/configure cd "${JSVC_PATH_SRC}" ${AUTOCONF_CMD} ${JSVC_PATH_SRC}/configure --with-java=3D"${JAVA_HOME}" # This is a hack: The configure step does not configure the appropiate CPU on 64-bit systems cp "${JSVC_PATH_SRC}/Makedefs" "${JSVC_PATH_SRC}/Makedefs-Original" sed ' s:-DCPU=3D\\"i386\\":-DCPU=3D\\"amd64\\":g s:-DCPU=3D\\"sparc\\":-DCPU=3D\\"sparcv9\\":g' < "${JSVC_PATH_SRC}/Makedefs-Original" > "${JSVC_PATH_SRC}/Makedefs" ${MAKE_CMD} clean ${MAKE_CMD} cp ${JSVC_PATH_SRC}/jsvc ${CATALINA_HOME}/bin EXIT_CODE=3D$? exit $EXIT_CODE On Wed, Aug 11, 2010 at 3:22 PM, David Parks wrote= : > Are there any good step-by-steps on getting JSVC working with Tomcat 6 on= Linux > (Fedora)? > > The tomcat installation docs are outdated (JSVC isn=92t even in /bin), an= d every > guide I find seems to be 2 years old and wrong in some way. > > I trying downloading JSVC separately, but get make errors, and those docs= aren=92t > terribly explicit about certain details either. > > Thanks, > David > > --------------------------------------------------------------------- > 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