Apache/Tomcat integration - What am I doing wrong?

2005-08-16 Thread Kyle

Hi,

I really hope you folk can help me, cause I'm tearing my hair out.

Apache 2.0.54
Tomcat 5.5.9
JK 1.2.14.1

I have Apache serving multiple VHosts. I want to (eventually) integrate 
different versions of Tomcat into different VHosts, but for now, I'd 
settle for just 5.5.9 working with my default Apache VHost.


Apache works dandy alone on :80.
Tomcat works just fine on :8080.

I have the jsp-examples and servlets-examples pages displaying from 
host.domain.com/..


But I have not yet managed to get 
www.host.domain.com/prefix-examples/this_or_that_example to work 
without returning a 500 Error.


Likewise, I am unable to get the host.domain.com/admin, 
host.domain.com/manager/html or host.domain.com/manager/status to 
display over :80


Various errors I am seeing are;

File does not exist /opt/www/root/jsp-examples/this_or_that_example
File does not exist /opt/www/root/admin

or

/admin just displays the index.

Files look like this;



httpd.conf
==

ServerName host.domain.com:80
UseCanonicalName Off
DocumentRoot /opt/www/root
..
..

VirtualHost *:80
ServerAdmin [EMAIL PROTECTED]
ServerName host.domain.com
ErrorLog logs/host-defaulthost-error_log
CustomLog logs/host-defaulthost-access_log common

Include /opt/jakarta-tomcat-5.5.9/conf/auto/mod_jk.conf-hostname

/VirtualHost
--

server.xml
==

.

   Connector port=8009 enableLookups=false protocol=AJP/1.3/

Engine name=Catalina defaultHost=host.domain.com

	Host name=host.domain.com appBase=webapps  unpackWARs=true 
autoDeploy=true

   xmlValidation=false xmlNamespaceAware=false

Aliaslocalhost/Alias

/Host

	Listener className=org.apache.jk.config.ApacheConfig 
modJk=/opt/httpd/modules/mod_jk.so
	   workersConfig=/opt/jakarta-tomcat-5.5.9/conf/workers.properties 
forwardAll=false

   jkLog=/var/log/httpd/mod_jk.log jkDebug=info 
jkWorker=ajp13Wkr/

/Engine

  /Service

/Server
--

workers.properties
==

workers.tomcat_home=/opt/jakarta-tomcat-5.5.9
#workers.tomcat_home=/opt/tomcat

workers.java_home=/opt/java

ps=/

# The workers that your plugins should create and work with
#
worker.list=ajp13Wkr, inprocess

worker.ajp13Wkr.port=8009
worker.ajp13Wkr.host=host.domain.com
worker.ajp13Wkr.type=ajp13
worker.ajp13Wkr.lbfactor=1
worker.ajp13Wkr.cachesize=30

worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13Wkr

worker.inprocess.type=jni
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar
worker.inprocess.cmd_line=start
worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)lib$(ps)i386$(ps)client$(ps)libjvm.so
worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout
worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr
worker.inprocess.sysprops=tomcat.home=$(workers.tomcat_home)
-


and the included file in the httpd.conf VHost above

mod-jk.conf-hostname


JkWorkersFile /opt/jakarta-tomcat-5.5.9/conf/workers.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel debug
JkLogStampFormat [%a %d %b %Y %H:%M:%S] 
JkOptions +ForwardKeySize +ForwardURICompat +ForwardDirectories
JkRequestLogFormat %w %V %T

# Static files
Alias /admin /opt/jakarta-tomcat-5.5.9/server/webapps/admin

Directory /opt/jakarta-tomcat-5.5.9/server/webapps/admin
Options Indexes FollowSymLinks
DirectoryIndex index.jsp index.html index.htm
Order allow,deny
Allow from All
/Directory


# Deny direct access to WEB-INF and META-INF
#
Location /admin/WEB-INF/*
AllowOverride None
deny from all
/Location

Location /admin/META-INF/*
AllowOverride None
deny from all
/Location

JkMount /admin/j_security_check  ajp13Wkr
JkMount /admin/index.jsp  ajp13Wkr
JkMount /admin/host/hosts.jsp  ajp13Wkr
JkMount /admin/saved.jsp  ajp13Wkr
JkMount /admin/server/server.jsp  ajp13Wkr
JkMount /admin/resources/dataSource.jsp  ajp13Wkr

..

###
# with lots more mappings as generated by tomcat. #
###

# Static files
Alias /jsp-examples /opt/jakarta-tomcat-5.5.9/webapps/jsp-examples

Directory /opt/jakarta-tomcat-5.5.9/webapps/jsp-examples
Options Indexes FollowSymLinks
DirectoryIndex index.jsp index.html index.htm
Order allow,deny
Allow from all
/Directory


# Deny direct access to WEB-INF and META-INF
#
Location /jsp-examples/WEB-INF/*
AllowOverride None
deny from all
/Location


Re: Apache/Tomcat integration - What am I doing wrong?

2005-08-16 Thread Darryl L. Miles

Kyle wrote:

I have Apache serving multiple VHosts. I want to (eventually) 
integrate different versions of Tomcat into different VHosts, but for 
now, I'd settle for just 5.5.9 working with my default Apache VHost.


Apache works dandy alone on :80.
Tomcat works just fine on :8080.

I have the jsp-examples and servlets-examples pages displaying from 
host.domain.com/..


But I have not yet managed to get 
www.host.domain.com/prefix-examples/this_or_that_example to work 
without returning a 500 Error.


First is it apache or tomcat that is returning the 500 ?

This might be easiest found setting up logging of your specific VHost in 
apache to a different file than the default apache logs (that are in 
apache/logs/).  Then breaking the ServerName and ServerAlias 
configuration in apache (restarting apache inbetween) and checking to 
see that the request you put through with say wget is being directed 
by apache to the correct Apache VHost logfile.


I would revise your JkMount to look like:

JkMount  /admin/*  ajp13Wkr

This will pass-thru apache everything for the webapp to TC.


I would also remove inprocess from the worker.list settings.



Once you have that established you can then work on your JkMount 
settings and Tomcat.  Have you checked out, understood and implement the 
information in 
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/host.html#Host+Name+Aliases 
?



I suspect your only remaining problem now is to get Apache and Tomcat to 
see the same website document roots for the same URLs.  This maybe a 
problem if you are using deployed WARs since tomcat can and will delete 
the directory from under apache during the deployment process.






Likewise, I am unable to get the host.domain.com/admin, 
host.domain.com/manager/html or host.domain.com/manager/status to 
display over :80


Various errors I am seeing are;

File does not exist /opt/www/root/jsp-examples/this_or_that_example
File does not exist /opt/www/root/admin

or

/admin just displays the index.

Files look like this;



httpd.conf
==

ServerName host.domain.com:80
UseCanonicalName Off
DocumentRoot /opt/www/root
..
..

VirtualHost *:80
ServerAdmin [EMAIL PROTECTED]
ServerName host.domain.com
ErrorLog logs/host-defaulthost-error_log
CustomLog logs/host-defaulthost-access_log common

Include /opt/jakarta-tomcat-5.5.9/conf/auto/mod_jk.conf-hostname

/VirtualHost
--

server.xml
==

.

   Connector port=8009 enableLookups=false protocol=AJP/1.3/

Engine name=Catalina defaultHost=host.domain.com

Host name=host.domain.com appBase=webapps  unpackWARs=true 
autoDeploy=true

   xmlValidation=false xmlNamespaceAware=false

Aliaslocalhost/Alias

/Host

Listener className=org.apache.jk.config.ApacheConfig 
modJk=/opt/httpd/modules/mod_jk.so
   
workersConfig=/opt/jakarta-tomcat-5.5.9/conf/workers.properties 
forwardAll=false
   jkLog=/var/log/httpd/mod_jk.log jkDebug=info 
jkWorker=ajp13Wkr/


/Engine

  /Service

/Server
-- 



workers.properties
==

workers.tomcat_home=/opt/jakarta-tomcat-5.5.9
#workers.tomcat_home=/opt/tomcat

workers.java_home=/opt/java

ps=/

# The workers that your plugins should create and work with
#
worker.list=ajp13Wkr, inprocess

worker.ajp13Wkr.port=8009
worker.ajp13Wkr.host=host.domain.com
worker.ajp13Wkr.type=ajp13
worker.ajp13Wkr.lbfactor=1
worker.ajp13Wkr.cachesize=30

worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13Wkr

worker.inprocess.type=jni
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar
worker.inprocess.cmd_line=start
worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)lib$(ps)i386$(ps)client$(ps)libjvm.so 

worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout 

worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr 


worker.inprocess.sysprops=tomcat.home=$(workers.tomcat_home)
-


and the included file in the httpd.conf VHost above

mod-jk.conf-hostname


JkWorkersFile /opt/jakarta-tomcat-5.5.9/conf/workers.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel debug
JkLogStampFormat [%a %d %b %Y %H:%M:%S] 
JkOptions +ForwardKeySize +ForwardURICompat +ForwardDirectories
JkRequestLogFormat %w %V %T

# Static files
Alias /admin /opt/jakarta-tomcat-5.5.9/server/webapps/admin

Directory /opt/jakarta-tomcat-5.5.9/server/webapps/admin
Options Indexes FollowSymLinks
DirectoryIndex index.jsp index.html index.htm
Order allow,deny
Allow from All
/Directory


# Deny direct access to WEB-INF and META-INF
#
Location /admin/WEB-INF/*
AllowOverride None
  

Re: Apache/Tomcat integration - What am I doing wrong?

2005-08-16 Thread Kyle

Darryl,

thanks the reply.

Responses inline

Darryl L. Miles wrote:

Kyle wrote:

I have Apache serving multiple VHosts. I want to (eventually) 
integrate different versions of Tomcat into different VHosts, but for 
now, I'd settle for just 5.5.9 working with my default Apache VHost.


Apache works dandy alone on :80.
Tomcat works just fine on :8080.

I have the jsp-examples and servlets-examples pages displaying from 
host.domain.com/..


But I have not yet managed to get 
www.host.domain.com/prefix-examples/this_or_that_example to work 
without returning a 500 Error.



First is it apache or tomcat that is returning the 500 ?


I'll leave the 500 question till I can be certain of the answer. I 
thought it could only be Apache. Will however ensure now.


Then breaking the ServerName and ServerAlias 
configuration in apache (restarting apache inbetween) 


Not certain I understand what you mean here. Break them ... ?? Do you 
simply mean give the default VHost a diff. name to the general 
ServerName directive above?




I would revise your JkMount to look like:

JkMount  /admin/*  ajp13Wkr

This will pass-thru apache everything for the webapp to TC.


The multiple jkMount Directives are auto-generated by Tomcat. I could 
revise. I just thought it best to just leave them. I suspect they are so 
that IF I were to put any static content in those directories, Apache 
would pick it up instead.




Once you have that established you can then work on your JkMount 
settings and Tomcat.  Have you checked out, understood and implement the 
information in 
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/host.html#Host+Name+Aliases 
?

Interesting question. Read it, I have.

It is not however clear to me as to whether or not TC _MUST_ have a 
_Different_ VirtualHost Name than the default VHost name in Apache or 
whether it should be the same. And then whether or not an Alias can or 
cannot be the same as some other name for that same machine.


Does this mean effectively there should be 3 different names for the 
same machine to function in this manner? I.e.

The ServerName directive in httpd.conf
The ServerName for the default VHost AND
yet ANother different defaultHost/Host name for Tomcat

I suspect your only remaining problem now is to get Apache and Tomcat to 
see the same website document roots for the same URLs.  This maybe a 
problem if you are using deployed WARs since tomcat can and will delete 
the directory from under apache during the deployment process.


So far, I am only trying to view the examples and default admin app.s 
that come bundled with TC. If I understand you correctly here, you are 
effectively saying that the auto-conf file generated by TC is not up to 
the job and I should dump it in favour of manual inline config.


MTiA

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



Re: Apache/Tomcat integration - What am I doing wrong?

2005-08-16 Thread Darryl L. Miles

Kyle wrote:



But I have not yet managed to get 
www.host.domain.com/prefix-examples/this_or_that_example to work 
without returning a 500 Error.




First is it apache or tomcat that is returning the 500 ?



I'll leave the 500 question till I can be certain of the answer. I 
thought it could only be Apache. Will however ensure now.


Then breaking the ServerName and ServerAlias configuration in apache 
(restarting apache inbetween) 



Not certain I understand what you mean here. Break them ... ?? Do you 
simply mean give the default VHost a diff. name to the general 
ServerName directive above?



I mean when you are stuck and don't know.  Somethings are easier to 
deliberatly break the configuration and observe the result (i.e. where 
the error shows up now).   Since you are trying to work out if the 500 
is being produced directly from Apache or is a response apache is just 
relaying that really came from Tomcat.  It smells like apache to me, but 
until you can prove it you wont really know.


You need to confirm that requests for the vhost are being correctly 
routed into the VirtualHost section of the apache config.  If they are 
not then there is no sense looking at the JkMount configuration yet.  So 
if you have logging setup in apache both in the global config 
/usr/local/apache/log/access_log and in the VirtualHost ... section to 
/tmp/foobar/someother/file/access_log then depending upon which file the 
request gets logged will confirm to you that Apache is correctly 
configured and working for vhost operation and the VirtualHost ... 
section your JkMount's are in it indeed coming into play.




JkMount  /admin/*  ajp13Wkr

This will pass-thru apache everything for the webapp to TC.


I would revise your JkMount to look like:

The multiple jkMount Directives are auto-generated by Tomcat. I could 
revise. I just thought it best to just leave them. I suspect they are 
so that IF I were to put any static content in those directories, 
Apache would pick it up instead.


Yes.  But in the situation you are in, setting up /admin/* should make 
Apache bounce the request off Tomcat if it was not table to serve the 
content itself.  I am not at all sure what the order of preceedence is 
with mixing Alias, JkMount or if the file itself it found in the 
document root.


Once you have that established you can then work on your JkMount 
settings and Tomcat.  Have you checked out, understood and implement 
the information in 
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/host.html#Host+Name+Aliases 
?


Interesting question. Read it, I have.

It is not however clear to me as to whether or not TC _MUST_ have a 
_Different_ VirtualHost Name than the default VHost name in Apache 
or whether it should be the same. And then whether or not an Alias can 
or cannot be the same as some other name for that same machine.


Does this mean effectively there should be 3 different names for the 
same machine to function in this manner? I.e.

The ServerName directive in httpd.conf
The ServerName for the default VHost AND
yet ANother different defaultHost/Host name for Tomcat

Different No.  The idea is that you can service some content via Apache 
directly (maybe this is also PHP or Perl) and other content via 
Apache+Tomcat.  Apache is always in control, if the request is not 
forwarded to Tomcat then you will see the usual Apache like responses (404).


So if you want to a single hostname in the URL then you need to 
configure both Apache (ServerName/ServerAlias) and Tomcat (Host / 
Alias) to responsd to the same hostname.



I suspect your only remaining problem now is to get Apache and Tomcat 
to see the same website document roots for the same URLs.  This maybe 
a problem if you are using deployed WARs since tomcat can and will 
delete the directory from under apache during the deployment process.


So far, I am only trying to view the examples and default admin app.s 
that come bundled with TC. If I understand you correctly here, you are 
effectively saying that the auto-conf file generated by TC is not up 
to the job and I should dump it in favour of manual inline config.


No...  I'm not saying that I have no idea your Apache configuration was 
auto-generated by TC.  I'm just offering you a methodoligy to observe 
some change in behaviour so you can work through the problem yourself.




--
Darryl L. Miles



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



Re: Apache/Tomcat integration - Update

2005-08-16 Thread Kyle

Ok,

One step at a time. Thanks so far Darryl.

I now have it working across the internal network, but not externally. 
The next step is what do I now need to do so that I can see the 
jsp/servlets-examples pages externally??


Also, as I understand it, this format means that TC 5.5.9 will be the 
only one available to ALL VHosts. I need to set up different Tomcat 
versions with the different VHosts. Another day's question for now.



{For reference, I have included the changes made to my originally mailed 
config at the bottom.}



As follow up to earlier questions;

You need to confirm that requests for the vhost are being correctly 
routed into the VirtualHost section of the apache config.  If they are 
not then there is no sense looking at the JkMount configuration yet.  ...


logging is set up differently for the global config and the default 
VHost. It is the VHost error log which is displaying the File does not 
exist errors. This file registered these internally initially and it is 
now still this file which is registering the same error for external calls.


So if you want to a single hostname in the URL then you need to 
configure both Apache (ServerName/ServerAlias) and Tomcat (Host / 
Alias) to responsd to the same hostname.



it is precisely this combo which didn't work.
Engine defaultHost=same_as_Apache_ServerName__Default_VHost
Host name=same_as_Apache_ServerName__Default_VHost
Aliaslocalhost/Alias

I have now switched them (see below) and it appears to work.



I suspect your only remaining problem now is to get Apache and Tomcat 
to see the same website document roots for the same URLs.  This maybe 
a problem if you are using deployed WARs since tomcat can and will 
delete the directory from under apache during the deployment process.


How do you mean TC can and will delete the directory from under 
Apache? Which directory do you mean? At this point, I am only trying to 
view the WARs bundled with TC. I am starting TC before Apache with the 
apps already deployed (so far).


Thanks again.

Kyle

==

httpd.conf now looks like;
--

ServerName host.domain.com:80
.

VirtualHost *:80
ServerAdmin [EMAIL PROTECTED]
ServerName host.domain.com
ErrorLog logs/host-defaulthost-error_log
CustomLog logs/host-defaulthost-access_log common
/VirtualHost

Include /opt/jakarta-tomcat-5.5.9/conf/auto/mod_jk.conf
JkLogStampFormat [%a %d %b %Y %H:%M:%S] 
JkOptions +ForwardKeySize +ForwardURICompat +ForwardDirectories
JkRequestLogFormat %w %V %T

server.xml has been switched (localhost now defaultHost - surely this 
can't be right)

--

Engine name=Catalina defaultHost=localhost

Host name=localhost appBase=webapps  unpackWARs=true 
autoDeploy=true

   xmlValidation=false xmlNamespaceAware=false

Aliashost.domain.com/Alias

and mod_jk.conf is almost the std. auto-generated file from TC with the 
minor additions of;



Directory /opt/jakarta-tomcat-5.5.9/webapps/jsp-examples
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
ADDED IN
Order allow,deny
Allow from all
/ADDED IN
/Directory
And
JkMount /jsp-examples/* ajp13Wkr



Also del'd the JNI worker in workers.properties as suggested.



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



Re: Apache/Tomcat integration - Update

2005-08-16 Thread Darryl L. Miles


Do you have a line in Apache:

NameVirtualHost *:80

I dont think ServerName should have the port number after it.  This and 
ServerAlias are Host: header matching values.




I suspect your only remaining problem now is to get Apache and 
Tomcat to see the same website document roots for the same URLs.  
This maybe a problem if you are using deployed WARs since tomcat 
can and will delete the directory from under apache during the 
deployment process.


How do you mean TC can and will delete the directory from under 
Apache? Which directory do you mean? At this point, I am only trying 
to view the WARs bundled with TC. I am starting TC before Apache with 
the apps already deployed (so far).


I suggest you learn more about the exact nature of the deployment 
procedure from an packed WAR to an unpacked WAR that goes in within TC.



--
Darryl L. Miles



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



Re: Apache/Tomcat integration - Update

2005-08-16 Thread Kyle



Darryl L. Miles wrote:


Do you have a line in Apache:

NameVirtualHost *:80

I dont think ServerName should have the port number after it.  This and 
ServerAlias are Host: header matching values.




Darryl,

yes I do.

However the ServerName directive I have been referring to in all msgs is 
the global ServerName directive that comes in much further up the file 
(example file anyway). The actual Hostname of the machine. It is this 
name I have been putting into the VirtualHost tag as the default VHost.


I.e. It is this name I want the machine to respond with rather than 
www as a default.


I'm beginning to wonder whether this is the right thing to be doing.

--
Kind Regards

Kyle


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



Re: Apache Tomcat integration

2004-11-20 Thread vimal krishna
roger 
there is step by step instruction
http://www.sitepoint.com/article/quick-start-guide-windows
HIH
vimal
- Original Message - 
From: Roger Mori-Tuesta [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, November 20, 2004 5:19 AM
Subject: Apache  Tomcat integration


Dear Partners:
Any information how to integrate Tomcat 5 and Apache 2.+ in
windows platform  is appreciated.
Thank you.
-
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]


Apache Tomcat integration

2004-11-19 Thread Roger Mori-Tuesta
Dear Partners:
Any information how to integrate Tomcat 5 and Apache 2.+ in
windows platform  is appreciated.
Thank you.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Apache/Tomcat Integration problem (Aprutil lib missing) causing unsatisfied link error

2004-09-16 Thread [EMAIL PROTECTED]
I am following the instructions listed in
http://www.mail-archive.com/[EMAIL PROTECTED]/msg130210.html

Expected Results from ldd

 ldd /usr/local/httpd/modules/jkjni.so
libcrypt.so.1 = /lib/libcrypt.so.1 (0x40046000)
libapr-0.so.0 =
/usr/local/httpd-2.0.49/lib/libapr-0.so.0 (0x40074000)
libaprutil-0.so.0 =
/usr/local/httpd-2.0.49/lib/libaprutil-0.so.0
(0x40097000)
libgdbm.so.2 = /usr/lib/libgdbm.so.2 (0x400ab000)
libdb-4.0.so = /lib/libdb-4.0.so (0x400b2000)
libexpat.so.0 = /usr/lib/libexpat.so.0 (0x4015a000)
libc.so.6 = /lib/i686/libc.so.6 (0x4017a000)
librt.so.1 = /lib/i686/librt.so.1 (0x402b4000)
libm.so.6 = /lib/i686/libm.so.6 (0x402c6000)
libnsl.so.1 = /lib/libnsl.so.1 (0x402e8000)
libpthread.so.0 = /lib/i686/libpthread.so.0
(0x402fd000)
libdl.so.2 = /lib/libdl.so.2 (0x4034d000)
/lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x8000)

Actual Results from my installation..


[EMAIL PROTECTED] apache2]# ldd libjkjni.so
libcrypt.so.1 = /lib/libcrypt.so.1
(0x40032000)
libapr-0.so.0 =
/usr/local/apache2/lib/libapr-0.so.0 (0x4005f000)
libc.so.6 = /lib/tls/libc.so.6 (0x4200)
librt.so.1 = /lib/librt.so.1 (0x4007d000)
libm.so.6 = /lib/tls/libm.so.6 (0x4008f000)
libnsl.so.1 = /lib/libnsl.so.1 (0x400b2000)
libpthread.so.0 = /lib/tls/libpthread.so.0
(0x400c7000)
libdl.so.2 = /lib/libdl.so.2 (0x400d4000)



I am missing apr-uitl etc... So I  am getting
Unsatisfied link Error...Please help...

MakeFile /server/apache2 is listed below..

# Gnu makefile and libtool are required
# use -D options to overrides defaults
CC=gcc
CP=/bin/cp
prefix=/usr/local
exec_prefix=${prefix}
  
  
   
APACHE2_HOME=/usr/local/apache2
OS=linux
JAVA_HOME=/usr/java/jdk1.5.0
APACHE2_INCL=-I/usr/local/apache2/include
APACHE2_LIBEXEC=/usr/local/apache2/modules
APACHE2_LIBDIR=/usr/local/apache2/lib
APR_INCL=
-I/usr/local/httpd-2.0.50/srclib/apr-util/include
-I/usr/local/httpd-2.0.50/srclib/apr/include
#APR_LIBS=-L/usr/local/apache2/lib
APR_LIBS=-L/usr/local/apache2/lib -lapr-0
#APR_LIBS=-L/root/software/httpd-2.0.50/srclib/apr-util/.libs
-laprutil-0
APR_LIBDIR_LA=
EXTRA_CFLAGS= -g -O2 -pthread
EXTRA_CPPFLAGS=-DLINUX=2 -D_REENTRANT
-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE
-D_GNU_SOURCE
ifneq ($(strip $(JAVA_HOME)),)
JAVA_INCL=-I ${JAVA_HOME}/include -I
${JAVA_HOME}/include/${OS}
JAVA_LIB=-L ${JAVA_HOME}/jre/lib/${ARCH} -L
${JAVA_HOME}/lib/${ARCH}/native_threads
endif
  
  
   
JK_DIR := ../..
BUILD_DIR = ${JK_DIR}/../build/jk2/apache2
  
  
   
# Extract EXTRA_CFLAGS and EXTRA_CPPFLAGS - same flags
used during apache2
# compilation
#include ${APACHE2_HOME}/build/config_vars.mk
  
  
   
# Yes, we use the same properties file as ant
#include ../../../build.properties


#LIBTOOL=/bin/sh /usr/local/apache2/build/libtool
--silent
LIBTOOL=/usr/bin/libtool
  
  
   
# It doesn't hurt if we include all
INCLUDES= -I${JK_DIR}/include \
  ${APACHE2_INCL} \
  ${APR_INCL} \
  ${JAVA_INCL}
  
  
   
JK_CFLAGS=-DCHUNK_SIZE=4096 -DUSE_APACHE_MD5
-DHAVE_JNI
#ifdef APR_LIBDIR_LA
#JK_LDFLAGS=-L${APACHE2_LIBDIR} -lcrypt
#else
#JK_LDFLAGS=-lcrypt ${APR_LIBS}
#endif'
ifdef APR_LIBDIR_LA
JK_LDFLAGS=-L${APACHE2_LIBDIR} -lcrypt
else
JK_LDFLAGS=-lcrypt ${APR_LIBS}
-L/usr/local/apache2/lib -laprutil-0 -lgdbm -ldb-4.0
-lexpat
endif
  
  
   
## Based on rules.mk
##

etc


Thanks



__
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 

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



Apache/TomCat Integration problem: No ClassDef Found Error

2004-09-16 Thread [EMAIL PROTECTED]

PLEASE HELP

I am following the instructions listed in
http://www.mail-archive.com/[EMAIL PROTECTED]/msg130210.html

Expected Results from ldd

 ldd /usr/local/httpd/modules/jkjni.so
libcrypt.so.1 = /lib/libcrypt.so.1 (0x40046000)
libapr-0.so.0 =
/usr/local/httpd-2.0.49/lib/libapr-0.so.0 (0x40074000)
libaprutil-0.so.0 =
/usr/local/httpd-2.0.49/lib/libaprutil-0.so.0
(0x40097000)
libgdbm.so.2 = /usr/lib/libgdbm.so.2 (0x400ab000)
libdb-4.0.so = /lib/libdb-4.0.so (0x400b2000)
libexpat.so.0 = /usr/lib/libexpat.so.0 (0x4015a000)
libc.so.6 = /lib/i686/libc.so.6 (0x4017a000)
librt.so.1 = /lib/i686/librt.so.1 (0x402b4000)
libm.so.6 = /lib/i686/libm.so.6 (0x402c6000)
libnsl.so.1 = /lib/libnsl.so.1 (0x402e8000)
libpthread.so.0 = /lib/i686/libpthread.so.0
(0x402fd000)
libdl.so.2 = /lib/libdl.so.2 (0x4034d000)
/lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x8000)

Actual Results from my installation..


[EMAIL PROTECTED] apache2]# ldd libjkjni.so
libcrypt.so.1 = /lib/libcrypt.so.1
(0x40032000)
libapr-0.so.0 =
/usr/local/apache2/lib/libapr-0.so.0 (0x4005f000)
libc.so.6 = /lib/tls/libc.so.6 (0x4200)
librt.so.1 = /lib/librt.so.1 (0x4007d000)
libm.so.6 = /lib/tls/libm.so.6 (0x4008f000)
libnsl.so.1 = /lib/libnsl.so.1 (0x400b2000)
libpthread.so.0 = /lib/tls/libpthread.so.0
(0x400c7000)
libdl.so.2 = /lib/libdl.so.2 (0x400d4000)



I am missing apr-uitl etc... So I  am getting
Unsatisfied link Error...Please help...

MakeFile /server/apache2 is listed below..

# Gnu makefile and libtool are required
# use -D options to overrides defaults
CC=gcc
CP=/bin/cp
prefix=/usr/local
exec_prefix=${prefix}
  
  
   
APACHE2_HOME=/usr/local/apache2
OS=linux
JAVA_HOME=/usr/java/jdk1.5.0
APACHE2_INCL=-I/usr/local/apache2/include
APACHE2_LIBEXEC=/usr/local/apache2/modules
APACHE2_LIBDIR=/usr/local/apache2/lib
APR_INCL=
-I/usr/local/httpd-2.0.50/srclib/apr-util/include
-I/usr/local/httpd-2.0.50/srclib/apr/include
#APR_LIBS=-L/usr/local/apache2/lib
APR_LIBS=-L/usr/local/apache2/lib -lapr-0
#APR_LIBS=-L/root/software/httpd-2.0.50/srclib/apr-util/.libs
-laprutil-0
APR_LIBDIR_LA=
EXTRA_CFLAGS= -g -O2 -pthread
EXTRA_CPPFLAGS=-DLINUX=2 -D_REENTRANT
-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE
-D_GNU_SOURCE
ifneq ($(strip $(JAVA_HOME)),)
JAVA_INCL=-I ${JAVA_HOME}/include -I
${JAVA_HOME}/include/${OS}
JAVA_LIB=-L ${JAVA_HOME}/jre/lib/${ARCH} -L
${JAVA_HOME}/lib/${ARCH}/native_threads
endif
  
  
   
JK_DIR := ../..
BUILD_DIR = ${JK_DIR}/../build/jk2/apache2
  
  
   
# Extract EXTRA_CFLAGS and EXTRA_CPPFLAGS - same flags
used during apache2
# compilation
#include ${APACHE2_HOME}/build/config_vars.mk
  
  
   
# Yes, we use the same properties file as ant
#include ../../../build.properties


#LIBTOOL=/bin/sh /usr/local/apache2/build/libtool
--silent
LIBTOOL=/usr/bin/libtool
  
  
   
# It doesn't hurt if we include all
INCLUDES= -I${JK_DIR}/include \
  ${APACHE2_INCL} \
  ${APR_INCL} \
  ${JAVA_INCL}
  
  
   
JK_CFLAGS=-DCHUNK_SIZE=4096 -DUSE_APACHE_MD5
-DHAVE_JNI
#ifdef APR_LIBDIR_LA
#JK_LDFLAGS=-L${APACHE2_LIBDIR} -lcrypt
#else
#JK_LDFLAGS=-lcrypt ${APR_LIBS}
#endif'
ifdef APR_LIBDIR_LA
JK_LDFLAGS=-L${APACHE2_LIBDIR} -lcrypt
else
JK_LDFLAGS=-lcrypt ${APR_LIBS}
-L/usr/local/apache2/lib -laprutil-0 -lgdbm -ldb-4.0
-lexpat
endif
  
  
   
## Based on rules.mk
##

etc


Thanks







__
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 

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



Re: Apache/Tomcat Integration. Urgent!!

2004-01-25 Thread rohit chugh
Hi There,
Can any body help please.
Thanks

--- rohit chugh [EMAIL PROTECTED] wrote:
 Thanks again.
 I tried that however , the problem persists.
 Following are the excerpts from the log files, if
 they
 can help
 ---Apache log.
 [Fri Jan 23 16:32:49 2004] [error]File does not
 exist:
 /opt/htdocs/examples/
 
 --mod_jk log
 
 jk_uri_worker_map.c (185)]: In
 jk_uri_worker_map_t::uri_worker_map_free, NULL
 parameters
 
 Thanks
 
 
 
 
 
 
 
 
 --- Jeff Tulley [EMAIL PROTECTED] wrote:
  Your worker name does not match the name in the
  generated mod_jk.conf. 
  That file wants the worker name to be ajp13,
  whereas yours is named
  testWorker.
  
  Change that and restart apache and see what
 happens.
  
   [EMAIL PROTECTED] 1/23/04 12:00:40 PM 
  Hi,
  Thanks for the reply.
  The contents of the workers.properties are given
  below, which i copied of the net.
  worker.list=testWorker
  worker.testWorker.port=8009
  worker.testWorker.host=localhost
  worker.testWorker.type=ajp13
  -
  The contents of mod_jk.conf are given below.
  
  ## Auto generated on Fri Jan 23 12:20:23
 EST
  2004##
  
  IfModule !mod_jk.c
LoadModule jk_module /opt/libexec/mod_jk.so
  /IfModule
  
  JkWorkersFile
  /home/tomcat4.1/conf/jk/workers.properties
  JkLogFile /home/tomcat4.1/logs/mod_jk.log
  
  JkLogLevel info
  
  VirtualHost localhost
  ServerName localhost
  JkMount /webdav ajp13
  JkMount /webdav/* ajp13
  
  JkMount /examples ajp13
  JkMount /examples/* ajp13
  
  JkMount /tomcat-docs ajp13
  JkMount /tomcat-docs/* ajp13
  
  JkMount /manager ajp13
  JkMount /manager/* ajp13
  /VirtualHost
 
 
  
  
  --- Jeff Tulley [EMAIL PROTECTED] wrote:
   What are the contents of your auto-generated
   mod_jk.conf, and how do
   they match the web application you are trying to
   access?
   Also, it would be helpful to post the (relevant)
   contents of your
   workers.properties file.
   
[EMAIL PROTECTED] 1/23/04 11:05:42 AM 
   Hi,
   I am trying to integrate Apache 1.3 and Tomcat
 4.0
   
   The apache logs shows that it has started with
   mod_jk
   and mod_ssl.However when i send a request for a
   webapplication it gives errors saying page not
   found.
   Apache log shows that it is trying to find the
   application under htdocs
   Following is the apache and tomcat
 configuration.
   Any help would be highly appreciated.
   Thanks in advance
   
   //excerpt from the tomcat
   
   LoadModule jk_module  /opt/libexec/mod_jk.so
   AddModule mod_jk.c
   JkWorkersFile
   /home/tomcat4.1/conf/jk/workers.properties
   JkLogFile /home/tomcat4.1/logs/mod_jk.log 
   JkLogLevel debug 
   
   Include /home/tomcat4.1/conf/auto/mod_jk.conf
   //-Tomcat
   server.xml-
   
   Server port=8005 shutdown=SHUTDOWN
 debug=0
   Listener
  
 

className=org.apache.ajp.tomcat4.config.ApacheConfig
 modJk=opt/libexec/mod_jk.so jkDebug=info
   
  
 

workersConfig=/home/tomcat4.1/conf/jk/workers.properties
 jkLog=/home/tomcat4.1/logs/mod_jk.log/
   
 !-- 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
 
=== message truncated ===


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/


Apache/Tomcat Integration. Urgent!!

2004-01-23 Thread rohit chugh
Hi,
I am trying to integrate Apache 1.3 and Tomcat 4.0

The apache logs shows that it has started with mod_jk
and mod_ssl.However when i send a request for a
webapplication it gives errors saying page not found.
Apache log shows that it is trying to find the
application under htdocs
Following is the apache and tomcat configuration.
Any help would be highly appreciated.
Thanks in advance

//excerpt from the tomcat

LoadModule jk_module/opt/libexec/mod_jk.so
AddModule mod_jk.c
JkWorkersFile
/home/tomcat4.1/conf/jk/workers.properties
JkLogFile /home/tomcat4.1/logs/mod_jk.log 
JkLogLevel debug 

Include /home/tomcat4.1/conf/auto/mod_jk.conf
//-Tomcat
server.xml-

Server port=8005 shutdown=SHUTDOWN debug=0
Listener
className=org.apache.ajp.tomcat4.config.ApacheConfig
modJk=opt/libexec/mod_jk.so jkDebug=info

workersConfig=/home/tomcat4.1/conf/jk/workers.properties
jkLog=/home/tomcat4.1/logs/mod_jk.log/

  !-- 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=Tomcat-Standalone

!-- 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 4.0 documentation bundle
for more detailed
 instructions):
 * 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 Coyote HTTP/1.1 Connector on
port 8080 --
Connector
className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8080 minProcessors=5
maxProcessors=75
   enableLookups=true
redirectPort=8443
   acceptCount=100 debug=0
connectionTimeout=2
   useURIValidationHack=false
disableUploadTimeout=true /
!-- Note : To disable connection timeouts, set
connectionTimeout value
 to -1 --

!-- Define a SSL Coyote HTTP/1.1 Connector on
port 8443 --
!--
Connector
className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8443 minProcessors=5
maxProcessors=75
   enableLookups=true
   acceptCount=100 debug=0 

Re: Apache/Tomcat Integration. Urgent!!

2004-01-23 Thread Jeff Tulley
What are the contents of your auto-generated mod_jk.conf, and how do
they match the web application you are trying to access?
Also, it would be helpful to post the (relevant) contents of your
workers.properties file.

 [EMAIL PROTECTED] 1/23/04 11:05:42 AM 
Hi,
I am trying to integrate Apache 1.3 and Tomcat 4.0

The apache logs shows that it has started with mod_jk
and mod_ssl.However when i send a request for a
webapplication it gives errors saying page not found.
Apache log shows that it is trying to find the
application under htdocs
Following is the apache and tomcat configuration.
Any help would be highly appreciated.
Thanks in advance

//excerpt from the tomcat

LoadModule jk_module/opt/libexec/mod_jk.so
AddModule mod_jk.c
JkWorkersFile
/home/tomcat4.1/conf/jk/workers.properties
JkLogFile /home/tomcat4.1/logs/mod_jk.log 
JkLogLevel debug 

Include /home/tomcat4.1/conf/auto/mod_jk.conf
//-Tomcat
server.xml-

Server port=8005 shutdown=SHUTDOWN debug=0
Listener
className=org.apache.ajp.tomcat4.config.ApacheConfig
modJk=opt/libexec/mod_jk.so jkDebug=info

workersConfig=/home/tomcat4.1/conf/jk/workers.properties
jkLog=/home/tomcat4.1/logs/mod_jk.log/

  !-- 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=Tomcat-Standalone

!-- 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 4.0 documentation bundle
for more detailed
 instructions):
 * 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 Coyote HTTP/1.1 Connector on
port 8080 --
Connector
className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8080 minProcessors=5
maxProcessors=75
   enableLookups=true
redirectPort=8443
   acceptCount=100 debug=0
connectionTimeout=2
   useURIValidationHack=false
disableUploadTimeout=true /
!-- Note : To disable connection timeouts, set
connectionTimeout value
 to -1 --

!-- 

Re: Apache/Tomcat Integration. Urgent!!

2004-01-23 Thread rohit chugh
Hi,
Thanks for the reply.
The contents of the workers.properties are given
below, which i copied of the net.
worker.list=testWorker
worker.testWorker.port=8009
worker.testWorker.host=localhost
worker.testWorker.type=ajp13
-
The contents of mod_jk.conf are given below.

## Auto generated on Fri Jan 23 12:20:23 EST
2004##

IfModule !mod_jk.c
  LoadModule jk_module /opt/libexec/mod_jk.so
/IfModule

JkWorkersFile
/home/tomcat4.1/conf/jk/workers.properties
JkLogFile /home/tomcat4.1/logs/mod_jk.log

JkLogLevel info

VirtualHost localhost
ServerName localhost
JkMount /webdav ajp13
JkMount /webdav/* ajp13

JkMount /examples ajp13
JkMount /examples/* ajp13

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

JkMount /manager ajp13
JkMount /manager/* ajp13
/VirtualHost



--- Jeff Tulley [EMAIL PROTECTED] wrote:
 What are the contents of your auto-generated
 mod_jk.conf, and how do
 they match the web application you are trying to
 access?
 Also, it would be helpful to post the (relevant)
 contents of your
 workers.properties file.
 
  [EMAIL PROTECTED] 1/23/04 11:05:42 AM 
 Hi,
 I am trying to integrate Apache 1.3 and Tomcat 4.0
 
 The apache logs shows that it has started with
 mod_jk
 and mod_ssl.However when i send a request for a
 webapplication it gives errors saying page not
 found.
 Apache log shows that it is trying to find the
 application under htdocs
 Following is the apache and tomcat configuration.
 Any help would be highly appreciated.
 Thanks in advance
 
 //excerpt from the tomcat
 
 LoadModule jk_module  /opt/libexec/mod_jk.so
 AddModule mod_jk.c
 JkWorkersFile
 /home/tomcat4.1/conf/jk/workers.properties
 JkLogFile /home/tomcat4.1/logs/mod_jk.log 
 JkLogLevel debug 
 
 Include /home/tomcat4.1/conf/auto/mod_jk.conf
 //-Tomcat
 server.xml-
 
 Server port=8005 shutdown=SHUTDOWN debug=0
 Listener

className=org.apache.ajp.tomcat4.config.ApacheConfig
   modJk=opt/libexec/mod_jk.so jkDebug=info
 

workersConfig=/home/tomcat4.1/conf/jk/workers.properties
   jkLog=/home/tomcat4.1/logs/mod_jk.log/
 
   !-- 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=Tomcat-Standalone
 
 !-- 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 4.0 documentation
 bundle
 for more detailed
  instructions):
  * Download and install JSSE 1.0.2 or later,
 and put the JAR files
into $JAVA_HOME/jre/lib/ext.
  * Execute:
  

Re: Apache/Tomcat Integration. Urgent!!

2004-01-23 Thread Jeff Tulley
Your worker name does not match the name in the generated mod_jk.conf. 
That file wants the worker name to be ajp13, whereas yours is named
testWorker.

Change that and restart apache and see what happens.

 [EMAIL PROTECTED] 1/23/04 12:00:40 PM 
Hi,
Thanks for the reply.
The contents of the workers.properties are given
below, which i copied of the net.
worker.list=testWorker
worker.testWorker.port=8009
worker.testWorker.host=localhost
worker.testWorker.type=ajp13
-
The contents of mod_jk.conf are given below.

## Auto generated on Fri Jan 23 12:20:23 EST
2004##

IfModule !mod_jk.c
  LoadModule jk_module /opt/libexec/mod_jk.so
/IfModule

JkWorkersFile
/home/tomcat4.1/conf/jk/workers.properties
JkLogFile /home/tomcat4.1/logs/mod_jk.log

JkLogLevel info

VirtualHost localhost
ServerName localhost
JkMount /webdav ajp13
JkMount /webdav/* ajp13

JkMount /examples ajp13
JkMount /examples/* ajp13

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

JkMount /manager ajp13
JkMount /manager/* ajp13
/VirtualHost



--- Jeff Tulley [EMAIL PROTECTED] wrote:
 What are the contents of your auto-generated
 mod_jk.conf, and how do
 they match the web application you are trying to
 access?
 Also, it would be helpful to post the (relevant)
 contents of your
 workers.properties file.
 
  [EMAIL PROTECTED] 1/23/04 11:05:42 AM 
 Hi,
 I am trying to integrate Apache 1.3 and Tomcat 4.0
 
 The apache logs shows that it has started with
 mod_jk
 and mod_ssl.However when i send a request for a
 webapplication it gives errors saying page not
 found.
 Apache log shows that it is trying to find the
 application under htdocs
 Following is the apache and tomcat configuration.
 Any help would be highly appreciated.
 Thanks in advance
 
 //excerpt from the tomcat
 
 LoadModule jk_module  /opt/libexec/mod_jk.so
 AddModule mod_jk.c
 JkWorkersFile
 /home/tomcat4.1/conf/jk/workers.properties
 JkLogFile /home/tomcat4.1/logs/mod_jk.log 
 JkLogLevel debug 
 
 Include /home/tomcat4.1/conf/auto/mod_jk.conf
 //-Tomcat
 server.xml-
 
 Server port=8005 shutdown=SHUTDOWN debug=0
 Listener

className=org.apache.ajp.tomcat4.config.ApacheConfig
   modJk=opt/libexec/mod_jk.so jkDebug=info
 

workersConfig=/home/tomcat4.1/conf/jk/workers.properties
   jkLog=/home/tomcat4.1/logs/mod_jk.log/
 
   !-- 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=Tomcat-Standalone
 
 !-- 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 

Re: Apache/Tomcat Integration. Urgent!!

2004-01-23 Thread rohit chugh
Thanks again.
I tried that however , the problem persists.
Following are the excerpts from the log files, if they
can help
---Apache log.
[Fri Jan 23 16:32:49 2004] [error]File does not exist:
/opt/htdocs/examples/

--mod_jk log

jk_uri_worker_map.c (185)]: In
jk_uri_worker_map_t::uri_worker_map_free, NULL
parameters

Thanks








--- Jeff Tulley [EMAIL PROTECTED] wrote:
 Your worker name does not match the name in the
 generated mod_jk.conf. 
 That file wants the worker name to be ajp13,
 whereas yours is named
 testWorker.
 
 Change that and restart apache and see what happens.
 
  [EMAIL PROTECTED] 1/23/04 12:00:40 PM 
 Hi,
 Thanks for the reply.
 The contents of the workers.properties are given
 below, which i copied of the net.
 worker.list=testWorker
 worker.testWorker.port=8009
 worker.testWorker.host=localhost
 worker.testWorker.type=ajp13
 -
 The contents of mod_jk.conf are given below.
 
 ## Auto generated on Fri Jan 23 12:20:23 EST
 2004##
 
 IfModule !mod_jk.c
   LoadModule jk_module /opt/libexec/mod_jk.so
 /IfModule
 
 JkWorkersFile
 /home/tomcat4.1/conf/jk/workers.properties
 JkLogFile /home/tomcat4.1/logs/mod_jk.log
 
 JkLogLevel info
 
 VirtualHost localhost
 ServerName localhost
 JkMount /webdav ajp13
 JkMount /webdav/* ajp13
 
 JkMount /examples ajp13
 JkMount /examples/* ajp13
 
 JkMount /tomcat-docs ajp13
 JkMount /tomcat-docs/* ajp13
 
 JkMount /manager ajp13
 JkMount /manager/* ajp13
 /VirtualHost
 
 
 
 --- Jeff Tulley [EMAIL PROTECTED] wrote:
  What are the contents of your auto-generated
  mod_jk.conf, and how do
  they match the web application you are trying to
  access?
  Also, it would be helpful to post the (relevant)
  contents of your
  workers.properties file.
  
   [EMAIL PROTECTED] 1/23/04 11:05:42 AM 
  Hi,
  I am trying to integrate Apache 1.3 and Tomcat 4.0
  
  The apache logs shows that it has started with
  mod_jk
  and mod_ssl.However when i send a request for a
  webapplication it gives errors saying page not
  found.
  Apache log shows that it is trying to find the
  application under htdocs
  Following is the apache and tomcat configuration.
  Any help would be highly appreciated.
  Thanks in advance
  
  //excerpt from the tomcat
  
  LoadModule jk_module/opt/libexec/mod_jk.so
  AddModule mod_jk.c
  JkWorkersFile
  /home/tomcat4.1/conf/jk/workers.properties
  JkLogFile /home/tomcat4.1/logs/mod_jk.log 
  JkLogLevel debug 
  
  Include /home/tomcat4.1/conf/auto/mod_jk.conf
  //-Tomcat
  server.xml-
  
  Server port=8005 shutdown=SHUTDOWN debug=0
  Listener
 

className=org.apache.ajp.tomcat4.config.ApacheConfig
  modJk=opt/libexec/mod_jk.so jkDebug=info
  
 

workersConfig=/home/tomcat4.1/conf/jk/workers.properties
  jkLog=/home/tomcat4.1/logs/mod_jk.log/
  
!-- 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=Tomcat-Standalone
  
  !-- A 

Apache-Tomcat integration vs Direct Tomcat

2004-01-21 Thread Gurlal Brar
Hi Everybody,

 We can deploy a web application directly into Tomcat and use itself as
web server.In second case we can integrate Tomcat with any web server(Apache
or Tomcat) using AJP connector.
 Which approach is best under which circumstances?
 Can i  get any documentation which contains comparison of both
approaches ?

  
 
Thanks and Regards
Gurlal Brar

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



Re: Apache-Tomcat integration vs Direct Tomcat

2004-01-21 Thread jerome moliere
 Hi Everybody,

  We can deploy a web application directly into Tomcat and use itself
 as
 web server.In second case we can integrate Tomcat with any web
 server(Apache
 or Tomcat) using AJP connector.
there are many others available
using the in-process approach for exemple (tomcat becoming achild of the
apache process)
  Which approach is best under which circumstances?
for your 2 architectures you must just consider your requirements:
- delivering static pages or just dynamic pages (servlets/JSP)
- using complex HTTP handlings (proxies/url rewritings) or direct HTTP
requests
if you answer A) to both questions use an AJP connector (or at least A) to
second question)
if answer B) to both questions, use tomcat stand alone

  Can i  get any documentation which contains comparison of both
 approaches ?

humm I guess, that you can find numerous books dealing with such topic
(wrox press professional tomcat e.g)

HTH
Jerome


 Thanks and Regards
 Gurlal Brar

 -
 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: Apache-Tomcat integration vs Direct Tomcat

2004-01-21 Thread Ben Souther
   Which approach is best under which circumstances?
We don't know your circumstances.  

   Can i  get any documentation which contains comparison of both
   approaches ?
This issue has been discussed many times on this list so a search of the 
archives should give you plenty to read.  There have also been articles 
published on this subject so a google search should also give you plenty to 
read.

While reading, you may run into statements that claim that Tomcat is much 
slower than apache at serving up static documents.  While this certainly was 
the case with earlier releases, there have been significant improvements in 
both the Java runtime and in Tomcat itself that have narrowed the gap.




On Wednesday 21 January 2004 06:46 am, you wrote:
 Hi Everybody,

  We can deploy a web application directly into Tomcat and use itself as
 web server.In second case we can integrate Tomcat with any web
 server(Apache or Tomcat) using AJP connector.
  Which approach is best under which circumstances?
  Can i  get any documentation which contains comparison of both
 approaches ?



 Thanks and Regards
 Gurlal Brar

 -
 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: Apache-Tomcat integration vs Direct Tomcat

2004-01-21 Thread Yiannis Mavroukakis
No easy answer on this one..There are proponents of the httpd-Tomcat
approach
who say that since Apache httpd has been developed to excel at static
content 
delivery then you should use that.
On the other hand, there are people that say that Tomcat can perform equally
well at serving static content, so why burden yourself with another 
layer?
I would say try both out, and see what performs better for YOU. Load test
tomcat as standalone and httpd+tomcat together. There is no clear cut
solution
and nothing works the same for everyone.

Good luck,
Yiannis

-Original Message-
From: Gurlal Brar [mailto:[EMAIL PROTECTED]
Sent: 21 January 2004 11:47
To: [EMAIL PROTECTED]
Subject: Apache-Tomcat integration vs Direct Tomcat


Hi Everybody,

 We can deploy a web application directly into Tomcat and use itself as
web server.In second case we can integrate Tomcat with any web server(Apache
or Tomcat) using AJP connector.
 Which approach is best under which circumstances?
 Can i  get any documentation which contains comparison of both
approaches ?

  
 
Thanks and Regards
Gurlal Brar

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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

Re: Apache-Tomcat integration vs Direct Tomcat

2004-01-21 Thread Tim Funk
http://jakarta.apache.org/tomcat/faq/connectors.html#integrate

-Tim

Gurlal Brar wrote:
Hi Everybody,

 We can deploy a web application directly into Tomcat and use itself as
web server.In second case we can integrate Tomcat with any web server(Apache
or Tomcat) using AJP connector.
 Which approach is best under which circumstances?
 Can i  get any documentation which contains comparison of both
approaches ?


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


RE: Apache-Tomcat integration vs Direct Tomcat

2004-01-21 Thread Shapira, Yoav

Howdy,
I was nearly brought to tears of joy by the responses in this thread...
Excellent...


Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 21, 2004 7:33 AM
To: Tomcat Users List
Subject: Re: Apache-Tomcat integration vs Direct Tomcat

http://jakarta.apache.org/tomcat/faq/connectors.html#integrate

-Tim

Gurlal Brar wrote:
 Hi Everybody,

  We can deploy a web application directly into Tomcat and use
itself
as
 web server.In second case we can integrate Tomcat with any web
server(Apache
 or Tomcat) using AJP connector.
  Which approach is best under which circumstances?
  Can i  get any documentation which contains comparison of both
 approaches ?



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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Apache-Tomcat integration vs Direct Tomcat

2004-01-21 Thread Yiannis Mavroukakis
ROFLMAO! Why did I miss the joy part on my first read of your response?:)

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: 21 January 2004 13:58
To: Tomcat Users List
Subject: RE: Apache-Tomcat integration vs Direct Tomcat



Howdy,
I was nearly brought to tears of joy by the responses in this thread...
Excellent...


Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 21, 2004 7:33 AM
To: Tomcat Users List
Subject: Re: Apache-Tomcat integration vs Direct Tomcat

http://jakarta.apache.org/tomcat/faq/connectors.html#integrate

-Tim

Gurlal Brar wrote:
 Hi Everybody,

  We can deploy a web application directly into Tomcat and use
itself
as
 web server.In second case we can integrate Tomcat with any web
server(Apache
 or Tomcat) using AJP connector.
  Which approach is best under which circumstances?
  Can i  get any documentation which contains comparison of both
 approaches ?



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




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

apache-tomcat integration

2002-12-11 Thread Manish Sharma
hello Sir

please help me on this issue. i have followed all instruction from 
this
http://jakarta.apache.org/tomcat-old/jakarta-tomcat/src/doc/tomcat-apache-howto.html. 
but still i could'nt connect apache to tomcat.
there is no error  log generated by both apache  tomcat. i have 
included auto generated mod_jk.conf into httpd.conf file. i have 
made worker.
help me ..
please send me reply as soon as possible.

with regards..
Manish.




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



Re: apache-tomcat integration

2002-12-11 Thread Kaustuv Sharma
Hi Manish,

pls detail the steps u had gone through to connect apache and tomcat..did u set 
the worker's file?...what platform r u using?

Regards,

Kaustuv Sharma
S.S.NetCom Pvt. Ltd.
Dhankheti, 
Shillong - 3
Ph: 0361-502355
Visit us at www.neline.com

--
If we knew what we were doing, it wouldn't be called research. Would it?
 
   
  ---Albert Einstein
  - Original Message - 
  From: Manish Sharma 
  To: [EMAIL PROTECTED] 
  Sent: Wednesday, December 11, 2002 3:55 PM
  Subject: apache-tomcat integration


  hello Sir

  please help me on this issue. i have followed all instruction from 
  this
  
http://jakarta.apache.org/tomcat-old/jakarta-tomcat/src/doc/tomcat-apache-howto.html. 
  but still i could'nt connect apache to tomcat.
  there is no error  log generated by both apache  tomcat. i have 
  included auto generated mod_jk.conf into httpd.conf file. i have 
  made worker.
  help me ..
  please send me reply as soon as possible.

  with regards..
  Manish.




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





Re: apache-tomcat integration

2002-12-11 Thread Boris Folgmann
Manish Sharma wrote:

 there is no error  log generated by both apache  tomcat. i have 
 included auto generated mod_jk.conf into httpd.conf file. i have 

I've used mod_webapp instead of mod_jk2. It's really hard to find out on
the web if mod_webapp has some severe disadvantages in comparision to
mod_jk2, but it's very easy to do the set up.

-- 
Dipl.-Inf. Boris Folgmann   mailto:[EMAIL PROTECTED]
Folgmann IT-Consulting  http://www.folgmann.de


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




Re: apache tomcat integration

2002-12-09 Thread Robert L Sowders
Apache is telling you that there is something wrong with the loading of 
the mod_jk.so, either the LoadModule line in the httpd.conf is wrong or 
the .so file is bogus in some way.

run the apachectl configtest to check the syntax of the httpd.conf.  You 
should get the same error.  Now double check the LoadModule line for that 
module in the httpd.conf.  Triple check that the syntax a path are correct 
for the command.  Try moving it to the end of the LoadModule section or 
the beginning.  If you are using Apache 1.3.x then make sure you have the 
AddModule statement also and it is in the same relative position as the 
LoadModule statement.

rls





Manish  Sharma [EMAIL PROTECTED]
12/07/2002 09:37 PM
Please respond to Tomcat Users List

 
To: [EMAIL PROTECTED]
cc: 
Subject:apache tomcat integration


  Dear Sir/Mam..

please help me on this issue. i'm facing problem in apache tomcat 
integration on linux server.
  there's error after restart the apache. theres message started 
ok.
  but in error.log two errors.
  Syntax error on line 2 of
  /home/suvigya/Desktop/manish/jakarta-tomcat-4.1.12-LE-jdk14/co
  nf/jk/mode_jk.conf:
  Invalid command 'LoadModule', perhaps mis-spelled or defined by 
a
  module not included in the server configuration

  i have made all required changes in httpd.conf,mode_jk.conf 
  workers.properties. i have copied mod_jk.so in apache's lib.
  so please help me on this issue as soon as possible.
  i'll be very thankful to you.

  Manish Sharma reply me [EMAIL PROTECTED]
  Java Programmer
  VGL Softech Ltd.
  Jaipur (India).





--
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: apache tomcat integration

2002-12-09 Thread Vikram Dham
Also make sure ( by using httpd -l) that shared objects(mod_so) are enabled
in your apache configuration. If you don't see mod_so it means loadmodule
makes no sense to apache.

HTH

Vikram
- Original Message -
From: Robert L Sowders [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, December 09, 2002 4:03 AM
Subject: Re: apache tomcat integration


 Apache is telling you that there is something wrong with the loading of
 the mod_jk.so, either the LoadModule line in the httpd.conf is wrong or
 the .so file is bogus in some way.

 run the apachectl configtest to check the syntax of the httpd.conf.  You
 should get the same error.  Now double check the LoadModule line for that
 module in the httpd.conf.  Triple check that the syntax a path are correct
 for the command.  Try moving it to the end of the LoadModule section or
 the beginning.  If you are using Apache 1.3.x then make sure you have the
 AddModule statement also and it is in the same relative position as the
 LoadModule statement.

 rls





 Manish  Sharma [EMAIL PROTECTED]
 12/07/2002 09:37 PM
 Please respond to Tomcat Users List


 To: [EMAIL PROTECTED]
 cc:
 Subject:apache tomcat integration


   Dear Sir/Mam..

 please help me on this issue. i'm facing problem in apache tomcat
 integration on linux server.
   there's error after restart the apache. theres message started
 ok.
   but in error.log two errors.
   Syntax error on line 2 of
   /home/suvigya/Desktop/manish/jakarta-tomcat-4.1.12-LE-jdk14/co
   nf/jk/mode_jk.conf:
   Invalid command 'LoadModule', perhaps mis-spelled or defined by
 a
   module not included in the server configuration

   i have made all required changes in httpd.conf,mode_jk.conf 
   workers.properties. i have copied mod_jk.so in apache's lib.
   so please help me on this issue as soon as possible.
   i'll be very thankful to you.

   Manish Sharma reply me [EMAIL PROTECTED]
   Java Programmer
   VGL Softech Ltd.
   Jaipur (India).





 --
 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]




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




RE: apache tomcat integration

2002-12-09 Thread Turner, John

mode_jk.conf is incorrect.  If you are using the auto-generation feature
of Tomcat for generating Apache configuration, the file name would be called
mod_jk.conf without the e.

John


 -Original Message-
 From: Manish Sharma [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, December 08, 2002 12:38 AM
 To: [EMAIL PROTECTED]
 Subject: apache tomcat integration
 
 
   Dear Sir/Mam..
 
 please help me on this issue. i'm facing problem in apache tomcat 
 integration on linux server.
   there's error after restart the apache. theres message started 
 ok.
   but in error.log two errors.
   Syntax error on line 2 of
   /home/suvigya/Desktop/manish/jakarta-tomcat-4.1.12-LE-jdk14/co
   nf/jk/mode_jk.conf:
   Invalid command 'LoadModule', perhaps mis-spelled or defined by 
 a
   module not included in the server configuration
 
   i have made all required changes in httpd.conf,mode_jk.conf 
   workers.properties. i have copied mod_jk.so in apache's lib.
   so please help me on this issue as soon as possible.
   i'll be very thankful to you.
 
   Manish Sharma reply me [EMAIL PROTECTED]
   Java Programmer
   VGL Softech Ltd.
   Jaipur (India).
 
 
 
 
 
 --
 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]




apache tomcat integration

2002-12-08 Thread Manish Sharma
 Dear Sir/Mam..

please help me on this issue. i'm facing problem in apache tomcat 
integration on linux server.
 there's error after restart the apache. theres message started 
ok.
 but in error.log two errors.
 Syntax error on line 2 of
 /home/suvigya/Desktop/manish/jakarta-tomcat-4.1.12-LE-jdk14/co
 nf/jk/mode_jk.conf:
 Invalid command 'LoadModule', perhaps mis-spelled or defined by 
a
 module not included in the server configuration

 i have made all required changes in httpd.conf,mode_jk.conf 
 workers.properties. i have copied mod_jk.so in apache's lib.
 so please help me on this issue as soon as possible.
 i'll be very thankful to you.

 Manish Sharma reply me [EMAIL PROTECTED]
 Java Programmer
 VGL Softech Ltd.
 Jaipur (India).





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



Need help in apache-tomcat integration

2002-11-19 Thread Santhosh C N
Hi All,
I've done the integration of modssl and apache on my Aix 5.1 box as per the 
link:
http://www.modssl.org/source/exp/mod_ssl/pkg.mod_ssl/INSTALL..

After this when I'm trying to integrate the tomcat and Apache, I'm facing 
difficulty in getting my tomcat and Apache integrated. I've got my mod_jk.so 
for Aix from:
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.0/bin/

The Tomcat version is 4.0.6 and Apache is 1.3.27. All the configs and makes 
go thru fine.. And I've inserted the following statements into my 
/usr/local/apache/conf/httpd.conf for the mod_jk to get loaded:

  # The following line instructs Apache to load the jk module
  LoadModule jk_module libexec/mod_jk.so
  IfModule mod_jk.c
  JkWorkersFile 
/var/UDDIPreReq/jakarta-tomcat-4.0.6/conf/workers.properties
  JkLogFile /var/UDDIPreReq/jakarta-tomcat-4.0.6/logs/mod_jk.log
  JkLogLevel error
  /IfModule

For some reason, when I try to start my apache, I get this error:

aix-2:/usr/local/usr/local/apache/bin/apachectl startssl
Syntax error on line 1235 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/mod_jk.so into server: No such file or 
dir
ectory
/usr/local/apache/bin/apachectl startssl: httpd could not be started

The line 1235 has the LoadModule command, for which tells a syntax error.. 
Could someone help me to come out of this error? We appreciate any help in 
this regard. Thanks for ur time!

Regards,
Santosh.

_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail


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



Re: Need help in apache-tomcat integration

2002-11-19 Thread Kent Perrier
On Tue, 2002-11-19 at 08:03, Santhosh C N wrote:
 aix-2:/usr/local/usr/local/apache/bin/apachectl startssl
 Syntax error on line 1235 of /usr/local/apache/conf/httpd.conf:
 Cannot load /usr/local/apache/libexec/mod_jk.so into server: No such file or 
 dir
 ectory
 /usr/local/apache/bin/apachectl startssl: httpd could not be started
 
 The line 1235 has the LoadModule command, for which tells a syntax error.. 
 Could someone help me to come out of this error? We appreciate any help in 
 this regard. Thanks for ur time!
 

Not to sound like a smart ass, but is mod_jk.so in your
/usr/local/apache/libexec directory?  

Kent

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




Apache-tomcat integration

2002-08-03 Thread Thomas Cherry

I am almost done configuring my site, but I have just a few more 
question (for now).  I am using ajp13 to connect tomcat 4 with apache 
1.3.  Apache is running on port 81 and I want to know if have to do 
anything different when configuring server.xml  as a result of my web 
site running on the non-standard port.

Also, in my  Service name=Tomcat-Apache tag block, there is no 
mention of ajp.  Is this ok?

Last, here is a few lines from my apache log:
[Sat Aug  3 09:21:36 2002] [notice] Apache-AdvancedExtranetServer/1.3.22 
(Mandrake Linux/1.1mdk) mod_jk mod_perl/1.26 configured --
  resuming normal operations
[Sat Aug  3 09:21:36 2002] [notice] Accept mutex: sysvsem (Default: 
sysvsem)
[Sat Aug  3 09:21:40 2002] [error] [client 192.168.1.1] File does not 
exist: /var/www/html/examples/jsp/dates/date.jsp

I assume that this means that apache is loading mod_jk, but why can it 
not find the examples directory?


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




Re: Apache-tomcat integration

2002-08-03 Thread rsequeira


AJP is configured in   Service name=Tomcat-Standalone. But you could
move this Connector element to Tomcat-Apache. Also remember to disable the
Warp connector under Tomcat-Apache. Have you configured Apache to send
requests containing examples to Tomcat? You might need something like this:
JkMount /examples/*.jsp ajp13
JkMount /examples/servlet/* ajp13

RS



   

  Thomas Cherry

  [EMAIL PROTECTED]To:   Tomcat Users List   

[EMAIL PROTECTED]   

  08/03/02 08:55 AMcc: 

  Please respond toSubject:  Apache-tomcat integration 

  Tomcat Users

  List

   

   





I am almost done configuring my site, but I have just a few more
question (for now).  I am using ajp13 to connect tomcat 4 with apache
1.3.  Apache is running on port 81 and I want to know if have to do
anything different when configuring server.xml  as a result of my web
site running on the non-standard port.

Also, in my  Service name=Tomcat-Apache tag block, there is no
mention of ajp.  Is this ok?

Last, here is a few lines from my apache log:
[Sat Aug  3 09:21:36 2002] [notice] Apache-AdvancedExtranetServer/1.3.22
(Mandrake Linux/1.1mdk) mod_jk mod_perl/1.26 configured --
  resuming normal operations
[Sat Aug  3 09:21:36 2002] [notice] Accept mutex: sysvsem (Default:
sysvsem)
[Sat Aug  3 09:21:40 2002] [error] [client 192.168.1.1] File does not
exist: /var/www/html/examples/jsp/dates/date.jsp

I assume that this means that apache is loading mod_jk, but why can it
not find the examples directory?


--
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: Apache-tomcat integration

2002-08-02 Thread Turner, John


I don't know what to tell you.  I built a tomcat 4 + apache 1.3 + mod_jk
installation on Tuesday, and my server.xml has no definition for port 8109
at all.  Period.  Note that I don't use RPMs or any other sort of packages
if I can help it.  I built apache from source, mod_jk from source, and used
the tomcat binary install (not the RPM).

I only made 4 changes to my server.xml (I can post a diff if you like):

1) I changed name parameter in my Host container to match the ServerName in
my httpd.conf.  This also matches the host parameter in my
workers.properties file

2) I added a Server-level Listener directive, per the tomcat docs

3) I added a Host-level Listener directive, per the tomcat docs

4) I added one Context for my web application

That's it, and it works great with mod_jk.

Everything I did is documented to death, step by step, in my HOWTO:
http://www.johnturner.com/howto/apache-tomcat-howto.html

As far as picking connectors goes, you just have to pick one and configure
apache to use it.  That's all.  Deleting the unused connector configs in
server.xml is not necessary to get apache working with tomcat.  Tomcat comes
with AJP and WARP enabled in server.xml by default...this is transparent to
the user.  In a production environment, you might want to delete the
connectors that you aren't using, but again, it's not required to do this to
get tomcat to work with apache.

Hope this helps.

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Thomas Cherry [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 10:30 PM
To: Tomcat Users List
Subject: RE: Apache-tomcat integration


I don't get it.  The comments is the file say that 8109 is the default.  
What I want to use is AJP.  This is in my server.xml:

   Service name=Tomcat-Apache
 Connector 
className=org.apache.catalina.connector.warp.WarpConnector
  port=8008 minProcessors=1 maxProcessors=5
  enableLookups=true
  acceptCount=10 debug=0/
 Engine className=org.apache.catalina.connector.warp.WarpEngine
  name=Apache 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 /
 /Engine
   /Service

Does this mean that I don't have tomcat configured to use AJP.  What you 
pointing out is in the stand alone code.  Do I even need that?  What do 
I do to make apache call tomcat when it is asked to serve a JSP file?

On Thursday, August 1, 2002, at 06:08  PM, tomcat-user-digest-
[EMAIL PROTECTED] wrote:

 From: Turner, John [EMAIL PROTECTED]
 Date: Thu Aug 01, 2002  03:41:53  PM US/Eastern
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: RE: RE: Apache-tomcat integration



 Which connector did you choose to use?  AJP or WARP?  Your server.xml 
 shows
 some changes on the port numbers.  For example, the AJP connector is 
 showing
 8109 instead of 8009 (the default).  Did you carry that change through 
 the
 other configuration files, like workers.properties (if you chose AJP)?

 John Turner
 [EMAIL PROTECTED]

--
Don't give in to hate- that leads to the dark side. -Obi-Wan, Jedi Knight


--
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: Apache-tomcat integration

2002-08-01 Thread Thomas Cherry

Sorry for the delay, I have been busy.

Ok, I have a mandrake system with Apache 1.3 and tomcat 4.01.  I have a 
copy of mod_jk from tomcat 3.x and was thinking that I could reuse the 
same lib.  I started configuring apache and tomcat but it does not seem 
to work so I am including the content of my config files in this 
letter.  If someone could look at these settings and tell me what I did 
wrong, that would be great.  Thanks.

Last line in httpd.conf:
Include /etc/tomcat4/conf/mod_jk.conf

contents of /etc/tomcat4/conf/mod_jk.conf:
LoadModule jk_module libexec/mod_jk.so

JkWorkersFile /etc/tomcat4/conf/jk/workers.properties
JkLogFile /var/tomcat4/logs/mod_jk.log

JkLogLevel info

AddModule mod_env.c

JkMount /*.jsp ajp13
JkMount /servlet/* ajp13

JkMount /admin ajp13
JkMount /admin/* ajp13

JkMount /examples ajp13
JkMount /examples/* ajp13

JkMount /examples/servlet/* ajp13
JkMount /examples/jsp/* ajp13
#IfModule !mod_jk.c
#/IfModule

contents of /etc/tomcat4/conf/jk/workers.properties:
workers.tomcat_home=/etc/tomcat4
workers.java_home=/usr/java/current
ps=/

worker.list=ajp13

worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1


contents of /etc/tomcat4/conf/tomcat4.conf:
JAVA_HOME=/usr/java/current

CATALINA_HOME=/var/tomcat4
JASPER_HOME=/var/tomcat4

TOMCAT_USER=tomcat

On Friday, July 26, 2002, at 09:39  PM, tomcat-user-digest-
[EMAIL PROTECTED] wrote:

 From: Turner, John [EMAIL PROTECTED]
 Date: Fri Jul 26, 2002  04:24:52  PM US/Eastern
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: RE: Apache-tomcat integration



 It would help if you could give us more information, such as target
 operating system, etc.

 In general, there are all sorts of resources available, such as this one
 from the tomcat site:
 http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html

 and this one, also from the tomcat site:
 http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/index.html

 Some people have found the resources here to be helpful:
 http://www.galatea.com/flashguides/index

 John Turner
 [EMAIL PROTECTED]



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




AW: Apache-tomcat integration

2002-08-01 Thread Ralph Einfeldt

Yes it's possible to use mod_jk from 3.3.

Zhis informatin is better than your previous post, 
but I'm missing an description of the error(s).

- Is apache running at all. (ps aux | grep bin/apache)
- Is tomcat running at all. (ps aux | grep tomcat)
- Is apache listening on the ports you expect (netstat -a)
- Is tomcat listening on the ports you expect (netstat -a)
- can you get static resources
- can you get dynamic resources through port 8080
  (Use the port from the settings for the HttpConnector in 
  server.xml)

 -Ursprüngliche Nachricht-
 Von: Thomas Cherry [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 1. August 2002 12:05
 An: [EMAIL PROTECTED]
 Betreff: RE: Apache-tomcat integration
 
 Ok, I have a mandrake system with Apache 1.3 and tomcat 4.01. 
 I have a copy of mod_jk from tomcat 3.x and was thinking that 
 I could reuse the same lib. 
 I started configuring apache and tomcat but it does not seem 
 to work so I am including the content of my config files in this 
 letter. 

 contents of /etc/tomcat4/conf/tomcat4.conf:
 JAVA_HOME=/usr/java/current
 
 CATALINA_HOME=/var/tomcat4
 JASPER_HOME=/var/tomcat4
 
 TOMCAT_USER=tomcat

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




RE: Apache-tomcat integration

2002-08-01 Thread Turner, John


Sorry, there isn't enough info here to really tell.

1) does apache work on it's own?
2) do the tomcat examples work on port 8080:
http://your.host.com:8080/examples ?

If both one and two are true, I would make sure things like apache
ServerName in httpd.conf match the Host name in server.xml.  Also, I notice
that your workers.properties file looks incomplete...there should be a host
name there as well.

I posted a HOWTO for a RH Linux system, it may help even though you are
running on Mandrake.  Nothing in my HOWTO is OS-specific, as far as I know:

http://www.johnturner.com/howto/apache-tomcat-howto.html

John Turner
[EMAIL PROTECTED]

-Original Message-
From: Thomas Cherry [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 6:05 AM
To: [EMAIL PROTECTED]
Subject: RE: Apache-tomcat integration


Sorry for the delay, I have been busy.

Ok, I have a mandrake system with Apache 1.3 and tomcat 4.01.  I have a 
copy of mod_jk from tomcat 3.x and was thinking that I could reuse the 
same lib.  I started configuring apache and tomcat but it does not seem 
to work so I am including the content of my config files in this 
letter.  If someone could look at these settings and tell me what I did 
wrong, that would be great.  Thanks.

Last line in httpd.conf:
Include /etc/tomcat4/conf/mod_jk.conf

contents of /etc/tomcat4/conf/mod_jk.conf:
LoadModule jk_module libexec/mod_jk.so

JkWorkersFile /etc/tomcat4/conf/jk/workers.properties
JkLogFile /var/tomcat4/logs/mod_jk.log

JkLogLevel info

AddModule mod_env.c

JkMount /*.jsp ajp13
JkMount /servlet/* ajp13

JkMount /admin ajp13
JkMount /admin/* ajp13

JkMount /examples ajp13
JkMount /examples/* ajp13

JkMount /examples/servlet/* ajp13
JkMount /examples/jsp/* ajp13
#IfModule !mod_jk.c
#/IfModule

contents of /etc/tomcat4/conf/jk/workers.properties:
workers.tomcat_home=/etc/tomcat4
workers.java_home=/usr/java/current
ps=/

worker.list=ajp13

worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1


contents of /etc/tomcat4/conf/tomcat4.conf:
JAVA_HOME=/usr/java/current

CATALINA_HOME=/var/tomcat4
JASPER_HOME=/var/tomcat4

TOMCAT_USER=tomcat

On Friday, July 26, 2002, at 09:39  PM, tomcat-user-digest-
[EMAIL PROTECTED] wrote:

 From: Turner, John [EMAIL PROTECTED]
 Date: Fri Jul 26, 2002  04:24:52  PM US/Eastern
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: RE: Apache-tomcat integration



 It would help if you could give us more information, such as target
 operating system, etc.

 In general, there are all sorts of resources available, such as this one
 from the tomcat site:
 http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html

 and this one, also from the tomcat site:
 http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/index.html

 Some people have found the resources here to be helpful:
 http://www.galatea.com/flashguides/index

 John Turner
 [EMAIL PROTECTED]



--
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: Apache-tomcat integration

2002-08-01 Thread Luminous Heart

I saw at the end of your reply this block:
contents of /etc/tomcat4/conf/tomcat4.conf:
JAVA_HOME=/usr/java/current

CATALINA_HOME=/var/tomcat4
JASPER_HOME=/var/tomcat4

TOMCAT_USER=tomcat

Why are you using tomcat4.conf? I mean I have not used
a .conf for tomcat and I guess my cluster of 3 tomcats
4.0.4 and apache2.0.39 with mod_jk are working fine.
What is the use of using tomcat.conf?

Thank you in advance.

--- Thomas Cherry [EMAIL PROTECTED] wrote:
 Sorry for the delay, I have been busy.
 
 Ok, I have a mandrake system with Apache 1.3 and
 tomcat 4.01.  I have a 
 copy of mod_jk from tomcat 3.x and was thinking that
 I could reuse the 
 same lib.  I started configuring apache and tomcat
 but it does not seem 
 to work so I am including the content of my config
 files in this 
 letter.  If someone could look at these settings and
 tell me what I did 
 wrong, that would be great.  Thanks.
 
 Last line in httpd.conf:
 Include /etc/tomcat4/conf/mod_jk.conf
 
 contents of /etc/tomcat4/conf/mod_jk.conf:
   LoadModule jk_module libexec/mod_jk.so
   
   JkWorkersFile
 /etc/tomcat4/conf/jk/workers.properties
   JkLogFile /var/tomcat4/logs/mod_jk.log
 
   JkLogLevel info
   
   AddModule mod_env.c
 
   JkMount /*.jsp ajp13
   JkMount /servlet/* ajp13
 
   JkMount /admin ajp13
   JkMount /admin/* ajp13
 
   JkMount /examples ajp13
   JkMount /examples/* ajp13
 
   JkMount /examples/servlet/* ajp13
   JkMount /examples/jsp/* ajp13
 #IfModule !mod_jk.c
 #/IfModule
 
 contents of /etc/tomcat4/conf/jk/workers.properties:
 workers.tomcat_home=/etc/tomcat4
 workers.java_home=/usr/java/current
 ps=/
 
 worker.list=ajp13
 
 worker.ajp13.port=8009
 worker.ajp13.host=localhost
 worker.ajp13.type=ajp13
 worker.ajp13.lbfactor=1
 
 
 contents of /etc/tomcat4/conf/tomcat4.conf:
 JAVA_HOME=/usr/java/current
 
 CATALINA_HOME=/var/tomcat4
 JASPER_HOME=/var/tomcat4
 
 TOMCAT_USER=tomcat
 
 On Friday, July 26, 2002, at 09:39  PM,
 tomcat-user-digest-
 [EMAIL PROTECTED] wrote:
 
  From: Turner, John [EMAIL PROTECTED]
  Date: Fri Jul 26, 2002  04:24:52  PM US/Eastern
  To: 'Tomcat Users List'
 [EMAIL PROTECTED]
  Subject: RE: Apache-tomcat integration
 
 
 
  It would help if you could give us more
 information, such as target
  operating system, etc.
 
  In general, there are all sorts of resources
 available, such as this one
  from the tomcat site:
 

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html
 
  and this one, also from the tomcat site:
 

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/index.html
 
  Some people have found the resources here to be
 helpful:
  http://www.galatea.com/flashguides/index
 
  John Turner
  [EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

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




Re: Apache-tomcat integration

2002-08-01 Thread Thomas Cherry

Apache runs just fine and I find it on the port I expect however tomcat does
not run as I expect.  http://my.host.com:8080/examples dose not respond.  I
do find a lot of java apps running when I do ps -U tomcat.  Here are my
error files:

Apache_log.date.txt:
2002-07-31 17:21:06 [org.apache.catalina.connector.warp.WarpConnector] Error
accepting requests
java.net.SocketException: Socket closed
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:343)
at java.net.ServerSocket.implAccept(ServerSocket.java:438)
at java.net.ServerSocket.accept(ServerSocket.java:409)
at 
org.apache.catalina.connector.warp.WarpConnector.run(WarpConnector.java)
at java.lang.Thread.run(Thread.java:536)

Catalina_log.date.txt:
2002-07-31 17:23:16 HttpConnector Opening server socket on all host IP
addresses
2002-07-31 17:23:28 HttpConnector[8180] Starting background thread
2002-07-31 17:23:28 HttpProcessor[8180][0] Starting background thread
2002-07-31 17:23:28 Ajp13Connector[8109] Opening server socket on all host
IP addresses
2002-07-31 17:23:28 Ajp13Connector[8109] Starting background thread
2002-07-31 17:23:28 Ajp13Processor[8109][0] Starting background thread

Localhost_examples_log.date.txt:
2002-07-31 17:23:22 WebappLoader[/examples]: Deploying class repositories to
work directory /var/tomcat4/work/localhost/examples
2002-07-31 17:23:22 WebappLoader[/examples]: Reloading checks are enabled
for this Context
2002-07-31 17:23:22 StandardManager[/examples]: Seeding random number
generator class java.security.SecureRandom
2002-07-31 17:23:22 StandardManager[/examples]: Seeding of random number
generator has been completed
2002-07-31 17:23:24 ContextConfig[/examples]: Added certificates - request
attribute Valve
2002-07-31 17:23:24 ContextConfig[/examples]: Configured an authenticator
for method FORM
2002-07-31 17:23:24 ContextListener: contextInitialized()
2002-07-31 17:23:24 SessionListener: contextInitialized()
2002-07-31 17:23:24 ContextListener:
attributeReplaced('org.apache.catalina.WELCOME_FILES',
'[Ljava.lang.String;@385660')
2002-07-31 17:23:24 StandardWrapper[/examples:default]: Loading container
servlet default
2002-07-31 17:23:24 default: init
2002-07-31 17:23:24 StandardWrapper[/examples:invoker]: Loading container
servlet invoker
2002-07-31 17:23:24 invoker: init
2002-07-31 17:23:24 jsp: init

Localhost_log.date.txt:
2002-07-31 17:23:27 StandardHost[localhost]: Installing web application at
context path /webdav from URL file:/var/tomcat4/webapps/webdav
2002-07-31 17:23:27 WebappLoader[/webdav]: Deploying class repositories to
work directory /var/tomcat4/work/localhost/webdav
2002-07-31 17:23:27 StandardManager[/webdav]: Seeding random number
generator class java.security.SecureRandom
2002-07-31 17:23:27 StandardManager[/webdav]: Seeding of random number
generator has been completed
2002-07-31 17:23:27 ContextConfig[/webdav]: Added certificates - request
attribute Valve
2002-07-31 17:23:27 StandardWrapper[/webdav:default]: Loading container
servlet default
2002-07-31 17:23:27 default: init
2002-07-31 17:23:27 StandardWrapper[/webdav:invoker]: Loading container
servlet invoker
2002-07-31 17:23:27 invoker: init
2002-07-31 17:23:27 jsp: init

Mod_jk.log:
[jk_uri_worker_map.c (430)]: In jk_uri_worker_map_t::map_uri_to_worker,
wrong parameters


on 08/01/2002 9:31 AM, [EMAIL PROTECTED] at
[EMAIL PROTECTED] wrote:

 
 From: Ralph Einfeldt [EMAIL PROTECTED]
 Date: Thu, 1 Aug 2002 12:17:13 +0200
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: AW: Apache-tomcat integration
 
 Yes it's possible to use mod_jk from 3.3.
 
 Zhis informatin is better than your previous post,
 but I'm missing an description of the error(s).
 
 - Is apache running at all. (ps aux | grep bin/apache)
 - Is tomcat running at all. (ps aux | grep tomcat)
 - Is apache listening on the ports you expect (netstat -a)
 - Is tomcat listening on the ports you expect (netstat -a)
 - can you get static resources
 - can you get dynamic resources through port 8080
 (Use the port from the settings for the HttpConnector in
 server.xml)

 
 
 From: Turner, John [EMAIL PROTECTED]
 Date: Thu, 1 Aug 2002 08:13:43 -0400
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: RE: Apache-tomcat integration
 
 
 Sorry, there isn't enough info here to really tell.
 
 1) does apache work on it's own?
 2) do the tomcat examples work on port 8080:
 http://your.host.com:8080/examples ?
 
 If both one and two are true, I would make sure things like apache
 ServerName in httpd.conf match the Host name in server.xml.  Also, I notice
 that your workers.properties file looks incomplete...there should be a host
 name there as well.
 
 I posted a HOWTO for a RH Linux system, it may help even though you are
 running on Mandrake.  Nothing in my HOWTO is OS-specific, as far as I know:
 
 http://www.johnturner.com/howto/apache-tomcat-howto.html
 
 John Turner
 [EMAIL PROTECTED]



--
To unsubscribe, e-mail

RE: Apache-tomcat integration

2002-08-01 Thread Turner, John


The WARP connector can't bind to its socket.  The default WARP connector
socket is 8008.  Is there something else on that socket?  Another connector?

Which connector do you want to use?  Tomcat binds up both the AJP and WARP
socket by default, but which connector have you chosen to use with apache?

You might want to post your server.xml, looks like something isn't happy in
there.

John Turner
[EMAIL PROTECTED]

-Original Message-
From: Thomas Cherry [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 10:28 AM
To: [EMAIL PROTECTED]
Subject: Re: Apache-tomcat integration


Apache runs just fine and I find it on the port I expect however tomcat does
not run as I expect.  http://my.host.com:8080/examples dose not respond.  I
do find a lot of java apps running when I do ps -U tomcat.  Here are my
error files:

Apache_log.date.txt:
2002-07-31 17:21:06 [org.apache.catalina.connector.warp.WarpConnector] Error
accepting requests
java.net.SocketException: Socket closed
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:343)
at java.net.ServerSocket.implAccept(ServerSocket.java:438)
at java.net.ServerSocket.accept(ServerSocket.java:409)
at 
org.apache.catalina.connector.warp.WarpConnector.run(WarpConnector.java)
at java.lang.Thread.run(Thread.java:536)

Catalina_log.date.txt:
2002-07-31 17:23:16 HttpConnector Opening server socket on all host IP
addresses
2002-07-31 17:23:28 HttpConnector[8180] Starting background thread
2002-07-31 17:23:28 HttpProcessor[8180][0] Starting background thread
2002-07-31 17:23:28 Ajp13Connector[8109] Opening server socket on all host
IP addresses
2002-07-31 17:23:28 Ajp13Connector[8109] Starting background thread
2002-07-31 17:23:28 Ajp13Processor[8109][0] Starting background thread

Localhost_examples_log.date.txt:
2002-07-31 17:23:22 WebappLoader[/examples]: Deploying class repositories to
work directory /var/tomcat4/work/localhost/examples
2002-07-31 17:23:22 WebappLoader[/examples]: Reloading checks are enabled
for this Context
2002-07-31 17:23:22 StandardManager[/examples]: Seeding random number
generator class java.security.SecureRandom
2002-07-31 17:23:22 StandardManager[/examples]: Seeding of random number
generator has been completed
2002-07-31 17:23:24 ContextConfig[/examples]: Added certificates - request
attribute Valve
2002-07-31 17:23:24 ContextConfig[/examples]: Configured an authenticator
for method FORM
2002-07-31 17:23:24 ContextListener: contextInitialized()
2002-07-31 17:23:24 SessionListener: contextInitialized()
2002-07-31 17:23:24 ContextListener:
attributeReplaced('org.apache.catalina.WELCOME_FILES',
'[Ljava.lang.String;@385660')
2002-07-31 17:23:24 StandardWrapper[/examples:default]: Loading container
servlet default
2002-07-31 17:23:24 default: init
2002-07-31 17:23:24 StandardWrapper[/examples:invoker]: Loading container
servlet invoker
2002-07-31 17:23:24 invoker: init
2002-07-31 17:23:24 jsp: init

Localhost_log.date.txt:
2002-07-31 17:23:27 StandardHost[localhost]: Installing web application at
context path /webdav from URL file:/var/tomcat4/webapps/webdav
2002-07-31 17:23:27 WebappLoader[/webdav]: Deploying class repositories to
work directory /var/tomcat4/work/localhost/webdav
2002-07-31 17:23:27 StandardManager[/webdav]: Seeding random number
generator class java.security.SecureRandom
2002-07-31 17:23:27 StandardManager[/webdav]: Seeding of random number
generator has been completed
2002-07-31 17:23:27 ContextConfig[/webdav]: Added certificates - request
attribute Valve
2002-07-31 17:23:27 StandardWrapper[/webdav:default]: Loading container
servlet default
2002-07-31 17:23:27 default: init
2002-07-31 17:23:27 StandardWrapper[/webdav:invoker]: Loading container
servlet invoker
2002-07-31 17:23:27 invoker: init
2002-07-31 17:23:27 jsp: init

Mod_jk.log:
[jk_uri_worker_map.c (430)]: In jk_uri_worker_map_t::map_uri_to_worker,
wrong parameters


on 08/01/2002 9:31 AM, [EMAIL PROTECTED] at
[EMAIL PROTECTED] wrote:

 
 From: Ralph Einfeldt [EMAIL PROTECTED]
 Date: Thu, 1 Aug 2002 12:17:13 +0200
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: AW: Apache-tomcat integration
 
 Yes it's possible to use mod_jk from 3.3.
 
 Zhis informatin is better than your previous post,
 but I'm missing an description of the error(s).
 
 - Is apache running at all. (ps aux | grep bin/apache)
 - Is tomcat running at all. (ps aux | grep tomcat)
 - Is apache listening on the ports you expect (netstat -a)
 - Is tomcat listening on the ports you expect (netstat -a)
 - can you get static resources
 - can you get dynamic resources through port 8080
 (Use the port from the settings for the HttpConnector in
 server.xml)

 
 
 From: Turner, John [EMAIL PROTECTED]
 Date: Thu, 1 Aug 2002 08:13:43 -0400
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: RE: Apache-tomcat integration
 
 
 Sorry, there isn't enough info here to really tell.
 
 1) does apache work on it's own?
 2) do

AW: Apache-tomcat integration

2002-08-01 Thread Ralph Einfeldt

The fir error message comes because you didn't disable 
the warp connector.

If 8080 doesn't responds it because it uses port 8180.
(See the log message for the HttpConnector)

If all is running you should diable the HttpConnector.

Ralph Einfeldt
Uptime Internet Solution Center GmbH
Hamburg, Germany
Hosting, Content Management, Java Consulting
http://www.uptime-isc.de 

 -Ursprüngliche Nachricht-
 Von: Thomas Cherry [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 1. August 2002 16:28
 An: [EMAIL PROTECTED]
 Betreff: Re: Apache-tomcat integration
 
 
 Apache runs just fine and I find it on the port I expect 
 however tomcat does not run as I expect.
 http://my.host.com:8080/examples dose not respond.
 Apache_log.date.txt:
 2002-07-31 17:21:06 
 [org.apache.catalina.connector.warp.WarpConnector] Error
 accepting requests
 java.net.SocketException: Socket closed
 at java.net.PlainSocketImpl.socketAccept(Native Method)
 at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:343)
 at java.net.ServerSocket.implAccept(ServerSocket.java:438)
 at java.net.ServerSocket.accept(ServerSocket.java:409)
 at 
snip/
 2002-07-31 17:23:16 HttpConnector Opening server socket on all host IP
 addresses
 2002-07-31 17:23:28 HttpConnector[8180] Starting background thread
 2002-07-31 17:23:28 HttpProcessor[8180][0] Starting background thread
snip/

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




RE: Apache-tomcat integration

2002-08-01 Thread Turner, John


I'm using mod_jk in my setup, and I didn't disable the WARP connector.  It's
still enabled, and everything seems to be working.  Can only one connector
be defined at a time in server.xml?

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 10:48 AM
To: Tomcat Users List
Subject: AW: Apache-tomcat integration


The fir error message comes because you didn't disable 
the warp connector.

If 8080 doesn't responds it because it uses port 8180.
(See the log message for the HttpConnector)

If all is running you should diable the HttpConnector.

Ralph Einfeldt
Uptime Internet Solution Center GmbH
Hamburg, Germany
Hosting, Content Management, Java Consulting
http://www.uptime-isc.de 

 -Ursprüngliche Nachricht-
 Von: Thomas Cherry [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 1. August 2002 16:28
 An: [EMAIL PROTECTED]
 Betreff: Re: Apache-tomcat integration
 
 
 Apache runs just fine and I find it on the port I expect 
 however tomcat does not run as I expect.
 http://my.host.com:8080/examples dose not respond.
 Apache_log.date.txt:
 2002-07-31 17:21:06 
 [org.apache.catalina.connector.warp.WarpConnector] Error
 accepting requests
 java.net.SocketException: Socket closed
 at java.net.PlainSocketImpl.socketAccept(Native Method)
 at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:343)
 at java.net.ServerSocket.implAccept(ServerSocket.java:438)
 at java.net.ServerSocket.accept(ServerSocket.java:409)
 at 
snip/
 2002-07-31 17:23:16 HttpConnector Opening server socket on all host IP
 addresses
 2002-07-31 17:23:28 HttpConnector[8180] Starting background thread
 2002-07-31 17:23:28 HttpProcessor[8180][0] Starting background thread
snip/

--
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]




AW: Apache-tomcat integration

2002-08-01 Thread Ralph Einfeldt

I think you can define more than one connector 
in server.xml (but I havn't tried it). 

But i tend to strip the configuration down to
the minimal set, so it's easier to find problems. 
Especially if you search an error every error 
message and config entry that doesn't exist is 
one cause less for confusion.

Ralph Einfeldt
Uptime Internet Solution Center GmbH
Hamburg, Germany
Hosting, Content Management, Java Consulting
http://www.uptime-isc.de 

 -Ursprüngliche Nachricht-
 Von: Turner, John [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 1. August 2002 17:01
 An: 'Tomcat Users List'
 Betreff: RE: Apache-tomcat integration
 
 
 
 I'm using mod_jk in my setup, and I didn't disable the WARP 
 connector.  It's still enabled, and everything seems to be working.
Can only 
 one connector
 be defined at a time in server.xml?
 
 John Turner
 [EMAIL PROTECTED]
 
 
 -Original Message-
 From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 01, 2002 10:48 AM
 To: Tomcat Users List
 Subject: AW: Apache-tomcat integration
 
 
 The fir error message comes because you didn't disable 
 the warp connector.
 
 If 8080 doesn't responds it because it uses port 8180.
 (See the log message for the HttpConnector)
 
 If all is running you should diable the HttpConnector.
 
 Ralph Einfeldt
 Uptime Internet Solution Center GmbH
 Hamburg, Germany
 Hosting, Content Management, Java Consulting
 http://www.uptime-isc.de 
 
  -Ursprüngliche Nachricht-
  Von: Thomas Cherry [mailto:[EMAIL PROTECTED]]
  Gesendet: Donnerstag, 1. August 2002 16:28
  An: [EMAIL PROTECTED]
  Betreff: Re: Apache-tomcat integration
  
  
  Apache runs just fine and I find it on the port I expect 
  however tomcat does not run as I expect.
  http://my.host.com:8080/examples dose not respond.
  Apache_log.date.txt:
  2002-07-31 17:21:06 
  [org.apache.catalina.connector.warp.WarpConnector] Error
  accepting requests
  java.net.SocketException: Socket closed
  at java.net.PlainSocketImpl.socketAccept(Native Method)
  at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:343)
  at java.net.ServerSocket.implAccept(ServerSocket.java:438)
  at java.net.ServerSocket.accept(ServerSocket.java:409)
  at 
 snip/
  2002-07-31 17:23:16 HttpConnector Opening server socket on 
 all host IP
  addresses
  2002-07-31 17:23:28 HttpConnector[8180] Starting background thread
  2002-07-31 17:23:28 HttpProcessor[8180][0] Starting 
 background thread
 snip/
 
 --
 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]



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




Re: AW: Apache-tomcat integration

2002-08-01 Thread rsequeira


Yes you can define two connectors as long as they are listening on
different ports. I have both the AJP as well the the WARP connector
enabled.

RS


   
  
  Ralph Einfeldt 
  
  ralph.einfeldt@uptTo:   Tomcat Users List 
  
  ime-isc.de [EMAIL PROTECTED] 
  
 cc:   
  
  08/01/02 10:21 AM  Subject:  AW: Apache-tomcat 
integration 
  Please respond to
  
  Tomcat Users List  
  
   
  
   
  




I think you can define more than one connector
in server.xml (but I havn't tried it).

But i tend to strip the configuration down to
the minimal set, so it's easier to find problems.
Especially if you search an error every error
message and config entry that doesn't exist is
one cause less for confusion.

Ralph Einfeldt
Uptime Internet Solution Center GmbH
Hamburg, Germany
Hosting, Content Management, Java Consulting
http://www.uptime-isc.de

 -Ursprüngliche Nachricht-
 Von: Turner, John [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 1. August 2002 17:01
 An: 'Tomcat Users List'
 Betreff: RE: Apache-tomcat integration



 I'm using mod_jk in my setup, and I didn't disable the WARP
 connector.  It's still enabled, and everything seems to be working.
Can only
 one connector
 be defined at a time in server.xml?

 John Turner
 [EMAIL PROTECTED]


 -Original Message-
 From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 01, 2002 10:48 AM
 To: Tomcat Users List
 Subject: AW: Apache-tomcat integration


 The fir error message comes because you didn't disable
 the warp connector.

 If 8080 doesn't responds it because it uses port 8180.
 (See the log message for the HttpConnector)

 If all is running you should diable the HttpConnector.

 Ralph Einfeldt
 Uptime Internet Solution Center GmbH
 Hamburg, Germany
 Hosting, Content Management, Java Consulting
 http://www.uptime-isc.de

  -Ursprüngliche Nachricht-
  Von: Thomas Cherry [mailto:[EMAIL PROTECTED]]
  Gesendet: Donnerstag, 1. August 2002 16:28
  An: [EMAIL PROTECTED]
  Betreff: Re: Apache-tomcat integration
 
 
  Apache runs just fine and I find it on the port I expect
  however tomcat does not run as I expect.
  http://my.host.com:8080/examples dose not respond.
  Apache_log.date.txt:
  2002-07-31 17:21:06
  [org.apache.catalina.connector.warp.WarpConnector] Error
  accepting requests
  java.net.SocketException: Socket closed
  at java.net.PlainSocketImpl.socketAccept(Native Method)
  at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:343)
  at java.net.ServerSocket.implAccept(ServerSocket.java:438)
  at java.net.ServerSocket.accept(ServerSocket.java:409)
  at
 snip/
  2002-07-31 17:23:16 HttpConnector Opening server socket on
 all host IP
  addresses
  2002-07-31 17:23:28 HttpConnector[8180] Starting background thread
  2002-07-31 17:23:28 HttpProcessor[8180][0] Starting
 background thread
 snip/

 --
 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]



--
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: RE: Apache-tomcat integration

2002-08-01 Thread Thomas Cherry

Here is my server.xml file.  As far as I know it's stock.  For bandwidth
reasons I striped all the comments and included it as an attachment.

As an update, I do get tomcat on port 8180.


on 08/01/2002 1:41 PM, [EMAIL PROTECTED] at
[EMAIL PROTECTED] wrote:

 The WARP connector can't bind to its socket.  The default WARP connector
 socket is 8008.  Is there something else on that socket?  Another connector?
 
 Which connector do you want to use?  Tomcat binds up both the AJP and WARP
 socket by default, but which connector have you chosen to use with apache?
 
 You might want to post your server.xml, looks like something isn't happy in
 there.
 
 John Turner
 [EMAIL PROTECTED]




server.xml
Description: application/applefile

Server port=8005 shutdown=SHUTDOWN debug=0
  Service name=Tomcat-Standalone
Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8180 minProcessors=1 maxProcessors=5
   enableLookups=true redirectPort=8543
   acceptCount=10 debug=0 connectionTimeout=6/
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8109 minProcessors=1 maxProcessors=5
   acceptCount=10 debug=0/

 Engine name=Standalone defaultHost=localhost debug=0

  Logger className=org.apache.catalina.logger.FileLogger
  prefix=catalina_log. suffix=.txt
  timestamp=true/


  Realm className=org.apache.catalina.realm.MemoryRealm /

  Host name=localhost debug=0 appBase=webapps unpackWARs=true
Valve className=org.apache.catalina.valves.AccessLogValve
 directory=logs  prefix=localhost_access_log. suffix=.txt
 pattern=common/

Logger className=org.apache.catalina.logger.FileLogger
 directory=logs  prefix=localhost_log. suffix=.txt
timestamp=true/

Context path=/manager docBase=manager 
 debug=0 privileged=true/

Context path=/examples docBase=examples debug=0
 reloadable=true
  Logger className=org.apache.catalina.logger.FileLogger
 prefix=localhost_examples_log. suffix=.txt
  timestamp=true/
  Ejb   name=ejb/EmplRecord type=Entity
 home=com.wombat.empl.EmployeeRecordHome
   remote=com.wombat.empl.EmployeeRecord/
  Environment name=maxExemptions type=java.lang.Integer
  value=15/
  Parameter name=context.param.name value=context.param.value
 override=false/
  Resource name=jdbc/EmployeeAppDb auth=SERVLET
type=javax.sql.DataSource/
  ResourceParams name=jdbc/EmployeeAppDb
parameternameuser/namevaluesa/value/parameter
parameternamepassword/namevalue/value/parameter
parameternamedriverClassName/name
  valueorg.hsql.jdbcDriver/value/parameter
parameternamedriverName/name
  valuejdbc:HypersonicSQL:database/value/parameter
  /ResourceParams
  Resource name=mail/Session auth=Container
type=javax.mail.Session/
  ResourceParams name=mail/Session
parameter
  namemail.smtp.host/name
  valuelocalhost/value
/parameter
  /ResourceParams
/Context

  /Host

/Engine

  /Service
  Service name=Tomcat-Apache

Connector className=org.apache.catalina.connector.warp.WarpConnector
 port=8008 minProcessors=1 maxProcessors=5
 enableLookups=true
 acceptCount=10 debug=0/

Engine className=org.apache.catalina.connector.warp.WarpEngine
 name=Apache 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 /

/Engine

  /Service

/Server


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


RE: Apache-tomcat integration

2002-08-01 Thread Thomas Cherry


Here is my server.xml file.  As far as I know it's stock.  For bandwidth
reasons I striped all the comments.

As an update, I do get tomcat on port 8180.

Server port=8005 shutdown=SHUTDOWN debug=0
  Service name=Tomcat-Standalone
Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8180 minProcessors=1 maxProcessors=5
   enableLookups=true redirectPort=8543
   acceptCount=10 debug=0 connectionTimeout=6/
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8109 minProcessors=1 maxProcessors=5
   acceptCount=10 debug=0/

 Engine name=Standalone defaultHost=localhost debug=0

  Logger className=org.apache.catalina.logger.FileLogger
  prefix=catalina_log. suffix=.txt
  timestamp=true/


  Realm className=org.apache.catalina.realm.MemoryRealm /

  Host name=localhost debug=0 appBase=webapps unpackWARs=true
Valve className=org.apache.catalina.valves.AccessLogValve
 directory=logs  prefix=localhost_access_log.
suffix=.txt
 pattern=common/

Logger className=org.apache.catalina.logger.FileLogger
 directory=logs  prefix=localhost_log. suffix=.txt
timestamp=true/

Context path=/manager docBase=manager
 debug=0 privileged=true/

Context path=/examples docBase=examples debug=0
 reloadable=true
  Logger className=org.apache.catalina.logger.FileLogger
 prefix=localhost_examples_log. suffix=.txt
  timestamp=true/
  Ejb   name=ejb/EmplRecord type=Entity
 home=com.wombat.empl.EmployeeRecordHome
   remote=com.wombat.empl.EmployeeRecord/
  Environment name=maxExemptions type=java.lang.Integer
  value=15/
  Parameter name=context.param.name value=context.param.value
 override=false/
  Resource name=jdbc/EmployeeAppDb auth=SERVLET
type=javax.sql.DataSource/
  ResourceParams name=jdbc/EmployeeAppDb
parameternameuser/namevaluesa/value/parameter
parameternamepassword/namevalue/value/parameter
parameternamedriverClassName/name
  valueorg.hsql.jdbcDriver/value/parameter
parameternamedriverName/name
  valuejdbc:HypersonicSQL:database/value/parameter
  /ResourceParams
  Resource name=mail/Session auth=Container
type=javax.mail.Session/
  ResourceParams name=mail/Session
parameter
  namemail.smtp.host/name
  valuelocalhost/value
/parameter
  /ResourceParams
/Context

  /Host

/Engine

  /Service
  Service name=Tomcat-Apache

Connector className=org.apache.catalina.connector.warp.WarpConnector
 port=8008 minProcessors=1 maxProcessors=5
 enableLookups=true
 acceptCount=10 debug=0/

Engine className=org.apache.catalina.connector.warp.WarpEngine
 name=Apache 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 /

/Engine

  /Service

/Server



on 08/01/2002 1:41 PM, [EMAIL PROTECTED] at
[EMAIL PROTECTED] wrote:

 The WARP connector can't bind to its socket.  The default WARP connector
 socket is 8008.  Is there something else on that socket?  Another connector?
 
 Which connector do you want to use?  Tomcat binds up both the AJP and WARP
 socket by default, but which connector have you chosen to use with apache?
 
 You might want to post your server.xml, looks like something isn't happy in
 there.
 
 John Turner
 [EMAIL PROTECTED]

-- End of Forwarded Message




server.xml
Description: application/applefile

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


RE: RE: Apache-tomcat integration

2002-08-01 Thread Turner, John


Which connector did you choose to use?  AJP or WARP?  Your server.xml shows
some changes on the port numbers.  For example, the AJP connector is showing
8109 instead of 8009 (the default).  Did you carry that change through the
other configuration files, like workers.properties (if you chose AJP)?

John Turner
[EMAIL PROTECTED]

-Original Message-
From: Thomas Cherry [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 3:33 PM
To: [EMAIL PROTECTED]
Subject: Re: RE: Apache-tomcat integration


Here is my server.xml file.  As far as I know it's stock.  For bandwidth
reasons I striped all the comments and included it as an attachment.

As an update, I do get tomcat on port 8180.


on 08/01/2002 1:41 PM, [EMAIL PROTECTED] at
[EMAIL PROTECTED] wrote:

 The WARP connector can't bind to its socket.  The default WARP connector
 socket is 8008.  Is there something else on that socket?  Another
connector?
 
 Which connector do you want to use?  Tomcat binds up both the AJP and WARP
 socket by default, but which connector have you chosen to use with apache?
 
 You might want to post your server.xml, looks like something isn't happy
in
 there.
 
 John Turner
 [EMAIL PROTECTED]


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




RE: Apache-tomcat integration

2002-08-01 Thread Thomas Cherry

I don't get it.  The comments is the file say that 8109 is the default.  
What I want to use is AJP.  This is in my server.xml:

   Service name=Tomcat-Apache
 Connector 
className=org.apache.catalina.connector.warp.WarpConnector
  port=8008 minProcessors=1 maxProcessors=5
  enableLookups=true
  acceptCount=10 debug=0/
 Engine className=org.apache.catalina.connector.warp.WarpEngine
  name=Apache 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 /
 /Engine
   /Service

Does this mean that I don't have tomcat configured to use AJP.  What you 
pointing out is in the stand alone code.  Do I even need that?  What do 
I do to make apache call tomcat when it is asked to serve a JSP file?

On Thursday, August 1, 2002, at 06:08  PM, tomcat-user-digest-
[EMAIL PROTECTED] wrote:

 From: Turner, John [EMAIL PROTECTED]
 Date: Thu Aug 01, 2002  03:41:53  PM US/Eastern
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: RE: RE: Apache-tomcat integration



 Which connector did you choose to use?  AJP or WARP?  Your server.xml 
 shows
 some changes on the port numbers.  For example, the AJP connector is 
 showing
 8109 instead of 8009 (the default).  Did you carry that change through 
 the
 other configuration files, like workers.properties (if you chose AJP)?

 John Turner
 [EMAIL PROTECTED]

--
Don't give in to hate- that leads to the dark side. -Obi-Wan, Jedi Knight


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




Re[2]: Apache-tomcat integration

2002-07-28 Thread Rick Reumann

On Friday, July 26, 2002, 4:24:52 PM, Turner, John wrote:


TJ Where can I get documentation on how to integrate tomcat with apache?  I
TJ looked on the site, but I can't find a definitive answer (at least in my
TJ opinion).

If your concern is with a windows system and it's Apache2.0.39 and
Tomcat 4.x use this doc:
http://mpcon.org/temp/how2install_apache_w_php_jsp_support.doc
It's just been updated as well with some help from those on this
list.


--

Rick

mailto:[EMAIL PROTECTED]


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




Apache-tomcat integration

2002-07-26 Thread Thomas Cherry

Where can I get documentation on how to integrate tomcat with apache?  I
looked on the site, but I can't find a definitive answer (at least in my
opinion).

Thanks.


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




RE: Apache-tomcat integration

2002-07-26 Thread Turner, John


It would help if you could give us more information, such as target
operating system, etc.

In general, there are all sorts of resources available, such as this one
from the tomcat site:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html

and this one, also from the tomcat site:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/index.html

Some people have found the resources here to be helpful:
http://www.galatea.com/flashguides/index

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Thomas Cherry [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 26, 2002 4:09 PM
To: [EMAIL PROTECTED]
Subject: Apache-tomcat integration


Where can I get documentation on how to integrate tomcat with apache?  I
looked on the site, but I can't find a definitive answer (at least in my
opinion).

Thanks.


--
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]




Apache Tomcat integration-please help

2002-07-18 Thread developer



 I am having a problem getting apache tomcat running using mod_webapp.so
 I am using:
  linux redhat 7.3
  jdk1.4
  apache 1.3.26
  tomcat 4.0.4
 I got apache 1.3.26 compiled and installed with enable-module=so option it
 starts and stops fine
 I got tomcat 4.0.4, installed it  and it starts and stops fine, the
 examples work etc etc
 I got jakarta-tomcat-connectors using CVS, and followed the instructions
 to compile mod_webapp.so.  It compiled and I placed it in
 $APACHE_HOME/libexec/
 I added the following lines to httpd.conf:
 LoadModule webapp_module libexec/mod_webapp.so
 AddModule mod_webapp.c
 WebAppConnection warpConnection warp localhost:8080
 WebAppDeploy examples conn /examples
 
 I started tomcat no problem.  When I start apache i get:
 yntax error on line 984 of /usr/local/apache/conf/httpd.conf:
 Invalid virtual host name
 /usr/local/apache/bin/apachectl start: httpd could not be started
 line 984 refers to this line:
 WebAppDeploy examples conn /examples
 
 I am stumped some help please?
 thanks,
 ryan
 
 
 
 --
 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: Apache Tomcat integration-please help

2002-07-18 Thread Milt Epstein

On Thu, 18 Jul 2002 [EMAIL PROTECTED] wrote:

  I am having a problem getting apache tomcat running using mod_webapp.so
  I am using:
   linux redhat 7.3
   jdk1.4
   apache 1.3.26
   tomcat 4.0.4
  I got apache 1.3.26 compiled and installed with enable-module=so option it
  starts and stops fine
  I got tomcat 4.0.4, installed it  and it starts and stops fine, the
  examples work etc etc
  I got jakarta-tomcat-connectors using CVS, and followed the instructions
  to compile mod_webapp.so.  It compiled and I placed it in
  $APACHE_HOME/libexec/
  I added the following lines to httpd.conf:
  LoadModule webapp_module libexec/mod_webapp.so
  AddModule mod_webapp.c
  WebAppConnection warpConnection warp localhost:8080
  WebAppDeploy examples conn /examples

  I started tomcat no problem.  When I start apache i get:
  yntax error on line 984 of /usr/local/apache/conf/httpd.conf:
  Invalid virtual host name
  /usr/local/apache/bin/apachectl start: httpd could not be started
  line 984 refers to this line:
  WebAppDeploy examples conn /examples

  I am stumped some help please?

This is my understanding of WebAppConnection and WebAppDeploy
(corrections welcome :-):

The second argument to the WebAppDeploy directive (here conn) must be
a defined connection per a WebAppConnection directive (the first
argument of WebAppConnection specifies the connection).  That is,

WebAppConnection connection protocol host:port

defines a connection -- named connection, using protocol (warp is the
only possibility currently, I believe), available at host:port -- and

WebAppDeploy context connection url-prefix

indicates that URLs that begin with url-prefix belong to context and
should be passed to connection.

Anyway, although you should understand at least the basics of the
above, the gist of it is you should change conn to warpConnection.

Milt Epstein
Research Programmer
Systems and Technology Services (STS)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


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




RE: Apache Tomcat integration-please help

2002-07-18 Thread Sullivan, Mark E

it should be:

WebAppConnection warpConnection warp localhost:8080
WebAppDeploy examples warpConnection /examples

since you declare your WebAppConnection as warpConnection. Also, are you
sure 8080 is the correct port? The default for mod_webapp is 8008, unless
you changed it in the server.xml file. Finally, i believe that the 'Invalid
virtual host name' error is caused because you put the WebAppDeploy
statement before the 'ServerName' directive in the httpd.conf file. I had
that error once and that was the cause. I put my WebAppDeploy statements
after the base directory config, and it works fine. 

-Original Message-
From: Milt Epstein [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 12:42 PM
To: Tomcat Users List
Subject: Re: Apache Tomcat integration-please help


On Thu, 18 Jul 2002 [EMAIL PROTECTED] wrote:

  I am having a problem getting apache tomcat running using mod_webapp.so
  I am using:
   linux redhat 7.3
   jdk1.4
   apache 1.3.26
   tomcat 4.0.4
  I got apache 1.3.26 compiled and installed with enable-module=so option
it
  starts and stops fine
  I got tomcat 4.0.4, installed it  and it starts and stops fine, the
  examples work etc etc
  I got jakarta-tomcat-connectors using CVS, and followed the instructions
  to compile mod_webapp.so.  It compiled and I placed it in
  $APACHE_HOME/libexec/
  I added the following lines to httpd.conf:
  LoadModule webapp_module libexec/mod_webapp.so
  AddModule mod_webapp.c
  WebAppConnection warpConnection warp localhost:8080
  WebAppDeploy examples conn /examples

  I started tomcat no problem.  When I start apache i get:
  yntax error on line 984 of /usr/local/apache/conf/httpd.conf:
  Invalid virtual host name
  /usr/local/apache/bin/apachectl start: httpd could not be started
  line 984 refers to this line:
  WebAppDeploy examples conn /examples

  I am stumped some help please?

This is my understanding of WebAppConnection and WebAppDeploy
(corrections welcome :-):

The second argument to the WebAppDeploy directive (here conn) must be
a defined connection per a WebAppConnection directive (the first
argument of WebAppConnection specifies the connection).  That is,

WebAppConnection connection protocol host:port

defines a connection -- named connection, using protocol (warp is the
only possibility currently, I believe), available at host:port -- and

WebAppDeploy context connection url-prefix

indicates that URLs that begin with url-prefix belong to context and
should be passed to connection.

Anyway, although you should understand at least the basics of the
above, the gist of it is you should change conn to warpConnection.

Milt Epstein
Research Programmer
Systems and Technology Services (STS)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


--
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: Apache Tomcat integration-please help

2002-07-18 Thread developer

UNfortunately I have tried that at it did not help.  Anymore suggestions
would be wonderful, cause I am stumped.  Maybe does it have something to
do with my apache install?
thanks 
ryan

 On Thu, 18 Jul 2002, Milt Epstein wrote:

 On Thu, 18 Jul 2002 [EMAIL PROTECTED] wrote:
 
   I am having a problem getting apache tomcat running using mod_webapp.so
   I am using:
linux redhat 7.3
jdk1.4
apache 1.3.26
tomcat 4.0.4
   I got apache 1.3.26 compiled and installed with enable-module=so option it
   starts and stops fine
   I got tomcat 4.0.4, installed it  and it starts and stops fine, the
   examples work etc etc
   I got jakarta-tomcat-connectors using CVS, and followed the instructions
   to compile mod_webapp.so.  It compiled and I placed it in
   $APACHE_HOME/libexec/
   I added the following lines to httpd.conf:
   LoadModule webapp_module libexec/mod_webapp.so
   AddModule mod_webapp.c
   WebAppConnection warpConnection warp localhost:8080
   WebAppDeploy examples conn /examples
 
   I started tomcat no problem.  When I start apache i get:
   yntax error on line 984 of /usr/local/apache/conf/httpd.conf:
   Invalid virtual host name
   /usr/local/apache/bin/apachectl start: httpd could not be started
   line 984 refers to this line:
   WebAppDeploy examples conn /examples
 
   I am stumped some help please?
 
 This is my understanding of WebAppConnection and WebAppDeploy
 (corrections welcome :-):
 
 The second argument to the WebAppDeploy directive (here conn) must be
 a defined connection per a WebAppConnection directive (the first
 argument of WebAppConnection specifies the connection).  That is,
 
 WebAppConnection connection protocol host:port
 
 defines a connection -- named connection, using protocol (warp is the
 only possibility currently, I believe), available at host:port -- and
 
 WebAppDeploy context connection url-prefix
 
 indicates that URLs that begin with url-prefix belong to context and
 should be passed to connection.
 
 Anyway, although you should understand at least the basics of the
 above, the gist of it is you should change conn to warpConnection.
 
 Milt Epstein
 Research Programmer
 Systems and Technology Services (STS)
 Campus Information Technologies and Educational Services (CITES)
 University of Illinois at Urbana-Champaign (UIUC)
 [EMAIL PROTECTED]
 
 
 --
 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: Apache Tomcat integration-please help

2002-07-18 Thread Milt Epstein

On Thu, 18 Jul 2002 [EMAIL PROTECTED] wrote:

 UNfortunately I have tried that at it did not help.  Anymore
 suggestions would be wonderful, cause I am stumped.  Maybe does it
 have something to do with my apache install?

Well, that *was* a problem, but maybe it wasn't the only one.  Try
commenting out those lines, and see what effect that has.  Are those
the last lines in your conf file?  Maybe you've got a different
problem somewhere else in your conf file, and it's just reporting it
there because it's the last line.  The error message (are you still
getting the same one?) indicates it's something related to virtual
hosts, so that would be a place to focus.  Of course, then you're
talking about an apache problem, not a tomcat problem.


  On Thu, 18 Jul 2002, Milt Epstein wrote:

  On Thu, 18 Jul 2002 [EMAIL PROTECTED] wrote:
 
I am having a problem getting apache tomcat running using mod_webapp.so
I am using:
 linux redhat 7.3
 jdk1.4
 apache 1.3.26
 tomcat 4.0.4
I got apache 1.3.26 compiled and installed with enable-module=so option it
starts and stops fine
I got tomcat 4.0.4, installed it  and it starts and stops fine, the
examples work etc etc
I got jakarta-tomcat-connectors using CVS, and followed the instructions
to compile mod_webapp.so.  It compiled and I placed it in
$APACHE_HOME/libexec/
I added the following lines to httpd.conf:
LoadModule webapp_module libexec/mod_webapp.so
AddModule mod_webapp.c
WebAppConnection warpConnection warp localhost:8080
WebAppDeploy examples conn /examples
  
I started tomcat no problem.  When I start apache i get:
yntax error on line 984 of /usr/local/apache/conf/httpd.conf:
Invalid virtual host name
/usr/local/apache/bin/apachectl start: httpd could not be started
line 984 refers to this line:
WebAppDeploy examples conn /examples
  
I am stumped some help please?
 
  This is my understanding of WebAppConnection and WebAppDeploy
  (corrections welcome :-):
 
  The second argument to the WebAppDeploy directive (here conn) must be
  a defined connection per a WebAppConnection directive (the first
  argument of WebAppConnection specifies the connection).  That is,
 
  WebAppConnection connection protocol host:port
 
  defines a connection -- named connection, using protocol (warp is the
  only possibility currently, I believe), available at host:port -- and
 
  WebAppDeploy context connection url-prefix
 
  indicates that URLs that begin with url-prefix belong to context and
  should be passed to connection.
 
  Anyway, although you should understand at least the basics of the
  above, the gist of it is you should change conn to warpConnection.
 
  Milt Epstein
  Research Programmer
  Systems and Technology Services (STS)
  Campus Information Technologies and Educational Services (CITES)
  University of Illinois at Urbana-Champaign (UIUC)
  [EMAIL PROTECTED]
 
 
  --
  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]


Milt Epstein
Research Programmer
Systems and Technology Services (STS)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


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




Re: Apache Tomcat integration-please help

2002-07-18 Thread developer

The lack of a ServerName tag and the warpConnection instead of conn  
seemed to be my problem i am up and running thanks for your help!
ryan

On Thu, 18 Jul 2002, Milt Epstein wrote:

 On Thu, 18 Jul 2002 [EMAIL PROTECTED] wrote:
 
  UNfortunately I have tried that at it did not help.  Anymore
  suggestions would be wonderful, cause I am stumped.  Maybe does it
  have something to do with my apache install?
 
 Well, that *was* a problem, but maybe it wasn't the only one.  Try
 commenting out those lines, and see what effect that has.  Are those
 the last lines in your conf file?  Maybe you've got a different
 problem somewhere else in your conf file, and it's just reporting it
 there because it's the last line.  The error message (are you still
 getting the same one?) indicates it's something related to virtual
 hosts, so that would be a place to focus.  Of course, then you're
 talking about an apache problem, not a tomcat problem.
 
 
   On Thu, 18 Jul 2002, Milt Epstein wrote:
 
   On Thu, 18 Jul 2002 [EMAIL PROTECTED] wrote:
  
 I am having a problem getting apache tomcat running using mod_webapp.so
 I am using:
  linux redhat 7.3
  jdk1.4
  apache 1.3.26
  tomcat 4.0.4
 I got apache 1.3.26 compiled and installed with enable-module=so option it
 starts and stops fine
 I got tomcat 4.0.4, installed it  and it starts and stops fine, the
 examples work etc etc
 I got jakarta-tomcat-connectors using CVS, and followed the instructions
 to compile mod_webapp.so.  It compiled and I placed it in
 $APACHE_HOME/libexec/
 I added the following lines to httpd.conf:
 LoadModule webapp_module libexec/mod_webapp.so
 AddModule mod_webapp.c
 WebAppConnection warpConnection warp localhost:8080
 WebAppDeploy examples conn /examples
   
 I started tomcat no problem.  When I start apache i get:
 yntax error on line 984 of /usr/local/apache/conf/httpd.conf:
 Invalid virtual host name
 /usr/local/apache/bin/apachectl start: httpd could not be started
 line 984 refers to this line:
 WebAppDeploy examples conn /examples
   
 I am stumped some help please?
  
   This is my understanding of WebAppConnection and WebAppDeploy
   (corrections welcome :-):
  
   The second argument to the WebAppDeploy directive (here conn) must be
   a defined connection per a WebAppConnection directive (the first
   argument of WebAppConnection specifies the connection).  That is,
  
   WebAppConnection connection protocol host:port
  
   defines a connection -- named connection, using protocol (warp is the
   only possibility currently, I believe), available at host:port -- and
  
   WebAppDeploy context connection url-prefix
  
   indicates that URLs that begin with url-prefix belong to context and
   should be passed to connection.
  
   Anyway, although you should understand at least the basics of the
   above, the gist of it is you should change conn to warpConnection.
  
   Milt Epstein
   Research Programmer
   Systems and Technology Services (STS)
   Campus Information Technologies and Educational Services (CITES)
   University of Illinois at Urbana-Champaign (UIUC)
   [EMAIL PROTECTED]
  
  
   --
   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]
 
 
 Milt Epstein
 Research Programmer
 Systems and Technology Services (STS)
 Campus Information Technologies and Educational Services (CITES)
 University of Illinois at Urbana-Champaign (UIUC)
 [EMAIL PROTECTED]
 
 
 --
 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]




Apache/Tomcat Integration problems (Syntax error at line 4)

2002-05-29 Thread Suresh Kumar

This is what I have:

System: Windows XP
Apache: 2.0.36
Tomcat: 3.3.1

I downloaded the puglin (mod_jk.dll) and added it to
the modules directory of Apache and made changes to
the httpd.conf file like:

Include
C:/Work/Software/tomcat331/conf/auto/mod_jk.conf

mod_jk.conf was auto generated by tomcat. When I start
Apache.exe this is the error I get:

Syntax error on line 4 of
C:/Work/Software/tomcat331/conf/auto/mod_jk.conf:
Cannot load
C:/Work/Software/Apache2/modules/mod_jk.dll into
server: The specifi
ed module could not be found.

Any help would be appreciated.

Thanks
Suresh


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




RE: Apache/Tomcat Integration problems (Syntax error at line 4)

2002-05-29 Thread t . riteshmenon


I had faced the same problem earlier  would eagerly like to know
the solution.

Ritesh

-Original Message-
From: Suresh Kumar [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 30, 2002 10:57 AM
To: [EMAIL PROTECTED]
Subject: Apache/Tomcat Integration problems (Syntax error at line 4)


This is what I have:

System: Windows XP
Apache: 2.0.36
Tomcat: 3.3.1

I downloaded the puglin (mod_jk.dll) and added it to
the modules directory of Apache and made changes to
the httpd.conf file like:

Include
C:/Work/Software/tomcat331/conf/auto/mod_jk.conf

mod_jk.conf was auto generated by tomcat. When I start
Apache.exe this is the error I get:

Syntax error on line 4 of
C:/Work/Software/tomcat331/conf/auto/mod_jk.conf:
Cannot load
C:/Work/Software/Apache2/modules/mod_jk.dll into
server: The specifi
ed module could not be found.

Any help would be appreciated.

Thanks
Suresh


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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

This message contains privileged and confidential information and is
intended only for the individual named.If you are not the intended recipient
you should not disseminate,distribute,store,print, copy or deliver this
message.Please notify the sender immediately by e-mail if you have received
this e-mail by mistake and delete this e-mail from your system.E-mail
transmission cannot be guaranteed to be secure or error-free as information
could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or
contain viruses.The sender therefore does not accept liability for any
errors or omissions in the contents of this message which arise as a result
of e-mail transmission. If verification is required please request a
hard-copy version.


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




Re: Apache+tomcat Integration....Confused....

2002-04-29 Thread Michael Delamere

1) mod_web_app is AFAIK barely beta, however the most stable for apache2.

2) mod_jk2 is being heavily developed right now and will not be replaced by
mod_webapp in the near future.


This was posted in the tomcat-dev list this morning:

[...]
However I do think we should somehow document better what's
happening - many people have the strange impression that
webapp is going to replace jk.
[...]

bye Michael Delamere



- Original Message -
From: Vinay Singh [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Monday, April 29, 2002 8:00 AM
Subject: RE: Apache+tomcat IntegrationConfused


 As far as I know -


 1) mod_webapp is latest and will continue to evolve
 2) mod_jk will not see any future enhancements and will have only bug
fixes
 3) sticky session load balancing works fantastically on solaris (8) with
 mod_jk (BIG PLUS)
 4) for load balancing with mod_webapp you have to use external s/w piece
 like mod_backhand etc


 Vinay
 -Original Message-
 From: Zineddine Reggani [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, April 28, 2002 1:35 PM
 To: '[EMAIL PROTECTED]'
 Subject: Apache+tomcat IntegrationConfused


 I am running Apache on Win2k and trying to use Apache with Tomcat. What
 should I choose mod_jk, mod_webapp or mod_proxy?  And what are the
 advantages/disadvantages of these implementation?




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




RE: Apache+tomcat Integration....Confused....

2002-04-29 Thread costinm

On Mon, 29 Apr 2002, Vinay Singh wrote:

 As far as I know -
 
 
 1) mod_webapp is latest and will continue to evolve

It's development started the 'latest', true.

 2) mod_jk will not see any future enhancements and will have only bug fixes

That's completely false. mod_jk has a stable version that is frozen
( mod_jk1 ), and a development branch where the enhancements are made
( mod_jk2 ). You should use the stable branch until jk2 is ready,
or jk2 if you want to contribute to the development of the next 
version.

Costin


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




Apache+tomcat Integration....Confused....

2002-04-28 Thread Zineddine Reggani

I am running Apache on Win2k and trying to use Apache with Tomcat. What
should I choose mod_jk, mod_webapp or mod_proxy?  And what are the
advantages/disadvantages of these implementation?




RE: Apache+tomcat Integration....Confused....

2002-04-28 Thread Vinay Singh

As far as I know -


1) mod_webapp is latest and will continue to evolve
2) mod_jk will not see any future enhancements and will have only bug fixes
3) sticky session load balancing works fantastically on solaris (8) with
mod_jk (BIG PLUS)
4) for load balancing with mod_webapp you have to use external s/w piece
like mod_backhand etc


Vinay
-Original Message-
From: Zineddine Reggani [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 28, 2002 1:35 PM
To: '[EMAIL PROTECTED]'
Subject: Apache+tomcat IntegrationConfused


I am running Apache on Win2k and trying to use Apache with Tomcat. What
should I choose mod_jk, mod_webapp or mod_proxy?  And what are the
advantages/disadvantages of these implementation?




Apache/Tomcat integration with automatic context generation

2002-04-14 Thread Mikael Hansen

Hi

I have succefully integrated Apache 1.3.20 and Tomcat 4.0.3 with mod_jk. I
do however have a special problem that I hope anyone can suggest a
solution to:

I can automatically generate a context
www.my.tomcat.server:tomcatport/~username

for every user that has the catalog:
/user/username/.public_dw3/tomcat

which contains a web application.

I do this with the following entry in server.xml:
Listener className=org.apache.catalina.startup.UserConfig
  directoryName=.public_dw3/tomcat
  homeBase=/user/
  userClass=org.apache.catalina.startup.HomesUserDatabase/

I can also get tomcat to evaluate requested jsp files through apache with
the following entry in the Apache configuration:

JkMount /*.jsp ajp13

The mod_jk setup is as follows:

LoadModulejk_module  libexec/mod_jk.so
AddModule mod_jk.c
JkWorkersFile /q/fyr_0/jakarta-tomcat-4.0.3/conf/workers.properties
JkLogFile /q/fyr_0/apache/logs/mod_jk.log
JkLogLevelinfo
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 

The problems is that I would like to do the same for servlets as I do with
jsp files withpout having to create a JkMount entry for each user on the
system.

In more details a request to:

http://www.my.apache.server/~username/tomcat

should be the same as requesting
www.my.tomcat.server:tomcatport/~username

I can redirect to the tomcat-server but it would be
nice to do it without the url changing.

Anyone has an idea?


Best regards
Mikael Hansen

We are Microsoft. You will be assimilated.
Resistance is Futile.






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




Handler for Apache/Tomcat integration?

2002-04-05 Thread Duane Gran

Tomcat Users,

I'm migrating from Tomcat 3.2.x to Tomcat 4.0.3.  In the previous 
version I used the JServ AJP12 connector and used the following lines in 
the Apache httpd.conf to enable Tomcat 3 to handle *.jsp files:

   AddType text/jsp .jsp
   AddHandler jserv-servlet .jsp
   LocationMatch /*.jsp
 SetHandler jserv-servlet
   /LocationMatch

I read through the list archives and searched around, but can someone 
tell me the appropriate handler for the connector with Tomcat 4?  Below 
is the connector statements I use for Apache:

   WebAppConnection tomcat  warp  localhost:8008
   WebAppDeploy servlettomcat  /

If I should be handling this differently, please let me know.  Many 
thanks in advance.

Duane Gran
spinweb.net


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




Re: apache tomcat integration syntax error in httpd.conf

2002-03-13 Thread rsequeira


Do you have the following lines within a VirtualHost tag?
snip
IfModule mod_webapp.c
  WebAppConnection conn  warp  localhost:8008
  WebAppDeploy examplesconn  /examples
  WebAppInfo /webapp-info
/IfModule
/snip

I guess it would help if you attach the relevant parts of the httpd.conf.
Someone on this list might be able to analyze your problem quickly.

RS






Paul Phillips [EMAIL PROTECTED] on 03/12/2002 08:47:06 PM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:   Tomcat Users List [EMAIL PROTECTED]
cc:

Subject:  Re: apache tomcat integration syntax error in httpd.conf

Here's what else I found since first writing the email quoted below.

FYI - Tomcat 4.0.3
mod_webapp binary for linux i386 (I did not compile it)

If I comment out the WebAppDeploy line, then apachectl configtest (and
start) report the same error of invalid virtual host name for the
following WebAppInfo line.

If I comment out both the WebAppDeploy line and the WebAppInfo line,
apachectl configtest reports syntax OK.  However, that is useless,
because I haven't associated any tomcat webapps to an apache URL.

I tried adding a trailing slash to /examples, but that didn't change
anything.

If anybody has any ideas, I would be most grateful.

Regards,
Paul Phillips



--On Tuesday, March 12, 2002 5:37 PM -0600 Paul Phillips
[EMAIL PROTECTED] wrote:

 Hello -

 I am trying to integrate Apache and Tomcat with the warp connector.

 I am following the instructions at:
 http://www.galatea.com/flashguides/apache-tomcat-4-unix.xml
 which are dated March 6, 2002, so they aren't too old!

 I have followed the instructions exactly as stated on my RedHat Linux 7.2
 platform.  I am not using the RedHat Apache, but rather I built it from
 scratch.

 Per the instructions, I added these lines to the very end of httpd.conf

 IfModule mod_webapp.c
  WebAppConnection conn  warp  localhost:8008
  WebAppDeploy examplesconn  /examples
  WebAppInfo /webapp-info
 /IfModule

 When I run apachectl configtest, I get this error message:
 Syntax error line xxx
 Invalid virtual host name

 The line number is the line that is:
  WebAppDeploy examplesconn  /examples

 I cannot figure out why it thinks this is a virtual host name, or what I
 have wrong that is producing the syntax error.

 Can anyone help?

 Thanks
 Paul Phillips

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



___
Paul Phillips
Director of Orchestral Activities, Meadows School of the Arts
Southern Methodist University

You must sing every note you play, sing even through the rests!
Arturo Toscanini

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









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




Re: apache tomcat integration syntax error in httpd.conf

2002-03-13 Thread August Detlefsen

For virtual hosts, you have to create the webapp connection AFTER you
specify the NameVirtualHost, like this: 

NameVirtualHost 12.34.56.78

# create the webapp connection
WebAppConnection conn  warp  localhost:8008
WebAppInfo /webapp-info


Then actually deploy the webapps within your virtual host blocks: 

VirtualHost 12.34.56.78
ServerName www.mycompany.com
DocumentRoot /path/to/mycompany.com
WebAppDeploy ROOT  conn  /
WebAppDeploy manager   conn  /manager
/VirtualHost


--- Paul Phillips [EMAIL PROTECTED] wrote:
 Here's what else I found since first writing the email quoted below.
 
 FYI - Tomcat 4.0.3
 mod_webapp binary for linux i386 (I did not compile it)
 
 If I comment out the WebAppDeploy line, then apachectl configtest
 (and 
 start) report the same error of invalid virtual host name for the 
 following WebAppInfo line.
 
 If I comment out both the WebAppDeploy line and the WebAppInfo line, 
 apachectl configtest reports syntax OK.  However, that is useless, 
 because I haven't associated any tomcat webapps to an apache URL.
 
 I tried adding a trailing slash to /examples, but that didn't change 
 anything.
 
 If anybody has any ideas, I would be most grateful.
 
 Regards,
 Paul Phillips
 
 
 
 --On Tuesday, March 12, 2002 5:37 PM -0600 Paul Phillips 
 [EMAIL PROTECTED] wrote:
 
  Hello -
 
  I am trying to integrate Apache and Tomcat with the warp connector.
 
  I am following the instructions at:
  http://www.galatea.com/flashguides/apache-tomcat-4-unix.xml
  which are dated March 6, 2002, so they aren't too old!
 
  I have followed the instructions exactly as stated on my RedHat
 Linux 7.2
  platform.  I am not using the RedHat Apache, but rather I built it
 from
  scratch.
 
  Per the instructions, I added these lines to the very end of
 httpd.conf
 
  IfModule mod_webapp.c
   WebAppConnection conn  warp  localhost:8008
   WebAppDeploy examplesconn  /examples
   WebAppInfo /webapp-info
  /IfModule
 
  When I run apachectl configtest, I get this error message:
  Syntax error line xxx
  Invalid virtual host name
 
  The line number is the line that is:
   WebAppDeploy examplesconn  /examples
 
  I cannot figure out why it thinks this is a virtual host name, or
 what I
  have wrong that is producing the syntax error.
 
  Can anyone help?
 
  Thanks
  Paul Phillips
 
  --
  To unsubscribe:  
 mailto:[EMAIL PROTECTED]
  For additional commands:
 mailto:[EMAIL PROTECTED]
  Troubles with the list:
 mailto:[EMAIL PROTECTED]
 
 
 
 ___
 Paul Phillips
 Director of Orchestral Activities, Meadows School of the Arts
 Southern Methodist University
 
 You must sing every note you play, sing even through the rests!
 Arturo Toscanini
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/

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




apache tomcat integration syntax error in httpd.conf

2002-03-12 Thread Paul Phillips

Hello -

I am trying to integrate Apache and Tomcat with the warp connector.

I am following the instructions at:
http://www.galatea.com/flashguides/apache-tomcat-4-unix.xml
which are dated March 6, 2002, so they aren't too old!

I have followed the instructions exactly as stated on my RedHat Linux 7.2 
platform.  I am not using the RedHat Apache, but rather I built it from 
scratch.

Per the instructions, I added these lines to the very end of httpd.conf

IfModule mod_webapp.c
 WebAppConnection conn  warp  localhost:8008
 WebAppDeploy examplesconn  /examples
 WebAppInfo /webapp-info
/IfModule

When I run apachectl configtest, I get this error message:
Syntax error line xxx
Invalid virtual host name

The line number is the line that is:
 WebAppDeploy examplesconn  /examples

I cannot figure out why it thinks this is a virtual host name, or what I 
have wrong that is producing the syntax error.

Can anyone help?

Thanks
Paul Phillips

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




Re: apache tomcat integration syntax error in httpd.conf

2002-03-12 Thread Paul Phillips

Here's what else I found since first writing the email quoted below.

FYI - Tomcat 4.0.3
mod_webapp binary for linux i386 (I did not compile it)

If I comment out the WebAppDeploy line, then apachectl configtest (and 
start) report the same error of invalid virtual host name for the 
following WebAppInfo line.

If I comment out both the WebAppDeploy line and the WebAppInfo line, 
apachectl configtest reports syntax OK.  However, that is useless, 
because I haven't associated any tomcat webapps to an apache URL.

I tried adding a trailing slash to /examples, but that didn't change 
anything.

If anybody has any ideas, I would be most grateful.

Regards,
Paul Phillips



--On Tuesday, March 12, 2002 5:37 PM -0600 Paul Phillips 
[EMAIL PROTECTED] wrote:

 Hello -

 I am trying to integrate Apache and Tomcat with the warp connector.

 I am following the instructions at:
 http://www.galatea.com/flashguides/apache-tomcat-4-unix.xml
 which are dated March 6, 2002, so they aren't too old!

 I have followed the instructions exactly as stated on my RedHat Linux 7.2
 platform.  I am not using the RedHat Apache, but rather I built it from
 scratch.

 Per the instructions, I added these lines to the very end of httpd.conf

 IfModule mod_webapp.c
  WebAppConnection conn  warp  localhost:8008
  WebAppDeploy examplesconn  /examples
  WebAppInfo /webapp-info
 /IfModule

 When I run apachectl configtest, I get this error message:
 Syntax error line xxx
 Invalid virtual host name

 The line number is the line that is:
  WebAppDeploy examplesconn  /examples

 I cannot figure out why it thinks this is a virtual host name, or what I
 have wrong that is producing the syntax error.

 Can anyone help?

 Thanks
 Paul Phillips

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



___
Paul Phillips
Director of Orchestral Activities, Meadows School of the Arts
Southern Methodist University

You must sing every note you play, sing even through the rests!
Arturo Toscanini

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




RE: Apache - Tomcat - integration

2002-01-18 Thread Cressatti, Dominique

it's fairly easy, once you know how do it
and were are pitfalls.

2...
I don't know what is the AJP connector but I don't
you need since you should be using the warp connector.

1st) are tomcat and apache working? have you tried to
go to http://localhost:8080/examples/ and http://localhost

What did you add in your httpd.conf?
did you uncomment and configured the ServerName
(not the one to do with virtualhost) directive?

Dom




-Original Message-
From: Brown Bay [mailto:[EMAIL PROTECTED]]
Sent: 18 January 2002 06:06
To: Tomcat Users List
Subject: Apache - Tomcat - integration


Hi,

I have been trying to make Apache 1.3 and Tomcat 4.0 work together but I was
not sure what the different pieces are that I need to make them work
together. I have listed a couple of doubts below, please take the time to
answer them.

1. What is mod_webwap. Do I need this in my case. I have downloaded and
copied the .dll into winnt/system32 and into %APACHE_HOME%/modules and the
.so in to %APACHE_HOME%/modules

2. What is AJP connector and what is the relation with mod_jk. Do I need
this in my case, according to the docs the AJP connector is required to
connect to web servers, but the docs dont say exactly what is to be done (or
maybe I have not been able to understand)

One of the places that I saw
http://www.galatea.com/flashguides/apache-tomcat-4-win32.xml and
http://dcb.sun.com/practices/howtos/tomcat_apache.jsp gave an easy guide
that does not seem to work in my case. When I type http://localhost/examples
the Apache.exe process runs at 99% and never comes back.

Please let me know.

Thanks in advance.

Brown.

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


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




RE: Apache - Tomcat - integration

2002-01-18 Thread Cressatti, Dominique

as well:
http://localhost/examples
will not work for me but
http://localhost/examples/
does.

Dom

-Original Message-
From: Cressatti, Dominique 
Sent: 18 January 2002 10:22
To: Tomcat Users List
Subject: RE: Apache - Tomcat - integration


it's fairly easy, once you know how do it
and were are pitfalls.

2...
I don't know what is the AJP connector but I don't
you need since you should be using the warp connector.

1st) are tomcat and apache working? have you tried to
go to http://localhost:8080/examples/ and http://localhost

What did you add in your httpd.conf?
did you uncomment and configured the ServerName
(not the one to do with virtualhost) directive?

Dom




-Original Message-
From: Brown Bay [mailto:[EMAIL PROTECTED]]
Sent: 18 January 2002 06:06
To: Tomcat Users List
Subject: Apache - Tomcat - integration


Hi,

I have been trying to make Apache 1.3 and Tomcat 4.0 work together but I was
not sure what the different pieces are that I need to make them work
together. I have listed a couple of doubts below, please take the time to
answer them.

1. What is mod_webwap. Do I need this in my case. I have downloaded and
copied the .dll into winnt/system32 and into %APACHE_HOME%/modules and the
.so in to %APACHE_HOME%/modules

2. What is AJP connector and what is the relation with mod_jk. Do I need
this in my case, according to the docs the AJP connector is required to
connect to web servers, but the docs dont say exactly what is to be done (or
maybe I have not been able to understand)

One of the places that I saw
http://www.galatea.com/flashguides/apache-tomcat-4-win32.xml and
http://dcb.sun.com/practices/howtos/tomcat_apache.jsp gave an easy guide
that does not seem to work in my case. When I type http://localhost/examples
the Apache.exe process runs at 99% and never comes back.

Please let me know.

Thanks in advance.

Brown.

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


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


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




Apache - Tomcat - integration

2002-01-17 Thread Brown Bay

Hi,

I have been trying to make Apache 1.3 and Tomcat 4.0 work together but I was
not sure what the different pieces are that I need to make them work
together. I have listed a couple of doubts below, please take the time to
answer them.

1. What is mod_webwap. Do I need this in my case. I have downloaded and
copied the .dll into winnt/system32 and into %APACHE_HOME%/modules and the
.so in to %APACHE_HOME%/modules

2. What is AJP connector and what is the relation with mod_jk. Do I need
this in my case, according to the docs the AJP connector is required to
connect to web servers, but the docs dont say exactly what is to be done (or
maybe I have not been able to understand)

One of the places that I saw
http://www.galatea.com/flashguides/apache-tomcat-4-win32.xml and
http://dcb.sun.com/practices/howtos/tomcat_apache.jsp gave an easy guide
that does not seem to work in my case. When I type http://localhost/examples
the Apache.exe process runs at 99% and never comes back.

Please let me know.

Thanks in advance.

Brown.

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




Apache-Tomcat Integration Troubles

2002-01-04 Thread Scott


On both Windows 2000 and NT4.0, I am having difficulty integrating Apache
1.3.22 with the pre-integrated JBoss-2.4.3_Tomcat-3.2.3 distribution from
JBoss.org.  I have followed the standard 3-step process:

   (1) In $TOMCAT_HOME/conf/server.xml, add ApacheConfig / directive
before closing /ContextManager tag.  (Note: The directions called for me
to place this after the AutoWebApp / directive, which was not in the
default server.xml file in my distribution.)

   (2) In $APACHE_HOME/conf/httpd.conf, add the following Include:
 Include
C:/JBoss-2.4.3_Tomcat-3.2.3/Tomcat/conf/jk/mod_jk.conf-auto

   (3) Downloaded the precompiled win32 mod_jk.dll and placed in
$APACHE_HOME/modules folder.

I start JBoss and Tomcat together using the
$JBOSS_HOME/bin/run_with_tomcat.bat command (part of the distribution).  At
first glance, the JBoss-Tomcat install appears to run fine since the Tomcat
JSP and Servlet examples run.  However, the mod_jk.conf-auto and
tomcat-apache.conf files are not created in order for the Apache
installation to startup without terminal errors (which I can specifically
identify as the problem when starting Apache by viewing the Application
Error Log).

One more minor detail...

the documentation sets I have seem to be in conflict.  The
tomcat-apache-howto.html documentation file says these Tomcat-created
dynamic setup files for Apache should be in $TOMCAT_HOME/conf/ and the
mod_jk-howto.html documentation file indicates that they should be in
$TOMCAT_HOME/conf/jk/.  Which is correct?

Any help would be greatly appreciated.  Thank you!

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




Apache Tomcat integration

2001-11-29 Thread amol

i have successfully installed tomcat and apache.
both of them run independently.
now, i am trying to connect them.

i did all that was mentioned in the install.txt that comes with the
webapp-module for tomcat4
then, i restarted tomcat. it works ( made it work on port 8080 )
then, tried to restart apache.
but it fails to start.
in error.log, i get the following message :
[crit] (2)No such file or directory: make_sock: failed to get a socket for
port 80

on the prompt, it says
[warn] pid file c:/apache/apache/logs/httpd.pid overwritten -- Unclean
shutdown of previous Apache run?
Apache/1.3.22 (Win32) running...

when i try to 'stop' it, it gives [emerg] (2)The system cannot find the
file specified: OpenEvent on ap606_shutdown event

any guidance??
i am on NT4 with tomcat-4.0.1 and apache 1.3.22. Tomcat has been installed
as a service

thnx
amol


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




RE: Apache Tomcat integration

2001-11-29 Thread Kemp Randy-W18971

What service pack do you have for NT?  Service Pack 5?  I believe you need that at 
least, in order for TCP/IP to be available.

-Original Message-
From: amol [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 29, 2001 4:44 AM
To: Tomcat Users List
Subject: Apache Tomcat integration


i have successfully installed tomcat and apache.
both of them run independently.
now, i am trying to connect them.

i did all that was mentioned in the install.txt that comes with the
webapp-module for tomcat4
then, i restarted tomcat. it works ( made it work on port 8080 )
then, tried to restart apache.
but it fails to start.
in error.log, i get the following message :
[crit] (2)No such file or directory: make_sock: failed to get a socket for
port 80

on the prompt, it says
[warn] pid file c:/apache/apache/logs/httpd.pid overwritten -- Unclean
shutdown of previous Apache run?
Apache/1.3.22 (Win32) running...

when i try to 'stop' it, it gives [emerg] (2)The system cannot find the
file specified: OpenEvent on ap606_shutdown event

any guidance??
i am on NT4 with tomcat-4.0.1 and apache 1.3.22. Tomcat has been installed
as a service

thnx
amol


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




RE: Apache Tomcat integration

2001-11-29 Thread A Mohan rao


i have servicepack 4. i do have problem. After installation, filter is
been added to isapi. but the jsp files available in wwwroot dir is not
parsed by tomcat. when i ,make any request , i am not able to o/p
instead the entire file or 405 error
 -Original Message-
 From: Kemp Randy-W18971 [SMTP:[EMAIL PROTECTED]]
 Sent: Thursday, November 29, 2001 7:56 PM
 To:   Tomcat Users List
 Subject:  RE: Apache Tomcat integration
 
 What service pack do you have for NT?  Service Pack 5?  I believe you
 need that at least, in order for TCP/IP to be available.
 
 -Original Message-
 From: amol [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, November 29, 2001 4:44 AM
 To: Tomcat Users List
 Subject: Apache Tomcat integration
 
 
 i have successfully installed tomcat and apache.
 both of them run independently.
 now, i am trying to connect them.
 
 i did all that was mentioned in the install.txt that comes with the
 webapp-module for tomcat4
 then, i restarted tomcat. it works ( made it work on port 8080 )
 then, tried to restart apache.
 but it fails to start.
 in error.log, i get the following message :
 [crit] (2)No such file or directory: make_sock: failed to get a socket
 for
 port 80
 
 on the prompt, it says
 [warn] pid file c:/apache/apache/logs/httpd.pid overwritten --
 Unclean
 shutdown of previous Apache run?
 Apache/1.3.22 (Win32) running...
 
 when i try to 'stop' it, it gives [emerg] (2)The system cannot find
 the
 file specified: OpenEvent on ap606_shutdown event
 
 any guidance??
 i am on NT4 with tomcat-4.0.1 and apache 1.3.22. Tomcat has been
 installed
 as a service
 
 thnx
 amol
 
 
 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.yahoo.com
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

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




Re: Apache Tomcat integration

2001-11-29 Thread amol

i have service pack 6 installed.
TCP/IP, etc are configured in the protocols list and i am using those
configurations for other applications without any problems.
regards,
amol

- Original Message -
From: A Mohan rao [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, November 29, 2001 7:58 PM
Subject: RE: Apache Tomcat integration



i have servicepack 4. i do have problem. After installation, filter is
been added to isapi. but the jsp files available in wwwroot dir is not
parsed by tomcat. when i ,make any request , i am not able to o/p
instead the entire file or 405 error
 -Original Message-
 From: Kemp Randy-W18971 [SMTP:[EMAIL PROTECTED]]
 Sent: Thursday, November 29, 2001 7:56 PM
 To: Tomcat Users List
 Subject: RE: Apache Tomcat integration

 What service pack do you have for NT?  Service Pack 5?  I believe you
 need that at least, in order for TCP/IP to be available.

 -Original Message-
 From: amol [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, November 29, 2001 4:44 AM
 To: Tomcat Users List
 Subject: Apache Tomcat integration


 i have successfully installed tomcat and apache.
 both of them run independently.
 now, i am trying to connect them.

 i did all that was mentioned in the install.txt that comes with the
 webapp-module for tomcat4
 then, i restarted tomcat. it works ( made it work on port 8080 )
 then, tried to restart apache.
 but it fails to start.
 in error.log, i get the following message :
 [crit] (2)No such file or directory: make_sock: failed to get a socket
 for
 port 80

 on the prompt, it says
 [warn] pid file c:/apache/apache/logs/httpd.pid overwritten --
 Unclean
 shutdown of previous Apache run?
 Apache/1.3.22 (Win32) running...

 when i try to 'stop' it, it gives [emerg] (2)The system cannot find
 the
 file specified: OpenEvent on ap606_shutdown event

 any guidance??
 i am on NT4 with tomcat-4.0.1 and apache 1.3.22. Tomcat has been
 installed
 as a service

 thnx
 amol


 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.yahoo.com


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


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


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




Re: Apache-Tomcat integration.

2001-07-23 Thread John Hebert

Gurjeet Singh Osahan wrote:

 Hi,
 
 I am not able to configure Tomcat with apache.
 
 I am able to run both servers indepently.
 
 Next I put the mod_jk.so file in libexec directory.
 
 Next I add the include statement in httpd.conf file
 
 when i run tomcat it starts fine.
 
 When i run apache it gives a error :
 
 invalid command 'loadmodule', perhaps misspelled or defined by a module 
 not included in your server environment.


Read: http://jakarta.apache.org/tomcat/tomcat-3.2-doc/mod_jk-howto.html#s62

1.  Make sure your Apache has DSO support. You can check this with 
$APACHE_HOME/bin/httpd -l. If you see mod_so.c in the output, DSO 
support is available. If it's missing, you may have to recompile or 
reinstall Apache.

It looks like you don't have DSO support compiled into Apache.

Hope this helps.

-- 
John Alex Hebert
[EMAIL PROTECTED]
System Engineer



Apache Tomcat Integration

2001-07-03 Thread gurjeet sandhu



Hi Everyone

I am trying to integrate Apache 1.3  Tomcat 
3.2 . I have installed both servers , i have compiled mod_jserv module also . I 
need all my static files to be taken care by apache  all my dynamic pages 
by tomcat . for thiscan anybody give me the configuration files . Please 
help me regarding Classpath setting on solaris 7.0 .

Thanks

Gurjeet Singh SandhuSun-Solaris 
AdminInfobrain India (P) LtdHyderbadPh 
+091+040+3236411/17/16Fax +091+040+3236408Email :-- [EMAIL PROTECTED]


RE: Apache Tomcat Integration

2001-07-03 Thread Emir Alikadic (ADNOC IST)

I'd suggest using mod_jk rather than mod_jserv (the latter being deprecated,
IIRC).
Apache/Tomcat integration is explained in detail in the Tomcat docs included
in the bundle.  So is general configuration.  Being a SysAdmin, I doubt
you'll have trouble following the docs...

Cheers!



Emir.

-Original Message-
From: gurjeet sandhu [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 04, 2001 8:34 PM
To: [EMAIL PROTECTED]
Subject: Apache Tomcat Integration


Hi Everyone

I am trying to integrate Apache 1.3  Tomcat 3.2 . I have installed both
servers , i have compiled mod_jserv module also . I need all my static files
to be taken care by apache  all my dynamic pages by tomcat . for this can
anybody give me the configuration files . Please help me regarding Classpath
setting on solaris 7.0 .

Thanks 

Gurjeet Singh Sandhu
Sun-Solaris Admin
Infobrain India (P) Ltd
Hyderbad
Ph +091+040+3236411/17/16
Fax  +091+040+3236408
Email :-- [EMAIL PROTECTED]



Apache/Tomcat integration issues

2001-04-16 Thread Sam Newman



I've just followed the instructions to get Apache 
and Tomcat working together. I editied the workers.properties file (which by the 
way seems to assume you are on a win32 platform!) and the server.xml to include 
the ajpv13 protocol connector. Apache includes tomcats autogenerated config file 
and everything works fine - I can see and execute all the example code. I 
basically have two problems however:

1.) The autogenerated conf file for mod_jk makes no 
reference of ajpv13, which I assumed is the prefered protocol. The only place I 
can see to make ajpv13 the default is for JServ. I obviously would like to avoid 
editing httpd.conf by hand and would rather tomcat generated the file using 
ajpv13 as the default - is it simply a matter of inserting a directive in the 
servler.xml? I appreciate that not everyone will choose to use ajpv13, but if 
its explicitly referenced in the server.xml, couldn't it be put in? What do I 
loose by not using ajpv13 (apart from performance)?

2.) When displaying one of my login servlets (a 
simple form forwarding requests to another servlet) via apache (over standard 
http or https) under netscape on a linux box, I get displayed the source code 
for the page (e.g. the plain text html) rather than the rendered page. Accessing 
the page via the tomcat port solves this. MSIE on my laptop can view the page 
fine - either via http or https. If it was a problem with the format of html i 
would of expected the tomcat served page to likewise display the html 
sourcecode. Any ideas?

Thanks in advance,

sam newman

p.s. I'm tempted to buy redhat's strongohld out of 
my own pocket rather than spend another week of hell getting SSL working 
myself!




RES: Apache/Tomcat integration issues

2001-04-16 Thread Pedro Henrique Ponchio

Put this few lines of code:

 LoadModule jk_modulelibexec/mod_jk.so
 AddModule mod_jk.c
 
 JkWorkersFile /packages/tomcat/conf/workers.properties
 JkLogFile /usr/local/apache_1.3.14/logs/mod_jk.log
 JkLogLevelwarn
 
 JkMount /*.jsp ajp13
 JkMount /servlet/* ajp13
 JkMount /otherworker/*.jsp remoteworker
 
include /packages/tomcat/conf/mod_jk.conf-auto

after the VirtualHost directives, into your httpd.conf file.
 
Pedro Henrique

-Mensagem original-
De: Sam Newman [mailto:[EMAIL PROTECTED]]
Enviada em: Monday, April 16, 2001 11:06 AM
Para: [EMAIL PROTECTED]
Assunto: Apache/Tomcat integration issues


I've just followed the instructions to get Apache and Tomcat working
together. I editied the workers.properties file (which by the way seems
to assume you are on a win32 platform!) and the server.xml to include
the ajpv13 protocol connector. Apache includes tomcats autogenerated
config file and everything works fine - I can see and execute all the
example code. I basically have two problems however:
 
1.) The autogenerated conf file for mod_jk makes no reference of ajpv13,
which I assumed is the prefered protocol. The only place I can see to
make ajpv13 the default is for JServ. I obviously would like to avoid
editing httpd.conf by hand and would rather tomcat generated the file
using ajpv13 as the default - is it simply a matter of inserting a
directive in the servler.xml? I appreciate that not everyone will choose
to use ajpv13, but if its explicitly referenced in the server.xml,
couldn't it be put in? What do I loose by not using ajpv13 (apart from
performance)?
 
2.) When displaying one of my login servlets (a simple form forwarding
requests to another servlet) via apache (over standard http or https)
under netscape on a linux box, I get displayed the source code for the
page (e.g. the plain text html) rather than the rendered page. Accessing
the page via the tomcat port solves this. MSIE on my laptop can view the
page fine - either via http or https. If it was a problem with the
format of html i would of expected the tomcat served page to likewise
display the html sourcecode. Any ideas?
 
Thanks in advance,
 
sam newman
 
p.s. I'm tempted to buy redhat's strongohld out of my own pocket rather
than spend another week of hell getting SSL working myself!
 
 




Re: Apache/Tomcat integration issues

2001-04-16 Thread Sam Newman

 Put this few lines of code:

  LoadModule jk_modulelibexec/mod_jk.so
  AddModule mod_jk.c

snip

Much of this code is already included in the mod_jk.conf-auto file which
tomcat generates automatically on startup. This file doesn't reference
ajpv13 anywhere. I guess I could simply overide this after I include the
file. My question was as much why, if ajpv13 is theprefered method, can't
tomcat include this information in the mod_jk it generates? Thanks for the
help though - I'll stick those ajpv13 lines after the include.

sam




Re: Apache/Tomcat integration issues

2001-04-16 Thread Jeff Kilbride



I don't think there's a way to tell Tomcat to use 
ajp13 in it's auto-generated config files -- which is why I just used the auto 
file as a starting point to create my own. It's pretty simple and it doesn't 
change that often, unless you're constantly adding webapps. Remember, you'll 
have to restart Tomcat -- and therefore Apache, if you're using ajp13 -- when 
you add a new webapp anyway, so adding a few lines to the config file is 
relatively painless at that point.

As for #2, all I can think of is to make sure 
you're setting the ContentType for the response to text/html. I believe it 
defaults to plain text if you don't. MSIE may display the html whether the 
correct header is set or not.

Thanks,
--jeff

  - Original Message - 
  From: 
  Sam 
  Newman 
  To: [EMAIL PROTECTED] 
  
  Sent: Monday, April 16, 2001 7:05 
AM
  Subject: Apache/Tomcat integration 
  issues
  
  I've just followed the instructions to get Apache 
  and Tomcat working together. I editied the workers.properties file (which by 
  the way seems to assume you are on a win32 platform!) and the server.xml to 
  include the ajpv13 protocol connector. Apache includes tomcats autogenerated 
  config file and everything works fine - I can see and execute all the example 
  code. I basically have two problems however:
  
  1.) The autogenerated conf file for mod_jk makes 
  no reference of ajpv13, which I assumed is the prefered protocol. The only 
  place I can see to make ajpv13 the default is for JServ. I obviously would 
  like to avoid editing httpd.conf by hand and would rather tomcat generated the 
  file using ajpv13 as the default - is it simply a matter of inserting a 
  directive in the servler.xml? I appreciate that not everyone will choose to 
  use ajpv13, but if its explicitly referenced in the server.xml, couldn't it be 
  put in? What do I loose by not using ajpv13 (apart from 
  performance)?
  
  2.) When displaying one of my login servlets (a 
  simple form forwarding requests to another servlet) via apache (over standard 
  http or https) under netscape on a linux box, I get displayed the source code 
  for the page (e.g. the plain text html) rather than the rendered page. 
  Accessing the page via the tomcat port solves this. MSIE on my laptop can view 
  the page fine - either via http or https. If it was a problem with the format 
  of html i would of expected the tomcat served page to likewise display the 
  html sourcecode. Any ideas?
  
  Thanks in advance,
  
  sam newman
  
  p.s. I'm tempted to buy redhat's strongohld out 
  of my own pocket rather than spend another week of hell getting SSL working 
  myself!
  
  


Apache-Tomcat Integration

2001-04-03 Thread Ramesh Ankam

Hi Guys, 

 I am new to Apache and Tomcat. I have downloaded and sucessfully installed
Apache 1.3.19 and Tomcat 3.2.1 they run perfectly fine
 independently. I would like to intergrate Apache with Tomcat to serve
Static pages and JSP and Servlets using Tomcat. 

 1) I have added Include
D:/Tomcat/jakarta-tomcat-3.2.1/conf/tomcat-apache.conf file to httpd.conf
file of Apache distribution. 
 2) Downloaded ApacheModuleJServ.dll and added to libexec directory and
modules directory of Apache Installation? 
 3) I started Tomcat first and then Apache, they started successfully and
was able to test servlets fine from Tomcat, but I cannot able to do the
 same using Apache URL
(http://localhost/examples/servlet/HelloWorldExample)? 

 The servlet runs fine if I use Tomcat URL
http://localhost:8080/examples/servlet/HelloWorldExample? 

 What would be the best way to test and know that Integration has been
successful? 

 thanks for help, 
 RaMESH 





apache-tomcat integration

2001-03-13 Thread john layton

Does anyone have any experience
of apache-tomcat integration.

scenario:  'out of box' installation of
tomcat-3.3-m1.1.noarch.rpm,
tomcat-mod-3.2.1-1.i386.rpm

Apache-AdvancedExtranetServer/1.3.14 (Linux-Mandrake/2mdk) mod_jk

on mandrake 7.2 distribution.

(i did not depend on the default config 'out of the box'
so I have run through the configuration on my box)

tomcat operation ok on 8080, apache operation ok on 80
mapping of the $TOMCAT_HOME/webapps/examples/ works ok 
ie the include for mod_jk in httpd.conf is operating correctly

problem jsp's return as plain text sevlets apache protests that
servlets could not be found (404).

Any ideas would be greatfully received

Thanks,

John

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




Apache/Tomcat integration, help !

2001-01-30 Thread Joel Cordonnier

Hi!

As a newbie, I try to integrate Tomcat 3.2 with Apache
3.12 under RedHat 7.0. So I need the mod_jk.so shared
library.

But I don't find the mod_jk library in the build
directory of Tomcat 3.1 or 3.2 (under 3.1 there is a
mod_jserv.so, but i such the mod_jk !!!).

nb: I don't want to dowload Apache and build mod_jk
with apxs...

Can someone send me the mod_jk library ? or
give me an address where to dowload ?

Thanks
Joel


___
Do You Yahoo!? -- Pour dialoguer en direct avec vos amis, 
Yahoo! Messenger : http://fr.messenger.yahoo.com

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




Re: Apache/Tomcat integration, help !

2001-01-30 Thread Jan Labanowski

Check it out...
http://www.ccl.net/cca/software/UNIX/apache/

There is a link to compiled mod_jk.so there...

Jan


On Tue, 30 Jan 2001, [iso-8859-1] Joel Cordonnier wrote:

 Hi!
 
 As a newbie, I try to integrate Tomcat 3.2 with Apache
 3.12 under RedHat 7.0. So I need the mod_jk.so shared
 library.
 
 But I don't find the mod_jk library in the build
 directory of Tomcat 3.1 or 3.2 (under 3.1 there is a
 mod_jserv.so, but i such the mod_jk !!!).
 
 nb: I don't want to dowload Apache and build mod_jk
 with apxs...
 
 Can someone send me the mod_jk library ? or
 give me an address where to dowload ?
 
 Thanks
 Joel
 
 
 ___
 Do You Yahoo!? -- Pour dialoguer en direct avec vos amis, 
 Yahoo! Messenger : http://fr.messenger.yahoo.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 

Jan K. Labanowski|phone: 614-292-9279,  FAX: 614-292-7168
Ohio Supercomputer Center|Internet: [EMAIL PROTECTED] 
1224 Kinnear Rd, |http://www.ccl.net/chemistry.html
Columbus, OH 43212-1163  |http://www.osc.edu/


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




Re: Apache/Tomcat integration, help !

2001-01-30 Thread Christopher Albert

Joel Cordonnier wrote:

 Hi!

 As a newbie, I try to integrate Tomcat 3.2 with Apache
 3.12 under RedHat 7.0. So I need the mod_jk.so shared
 library.

 But I don't find the mod_jk library in the build
 directory of Tomcat 3.1 or 3.2 (under 3.1 there is a
 mod_jserv.so, but i such the mod_jk !!!).

 nb: I don't want to dowload Apache and build mod_jk
 with apxs...

 Can someone send me the mod_jk library ? or
 give me an address where to dowload ?

 Thanks
 Joel

 ___
 Do You Yahoo!? -- Pour dialoguer en direct avec vos amis,
 Yahoo! Messenger : http://fr.messenger.yahoo.com

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

Joel,
You should try H.Gomez's rpms . They work like a charm.
DO a search for mod-jk at fr.rpmfind.net

Chris


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




RE: Apache/Tomcat integration, help !

2001-01-30 Thread GOMEZ Henri

I'll provide one ASAP...

On ne peut rsoudre les problmes les plus graves avec le mme esprit qui
les a cres.
-- Albert Einstein 

-Original Message-
From: Joel Cordonnier [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 30, 2001 4:47 PM
To: [EMAIL PROTECTED]
Subject: Apache/Tomcat integration, help !


Hi!

As a newbie, I try to integrate Tomcat 3.2 with Apache
3.12 under RedHat 7.0. So I need the mod_jk.so shared
library.

But I don't find the mod_jk library in the build
directory of Tomcat 3.1 or 3.2 (under 3.1 there is a
mod_jserv.so, but i such the mod_jk !!!).

nb: I don't want to dowload Apache and build mod_jk
with apxs...

Can someone send me the mod_jk library ? or
give me an address where to dowload ?

Thanks
Joel


___
Do You Yahoo!? -- Pour dialoguer en direct avec vos amis, 
Yahoo! Messenger : http://fr.messenger.yahoo.com

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


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




AIX Apache+Tomcat integration problem

2000-12-14 Thread Palumbo, Mark

We are trying to integrate Apache (1.3.14)  Tomcat (3.2.1) by building a
mod_jk.so file.  Our platform is AIX 4.2.  We have tried following all the
documentation that came with each of those packages with no luck.  

Everything seems to compile ok, creating *.o files but when the final link
process begins to create the mod_jk.so the build fails.  Below is a snip of
the link and subsequent error messages.

Any assistance or suggestions would be greatly appreciated!

Thank you!
-Mark-


ld -H512 -T512 -bhalt:4 -bM:SRE -bnoentry
-bI:/usr/local/apache/libexec/httpd.exp -lc -o  mod_jk.so jk_worker.o
jk_util.o jk_uri_worker_map.o jk_sockbuf.o jk_pool.o jk_nwmain.o
jk_msg_buff.o jk_map.o jk_lb_worker.o jk_jni_worker.o jk_connect.o
jk_ajp13_worker.o jk_ajp13.o jk_ajp12_worker.o mod_jk.o

ld: 0711-244 ERROR: No csects or exported symbols have been saved.

apxs:Break: Command failed with rc=8