tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Turner <tomcat-u...@johnturner.com>
Subject Re: Error building Tomcat on Solaris 8
Date Tue, 15 Apr 2003 19:16:53 GMT

I had a devil of a time compiling mod_jk on Solaris.  I had to install all 
sorts of things besides make and gcc.  I also found that only an older 
version of gcc worked (see my HOWTO for specifics).  Do you have gcc as 
first in your path?

John

On 15 Apr 2003 14:04:30 -0500, Ben Ricker <bricker@wellinx.com> wrote:

> On Tue, 2003-04-15 at 13:01, Julio César Mejia Vergara wrote:
>> There is allready a mod_jk.so and mod_jk2.so binary for solaris 8 you 
>> just need to use that version of Apache.
>> http://jakarta.apache.org/builds/jakarta-tomcat- 
>> connectors/jk2/release/v2.0.2/bin/solaris8
>> http://jakarta.apache.org/builds/jakarta-tomcat- 
>> connectors/jk/release/v1.2.1/bin/solaris8/
>> http://jakarta.apache.org/builds/jakarta-tomcat- 
>> connectors/jk/release/v1.2.0/bin/solaris8/
>
> Thanks for the response. I have tried the binaries for Solaris 8 from a
> number of sources (both Jakarta's site as well as John Turner's) but I
> keep getting an error when starting Apache:
>
> [Tue Apr 15 12:04:08 2003] [notice] SIGUSR1 received.  Doing graceful 
> restart
> [Tue Apr 15 12:04:08 2003] [error] (9)Bad file number: Error while 
> opening the workers, jk will not work
>
> [Tue Apr 15 12:04:08 2003] [notice] Apache/1.3.27 (Unix) configured -- 
> resuming normal operations
> [Tue Apr 15 12:04:08 2003] [notice] Accept mutex: fcntl (Default: fcntl)
>
> Mod_jk logs that it cannot open any workers. I posted the problem last
> week and tried a number of things, but got nowhere. So, I am trying to
> see if rolling my own fixes the problem.
>
> As far as the stuff below, I am using 1.3.27 and am using the
> instructions on Tomcat's site the link is in the email). I do not want
> to compile Apache from source (this is on a box which is using Apache
> already). I did install it from the Sunfreeware package, which I have
> the sinking suspicion may be causing the problem I talked about last
> week.
>
> Anyway, as far as I can tell from the Tomcat site link on building
> mod_jk, one only needs to install gcc and make to build the so. Apache
> itself is running fine; it is mod_jk that I cannot get working.
>
> Thanks,
> Ben Ricker
>
>> And here is how i compiled it and witch utilities i had installed in my 
>> Solaris 8 BOX for compilation of Apache :
>> - Solaris 8 (SPARC) with patches.
>> - ANDIrand-0.7
>> - autoconf 2.5
>> - automake 1.7.2
>> - expect 5.38
>> - gcc 3.2.2
>> - gd 1.8.3
>> - j2sdk 1.4.1_01
>> - jakarta ant 1.5.1
>> - libgcj 2.95.1
>> - libtool 1.4
>> - m4 1.4
>> - make 3.80
>> - memconf 1.52
>> - ntop 1.3.1
>> - openssl 0.9.6g
>> - perl 5.8.0
>> - tar 1..13.19
>> - tcl 8.4.1
>> - tk 8.4.1
>> - top 3.5
>>
>> #cd /
>> #vi .profile
>> PATH=$PATH:/usr/local/bin:/usr/ccs/bin:usr/local/ssl/bin:/opt/jakarta- 
>> ant-1.5.1/bin:usr/local/apache/bin:usr/local/apache/lib:/opt/jakarta- 
>> tomcat-3.2.4/bin:.
>> LD_LIBRARY_PATH=/usr/local/lib:/lib:/usr/lib:/usr/local/ssl/lib:/opt/jakarta- 
>>
>>
>> ant-1.5.1/lib:/usr/local/apache/lib
>> MANPATH=/usr/local/man:/usr/local/apache/man:/usr/local/ssl/man:/opt/jakarta- 
>>
>>
>> ant-1.5.1/man:$MANAPATH
>> JAVA_HOME=/usr/j2se
>> TOMCAT_HOME=/opt/jakarta-tomcat-3.2.4
>> AC_MACRODIR=/usr/local/share/autoconf
>> CLASSPATH=/usr/local/lib/tools.jar:/usr/java/lib:/opt/jakarta-tomcat- 
>> 3.2.4/lib:/opt/jakarta-tomcat-3.2.4/lib/servlet.jar:/opt/jakarta-tomcat- 
>> 3.2.4/lib/servlet_2_2.jar:/opt/jdbc_db2/lib/jt400.jar:/opt/jdbc_ifmx/lib/ifxjdbc.jar:/opt/jakarta-

>>
>>
>> tomcat-3.2.4/lib/kcServlet.jar:/usr/java/src.jar:/usr/java/lib/dt.jar
>> CATALINA_HOME=/opt/jakarta-tomcat-3.2.4
>>
>> export PATH LD_LIBRARY_PATH JAVA_HOME CATALINA_HOME TOMCAT_HOME 
>> CLASSPATH AC_MACRODIR
>> #cd /opt/temp
>> #gunzip httpd-2.0.39.tar.gz <http://httpd-2.0.39.tar.gz/>
>> #tar -xvf httpd-.2.0.39.tar
>> #cd httpd-2.0.39 <http://httpd-2.0.39/>
>> #./configure –prefix=/usr/local/apache –enable-so –enable-info –enable- 
>> ssl –enable-modules-all
>> #make (GNUmake)
>> #make install
>>
>> #cd /opt/temp
>> #cp mod_jk-2.0.39.so <http://jk-2.0.39.so/> mod_jk.so
>> #cp mod_jk.so /usr/local/apache/modules
>> #mv jakarta-tomcat-3.2.4.tar <http://jakarta-tomcat-3.2.4.tar/> 
>> /produccion
>> #tar -xvf jakarta-tomcat-3.2.4 <http://jakarta-tomcat-3.2.4/>.tar
>>
>> #cd /opt/jakarta-tomcat-3.2.4/bin
>> #./startup.sh
>>
>> *Configuration workers.properties (bajo /opt/jakarta-tomcar_3.2.4/conf)*
>> workers.tomcat_home=/opt/jakarta-tomcat-3.2.4
>> workers.java_home=/usr/j2se
>> ps=/
>> worker.list=ajp13,ajp12
>> worker.ajp12.port <http://worker.ajp12.port/>=8007
>> worker.ajp12.host <http://worker.ajp12.host/>=localhost
>> worker.ajp12.type <http://worker.ajp12.type/>=ajp12
>> worker.ajp12.lbfactor <http://worker.ajp12.lbfactor/>=1
>> worker.ajp13.port <http://worker.ajp13.port/>=8009
>> worker.ajp13.host <http://worker.ajp13.host/>=localhost
>> worker.ajp13.type <http://worker.ajp13.type/>=ajp13
>> worker.ajp13.lbfactor <http://worker.ajp13.lbfactor/>=1
>> worker.loadbalancer.type <http://worker.loadbalancer.type/>=lb
>> worker.loadbalancer.balanced 
>> <http://worker.loadbalancer.balanced/>_workers=ajp12, ajp13
>> worker.inprocess.type <http://worker.inprocess.type/>=jni
>> worker.inprocess.class 
>> <http://worker.inprocess.class/>_path=$(workers.tomcat_home)$(ps)classes
>> worker.inprocess.class 
>> <http://worker.inprocess.class/>_path=$(workers.tomcat_home)$(ps) 
>> lib$(ps)jaxp.jar
>> worker.inprocess.class 
>> <http://worker.inprocess.class/>_path=$(workers.tomcat_home)$(ps) 
>> lib$(ps)parser.jar
>> worker.inprocess.class 
>> <http://worker.inprocess.class/>_path=$(workers.tomcat_home)$(ps) 
>> lib$(ps)jasper.jar
>> worker.inprocess.class 
>> <http://worker.inprocess.class/>_path=$(workers.tomcat_home)$(ps) 
>> lib$(ps)servlet.jar
>> worker.inprocess.class 
>> <http://worker.inprocess.class/>_path=$(workers.tomcat_home)$(ps) 
>> lib$(ps)webserver.jar
>> worker.inprocess.class 
>> <http://worker.inprocess.class/>_path=$(workers.java_home)$(ps)lib$(ps) 
>> tools.jar
>> worker.inprocess.cmd <http://worker.inprocess.cmd/>_line=-config
>> worker.inprocess.cmd 
>> <http://worker.inprocess.cmd/>_line=$(workers.tomcat_home) 
>> /config/jni_server.xml
>> worker.inprocess.cmd <http://worker.inprocess.cmd/>_line=-home
>> worker.inprocess.cmd 
>> <http://worker.inprocess.cmd/>_line=$(workers.tomcat_home)
>> worker.inprocess.jvm 
>> <http://worker.inprocess.jvm/>_lib=$(workers.java_home)$(ps)jre$(ps) 
>> lib$(ps)i386$(ps)classic$(ps)libjvm.so
>> worker.inprocess.stdout 
>> <http://worker.inprocess.stdout/>=$(workers.tomcat_home)$(ps) 
>> inprocess.stdout
>> worker.inprocess.stdout 
>> <http://worker.inprocess.stdout/>=$(workers.tomcat_home)$(ps) 
>> inprocess.stderr
>> worker.inprocess.sysprops 
>> <http://worker.inprocess.sysprops/>=tomcat.home=$(workers.tomcat_home)
>>
>> *Configuration server.conf (bajo /opt/jakarta-tomcar_3.2.4/conf):*
>>
>> <!-- Apache AJP12 support -->
>> <Connector className=”org.apache.tomcat.service.PoolTcpConnector 
>> <http://bscw.telnor.com:81/Tecnologia/Jume/org.apache.tomcat.service.PoolTcpConnector>”>

>>
>>
>> <Parameter name=”handler” 
>> value=”org.apache.tomcat.service.connector.Ajp12ConnectionHandler 
>> <http://org.apache.tomcat.service.connector.Ajp12ConnectionHandler/>”/>
>> <Parameter name=”port” value=”8007”/>
>> </Connector>
>>
>> <!-- Apache AJP13 support -->
>> <Connector className=”org.apache.tomcat.service.PoolTcpConnector 
>> <http://bscw.telnor.com:81/Tecnologia/Jume/org.apache.tomcat.service.PoolTcpConnector>”>

>>
>>
>> <Parameter name=”handler” 
>> value=”org.apache.tomcat.service.connector.Ajp13ConnectionHandler 
>> <http://bscw.telnor.com:81/Tecnologia/Jume/org.apache.tomcat.service.connector.Ajp13ConnectionHandler>”/>

>>
>>
>> <Parameter name=”port” value=”8009”/>
>> </Connector>
>>
>> <Context path=”/examples”
>> docBase=”webapps/examples”
>> crossContext=”false”
>> debug=”0”
>> reloadable=”true” >
>> </Context>
>>
>> *Configuration mod_jk.conf (bajo /opt/jakarta-tomcar_3.2.4/conf):*
>>
>> LoadModule jk_module modules/mod_jk.so
>> <IfModule mod_jk.c>
>> JkWorkersFile /opt/jakarta-tomcat-3.2.4/conf/workers.properties
>> JkLogFile /produccion/ApacheLogs/mod_jk.log
>> JkLogLevel warn
>> JkMount /*.jsp ajp13
>> JkMount /otherworker/*.jsp remoteworker
>> JkMount /examples/* ajp13
>>
>> Alias /examples/ “/opt/jakarta-tomcat-3.2.4/webapps/examples”>
>>
>> <Directory “/opt/jakarta-tomcat-3.2.4/webapps/examples”>
>> Options Indexes FollowSymLinks
>> AllowOverride None
>> Order allow,deny
>> Allow from all
>> </Directory>
>>
>> <Location /*/WEB-INF/*>
>> AllowOverride None
>> Deny From All
>> </Location>
>>
>> </IfModule>
>>
>> *Configuration httpd.conf (bajo /usr/local/apache/conf):*
>>
>> Add in /usr/local/apache/conf/httpd.conf
>>
>> Include /opt/jakarta-tomcat-3.2.4/conf/mod_jk.conf
>>
>> #cd /opt/jakarta-tomcat-3.2.4/bin
>> #./shutdown.sh
>> #./startup.sh
>> #cd /usr/local/apache/bin
>> #./apachectl stop
>> #./apachectl startssl
>>
>>
>>
>> Ben Ricker wrote:
>>
>> >I am having trouble with the binaries posted to Tomcat's web site built
>> >for Solaris 8 so I am trying to roll my own. >
>> >I have gcc and make installed:
>> >
>> >pkginfo -il  |grep gcc
>> >   PKGINST:  SMCgcc
>> >      NAME:  gcc
>> >   PKGINST:  SMClibgcc
>> >      NAME:  libgcc
>> >
>> >pkginfo -il  |grep make
>> >      NAME:  automake
>> >   PKGINST:  SMCmake
>> >      NAME:  make
>> >
>> >I run the following taken directly from the following URL:
>> >http://jakarta.apache.org/builds/jakarta-tomcat- 
>> connectors/jk/release/v1.2.2/doc/jk/aphowto.html
>> >
>> >./configure --with-apxs=/usr/local/apache/bin/apxs
>> >
>> >using Apache 1.3.27. This is in the
>> >/home/admin/jakarta-tomcat-connectors-jk-1.2.2-src/jk/native directory.
>> >Configure runs fine, at least, there is no glaring errors which cause 
>> it
>> >to fail. It creates a number of make files (I can show the complete
>> >output if someone requests it). >
>> >I then run 'make' per the instructions and get the following output:
>> >
>> >make
>> >Making all in common
>> >make[1]: Entering directory
>> >`/home/admin/jakarta-tomcat-connectors-jk-1.2.2-src/jk/native/common'
>> >/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/home/admin/bin:/usr/local/apache/bin/:usr/local/apache:/usr/sbin/:/usr/sbin/app_scripts:/usr/ccs/bin

>>
>>
>> --mode=compile gcc -I/usr/local/apache/include -g -O2 -DSOLARIS2=280 - 
>> DEAPI -O3 -g -O2  -I /include -I /include/ -c jk_ajp12_worker.c
>> >make[1]:
>> >/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/home/admin/bin:/usr/local/apache/bin/:usr/local/apache:/usr/sbin/:/usr/sbin/app_scripts:/usr/ccs/bin:

>>
>>
>> Command not found
>> >make[1]: *** [jk_ajp12_worker.lo] Error 127
>> >make[1]: Leaving directory
>> >`/home/admin/jakarta-tomcat-connectors-jk-1.2.2-src/jk/native/common'
>> >*** Error code 1
>> >make: Fatal error: Command failed for target `all-recursive'
>> >
>> >I am not sure what it is failing on; it looks like gcc is the "command
>> >not found" but configure finds gcc just fine. Anyone have any ideas 
>> what
>> >is failing here?
>> >
>> >Thanks,
>> >
>> >Ben Ricker
>> >
>> >
>> >  >
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

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


Mime
View raw message