Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Apache2.0.47-Tomcat5.5.4 Integration Problem

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  anybody using mod_ruid?  
Author Message
atandon

External


Since: Dec 24, 2004
Posts: 4



(Msg. 1) Posted: Fri Dec 24, 2004 5:32 am
Post subject: Apache2.0.47-Tomcat5.5.4 Integration Problem
Archived from groups: alt>apache>configuration (more info?)

Hi Everybody,

I am trying to integrate the Apache Ver 2.0.47 and Tomcat 5.5.4
using the jk connector Version 1.2.5 (downloaded binary from tomcat
site) on Solaris. I am using Apache with mod_ssl.

I have configured the jk connector in the following way:

httpd.conf:
~~~~~~~~~~~
Uncomment the Servername and set it to my mchine name.
Set UseCanonicalName to On
include $CATALINA_HOME//conf/auto/mod_jk.conf at the last.
[The mod_jk.conf file is manually written.]

ssl.conf
~~~~~~~~
Set the Listen port to 8443
Change the line <VirtualHost _default_:443> to <VirtualHost
_default_:8443>
Set the ServerName to my machine name.

mod_jk.conf
~~~~~~~~~~~
The contenets of mod_jk.conf are as follows:
///////////////////////////////////////////////////////////
# Load mod_jk
LoadModule jk_module modules/mod_jk.so

# Configure mod_jk
JkWorkersFile
/wds_binaries/jakarta-tomcat-5.5.4/conf/jk/workers.properties
JkLogFile /wds_binaries/apache2/logs/mod_jk.log
JkLogLevel debug
#JkRequestLogFormat "%H %m %p %q %r % U %v %V %w"

Alias /examples/
"/wds_binaries/jakarta-tomcat-5.5.4/webapps/servlets-examples/"
<Directory
"/wds_binaries/jakarta-tomcat-5.5.4/webapps/servlets-examples/">
Options Indexes FollowSymLinks
AllowOverride None
Allow from all
</Directory>

JkMount /examples/* testWorker1
JkMount /examples/*.jsp testWorker1
JkMount /examples/servlet/* testWorker1
////////////////////////////////////////////////////////////////

worker.properties:
~~~~~~~~~~~~~~~~~
///////////////////////////////////////////////////////////
# Setting Tomcat And Java Home
workers.tomcat_home=/wds_binaries/jakarta-tomcat-5.5.4
workers.java_home=/wds_latest/jdk1.5.0_01
ps = /
worker.list=testWorker1
# Settings for tertWorker1 worker
worker.testWorker1.port=8009
worker.testWorker1.host=my_mchine_name
worker.testworker1.type=ajp13
/////////////////////////////////////////////////////////////

server.xml
~~~~~~~~~~
I have tried following definitions of connectors one by one:
//////////////////////////////////////////////////////////////
<Connector port="8009"
enableLookups="false" redirectPort="8443"
protocol="AJP/1.3" debug="4" />
**************************************************************
<Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
port="8009"
minProcessors="5"
maxProcessors="75"
acceptCount="10"
debug="4"
enableLookups="false"
redirectPort="8443"
protocol="AJP/1.3"/>
////////////////////////////////////////////////////////////////

Changed the localHost to my_machine_name.

Added the context for examples:
<Context path="/examples" debug="0" privileged="true"

docBase="/wds_binaries/jakarta-tomcat-5.5.4/webapps/servlets-examples">

Created a new file called example.xml and put it in
$CATALINA_HOME/conf/Catalina/my_mc_name/

The contents of that file is as follows:
/////////////////////////////////////////////////
<Context
docBase="/wds_binaries/jakarta-tomcat-5.5.4/webapps/servlets-examples"
privileged="true" antiResourceLocking="false"
antiJARLocking="false">

<!-- Link to the user database we will get roles from -->
<ResourceLink name="users" global="UserDatabase"
type="org.apache.catalina.UserDatabase"/>

</Context>
/////////////////////////////////////////////////

Now when I access my apache web server from browser by giving command
https://my_machine_name:8443, it opened the page successfully.

But when I tried https://my_machine_name:8443/examples or
https://my_machine_name:8443/examples/some_html_file.htm then in
catalina.out I got

Dec 24, 2004 5:00:45 PM org.apache.jk.common.MsgAjp processHeader
SEVERE: BAD packet signature 256

I am wondering why it is coming.

I want to use jk connector only with this.

Why I am getting this error. Apache is able to make the connection with
Tomcat but why error is coming?

One thing more:
I have to put my class files in the the servlets-examples directory
under classes. Do I need to do something extra for this? I have already
added the context in server.xml as described above.
I haven't change any web.xml file.

Regards
Abhishek

 >> Stay informed about: Apache2.0.47-Tomcat5.5.4 Integration Problem 
Back to top
Login to vote
atandon

External


Since: Dec 24, 2004
Posts: 4



(Msg. 2) Posted: Fri Dec 24, 2004 5:50 am
Post subject: Re: Apache2.0.47-Tomcat5.5.4 Integration Problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks for the reply Davide.
But why it is required? Is there any restriction for Apache 2 that it
will only work with jk2? I tried out with JK2 but with that also I am
getting the same problem.

Regards
Abhishek

 >> Stay informed about: Apache2.0.47-Tomcat5.5.4 Integration Problem 
Back to top
Login to vote
atandon

External


Since: Dec 24, 2004
Posts: 4



(Msg. 3) Posted: Fri Dec 24, 2004 6:43 am
Post subject: Re: Apache2.0.47-Tomcat5.5.4 Integration Problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Ok. I will try to do it again and then let you know the results.
Anyways Merry Christams.
 >> Stay informed about: Apache2.0.47-Tomcat5.5.4 Integration Problem 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 4) Posted: Fri Dec 24, 2004 9:35 am
Post subject: Re: Apache2.0.47-Tomcat5.5.4 Integration Problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2004-12-24, Somu <atandon RemoveThis @ipolicynet.com> wrote:
 > I am trying to integrate the Apache Ver 2.0.47 and Tomcat 5.5.4
 > using the jk connector Version 1.2.5 (downloaded binary from tomcat

You need jk2 for Apache2.
Davide

--
So what is the best way to protect yourself against the ILOVEYOU virus? Install
Linux. If that's not an option, try uninstalling Windows.
-- Geoff Johnson<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Apache2.0.47-Tomcat5.5.4 Integration Problem 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 5) Posted: Fri Dec 24, 2004 9:35 am
Post subject: Re: Apache2.0.47-Tomcat5.5.4 Integration Problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2004-12-24, Somu <atandon RemoveThis @ipolicynet.com> wrote:
 > But why it is required? Is there any restriction for Apache 2 that it
 > will only work with jk2?

Afaik you can use Jk2 with Apache 1.x but you can't use Jk1 with apache2.
Jk2 have been written with Apache 2 in mind (this is what they say).

Davide

--
When you need a helpline for breakfast cereals, it's time to start
thinking about tearing down civilisation and giving the ants a go.
--Chris King<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Apache2.0.47-Tomcat5.5.4 Integration Problem 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
mod_jk2 error on tomcat5, apache2, and redhat9 - i am using redhat 9 with its standard apache 2.0.40 from (httpd-2.0.40-21.9). i am attempting to get tomcat 5.0.18 with mod_jk2-2.0.4-2jpp.rpm to connect to the apache server. however i get the error [error] jk2_init() Can't find child 16367 in..

Apache2/Tomcat5 - mapping static pages to apache - I'm using Tomcat5 to serve my webapps and have connected Tomcat to Apache2. By now all requests to my site are processed by Tomcat through Apache but I would like Apache to take care of the static pages. My workers2.properties shows that all requests..

apache2.0.48 and php 4.3.4 problem. - Having some issues installing php after i've installed apache. The problem is make install fails due to error initializing something in apxs. Apache installs fine. linux 2.4.xx gcc 3.3.3 apache 2.0.48 ( built with ./configure --enable-dav --with-ssl..

Apache2 SSL problem - Hello, I have spent the past few weeks trying to get SSL working on Suse Enterprise server 9.1 with Apache 2. I have followed several guides all of which were pretty similar give or take an item or two. I have made sure that /etc/sysconfig/apache2 has..

Problem with restarting apache2 - Hello, I installed on my RH7.3 following software: Apache 2.0.49 mod_ssl 2.0.49 OpenSSL 0.9.6b PHP 4.3.6 Problem is with restart apache2 serwer. Everytime (during restarting) I get errors: [notice] SIGHUP received. Attempting to restart [notice] seg....
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]