Re: Apache-tomcat via mod_jk configuration

2003-12-18 Thread Oscar Carrillo
Are you sure you meant httpd1?

The daemon script on my site is httpd.

The website explains a setup for Tomcat 4, not Tomcat 5. I don't know if 
there's any difference, but there may be.

I'm also confused as you apparently didn't copy your configuration into 
this post, you just copied most of the contents of my web page into it.

Oscar
http://daydream.stanford.edu/tomcat/install_web_services.html

On Wed, 17 Dec 2003 [EMAIL PROTECTED] wrote:

 Hi all,
 
  I've read a configuration of tomcat and apache
 (http://daydream.stanford.edu/tomcat/install_web_services.html ) over
 the last 4 days, and I've found much of what I need to be lacking
 
  After reading full documentation on the jakarta website about how the  server.xml 
 is organized for tomcat 4, I still have some
 questions...
 
  I will first explain the desired setup, then I will show what I have.  
 If you gracious folks can help me set this up, I will GLADLY set up a
 complete HOW-TO replicating the solution on my website for all the world
 to see. you knows you probably get a lot of questions about this.  My
 hope is to guide the user by the hand step by step for this complex
 process.  I have been using Tomcat 3 for a long time with mod_jk and
 have been very happy, but I now need the newer features of Tomcat 4.
 
  Here's the setup (everywhere hereafter, I've replaced the actual domain
 names with domainname for privacy...just know that everytime you see
 that, its actually a domain name, and ignore the   brackets
 
  Redhat Linux 9
  httpd-2.0.48
  / usr/loca/apache2
  Java   JDK 1.4.2_03 
---/usr/lcoal/java
  Tomcat 5.0.16  Light Edition (since I have jdk 1.4.2_03) .--/usr/local/tomcat
 mod_jk   
 /usr/lcoal/src/mod_jk
 
 my question is  there is httpd in linux 9 and postgresql  and i installed apache and 
 tomcat and psotgresql i added the httpd1 and tomcat  in sbin/chkconfig --add httpd1 
 amd tomcatd by using the configuration given in   
 http://daydream.stanford.edu/tomcat/install_web_services.html  site fullythen i 
 started the catalina_home /bin/startup.sh which was started in  command line  but i 
 am not able to get test page in Browser it tells that connection refused 
 
 i start by using httpd1 and tomcatd it shows that unreconized service
 
 please help to solve the problem  as soon as possible
 
 
 Thakning You
 Dhayalan.G
 
 
 #
 Configure Environment Variables
 Edit and add the lines below to /etc/profile
 Make sure you logout and login for this to take effect. If you're in XWindow you 
 might need to quit out of XWindow and exit primary shell. Then login again and start 
 XWindow again (startx). It's really good to get this straight from the beginning.
 JAVA_HOME=/usr/local/java/java
 CATALINA_HOME=/usr/local/tomcat
 PATH=$JAVA_HOME/bin:$PATH:$HOME/bin:/sbin:/usr/sbin
 CLASSPATH=$CATALINA_HOME/bin/bootstrap.jar:$JAVA_HOME/lib/tools.jar:$CATALINA_HOME/common/lib/servlet.jar:/usr/local/pgsql/share/java/postgresql.jar:../lib/struts.jar:.
 Now add the PATH JAVA_HOME CATALINA_HOME  CLASSPATH if any aren't in the export line
 export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC JAVA_HOME CATALINA_HOME 
 CLASSPATH
 This will output your environment variables
 env
 Install JAVA
 mkdir /usr/local/java
 cd /usr/local/java
 sh j2sdk-1_4_2-linux-i586.bin
 The jdk directory is then extracted
 mv j2sdk-1.4.2 /usr/local/java
 ln -s j2sdk1.4.2 java
 Now the java directory will be in /usr/local/java/java. I do it like this so I can 
 keep all my different JDKs/JREs in one directory and then just change the symbolic 
 link to point to the current one.
 Install Jakarta TOMCAT
 tar xvfz jakarta-tomcat-4.1.27.tar.gz
 mv jakarta-tomcat-4.1.27 /usr/local/
 cd /usr/local
 ln -s jakarta-tomcat-4.1.27 tomcat
 Install Jakarta ANT
 tar xvfz jakarta-ant-1.5.4
 mv jakarta-ant-1.5.4 /usr/local
 cd /usr/local
 ln -s jakarta-ant-1.5.4 ant
 ln -s /usr/local/ant/bin/ant /usr/local/bin/ant
 Install OPENSSL
 tar xvfz openssl-0.9.7c.tar.gz
 mv openssl-0.9.7c /usr/local/src/
 cd /usr/local/src/
 ln -s /usr/local/openssl-0.9.7c openssl
 cd openssl-0.9.7c
 ./config
 make
 make test
 make install #This will install in /usr/local/ssl
 Install APACHE
 tar xvfz httpd-2.0.47.tar.Z
 cd httpd-2.0.47
 ./configure --prefix=/usr/local/apache2 --enable-so --enable-rewrite \
 --enable-ssl --with-ssl=/usr/local/ssl --enable-proxy
 make
 make install #(places in /usr/local/apache2)
 Build/Install MOD_JK Connector
 Build mod_jk
 cd /usr/local/src/jakarta-tomcat-connectors-jk-1.2.4-src/jk/native
 ./buildconf.sh
 ./configure --with-apxs=/usr/local/apache2/bin/apxs
 make
 cp apache-2.0/mod_jk.so /usr/local/apache2/modules Installs mod_jk in correct 

RE: [SPAM] Re: Apache-tomcat via mod_jk configuration

2003-12-18 Thread dhayalan

Thats fine  Rethat hava its own httpd that why i  added in services httpd1 in 
/sbib/chkconfig  and tomcatd  but it tells that unregaconized service .

what can i do that for  

Can i delete httpd  

i can start in terminal $CATALINA/bin/startup.sh
but i am not able to do service httpd1 start
and service tomcatd start

which gives unregconzied services


pls help me resolve the problem


Thaking You
Dhayalan


  Original Message 
 Subject: [SPAM] Re: Apache-tomcat via mod_jk configuration
 From: Oscar Carrillo [EMAIL PROTECTED]
 Date: Wed, December 17, 2003 11:42 pm
 To: Tomcat Users List [EMAIL PROTECTED]
 
 Are you sure you meant httpd1?
 
 The daemon script on my site is httpd.
 
 The website explains a setup for Tomcat 4, not Tomcat 5. I don't know
 if 
 there's any difference, but there may be.
 
 I'm also confused as you apparently didn't copy your configuration into
 
 this post, you just copied most of the contents of my web page into
 it.
 
 Oscar
 http://daydream.stanford.edu/tomcat/install_web_services.html
 
 On Wed, 17 Dec 2003 [EMAIL PROTECTED] wrote:
 
  Hi all,
  
   I've read a configuration of tomcat and apache
  (http://daydream.stanford.edu/tomcat/install_web_services.html )
 over
  the last 4 days, and I've found much of what I need to be
 lacking
  
   After reading full documentation on the jakarta website about how
 the  server.xml is organized for tomcat 4, I still have some
  questions...
  
   I will first explain the desired setup, then I will show what I
 have.  
  If you gracious folks can help me set this up, I will GLADLY set up
 a
  complete HOW-TO replicating the solution on my website for all the
 world
  to see. you knows you probably get a lot of questions about this. 
 My
  hope is to guide the user by the hand step by step for this complex
  process.  I have been using Tomcat 3 for a long time with mod_jk and
  have been very happy, but I now need the newer features of Tomcat 4.
  
   Here's the setup (everywhere hereafter, I've replaced the actual
 domain
  names with domainname for privacy...just know that everytime you
 see
  that, its actually a domain name, and ignore the   brackets
  
   Redhat Linux 9
   httpd-2.0.48
 / usr/loca/apache2
   Java   JDK 1.4.2_03 
   ---/usr/lcoal/java
   Tomcat 5.0.16  Light Edition (since I have jdk 1.4.2_03)
 .--/usr/local/tomcat
  mod_jk   
/usr/lcoal/src/mod_jk
  
  my question is  there is httpd in linux 9 and postgresql  and i
 installed apache and tomcat and psotgresql i added the httpd1 and
 tomcat  in sbin/chkconfig --add httpd1 amd tomcatd by using the
 configuration given in  
 http://daydream.stanford.edu/tomcat/install_web_services.html  site
 fullythen i started the catalina_home /bin/startup.sh which was
 started in  command line  but i am not able to get test page in Browser
 it tells that connection refused 
  
  i start by using httpd1 and tomcatd it shows that unreconized
 service
  
  please help to solve the problem  as soon as possible
  
  
  Thakning You
  Dhayalan.G
  
  
  #
  Configure Environment Variables
  Edit and add the lines below to /etc/profile
  Make sure you logout and login for this to take effect. If you're in
 XWindow you might need to quit out of XWindow and exit primary shell.
 Then login again and start XWindow again (startx). It's really good to
 get this straight from the beginning.
  JAVA_HOME=/usr/local/java/java
  CATALINA_HOME=/usr/local/tomcat
  PATH=$JAVA_HOME/bin:$PATH:$HOME/bin:/sbin:/usr/sbin
 
 CLASSPATH=$CATALINA_HOME/bin/bootstrap.jar:$JAVA_HOME/lib/tools.jar:$CATALINA_HOME/common/lib/servlet.jar:/usr/local/pgsql/share/java/postgresql.jar:../lib/struts.jar:.
  Now add the PATH JAVA_HOME CATALINA_HOME  CLASSPATH if any aren't in
 the export line
  export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC JAVA_HOME
 CATALINA_HOME CLASSPATH
  This will output your environment variables
  env
  Install JAVA
  mkdir /usr/local/java
  cd /usr/local/java
  sh j2sdk-1_4_2-linux-i586.bin
  The jdk directory is then extracted
  mv j2sdk-1.4.2 /usr/local/java
  ln -s j2sdk1.4.2 java
  Now the java directory will be in /usr/local/java/java. I do it like
 this so I can keep all my different JDKs/JREs in one directory and then
 just change the symbolic link to point to the current one.
  Install Jakarta TOMCAT
  tar xvfz jakarta-tomcat-4.1.27.tar.gz
  mv jakarta-tomcat-4.1.27 /usr/local/
  cd /usr/local
  ln -s jakarta-tomcat-4.1.27 tomcat
  Install Jakarta ANT
  tar xvfz jakarta-ant-1.5.4
  mv jakarta-ant-1.5.4 /usr/local
  cd /usr/local
  ln -s jakarta-ant-1.5.4 ant
  ln -s /usr/local/ant/bin/ant /usr/local/bin/ant
  Install OPENSSL
  tar xvfz openssl

Apache-tomcat via mod_jk configuration

2003-12-17 Thread dhayalan
Hi all,

 I've read a  configuration of tomcat and apache 
(http://daydream.stanford.edu/tomcat/install_web_services.html ) over the last 4 days, 
and I've found much of  what I need to be lacking

 After reading full documentation on the jakarta website about how the  server.xml is 
organized for tomcat 4, I still have some
questions...

 I will first explain the desired setup, then I will show what I have.  If you 
gracious folks can help me set this up, I will GLADLY
set up a  complete HOW-TO replicating the solution on my website for all the world to  
see. you knows you probably get a lot of questions about this.  My hope is  to guide 
the user by the hand step by step for this complex process.  I have  been using Tomcat 
3 for a long time with mod_jk and have been very happy,  but I now need the newer 
features of Tomcat 4.

 Here's the setup (everywhere hereafter, I've replaced the  actual domain  names with 
domainname for privacy...just know that everytime you see that, its actually a 
domain name, and ignore the   brackets

 Redhat Linux 9
 httpd-2.0.48  
   / usr/loca/apache2
 Java   JDK 1.4.2_03   
 ---/usr/lcoal/java
 Tomcat 5.0.16  Light Edition (since I have jdk 1.4.2_03) .--/usr/local/tomcat
mod_jk 
  /usr/lcoal/src/mod_jk

my question is  there is httpd in linux 9 and postgresql  and i installed apache and 
tomcat and psotgresql i added the httpd1 and tomcat  in sbin/chkconfig --add httpd1 
amd tomcatd by using the configuration given in   
http://daydream.stanford.edu/tomcat/install_web_services.html  site fullythen i 
started the catalina_home /bin/startup.sh which was started in  command line  but i am 
not able to get test page in Browser it tells that connection refused 

i start by using httpd1 and tomcatd it shows that unreconized service

please help to solve the problem  as soon as possible


Thakning You
Dhayalan.G


#
Configure Environment Variables
Edit and add the lines below to /etc/profile
Make sure you logout and login for this to take effect. If you're in XWindow you might 
need to quit out of XWindow and exit primary shell. Then login again and start XWindow 
again (startx). It's really good to get this straight from the beginning.
JAVA_HOME=/usr/local/java/java
CATALINA_HOME=/usr/local/tomcat
PATH=$JAVA_HOME/bin:$PATH:$HOME/bin:/sbin:/usr/sbin
CLASSPATH=$CATALINA_HOME/bin/bootstrap.jar:$JAVA_HOME/lib/tools.jar:$CATALINA_HOME/common/lib/servlet.jar:/usr/local/pgsql/share/java/postgresql.jar:../lib/struts.jar:.
Now add the PATH JAVA_HOME CATALINA_HOME  CLASSPATH if any aren't in the export line
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC JAVA_HOME CATALINA_HOME 
CLASSPATH
This will output your environment variables
env
Install JAVA
mkdir /usr/local/java
cd /usr/local/java
sh j2sdk-1_4_2-linux-i586.bin
The jdk directory is then extracted
mv j2sdk-1.4.2 /usr/local/java
ln -s j2sdk1.4.2 java
Now the java directory will be in /usr/local/java/java. I do it like this so I can 
keep all my different JDKs/JREs in one directory and then just change the symbolic 
link to point to the current one.
Install Jakarta TOMCAT
tar xvfz jakarta-tomcat-4.1.27.tar.gz
mv jakarta-tomcat-4.1.27 /usr/local/
cd /usr/local
ln -s jakarta-tomcat-4.1.27 tomcat
Install Jakarta ANT
tar xvfz jakarta-ant-1.5.4
mv jakarta-ant-1.5.4 /usr/local
cd /usr/local
ln -s jakarta-ant-1.5.4 ant
ln -s /usr/local/ant/bin/ant /usr/local/bin/ant
Install OPENSSL
tar xvfz openssl-0.9.7c.tar.gz
mv openssl-0.9.7c /usr/local/src/
cd /usr/local/src/
ln -s /usr/local/openssl-0.9.7c openssl
cd openssl-0.9.7c
./config
make
make test
make install #This will install in /usr/local/ssl
Install APACHE
tar xvfz httpd-2.0.47.tar.Z
cd httpd-2.0.47
./configure --prefix=/usr/local/apache2 --enable-so --enable-rewrite \
--enable-ssl --with-ssl=/usr/local/ssl --enable-proxy
make
make install #(places in /usr/local/apache2)
Build/Install MOD_JK Connector
Build mod_jk
cd /usr/local/src/jakarta-tomcat-connectors-jk-1.2.4-src/jk/native
./buildconf.sh
./configure --with-apxs=/usr/local/apache2/bin/apxs
make
cp apache-2.0/mod_jk.so /usr/local/apache2/modules Installs mod_jk in correct location
Configure Apache for mod_jk
I put these lines in http.conf just before NameVirtualHost
IfModule !mod_jk.c
  LoadModule jk_module modules/mod_jk.so
/IfModule
Configure APACHE/NON-SSL

   1. mkdir /usr/local/http_nonsecure 

* #Look for similar lines.
* #Make sure you have lines that say this in conf/http.conf:
* Listen myhost.mydomain:80

* #Same with this line:
* #Make sure you do this line because it will listen
* #and try to do http on the https port as well.
* ServerName myhost.mydomain:80