You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ben Ricker <br...@wellinx.com> on 2003/04/15 19:34:43 UTC

Error building Tomcat on Solaris 8

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


-- 
Ben Ricker <br...@wellinx.com>
Wellinx.com


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


RE: Error building Tomcat on Solaris 8

Posted by Filip Hanik <ma...@filip.net>.
I to had some problems, but found it easier to use the build in ant script instead of the make
What I did was to ln -s cc to use GCC, and the I fiddled with the buildscripts to make it build.
mod_jk2 just never happened.
we built for solaris 8 on intel and apache 2.0.44-45, so let us know if you need the binary

filip

> -----Original Message-----
> From: John Turner [mailto:tomcat-user@johnturner.com]
> Sent: Tuesday, April 15, 2003 12:17 PM
> To: Tomcat Users List
> Subject: Re: Error building Tomcat on Solaris 8
> 
> 
> 
> 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 <br...@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:/o
> pt/jakarta- 
> >>
> >>
> >> ant-1.5.1/lib:/usr/local/apache/lib
> >> 
> MANPATH=/usr/local/man:/usr/local/apache/man:/usr/local/ssl/man:/o
> pt/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_if
mx/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.servi
> ce.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.servi
> ce.PoolTcpConnector>”> 
> >>
> >>
> >> <Parameter name=”handler” 
> >> value=”org.apache.tomcat.service.connector.Ajp13ConnectionHandler 
> >> 
> <http://bscw.telnor.com:81/Tecnologia/Jume/org.apache.tomcat.servi
> ce.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_scrip
> ts:/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_scrip
> ts:/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
> 
> 


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


Re: Error building Tomcat on Solaris 8

Posted by John Turner <to...@johnturner.com>.
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 <br...@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


Re: Error building Tomcat on Solaris 8

Posted by Ben Ricker <br...@wellinx.com>.
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
-- 
Ben Ricker <br...@wellinx.com>
Wellinx.com


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


Re: Error building Tomcat on Solaris 8

Posted by Julio César Mejia Vergara <ju...@telnor.com>.
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/

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


Re: Error building mod_jk on Solaris 8

Posted by Ben Ricker <br...@wellinx.com>.
Thanks for all the help. I used John Grivsky's suggestions on which pkgs
to install and used David Brownlee's suggestion on pathing /usr/ccs/bin
before /usr/local/bin. I got through the buildconf.sh and the configure.

However, I am failing with the following error, which looks like an
issue with the the configure's makefile:

gcc -I/usr/local/apache/include -g -O2 -DSOLARIS2=280 -DEAPI -O3 -g -O2 -I /include -I /include/ -c jk_context.c -o jk_context.o >/dev/null 2>&1
mv -f .libs/jk_context.lo jk_context.lo
Making all in apache-1.3
make: Fatal error in reader: Makefile, line 21: Unexpected end of line seen
Current working directory /home/admin/jakarta-tomcat-connectors-jk-1.2.2-src/jk/native/apache-1.3
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'

FYI, I also tried to use the apache source to build it (used
--with-apache) but got the same error.

Anyone?

Ben Ricker

On Tue, 2003-04-15 at 12:43, Ben Ricker wrote:
> Sorry! My previous email should have 'Tomcat' replaced by 'mod_jk' in
> the subject. Consider this the thread.
> 
> Ben Ricker
> 
> 
> On Tue, 2003-04-15 at 12:34, 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
-- 
Ben Ricker <br...@wellinx.com>
Wellinx.com


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


Re: Error building mod_jk on Solaris 8

Posted by Ben Ricker <br...@wellinx.com>.
Sorry! My previous email should have 'Tomcat' replaced by 'mod_jk' in
the subject. Consider this the thread.

Ben Ricker


On Tue, 2003-04-15 at 12:34, 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
-- 
Ben Ricker <br...@wellinx.com>
Wellinx.com


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