Apache2...TC4.1.30...mod_jk odd behavior

2005-08-17 Thread Chris Pat
Hello
I am getting odd behavior w/TC4.1.30 and the
configurations below.  
www.vhost01.com  www.vhost01.com/hello.jsp work and
as expected
www.vhost02.com  www.vhost02.com/sb/hello.jsp work
NOT as expected.  As implied in the server.xml
snipette the tomcat serving directory is the typical
/webapps/op for vhost01  /webapps/sb for vhost02.
(Its a perverse mgt story why they are not vhost01 
vhost02).  The configs are, afaiks, identical
parameterized as needed.  www.vhost02.com/hello.jsp
should work.  Ideas?  tia


httpd.conf
VirtualHost 192.168.2.100
ServerName www.vhost01.com
ServerAdmin [EMAIL PROTECTED]
DocumentRoot D:/Projects01/vhost01/site
ErrorLog D:/Projects01/vhost01/logs/error_log
CustomLog D:/Projects01/vhost01/logs/access_log
common
JkMount /*.jsp connect_cp   
JkMount /servlet/* connect_cp


/VirtualHost

VirtualHost 192.168.2.100
ServerName www.vhost02.com
ServerAdmin [EMAIL PROTECTED]
DocumentRoot D:/Projects01/vhost02/site
ErrorLog D:/Projects01/vhost02/logs/error_log
CustomLog D:/Projects01/vhost02/logs/access_log
common
JkMount /*.jsp connect_sb
JkMount /servlet/* connect_sb

/VirtualHost

server.xml
 Host name=www.vhost01.com debug=0
unpackWARs=true
Logger
className=org.apache.catalina.logger.FileLogger
 directory=logs  prefix=op.
suffix=.txt timestamp=true/
Context path= docBase=webapps/op
debug=1 appBase=webapps/op reloadable=true/
Valve
className=org.apache.catalina.valves.AccessLogValve
 directory=logs 
prefix=virtual_log. suffix=.txt
 pattern=common/
/Host 
Host name=www.vhost02.com debug=0
unpackWARs=true
Logger
className=org.apache.catalina.logger.FileLogger
 directory=logs  prefix=sb.
suffix=.txt timestamp=true/
Context path= docBase=webapps/sb
debug=1 appBase=webapps/sb reloadable=true/
Valve
className=org.apache.catalina.valves.AccessLogValve
 directory=logs 
prefix=virtual_log. suffix=.txt
 pattern=common/
/Host 

properties
workers.tomcat_home E:\Program Files\Tomcat 4.1
workers.java_home=$JAVA_HOME
ps\
worker.list=ajp12, ajp13, connect_cp, connect_sb
worker.connect_cp.port=8009
worker.connect_cp.host=www.vhost01.com
worker.connect_cp.type=ajp13

worker.connect_sb.port=8009
worker.connect_sb.host=www.vhost02.com
worker.connect_sb.type=ajp13

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Apache2/Tomcat55/mod_jk and Sticky Sessions

2005-07-19 Thread Dave Morrow
Thanks. That's actually the document I used as a reference.  I actually
fixed the issue.  The document references an Engine named Standalone
in the server.xml. With tomcat 5.5 I had to change the engine name is
Catalina 


David A. Morrow
Technical Systems Lead
Autodata Solutions Company
[EMAIL PROTECTED]
http://www.autodata.net
Tel: (519) 951-6079
Fax: (519) 451-6615 

 Poor planning on your part does not necessarily constitute an
emergency on my part! 

This message has originated from Autodata Solutions. The attached
material is the Confidential and Proprietary Information of Autodata
Solutions. This email and any files transmitted with it are confidential
and intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please delete
this message and notify the Autodata system administrator at
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

-Original Message-
From: Robert F Hall [mailto:[EMAIL PROTECTED] 
Sent: Saturday, July 16, 2005 7:26 PM
To: Tomcat Users List
Subject: Re: Apache2/Tomcat55/mod_jk and Sticky Sessions

Dave,

Try a Google search for: Apache httpd sticky sessions.
One result that looks particularly useful:
http://raibledesigns.com/tomcat/

-Robert

Dave Morrow wrote:

Hi all.  I am attempting to setup a loadbalanced set of Tomcat5.5
servers behind an Apache2 server using mod_jk.  The application
developers have told me that the app will require sticky sessions.  I
have it all configured and working with the exception of the sticky
sessions.  I think my workers.properties is correct so there must be
something I am missing.  For testing, I created a JSP in the ROOT
application of each of the Tomcat servers which simply displays the
server name and SessionID.  The loadbalancing is working, but instead of
maintaining a session, it's flip-flopping between servers and thus
changing session ID's.

My workers.properties contains (note the localhost is in the opposite 
place on the other server);

worker.list= qatomcat1, qatomcat2, loadbalancer #
worker.qatomcat1.port=8009
worker.qatomcat1.host=qahost1
worker.qatomcat1.type=ajp13
worker.qatomcat1.lbfactor=100
worker.qatomcat1.local=0
#
worker.qatomcat2.port=8009
worker.qatomcat2.host=localhost
worker.qatomcat2.type=ajp13
worker.qatomcat2.lbfactor=100
worker.qatomcat2.local=1


David A. Morrow
Technical Systems Lead
Autodata Solutions Company
[EMAIL PROTECTED]
http://www.autodata.net
Tel: (519) 951-6079
Fax: (519) 451-6615

 Poor planning on your part does not necessarily constitute an 
emergency on my part! 

This message has originated from Autodata Solutions. The attached 
material is the Confidential and Proprietary Information of Autodata 
Solutions. This email and any files transmitted with it are 
confidential and intended solely for the use of the individual or 
entity to whom they are addressed. If you have received this email in 
error please delete this message and notify the Autodata system 
administrator at [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]


  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Apache2/Tomcat55/mod_jk and Sticky Sessions

2005-07-16 Thread Dave Morrow
Hi all.  I am attempting to setup a loadbalanced set of Tomcat5.5 servers 
behind an Apache2 server using mod_jk.  The application developers have told me 
that the app will require sticky sessions.  I have it all configured and 
working with the exception of the sticky sessions.  I think my 
workers.properties is correct so there must be something I am missing.  For 
testing, I created a JSP in the ROOT application of each of the Tomcat servers 
which simply displays the server name and SessionID.  The loadbalancing is 
working, but instead of maintaining a session, it's flip-flopping between 
servers and thus changing session ID's.

My workers.properties contains (note the localhost is in the opposite place on 
the other server);

worker.list= qatomcat1, qatomcat2, loadbalancer #
worker.qatomcat1.port=8009
worker.qatomcat1.host=qahost1
worker.qatomcat1.type=ajp13
worker.qatomcat1.lbfactor=100
worker.qatomcat1.local=0
#
worker.qatomcat2.port=8009
worker.qatomcat2.host=localhost
worker.qatomcat2.type=ajp13
worker.qatomcat2.lbfactor=100
worker.qatomcat2.local=1


David A. Morrow
Technical Systems Lead
Autodata Solutions Company
[EMAIL PROTECTED]
http://www.autodata.net
Tel: (519) 951-6079
Fax: (519) 451-6615 

 Poor planning on your part does not necessarily constitute an emergency on my 
part! 

This message has originated from Autodata Solutions. The attached material is 
the Confidential and Proprietary Information of Autodata Solutions. This email 
and any files transmitted with it are confidential and intended solely for the 
use of the individual or entity to whom they are addressed. If you have 
received this email in error please delete this message and notify the Autodata 
system administrator at [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]



Re: Apache2/Tomcat55/mod_jk and Sticky Sessions

2005-07-16 Thread Robert F Hall

Dave,

Try a Google search for: Apache httpd sticky sessions.
One result that looks particularly useful: http://raibledesigns.com/tomcat/

-Robert

Dave Morrow wrote:


Hi all.  I am attempting to setup a loadbalanced set of Tomcat5.5 servers 
behind an Apache2 server using mod_jk.  The application developers have told me 
that the app will require sticky sessions.  I have it all configured and 
working with the exception of the sticky sessions.  I think my 
workers.properties is correct so there must be something I am missing.  For 
testing, I created a JSP in the ROOT application of each of the Tomcat servers 
which simply displays the server name and SessionID.  The loadbalancing is 
working, but instead of maintaining a session, it's flip-flopping between 
servers and thus changing session ID's.

My workers.properties contains (note the localhost is in the opposite place on 
the other server);

worker.list= qatomcat1, qatomcat2, loadbalancer #
worker.qatomcat1.port=8009
worker.qatomcat1.host=qahost1
worker.qatomcat1.type=ajp13
worker.qatomcat1.lbfactor=100
worker.qatomcat1.local=0
#
worker.qatomcat2.port=8009
worker.qatomcat2.host=localhost
worker.qatomcat2.type=ajp13
worker.qatomcat2.lbfactor=100
worker.qatomcat2.local=1


David A. Morrow
Technical Systems Lead
Autodata Solutions Company
[EMAIL PROTECTED]
http://www.autodata.net
Tel: (519) 951-6079
Fax: (519) 451-6615 


 Poor planning on your part does not necessarily constitute an emergency on my 
part! 

This message has originated from Autodata Solutions. The attached material is the 
Confidential and Proprietary Information of Autodata Solutions. This email and any 
files transmitted with it are confidential and intended solely for the use of the 
individual or entity to whom they are addressed. If you have received this email in 
error please delete this message and notify the Autodata system administrator at 
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]


 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Apache2+Tomcat5.5+mod_jk loadbalancing: Sticky sessions not working

2005-05-12 Thread Mladen Turk
Hi,
What is your session timeout on tomcat?
It might be that the session simply times out,
so the next tomcat is elected from the load
balancer.
Regards,
Mladen.
Edlira Kumbarÿe7e wrote:
Hello,
It
doesn't seem to work. Each time I refresh the page, it
get served from the same tomcat a couple of times,
then it gets served from the other tomcat, stays on
that tomcat a couple of refresh hits and then swiches
again. I can't see a pattern or figure out why this is
happening.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Apache2+Tomcat5.5+mod_jk loadbalancing: Sticky sessions not working

2005-05-12 Thread Kumbarÿffffffffffffffffe7e
Thank you for your reply.
I don't think it's the session timeout on tomcat
because, as I said in my previous message,I don't see
a pattern in the time pages are served from the same
tomcat. In other words, a page gets served from
tomcat1 maybe 4 times (each page refresh), then 2
times from tomcat2, then 3 times from tomcat1, without
a specific pattern.
Here's my tomcat1 server.xml file, if you can take a
look at it:
!-- Example Server Configuration File --
!-- Note that component elements are nested
corresponding to their
 parent-child relationships with each other --

!-- A Server is a singleton element that represents
the entire JVM,
 which may contain one or more Service
instances.  The Server
 listens for a shutdown command on the indicated
port.

 Note:  A Server is not itself a Container, so
you may not
 define subcomponents such as Valves or
Loggers at this level.
 --

Server port=8005 shutdown=SHUTDOWN
!-- Listener
className=org.apache.jk.config.ApacheConfig
modJk=C:/Program Files/Apache
Group/Apache2/modules/mod_jk.so /--

  !-- Comment these entries out to disable JMX MBeans
support used for the 
   administration web application --
  Listener
className=org.apache.catalina.mbeans.ServerLifecycleListener
/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
/
  Listener
className=org.apache.catalina.storeconfig.StoreConfigLifecycleListener/

  !-- Global JNDI resources --
  GlobalNamingResources

!-- Test entry for demonstration purposes --
Environment name=simpleValue
type=java.lang.Integer value=30/

!-- Editable user database that can also be used
by
 UserDatabaseRealm to authenticate users --
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated
and saved
  
factory=org.apache.catalina.users.MemoryUserDatabaseFactory
  pathname=conf/tomcat-users.xml /

  /GlobalNamingResources

  !-- A Service is a collection of one or more
Connectors that share
   a single Container (and therefore the web
applications visible
   within that Container).  Normally, that
Container is an Engine,
   but this is not required.

   Note:  A Service is not itself a Container,
so you may not
   define subcomponents such as Valves or
Loggers at this level.
   --

  !-- Define the Tomcat Stand-Alone Service --
  Service name=Catalina

!-- A Connector represents an endpoint by which
requests are received
 and responses are returned.  Each Connector
passes requests on to the
 associated Container (normally an Engine)
for processing.

 By default, a non-SSL HTTP/1.1 Connector is
established on port 8080.
 You can also enable an SSL HTTP/1.1 Connector
on port 8443 by
 following the instructions below and
uncommenting the second Connector
 entry.  SSL support requires the following
steps (see the SSL Config
 HOWTO in the Tomcat 5 documentation bundle
for more detailed
 instructions):
 * If your JDK version 1.3 or prior, download
and install JSSE 1.0.2 or
   later, and put the JAR files into
$JAVA_HOME/jre/lib/ext.
 * Execute:
 %JAVA_HOME%\bin\keytool -genkey -alias
tomcat -keyalg RSA (Windows)
 $JAVA_HOME/bin/keytool -genkey -alias
tomcat -keyalg RSA  (Unix)
   with a password value of changeit for
both the certificate and
   the keystore itself.

 By default, DNS lookups are enabled when a
web application calls
 request.getRemoteHost().  This can have an
adverse impact on
 performance, so you can disable it by setting
the
 enableLookups attribute to false.  When
DNS lookups are disabled,
 request.getRemoteHost() will return the
String version of the
 IP address of the remote client.
--

!-- Define a non-SSL HTTP/1.1 Connector on port
8080 --

Connector port=8080 maxHttpHeaderSize=8192
   maxThreads=150 minSpareThreads=25
maxSpareThreads=75
   enableLookups=false
redirectPort=8443 acceptCount=100
   connectionTimeout=2
disableUploadTimeout=true /

!-- Note : To disable connection timeouts, set
connectionTimeout value
 to 0 --

!-- Note : To use gzip compression you could set the
following properties :

   compression=on 
   compressionMinSize=2048 
   noCompressionUserAgents=gozilla, traviata 
   compressableMimeType=text/html,text/xml
--

!-- Define a SSL HTTP/1.1 Connector on port 8443
--
!--
Connector port=8443 maxHttpHeaderSize=8192
   maxThreads=150 minSpareThreads=25
maxSpareThreads=75
   enableLookups=false
disableUploadTimeout=true
   acceptCount=100 scheme=https
secure=true
   

Re: Apache2+Tomcat5.5+mod_jk loadbalancing: Sticky sessions not working

2005-05-12 Thread Mladen Turk
Edlira Kumbarÿe7e wrote:
I don't think it's the session timeout on tomcat
because, as I said in my previous message,I don't see
a pattern in the time pages are served from the same
tomcat. In other words, a page gets served from
tomcat1 maybe 4 times (each page refresh), then 2
times from tomcat2, then 3 times from tomcat1, without
a specific pattern.
Really have no idea.
What version of mod_jk you are using?
Regards,
Mladen.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Apache2+Tomcat5.0.19+mod_jk+windows loadbalancing

2005-05-12 Thread Rehman Adil \(KI/EAB\)
Hi

I am trying to use Apache 2.0 on windows to load balance three tomcat
workers using  mod_jk(mod_jk_1.2.6_2.0.50.dll).
When I browse the URL  (http://localhost/jsp-examples/index.jsp), Apache
does not forward the request as I get the following in the Apache log file.

File does not exist: C:/apache/Apache2/htdocs/jsp-examples/index.jsp

This means that Apache is not delegating the request to the tomcat workers.
Although, I have defined the jsp-examples context in the 
conf/workers2.properties
file like  this:

# Map the Tomcat jsp-examples webapp to the Web server uri space
[uri:/jsp-examples/*.jsp]
info=mapping the jsp-examples context of Tomcat
context=/jsp-examples
group=balanced

In each Tomcat worker, I have a jk2.properties file with different ports,
which looks like this.

channelSocket.port=8009
channelSocket.address=localhost
shm.file=c:/cluster/apache/jk2.shm

Any help will be HIGHLY appreciated.
Please have a quick look on the attached files.
Note that I am doing it on Windows 2000. workers2.properties and httpd.conf are 
in conf folder of apache.
I have also attached the server.xml and jk.properties file, server.xml and 
web.xml which 
are present on each tomcat worker with the only difference of port number becoz 
I am trying all the Tomcat workers
on one machine.

Any clue ? What could be the reason ?

Regards,
Rehman Adil

!-- Example Server Configuration File --
!-- Note that component elements are nested corresponding to their
 parent-child relationships with each other --

!-- A Server is a singleton element that represents the entire JVM,
 which may contain one or more Service instances.  The Server
 listens for a shutdown command on the indicated port.

 Note:  A Server is not itself a Container, so you may not
 define subcomponents such as Valves or Loggers at this level.
 --

Server port=8005 shutdown=SHUTDOWN debug=0


  !-- Comment these entries out to disable JMX MBeans support --
  !-- You may also configure custom components (e.g. Valves/Realms) by 
   including your own mbean-descriptor file(s), and setting the 
   descriptors attribute to point to a ';' seperated list of paths
   (in the ClassLoader sense) of files to add to the default list.
   e.g. descriptors=/com/myfirm/mypackage/mbean-descriptor.xml
  --
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
  Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/

  !-- Global JNDI resources --
  GlobalNamingResources

!-- Test entry for demonstration purposes --
Environment name=simpleValue type=java.lang.Integer value=30/

!-- Editable user database that can also be used by
 UserDatabaseRealm to authenticate users --
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
/Resource
ResourceParams name=UserDatabase
  parameter
namefactory/name
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams

  /GlobalNamingResources

  !-- A Service is a collection of one or more Connectors that share
   a single Container (and therefore the web applications visible
   within that Container).  Normally, that Container is an Engine,
   but this is not required.

   Note:  A Service is not itself a Container, so you may not
   define subcomponents such as Valves or Loggers at this level.
   --

  !-- Define the Tomcat Stand-Alone Service --
  Service name=Catalina

!-- A Connector represents an endpoint by which requests are received
 and responses are returned.  Each Connector passes requests on to the
 associated Container (normally an Engine) for processing.

 By default, a non-SSL HTTP/1.1 Connector is established on port 8080.
 You can also enable an SSL HTTP/1.1 Connector on port 8443 by
 following the instructions below and uncommenting the second Connector
 entry.  SSL support requires the following steps (see the SSL Config
 HOWTO in the Tomcat 5 documentation bundle for more detailed
 instructions):
 * If your JDK version 1.3 or prior, download and install JSSE 1.0.2 or
   later, and put the JAR files into $JAVA_HOME/jre/lib/ext.
 * Execute:
 %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows)
 $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA  (Unix)
   with a password value of changeit for both the certificate and
   the keystore itself.

 By default, DNS lookups are enabled when a web application calls
 request.getRemoteHost().  This can have an adverse impact on
 performance, so you can disable it by setting 

Apache2+Tomcat5.0.19+mod_jk+windows loadbalancing

2005-05-12 Thread Rehman Adil \(KI/EAB\)



Hi

I am trying to use Apache 2.0 on windows to load balance three tomcat
workers using  mod_jk(mod_jk_1.2.6_2.0.50.dll).
When I browse the URL  (http://localhost/jsp-examples/index.jsp), Apache
does not forward the request as I get the following in the Apache log file.

File does not exist: C:/apache/Apache2/htdocs/jsp-examples/index.jsp

This means that Apache is not delegating the request to the tomcat workers.
Although, I have defined the jsp-examples context in the 
conf/workers2.properties
file like  this:

# Map the Tomcat jsp-examples webapp to the Web server uri space
[uri:/jsp-examples/*.jsp]
info=mapping the jsp-examples context of Tomcat
context=/jsp-examples
group=balanced

In each Tomcat worker, I have a jk2.properties file with different ports,
which looks like this.

channelSocket.port=8009
channelSocket.address=localhost
shm.file=c:/cluster/apache/jk2.shm

Any help will be HIGHLY appreciated.
Please have a quick look on the attached files.
Note that I am doing it on Windows 2000. workers2.properties and httpd.conf are 
in conf folder of apache.
I have also attached the server.xml and jk.properties file, server.xml and 
web.xml which 
are present on each tomcat worker with the only difference of port number becoz 
I am trying all the Tomcat workers
on one machine.

Any clue ? What could be the reason ?

Regards,
Rehman Adil

!-- Example Server Configuration File --
!-- Note that component elements are nested corresponding to their
 parent-child relationships with each other --

!-- A Server is a singleton element that represents the entire JVM,
 which may contain one or more Service instances.  The Server
 listens for a shutdown command on the indicated port.

 Note:  A Server is not itself a Container, so you may not
 define subcomponents such as Valves or Loggers at this level.
 --

Server port=8005 shutdown=SHUTDOWN debug=0


  !-- Comment these entries out to disable JMX MBeans support --
  !-- You may also configure custom components (e.g. Valves/Realms) by 
   including your own mbean-descriptor file(s), and setting the 
   descriptors attribute to point to a ';' seperated list of paths
   (in the ClassLoader sense) of files to add to the default list.
   e.g. descriptors=/com/myfirm/mypackage/mbean-descriptor.xml
  --
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
  Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/

  !-- Global JNDI resources --
  GlobalNamingResources

!-- Test entry for demonstration purposes --
Environment name=simpleValue type=java.lang.Integer value=30/

!-- Editable user database that can also be used by
 UserDatabaseRealm to authenticate users --
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
/Resource
ResourceParams name=UserDatabase
  parameter
namefactory/name
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams

  /GlobalNamingResources

  !-- A Service is a collection of one or more Connectors that share
   a single Container (and therefore the web applications visible
   within that Container).  Normally, that Container is an Engine,
   but this is not required.

   Note:  A Service is not itself a Container, so you may not
   define subcomponents such as Valves or Loggers at this level.
   --

  !-- Define the Tomcat Stand-Alone Service --
  Service name=Catalina

!-- A Connector represents an endpoint by which requests are received
 and responses are returned.  Each Connector passes requests on to the
 associated Container (normally an Engine) for processing.

 By default, a non-SSL HTTP/1.1 Connector is established on port 8080.
 You can also enable an SSL HTTP/1.1 Connector on port 8443 by
 following the instructions below and uncommenting the second Connector
 entry.  SSL support requires the following steps (see the SSL Config
 HOWTO in the Tomcat 5 documentation bundle for more detailed
 instructions):
 * If your JDK version 1.3 or prior, download and install JSSE 1.0.2 or
   later, and put the JAR files into $JAVA_HOME/jre/lib/ext.
 * Execute:
 %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows)
 $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA  (Unix)
   with a password value of changeit for both the certificate and
   the keystore itself.

 By default, DNS lookups are enabled when a web application calls
 request.getRemoteHost().  This can have an adverse impact on
 performance, so you can disable it by setting 

Re: Apache2+Tomcat5.5+mod_jk loadbalancing: Sticky sessions not working

2005-05-12 Thread Kumbarÿffffffffffffffffe7e
I'm using the binary version of mod_jk.
Apache v2.0.54
Tomcat v5.5
JK v1.2.12

Thank you,
Edlira
--- Mladen Turk [EMAIL PROTECTED] wrote:
 Edlira Kumbarÿe7e wrote:
  I don't think it's the session timeout on tomcat
  because, as I said in my previous message,I don't
 see
  a pattern in the time pages are served from the
 same
  tomcat. In other words, a page gets served from
  tomcat1 maybe 4 times (each page refresh), then 2
  times from tomcat2, then 3 times from tomcat1,
 without
  a specific pattern.
 
 Really have no idea.
 What version of mod_jk you are using?
 
 Regards,
 Mladen.
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Apache2+Tomcat5.5+mod_jk loadbalancing: Sticky sessions not working

2005-05-11 Thread Kumbarÿffffffffffffffffe7e
Hello,
I have been trying for weeks now to get this to work.
Maybe someone can help me.
I have Apache2 installed and configured in machine A,
using mod_jk to connect to two tomcat servers. Tomcat1
is in machine B and Tomcat2 in machine A. I have
created a workers.properties file, which I have put in
the apache conf. This file specifies workers timcat1
and tomcat2, as well as worker loadbalancer, which is
supposed to balance the load between the two tomcats.
Everything works fine, except for the sticky sessions,
or session affinity. When a page is requested, I need
it to be served from one of the available tomcat
servers, and then each time the page is requested
subsequently from the same machine, it should be
served from the same tomcat server as before. It
doesn't seem to work. Each time I refresh the page, it
get served from the same tomcat a couple of times,
then it gets served from the other tomcat, stays on
that tomcat a couple of refresh hits and then swiches
again. I can't see a pattern or figure out why this is
happening.
Here's my workers.properties file:
#
# workers.properties 
#

# In Windows, we use backward slashes:
ps=\

# list the workers by name

worker.list=loadbalancer

# 
# First tomcat server
# 
worker.tomcat1.port=8009
worker.tomcat1.host=machine B's IP
worker.tomcat1.type=ajp13

# Specify the size of the open connection cache.
#worker.tomcat1.cachesize

#
# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
#   lbfactor must be  0
#   Low lbfactor means less work done by the
worker.
worker.tomcat1.lbfactor=100


# 
# Second tomcat server
# 
worker.tomcat2.port=8009
worker.tomcat2.host=machine A's IP
worker.tomcat2.type=ajp13

# Specify the size of the open connection cache.
#worker.tomcat2.cachesize

#
# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
#   lbfactor must be  0
#   Low lbfactor means less work done by the
worker.
worker.tomcat2.lbfactor=100

# 
# Load Balancer worker
# 

#
# The loadbalancer (type lb) worker performs weighted
round-robin
# load balancing with sticky sessions.
# Note:
#   If a worker dies, the load balancer will
check its state
#once in a while. Until then all work is
redirected to peer
#worker.
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=tomcat1,tomcat2
worker.loadbalancer.sticky_session=True

#
# END workers.properties
#


In httpd.conf, I have added:
JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel debug

some JkMount lines

LoadModule jk_module modules/mod_jk.so

In server.xml, I've set jvmRoute=tomcat1 (tomcat2 on
the other tomcat's server.xml)

I can't think of any other infomation that you may
find helpful.
If anyone has any idea, or any question, I really need
help on this.
Anything would be much appreciated.
Thanks,
Edlira

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: apache2+tomcat5.0.19+mod_jk in-process

2004-05-27 Thread Dale, Matt

I think the problem is entirely on non-windows platforms. JVM autodetection doesnt 
even work unless on windows.

Ta
Matt

-Original Message-
From: Peter Rossbach [mailto:[EMAIL PROTECTED]
Sent: 26 May 2004 20:16
To: Tomcat Users List
Subject: Re: apache2+tomcat5.0.19+mod_jk in-process



Thist is my working example

a)  I used JVM autodetection
b) configured the jni channel
c)  add tools.jar for compiling jsp's

[channel.jni:jni]
info=The jni channel, used if tomcat is started inprocess

[vm:]
info=Parameters used to load a JVM in the server process
#OPT=-Xdebug -Xnoagent 
-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
OPT=-Xmx32m
OPT=-Xms32m
OPT=-Djava.home=D:/java/j2sdk1.4.2_03
OPT=-Dcatalina.home=D:/tomcat/develop/tomcat5/jakarta-tomcat-5/build
OPT=-Djava.class.path=D:/java/j2sdk1.4.2_03/lib/tools.jar;D:/tomcat/develop/tomcat5/jakarta-tomcat-5/build/server/lib/tomcat-jni.jar;D:/tomcat/develop/tomcat5/jakarta-tomcat-5/bin/jmx.jar;D:/tomcat/develop/tomcat5/jakarta-tomcat-5/build/bin/bootstrap.jar
disabled=0

[worker.jni:onStartup]
info=Command to be executed by the VM on startup. This one will start 
tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=startd
disabled=0
stdout=${serverRoot}/logs/stdout.log
stderr=${serverRoot}/logs/stderr.log

[worker.jni:onShutdown]
info=Command to be executed by the VM on shutdown. This one will stop 
tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=stopd
disabled=0


I hope this help.

regards
peter

Timothy Suh schrieb:

I am now using Tomcat5.0.25 as you suggested but still getting same 
error. I don't think Apache is even getting to the part where it starts 
calling Tomcat (TomcatStarter) because the same error is generated when 
I completely remove Tomcat5.0.25 binary distribution from my machine.
I am thinking the solution is in my workers2.properties file but not 
sure what it is.

Here is my configuration:

$APACHE_HOME/modules
   mod_jk2.so (built from source)
   linjkjni.so (built from source)
$APACHE_HOME/conf
   workers2.properties
$TOMCAT_HOME/conf
   jk2.properties

workers2.properties contain (some unrelated properties omitted)

[uriMap:]

[shm:]
disabled=1

[channel.jni:jni]
disabled=0

[status:]

[vm:]
JVM=/j2sdk-1.4.2_03/jre/lib/i386/server/libjvm.so
OPT=-server
OPT=-Dtomcat.home=TOMCATHOME
OPT=-Dcatalina.home=TOMCATHOME
OPT=-Xnoclassgc
OPT=-Xcheck:jni
OPT=-verbose
classpath=TOMCATHOME/bin/bootstrap.jar
classpath=TOMCATHOME/common/lib/jmx.jar
classpath=TOMCATHOME/server/lib/commons-modeler.jar
classpath=TOMCATHOME/server/lib/tomcat-jni.jar
classpath=TOMCATHOME/common/lib/servlet-api.jar
OPT=-Xrs

[worker.jni:onStartup]
class=org/apache/jk/apr/TomcatStarter
ARG=startd
disabled=0

[worker.jni:onShutdown]
class=org/apache/jk/apr/TomcatStarter
ARG=stopd
disabled=0

Peter Rossbach wrote on 5/26/2004, 12:27 PM:

  Hello Timothy,
 
  the JNI integration works only with Tomcat Release greater 5.0.20
  and the commands changed to (startd and stopd)
 
  used the coming Tomcat 5.0.25 it is very stable.
  (Must add jmx.jar to your classpath)
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any attachments.
Please note that the content of this email or any of its attachments may contain data 
that falls within the scope of the Data Protection Acts and that you must ensure that 
any handling or processing of such data by you is fully compliant with the terms and 
provisions of the Data Protection Act 1984 and 1998.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

apache2+tomcat5.0.19+mod_jk in-process

2004-05-26 Thread Timothy Suh

Subject: apache2+tomcat5.0.19+mod_jk2 in-process
Date: 5/26/2004, 11:19 AM
From: Timothy Suh [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Organization: AOL

Can someone help me with setting up apache2 to start tomcat5 in-process 
using mod_jk2? out-of-process was straight forward but I am having tough 
time starting in-process. I believe i have workers2 and jk2.properties 
set up correctly. I also compiledlinked mod_jk2 on my platform (linux). 
I searched everywhere but cannot find anyone who has this working.

The erorr msgs are:

[Wed May 26 11:15:46 2004] [notice] vm.open2() done
[Wed May 26 11:15:46 2004] [error] workerEnv.initChannel() init failed 
for channel.jni:jni
[Wed May 26 11:15:46 2004] [notice] workerJni.Init() Skipping 
initialization for the 1893 1893
[Wed May 26 11:15:46 2004] [error] workerEnv.initWorkers() init failed 
for worker.jni:onStartup
[Wed May 26 11:15:46 2004] [notice] workerJni.Init() Skipping 
initialization for the 1893 1893
[Wed May 26 11:15:46 2004] [error] workerEnv.initWorkers() init failed 
for worker.jni:onShutdown

Your help is monstrously appreciated.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: apache2+tomcat5.0.19+mod_jk in-process

2004-05-26 Thread Peter Rossbach
Hello Timothy,
the JNI integration works only with Tomcat Release greater 5.0.20
and the commands changed to (startd and stopd)
used the coming Tomcat 5.0.25 it is very stable.
(Must add jmx.jar to your classpath)
Regards
Peter
Timothy Suh schrieb:
Subject: apache2+tomcat5.0.19+mod_jk2 in-process
Date: 5/26/2004, 11:19 AM
From: Timothy Suh [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Organization: AOL
Can someone help me with setting up apache2 to start tomcat5 in-process 
using mod_jk2? out-of-process was straight forward but I am having tough 
time starting in-process. I believe i have workers2 and jk2.properties 
set up correctly. I also compiledlinked mod_jk2 on my platform (linux). 
I searched everywhere but cannot find anyone who has this working.

The erorr msgs are:
[Wed May 26 11:15:46 2004] [notice] vm.open2() done
[Wed May 26 11:15:46 2004] [error] workerEnv.initChannel() init failed 
for channel.jni:jni
[Wed May 26 11:15:46 2004] [notice] workerJni.Init() Skipping 
initialization for the 1893 1893
[Wed May 26 11:15:46 2004] [error] workerEnv.initWorkers() init failed 
for worker.jni:onStartup
[Wed May 26 11:15:46 2004] [notice] workerJni.Init() Skipping 
initialization for the 1893 1893
[Wed May 26 11:15:46 2004] [error] workerEnv.initWorkers() init failed 
for worker.jni:onShutdown

Your help is monstrously appreciated.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: apache2+tomcat5.0.19+mod_jk in-process

2004-05-26 Thread Timothy Suh
I am now using Tomcat5.0.25 as you suggested but still getting same 
error. I don't think Apache is even getting to the part where it starts 
calling Tomcat (TomcatStarter) because the same error is generated when 
I completely remove Tomcat5.0.25 binary distribution from my machine.
I am thinking the solution is in my workers2.properties file but not 
sure what it is.

Here is my configuration:

$APACHE_HOME/modules
   mod_jk2.so (built from source)
   linjkjni.so (built from source)
$APACHE_HOME/conf
   workers2.properties
$TOMCAT_HOME/conf
   jk2.properties

workers2.properties contain (some unrelated properties omitted)

[uriMap:]

[shm:]
disabled=1

[channel.jni:jni]
disabled=0

[status:]

[vm:]
JVM=/j2sdk-1.4.2_03/jre/lib/i386/server/libjvm.so
OPT=-server
OPT=-Dtomcat.home=TOMCATHOME
OPT=-Dcatalina.home=TOMCATHOME
OPT=-Xnoclassgc
OPT=-Xcheck:jni
OPT=-verbose
classpath=TOMCATHOME/bin/bootstrap.jar
classpath=TOMCATHOME/common/lib/jmx.jar
classpath=TOMCATHOME/server/lib/commons-modeler.jar
classpath=TOMCATHOME/server/lib/tomcat-jni.jar
classpath=TOMCATHOME/common/lib/servlet-api.jar
OPT=-Xrs

[worker.jni:onStartup]
class=org/apache/jk/apr/TomcatStarter
ARG=startd
disabled=0

[worker.jni:onShutdown]
class=org/apache/jk/apr/TomcatStarter
ARG=stopd
disabled=0

Peter Rossbach wrote on 5/26/2004, 12:27 PM:

  Hello Timothy,
 
  the JNI integration works only with Tomcat Release greater 5.0.20
  and the commands changed to (startd and stopd)
 
  used the coming Tomcat 5.0.25 it is very stable.
  (Must add jmx.jar to your classpath)
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: apache2+tomcat5.0.19+mod_jk in-process

2004-05-26 Thread Dale, Matt

I've spent a lot of time on this and still not managed to get it working. I can 
actually get the tomcat started inprocess and access it through port 8080 but I get 
the same errors as you have here and cant access it through the JNI channel.

The only thing I can think that it could be is to do with the threads and processes 
settings in httpd.conf but i've not heard any success stories at all on non windows 
platforms despite asking on this list several times.

Ta
Matt

-Original Message-
From: Timothy Suh [mailto:[EMAIL PROTECTED]
Sent: 26 May 2004 17:06
To: [EMAIL PROTECTED]
Subject: apache2+tomcat5.0.19+mod_jk in-process



Subject: apache2+tomcat5.0.19+mod_jk2 in-process
Date: 5/26/2004, 11:19 AM
From: Timothy Suh [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Organization: AOL

Can someone help me with setting up apache2 to start tomcat5 in-process 
using mod_jk2? out-of-process was straight forward but I am having tough 
time starting in-process. I believe i have workers2 and jk2.properties 
set up correctly. I also compiledlinked mod_jk2 on my platform (linux). 
I searched everywhere but cannot find anyone who has this working.

The erorr msgs are:

[Wed May 26 11:15:46 2004] [notice] vm.open2() done
[Wed May 26 11:15:46 2004] [error] workerEnv.initChannel() init failed 
for channel.jni:jni
[Wed May 26 11:15:46 2004] [notice] workerJni.Init() Skipping 
initialization for the 1893 1893
[Wed May 26 11:15:46 2004] [error] workerEnv.initWorkers() init failed 
for worker.jni:onStartup
[Wed May 26 11:15:46 2004] [notice] workerJni.Init() Skipping 
initialization for the 1893 1893
[Wed May 26 11:15:46 2004] [error] workerEnv.initWorkers() init failed 
for worker.jni:onShutdown

Your help is monstrously appreciated.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any attachments.
Please note that the content of this email or any of its attachments may contain data 
that falls within the scope of the Data Protection Acts and that you must ensure that 
any handling or processing of such data by you is fully compliant with the terms and 
provisions of the Data Protection Act 1984 and 1998.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: apache2+tomcat5.0.19+mod_jk in-process

2004-05-26 Thread Peter Rossbach
Thist is my working example
a)  I used JVM autodetection
b) configured the jni channel
c)  add tools.jar for compiling jsp's
[channel.jni:jni]
info=The jni channel, used if tomcat is started inprocess
[vm:]
info=Parameters used to load a JVM in the server process
#OPT=-Xdebug -Xnoagent 
-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
OPT=-Xmx32m
OPT=-Xms32m
OPT=-Djava.home=D:/java/j2sdk1.4.2_03
OPT=-Dcatalina.home=D:/tomcat/develop/tomcat5/jakarta-tomcat-5/build
OPT=-Djava.class.path=D:/java/j2sdk1.4.2_03/lib/tools.jar;D:/tomcat/develop/tomcat5/jakarta-tomcat-5/build/server/lib/tomcat-jni.jar;D:/tomcat/develop/tomcat5/jakarta-tomcat-5/bin/jmx.jar;D:/tomcat/develop/tomcat5/jakarta-tomcat-5/build/bin/bootstrap.jar
disabled=0

[worker.jni:onStartup]
info=Command to be executed by the VM on startup. This one will start 
tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=startd
disabled=0
stdout=${serverRoot}/logs/stdout.log
stderr=${serverRoot}/logs/stderr.log

[worker.jni:onShutdown]
info=Command to be executed by the VM on shutdown. This one will stop 
tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=stopd
disabled=0

I hope this help.
regards
peter
Timothy Suh schrieb:
I am now using Tomcat5.0.25 as you suggested but still getting same 
error. I don't think Apache is even getting to the part where it starts 
calling Tomcat (TomcatStarter) because the same error is generated when 
I completely remove Tomcat5.0.25 binary distribution from my machine.
I am thinking the solution is in my workers2.properties file but not 
sure what it is.

Here is my configuration:
$APACHE_HOME/modules
  mod_jk2.so (built from source)
  linjkjni.so (built from source)
$APACHE_HOME/conf
  workers2.properties
$TOMCAT_HOME/conf
  jk2.properties
workers2.properties contain (some unrelated properties omitted)
[uriMap:]
[shm:]
disabled=1
[channel.jni:jni]
disabled=0
[status:]
[vm:]
JVM=/j2sdk-1.4.2_03/jre/lib/i386/server/libjvm.so
OPT=-server
OPT=-Dtomcat.home=TOMCATHOME
OPT=-Dcatalina.home=TOMCATHOME
OPT=-Xnoclassgc
OPT=-Xcheck:jni
OPT=-verbose
classpath=TOMCATHOME/bin/bootstrap.jar
classpath=TOMCATHOME/common/lib/jmx.jar
classpath=TOMCATHOME/server/lib/commons-modeler.jar
classpath=TOMCATHOME/server/lib/tomcat-jni.jar
classpath=TOMCATHOME/common/lib/servlet-api.jar
OPT=-Xrs
[worker.jni:onStartup]
class=org/apache/jk/apr/TomcatStarter
ARG=startd
disabled=0
[worker.jni:onShutdown]
class=org/apache/jk/apr/TomcatStarter
ARG=stopd
disabled=0
Peter Rossbach wrote on 5/26/2004, 12:27 PM:
 Hello Timothy,

 the JNI integration works only with Tomcat Release greater 5.0.20
 and the commands changed to (startd and stopd)

 used the coming Tomcat 5.0.25 it is very stable.
 (Must add jmx.jar to your classpath)

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Installing mod_ssl on Apache2+Tomcat+mod_jk setup...

2003-07-24 Thread Simon Pabst
Hmm i guess $APACHE_HOME points to Redhats Apache Home or where?
The make should be done in the source directory, not in the Apache 
installation home.
Just forget about the Redhat Apache and build apache completely from source,
here's a step by step list (YMMV):
=

# Download the latest source (httpd-2.0.47.tar.gz) from 
http://httpd.apache.org/download.cgi
tar -zxf httpd-2.0.47.tar.gz
cd httpd-2.0.47

./configure \
--prefix=/opt/apache2 \
--with-mpm=worker \
--enable-so \
--enable-rewrite \
--enable-ssl \
--with-ssl=/path/to/latest/openssl \
--enable-proxy
# prefix sets the installation directory
# mpm=worker compiles apache with multithreading support, needed for 
current mod_jk1/2 load balancing round robin to work properly
# mod_so is needed for DSO support (so you can install other modules later 
without rebuilding the whole thing, recommended for mod_jk(2)
# mod_rewrite is the swiss army knife for URL manipulation and always handy
# mod_proxy is not really needed, but a possible alternative to connect to 
Tomcat
# See http://httpd.apache.org/docs-2.0/mod/

make
make install
=

And that openssl version problem,
i'd suggest you try upgrading with a more recent openssl rpm if there is any,
or you build and install the latest openssl yourself:
# Download http://www.openssl.org/source/openssl-0.9.7b.tar.gz
gtar -zxf openssl-0.9.7b.tar.gz
cd openssl-0.9.7b
./configure --prefix=/path/to/somewhere/else/than/redhat_ssl
make
make install
If you happen to run into any compilation problems,
you propably have to upgrade some other system libraries as well.
At 12:38 24.07.2003 +1000, you wrote:
Well yes, I did that and configure ran normally after a make
distclean (I think I maight have left some junk there from last
time)...
Then I tried doing this :
# cd $APACHE_HOME
# make
# make certificate
# make install
make didn't work and complained No targets specified and no Makefile
found. Stop
I can clearly see makefile there !
Then I checked Apache, like this :
# apachectl -l
I do not see mod_ssl compiled into it.
Having said all that, I still have another major concern about
openssl-0.9.6-3 vulnerability. It seems that I am going through a lot of
trouble installing a faulted version. All the research I have done sofar
recommends installing a second openssl-0.9.7 alongside 0.9.6-3 because
redHat7.1 has dependency problems otherside.
This is very irritating !
TIA (DIV=danke im voraus?)
:(
Simon Pabst wrote:

 That configure of yours is not quite right:

 the following is required for Apache with SSL/HTTPS Support (still called
 mod_ssl):
 --enable-ssl

 this is only required if the auto detection of apache can't fint the
 installed open ssl:
 --with-ssl=/path/to/openssl

 At 17:49 23.07.2003 +1000, you wrote:
 Hiya, thanks for the tip.
 When I ran ./configure --help, the option --enable-ssl is missing.
 So I tried this :
 ./configure
--with-apache=
--with-ssl=
--prefix=
 So komme ich auch nicht weiter !
 Those options are not available in configure !?!
 TIA :(
 
 Simon Pabst wrote:
  
   This should go to Apache Mailing List propably.
  
   Apache 2 has its own mod_ssl included.
   You still need an installed OpenSSL to use mod_ssl,
   as how to configure:
  
   httpd-2.0.45 # ./configure --help|grep -i ssl
 --enable-sslSSL/TLS support (mod_ssl)
 --with-ssl=DIR  SSL/TLS toolkit (OpenSSL)
  
   Tomcat Users List [EMAIL PROTECTED] schrieb am
  14.07.03 09:56:52:
   
Apache2.0.40 seems to ship with mod_ssl in the directory
.../httpd-2.0.40/modules/ssl.
But no mention of OpenSSL, although both ssl_util_ssl.c and
ssl_util_ssl.h refer to OpenSSL.
I ftp-ed openssl-0.9.76b.tar.gz , but they only tralk about Apache
1.3.24 as in :
# configure with-apache=../apache_1.3.24 
with-ssl=./open22l-0.9.6c  etc
Am I to understand there is no mod_ssl for Apache2+  ???
   
hr
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  
   --
   Simon Pabst
  
   E-Mail: [EMAIL PROTECTED]
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To 

Re: Installing mod_ssl on Apache2+Tomcat+mod_jk setup...

2003-07-24 Thread achana
I actually downloaded and installed Apache2 recently, it is not the old
version delivered in the distro.
Before the make and make install, there were 2 directories :
/usr/local/apache
/usr/local/httpd-2.0.40
$APACHE_HOME points to /usr/local/apache
I edit the files in $APACHE_HOME/conf and apache worked well like that.
Then after running configure, make and make install from inside
/usr/local/httpd-2.0.40, I ended up with 3 directories !?!, They are :
/usr/local/apache
/usr/local/apache2
/usr/local/httpd-2.0.40
The make install actually created and installed another apache for me,
but since I have done a lot of work on the old i.e. /usr/local/apache
aready, I must use that copy.
So when you say the make should be done in the source directory, which
one do you mean ???
I am very confused at the moment.
Perhaps I should do it like this :
./configure
   --enable-ssl
   --with-ssl=/usr/bin
   --prefix=/usr/local/apache 
   
TIA :(



Simon Pabst wrote:
 
 Hmm i guess $APACHE_HOME points to Redhats Apache Home or where?
 The make should be done in the source directory, not in the Apache
 installation home.
 Just forget about the Redhat Apache and build apache completely from source,
 here's a step by step list (YMMV):
 =
 
 # Download the latest source (httpd-2.0.47.tar.gz) from
 http://httpd.apache.org/download.cgi
 tar -zxf httpd-2.0.47.tar.gz
 cd httpd-2.0.47
 
 ./configure \
 --prefix=/opt/apache2 \
 --with-mpm=worker \
 --enable-so \
 --enable-rewrite \
 --enable-ssl \
 --with-ssl=/path/to/latest/openssl \
 --enable-proxy
 
 # prefix sets the installation directory
 # mpm=worker compiles apache with multithreading support, needed for
 current mod_jk1/2 load balancing round robin to work properly
 # mod_so is needed for DSO support (so you can install other modules later
 without rebuilding the whole thing, recommended for mod_jk(2)
 # mod_rewrite is the swiss army knife for URL manipulation and always handy
 # mod_proxy is not really needed, but a possible alternative to connect to
 Tomcat
 # See http://httpd.apache.org/docs-2.0/mod/
 
 make
 make install
 
 =
 
 And that openssl version problem,
 i'd suggest you try upgrading with a more recent openssl rpm if there is any,
 or you build and install the latest openssl yourself:
 
 # Download http://www.openssl.org/source/openssl-0.9.7b.tar.gz
 gtar -zxf openssl-0.9.7b.tar.gz
 cd openssl-0.9.7b
 ./configure --prefix=/path/to/somewhere/else/than/redhat_ssl
 make
 make install
 
 If you happen to run into any compilation problems,
 you propably have to upgrade some other system libraries as well.
 
 At 12:38 24.07.2003 +1000, you wrote:
 Well yes, I did that and configure ran normally after a make
 distclean (I think I maight have left some junk there from last
 time)...
 Then I tried doing this :
 # cd $APACHE_HOME
 # make
 # make certificate
 # make install
 make didn't work and complained No targets specified and no Makefile
 found. Stop
 I can clearly see makefile there !
 Then I checked Apache, like this :
 # apachectl -l
 I do not see mod_ssl compiled into it.
 Having said all that, I still have another major concern about
 openssl-0.9.6-3 vulnerability. It seems that I am going through a lot of
 trouble installing a faulted version. All the research I have done sofar
 recommends installing a second openssl-0.9.7 alongside 0.9.6-3 because
 redHat7.1 has dependency problems otherside.
 This is very irritating !
 TIA (DIV=danke im voraus?)
 :(
 
 Simon Pabst wrote:
  
   That configure of yours is not quite right:
  
   the following is required for Apache with SSL/HTTPS Support (still called
   mod_ssl):
   --enable-ssl
  
   this is only required if the auto detection of apache can't fint the
   installed open ssl:
   --with-ssl=/path/to/openssl
  
   At 17:49 23.07.2003 +1000, you wrote:
   Hiya, thanks for the tip.
   When I ran ./configure --help, the option --enable-ssl is missing.
   So I tried this :
   ./configure
  --with-apache=
  --with-ssl=
  --prefix=
   So komme ich auch nicht weiter !
   Those options are not available in configure !?!
   TIA :(
   
   Simon Pabst wrote:

 This should go to Apache Mailing List propably.

 Apache 2 has its own mod_ssl included.
 You still need an installed OpenSSL to use mod_ssl,
 as how to configure:

 httpd-2.0.45 # ./configure --help|grep -i ssl
   --enable-sslSSL/TLS support (mod_ssl)
   --with-ssl=DIR  SSL/TLS toolkit (OpenSSL)

 Tomcat Users List [EMAIL PROTECTED] schrieb am
14.07.03 09:56:52:
 
  Apache2.0.40 seems to ship with mod_ssl in the directory
  .../httpd-2.0.40/modules/ssl.
  But no mention of OpenSSL, although both ssl_util_ssl.c and
  ssl_util_ssl.h refer to OpenSSL.
  I ftp-ed openssl-0.9.76b.tar.gz , but they only tralk about Apache
  1.3.24 as in :
  # 

Re: Installing mod_ssl on Apache2+Tomcat+mod_jk setup...

2003-07-24 Thread Simon Pabst
Jeez,
obviously $APACHE_HOME points to an apache installation directory and not 
source, so no wonder your previous make didn't work.

You don't need the source directory /usr/local/httpd-2.0.40 anymore, so you 
can delete it (or move somewhere else as backup).

As for your previous configuration in the installation directory 
/usr/local/apache, i'd suggest you copy the relevant lines into the new 
apache config files
and delete /usr/local/apache (or move somewhere else as backup).

Besides i suggest posting any more Apache only problems to the related 
mailing list (To subscribe, send an empty message to 
[EMAIL PROTECTED] )

At 00:36 25.07.2003 +1000, you wrote:
I actually downloaded and installed Apache2 recently, it is not the old
version delivered in the distro.
Before the make and make install, there were 2 directories :
/usr/local/apache
/usr/local/httpd-2.0.40
$APACHE_HOME points to /usr/local/apache
I edit the files in $APACHE_HOME/conf and apache worked well like that.
Then after running configure, make and make install from inside
/usr/local/httpd-2.0.40, I ended up with 3 directories !?!, They are :
/usr/local/apache
/usr/local/apache2
/usr/local/httpd-2.0.40
The make install actually created and installed another apache for me,
but since I have done a lot of work on the old i.e. /usr/local/apache
aready, I must use that copy.
So when you say the make should be done in the source directory, which
one do you mean ???
I am very confused at the moment.
Perhaps I should do it like this :
./configure
   --enable-ssl
   --with-ssl=/usr/bin
   --prefix=/usr/local/apache
TIA :(



Simon Pabst wrote:

 Hmm i guess $APACHE_HOME points to Redhats Apache Home or where?
 The make should be done in the source directory, not in the Apache
 installation home.
 Just forget about the Redhat Apache and build apache completely from 
source,
 here's a step by step list (YMMV):
 =

 # Download the latest source (httpd-2.0.47.tar.gz) from
 http://httpd.apache.org/download.cgi
 tar -zxf httpd-2.0.47.tar.gz
 cd httpd-2.0.47

 ./configure \
 --prefix=/opt/apache2 \
 --with-mpm=worker \
 --enable-so \
 --enable-rewrite \
 --enable-ssl \
 --with-ssl=/path/to/latest/openssl \
 --enable-proxy

 # prefix sets the installation directory
 # mpm=worker compiles apache with multithreading support, needed for
 current mod_jk1/2 load balancing round robin to work properly
 # mod_so is needed for DSO support (so you can install other modules later
 without rebuilding the whole thing, recommended for mod_jk(2)
 # mod_rewrite is the swiss army knife for URL manipulation and always handy
 # mod_proxy is not really needed, but a possible alternative to connect to
 Tomcat
 # See http://httpd.apache.org/docs-2.0/mod/

 make
 make install

 =

 And that openssl version problem,
 i'd suggest you try upgrading with a more recent openssl rpm if there 
is any,
 or you build and install the latest openssl yourself:

 # Download http://www.openssl.org/source/openssl-0.9.7b.tar.gz
 gtar -zxf openssl-0.9.7b.tar.gz
 cd openssl-0.9.7b
 ./configure --prefix=/path/to/somewhere/else/than/redhat_ssl
 make
 make install

 If you happen to run into any compilation problems,
 you propably have to upgrade some other system libraries as well.

 At 12:38 24.07.2003 +1000, you wrote:
 Well yes, I did that and configure ran normally after a make
 distclean (I think I maight have left some junk there from last
 time)...
 Then I tried doing this :
 # cd $APACHE_HOME
 # make
 # make certificate
 # make install
 make didn't work and complained No targets specified and no Makefile
 found. Stop
 I can clearly see makefile there !
 Then I checked Apache, like this :
 # apachectl -l
 I do not see mod_ssl compiled into it.
 Having said all that, I still have another major concern about
 openssl-0.9.6-3 vulnerability. It seems that I am going through a lot of
 trouble installing a faulted version. All the research I have done sofar
 recommends installing a second openssl-0.9.7 alongside 0.9.6-3 because
 redHat7.1 has dependency problems otherside.
 This is very irritating !
 TIA (DIV=danke im voraus?)
 :(
 
 Simon Pabst wrote:
  
   That configure of yours is not quite right:
  
   the following is required for Apache with SSL/HTTPS Support (still 
called
   mod_ssl):
   --enable-ssl
  
   this is only required if the auto detection of apache can't fint the
   installed open ssl:
   --with-ssl=/path/to/openssl
  
   At 17:49 23.07.2003 +1000, you wrote:
   Hiya, thanks for the tip.
   When I ran ./configure --help, the option --enable-ssl is missing.
   So I tried this :
   ./configure
  --with-apache=
  --with-ssl=
  --prefix=
   So komme ich auch nicht weiter !
   Those options are not available in configure !?!
   TIA :(
   
   Simon Pabst wrote:

 This should go to Apache Mailing List propably.

 Apache 2 has its own 

Solved: Installing mod_ssl on Apache2+Tomcat+mod_jk setup...

2003-07-24 Thread achana
Hi Simon
That worked, I got mod_ssl.
Thanks for the tips, much appreciated.


Simon Pabst wrote:
 
 Jeez,
 obviously $APACHE_HOME points to an apache installation directory and not
 source, so no wonder your previous make didn't work.
 
 You don't need the source directory /usr/local/httpd-2.0.40 anymore, so you
 can delete it (or move somewhere else as backup).
 
 As for your previous configuration in the installation directory
 /usr/local/apache, i'd suggest you copy the relevant lines into the new
 apache config files
 and delete /usr/local/apache (or move somewhere else as backup).
 
 Besides i suggest posting any more Apache only problems to the related
 mailing list (To subscribe, send an empty message to
 [EMAIL PROTECTED] )
 
 At 00:36 25.07.2003 +1000, you wrote:
 I actually downloaded and installed Apache2 recently, it is not the old
 version delivered in the distro.
 Before the make and make install, there were 2 directories :
 /usr/local/apache
 /usr/local/httpd-2.0.40
 $APACHE_HOME points to /usr/local/apache
 I edit the files in $APACHE_HOME/conf and apache worked well like that.
 Then after running configure, make and make install from inside
 /usr/local/httpd-2.0.40, I ended up with 3 directories !?!, They are :
 /usr/local/apache
 /usr/local/apache2
 /usr/local/httpd-2.0.40
 The make install actually created and installed another apache for me,
 but since I have done a lot of work on the old i.e. /usr/local/apache
 aready, I must use that copy.
 So when you say the make should be done in the source directory, which
 one do you mean ???
 I am very confused at the moment.
 Perhaps I should do it like this :
 ./configure
 --enable-ssl
 --with-ssl=/usr/bin
 --prefix=/usr/local/apache
 
 TIA :(
 
 
 
 Simon Pabst wrote:
  
   Hmm i guess $APACHE_HOME points to Redhats Apache Home or where?
   The make should be done in the source directory, not in the Apache
   installation home.
   Just forget about the Redhat Apache and build apache completely from
  source,
   here's a step by step list (YMMV):
   =
  
   # Download the latest source (httpd-2.0.47.tar.gz) from
   http://httpd.apache.org/download.cgi
   tar -zxf httpd-2.0.47.tar.gz
   cd httpd-2.0.47
  
   ./configure \
   --prefix=/opt/apache2 \
   --with-mpm=worker \
   --enable-so \
   --enable-rewrite \
   --enable-ssl \
   --with-ssl=/path/to/latest/openssl \
   --enable-proxy
  
   # prefix sets the installation directory
   # mpm=worker compiles apache with multithreading support, needed for
   current mod_jk1/2 load balancing round robin to work properly
   # mod_so is needed for DSO support (so you can install other modules later
   without rebuilding the whole thing, recommended for mod_jk(2)
   # mod_rewrite is the swiss army knife for URL manipulation and always handy
   # mod_proxy is not really needed, but a possible alternative to connect to
   Tomcat
   # See http://httpd.apache.org/docs-2.0/mod/
  
   make
   make install
  
   =
  
   And that openssl version problem,
   i'd suggest you try upgrading with a more recent openssl rpm if there
  is any,
   or you build and install the latest openssl yourself:
  
   # Download http://www.openssl.org/source/openssl-0.9.7b.tar.gz
   gtar -zxf openssl-0.9.7b.tar.gz
   cd openssl-0.9.7b
   ./configure --prefix=/path/to/somewhere/else/than/redhat_ssl
   make
   make install
  
   If you happen to run into any compilation problems,
   you propably have to upgrade some other system libraries as well.
  
   At 12:38 24.07.2003 +1000, you wrote:
   Well yes, I did that and configure ran normally after a make
   distclean (I think I maight have left some junk there from last
   time)...
   Then I tried doing this :
   # cd $APACHE_HOME
   # make
   # make certificate
   # make install
   make didn't work and complained No targets specified and no Makefile
   found. Stop
   I can clearly see makefile there !
   Then I checked Apache, like this :
   # apachectl -l
   I do not see mod_ssl compiled into it.
   Having said all that, I still have another major concern about
   openssl-0.9.6-3 vulnerability. It seems that I am going through a lot of
   trouble installing a faulted version. All the research I have done sofar
   recommends installing a second openssl-0.9.7 alongside 0.9.6-3 because
   redHat7.1 has dependency problems otherside.
   This is very irritating !
   TIA (DIV=danke im voraus?)
   :(
   
   Simon Pabst wrote:

 That configure of yours is not quite right:

 the following is required for Apache with SSL/HTTPS Support (still
  called
 mod_ssl):
 --enable-ssl

 this is only required if the auto detection of apache can't fint the
 installed open ssl:
 --with-ssl=/path/to/openssl

 At 17:49 23.07.2003 +1000, you wrote:
 Hiya, thanks for the tip.
 When I ran ./configure --help, the option 

Re: Installing mod_ssl on Apache2+Tomcat+mod_jk setup...

2003-07-23 Thread achana
Hiya, thanks for the tip.
When I ran ./configure --help, the option --enable-ssl is missing.
So I tried this :
./configure 
  --with-apache=
  --with-ssl=
  --prefix=
So komme ich auch nicht weiter !
Those options are not available in configure !?!
TIA :(

Simon Pabst wrote:
 
 This should go to Apache Mailing List propably.
 
 Apache 2 has its own mod_ssl included.
 You still need an installed OpenSSL to use mod_ssl,
 as how to configure:
 
 httpd-2.0.45 # ./configure --help|grep -i ssl
   --enable-sslSSL/TLS support (mod_ssl)
   --with-ssl=DIR  SSL/TLS toolkit (OpenSSL)
 
 Tomcat Users List [EMAIL PROTECTED] schrieb am 14.07.03 09:56:52:
 
  Apache2.0.40 seems to ship with mod_ssl in the directory
  .../httpd-2.0.40/modules/ssl.
  But no mention of OpenSSL, although both ssl_util_ssl.c and
  ssl_util_ssl.h refer to OpenSSL.
  I ftp-ed openssl-0.9.76b.tar.gz , but they only tralk about Apache
  1.3.24 as in :
  # configure with-apache=../apache_1.3.24 with-ssl=./open22l-0.9.6c  etc
  Am I to understand there is no mod_ssl for Apache2+  ???
 
  hr
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 --
 Simon Pabst
 
 E-Mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Installing mod_ssl on Apache2+Tomcat+mod_jk setup...

2003-07-23 Thread Simon Pabst
That configure of yours is not quite right:

the following is required for Apache with SSL/HTTPS Support (still called 
mod_ssl):
--enable-ssl

this is only required if the auto detection of apache can't fint the 
installed open ssl:
--with-ssl=/path/to/openssl

At 17:49 23.07.2003 +1000, you wrote:
Hiya, thanks for the tip.
When I ran ./configure --help, the option --enable-ssl is missing.
So I tried this :
./configure
  --with-apache=
  --with-ssl=
  --prefix=
So komme ich auch nicht weiter !
Those options are not available in configure !?!
TIA :(
Simon Pabst wrote:

 This should go to Apache Mailing List propably.

 Apache 2 has its own mod_ssl included.
 You still need an installed OpenSSL to use mod_ssl,
 as how to configure:

 httpd-2.0.45 # ./configure --help|grep -i ssl
   --enable-sslSSL/TLS support (mod_ssl)
   --with-ssl=DIR  SSL/TLS toolkit (OpenSSL)

 Tomcat Users List [EMAIL PROTECTED] schrieb am 
14.07.03 09:56:52:
 
  Apache2.0.40 seems to ship with mod_ssl in the directory
  .../httpd-2.0.40/modules/ssl.
  But no mention of OpenSSL, although both ssl_util_ssl.c and
  ssl_util_ssl.h refer to OpenSSL.
  I ftp-ed openssl-0.9.76b.tar.gz , but they only tralk about Apache
  1.3.24 as in :
  # configure with-apache=../apache_1.3.24 with-ssl=./open22l-0.9.6c  etc
  Am I to understand there is no mod_ssl for Apache2+  ???
 
  hr
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]

 --
 Simon Pabst

 E-Mail: [EMAIL PROTECTED]

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Installing mod_ssl on Apache2+Tomcat+mod_jk setup...

2003-07-23 Thread achana
Well yes, I did that and configure ran normally after a make
distclean (I think I maight have left some junk there from last
time)...
Then I tried doing this :
# cd $APACHE_HOME
# make 
# make certificate
# make install
make didn't work and complained No targets specified and no Makefile
found. Stop
I can clearly see makefile there !
Then I checked Apache, like this :
# apachectl -l
I do not see mod_ssl compiled into it.
Having said all that, I still have another major concern about
openssl-0.9.6-3 vulnerability. It seems that I am going through a lot of
trouble installing a faulted version. All the research I have done sofar
recommends installing a second openssl-0.9.7 alongside 0.9.6-3 because
redHat7.1 has dependency problems otherside.
This is very irritating !
TIA (DIV=danke im voraus?)
:(

Simon Pabst wrote:
 
 That configure of yours is not quite right:
 
 the following is required for Apache with SSL/HTTPS Support (still called
 mod_ssl):
 --enable-ssl
 
 this is only required if the auto detection of apache can't fint the
 installed open ssl:
 --with-ssl=/path/to/openssl
 
 At 17:49 23.07.2003 +1000, you wrote:
 Hiya, thanks for the tip.
 When I ran ./configure --help, the option --enable-ssl is missing.
 So I tried this :
 ./configure
--with-apache=
--with-ssl=
--prefix=
 So komme ich auch nicht weiter !
 Those options are not available in configure !?!
 TIA :(
 
 Simon Pabst wrote:
  
   This should go to Apache Mailing List propably.
  
   Apache 2 has its own mod_ssl included.
   You still need an installed OpenSSL to use mod_ssl,
   as how to configure:
  
   httpd-2.0.45 # ./configure --help|grep -i ssl
 --enable-sslSSL/TLS support (mod_ssl)
 --with-ssl=DIR  SSL/TLS toolkit (OpenSSL)
  
   Tomcat Users List [EMAIL PROTECTED] schrieb am
  14.07.03 09:56:52:
   
Apache2.0.40 seems to ship with mod_ssl in the directory
.../httpd-2.0.40/modules/ssl.
But no mention of OpenSSL, although both ssl_util_ssl.c and
ssl_util_ssl.h refer to OpenSSL.
I ftp-ed openssl-0.9.76b.tar.gz , but they only tralk about Apache
1.3.24 as in :
# configure with-apache=../apache_1.3.24 with-ssl=./open22l-0.9.6c  etc
Am I to understand there is no mod_ssl for Apache2+  ???
   
hr
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  
   --
   Simon Pabst
  
   E-Mail: [EMAIL PROTECTED]
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Installing mod_ssl on Apache2+Tomcat+mod_jk setup...

2003-07-14 Thread achana
Apache2.0.40 seems to ship with mod_ssl in the directory
.../httpd-2.0.40/modules/ssl.
But no mention of OpenSSL, although both ssl_util_ssl.c and
ssl_util_ssl.h refer to OpenSSL.
I ftp-ed openssl-0.9.76b.tar.gz , but they only tralk about Apache
1.3.24 as in :
# configure with-apache=../apache_1.3.24 with-ssl=./open22l-0.9.6c  etc
Am I to understand there is no mod_ssl for Apache2+  ???
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Installing mod_ssl on Apache2+Tomcat+mod_jk setup...

2003-07-14 Thread Simon Pabst
This should go to Apache Mailing List propably.

Apache 2 has its own mod_ssl included.
You still need an installed OpenSSL to use mod_ssl,
as how to configure:

httpd-2.0.45 # ./configure --help|grep -i ssl
  --enable-sslSSL/TLS support (mod_ssl)
  --with-ssl=DIR  SSL/TLS toolkit (OpenSSL)


Tomcat Users List [EMAIL PROTECTED] schrieb am 14.07.03 09:56:52:
 
 Apache2.0.40 seems to ship with mod_ssl in the directory
 .../httpd-2.0.40/modules/ssl.
 But no mention of OpenSSL, although both ssl_util_ssl.c and
 ssl_util_ssl.h refer to OpenSSL.
 I ftp-ed openssl-0.9.76b.tar.gz , but they only tralk about Apache
 1.3.24 as in :
 # configure with-apache=../apache_1.3.24 with-ssl=./open22l-0.9.6c  etc
 Am I to understand there is no mod_ssl for Apache2+  ???
 
 hr
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Simon Pabst

E-Mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Installing mod_ssl on Apache2+Tomcat+mod_jk setup...

2003-07-14 Thread achana
Danke.
Simon Pabst wrote:
 
 This should go to Apache Mailing List propably.
 
 Apache 2 has its own mod_ssl included.
 You still need an installed OpenSSL to use mod_ssl,
 as how to configure:
 
 httpd-2.0.45 # ./configure --help|grep -i ssl
   --enable-sslSSL/TLS support (mod_ssl)
   --with-ssl=DIR  SSL/TLS toolkit (OpenSSL)
 
 Tomcat Users List [EMAIL PROTECTED] schrieb am 14.07.03 09:56:52:
 
  Apache2.0.40 seems to ship with mod_ssl in the directory
  .../httpd-2.0.40/modules/ssl.
  But no mention of OpenSSL, although both ssl_util_ssl.c and
  ssl_util_ssl.h refer to OpenSSL.
  I ftp-ed openssl-0.9.76b.tar.gz , but they only tralk about Apache
  1.3.24 as in :
  # configure with-apache=../apache_1.3.24 with-ssl=./open22l-0.9.6c  etc
  Am I to understand there is no mod_ssl for Apache2+  ???
 
  hr
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 --
 Simon Pabst
 
 E-Mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Apache2 and mod_jk

2003-01-08 Thread Bill
I've been holding off on posting on my problem because there have been a
wealth of posts on this topic.  However, the advice/suggestions I have
seen havent led me to a working system.

I'm trying to setup Tomcat 4.0.6 and HTTPD Server 2.0 using mod_jk. 
I've followed instructions for this task from several sources and
nothing seems to be working.

Here are the steps I followed:

1)  Added the following to httpd.conf:

LoadModule jk_module modules/mod_jk.so

This step also says to add the AddModule directive.  This directive does
not exist for 2.0 nor was I able to find an analogous directive to
replace it.

2)  I have the following in /usr/local/tomcat/conf/jk/workers.properties

workers.list= ajp13
worker.ajp13.type=ajp13

worker.ajp13.host=192.168.1.250
worker.ajp13.port=8009

worker.ajp13.cachesize=10
worker.ajp13.cache_timeout=600
worker.ajp13.socket_keepalive=1
worker.ajp13.socket_timeout=300


3)  I have the following in httpd.conf:

JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties
JkLogFile /usr/local/apache2/log/mod_jk.log
JkLogLevel info
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat %w %V %T

Include /usr/local/tomcat/conf/auto/mod_jk.conf

4) Here is my server.xml entry:

Server port=8005 shutdown=SHUTDOWN debug=0
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig/

Service name=Tomcat-Apache

 Connector className=org.apache.ajp.tomcat4.Ajp13Connector
port=8008 minProcessors=5 maxProcessors=75
enableLookups=true
acceptCount=10 debug=0/

 Engine name=Apache defaultHost=192.168.1.250 debug=0
appBase=webapps

  Logger className=org.apache.catalina.logger.FileLogger
  prefix=apache_log. suffix=.txt
  timestamp=true/
  Realm className=org.apache.catalina.realm.MemoryRealm /

  Host name=192.168.1.250 debug=0 appBase=webapps 
unpackWARs=true

Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
append=true/

Valve className=org.apache.catalina.valves.AccessLogValve
directory=logs prefix=192.168.1.250_access_log.
suffix=.txt pattern=common/
  /Host
/Engine
  /Service
/Server

No errors show up in the access log but the following error shows up in
the host log ($TOMCAT_HOME/logs/apache_log.2003-01-08.txt):

2003-01-08 13:07:57 Ajp13Processor[8008][4] [Ajp13] incomplete read,
waited #-1 got only 0

And this is what I get in catalina.log:

Unable to open config file
Starting service Tomcat-Apache
Apache Tomcat/4.0.6
Unable to open config file
BAD packet 18245
In: : [B@45fde0 4/21540
47 45 54 20 00 00 00 00 00 00 00 00 00 00 00 00  | GET.
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  | 
snip
This goes on forever so I only included to the first few lines of the
first packet...

Any ideas what I missed?  I did a web search on the error and got a
couple of hits but none of them panned out.  

Thanks

-b










--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Apache2 and mod_jk

2003-01-08 Thread Turner, John

Yep.  

1. For Apache 2, you don't need AddModule

2. Unless it's a typo, your workers.properties says the Ajp13Connector is on
8009, yet your server.xml has it on 8008.

3. You don't have a Context element in server.xml, unless you left it out
when pasting.

If 2 is a typo, and 8009 is used for both, all is good.  If 3 is deliberate,
please post your Context entry and the contents of mod_jk.conf.

John

 -Original Message-
 From: Bill [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 08, 2003 9:24 AM
 To: tomcat user
 Subject: Apache2 and mod_jk
 
 
 I've been holding off on posting on my problem because there 
 have been a
 wealth of posts on this topic.  However, the advice/suggestions I have
 seen havent led me to a working system.
 
 I'm trying to setup Tomcat 4.0.6 and HTTPD Server 2.0 using mod_jk. 
 I've followed instructions for this task from several sources and
 nothing seems to be working.
 
 Here are the steps I followed:
 
 1)  Added the following to httpd.conf:
 
 LoadModule jk_module modules/mod_jk.so
 
 This step also says to add the AddModule directive.  This 
 directive does
 not exist for 2.0 nor was I able to find an analogous directive to
 replace it.
 
 2)  I have the following in 
 /usr/local/tomcat/conf/jk/workers.properties
 
 workers.list= ajp13
 worker.ajp13.type=ajp13
 
 worker.ajp13.host=192.168.1.250
 worker.ajp13.port=8009
 
 worker.ajp13.cachesize=10
 worker.ajp13.cache_timeout=600
 worker.ajp13.socket_keepalive=1
 worker.ajp13.socket_timeout=300
 
   
 3)  I have the following in httpd.conf:
 
 JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties
 JkLogFile /usr/local/apache2/log/mod_jk.log
 JkLogLevel info
 JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
 JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
 JkRequestLogFormat %w %V %T
 
 Include /usr/local/tomcat/conf/auto/mod_jk.conf
 
 4) Here is my server.xml entry:
 
 Server port=8005 shutdown=SHUTDOWN debug=0
 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig/
 
 Service name=Tomcat-Apache
 
  Connector className=org.apache.ajp.tomcat4.Ajp13Connector
 port=8008 minProcessors=5 maxProcessors=75
 enableLookups=true
 acceptCount=10 debug=0/
 
  Engine name=Apache defaultHost=192.168.1.250 debug=0
 appBase=webapps
   
   Logger className=org.apache.catalina.logger.FileLogger
   prefix=apache_log. suffix=.txt
   timestamp=true/
   Realm className=org.apache.catalina.realm.MemoryRealm /
 
   Host name=192.168.1.250 debug=0 appBase=webapps 
   unpackWARs=true
 
   Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
 append=true/
 
 Valve className=org.apache.catalina.valves.AccessLogValve
 directory=logs prefix=192.168.1.250_access_log.
   suffix=.txt pattern=common/
   /Host
 /Engine
   /Service
 /Server
   
 No errors show up in the access log but the following error 
 shows up in
 the host log ($TOMCAT_HOME/logs/apache_log.2003-01-08.txt):
 
 2003-01-08 13:07:57 Ajp13Processor[8008][4] [Ajp13] incomplete read,
 waited #-1 got only 0
 
 And this is what I get in catalina.log:
 
 Unable to open config file
 Starting service Tomcat-Apache
 Apache Tomcat/4.0.6
 Unable to open config file
 BAD packet 18245
 In: : [B@45fde0 4/21540
 47 45 54 20 00 00 00 00 00 00 00 00 00 00 00 00  | GET.
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  | 
 snip
 This goes on forever so I only included to the first few lines of the
 first packet...
 
 Any ideas what I missed?  I did a web search on the error and got a
 couple of hits but none of them panned out.  
 
 Thanks
 
 -b
 
 
   
 
 
 
 
 
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Apache2 and mod_jk

2003-01-08 Thread PELOQUIN,JEFFREY (HP-Boise,ex1)
One potential problem is that you have 8009 in your workers.properties file 
but have 8008 in the your server.xml  

-Original Message-
From: Bill [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 08, 2003 7:24 AM
To: tomcat user
Subject: Apache2 and mod_jk


I've been holding off on posting on my problem because there have been a
wealth of posts on this topic.  However, the advice/suggestions I have
seen havent led me to a working system.

I'm trying to setup Tomcat 4.0.6 and HTTPD Server 2.0 using mod_jk. 
I've followed instructions for this task from several sources and
nothing seems to be working.

Here are the steps I followed:

1)  Added the following to httpd.conf:

LoadModule jk_module modules/mod_jk.so

This step also says to add the AddModule directive.  This directive does
not exist for 2.0 nor was I able to find an analogous directive to
replace it.

2)  I have the following in /usr/local/tomcat/conf/jk/workers.properties

workers.list= ajp13
worker.ajp13.type=ajp13

worker.ajp13.host=192.168.1.250
worker.ajp13.port=8009

worker.ajp13.cachesize=10
worker.ajp13.cache_timeout=600
worker.ajp13.socket_keepalive=1
worker.ajp13.socket_timeout=300


3)  I have the following in httpd.conf:

JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties
JkLogFile /usr/local/apache2/log/mod_jk.log
JkLogLevel info
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat %w %V %T

Include /usr/local/tomcat/conf/auto/mod_jk.conf

4) Here is my server.xml entry:

Server port=8005 shutdown=SHUTDOWN debug=0
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig/

Service name=Tomcat-Apache

 Connector className=org.apache.ajp.tomcat4.Ajp13Connector
port=8008 minProcessors=5 maxProcessors=75
enableLookups=true
acceptCount=10 debug=0/

 Engine name=Apache defaultHost=192.168.1.250 debug=0
appBase=webapps

  Logger className=org.apache.catalina.logger.FileLogger
  prefix=apache_log. suffix=.txt
  timestamp=true/
  Realm className=org.apache.catalina.realm.MemoryRealm /

  Host name=192.168.1.250 debug=0 appBase=webapps 
unpackWARs=true

Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
append=true/

Valve className=org.apache.catalina.valves.AccessLogValve
directory=logs prefix=192.168.1.250_access_log.
suffix=.txt pattern=common/
  /Host
/Engine
  /Service
/Server

No errors show up in the access log but the following error shows up in
the host log ($TOMCAT_HOME/logs/apache_log.2003-01-08.txt):

2003-01-08 13:07:57 Ajp13Processor[8008][4] [Ajp13] incomplete read,
waited #-1 got only 0

And this is what I get in catalina.log:

Unable to open config file
Starting service Tomcat-Apache
Apache Tomcat/4.0.6
Unable to open config file
BAD packet 18245
In: : [B@45fde0 4/21540
47 45 54 20 00 00 00 00 00 00 00 00 00 00 00 00  | GET.
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  | 
snip
This goes on forever so I only included to the first few lines of the
first packet...

Any ideas what I missed?  I did a web search on the error and got a
couple of hits but none of them panned out.  

Thanks

-b










--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Apache2 and mod_jk

2003-01-08 Thread Bill
The port designation was a typo in the file.  Thanks for catching that,
however it doesnt seemed to have made a difference.

  
Here are the contexts I have defined currently:
  
  Context path=
   docBase=ROOT
   debug=0
  /Context
  Context path=/tomcat-docs
   docBase=tomcat-docs
   reloadable=true
   debug=0
  /Context
  Context path=/examples
   docBase=examples
   reloadable=true
   debug=0
  /Context
  Context path=/mrccores
   docBase=mrccores
   reloadable=true
   debug=0
   trusted=false
  /Context
These are all defined after the AccessLogValve definition and before the
/Host tag.

Here is the contents of of mod_jk.conf (minus the !IfModule block) :

VirtualHost 192.168.1.250
ServerName 192.168.1.250

JkMount /examples ajp13
JkMount /examples/* ajp13

JkMount /webdav ajp13
JkMount /webdav/* ajp13

JkMount /tomcat-docs ajp13
JkMount /tomcat-docs/* ajp13

JkMount /manager ajp13
JkMount /manager/* ajp13

JkMount /mrccores ajp13
JkMount /mrccores/* ajp13
/VirtualHost
  

On Wed, 2003-01-08 at 19:35, Turner, John wrote:
 
 Yep.  
 
 1. For Apache 2, you don't need AddModule
 
 2. Unless it's a typo, your workers.properties says the Ajp13Connector is on
 8009, yet your server.xml has it on 8008.
 
 3. You don't have a Context element in server.xml, unless you left it out
 when pasting.
 
 If 2 is a typo, and 8009 is used for both, all is good.  If 3 is deliberate,
 please post your Context entry and the contents of mod_jk.conf.
 
 John
 
  -Original Message-
  From: Bill [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, January 08, 2003 9:24 AM
  To: tomcat user
  Subject: Apache2 and mod_jk
  
  
  I've been holding off on posting on my problem because there 
  have been a
  wealth of posts on this topic.  However, the advice/suggestions I have
  seen havent led me to a working system.
  
  I'm trying to setup Tomcat 4.0.6 and HTTPD Server 2.0 using mod_jk. 
  I've followed instructions for this task from several sources and
  nothing seems to be working.
  
  Here are the steps I followed:
  
  1)  Added the following to httpd.conf:
  
  LoadModule jk_module modules/mod_jk.so
  
  This step also says to add the AddModule directive.  This 
  directive does
  not exist for 2.0 nor was I able to find an analogous directive to
  replace it.
  
  2)  I have the following in 
  /usr/local/tomcat/conf/jk/workers.properties
  
  workers.list= ajp13
  worker.ajp13.type=ajp13
  
  worker.ajp13.host=192.168.1.250
  worker.ajp13.port=8009
  
  worker.ajp13.cachesize=10
  worker.ajp13.cache_timeout=600
  worker.ajp13.socket_keepalive=1
  worker.ajp13.socket_timeout=300
  
  
  3)  I have the following in httpd.conf:
  
  JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties
  JkLogFile /usr/local/apache2/log/mod_jk.log
  JkLogLevel info
  JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
  JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
  JkRequestLogFormat %w %V %T
  
  Include /usr/local/tomcat/conf/auto/mod_jk.conf
  
  4) Here is my server.xml entry:
  
  Server port=8005 shutdown=SHUTDOWN debug=0
  Listener className=org.apache.ajp.tomcat4.config.ApacheConfig/
  
  Service name=Tomcat-Apache
  
   Connector className=org.apache.ajp.tomcat4.Ajp13Connector
  port=8008 minProcessors=5 maxProcessors=75
  enableLookups=true
  acceptCount=10 debug=0/
  
   Engine name=Apache defaultHost=192.168.1.250 debug=0
  appBase=webapps
  
Logger className=org.apache.catalina.logger.FileLogger
prefix=apache_log. suffix=.txt
timestamp=true/
Realm className=org.apache.catalina.realm.MemoryRealm /
  
Host name=192.168.1.250 debug=0 appBase=webapps 
  unpackWARs=true
  
  Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
  append=true/
  
  Valve className=org.apache.catalina.valves.AccessLogValve
  directory=logs prefix=192.168.1.250_access_log.
  suffix=.txt pattern=common/
/Host
  /Engine
/Service
  /Server
  
  No errors show up in the access log but the following error 
  shows up in
  the host log ($TOMCAT_HOME/logs/apache_log.2003-01-08.txt):
  
  2003-01-08 13:07:57 Ajp13Processor[8008][4] [Ajp13] incomplete read,
  waited #-1 got only 0
  
  And this is what I get in catalina.log:
  
  Unable to open config file
  Starting service Tomcat-Apache
  Apache Tomcat/4.0.6
  Unable to open config file
  BAD packet 18245
  In: : [B@45fde0 4/21540
  47 45 54 20 00 00 00 00 00 00 00 00 00 00 00 00  | GET.
  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  | 
  snip
  This goes on forever so I only included to the first few lines of the
  first

RE: Apache2 and mod_jk

2003-01-08 Thread Turner, John

OK. 

What URL are you trying to access?  http://192.168.1.250/mrccores/some.jsp?
What are the contents of the JK logs and the Catalina logs?

Those unable to open config file messages are very strange, as is bad
read.  How much editing have you done to the default configuration files?  

John


 -Original Message-
 From: Bill [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 08, 2003 9:59 AM
 To: Tomcat Users List
 Subject: RE: Apache2 and mod_jk
 
 
 The port designation was a typo in the file.  Thanks for 
 catching that,
 however it doesnt seemed to have made a difference.
 
   
 Here are the contexts I have defined currently:
   
   Context path=
docBase=ROOT
debug=0
   /Context
   Context path=/tomcat-docs
docBase=tomcat-docs
reloadable=true
debug=0
   /Context
   Context path=/examples
docBase=examples
reloadable=true
debug=0
   /Context
   Context path=/mrccores
docBase=mrccores
reloadable=true
debug=0
trusted=false
   /Context
 These are all defined after the AccessLogValve definition and 
 before the
 /Host tag.
 
 Here is the contents of of mod_jk.conf (minus the !IfModule block) :
 
 VirtualHost 192.168.1.250
 ServerName 192.168.1.250
 
 JkMount /examples ajp13
 JkMount /examples/* ajp13
 
 JkMount /webdav ajp13
 JkMount /webdav/* ajp13
 
 JkMount /tomcat-docs ajp13
 JkMount /tomcat-docs/* ajp13
 
 JkMount /manager ajp13
 JkMount /manager/* ajp13
 
 JkMount /mrccores ajp13
 JkMount /mrccores/* ajp13
 /VirtualHost
   
 
 On Wed, 2003-01-08 at 19:35, Turner, John wrote:
  
  Yep.  
  
  1. For Apache 2, you don't need AddModule
  
  2. Unless it's a typo, your workers.properties says the 
 Ajp13Connector is on
  8009, yet your server.xml has it on 8008.
  
  3. You don't have a Context element in server.xml, unless 
 you left it out
  when pasting.
  
  If 2 is a typo, and 8009 is used for both, all is good.  If 
 3 is deliberate,
  please post your Context entry and the contents of mod_jk.conf.
  
  John
  
   -Original Message-
   From: Bill [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, January 08, 2003 9:24 AM
   To: tomcat user
   Subject: Apache2 and mod_jk
   
   
   I've been holding off on posting on my problem because there 
   have been a
   wealth of posts on this topic.  However, the 
 advice/suggestions I have
   seen havent led me to a working system.
   
   I'm trying to setup Tomcat 4.0.6 and HTTPD Server 2.0 
 using mod_jk. 
   I've followed instructions for this task from several sources and
   nothing seems to be working.
   
   Here are the steps I followed:
   
   1)  Added the following to httpd.conf:
   
   LoadModule jk_module modules/mod_jk.so
   
   This step also says to add the AddModule directive.  This 
   directive does
   not exist for 2.0 nor was I able to find an analogous directive to
   replace it.
   
   2)  I have the following in 
   /usr/local/tomcat/conf/jk/workers.properties
   
   workers.list= ajp13
   worker.ajp13.type=ajp13
   
   worker.ajp13.host=192.168.1.250
   worker.ajp13.port=8009
   
   worker.ajp13.cachesize=10
   worker.ajp13.cache_timeout=600
   worker.ajp13.socket_keepalive=1
   worker.ajp13.socket_timeout=300
   
 
   3)  I have the following in httpd.conf:
   
   JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties
   JkLogFile /usr/local/apache2/log/mod_jk.log
   JkLogLevel info
   JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
   JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
   JkRequestLogFormat %w %V %T
   
   Include /usr/local/tomcat/conf/auto/mod_jk.conf
   
   4) Here is my server.xml entry:
   
   Server port=8005 shutdown=SHUTDOWN debug=0
   Listener 
 className=org.apache.ajp.tomcat4.config.ApacheConfig/
   
   Service name=Tomcat-Apache
   
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8008 minProcessors=5 maxProcessors=75
   enableLookups=true
   acceptCount=10 debug=0/
   
Engine name=Apache defaultHost=192.168.1.250 
 debug=0
   appBase=webapps
 
 Logger className=org.apache.catalina.logger.FileLogger
 prefix=apache_log. suffix=.txt
 timestamp=true/
 Realm className=org.apache.catalina.realm.MemoryRealm /
   
 Host name=192.168.1.250 debug=0 appBase=webapps 
 unpackWARs=true
   
 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
   append=true/
   
   Valve 
 className=org.apache.catalina.valves.AccessLogValve
   directory=logs 
 prefix=192.168.1.250_access_log.
 suffix=.txt pattern=common/
 /Host
   /Engine
 /Service
   /Server
 
   No errors show up in the access log

RE: Apache2 and mod_jk

2003-01-08 Thread Bill
John
 
 What URL are you trying to access?  http://192.168.1.250/mrccores/some.jsp?

I've been testing using http://192.168.1.250/examples .  That url gets a
500 error. I figured if I got the example app working the rest would
fall into place...

 What are the contents of the JK logs and the Catalina logs?

There is absolutely nothing in the JK logs.  I included an excerpt of
the catalina.log file in the original message.  Besides the normal
startup and shutdown stuff there is the unable to open config file and
then there is a ton of packet data that corresponds to the bad reads in
the host_log file.

 Those unable to open config file messages are very strange, as is bad
 read.  How much editing have you done to the default configuration files?  

This bugs me too.  Not so much the bad reads but the unable to
read...  

What files in particular are you referring too?  The only file I can
really thing of that I did a ton of editing too is server.xml.  You saw
the changes I made to apache-tomcat and I removed the standalone config.

 
  -Original Message-
  From: Bill [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, January 08, 2003 9:59 AM
  To: Tomcat Users List
  Subject: RE: Apache2 and mod_jk
  
  
  The port designation was a typo in the file.  Thanks for 
  catching that,
  however it doesnt seemed to have made a difference.
  

  Here are the contexts I have defined currently:

Context path=
 docBase=ROOT
 debug=0
/Context
Context path=/tomcat-docs
 docBase=tomcat-docs
 reloadable=true
 debug=0
/Context
Context path=/examples
 docBase=examples
 reloadable=true
 debug=0
/Context
Context path=/mrccores
 docBase=mrccores
 reloadable=true
 debug=0
 trusted=false
/Context
  These are all defined after the AccessLogValve definition and 
  before the
  /Host tag.
  
  Here is the contents of of mod_jk.conf (minus the !IfModule block) :
  
  VirtualHost 192.168.1.250
  ServerName 192.168.1.250
  
  JkMount /examples ajp13
  JkMount /examples/* ajp13
  
  JkMount /webdav ajp13
  JkMount /webdav/* ajp13
  
  JkMount /tomcat-docs ajp13
  JkMount /tomcat-docs/* ajp13
  
  JkMount /manager ajp13
  JkMount /manager/* ajp13
  
  JkMount /mrccores ajp13
  JkMount /mrccores/* ajp13
  /VirtualHost

  
  On Wed, 2003-01-08 at 19:35, Turner, John wrote:
   
   Yep.  
   
   1. For Apache 2, you don't need AddModule
   
   2. Unless it's a typo, your workers.properties says the 
  Ajp13Connector is on
   8009, yet your server.xml has it on 8008.
   
   3. You don't have a Context element in server.xml, unless 
  you left it out
   when pasting.
   
   If 2 is a typo, and 8009 is used for both, all is good.  If 
  3 is deliberate,
   please post your Context entry and the contents of mod_jk.conf.
   
   John
   
-Original Message-
From: Bill [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 08, 2003 9:24 AM
To: tomcat user
Subject: Apache2 and mod_jk


I've been holding off on posting on my problem because there 
have been a
wealth of posts on this topic.  However, the 
  advice/suggestions I have
seen havent led me to a working system.

I'm trying to setup Tomcat 4.0.6 and HTTPD Server 2.0 
  using mod_jk. 
I've followed instructions for this task from several sources and
nothing seems to be working.

Here are the steps I followed:

1)  Added the following to httpd.conf:

LoadModule jk_module modules/mod_jk.so

This step also says to add the AddModule directive.  This 
directive does
not exist for 2.0 nor was I able to find an analogous directive to
replace it.

2)  I have the following in 
/usr/local/tomcat/conf/jk/workers.properties

workers.list= ajp13
worker.ajp13.type=ajp13

worker.ajp13.host=192.168.1.250
worker.ajp13.port=8009

worker.ajp13.cachesize=10
worker.ajp13.cache_timeout=600
worker.ajp13.socket_keepalive=1
worker.ajp13.socket_timeout=300


3)  I have the following in httpd.conf:

JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties
JkLogFile /usr/local/apache2/log/mod_jk.log
JkLogLevel info
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat %w %V %T

Include /usr/local/tomcat/conf/auto/mod_jk.conf

4) Here is my server.xml entry:

Server port=8005 shutdown=SHUTDOWN debug=0
Listener 
  className=org.apache.ajp.tomcat4.config.ApacheConfig/

Service name=Tomcat-Apache

 Connector className=org.apache.ajp.tomcat4.Ajp13Connector

RE: Apache2 and mod_jk

2003-01-08 Thread Turner, John

I was referring to server.xml and httpd.conf.  Just for grins, can you put
the default server.xml back?  You don't have to change anything for
/examples, there is a JK-compatible Connector on port 8009 enabled by
default.

John


 -Original Message-
 From: Bill [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 08, 2003 10:30 AM
 To: Tomcat Users List
 Subject: RE: Apache2 and mod_jk
 
 
 John
  
  What URL are you trying to access?  
 http://192.168.1.250/mrccores/some.jsp?
 
 I've been testing using http://192.168.1.250/examples .  That 
 url gets a
 500 error. I figured if I got the example app working the rest would
 fall into place...
 
  What are the contents of the JK logs and the Catalina logs?
 
 There is absolutely nothing in the JK logs.  I included an excerpt of
 the catalina.log file in the original message.  Besides the normal
 startup and shutdown stuff there is the unable to open 
 config file and
 then there is a ton of packet data that corresponds to the 
 bad reads in
 the host_log file.
 
  Those unable to open config file messages are very 
 strange, as is bad
  read.  How much editing have you done to the default 
 configuration files?  
 
 This bugs me too.  Not so much the bad reads but the unable to
 read...  
 
 What files in particular are you referring too?  The only file I can
 really thing of that I did a ton of editing too is 
 server.xml.  You saw
 the changes I made to apache-tomcat and I removed the 
 standalone config.
 
  
   -Original Message-
   From: Bill [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, January 08, 2003 9:59 AM
   To: Tomcat Users List
   Subject: RE: Apache2 and mod_jk
   
   
   The port designation was a typo in the file.  Thanks for 
   catching that,
   however it doesnt seemed to have made a difference.
   
 
   Here are the contexts I have defined currently:
 
 Context path=
  docBase=ROOT
  debug=0
 /Context
 Context path=/tomcat-docs
  docBase=tomcat-docs
  reloadable=true
  debug=0
 /Context
 Context path=/examples
  docBase=examples
  reloadable=true
  debug=0
 /Context
 Context path=/mrccores
  docBase=mrccores
  reloadable=true
  debug=0
  trusted=false
 /Context
   These are all defined after the AccessLogValve definition and 
   before the
   /Host tag.
   
   Here is the contents of of mod_jk.conf (minus the 
 !IfModule block) :
   
   VirtualHost 192.168.1.250
   ServerName 192.168.1.250
   
   JkMount /examples ajp13
   JkMount /examples/* ajp13
   
   JkMount /webdav ajp13
   JkMount /webdav/* ajp13
   
   JkMount /tomcat-docs ajp13
   JkMount /tomcat-docs/* ajp13
   
   JkMount /manager ajp13
   JkMount /manager/* ajp13
   
   JkMount /mrccores ajp13
   JkMount /mrccores/* ajp13
   /VirtualHost
 
   
   On Wed, 2003-01-08 at 19:35, Turner, John wrote:

Yep.  

1. For Apache 2, you don't need AddModule

2. Unless it's a typo, your workers.properties says the 
   Ajp13Connector is on
8009, yet your server.xml has it on 8008.

3. You don't have a Context element in server.xml, unless 
   you left it out
when pasting.

If 2 is a typo, and 8009 is used for both, all is good.  If 
   3 is deliberate,
please post your Context entry and the contents of mod_jk.conf.

John

 -Original Message-
 From: Bill [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 08, 2003 9:24 AM
 To: tomcat user
 Subject: Apache2 and mod_jk
 
 
 I've been holding off on posting on my problem because there 
 have been a
 wealth of posts on this topic.  However, the 
   advice/suggestions I have
 seen havent led me to a working system.
 
 I'm trying to setup Tomcat 4.0.6 and HTTPD Server 2.0 
   using mod_jk. 
 I've followed instructions for this task from several 
 sources and
 nothing seems to be working.
 
 Here are the steps I followed:
 
 1)  Added the following to httpd.conf:
 
 LoadModule jk_module modules/mod_jk.so
 
 This step also says to add the AddModule directive.  This 
 directive does
 not exist for 2.0 nor was I able to find an analogous 
 directive to
 replace it.
 
 2)  I have the following in 
 /usr/local/tomcat/conf/jk/workers.properties
 
 workers.list= ajp13
 worker.ajp13.type=ajp13
 
 worker.ajp13.host=192.168.1.250
 worker.ajp13.port=8009
 
 worker.ajp13.cachesize=10
 worker.ajp13.cache_timeout=600
 worker.ajp13.socket_keepalive=1
 worker.ajp13.socket_timeout=300
 
   
 3)  I have the following in httpd.conf:
 
 JkWorkersFile /usr/local/tomcat/conf/jk

Re: Apache2 + Tomcat4.0.1 + mod_jk

2002-01-23 Thread Falcon cheetah

And where would you get 4.0.2b2
I can only see 4.0?

--- Craig R. McClanahan [EMAIL PROTECTED] wrote:
 
 
 On Wed, 23 Jan 2002, Marc G. Fournier wrote:
 
  Date: Wed, 23 Jan 2002 14:26:10 -0400 (AST)
  From: Marc G. Fournier [EMAIL PROTECTED]
  Reply-To: Tomcat Users List
 [EMAIL PROTECTED]
  To: Tomcat Users List
 [EMAIL PROTECTED]
  Subject: Re: Apache2 + Tomcat4.0.1 + mod_jk
 
 
  This may be so, but my understanding is that you
 can't use mod_jk for
  *Tomcat 4.x* ... so I think you need to install
 mod_webapp for
  Apache2-Tomcat4.x, and leave mod_jk ther for
 Apache2-Tomcat3.x ...
 
 
 Your understanding is not correct -- mod_jk is also
 supported under 4.x,
 and the Java side of it is included (with many bug
 fixes) in the 4.0.2b2
 release.
 
 Craig
 
 
 
 
  On Wed, 23 Jan 2002, Falcon cheetah wrote:
 
   Are you sure about that? Because both the doc
 that I
   used and others on apache site say that you CAN
 use
   mod_jk for both 1.3 and 2.0!
  
   Any idea?
  
   --- Marc G. Fournier [EMAIL PROTECTED] wrote:
   
mod_jk is for Tomcat 3.x ... mod_webapp is for
Tomcat 4.x ... wrong module
:(
   
   
On Wed, 23 Jan 2002, Falcon cheetah wrote:
   
 Greetings,

 I managed to install the above subject on my
 RH
Linux
 7.1. I am downloaded the latest
 apache2.0.28beta
 together with tomcat 4.0.1. Built apache
 according
to
 the instructions. I followed instructions
 found on

   
  

http://www.iris.dti.ne.jp/~u-osamu/indexlinux72jdk140.html
 I followed the instructions to the extent. I
commented
 out the ssl part.

 When I typed ./apachectl configtest, it gave
 me
error
 that it can not recognize AddModule in

 LoadModule jk_module modules/mod_jk.so
 #AddModule mod_jk.c

 So I commented it out. My understanding is
 that I
need
 AddModule in order for Apache to load
 mod_jk,
 otherwise there not be communication between
apache2
 and tomcat4.

 I changed the port for ajp13 from 8009 to
 8006
since I
 have tomcat 3.2 running on the same machine.

 I am able to communicate with Apache on port
 8002,
it
 serves files fine. I can also get tomcat to
 serve
jsp
 on 8003. But when I try to access jsp files
 on the
 apache port it gives me page not found! and
 in the
 error log I find [Wed Jan 23 12:31:36 2002]
 [warn]
 [client local_ip] handler jakarta-servlet
 not
found
 for: carts.jsp, referer:

   
  

http://localhost:8002/examples/jsp/sessions/carts.html


 Is the AddModule causing the problem?
 Also when I look at the localhost_log.txt
 file I
find
 an exception for every context available. An
example
 is :
 2002-01-23 12:02:56
 StandardWrapper[/tomcat-docs:JkServlet]:
 Marking
 servlet JkServlet as unavailable
 2002-01-23 12:02:56
 StandardContext[/tomcat-docs]:
 Servlet /tomcat-docs threw load() exception
 javax.servlet.ServletException: Wrapper
 cannot
find
 servlet class
 org.apache.ajp.tomcat4.JkServlet or
a
 class it depends on
 at

   
  

org.apache.catalina.core.StandardWrapper.load(Unknown
 Source)
 at

   
  

org.apache.catalina.core.StandardContext.loadOnStartup(Unknown
 Source)

 Why is it complaining about JkServlet? I
 made sure
to
 have tomcat-ajp.jar in the server/lib
 directory,
and
 made sure the class is there.

 I read somewhere that apache2 does not work
 with
apxs,
 is that ture?

 I also noticed that in some of the source
 code the
 developers are using methods that only
 appeared in
JDK
 1.3, an example is
 Socket.setKeepAlive(boolean). I
 replaced that, since I am running jdk 1.2.2
 to
 Socket.setSOTimeOut(0);

 I know am asking several questions but hope
someone
 will find an answer for me.

 Thank you.




 __
 Do You Yahoo!?
 Send FREE video emails in Yahoo! Mail!
 http://promo.yahoo.com/videomail/

 --
 To unsubscribe:
   
 mailto:[EMAIL PROTECTED]
 For additional commands:
mailto:[EMAIL PROTECTED]
 Troubles with the list:
mailto:[EMAIL PROTECTED]


   
   
--
To unsubscribe:
 
=== message truncated ===


__
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: TC Re: Apache2 + Tomcat4.0.1 + mod_jk

2002-01-23 Thread Kirby Vandivort

http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.2-b2/

On Wed, Jan 23, 2002 at 11:00:50AM -0800, Falcon cheetah wrote:
 And where would you get 4.0.2b2
 I can only see 4.0?
 
 --- Craig R. McClanahan [EMAIL PROTECTED] wrote:
  
  
  On Wed, 23 Jan 2002, Marc G. Fournier wrote:
  
   Date: Wed, 23 Jan 2002 14:26:10 -0400 (AST)
   From: Marc G. Fournier [EMAIL PROTECTED]
   Reply-To: Tomcat Users List
  [EMAIL PROTECTED]
   To: Tomcat Users List
  [EMAIL PROTECTED]
   Subject: Re: Apache2 + Tomcat4.0.1 + mod_jk
  
  
   This may be so, but my understanding is that you
  can't use mod_jk for
   *Tomcat 4.x* ... so I think you need to install
  mod_webapp for
   Apache2-Tomcat4.x, and leave mod_jk ther for
  Apache2-Tomcat3.x ...
  
  
  Your understanding is not correct -- mod_jk is also
  supported under 4.x,
  and the Java side of it is included (with many bug
  fixes) in the 4.0.2b2
  release.
  
  Craig
  
  
  
  
   On Wed, 23 Jan 2002, Falcon cheetah wrote:
  
Are you sure about that? Because both the doc
  that I
used and others on apache site say that you CAN
  use
mod_jk for both 1.3 and 2.0!
   
Any idea?
   
--- Marc G. Fournier [EMAIL PROTECTED] wrote:

 mod_jk is for Tomcat 3.x ... mod_webapp is for
 Tomcat 4.x ... wrong module
 :(


 On Wed, 23 Jan 2002, Falcon cheetah wrote:

  Greetings,
 
  I managed to install the above subject on my
  RH
 Linux
  7.1. I am downloaded the latest
  apache2.0.28beta
  together with tomcat 4.0.1. Built apache
  according
 to
  the instructions. I followed instructions
  found on
 

   
 
 http://www.iris.dti.ne.jp/~u-osamu/indexlinux72jdk140.html
  I followed the instructions to the extent. I
 commented
  out the ssl part.
 
  When I typed ./apachectl configtest, it gave
  me
 error
  that it can not recognize AddModule in
 
  LoadModule jk_module modules/mod_jk.so
  #AddModule mod_jk.c
 
  So I commented it out. My understanding is
  that I
 need
  AddModule in order for Apache to load
  mod_jk,
  otherwise there not be communication between
 apache2
  and tomcat4.
 
  I changed the port for ajp13 from 8009 to
  8006
 since I
  have tomcat 3.2 running on the same machine.
 
  I am able to communicate with Apache on port
  8002,
 it
  serves files fine. I can also get tomcat to
  serve
 jsp
  on 8003. But when I try to access jsp files
  on the
  apache port it gives me page not found! and
  in the
  error log I find [Wed Jan 23 12:31:36 2002]
  [warn]
  [client local_ip] handler jakarta-servlet
  not
 found
  for: carts.jsp, referer:
 

   
 
 http://localhost:8002/examples/jsp/sessions/carts.html
 
 
  Is the AddModule causing the problem?
  Also when I look at the localhost_log.txt
  file I
 find
  an exception for every context available. An
 example
  is :
  2002-01-23 12:02:56
  StandardWrapper[/tomcat-docs:JkServlet]:
  Marking
  servlet JkServlet as unavailable
  2002-01-23 12:02:56
  StandardContext[/tomcat-docs]:
  Servlet /tomcat-docs threw load() exception
  javax.servlet.ServletException: Wrapper
  cannot
 find
  servlet class
  org.apache.ajp.tomcat4.JkServlet or
 a
  class it depends on
  at
 

   
 
 org.apache.catalina.core.StandardWrapper.load(Unknown
  Source)
  at
 

   
 
 org.apache.catalina.core.StandardContext.loadOnStartup(Unknown
  Source)
 
  Why is it complaining about JkServlet? I
  made sure
 to
  have tomcat-ajp.jar in the server/lib
  directory,
 and
  made sure the class is there.
 
  I read somewhere that apache2 does not work
  with
 apxs,
  is that ture?
 
  I also noticed that in some of the source
  code the
  developers are using methods that only
  appeared in
 JDK
  1.3, an example is
  Socket.setKeepAlive(boolean). I
  replaced that, since I am running jdk 1.2.2
  to
  Socket.setSOTimeOut(0);
 
  I know am asking several questions but hope
 someone
  will find an answer for me.
 
  Thank you.
 
 
 
 
  __
  Do You Yahoo!?
  Send FREE video emails in Yahoo! Mail!
  http://promo.yahoo.com/videomail/
 
  --
  To unsubscribe:

  mailto:[EMAIL PROTECTED]
  For additional commands:
 mailto:[EMAIL PROTECTED]
  Troubles with the list:
 mailto:[EMAIL PROTECTED]
 
 


 --
 To unsubscribe:
  
 === message truncated ===
 
 
 __
 Do You Yahoo!?
 Send FREE video emails in Yahoo! Mail!
 http://promo.yahoo.com/videomail/
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto

Re: Apache2 + Tomcat4.0.1 + mod_jk

2002-01-23 Thread Craig R. McClanahan



On Wed, 23 Jan 2002, Falcon cheetah wrote:

 Date: Wed, 23 Jan 2002 11:00:50 -0800 (PST)
 From: Falcon cheetah [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: Apache2 + Tomcat4.0.1 + mod_jk

 And where would you get 4.0.2b2
 I can only see 4.0?


It's listed under Milestone Builds on the Jakarta website's standard
binary downloads page:

http://jakarta.apache.org/site/binindex.html

Craig


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Apache2 + Tomcat4.0.1 + mod_jk code changes

2002-01-23 Thread Falcon cheetah

in this file :
/tmp/jakarta/connectors/util/java/org/apache/tomcat/util/buf/HexUtils.java

changed byte[] to char[]

in this file: 
/tmp/jakarta/connectors/jk/java/org/apache/ajp/tomcat4/Ajp13Connector.java
 
// commented it out since it is jdk1.3 based
   socket.setKeepAlive(true);
using this instead  socket.setSoTimeout(0);
 
and that was in order to build tomcat-ajp.jar for
4.0.1 snapshot of jan-22.

Is that some bug that I sumbled on? Is it fixed in the
newer releases? I am not sure if either will cause a
problem in my instance of the server.




__
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Apache2 + Tomcat4.0.1 + mod_jk

2002-01-23 Thread Falcon cheetah

Ok, what does this warning mean? this is what I see in
the apache2_error_log_file
[Wed Jan 23 19:34:23 2002] [warn] [client
my_ip_address] handler jakarta-servlet not found
for: numguess.jsp, referer:
http://webserver:8002/examples/jsp/

I get this warning when I try
http://webserver:8002/examples/jsp/num/numguess.jsp

which shows me (in the browser) a page with the
following error:

Server error!
Error message: 
handler jakarta-servlet not found for: numguess.jsp 
If you think this is a server error, please contact
the webmaster 
Error 500
webserver
Wed Jan 23 19:34:23 2002 
Apache/2.0.31-dev (Unix) DAV/2 mod_jk/1.2.0 

__
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]