Accessing Tomcat 4 from Apache 2 with mod_jk2

2004-06-09 Thread Sven Bovin
Hi

First of all: sory for the rather lengthy post, but I think
it is better to provide all info that I think is relevant
at once.

Now for my problem: I'm installing a Web server machine
and I've encountered a rather weird problem: I can access
the standard Tomcat examples through Apache (using
mod_jk2), but when I try to access my own web app, it
fails (No Context configured to process this request) when
passing through Apache. If I access it directly (using a
temporary HttpConnector I defined in the server.xml), all
is fine (that is to say: I can access my JSP pages).

I thing I've got an error in my mod_jk2 config. I've tried
Googeling and searching the Tomcat docs and the archives of
this list, but after trying several hints I've found on the
Net, I still can't access my web app :(

The details:

Hardware/Software versions
==

- Sun Solaris 5.9 on SPARC (64 bit)
- J2SDK 1.4.1 (pre-installed on the machine)
- Custom compiled Apache 2.0.49 (using GCC 3.3.2)
- GCC 3.3.2
- Custom compiled OpenSSL 0.9.7d (with GCC 3.3.2)
- Tomcat 4.1.30 (binary release)
- Custom compiled mod_jk2 2.0.4 (with GCC 3.3.2)
All custom compiled software *is* 64-bit

Installation and configuration
==

I've installed Tomcat 4 and Apache 2. I then compiled
mod_jk2 and OpenSSL 0.9.7d created self-signed SSL
certificates for Apache.

I defined an Alias to the Tomcat example directory in my
Apache httpd.conf configuration file and I load mod_jk2:

  - 8 - httpd.conf fragment - 8 -
  Alias /examples /path/to/tomcat/webapps/examples
  Directory /path/to/tomcat/webapps/examples
Options Indexes Multiviews
AllowOverride None
Order allow,deny
Allow from all
  /Directory
  Location /examples/WEB-INF/
AllowOverride None
Deny from all
  /Location

  IfModule !mod_jk2.c
LoadModule jk2_module mod_jk2.so
  /IfModule
  - 8 - httpd.conf fragment - 8 -

and I created a workers2.properties:

  - 8 - workers2.properties - 8 -
  [channel.socket:localhost:8009]
  debug=0
  port=8009
  host=127.0.0.1
  tomcatId=localhost:8009

  [ajp13:localhost:8009]
  channel=channel.socket:localhost:8009

  [uri:/examples/*.jsp]
  worker=ajp13:localhost:8009
  - 8 - workers2.properties - 8 -

I started up Apache and Tomcat (the latter using
/path/to/tomcat/bin/startup.sh). In the browser, I now
have access to https://xxx.xxx.xxx.xxx/examples/ and
everything works fine.

I've then installed my web app under a separate directory
/path/to/application. The web app uses a separate Tomcat
instance and is started with a script like:

  - 8 - Tomcat instance startup script - 8 -
  export CATALINA_HOME=/path/to/tomcat
  export CATALINA_BASE=/path/to/application
  export JAVA_HOME=/usr/j2se
  export PATH=${PATH}:${JAVA_HOME}/bin/sparcv9
  export CLASSPATH=${CATALINA_BASE/webapps/name/jsp/WEB-INF/classes

  case $1 in
start | reload) $CATALINA_HOME/bin/startup.sh ;;
stop)   $CATALINA_HOME/bin/shutdown.sh ;;
  esac
  - 8 - Tomcat instance startup script - 8 -

The current server.xml defines two Connectors: an HttpConnector
for direct acces on port 8180, and the JK2 connector, using port
8109:

  - 8 - server.xml fragment - 8 -
  !-- mod_jk2 on port 8109 --
  Connector className=org.apache.coyote.tomcat4.CoyoteConnector
port=8109 minProcessors=5 maxProcessors=75
acceptCount=10 debug=0
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/

  !-- Define an HttpConnector on port 8180 --
  Connector className=org.apache.catalina.connector.http.HttpConnector
port=8180 minProcessors=5 maxProcessors=75
enableLookups=true redirectPort=8443
acceptCount=10 debug=0 connectionTimeout=6/
  - 8 - server.xml fragment - 8 -

And the context definition is

  - 8 - server.xml fragment - 8 -
  Context path=/B2C docBase=name/jsp debug=0
reloadable=false crossContext=true
  /Context
  - 8 - server.xml fragment - 8 -

I've defined the following Alias for Apache:

  - 8 - httpd.conf fragment - 8 -
  Alias /B2C /path/to/application/webapps/name/jsp
  Directory /path/to/application/webapps/name/jsp
Options -Indexes
  /Directory
  Location /B2C/WEB-INF/
AllowOverride None
Deny from all
  /Location
  - 8 - httpd.conf fragment - 8 -

and I've added the following lines to the workers2.properties:

  - 8 - workers2.properties fragment - 8 -
  [channel.socket:localhost:8109]
  debug=0
  port=8109
  host=127.0.0.1
  tomcatId=localhost:8109

  [ajp13:localhost:8109]
  channel=channel.socket:localhost:8109

  [uri:/B2C/*.jsp]
  worker=ajp13:localhost:8109
  - 8 - workers2.properties fragment - 8 -

The /path/to/application/conf/jk2.properties file specifies

  - 8 - jk2.properties - 8 -
  channelSocket.port=8109
  - 8 - jk2

Internal server error only on first run tomcat 4.x + apache 2.0x + modjk2 + winxp

2003-03-29 Thread Henry Tang
Hi, I am getting this error below only on the first service for apache.
After this error, all other pages served will be fine.  Error is produced
after the server hangs for a while around 2 minutes.  Anyone experiencing
the same problem?

thanks
henry

Internal Server Error
The server encountered an internal error or misconfiguration and was unable
to complete your request.
Please contact the server administrator, [EMAIL PROTECTED] and inform
them of the time the error occurred, and anything you might have done that
may have caused the error.
More information about this error may be available in the server error log.



Apache/2.0.44 (Win32) mod_jk2/2.0.0 Server at localhost Port 80


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



Re: [O.T.] Installing struts under tomcat 4 and apache 2

2003-02-23 Thread Bill Barker
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk.html#Using%20Apach
eConfig


Dani [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hello. I'm trying to install struts 1.0.2 under red hat 7.2, with tomcat
 4.1.18 and apache 2.0.44. I've read the documentation here
 http://jakarta.apache.org/struts/userGuide/installation-tc.html
 but it refers to tomcat 3.2, not tomcat 4.0. It says Note that the
 instructions for Tomcat 4 will be different than those for Tomcat 3, but
the
 Tomcat 4.0 web connector is still under development. Versions of Tomcat
 prior to 3.2.1 are not recommend for use with Struts.

 ¿What about tomcat 4?

 The documentation talk about a file: Tomcat will generate a file
 $TOMCAT_HOME/conf/tomcat-apache.conf that will be used by Apache. This
 file is regenerated every time you start Tomcat, so copy this file to a
safe
 place (such as your Apache configuration directory; on Unix systems this
is
 usually /usr/local/apache/conf. . But I can't find this file (or it
doesn't
 exist).

 ¿Which file must I configure?

 Thank you very much.




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



[O.T.] Installing struts under tomcat 4 and apache 2

2003-02-22 Thread Dani
Hello. I'm trying to install struts 1.0.2 under red hat 7.2, with tomcat
4.1.18 and apache 2.0.44. I've read the documentation here
http://jakarta.apache.org/struts/userGuide/installation-tc.html
but it refers to tomcat 3.2, not tomcat 4.0. It says Note that the
instructions for Tomcat 4 will be different than those for Tomcat 3, but the
Tomcat 4.0 web connector is still under development. Versions of Tomcat
prior to 3.2.1 are not recommend for use with Struts.

¿What about tomcat 4?

The documentation talk about a file: Tomcat will generate a file
$TOMCAT_HOME/conf/tomcat-apache.conf that will be used by Apache. This
file is regenerated every time you start Tomcat, so copy this file to a safe
place (such as your Apache configuration directory; on Unix systems this is
usually /usr/local/apache/conf. . But I can't find this file (or it doesn't
exist).

¿Which file must I configure?

Thank you very much.





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



RE: HELP PLEASE ON TOMCAT 4.x + APACHE 2.0.43 + mod_jk2-2.0.43.dll

2003-01-06 Thread Krishna_R . _Nagaraj


config_files.doc
Description: MS-Word document
--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


HELP PLEASE ON TOMCAT 4.x + APACHE 2.0.43 + mod_jk2-2.0.43.dll

2003-01-03 Thread Krishna_R . _Nagaraj




All,

Can any one help me by providing a step by step procedure to configure
Apache 2.0.43 with Tomcat 4.0.18 using jk2. I have used jk previously but I
have problems in configuring jk2. How do I modify my files to make it work
with jk2. Thanks a lot for the help

I have the these entries for jk in httpd.conf

LoadModule jk2_module modules/mod_jk2-2.0.43.dll

JkWorkersFile c:\tomcat\Tomcat-4-1-18\conf\jk\workers.properties
JkLogFile c:\tomcat\Tomcat-4-1-18\logs\mod_jk.log
Include c:/tomcat/tomcat-4-1-18/conf/auto/mod_jk.conf

I have the these entries for jk in server.xml

Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
modJk=c:/apache/Apache2/modules/mod_jk-2.0.43.dll /


Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
append=true forwardAll=false
modJk=c:/apache/Apache2/modules/mod_jk-2.0.43.dll /



I have the these entries for jk in workers.properties

# BEGIN workers.properties
# Definition for Ajp13 worker
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
# END workers.properties


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




RE: HELP PLEASE ON TOMCAT 4.x + APACHE 2.0.43 + mod_jk2-2.0.43.dll

2003-01-03 Thread Turner, John

Those files have nothing to do with JK2.  All of those files and settings
are for JK.  JK and JK2 are completely separate, and have different setup
requirements on the Apache side.

The Listener tags you listed in server.xml will only generate JK
configuration information, they serve no purpose if you are using JK2 and
can be deleted.

Files like workers.properties, commands like JkMount, etc. in httpd.conf are
JK-only and do nothing for JK2.

For more info consult the JK/JK2 documentation at:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html (look for the
section in the menu that says JK2).

John


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 03, 2003 12:12 PM
 To: [EMAIL PROTECTED]
 Subject: HELP PLEASE ON TOMCAT 4.x + APACHE 2.0.43 + 
 mod_jk2-2.0.43.dll
 
 
 
 
 
 
 All,
 
 Can any one help me by providing a step by step procedure to configure
 Apache 2.0.43 with Tomcat 4.0.18 using jk2. I have used jk 
 previously but I
 have problems in configuring jk2. How do I modify my files to 
 make it work
 with jk2. Thanks a lot for the help
 
 I have the these entries for jk in httpd.conf
 
 LoadModule jk2_module modules/mod_jk2-2.0.43.dll
 
 JkWorkersFile c:\tomcat\Tomcat-4-1-18\conf\jk\workers.properties
 JkLogFile c:\tomcat\Tomcat-4-1-18\logs\mod_jk.log
 Include c:/tomcat/tomcat-4-1-18/conf/auto/mod_jk.conf
 
 I have the these entries for jk in server.xml
 
 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
 modJk=c:/apache/Apache2/modules/mod_jk-2.0.43.dll /
 
 
 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
 append=true forwardAll=false
 modJk=c:/apache/Apache2/modules/mod_jk-2.0.43.dll /
 
 
 
 I have the these entries for jk in workers.properties
 
 # BEGIN workers.properties
 # Definition for Ajp13 worker
 worker.list=ajp13
 worker.ajp13.port=8009
 worker.ajp13.host=localhost
 worker.ajp13.type=ajp13
 # END workers.properties
 
 
 --
 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]




RES: mod_webapp: How to make it work with tomcat 4 and Apache 2.0.40 ?

2002-11-14 Thread Felipe Moreno - Realweb Soluções
Hi john!

Thank you for the tip! (the google tip too heheheh)! It solved the problem!
Now i'm connected with tomcat from apache!
I used av.com so that's the reason I didn't find anything!!!

Best Regards,

Felipe Moreno
Diretor

--
Realweb Soluções Ltda.
Av. Ayrton Senna 2150 Bloco H  Sala-226
Pabx.: 21 2431 4884
http://www.realweb.com.br
--




-Mensagem original-
De: Turner, John [mailto:JTurner;AAS.com]
Enviada em: quarta-feira, 13 de novembro de 2002 18:53
Para: 'Tomcat Users List'
Assunto: RE: mod_webapp: How to make it work with tomcat 4 and Apache
2.0.40 ?



http://www.pubbitch.org/jboss.html , Step 4.  Google is your friend.

Apparently mod_webapp can't deal with its own port numbers if there is no
Port specified for Apache.

So, change httpd.conf to look like this:

ServerName localhost:80

instead of

ServerName localhost

John


 -Original Message-
 From: Felipe Moreno - Realweb Soluções [mailto:fmoreno;realweb.com.br]
 Sent: Wednesday, November 13, 2002 3:43 PM
 To: Tomcat Users List
 Subject: RES: mod_webapp: How to make it work with tomcat 4 and Apache
 2.0.40 ?
 Importance: High


 Hi john,

First of all thank you for your answer.
The line that apache is complaining is marked below:

 WebAppConnection ceplacom-conn warp localhost:8008
 WebAppDeploy ceplacom-sos ceplacom-conn /   --- THIS LINE
 WebAppDeploy ceplacom-webapp ceplacom-conn /_webapp ---
 AND THIS LINE

 Any advice?

 Regards


 Felipe Moreno
 Diretor

 --
 Realweb Soluções Ltda.
 Av. Ayrton Senna 2150 Bloco H  Sala-226
 Pabx.: 21 2431 4884
 http://www.realweb.com.br
 --




 -Mensagem original-
 De: Turner, John [mailto:JTurner;AAS.com]
 Enviada em: quarta-feira, 13 de novembro de 2002 17:50
 Para: 'Tomcat Users List'
 Assunto: RE: mod_webapp: How to make it work with tomcat 4 and Apache
 2.0.40 ?



 First, vi httpd.conf.  Second, go to line 67, the line cited
 in the error
 message.  Third, determine what typo or other character is on
 that line.
 Looks like Apache is complaining that something is screwed up with the
 Apache Port directive, which has nothing to do with mod_webapp.

 You might want to consider using JK or JK2...WARP/webapp is no longer
 actively developed.

 John


  -Original Message-
  From: Felipe Moreno - Realweb Soluções
 [mailto:fmoreno;realweb.com.br]
  Sent: Wednesday, November 13, 2002 2:30 PM
  To: Tomcat Users List
  Subject: mod_webapp: How to make it work with tomcat 4 and
  Apache 2.0.40
  ?
  Importance: High
 
 
  Hi List Members!
 
I'm having some headache here installing and configuring
 webapp for
  Apache.
If anyone could help me I will thank a lot!
 
  This is the scene:
  --
  - Linux 7
  - Apache 2.040
  - Tomcat 4 (last version)
 
 I have several virtualhosts installed in my apache
  already configured
  to un php, perl, ssi and manu others.
 I already installed Tomcat 4 first and it worked fine like
  standalone.
  So I was able to access it using the www.name.com.br:8080
  (default por). My
  apache is running very fine with about 30 virtual hosts
  configured each one
  to have his own permissions and directories. Now, I want to
  run Apache like
  de main server and use tomcat only to proccess jsp and
  servlets things. I
  found in connectors a good way to do it. So, I started to
  read about it and
  started to try to install the mod_jk2 connector that use
  AJP1.2/AJP1.3. I
  couldn't do it cause I didn't find the right files and in the
  middle of the
  proccess I read that mod_webapp is much easier to install
  than jk2. So, I
  started to install mod_webapp for Apache.
 I got the source package from jakarta.apache.org an read
  about the
  installation. I found that I needed APR to use web_app and
  some JARS files
  compiled with ANT. I unzip (untared) the tar file and
  executed the command
  ./configure and after the command make. I executed after the command
  ./support/buildconf.sh  in the directory of APR (source
 files). So, I
  executed the command ./configure --with-apxs and It generated the
  mod_webapp.so. I put it in the modules directory of Httpd (Apache
  webserver).
 After this, I inserted the line LoadModule webapp_module
  modules/mod_webapp.so in the httpd.conf (addModule isn't
  necessary according
  to the Apache 2 documentation) and inserted the three lines
  below in each of
  the Virtualhosts in the VH file:
 
  WebAppConnection ceplacom-conn warp localhost:8008
  WebAppDeploy ceplacom-sos ceplacom-conn /
  WebAppDeploy ceplacom-webapp ceplacom-conn /_webapp
 
 So, now I will show how my server.xml is configured in
  Tomcat dir:
 
  Server.xml
  --
  ?xml version='1.0' encoding='utf-8'?
 
  Server port=8005 shutdown=SHUTDOWN debug=5

mod_webapp: How to make it work with tomcat 4 and Apache 2.0.40 ?

2002-11-13 Thread Felipe Moreno - Realweb Soluções
Hi List Members!

  I'm having some headache here installing and configuring webapp for
Apache.
  If anyone could help me I will thank a lot!

This is the scene:
--
- Linux 7
- Apache 2.040
- Tomcat 4 (last version)

   I have several virtualhosts installed in my apache already configured
to un php, perl, ssi and manu others.
   I already installed Tomcat 4 first and it worked fine like standalone.
So I was able to access it using the www.name.com.br:8080 (default por). My
apache is running very fine with about 30 virtual hosts configured each one
to have his own permissions and directories. Now, I want to run Apache like
de main server and use tomcat only to proccess jsp and servlets things. I
found in connectors a good way to do it. So, I started to read about it and
started to try to install the mod_jk2 connector that use AJP1.2/AJP1.3. I
couldn't do it cause I didn't find the right files and in the middle of the
proccess I read that mod_webapp is much easier to install than jk2. So, I
started to install mod_webapp for Apache.
   I got the source package from jakarta.apache.org an read about the
installation. I found that I needed APR to use web_app and some JARS files
compiled with ANT. I unzip (untared) the tar file and executed the command
./configure and after the command make. I executed after the command
./support/buildconf.sh  in the directory of APR (source files). So, I
executed the command ./configure --with-apxs and It generated the
mod_webapp.so. I put it in the modules directory of Httpd (Apache
webserver).
   After this, I inserted the line LoadModule webapp_module
modules/mod_webapp.so in the httpd.conf (addModule isn't necessary according
to the Apache 2 documentation) and inserted the three lines below in each of
the Virtualhosts in the VH file:

WebAppConnection ceplacom-conn warp localhost:8008
WebAppDeploy ceplacom-sos ceplacom-conn /
WebAppDeploy ceplacom-webapp ceplacom-conn /_webapp

   So, now I will show how my server.xml is configured in Tomcat dir:

Server.xml
--
?xml version='1.0' encoding='utf-8'?

Server port=8005 shutdown=SHUTDOWN debug=5

  Service name=Tomcat-Apache

Connector className=org.apache.ajp.tomcat4.Ajp13Connector
 port=8009 minProcessors=1 maxProcessors=5/

Connector className=org.apache.catalina.connector.warp.WarpConnector
 port=8008 minProcessors=1 maxProcessors=5
 enableLookups=false appBase=webapps
 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 /

  Host name=ceplacom.com.br
   Alias name=www.ceplacom.com.br/
   Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
append=true /

   Context path=/ docBase=/path/to/virtualhost
   Context path=/_webapp
debug=0
privileged=true
docBase=/path/to/manager
   /Context
  /Host

/Engine


  /Service
/Server


The Problem:


   When I have this configuration above, I try to run the Apache webserver
(httpd) and get the below error message:

Failed to start apache :
Starting httpd: Syntax error on line 67 of /etc/httpd/conf.d/virtual.conf:
Invalid port number (p1) No Port statement found
[FAILED]

Anyone know what could be wrong? or missing?
Any step by step to install webapp???

Thanks in advance for any help!

Best Regards!


Felipe Moreno




-Mensagem original-
De: Turner, John [mailto:JTurner;AAS.com]
Enviada em: quarta-feira, 13 de novembro de 2002 16:47
Para: 'Tomcat Users List'
Assunto: RE: WARP or Jk2 (Coyote)? Or something else?



 -Original Message-
 From: Lee Grey [mailto:leegrey;mindspring.com]
 Sent: Wednesday, November 13, 2002 1:41 PM
 To: Tomcat Users List
 Subject: RE: WARP or Jk2 (Coyote)? Or something else?



...snip...

 I have a second Linux box that has Tomcat 4.1.12 on it.  I'd
 like to use JK2
 to connect this box to the existing Apache server running on the first
 machine.  Is this possible?  First of all, can I use JK2 with
 Apache 1.3.22?
 Second, can Apache utilize both WARP and JK2 in the same instance?

As far as I know, yes, yes, and yes.  The Apache directives for both are
completely different, I see no reason why Apache would get confused between
them, but then again I haven't seen anyone use that configuration.

 As an alternative, I was thinking about installing Apache 2
 on this second
 Linux box and making it the primary web server, once it's all up and
 running.  Would that be preferable to using Apache 1.3?

In my opinion, for long term stability, moving to Apache 2 ASAP is the way
to go.  The 1.3 tree is dead except for serious bugs and security fixes, as
far as I know.  By moving to Apache 2 (and JK2) you open

RE: mod_webapp: How to make it work with tomcat 4 and Apache 2.0.40 ?

2002-11-13 Thread Turner, John

First, vi httpd.conf.  Second, go to line 67, the line cited in the error
message.  Third, determine what typo or other character is on that line.
Looks like Apache is complaining that something is screwed up with the
Apache Port directive, which has nothing to do with mod_webapp.

You might want to consider using JK or JK2...WARP/webapp is no longer
actively developed.

John


 -Original Message-
 From: Felipe Moreno - Realweb Soluções [mailto:fmoreno;realweb.com.br]
 Sent: Wednesday, November 13, 2002 2:30 PM
 To: Tomcat Users List
 Subject: mod_webapp: How to make it work with tomcat 4 and 
 Apache 2.0.40
 ?
 Importance: High
 
 
 Hi List Members!
 
   I'm having some headache here installing and configuring webapp for
 Apache.
   If anyone could help me I will thank a lot!
 
 This is the scene:
 --
 - Linux 7
 - Apache 2.040
 - Tomcat 4 (last version)
 
I have several virtualhosts installed in my apache 
 already configured
 to un php, perl, ssi and manu others.
I already installed Tomcat 4 first and it worked fine like 
 standalone.
 So I was able to access it using the www.name.com.br:8080 
 (default por). My
 apache is running very fine with about 30 virtual hosts 
 configured each one
 to have his own permissions and directories. Now, I want to 
 run Apache like
 de main server and use tomcat only to proccess jsp and 
 servlets things. I
 found in connectors a good way to do it. So, I started to 
 read about it and
 started to try to install the mod_jk2 connector that use 
 AJP1.2/AJP1.3. I
 couldn't do it cause I didn't find the right files and in the 
 middle of the
 proccess I read that mod_webapp is much easier to install 
 than jk2. So, I
 started to install mod_webapp for Apache.
I got the source package from jakarta.apache.org an read 
 about the
 installation. I found that I needed APR to use web_app and 
 some JARS files
 compiled with ANT. I unzip (untared) the tar file and 
 executed the command
 ./configure and after the command make. I executed after the command
 ./support/buildconf.sh  in the directory of APR (source files). So, I
 executed the command ./configure --with-apxs and It generated the
 mod_webapp.so. I put it in the modules directory of Httpd (Apache
 webserver).
After this, I inserted the line LoadModule webapp_module
 modules/mod_webapp.so in the httpd.conf (addModule isn't 
 necessary according
 to the Apache 2 documentation) and inserted the three lines 
 below in each of
 the Virtualhosts in the VH file:
 
 WebAppConnection ceplacom-conn warp localhost:8008
 WebAppDeploy ceplacom-sos ceplacom-conn /
 WebAppDeploy ceplacom-webapp ceplacom-conn /_webapp
 
So, now I will show how my server.xml is configured in 
 Tomcat dir:
 
 Server.xml
 --
 ?xml version='1.0' encoding='utf-8'?
 
 Server port=8005 shutdown=SHUTDOWN debug=5
 
   Service name=Tomcat-Apache
 
 Connector className=org.apache.ajp.tomcat4.Ajp13Connector
  port=8009 minProcessors=1 maxProcessors=5/
 
 Connector 
 className=org.apache.catalina.connector.warp.WarpConnector
  port=8008 minProcessors=1 maxProcessors=5
  enableLookups=false appBase=webapps
  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 /
 
   Host name=ceplacom.com.br
Alias name=www.ceplacom.com.br/
Listener 
 className=org.apache.ajp.tomcat4.config.ApacheConfig
 append=true /
 
Context path=/ docBase=/path/to/virtualhost
Context path=/_webapp
 debug=0
 privileged=true
 docBase=/path/to/manager
/Context
   /Host
 
 /Engine
 
 
   /Service
 /Server
 
 
   The Problem:
   
 
When I have this configuration above, I try to run the 
 Apache webserver
 (httpd) and get the below error message:
 
 Failed to start apache :
 Starting httpd: Syntax error on line 67 of 
 /etc/httpd/conf.d/virtual.conf:
 Invalid port number (p1) No Port statement found
 [FAILED]
 
 Anyone know what could be wrong? or missing?
 Any step by step to install webapp???
 
 Thanks in advance for any help!
 
 Best Regards!
 
 
 Felipe Moreno
 
 
 
 
 -Mensagem original-
 De: Turner, John [mailto:JTurner;AAS.com]
 Enviada em: quarta-feira, 13 de novembro de 2002 16:47
 Para: 'Tomcat Users List'
 Assunto: RE: WARP or Jk2 (Coyote)? Or something else?
 
 
 
  -Original Message-
  From: Lee Grey [mailto:leegrey;mindspring.com]
  Sent: Wednesday, November 13, 2002 1:41 PM
  To: Tomcat Users List
  Subject: RE: WARP or Jk2 (Coyote)? Or something else?
 
 
 
 ...snip...
 
  I have a second Linux box that has Tomcat 4.1.12 on it.  I'd
  like to use JK2
  to connect this box to the existing

RES: mod_webapp: How to make it work with tomcat 4 and Apache 2.0.40 ?

2002-11-13 Thread Felipe Moreno - Realweb Soluções
Hi john,

   First of all thank you for your answer.
   The line that apache is complaining is marked below:

WebAppConnection ceplacom-conn warp localhost:8008
WebAppDeploy ceplacom-sos ceplacom-conn / --- THIS LINE
WebAppDeploy ceplacom-webapp ceplacom-conn /_webapp --- AND THIS LINE

Any advice?

Regards


Felipe Moreno
Diretor

--
Realweb Soluções Ltda.
Av. Ayrton Senna 2150 Bloco H  Sala-226
Pabx.: 21 2431 4884
http://www.realweb.com.br
--




-Mensagem original-
De: Turner, John [mailto:JTurner;AAS.com]
Enviada em: quarta-feira, 13 de novembro de 2002 17:50
Para: 'Tomcat Users List'
Assunto: RE: mod_webapp: How to make it work with tomcat 4 and Apache
2.0.40 ?



First, vi httpd.conf.  Second, go to line 67, the line cited in the error
message.  Third, determine what typo or other character is on that line.
Looks like Apache is complaining that something is screwed up with the
Apache Port directive, which has nothing to do with mod_webapp.

You might want to consider using JK or JK2...WARP/webapp is no longer
actively developed.

John


 -Original Message-
 From: Felipe Moreno - Realweb Soluções [mailto:fmoreno;realweb.com.br]
 Sent: Wednesday, November 13, 2002 2:30 PM
 To: Tomcat Users List
 Subject: mod_webapp: How to make it work with tomcat 4 and
 Apache 2.0.40
 ?
 Importance: High


 Hi List Members!

   I'm having some headache here installing and configuring webapp for
 Apache.
   If anyone could help me I will thank a lot!

 This is the scene:
 --
 - Linux 7
 - Apache 2.040
 - Tomcat 4 (last version)

I have several virtualhosts installed in my apache
 already configured
 to un php, perl, ssi and manu others.
I already installed Tomcat 4 first and it worked fine like
 standalone.
 So I was able to access it using the www.name.com.br:8080
 (default por). My
 apache is running very fine with about 30 virtual hosts
 configured each one
 to have his own permissions and directories. Now, I want to
 run Apache like
 de main server and use tomcat only to proccess jsp and
 servlets things. I
 found in connectors a good way to do it. So, I started to
 read about it and
 started to try to install the mod_jk2 connector that use
 AJP1.2/AJP1.3. I
 couldn't do it cause I didn't find the right files and in the
 middle of the
 proccess I read that mod_webapp is much easier to install
 than jk2. So, I
 started to install mod_webapp for Apache.
I got the source package from jakarta.apache.org an read
 about the
 installation. I found that I needed APR to use web_app and
 some JARS files
 compiled with ANT. I unzip (untared) the tar file and
 executed the command
 ./configure and after the command make. I executed after the command
 ./support/buildconf.sh  in the directory of APR (source files). So, I
 executed the command ./configure --with-apxs and It generated the
 mod_webapp.so. I put it in the modules directory of Httpd (Apache
 webserver).
After this, I inserted the line LoadModule webapp_module
 modules/mod_webapp.so in the httpd.conf (addModule isn't
 necessary according
 to the Apache 2 documentation) and inserted the three lines
 below in each of
 the Virtualhosts in the VH file:

 WebAppConnection ceplacom-conn warp localhost:8008
 WebAppDeploy ceplacom-sos ceplacom-conn /
 WebAppDeploy ceplacom-webapp ceplacom-conn /_webapp

So, now I will show how my server.xml is configured in
 Tomcat dir:

 Server.xml
 --
 ?xml version='1.0' encoding='utf-8'?

 Server port=8005 shutdown=SHUTDOWN debug=5

   Service name=Tomcat-Apache

 Connector className=org.apache.ajp.tomcat4.Ajp13Connector
  port=8009 minProcessors=1 maxProcessors=5/

 Connector
 className=org.apache.catalina.connector.warp.WarpConnector
  port=8008 minProcessors=1 maxProcessors=5
  enableLookups=false appBase=webapps
  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 /

   Host name=ceplacom.com.br
Alias name=www.ceplacom.com.br/
Listener
 className=org.apache.ajp.tomcat4.config.ApacheConfig
 append=true /

Context path=/ docBase=/path/to/virtualhost
Context path=/_webapp
 debug=0
 privileged=true
 docBase=/path/to/manager
/Context
   /Host

 /Engine


   /Service
 /Server


   The Problem:
   

When I have this configuration above, I try to run the
 Apache webserver
 (httpd) and get the below error message:

 Failed to start apache :
 Starting httpd: Syntax error on line 67 of
 /etc/httpd/conf.d/virtual.conf:
 Invalid port

RE: mod_webapp: How to make it work with tomcat 4 and Apache 2.0.40 ?

2002-11-13 Thread Turner, John

http://www.pubbitch.org/jboss.html , Step 4.  Google is your friend.

Apparently mod_webapp can't deal with its own port numbers if there is no
Port specified for Apache.

So, change httpd.conf to look like this:

ServerName localhost:80

instead of

ServerName localhost

John


 -Original Message-
 From: Felipe Moreno - Realweb Soluções [mailto:fmoreno;realweb.com.br]
 Sent: Wednesday, November 13, 2002 3:43 PM
 To: Tomcat Users List
 Subject: RES: mod_webapp: How to make it work with tomcat 4 and Apache
 2.0.40 ?
 Importance: High
 
 
 Hi john,
 
First of all thank you for your answer.
The line that apache is complaining is marked below:
 
 WebAppConnection ceplacom-conn warp localhost:8008
 WebAppDeploy ceplacom-sos ceplacom-conn /   --- THIS LINE
 WebAppDeploy ceplacom-webapp ceplacom-conn /_webapp --- 
 AND THIS LINE
 
 Any advice?
 
 Regards
 
 
 Felipe Moreno
 Diretor
 
 --
 Realweb Soluções Ltda.
 Av. Ayrton Senna 2150 Bloco H  Sala-226
 Pabx.: 21 2431 4884
 http://www.realweb.com.br
 --
 
 
 
 
 -Mensagem original-
 De: Turner, John [mailto:JTurner;AAS.com]
 Enviada em: quarta-feira, 13 de novembro de 2002 17:50
 Para: 'Tomcat Users List'
 Assunto: RE: mod_webapp: How to make it work with tomcat 4 and Apache
 2.0.40 ?
 
 
 
 First, vi httpd.conf.  Second, go to line 67, the line cited 
 in the error
 message.  Third, determine what typo or other character is on 
 that line.
 Looks like Apache is complaining that something is screwed up with the
 Apache Port directive, which has nothing to do with mod_webapp.
 
 You might want to consider using JK or JK2...WARP/webapp is no longer
 actively developed.
 
 John
 
 
  -Original Message-
  From: Felipe Moreno - Realweb Soluções 
 [mailto:fmoreno;realweb.com.br]
  Sent: Wednesday, November 13, 2002 2:30 PM
  To: Tomcat Users List
  Subject: mod_webapp: How to make it work with tomcat 4 and
  Apache 2.0.40
  ?
  Importance: High
 
 
  Hi List Members!
 
I'm having some headache here installing and configuring 
 webapp for
  Apache.
If anyone could help me I will thank a lot!
 
  This is the scene:
  --
  - Linux 7
  - Apache 2.040
  - Tomcat 4 (last version)
 
 I have several virtualhosts installed in my apache
  already configured
  to un php, perl, ssi and manu others.
 I already installed Tomcat 4 first and it worked fine like
  standalone.
  So I was able to access it using the www.name.com.br:8080
  (default por). My
  apache is running very fine with about 30 virtual hosts
  configured each one
  to have his own permissions and directories. Now, I want to
  run Apache like
  de main server and use tomcat only to proccess jsp and
  servlets things. I
  found in connectors a good way to do it. So, I started to
  read about it and
  started to try to install the mod_jk2 connector that use
  AJP1.2/AJP1.3. I
  couldn't do it cause I didn't find the right files and in the
  middle of the
  proccess I read that mod_webapp is much easier to install
  than jk2. So, I
  started to install mod_webapp for Apache.
 I got the source package from jakarta.apache.org an read
  about the
  installation. I found that I needed APR to use web_app and
  some JARS files
  compiled with ANT. I unzip (untared) the tar file and
  executed the command
  ./configure and after the command make. I executed after the command
  ./support/buildconf.sh  in the directory of APR (source 
 files). So, I
  executed the command ./configure --with-apxs and It generated the
  mod_webapp.so. I put it in the modules directory of Httpd (Apache
  webserver).
 After this, I inserted the line LoadModule webapp_module
  modules/mod_webapp.so in the httpd.conf (addModule isn't
  necessary according
  to the Apache 2 documentation) and inserted the three lines
  below in each of
  the Virtualhosts in the VH file:
 
  WebAppConnection ceplacom-conn warp localhost:8008
  WebAppDeploy ceplacom-sos ceplacom-conn /
  WebAppDeploy ceplacom-webapp ceplacom-conn /_webapp
 
 So, now I will show how my server.xml is configured in
  Tomcat dir:
 
  Server.xml
  --
  ?xml version='1.0' encoding='utf-8'?
 
  Server port=8005 shutdown=SHUTDOWN debug=5
 
Service name=Tomcat-Apache
 
  Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8009 minProcessors=1 maxProcessors=5/
 
  Connector
  className=org.apache.catalina.connector.warp.WarpConnector
   port=8008 minProcessors=1 maxProcessors=5
   enableLookups=false appBase=webapps
   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

Mod_JK, Tomcat 4, and Apache 1.3.27

2002-10-23 Thread Curt LeCaptain
I followed John Turner's instructions according to his how-to on his page,
and set up my Tomcat/Apache setup according to that.

CATALINA_HOME=/usr/local/tomcat (soft link)
JAVA_HOME=/usr/local/jdk1.3.1_05

I can start Tomcat, unfortunately, I can't get Apache started now, after
putting an Include statement into my httpd.conf to load the Mod_JK
directive.  If someone could maybe scour these and let me know what I'm
doing wrong?

Curt LeCaptain

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

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

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

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

  !-- 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 HTTP/1.1 Connector on port 8080 --
Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8080 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=6/
!-- Note : To disable connection timeouts, set connectionTimeout value 
 to -1 --

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

!-- Define an SSL HTTP/1.1 Connector on port 8443 --
!--
Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8443 minProcessors=5 maxProcessors=75
   enableLookups=true
	   acceptCount=10 debug=0 scheme=https secure=true
  Factory className=org.apache.catalina.net.SSLServerSocketFactory
   clientAuth=false protocol=TLS/
/Connector
--

!-- Define an AJP 1.3 Connector on port 8009 --
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8009 minProcessors=5 maxProcessors=75
   acceptCount=10 debug=0/

!-- Define a Proxied HTTP/1.1 Connector on port 8081 --
!-- See proxy documentation for more information about using this. --
!--
Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8082 minProcessors=5 maxProcessors=75
   enableLookups=true
   acceptCount=10 debug=0 connectionTimeout=6
   proxyPort=80/
--

!-- Define a non-SSL HTTP/1.0 Test Connector on port 8082 --
!--
Connector className=org.apache.catalina.connector.http10.HttpConnector
   port=8083 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0/
 

RE: Mod_JK, Tomcat 4, and Apache 1.3.27

2002-10-23 Thread Turner, John

It would be more helpful if you could tell us the output of

/some/path/to/apache/bin/apachectl configtest

John


 -Original Message-
 From: Curt LeCaptain [mailto:lecaptainc;itol.com]
 Sent: Wednesday, October 23, 2002 10:32 AM
 To: Tomcat Users List
 Subject: Mod_JK, Tomcat 4, and Apache 1.3.27
 
 
 I followed John Turner's instructions according to his how-to 
 on his page,
 and set up my Tomcat/Apache setup according to that.
 
 CATALINA_HOME=/usr/local/tomcat (soft link)
 JAVA_HOME=/usr/local/jdk1.3.1_05
 
 I can start Tomcat, unfortunately, I can't get Apache started 
 now, after
 putting an Include statement into my httpd.conf to load the Mod_JK
 directive.  If someone could maybe scour these and let me 
 know what I'm
 doing wrong?
 
 Curt LeCaptain
 

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




Re: Mod_JK, Tomcat 4, and Apache 1.3.27

2002-10-23 Thread Curt LeCaptain
Actually, I get a Syntax OK when I run a configtest.

Curt LeCaptain


- Original Message -
From: Turner, John [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, October 23, 2002 9:38 AM
Subject: RE: Mod_JK, Tomcat 4, and Apache 1.3.27



 It would be more helpful if you could tell us the output of

 /some/path/to/apache/bin/apachectl configtest

 John


  -Original Message-
  From: Curt LeCaptain [mailto:lecaptainc;itol.com]
  Sent: Wednesday, October 23, 2002 10:32 AM
  To: Tomcat Users List
  Subject: Mod_JK, Tomcat 4, and Apache 1.3.27
 
 
  I followed John Turner's instructions according to his how-to
  on his page,
  and set up my Tomcat/Apache setup according to that.
 
  CATALINA_HOME=/usr/local/tomcat (soft link)
  JAVA_HOME=/usr/local/jdk1.3.1_05
 
  I can start Tomcat, unfortunately, I can't get Apache started
  now, after
  putting an Include statement into my httpd.conf to load the Mod_JK
  directive.  If someone could maybe scour these and let me
  know what I'm
  doing wrong?
 
  Curt LeCaptain
 

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



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




RE: Mod_JK, Tomcat 4, and Apache 1.3.27

2002-10-23 Thread Turner, John

OK, then what happens when you start Apache?  What's in the log files?
Error messages?

John


 -Original Message-
 From: Curt LeCaptain [mailto:lecaptainc;itol.com]
 Sent: Wednesday, October 23, 2002 10:48 AM
 To: Tomcat Users List
 Subject: Re: Mod_JK, Tomcat 4, and Apache 1.3.27
 
 
 Actually, I get a Syntax OK when I run a configtest.
 
 Curt LeCaptain
 
 
 - Original Message -
 From: Turner, John [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Wednesday, October 23, 2002 9:38 AM
 Subject: RE: Mod_JK, Tomcat 4, and Apache 1.3.27
 
 
 
  It would be more helpful if you could tell us the output of
 
  /some/path/to/apache/bin/apachectl configtest
 
  John
 
 
   -Original Message-
   From: Curt LeCaptain [mailto:lecaptainc;itol.com]
   Sent: Wednesday, October 23, 2002 10:32 AM
   To: Tomcat Users List
   Subject: Mod_JK, Tomcat 4, and Apache 1.3.27
  
  
   I followed John Turner's instructions according to his how-to
   on his page,
   and set up my Tomcat/Apache setup according to that.
  
   CATALINA_HOME=/usr/local/tomcat (soft link)
   JAVA_HOME=/usr/local/jdk1.3.1_05
  
   I can start Tomcat, unfortunately, I can't get Apache started
   now, after
   putting an Include statement into my httpd.conf to load the Mod_JK
   directive.  If someone could maybe scour these and let me
   know what I'm
   doing wrong?
  
   Curt LeCaptain
  
 
  --
  To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
 
 
 
 --
 To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

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




Re: Mod_JK, Tomcat 4, and Apache 1.3.27

2002-10-23 Thread Curt LeCaptain
Apache Start:

/usr/local/apache/bin/apachectl start
HTTPD could not be started

Error_Log

[Mon Oct 21 13:06:23 2002] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Mon Oct 21 16:34:04 2002] [notice] SIGHUP received.  Attempting to restart
[Mon Oct 21 16:34:04 2002] [notice] Apache/1.3.27 (Unix) mod_jk/1.1.0
configured -- resuming normal operations
[Mon Oct 21 16:34:04 2002] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Mon Oct 21 16:34:08 2002] [notice] caught SIGTERM, shutting down
ations
[Mon Oct 21 16:34:24 2002] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Wed Oct 23 09:15:39 2002] [notice] caught SIGTERM, shutting down
[Wed Oct 23 09:16:00 2002] [emerg] Error while opening the workers
[Wed Oct 23 09:16:22 2002] [emerg] Error while opening the workers
[Wed Oct 23 09:27:31 2002] [emerg] Error while opening the workers
[Wed Oct 23 09:27:42 2002] [emerg] Error while opening the workers

Workers File attached.


- Original Message -
From: Turner, John [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, October 23, 2002 9:53 AM
Subject: RE: Mod_JK, Tomcat 4, and Apache 1.3.27



 OK, then what happens when you start Apache?  What's in the log files?
 Error messages?

 John


  -Original Message-
  From: Curt LeCaptain [mailto:lecaptainc;itol.com]
  Sent: Wednesday, October 23, 2002 10:48 AM
  To: Tomcat Users List
  Subject: Re: Mod_JK, Tomcat 4, and Apache 1.3.27
 
 
  Actually, I get a Syntax OK when I run a configtest.
 
  Curt LeCaptain
 
 
  - Original Message -
  From: Turner, John [EMAIL PROTECTED]
  To: 'Tomcat Users List' [EMAIL PROTECTED]
  Sent: Wednesday, October 23, 2002 9:38 AM
  Subject: RE: Mod_JK, Tomcat 4, and Apache 1.3.27
 
 
  
   It would be more helpful if you could tell us the output of
  
   /some/path/to/apache/bin/apachectl configtest
  
   John
  
  
-Original Message-
From: Curt LeCaptain [mailto:lecaptainc;itol.com]
Sent: Wednesday, October 23, 2002 10:32 AM
To: Tomcat Users List
Subject: Mod_JK, Tomcat 4, and Apache 1.3.27
   
   
I followed John Turner's instructions according to his how-to
on his page,
and set up my Tomcat/Apache setup according to that.
   
CATALINA_HOME=/usr/local/tomcat (soft link)
JAVA_HOME=/usr/local/jdk1.3.1_05
   
I can start Tomcat, unfortunately, I can't get Apache started
now, after
putting an Include statement into my httpd.conf to load the Mod_JK
directive.  If someone could maybe scour these and let me
know what I'm
doing wrong?
   
Curt LeCaptain
   
  
   --
   To unsubscribe, e-mail:
  mailto:tomcat-user-unsubscribe;jakarta.apache.org
   For additional commands, e-mail:
  mailto:tomcat-user-help;jakarta.apache.org
  
 
 
  --
  To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org

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




workers.properties
Description: Binary data
--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org


RE: Mod_JK, Tomcat 4, and Apache 1.3.27

2002-10-23 Thread Turner, John

Hmmm...doesn't look like the workers.properties file in my HOWTO. ;)

Is the workers.properties file reachable by Apache?  Path?  Permissions?

Where is the JkWorkersFile statement?  I don't see it in httpd.conf, and
without it, mod_jk won't know where to look.

This is all you need in workers.properties, I doubt it makes a difference,
but it might make it easier to debug with a shorter file.

# BEGIN workers.properties
# (optional) make this equal to CATALINA_HOME 
workers.tomcat_home=/usr/local/jakarta-tomcat-4.0.4
# (optional) make this equal to JAVA_HOME
workers.java_home=/usr/java/j2sdk1.4.0_01
#
ps=/
worker.list=ajp13
worker.ajp13.port=8009

# change this line to match apache ServerName and Host name in server.xml
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
# END workers.properties

John

 -Original Message-
 From: Curt LeCaptain [mailto:lecaptainc;itol.com]
 Sent: Wednesday, October 23, 2002 11:07 AM
 To: Tomcat Users List
 Subject: Re: Mod_JK, Tomcat 4, and Apache 1.3.27
 
 
 Apache Start:
 
 /usr/local/apache/bin/apachectl start
 HTTPD could not be started
 
 Error_Log
 
 [Mon Oct 21 13:06:23 2002] [notice] Accept mutex: sysvsem 
 (Default: sysvsem)
 [Mon Oct 21 16:34:04 2002] [notice] SIGHUP received.  
 Attempting to restart
 [Mon Oct 21 16:34:04 2002] [notice] Apache/1.3.27 (Unix) mod_jk/1.1.0
 configured -- resuming normal operations
 [Mon Oct 21 16:34:04 2002] [notice] Accept mutex: sysvsem 
 (Default: sysvsem)
 [Mon Oct 21 16:34:08 2002] [notice] caught SIGTERM, shutting down
 ations
 [Mon Oct 21 16:34:24 2002] [notice] Accept mutex: sysvsem 
 (Default: sysvsem)
 [Wed Oct 23 09:15:39 2002] [notice] caught SIGTERM, shutting down
 [Wed Oct 23 09:16:00 2002] [emerg] Error while opening the workers
 [Wed Oct 23 09:16:22 2002] [emerg] Error while opening the workers
 [Wed Oct 23 09:27:31 2002] [emerg] Error while opening the workers
 [Wed Oct 23 09:27:42 2002] [emerg] Error while opening the workers
 
 Workers File attached.
 
 
 - Original Message -
 From: Turner, John [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Wednesday, October 23, 2002 9:53 AM
 Subject: RE: Mod_JK, Tomcat 4, and Apache 1.3.27
 
 
 
  OK, then what happens when you start Apache?  What's in the 
 log files?
  Error messages?
 
  John
 
 
   -Original Message-
   From: Curt LeCaptain [mailto:lecaptainc;itol.com]
   Sent: Wednesday, October 23, 2002 10:48 AM
   To: Tomcat Users List
   Subject: Re: Mod_JK, Tomcat 4, and Apache 1.3.27
  
  
   Actually, I get a Syntax OK when I run a configtest.
  
   Curt LeCaptain
  
  
   - Original Message -
   From: Turner, John [EMAIL PROTECTED]
   To: 'Tomcat Users List' [EMAIL PROTECTED]
   Sent: Wednesday, October 23, 2002 9:38 AM
   Subject: RE: Mod_JK, Tomcat 4, and Apache 1.3.27
  
  
   
It would be more helpful if you could tell us the output of
   
/some/path/to/apache/bin/apachectl configtest
   
John
   
   
 -Original Message-
 From: Curt LeCaptain [mailto:lecaptainc;itol.com]
 Sent: Wednesday, October 23, 2002 10:32 AM
 To: Tomcat Users List
 Subject: Mod_JK, Tomcat 4, and Apache 1.3.27


 I followed John Turner's instructions according to his how-to
 on his page,
 and set up my Tomcat/Apache setup according to that.

 CATALINA_HOME=/usr/local/tomcat (soft link)
 JAVA_HOME=/usr/local/jdk1.3.1_05

 I can start Tomcat, unfortunately, I can't get Apache started
 now, after
 putting an Include statement into my httpd.conf to 
 load the Mod_JK
 directive.  If someone could maybe scour these and let me
 know what I'm
 doing wrong?

 Curt LeCaptain

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

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




Re: Mod_JK, Tomcat 4, and Apache 1.3.27

2002-10-23 Thread Curt LeCaptain
Now when I try accessing linuxdev01.itol.com (our dev server, it's an
internal server only) I get this error:

- Original Message -
From: Turner, John [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, October 23, 2002 10:14 AM
Subject: RE: Mod_JK, Tomcat 4, and Apache 1.3.27



 Hmmm...doesn't look like the workers.properties file in my HOWTO. ;)

 Is the workers.properties file reachable by Apache?  Path?  Permissions?

 Where is the JkWorkersFile statement?  I don't see it in httpd.conf, and
 without it, mod_jk won't know where to look.

 This is all you need in workers.properties, I doubt it makes a difference,
 but it might make it easier to debug with a shorter file.

 # BEGIN workers.properties
 # (optional) make this equal to CATALINA_HOME
 workers.tomcat_home=/usr/local/jakarta-tomcat-4.0.4
 # (optional) make this equal to JAVA_HOME
 workers.java_home=/usr/java/j2sdk1.4.0_01
 #
 ps=/
 worker.list=ajp13
 worker.ajp13.port=8009

 # change this line to match apache ServerName and Host name in server.xml
 worker.ajp13.host=localhost
 worker.ajp13.type=ajp13
 # END workers.properties

 John

  -Original Message-
  From: Curt LeCaptain [mailto:lecaptainc;itol.com]
  Sent: Wednesday, October 23, 2002 11:07 AM
  To: Tomcat Users List
  Subject: Re: Mod_JK, Tomcat 4, and Apache 1.3.27
 
 
  Apache Start:
 
  /usr/local/apache/bin/apachectl start
  HTTPD could not be started
 
  Error_Log
 
  [Mon Oct 21 13:06:23 2002] [notice] Accept mutex: sysvsem
  (Default: sysvsem)
  [Mon Oct 21 16:34:04 2002] [notice] SIGHUP received.
  Attempting to restart
  [Mon Oct 21 16:34:04 2002] [notice] Apache/1.3.27 (Unix) mod_jk/1.1.0
  configured -- resuming normal operations
  [Mon Oct 21 16:34:04 2002] [notice] Accept mutex: sysvsem
  (Default: sysvsem)
  [Mon Oct 21 16:34:08 2002] [notice] caught SIGTERM, shutting down
  ations
  [Mon Oct 21 16:34:24 2002] [notice] Accept mutex: sysvsem
  (Default: sysvsem)
  [Wed Oct 23 09:15:39 2002] [notice] caught SIGTERM, shutting down
  [Wed Oct 23 09:16:00 2002] [emerg] Error while opening the workers
  [Wed Oct 23 09:16:22 2002] [emerg] Error while opening the workers
  [Wed Oct 23 09:27:31 2002] [emerg] Error while opening the workers
  [Wed Oct 23 09:27:42 2002] [emerg] Error while opening the workers
 
  Workers File attached.
 
 
  - Original Message -
  From: Turner, John [EMAIL PROTECTED]
  To: 'Tomcat Users List' [EMAIL PROTECTED]
  Sent: Wednesday, October 23, 2002 9:53 AM
  Subject: RE: Mod_JK, Tomcat 4, and Apache 1.3.27
 
 
  
   OK, then what happens when you start Apache?  What's in the
  log files?
   Error messages?
  
   John
  
  
-Original Message-
From: Curt LeCaptain [mailto:lecaptainc;itol.com]
Sent: Wednesday, October 23, 2002 10:48 AM
To: Tomcat Users List
Subject: Re: Mod_JK, Tomcat 4, and Apache 1.3.27
   
   
Actually, I get a Syntax OK when I run a configtest.
   
Curt LeCaptain
   
   
- Original Message -
From: Turner, John [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, October 23, 2002 9:38 AM
Subject: RE: Mod_JK, Tomcat 4, and Apache 1.3.27
   
   

 It would be more helpful if you could tell us the output of

 /some/path/to/apache/bin/apachectl configtest

 John


  -Original Message-
  From: Curt LeCaptain [mailto:lecaptainc;itol.com]
  Sent: Wednesday, October 23, 2002 10:32 AM
  To: Tomcat Users List
  Subject: Mod_JK, Tomcat 4, and Apache 1.3.27
 
 
  I followed John Turner's instructions according to his how-to
  on his page,
  and set up my Tomcat/Apache setup according to that.
 
  CATALINA_HOME=/usr/local/tomcat (soft link)
  JAVA_HOME=/usr/local/jdk1.3.1_05
 
  I can start Tomcat, unfortunately, I can't get Apache started
  now, after
  putting an Include statement into my httpd.conf to
  load the Mod_JK
  directive.  If someone could maybe scour these and let me
  know what I'm
  doing wrong?
 
  Curt LeCaptain
 

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

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

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



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




Re: Mod_JK, Tomcat 4, and Apache 1.3.27

2002-10-23 Thread Curt LeCaptain
Okay... so, control-enter sucks... let's try again :)

I get this error when attempting to access localhost:8080 (or
linuxdev01.itol.com:8080, internal IP only)

- Original Message -
From: Turner, John [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, October 23, 2002 10:14 AM
Subject: RE: Mod_JK, Tomcat 4, and Apache 1.3.27



 Hmmm...doesn't look like the workers.properties file in my HOWTO. ;)

 Is the workers.properties file reachable by Apache?  Path?  Permissions?

 Where is the JkWorkersFile statement?  I don't see it in httpd.conf, and
 without it, mod_jk won't know where to look.

 This is all you need in workers.properties, I doubt it makes a difference,
 but it might make it easier to debug with a shorter file.

 # BEGIN workers.properties
 # (optional) make this equal to CATALINA_HOME
 workers.tomcat_home=/usr/local/jakarta-tomcat-4.0.4
 # (optional) make this equal to JAVA_HOME
 workers.java_home=/usr/java/j2sdk1.4.0_01
 #
 ps=/
 worker.list=ajp13
 worker.ajp13.port=8009

 # change this line to match apache ServerName and Host name in server.xml
 worker.ajp13.host=localhost
 worker.ajp13.type=ajp13
 # END workers.properties

 John

  -Original Message-
  From: Curt LeCaptain [mailto:lecaptainc;itol.com]
  Sent: Wednesday, October 23, 2002 11:07 AM
  To: Tomcat Users List
  Subject: Re: Mod_JK, Tomcat 4, and Apache 1.3.27
 
 
  Apache Start:
 
  /usr/local/apache/bin/apachectl start
  HTTPD could not be started
 
  Error_Log
 
  [Mon Oct 21 13:06:23 2002] [notice] Accept mutex: sysvsem
  (Default: sysvsem)
  [Mon Oct 21 16:34:04 2002] [notice] SIGHUP received.
  Attempting to restart
  [Mon Oct 21 16:34:04 2002] [notice] Apache/1.3.27 (Unix) mod_jk/1.1.0
  configured -- resuming normal operations
  [Mon Oct 21 16:34:04 2002] [notice] Accept mutex: sysvsem
  (Default: sysvsem)
  [Mon Oct 21 16:34:08 2002] [notice] caught SIGTERM, shutting down
  ations
  [Mon Oct 21 16:34:24 2002] [notice] Accept mutex: sysvsem
  (Default: sysvsem)
  [Wed Oct 23 09:15:39 2002] [notice] caught SIGTERM, shutting down
  [Wed Oct 23 09:16:00 2002] [emerg] Error while opening the workers
  [Wed Oct 23 09:16:22 2002] [emerg] Error while opening the workers
  [Wed Oct 23 09:27:31 2002] [emerg] Error while opening the workers
  [Wed Oct 23 09:27:42 2002] [emerg] Error while opening the workers
 
  Workers File attached.
 
 
  - Original Message -
  From: Turner, John [EMAIL PROTECTED]
  To: 'Tomcat Users List' [EMAIL PROTECTED]
  Sent: Wednesday, October 23, 2002 9:53 AM
  Subject: RE: Mod_JK, Tomcat 4, and Apache 1.3.27
 
 
  
   OK, then what happens when you start Apache?  What's in the
  log files?
   Error messages?
  
   John
  
  
-Original Message-
From: Curt LeCaptain [mailto:lecaptainc;itol.com]
Sent: Wednesday, October 23, 2002 10:48 AM
To: Tomcat Users List
Subject: Re: Mod_JK, Tomcat 4, and Apache 1.3.27
   
   
Actually, I get a Syntax OK when I run a configtest.
   
Curt LeCaptain
   
   
- Original Message -
From: Turner, John [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, October 23, 2002 9:38 AM
Subject: RE: Mod_JK, Tomcat 4, and Apache 1.3.27
   
   

 It would be more helpful if you could tell us the output of

 /some/path/to/apache/bin/apachectl configtest

 John


  -Original Message-
  From: Curt LeCaptain [mailto:lecaptainc;itol.com]
  Sent: Wednesday, October 23, 2002 10:32 AM
  To: Tomcat Users List
  Subject: Mod_JK, Tomcat 4, and Apache 1.3.27
 
 
  I followed John Turner's instructions according to his how-to
  on his page,
  and set up my Tomcat/Apache setup according to that.
 
  CATALINA_HOME=/usr/local/tomcat (soft link)
  JAVA_HOME=/usr/local/jdk1.3.1_05
 
  I can start Tomcat, unfortunately, I can't get Apache started
  now, after
  putting an Include statement into my httpd.conf to
  load the Mod_JK
  directive.  If someone could maybe scour these and let me
  know what I'm
  doing wrong?
 
  Curt LeCaptain
 

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

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

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



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

Re: Mod_JK, Tomcat 4, and Apache 1.3.27

2002-10-23 Thread Curt LeCaptain
Grr... did it again.

Error:

Apache Tomcat/4.0.6 - HTTP Status 500 - No Context configured to process
this request




type Status report

message No Context configured to process this request

description The server encountered an internal error (No Context configured
to process this request) that prevented it from fulfilling this request.





I guess I'm not really sure what to do with this now, no errors appear in
the mod_jk.log or error_log, but I did add the JkWorkerProperties command
and that helped get Apache running :)

Any more ideas??

Thanks!

Curt LeCaptain


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




RE: Mod_JK, Tomcat 4, and Apache 1.3.27

2002-10-23 Thread Turner, John

This is a server.xml issue.  I guess the best way to proceed would be for
you to post the relevant portion of httpd.conf (not the whole thing, just
the parts with the JkMount directives), workers.properties, and server.xml
as they are now.  

My guess is you are accessing something as a hostname like host.itol.com but
the only Host you have in server.xml is localhost, and that you are trying
to reach something like http://your.host.com/myApp but there is no Context
in server.xml for myApp.

John


 -Original Message-
 From: Curt LeCaptain [mailto:lecaptainc;itol.com]
 Sent: Wednesday, October 23, 2002 11:30 AM
 To: Tomcat Users List
 Subject: Re: Mod_JK, Tomcat 4, and Apache 1.3.27
 
 
 Grr... did it again.
 
 Error:
 
 Apache Tomcat/4.0.6 - HTTP Status 500 - No Context configured 
 to process
 this request
 
 --
 --
 
 
 type Status report
 
 message No Context configured to process this request
 
 description The server encountered an internal error (No 
 Context configured
 to process this request) that prevented it from fulfilling 
 this request.
 
 
 
 
 
 I guess I'm not really sure what to do with this now, no 
 errors appear in
 the mod_jk.log or error_log, but I did add the 
 JkWorkerProperties command
 and that helped get Apache running :)
 
 Any more ideas??
 
 Thanks!
 
 Curt LeCaptain
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: 
 mailto:tomcat-user-help;jakarta.apache.org
 

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




Re: Mod_JK, Tomcat 4, and Apache 1.3.27

2002-10-23 Thread Curt LeCaptain



 This is a server.xml issue.  I guess the best way to proceed would be for
 you to post the relevant portion of httpd.conf (not the whole thing, just
 the parts with the JkMount directives), workers.properties, and server.xml
 as they are now.

 My guess is you are accessing something as a hostname like host.itol.com
but
 the only Host you have in server.xml is localhost, and that you are
trying
 to reach something like http://your.host.com/myApp but there is no Context
 in server.xml for myApp.

#Tomcat Workers Properties
JkWorkersFile   /usr/local/tomcat/conf/auto/workers.properties
JkLogFile   /usr/local/apache/logs/mod_jk.log
JkLogLevel  error

VirtualHost linuxdev01.itol.com
ServerName linuxdev01.itol.com

JkMount /data/www/docs/jsp ajp13
JkMount /data/www/docs/jsp/* ajp13

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



Hopefully this helps as to what I'm doing... I'm thinking I'm just being an
idiot, but looking for confirmation on this ;-)

Curt LeCaptain (2 attachements)




workers.properties
Description: Binary data
!-- Example Server Configuration File --
!-- Note that component elements are nested corresponding to their
 parent-child relationships with each other --

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

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

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

  !-- 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 HTTP/1.1 Connector on port 8080 --
Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8080 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=6/
!-- Note : To disable connection timeouts, set connectionTimeout value 
 to -1 --

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

!-- Define an SSL HTTP/1.1 Connector on port 8443 --
!--
Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8443 minProcessors=5 maxProcessors=75
   enableLookups=true
	   acceptCount=10 debug=0 scheme=https secure=true
  Factory className=org.apache.catalina.net.SSLServerSocketFactory
   clientAuth=false protocol=TLS/
/Connector
--

!-- Define an AJP 1.3 Connector on port 8009 --
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8009 minProcessors=5 maxProcessors=75
   acceptCount=10 debug=0/

!-- Define a Proxied HTTP/1.1 Connector on port 8081 --
   

RE: Mod_JK, Tomcat 4, and Apache 1.3.27

2002-10-23 Thread Turner, John

OK, but what URL are you trying to reach?  The only Context you have in
server.xml is /manager, so unless you are trying to access
http://linuxdev01.itol.com/manager, you are going to get the error message
that you're getting.

John


 -Original Message-
 From: Curt LeCaptain [mailto:lecaptainc;itol.com]
 Sent: Wednesday, October 23, 2002 1:56 PM
 To: Tomcat Users List
 Subject: Re: Mod_JK, Tomcat 4, and Apache 1.3.27
 
 
 
 
 
  This is a server.xml issue.  I guess the best way to 
 proceed would be for
  you to post the relevant portion of httpd.conf (not the 
 whole thing, just
  the parts with the JkMount directives), workers.properties, 
 and server.xml
  as they are now.
 
  My guess is you are accessing something as a hostname like 
 host.itol.com
 but
  the only Host you have in server.xml is localhost, and 
 that you are
 trying
  to reach something like http://your.host.com/myApp but 
 there is no Context
  in server.xml for myApp.
 
 #Tomcat Workers Properties
 JkWorkersFile   /usr/local/tomcat/conf/auto/workers.properties
 JkLogFile   /usr/local/apache/logs/mod_jk.log
 JkLogLevel  error
 
 VirtualHost linuxdev01.itol.com
 ServerName linuxdev01.itol.com
 
 JkMount /data/www/docs/jsp ajp13
 JkMount /data/www/docs/jsp/* ajp13
 
 JkMount /manager ajp13
 JkMount /manager/* ajp13
 /VirtualHost
 
 
 
 Hopefully this helps as to what I'm doing... I'm thinking I'm 
 just being an
 idiot, but looking for confirmation on this ;-)
 
 Curt LeCaptain (2 attachements)
 
 

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




Re: Mod_JK, Tomcat 4, and Apache 1.3.27

2002-10-23 Thread Curt LeCaptain
This line:

Context path=/data/www/docs/jsp docBase=/jsp debug=0
 reloadable=true crossContext=true

Is possibly a mistake by me?  I'm just curious... I'm not exactly the
greatest at this, still quite new to the whole Tomcat server.

I'm trying to go to linuxdev01.itol.com/jsp (where there are example JSP's)
and run them from there.

Curt

- Original Message -
From: Turner, John [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, October 23, 2002 1:00 PM
Subject: RE: Mod_JK, Tomcat 4, and Apache 1.3.27



 OK, but what URL are you trying to reach?  The only Context you have in
 server.xml is /manager, so unless you are trying to access
 http://linuxdev01.itol.com/manager, you are going to get the error message
 that you're getting.

 John


  -Original Message-
  From: Curt LeCaptain [mailto:lecaptainc;itol.com]
  Sent: Wednesday, October 23, 2002 1:56 PM
  To: Tomcat Users List
  Subject: Re: Mod_JK, Tomcat 4, and Apache 1.3.27
 
 
 
 
  
   This is a server.xml issue.  I guess the best way to
  proceed would be for
   you to post the relevant portion of httpd.conf (not the
  whole thing, just
   the parts with the JkMount directives), workers.properties,
  and server.xml
   as they are now.
  
   My guess is you are accessing something as a hostname like
  host.itol.com
  but
   the only Host you have in server.xml is localhost, and
  that you are
  trying
   to reach something like http://your.host.com/myApp but
  there is no Context
   in server.xml for myApp.
 
  #Tomcat Workers Properties
  JkWorkersFile   /usr/local/tomcat/conf/auto/workers.properties
  JkLogFile   /usr/local/apache/logs/mod_jk.log
  JkLogLevel  error
 
  VirtualHost linuxdev01.itol.com
  ServerName linuxdev01.itol.com
 
  JkMount /data/www/docs/jsp ajp13
  JkMount /data/www/docs/jsp/* ajp13
 
  JkMount /manager ajp13
  JkMount /manager/* ajp13
  /VirtualHost
 
 
 
  Hopefully this helps as to what I'm doing... I'm thinking I'm
  just being an
  idiot, but looking for confirmation on this ;-)
 
  Curt LeCaptain (2 attachements)
 
 

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



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




RE: Mod_JK, Tomcat 4, and Apache 1.3.27

2002-10-23 Thread Turner, John

Switch them around:

path=/jsp docBase=/data/www/docs/jsp 

See if that makes a difference...you'll need to restart Tomcat.

John


 -Original Message-
 From: Curt LeCaptain [mailto:lecaptainc;itol.com]
 Sent: Wednesday, October 23, 2002 2:05 PM
 To: Tomcat Users List
 Subject: Re: Mod_JK, Tomcat 4, and Apache 1.3.27
 
 
 This line:
 
 Context path=/data/www/docs/jsp docBase=/jsp debug=0
  reloadable=true crossContext=true
 
 Is possibly a mistake by me?  I'm just curious... I'm not exactly the
 greatest at this, still quite new to the whole Tomcat server.
 
 I'm trying to go to linuxdev01.itol.com/jsp (where there are 
 example JSP's)
 and run them from there.
 
 Curt
 
 - Original Message -
 From: Turner, John [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Wednesday, October 23, 2002 1:00 PM
 Subject: RE: Mod_JK, Tomcat 4, and Apache 1.3.27
 
 
 
  OK, but what URL are you trying to reach?  The only Context 
 you have in
  server.xml is /manager, so unless you are trying to access
  http://linuxdev01.itol.com/manager, you are going to get 
 the error message
  that you're getting.
 
  John
 
 
   -Original Message-
   From: Curt LeCaptain [mailto:lecaptainc;itol.com]
   Sent: Wednesday, October 23, 2002 1:56 PM
   To: Tomcat Users List
   Subject: Re: Mod_JK, Tomcat 4, and Apache 1.3.27
  
  
  
  
   
This is a server.xml issue.  I guess the best way to
   proceed would be for
you to post the relevant portion of httpd.conf (not the
   whole thing, just
the parts with the JkMount directives), workers.properties,
   and server.xml
as they are now.
   
My guess is you are accessing something as a hostname like
   host.itol.com
   but
the only Host you have in server.xml is localhost, and
   that you are
   trying
to reach something like http://your.host.com/myApp but
   there is no Context
in server.xml for myApp.
  
   #Tomcat Workers Properties
   JkWorkersFile   /usr/local/tomcat/conf/auto/workers.properties
   JkLogFile   /usr/local/apache/logs/mod_jk.log
   JkLogLevel  error
  
   VirtualHost linuxdev01.itol.com
   ServerName linuxdev01.itol.com
  
   JkMount /data/www/docs/jsp ajp13
   JkMount /data/www/docs/jsp/* ajp13
  
   JkMount /manager ajp13
   JkMount /manager/* ajp13
   /VirtualHost
  
  
  
   Hopefully this helps as to what I'm doing... I'm thinking I'm
   just being an
   idiot, but looking for confirmation on this ;-)
  
   Curt LeCaptain (2 attachements)
  
  
 
  --
  To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
 
 
 
 --
 To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

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




Re: Mod_JK, Tomcat 4, and Apache 1.3.27

2002-10-23 Thread Curt LeCaptain
Okay... switched... now I see source code on a few of the JSP's instead of
them running :)  I've got the worst luck I think :)

Curt


- Original Message -
From: Turner, John [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, October 23, 2002 1:07 PM
Subject: RE: Mod_JK, Tomcat 4, and Apache 1.3.27



 Switch them around:

 path=/jsp docBase=/data/www/docs/jsp

 See if that makes a difference...you'll need to restart Tomcat.

 John


  -Original Message-
  From: Curt LeCaptain [mailto:lecaptainc;itol.com]
  Sent: Wednesday, October 23, 2002 2:05 PM
  To: Tomcat Users List
  Subject: Re: Mod_JK, Tomcat 4, and Apache 1.3.27
 
 
  This line:
 
  Context path=/data/www/docs/jsp docBase=/jsp debug=0
   reloadable=true crossContext=true
 
  Is possibly a mistake by me?  I'm just curious... I'm not exactly the
  greatest at this, still quite new to the whole Tomcat server.
 
  I'm trying to go to linuxdev01.itol.com/jsp (where there are
  example JSP's)
  and run them from there.
 
  Curt
 
  - Original Message -
  From: Turner, John [EMAIL PROTECTED]
  To: 'Tomcat Users List' [EMAIL PROTECTED]
  Sent: Wednesday, October 23, 2002 1:00 PM
  Subject: RE: Mod_JK, Tomcat 4, and Apache 1.3.27
 
 
  
   OK, but what URL are you trying to reach?  The only Context
  you have in
   server.xml is /manager, so unless you are trying to access
   http://linuxdev01.itol.com/manager, you are going to get
  the error message
   that you're getting.
  
   John
  
  
-Original Message-
From: Curt LeCaptain [mailto:lecaptainc;itol.com]
Sent: Wednesday, October 23, 2002 1:56 PM
To: Tomcat Users List
Subject: Re: Mod_JK, Tomcat 4, and Apache 1.3.27
   
   
   
   

 This is a server.xml issue.  I guess the best way to
proceed would be for
 you to post the relevant portion of httpd.conf (not the
whole thing, just
 the parts with the JkMount directives), workers.properties,
and server.xml
 as they are now.

 My guess is you are accessing something as a hostname like
host.itol.com
but
 the only Host you have in server.xml is localhost, and
that you are
trying
 to reach something like http://your.host.com/myApp but
there is no Context
 in server.xml for myApp.
   
#Tomcat Workers Properties
JkWorkersFile   /usr/local/tomcat/conf/auto/workers.properties
JkLogFile   /usr/local/apache/logs/mod_jk.log
JkLogLevel  error
   
VirtualHost linuxdev01.itol.com
ServerName linuxdev01.itol.com
   
JkMount /data/www/docs/jsp ajp13
JkMount /data/www/docs/jsp/* ajp13
   
JkMount /manager ajp13
JkMount /manager/* ajp13
/VirtualHost
   
   
   
Hopefully this helps as to what I'm doing... I'm thinking I'm
just being an
idiot, but looking for confirmation on this ;-)
   
Curt LeCaptain (2 attachements)
   
   
  
   --
   To unsubscribe, e-mail:
  mailto:tomcat-user-unsubscribe;jakarta.apache.org
   For additional commands, e-mail:
  mailto:tomcat-user-help;jakarta.apache.org
  
 
 
  --
  To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org

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



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




RE: Mod_JK, Tomcat 4, and Apache 1.3.27

2002-10-23 Thread Turner, John

Not sure what to say right now.  

The first thing I would do is skip Apache.  Get your JSPs working on
http://your.host:8080 then worry about putting Apache into the mix.

If you take it step by step, things should work out.  I've looked at a bunch
of server.xml and mod_jk.conf files today for a bunch of people, so it's
hard for me to keep them all straight at the moment.

John

 -Original Message-
 From: Curt LeCaptain [mailto:lecaptainc;itol.com]
 Sent: Wednesday, October 23, 2002 2:18 PM
 To: Tomcat Users List
 Subject: Re: Mod_JK, Tomcat 4, and Apache 1.3.27
 
 
 Okay... switched... now I see source code on a few of the 
 JSP's instead of
 them running :)  I've got the worst luck I think :)
 
 Curt
 
 
 - Original Message -
 From: Turner, John [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Wednesday, October 23, 2002 1:07 PM
 Subject: RE: Mod_JK, Tomcat 4, and Apache 1.3.27
 
 
 
  Switch them around:
 
  path=/jsp docBase=/data/www/docs/jsp
 
  See if that makes a difference...you'll need to restart Tomcat.
 
  John
 
 
   -Original Message-
   From: Curt LeCaptain [mailto:lecaptainc;itol.com]
   Sent: Wednesday, October 23, 2002 2:05 PM
   To: Tomcat Users List
   Subject: Re: Mod_JK, Tomcat 4, and Apache 1.3.27
  
  
   This line:
  
   Context path=/data/www/docs/jsp docBase=/jsp debug=0
reloadable=true crossContext=true
  
   Is possibly a mistake by me?  I'm just curious... I'm not 
 exactly the
   greatest at this, still quite new to the whole Tomcat server.
  
   I'm trying to go to linuxdev01.itol.com/jsp (where there are
   example JSP's)
   and run them from there.
  
   Curt
  
   - Original Message -
   From: Turner, John [EMAIL PROTECTED]
   To: 'Tomcat Users List' [EMAIL PROTECTED]
   Sent: Wednesday, October 23, 2002 1:00 PM
   Subject: RE: Mod_JK, Tomcat 4, and Apache 1.3.27
  
  
   
OK, but what URL are you trying to reach?  The only Context
   you have in
server.xml is /manager, so unless you are trying to access
http://linuxdev01.itol.com/manager, you are going to get
   the error message
that you're getting.
   
John
   
   
 -Original Message-
 From: Curt LeCaptain [mailto:lecaptainc;itol.com]
 Sent: Wednesday, October 23, 2002 1:56 PM
 To: Tomcat Users List
 Subject: Re: Mod_JK, Tomcat 4, and Apache 1.3.27




 
  This is a server.xml issue.  I guess the best way to
 proceed would be for
  you to post the relevant portion of httpd.conf (not the
 whole thing, just
  the parts with the JkMount directives), workers.properties,
 and server.xml
  as they are now.
 
  My guess is you are accessing something as a hostname like
 host.itol.com
 but
  the only Host you have in server.xml is localhost, and
 that you are
 trying
  to reach something like http://your.host.com/myApp but
 there is no Context
  in server.xml for myApp.

 #Tomcat Workers Properties
 JkWorkersFile   /usr/local/tomcat/conf/auto/workers.properties
 JkLogFile   /usr/local/apache/logs/mod_jk.log
 JkLogLevel  error

 VirtualHost linuxdev01.itol.com
 ServerName linuxdev01.itol.com

 JkMount /data/www/docs/jsp ajp13
 JkMount /data/www/docs/jsp/* ajp13

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



 Hopefully this helps as to what I'm doing... I'm thinking I'm
 just being an
 idiot, but looking for confirmation on this ;-)

 Curt LeCaptain (2 attachements)


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

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




RE: Can't get tomcat 4 + mod_jk + apache to work

2002-08-22 Thread Andreas Mohrig

Hi Scott,

an assumption to why it now works is that you have commented out the virtual
host, so that the directives are now in the main section. The virtual host
mechanism seems to depend on the clients (browsers) sending the host name
(in your case toecutter or later localhost) to the server, and if they
don't do that, the directives never work for these requests. I don't
understand why tomcat is generating this configuration, though.

greetings

Andreas Mohrig
-Original Message-
From: Scott Adamson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 22, 2002 6:52 AM
To: Tomcat Users List
Subject: Re: Can't get tomcat 4 + mod_jk + apache to work


I don't know why, but I got it to work by adding the following at the end of
httpd.conf -

IfModule !mod_jk.c
  LoadModule jk_module /usr/local/apache2/libexec/mod_jk-3.3-ap13-noeapi.so
/IfModule

JkWorkersFile /usr/local/jakarta-tomcat-4.0.4/conf/jk/workers.properties
JkLogFile /usr/local/jakarta-tomcat-4.0.4/logs/mod_jk.log

JkLogLevel emerg

#VirtualHost localhost
#ServerName localhost

 localhost:/examples 

# Static files
Alias /examples /usr/local/tomcat/webapps/examples

Directory /usr/local/tomcat/webapps/examples
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
/Directory

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

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

JkMount /examples  ajp13
JkMount /examples/*  ajp13

JkMount /examples/jsp/security/protected/j_security_check  ajp13
JkMount /examples/snoop  ajp13
JkMount /examples/servlet/*  ajp13
JkMount /examples/CompressionTest  ajp13
JkMount /examples/*.jsp  ajp13
JkMount /examples/servletToJsp  ajp13
JkMount /examples/SendMailServlet  ajp13


 toecutter:/sywareTech 

Alias /sywareTech /usr/local/jakarta-tomcat-4.0.4/webapps/sywareTech

Directory /usr/local/jakarta-tomcat-4.0.4/webapps/sywareTech
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
/Directory


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

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

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


#/VirtualHost


I couldn't get it to work by including mod_jk.conf, and I couldn't get the
mod_jk src (from the Tomcat 4 dist. - no binaries avail.) to compile.
Good luck.

regards,

Scott.
- Original Message -
From: Brian Orledge [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, August 20, 2002 11:35 PM
Subject: RE: Can't get tomcat 4 + mod_jk + apache to work


 Did you get anywhere with this.  I'm using the same configuration (minus
 the JBoss) and having the same error.


 Brian Orledge
 Revenue Solutions, Inc.
 301.240.2182

 -Original Message-
 From: Scott Adamson [mailto:[EMAIL PROTECTED]]
 Sent: Monday, August 19, 2002 11:57 AM
 To: Tomcat Users List
 Subject: Can't get tomcat 4 + mod_jk + apache to work


 I have been trying for the last week to get Apache + mod_jk + Tomcat 4
 to
 work.
 I have confirmed that Tomcat works on 8080, confirmed that Apache is
 running.

.


 Scott Adamson
 Systems Administrator
 Syware Technology

 [EMAIL PROTECTED]
 http://upe.com.au




 --
 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: Can't get tomcat 4 + mod_jk + apache to work

2002-08-21 Thread Andreas Mohrig

It seems to be a problem of your apache configuration. Your error message
seems to indicate that the virtual host is not recognized, since not even
the alias for the static content has any effect. Are you depending on the
VirtualHost-part? If not, try to replace it (the whole block) with the
follwing lines and try how far this gets you:

JkMount /examples/jsp/security/protected/j_security_check  ajp13
JkMount /examples/snoop  ajp13
JkMount /examples/CompressionTest  ajp13
JkMount /examples/*.jsp  ajp13
JkMount /examples/servlet/*  ajp13
JkMount /examples/servletToJsp  ajp13
JkMount /examples/SendMailServlet  ajp13
JkMount /webdav/*.jsp  ajp13
JkMount /webdav/servlet/*  ajp13
JkMount /tomcat-docs/*.jsp  ajp13
JkMount /tomcat-docs/servlet/*  ajp13
JkMount /manager/*.jsp  ajp13
JkMount /manager/servlet/*  ajp13
JkMount /manager/*  ajp13
JkMount /sywareTech/*.jsp  ajp13
JkMount /sywareTech/servlet/*  ajp13


By the way: Since your webbapps-directory is not in your apaches
document-path, you don't need to worry about securing your WEB-INF and
META-INF directories. With the above, static content (i.e. not *.jsp or
servlets) will be served out of the corresponding directories under
/usr/local/apache2/htdocs/. If you don't want that, change the *.jsp into *
(in JkMount /examples/*.jsp  ajp13 etc.). If that is not acceptable when
it comes to performance, try it with the alias again, but then you should
also protect the tomcat-special-directories.

Andreas Mohrig

-Original Message-
From: Scott Adamson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 3:02 PM
To: Tomcat Users List
Subject: Re: Can't get tomcat 4 + mod_jk + apache to work


Here's the contents of my mod_jk.conf :


## Auto generated on Tue Aug 20 19:28:15 EST 2002##

IfModule !mod_jk.c
  LoadModule jk_module /usr/local/apache2/libexec/mod_jk-3.3-ap13-noeapi.so
/IfModule

JkWorkersFile /usr/local/jakarta-tomcat-4.0.4/conf/jk/workers.properties
JkLogFile /usr/local/jakarta-tomcat-4.0.4/logs/mod_jk.log

JkLogLevel emerg



VirtualHost toecutter
ServerName toecutter

 toecutter:/examples 

# Static files
Alias /examples /usr/local/jakarta-tomcat-4.0.4/webapps/examples

Directory /usr/local/jakarta-tomcat-4.0.4/webapps/examples
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
/Directory


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

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

JkMount /examples/jsp/security/protected/j_security_check  ajp13
JkMount /examples/snoop  ajp13
JkMount /examples/CompressionTest  ajp13
JkMount /examples/*.jsp  ajp13
JkMount /examples/servlet/*  ajp13
JkMount /examples/servletToJsp  ajp13
JkMount /examples/SendMailServlet  ajp13

 toecutter:/webdav 

# Static files
Alias /webdav /usr/local/jakarta-tomcat-4.0.4/webapps/webdav

Directory /usr/local/jakarta-tomcat-4.0.4/webapps/webdav
Options Indexes FollowSymLinks
DirectoryIndex index.jsp index.html index.htm
/Directory


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

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

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

 toecutter:/tomcat-docs 

# Static files
Alias /tomcat-docs /usr/local/jakarta-tomcat-4.0.4/webapps/tomcat-docs

Directory /usr/local/jakarta-tomcat-4.0.4/webapps/tomcat-docs
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
/Directory


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

Location /tomcat-docs/META-INF/*
AllowOverride None
deny from all
/Location

JkMount /tomcat-docs/*.jsp  ajp13
JkMount /tomcat-docs/servlet/*  ajp13

 toecutter:/manager 

# Static files
Alias /manager /usr/local/jakarta-tomcat-4.0.4/webapps/manager

Directory /usr/local/jakarta-tomcat-4.0.4/webapps/manager
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
/Directory


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

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

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

Re: Can't get tomcat 4 + mod_jk + apache to work

2002-08-21 Thread Scott Adamson

I don't know why, but I got it to work by adding the following at the end of
httpd.conf -

IfModule !mod_jk.c
  LoadModule jk_module /usr/local/apache2/libexec/mod_jk-3.3-ap13-noeapi.so
/IfModule

JkWorkersFile /usr/local/jakarta-tomcat-4.0.4/conf/jk/workers.properties
JkLogFile /usr/local/jakarta-tomcat-4.0.4/logs/mod_jk.log

JkLogLevel emerg

#VirtualHost localhost
#ServerName localhost

 localhost:/examples 

# Static files
Alias /examples /usr/local/tomcat/webapps/examples

Directory /usr/local/tomcat/webapps/examples
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
/Directory

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

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

JkMount /examples  ajp13
JkMount /examples/*  ajp13

JkMount /examples/jsp/security/protected/j_security_check  ajp13
JkMount /examples/snoop  ajp13
JkMount /examples/servlet/*  ajp13
JkMount /examples/CompressionTest  ajp13
JkMount /examples/*.jsp  ajp13
JkMount /examples/servletToJsp  ajp13
JkMount /examples/SendMailServlet  ajp13


 toecutter:/sywareTech 

Alias /sywareTech /usr/local/jakarta-tomcat-4.0.4/webapps/sywareTech

Directory /usr/local/jakarta-tomcat-4.0.4/webapps/sywareTech
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
/Directory


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

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

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


#/VirtualHost


I couldn't get it to work by including mod_jk.conf, and I couldn't get the
mod_jk src (from the Tomcat 4 dist. - no binaries avail.) to compile.
Good luck.

regards,

Scott.
- Original Message -
From: Brian Orledge [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, August 20, 2002 11:35 PM
Subject: RE: Can't get tomcat 4 + mod_jk + apache to work


 Did you get anywhere with this.  I'm using the same configuration (minus
 the JBoss) and having the same error.


 Brian Orledge
 Revenue Solutions, Inc.
 301.240.2182

 -Original Message-
 From: Scott Adamson [mailto:[EMAIL PROTECTED]]
 Sent: Monday, August 19, 2002 11:57 AM
 To: Tomcat Users List
 Subject: Can't get tomcat 4 + mod_jk + apache to work


 I have been trying for the last week to get Apache + mod_jk + Tomcat 4
 to
 work.
 I have confirmed that Tomcat works on 8080, confirmed that Apache is
 running.

.


 Scott Adamson
 Systems Administrator
 Syware Technology

 [EMAIL PROTECTED]
 http://upe.com.au




 --
 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: Can't get tomcat 4 + mod_jk + apache to work

2002-08-20 Thread Brian Orledge

Did you get anywhere with this.  I'm using the same configuration (minus
the JBoss) and having the same error.


Brian Orledge
Revenue Solutions, Inc.
301.240.2182

-Original Message-
From: Scott Adamson [mailto:[EMAIL PROTECTED]] 
Sent: Monday, August 19, 2002 11:57 AM
To: Tomcat Users List
Subject: Can't get tomcat 4 + mod_jk + apache to work


I have been trying for the last week to get Apache + mod_jk + Tomcat 4
to
work.
I have confirmed that Tomcat works on 8080, confirmed that Apache is
running.

My configuration is as follows :

OS -
Redhat Linux 6.2

Java -
JAVA_HOME=/usr/java/jdk1.3
Installed via RPM

Tomcat -
Installed binary distribution of jakarta 4.0.4 at
/usr/local/jakarta-tomcat-4.0.4
Created jakarta-tomcat-4.0.4/conf/jk/workers.properties as follows :

workers.tomcat_home=/usr/local/jakarta-tomcat-4.0.4
workers.java_home=/usr/java/jdk1.3
ps=/
worker.list=ajp12, ajp13
worker.ajp13.port=8009
worker.ajp13.host=toecutter
worker.ajp13.type=ajp13

Modified jakarta-tomcat-4.0.4/conf/server.xml as follows : (see
attached)

Server port=8005 shutdown=SHUTDOWN debug=0
   #added line  Listener
className=org.apache.ajp.tomcat4.config.ApacheConfig
modJk=/usr/local/apache2/libexec/mod_jk-3.3-ap13-noeapi.so /

and

  Host name=toecutter debug=0 appBase=webapps
unpackWARs=true
#added line   Listener
className=org.apache.ajp.tomcat4.config.ApacheConfig append=true
forwardAll=false /

Apache -
Compiled Apache1.3.19 with the following config -
./configure --prefix=/usr/local/apache2 --enable-module=so
Added the following to httpd.conf (see attached)
Include /usr/local/jakarta-tomcat-4.0.4/conf/auto/mod_jk.conf

mod_jk -
Added the binary mod_jk-3.3-ap13-noeapi.so to
/usr/local/apache2/libexec


/apache2/logs/error_log contains the following :

[Tue Aug 20 02:08:20 2002] [error] [client 192.168.0.7] File does not
exist:
/usr/local/apache2/htdocs/examples/

indicating that it isn't even trying to redirect and looks for /examples
under /apache2/htdocs
Can someone please help me (thanks to those who have already tried), can
someone see a problem with my configuration ?



Scott Adamson
Systems Administrator
Syware Technology

[EMAIL PROTECTED]
http://upe.com.au




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




RE: Can't get tomcat 4 + mod_jk + apache to work

2002-08-20 Thread Sullivan, Mark E

it would be very helpful if you could post the contents of this file:

/usr/local/jakarta-tomcat-4.0.4/conf/auto/mod_jk.conf

Otherwise, solving this problem will be very difficult

 -Original Message-
 From: Brian Orledge [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, August 20, 2002 8:35 AM
 To: 'Tomcat Users List'
 Subject: RE: Can't get tomcat 4 + mod_jk + apache to work
 
 
 Did you get anywhere with this.  I'm using the same 
 configuration (minus
 the JBoss) and having the same error.
 
 
 Brian Orledge
 Revenue Solutions, Inc.
 301.240.2182
 
 -Original Message-
 From: Scott Adamson [mailto:[EMAIL PROTECTED]] 
 Sent: Monday, August 19, 2002 11:57 AM
 To: Tomcat Users List
 Subject: Can't get tomcat 4 + mod_jk + apache to work
 
 
 I have been trying for the last week to get Apache + mod_jk + Tomcat 4
 to
 work.
 I have confirmed that Tomcat works on 8080, confirmed that Apache is
 running.
 
 My configuration is as follows :
 
 OS -
 Redhat Linux 6.2
 
 Java -
 JAVA_HOME=/usr/java/jdk1.3
 Installed via RPM
 
 Tomcat -
 Installed binary distribution of jakarta 4.0.4 at
 /usr/local/jakarta-tomcat-4.0.4
 Created jakarta-tomcat-4.0.4/conf/jk/workers.properties 
 as follows :
 
 workers.tomcat_home=/usr/local/jakarta-tomcat-4.0.4
 workers.java_home=/usr/java/jdk1.3
 ps=/
 worker.list=ajp12, ajp13
 worker.ajp13.port=8009
 worker.ajp13.host=toecutter
 worker.ajp13.type=ajp13
 
 Modified jakarta-tomcat-4.0.4/conf/server.xml as follows : (see
 attached)
 
 Server port=8005 shutdown=SHUTDOWN debug=0
#added line  Listener
 className=org.apache.ajp.tomcat4.config.ApacheConfig
 modJk=/usr/local/apache2/libexec/mod_jk-3.3-ap13-noeapi.so /
 
 and
 
   Host name=toecutter debug=0 appBase=webapps
 unpackWARs=true
 #added line   Listener
 className=org.apache.ajp.tomcat4.config.ApacheConfig append=true
 forwardAll=false /
 
 Apache -
 Compiled Apache1.3.19 with the following config -
 ./configure --prefix=/usr/local/apache2 --enable-module=so
 Added the following to httpd.conf (see attached)
 Include /usr/local/jakarta-tomcat-4.0.4/conf/auto/mod_jk.conf
 
 mod_jk -
 Added the binary mod_jk-3.3-ap13-noeapi.so to
 /usr/local/apache2/libexec
 
 
 /apache2/logs/error_log contains the following :
 
 [Tue Aug 20 02:08:20 2002] [error] [client 192.168.0.7] File does not
 exist:
 /usr/local/apache2/htdocs/examples/
 
 indicating that it isn't even trying to redirect and looks 
 for /examples
 under /apache2/htdocs
 Can someone please help me (thanks to those who have already 
 tried), can
 someone see a problem with my configuration ?
 
 
 
 Scott Adamson
 Systems Administrator
 Syware Technology
 
 [EMAIL PROTECTED]
 http://upe.com.au
 
 
 
 
 --
 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: Can't get tomcat 4 + mod_jk + apache to work

2002-08-20 Thread Scott Adamson

Here's the contents of my mod_jk.conf :


## Auto generated on Tue Aug 20 19:28:15 EST 2002##

IfModule !mod_jk.c
  LoadModule jk_module /usr/local/apache2/libexec/mod_jk-3.3-ap13-noeapi.so
/IfModule

JkWorkersFile /usr/local/jakarta-tomcat-4.0.4/conf/jk/workers.properties
JkLogFile /usr/local/jakarta-tomcat-4.0.4/logs/mod_jk.log

JkLogLevel emerg



VirtualHost toecutter
ServerName toecutter

 toecutter:/examples 

# Static files
Alias /examples /usr/local/jakarta-tomcat-4.0.4/webapps/examples

Directory /usr/local/jakarta-tomcat-4.0.4/webapps/examples
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
/Directory


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

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

JkMount /examples/jsp/security/protected/j_security_check  ajp13
JkMount /examples/snoop  ajp13
JkMount /examples/CompressionTest  ajp13
JkMount /examples/*.jsp  ajp13
JkMount /examples/servlet/*  ajp13
JkMount /examples/servletToJsp  ajp13
JkMount /examples/SendMailServlet  ajp13

 toecutter:/webdav 

# Static files
Alias /webdav /usr/local/jakarta-tomcat-4.0.4/webapps/webdav

Directory /usr/local/jakarta-tomcat-4.0.4/webapps/webdav
Options Indexes FollowSymLinks
DirectoryIndex index.jsp index.html index.htm
/Directory


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

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

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

 toecutter:/tomcat-docs 

# Static files
Alias /tomcat-docs /usr/local/jakarta-tomcat-4.0.4/webapps/tomcat-docs

Directory /usr/local/jakarta-tomcat-4.0.4/webapps/tomcat-docs
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
/Directory


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

Location /tomcat-docs/META-INF/*
AllowOverride None
deny from all
/Location

JkMount /tomcat-docs/*.jsp  ajp13
JkMount /tomcat-docs/servlet/*  ajp13

 toecutter:/manager 

# Static files
Alias /manager /usr/local/jakarta-tomcat-4.0.4/webapps/manager

Directory /usr/local/jakarta-tomcat-4.0.4/webapps/manager
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
/Directory


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

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

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

 toecutter:/sywareTech 

# Static files
Alias /sywareTech /usr/local/jakarta-tomcat-4.0.4/webapps/sywareTech

Directory /usr/local/jakarta-tomcat-4.0.4/webapps/sywareTech
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
/Directory


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

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

JkMount /sywareTech/*.jsp  ajp13
JkMount /sywareTech/servlet/*  ajp13
/VirtualHost

- Original Message -
From: Sullivan, Mark E [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, August 20, 2002 11:37 PM
Subject: RE: Can't get tomcat 4 + mod_jk + apache to work


 it would be very helpful if you could post the contents of this file:

 /usr/local/jakarta-tomcat-4.0.4/conf/auto/mod_jk.conf

 Otherwise, solving this problem will be very difficult

  Scott Adamson
  Systems Administrator
  Syware Technology
 
  [EMAIL PROTECTED]
  http://upe.com.au
 
 
 
 
  --
  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]




Can't get tomcat 4 + mod_jk + apache to work

2002-08-19 Thread Scott Adamson


I have been trying for the last week to get Apache + mod_jk + Tomcat 4 to
work.
I have confirmed that Tomcat works on 8080, confirmed that Apache is
running.

My configuration is as follows :

OS -
Redhat Linux 6.2

Java -
JAVA_HOME=/usr/java/jdk1.3
Installed via RPM

Tomcat -
Installed binary distribution of jakarta 4.0.4 at
/usr/local/jakarta-tomcat-4.0.4
Created jakarta-tomcat-4.0.4/conf/jk/workers.properties as follows :

workers.tomcat_home=/usr/local/jakarta-tomcat-4.0.4
workers.java_home=/usr/java/jdk1.3
ps=/
worker.list=ajp12, ajp13
worker.ajp13.port=8009
worker.ajp13.host=toecutter
worker.ajp13.type=ajp13

Modified jakarta-tomcat-4.0.4/conf/server.xml as follows : (see
attached)

Server port=8005 shutdown=SHUTDOWN debug=0
   #added line  Listener
className=org.apache.ajp.tomcat4.config.ApacheConfig
modJk=/usr/local/apache2/libexec/mod_jk-3.3-ap13-noeapi.so /

and

  Host name=toecutter debug=0 appBase=webapps unpackWARs=true
#added line   Listener
className=org.apache.ajp.tomcat4.config.ApacheConfig append=true
forwardAll=false /

Apache -
Compiled Apache1.3.19 with the following config -
./configure --prefix=/usr/local/apache2 --enable-module=so
Added the following to httpd.conf (see attached)
Include /usr/local/jakarta-tomcat-4.0.4/conf/auto/mod_jk.conf

mod_jk -
Added the binary mod_jk-3.3-ap13-noeapi.so to /usr/local/apache2/libexec


/apache2/logs/error_log contains the following :

[Tue Aug 20 02:08:20 2002] [error] [client 192.168.0.7] File does not exist:
/usr/local/apache2/htdocs/examples/

indicating that it isn't even trying to redirect and looks for /examples
under /apache2/htdocs
Can someone please help me (thanks to those who have already tried), can
someone see a problem with my configuration ?



Scott Adamson
Systems Administrator
Syware Technology

[EMAIL PROTECTED]
http://upe.com.au




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

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

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

Server port=8005 shutdown=SHUTDOWN debug=0
	Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/usr/local/apache2/libexec/mod_jk-3.3-ap13-noeapi.so /

  !-- 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 HTTP/1.1 Connector on port 8080 --
Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8080 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=6/
!-- Note : To disable connection timeouts, set connectionTimeout value 
 to -1 --

!-- Define a non-SSL Coyote HTTP/1.1 Connector

RE: Can't get tomcat 4 + mod_jk + apache to work

2002-08-19 Thread Sullivan, Mark E

what do your JkMount statements look like in the
/usr/local/jakarta-tomcat-4.0.4/conf/auto/mod_jk.conf file?

 -Original Message-
 From: Scott Adamson [mailto:[EMAIL PROTECTED]]
 Sent: Monday, August 19, 2002 10:57 AM
 To: Tomcat Users List
 Subject: Can't get tomcat 4 + mod_jk + apache to work
 
 
 
 I have been trying for the last week to get Apache + mod_jk + 
 Tomcat 4 to
 work.
 I have confirmed that Tomcat works on 8080, confirmed that Apache is
 running.
 
 My configuration is as follows :
 
 OS -
 Redhat Linux 6.2
 
 Java -
 JAVA_HOME=/usr/java/jdk1.3
 Installed via RPM
 
 Tomcat -
 Installed binary distribution of jakarta 4.0.4 at
 /usr/local/jakarta-tomcat-4.0.4
 Created jakarta-tomcat-4.0.4/conf/jk/workers.properties 
 as follows :
 
 workers.tomcat_home=/usr/local/jakarta-tomcat-4.0.4
 workers.java_home=/usr/java/jdk1.3
 ps=/
 worker.list=ajp12, ajp13
 worker.ajp13.port=8009
 worker.ajp13.host=toecutter
 worker.ajp13.type=ajp13
 
 Modified jakarta-tomcat-4.0.4/conf/server.xml as follows : (see
 attached)
 
 Server port=8005 shutdown=SHUTDOWN debug=0
#added line  Listener
 className=org.apache.ajp.tomcat4.config.ApacheConfig
 modJk=/usr/local/apache2/libexec/mod_jk-3.3-ap13-noeapi.so /
 
 and
 
   Host name=toecutter debug=0 appBase=webapps 
 unpackWARs=true
 #added line   Listener
 className=org.apache.ajp.tomcat4.config.ApacheConfig append=true
 forwardAll=false /
 
 Apache -
 Compiled Apache1.3.19 with the following config -
 ./configure --prefix=/usr/local/apache2 --enable-module=so
 Added the following to httpd.conf (see attached)
 Include /usr/local/jakarta-tomcat-4.0.4/conf/auto/mod_jk.conf
 
 mod_jk -
 Added the binary mod_jk-3.3-ap13-noeapi.so to 
 /usr/local/apache2/libexec
 
 
 /apache2/logs/error_log contains the following :
 
 [Tue Aug 20 02:08:20 2002] [error] [client 192.168.0.7] File 
 does not exist:
 /usr/local/apache2/htdocs/examples/
 
 indicating that it isn't even trying to redirect and looks 
 for /examples
 under /apache2/htdocs
 Can someone please help me (thanks to those who have already 
 tried), can
 someone see a problem with my configuration ?
 
 
 
 Scott Adamson
 Systems Administrator
 Syware Technology
 
 [EMAIL PROTECTED]
 http://upe.com.au
 
 
 

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




server.xml guru needed for tomcat 4 on apache 1.3 issue

2002-08-10 Thread Dan Lindy

So here's the deal:

I've got several virtual hosts running under apache 1.3 each with it's own 
tomcat JVM. No issues there. The problem is that I am attempting to get 
them all to work with mod_ssl. Even worse, I've only got one IP to work 
with and SSL is IP-based so I can only define one virtual host on port 443 
in apache's httpd.conf.

The solution I've concocted uses mod_rewrite to map SSL requests based on 
the host name in the HTTP request. This actually works quite well. (And yes 
I've got mod_rewrite working fine with mod_webapp, took a bit of hacking 
though.) I am able to direct these requests to the appropriate tomcat 
instances as well, only it doesn't quite work as expected.

What happens is that for SSL requests, the server name in the VirtualHost 
_default_:443 section in httpd.conf does not match the defaultHost 
attribute for the Engine element in tomcat's server.xml. Oddly enough 
adding an additional matching Host to the Engine appears to have no 
effect. In fact everything works except tomcat is apparently using a 
different instance of the servlet being accessed for the SSL request vs the 
non-SSL request, which is highly problematic for various reasons.

I'd be happy to forward config files etc. to anyone who thinks they might 
know what's going on.  Suggestions for things I haven't tried yet are also 
most welcome.

Thanks,
Dan


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




RE: Tomcat 4, mod_jk, Apache 1.3.20

2002-07-26 Thread Michele Neylon -Blacknight Solutions

At 10.47 26/07/2002 -0400, you wrote:
Where are you storing your test.jsp?

It's in /home/sites/www.blacknightsolutions.com/web/test.jsp

As defined in the current configuration of my server.xml :
Server port=8005 shutdown=SHUTDOWN debug=0
   Service name=Tomcat-Apache
 Connector  debug=0
 acceptCount=10
 minProcessors=5
 maxProcessors=75
 port=8009
 className=org.apache.ajp.tomcat4.Ajp13Connector/

 Engine className=org.apache.catalina.connector.warp.WarpEngine
 name=Apache
 defaultHost=ns.blacknightsolutions.com
 debug=0
 appBase=webapps

   !-- Global logger unless overridden at lower levels --
   Logger className=org.apache.catalina.logger.FileLogger
   prefix=apache- suffix=.log
   timestamp=true/

 Host name=www.blacknightsolutions.com 
Context path=
  docBase=/home/sites/www.blacknightsolutions.com/web
  crossContext=true
  debug=0
  reloadable=false
  trusted=false 
/Context
 /Host
 Host name=www.david.blacknightsolutions.com 
Context path=
  docBase=/home/sites/www.david.blacknightsolutions.com/web
  crossContext=true
  debug=0
  reloadable=false
  trusted=false 
/Context
 /Host
 Host name=www.b2btechniques.net 
Context path=
  docBase=/home/sites/www.b2btechniques.net/web
  crossContext=true
  debug=0
  reloadable=false
  trusted=false 
/Context
 /Host

 /Engine
   /Service
/Server



Is it in your %CATALINA%/webapps/ROOT directory, or the directory
defined as your default context?

This is part of my problem! It's not in the ROOT directory, but in a 
virtual host.


Can you get to it by typing http://www.blacknightsolutions:8080/test.jsp
?

No. With a previous configuration I could get to the Tomcat welcome page at:
http://www.blacknightsolutions.com:8080
I have since tried a different configuration, but although a copy of the 
JSP examples (copied from the Tomcat/webapps/examples directory) is 
accessible at:
http://www.blacknightsolutions.com/examples/jsp/
nothing else involving Java is viewable and some of the examples aren't 
working either :-(

Tomcat seems to be intercepting requests for all .jsp pages, but doesn't 
seem to be mapping them correctly..



(I couldn't get to any blacknight site)

As to your question about a searchable archive,

There is:

http://www.mail-archive.com/tomcat-user@jakarta.apache.org/

And

http://www.mail-archive.com/tomcat-dev@jakarta.apache.org/

- Andrew

I'll try them - thanks!


  -Original Message-
  From: Michele Neylon -Blacknight Solutions
  [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, July 25, 2002 1:32 PM
  To: [EMAIL PROTECTED]
  Subject: Tomcat 4, mod_jk, Apache 1.3.20
 
 
  Hi all,
  I've been trying to configure Tomcat 4.0.4 with Apache 1.3.20
  using mod_jk on a Cobalt RAQ4. The problem seems to be in my
  virtual hosts declarations in server.xml Does anybody have an
  example of a server.xml configured for virtual hosts on
  Linux? At the moment: http://www.blacknightsolutions.com/test.jsp
  does not work, though http://www.blacknightsolutions.com/examples/jsp/
  does.
  Tomcat is running quite happily on port 8080 :
  http://www.blacknightsolutions.com:8080
  I've already looked
  at: http://www.galatea.com/flashguides/apache-tomcat-4-unix.xml
  but am still having problems
 
  Thanks for your time!
 
  Mr. Michele Neylon
  Blacknight Solutions - affordable linux hosting
http://www.blacknightsolutions.com/


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


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


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Mr. Michele Neylon
Blacknight Solutions - affordable linux hosting
http://www.blacknightsolutions.com/


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


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




RE: Tomcat 4, mod_jk, Apache 1.3.20

2002-07-26 Thread Andrew Conrad

Hmm, I see a few problems below

 -Original Message-
 From: Michele Neylon -Blacknight Solutions 
 [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, July 26, 2002 1:11 PM
 To: Tomcat Users List
 Subject: RE: Tomcat 4, mod_jk, Apache 1.3.20
 
 
 At 10.47 26/07/2002 -0400, you wrote:
 Where are you storing your test.jsp?
 
 It's in /home/sites/www.blacknightsolutions.com/web/test.jsp
 
 As defined in the current configuration of my server.xml : 
 Server port=8005 shutdown=SHUTDOWN debug=0
Service name=Tomcat-Apache
  Connector  debug=0
  acceptCount=10
  minProcessors=5
  maxProcessors=75
  port=8009
  className=org.apache.ajp.tomcat4.Ajp13Connector/
 
Did you delete your HTTP Connector on purpose ?  You should eventually
do that, but while your setting it up, I would keep it for testing
purposes.
Connector
className=org.apache.catalina.connector.http.HttpConnector
   port=8080 minProcessors=5 maxProcessors=75
   enableLookups=false redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=1
/

  Engine className=org.apache.catalina.connector.warp.WarpEngine
  name=Apache
  defaultHost=ns.blacknightsolutions.com
  debug=0
  appBase=webapps

Your Engine setup looks all wrong.  You probably shouldn't specify the
className, that way it will use the default className.  The WARPEngine
(bad name in my opinion) is a connector to Apache, not an Engine class.
If you were going to specify the className  it should be
org.apache.catalina.core.StandardEngine.  Your defaultHost MUST point
to an existing nested host element.  I don't see
ns.blacknightsolutions.com.

I got all the info here -
http://localhost:8080/tomcat-docs/config/engine.html

When configuring Tomcat, always make sure you can access your files on
the 8080 port

 
!-- Global logger unless overridden at lower levels --
Logger className=org.apache.catalina.logger.FileLogger
prefix=apache- suffix=.log
timestamp=true/
 
  Host name=www.blacknightsolutions.com 
 Context path=
   
 docBase=/home/sites/www.blacknightsolutions.com/web
   crossContext=true
   debug=0
   reloadable=false
   trusted=false 
 /Context
  /Host
  Host name=www.david.blacknightsolutions.com 
 Context path=
   
 docBase=/home/sites/www.david.blacknightsolutions.com/web
   crossContext=true
   debug=0
   reloadable=false
   trusted=false 
 /Context
  /Host
  Host name=www.b2btechniques.net 
 Context path=
   docBase=/home/sites/www.b2btechniques.net/web
   crossContext=true
   debug=0
   reloadable=false
   trusted=false 
 /Context
  /Host
 
  /Engine
/Service
 /Server
 
 
 
 Is it in your %CATALINA%/webapps/ROOT directory, or the directory 
 defined as your default context?
 
 This is part of my problem! It's not in the ROOT directory, 
 but in a virtual host.
 
 
 Can you get to it by typing 
 http://www.blacknightsolutions:8080/test.jsp
 ?
 
 No. With a previous configuration I could get to the Tomcat 
 welcome page at: http://www.blacknightsolutions.com:8080
 I have since tried a different configuration, but although a 
 copy of the JSP examples (copied from the 
 Tomcat/webapps/examples directory) is accessible at: 
 http://www.blacknightsolutions.com/examples/jsp/
 nothing else involving Java is viewable and some of the 
 examples aren't working either :-(
 
 Tomcat seems to be intercepting requests for all .jsp pages, 
 but doesn't seem to be mapping them correctly..
 
 
 
 (I couldn't get to any blacknight site)
 
 As to your question about a searchable archive,
 
 There is:
 
 http://www.mail-archive.com/tomcat-user@jakarta.apache.org/
 
 And
 
 http://www.mail-archive.com/tomcat-dev@jakarta.apache.org/
 
 - Andrew
 
 I'll try them - thanks!
 


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




Tomcat 4, mod_jk, Apache 1.3.20

2002-07-25 Thread Michele Neylon -Blacknight Solutions

Hi all,
I've been trying to configure Tomcat 4.0.4 with Apache 1.3.20 using mod_jk 
on a Cobalt RAQ4.
The problem seems to be in my virtual hosts declarations in server.xml
Does anybody have an example of a server.xml configured for virtual hosts 
on Linux?
At the moment:
http://www.blacknightsolutions.com/test.jsp
does not work, though
http://www.blacknightsolutions.com/examples/jsp/
does.
Tomcat is running quite happily on port 8080 :
http://www.blacknightsolutions.com:8080
I've already looked at:
http://www.galatea.com/flashguides/apache-tomcat-4-unix.xml
but am still having problems

Thanks for your time!

Mr. Michele Neylon
Blacknight Solutions - affordable linux hosting
http://www.blacknightsolutions.com/


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


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




Deploying a Webapp with Tomcat 4 and Apache 2

2002-05-31 Thread Frederick Aubert

Hi,

After many tries I finally succeeded in connecting Apache 2 to Tomcat 4
using mod_jk. Now everything is fine as long as I am not trying fancy
things. Actually what I want to achieve is to have my webapp in a directory
somewhere else on my disk (ie. not in default tomcat/webapps directory)...

Now to the problem, I set things up and now when I am trying to browse my
webapp with a browser I am served static files correctly (.ie I am served
mydirectory/mywebapp/index.html, and not tomcat/webapps/mywebapp/index.html)
but whenever Tomcat would need to serve a jsp, it is actually using a jsp
located at tomcat/webapps/mywebapp/mytest.jsp instead of
mydirectory/mywebapp/mytest.jsp... If I delete the former, then it is said
the file does not exist. Any idea of why it¹s going wrong? I suppose I did
misconfigure a deploying file. But wich one? Help would be greatly
welcomed...

Sincerely, Frederick Aubert

PS: I did specify in my mod_jk.conf (which is included by httpd.conf) a new
webapp as follow:

Alias /mywebapp ³E:/mydirectory/mywebapp²
Directory ³E:/mydirectory/mywebapp²
Options Indexes FollowSymLinks
DirectoryIndex index.jsp index.html index htm
/Directory
Location ³/mywebapp²/WEB-INF/*²
AllowOverride None
deny from all
/Location
Location ³/mywebapp²/META-INF/*²
AllowOverride None
deny from all
/Location
Directory ³E:/mydirectory/mywebapp/WEB-INF/²
AllowOverride None
deny from all
/Directory
Directory ³E:/mydirectory/mywebapp/META-INF/²
AllowOverride None
deny from all
/Directory

JkMount /mywebapp/*.jsp ajp 1.3


---
  (`-''-/).___..--''`-._
   `6_ 6  )   `-.  ( ).`-.__.`)   Frederick Aubert
   (_Y_.)'  ._   )  `._ `. ``-..-'
 _..`--'_..-_/  /--'_.' ,'[EMAIL PROTECTED]
(il),-''  (li),'  ((!.-'
--- 




RE: unable to serve static pages through apache web server (Tomcat 4. 0 - Apache using AJP connector)

2002-05-20 Thread Paresh Deshpande

Hi Scott,
Thanks for your suggestion. Definitely a decent workaround.
But I am not clear about the usage of this piece of code.
I am only using servlets and static files in my application.
Should I generate servlet equivalent of this JSP for my usage?
Also, where should I place this file? How will requests go to 
this file if I get a page not found error? Is there any specific 
action / configuration for that?

thanks
Paresh

-Original Message-
From: pixel [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 20, 2002 09:41 PM
To: Tomcat Users List
Subject: Re: unable to serve static pages through apache web server
(Tomcat 4. 0 - Apache using AJP connector)


Paresh,

While I'm unsure about your Apache configuration, I had a similar 
problem with case sensitivity and Tomcat 4.x so came up with the 
following custom error page .

%@page language=java import=java.io.* %
%
String requestedURL = 
((String)request.getAttribute(javax.servlet.error.message)).toLowerCase();
ServletContext ctx = getServletContext();
String realPath = ctx.getRealPath(requestedURL);

try {
File reqFile = new File(realPath);
 if (reqFile.exists()) {
response.sendRedirect(requestedURL);
 }
} catch (Exception ex) {}
%
html
head
titleERROR PAGE/title
/head

/html

This page checks for a lower case version of the URL and redirects to it 
if found. This is a very simple example. Nothing fancy.

Note: This will not provide the referrer or parameters from the original 
request, although it might be possible if you get that data from the 
error page and use a RequestDispacher to pass it to the correct page.

~Scott

Paresh Deshpande wrote:

Hello,
I have installed Apache web server (Apache/1.3.24 (Win32) mod_jk/1.1.0)
with
Tomcat as servlet engine (Apache Tomcat/4.0.3) to serve my application. 
I am using AJP connector to integrate tomcat with apache installation.
   Now regarding my problem, all my requests for static content (gifs,
html files) 
as well as for servlets in webapp folder end up getting served 
by tomcat (i.e. when I type url http://localhost:8090/app1/test.html ,
where localhost:8090 stands for apache web server and app1 for the webapp
folder for app1, 
I see test.html which is served by tomcat). 
Is it possible for apache web server to load static pages and for tomcat to
serve only 
the servlets? 
   Reason I want to load static pages via apache is that tomcat is case
sensitive even for
the static pages. If I type http://localhost:8090/app1/test.HTml , I get
page not found error
(and the error is served by tomcat). And in earlier versions of
apache/tomcat setup,
the static pages were served by apache instead of tomcat. Question is how
can the page now be 
loaded via apache web server? Is there a way of configuring apache to serve
static pages 
even in app1 folder / application?  Or do I need to make any correction to
my configuration?

regards
Paresh

Plaese find attached :

   1 server.xml
   2 httpd.conf
   3 auto generated mod_jk.conf

server.xml configuration is as follows:

Server port=8005 shutdown=SHUTDOWN debug=0

  Service name=Tomcat-Apache

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

Engine className=org.apache.catalina.core.StandardEngine
 name=localhost appBase=c:/program files/APPBASE/ debug=4

  Host name=localhost debug=4 appBase=c:/program files/APPBASE/
unpackWARs=false

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

  Context path=/app1 docBase=c:/program files/APPBASE/app1
debug=4 reloadable=true/

  /Host

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

/Engine

  /Service

/Server
***

AJP Connector related data in httpd.conf configuration is as follows :

##
##
ServerName localhost
##
##

##
##
##
Port 8090
##
##
##

Alias /app1 c:/program files/APPBASE/app1/
AliasMatch ^/[Aa][Pp][Pp][1]/(.*) c:/program files/APPBASE/app1/

## AJP CONFIGURATION END

LoadModule jk_module libexec/mod_jk.dll

# Configure mod_jk

JkWorkersFile C:/Program Files/Apache Tomcat
4.0/conf/jk/workers.properties
JkLogFile C:/Program Files/Apache Tomcat 4.0/logs/mod_jk.log
JkLogLevel debug

JkMount /servlet/* ajp13
JkMount /app1/servlet/com.trivium.cis.* ajp13

Include C:/Program Files/Apache Tomcat 4.0/conf/auto/mod_jk.conf

## AJP CONFIGURATION END


Here is auto generated mod_jk.conf file :

*
VirtualHost localhost
ServerName localhost

JkMount /app1 ajp13
JkMount /app1/* ajp13
/VirtualHost

**

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




  





--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED

RE: unable to serve static pages through apache web server (Tomcat 4. 0 - Apache using AJP connector)

2002-05-20 Thread Paresh Deshpande

Hi,
It would really be great if someone could tell me whether 
the static content is at all served by Apache web server :) . Even
the directory browsing ends up getting shown by tomcat web server 
instead of apache Web server.
thanks
Paresh
(I have included necessary configuration files at the end, let me know if
any other information is required).

-Original Message-
From: pixel [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 20, 2002 09:41 PM
To: Tomcat Users List
Subject: Re: unable to serve static pages through apache web server
(Tomcat 4. 0 - Apache using AJP connector)


Paresh,

While I'm unsure about your Apache configuration, I had a similar 
problem with case sensitivity and Tomcat 4.x so came up with the 
following custom error page .

%@page language=java import=java.io.* %
%
String requestedURL = 
((String)request.getAttribute(javax.servlet.error.message)).toLowerCase();
ServletContext ctx = getServletContext();
String realPath = ctx.getRealPath(requestedURL);

try {
File reqFile = new File(realPath);
 if (reqFile.exists()) {
response.sendRedirect(requestedURL);
 }
} catch (Exception ex) {}
%
html
head
titleERROR PAGE/title
/head

/html

This page checks for a lower case version of the URL and redirects to it 
if found. This is a very simple example. Nothing fancy.

Note: This will not provide the referrer or parameters from the original 
request, although it might be possible if you get that data from the 
error page and use a RequestDispacher to pass it to the correct page.

~Scott

Paresh Deshpande wrote:

Hello,
I have installed Apache web server (Apache/1.3.24 (Win32) mod_jk/1.1.0)
with
Tomcat as servlet engine (Apache Tomcat/4.0.3) to serve my application. 
I am using AJP connector to integrate tomcat with apache installation.
   Now regarding my problem, all my requests for static content (gifs,
html files) 
as well as for servlets in webapp folder end up getting served 
by tomcat (i.e. when I type url http://localhost:8090/app1/test.html ,
where localhost:8090 stands for apache web server and app1 for the webapp
folder for app1, 
I see test.html which is served by tomcat). 
Is it possible for apache web server to load static pages and for tomcat to
serve only 
the servlets? 
   Reason I want to load static pages via apache is that tomcat is case
sensitive even for
the static pages. If I type http://localhost:8090/app1/test.HTml , I get
page not found error
(and the error is served by tomcat). And in earlier versions of
apache/tomcat setup,
the static pages were served by apache instead of tomcat. Question is how
can the page now be 
loaded via apache web server? Is there a way of configuring apache to serve
static pages 
even in app1 folder / application?  Or do I need to make any correction to
my configuration?

regards
Paresh

Plaese find attached :

   1 server.xml
   2 httpd.conf
   3 auto generated mod_jk.conf

server.xml configuration is as follows:

Server port=8005 shutdown=SHUTDOWN debug=0

  Service name=Tomcat-Apache

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

Engine className=org.apache.catalina.core.StandardEngine
 name=localhost appBase=c:/program files/APPBASE/ debug=4

  Host name=localhost debug=4 appBase=c:/program files/APPBASE/
unpackWARs=false

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

  Context path=/app1 docBase=c:/program files/APPBASE/app1
debug=4 reloadable=true/

  /Host

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

/Engine

  /Service

/Server
***

AJP Connector related data in httpd.conf configuration is as follows :

##
##
ServerName localhost
##
##

##
##
##
Port 8090
##
##
##

Alias /app1 c:/program files/APPBASE/app1/
AliasMatch ^/[Aa][Pp][Pp][1]/(.*) c:/program files/APPBASE/app1/

## AJP CONFIGURATION END

LoadModule jk_module libexec/mod_jk.dll

# Configure mod_jk

JkWorkersFile C:/Program Files/Apache Tomcat
4.0/conf/jk/workers.properties
JkLogFile C:/Program Files/Apache Tomcat 4.0/logs/mod_jk.log
JkLogLevel debug

JkMount /servlet/* ajp13
JkMount /app1/servlet/com.trivium.cis.* ajp13

Include C:/Program Files/Apache Tomcat 4.0/conf/auto/mod_jk.conf

## AJP CONFIGURATION END


Here is auto generated mod_jk.conf file :

*
VirtualHost localhost
ServerName localhost

JkMount /app1 ajp13
JkMount /app1/* ajp13
/VirtualHost

**

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

RE: Tomcat 4 with Apache 1.3

2002-03-21 Thread Arnaud Heritier
 directly accessing META-INF
#
Location /admin/META-INF/
AllowOverride None
deny from all
/Location
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
Directory C:/Programs/Tomcat4.0.1/webapps/admin/META-INF/
AllowOverride None
deny from all
/Directory

###
# Auto configuration for the /admin context ends.
###


You should modify all directories for your system.
This example should deploy contexts /examples and /admin under apache.

Start Tomcat and Apache. I should work.

For the files configuration syntaxe you can see the documentation of Tomcat 3.3.
This is the same adapter used for TC 3.3 and TC 4.

http://jakarta.apache.org/tomcat/tomcat-3.3-doc/Tomcat-Workers-HowTo.html
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/mod_jk-howto.html


Good luck.


 


 -Message d'origine-
 De:   Robert Douglass [SMTP:[EMAIL PROTECTED]]
 Date: mardi 19 mars 2002 12:55
 A:Tomcat-User@Jakarta. Apache. Org
 Objet:Tomcat 4 with Apache 1.3
 
 Could someone please point me to a FAQ or other resource that expains how to
 configure Tomcat and Apache to run with each other (WIN2K)? I haven't found
 this in the Tomcat user's manual. I am new to both systems and need
 something aimed at newbies. Thanks,
 Robert Douglass
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



workers.properties
Description: Binary data

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


Tomcat 4 with Apache 1.3

2002-03-19 Thread Robert Douglass

Could someone please point me to a FAQ or other resource that expains how to
configure Tomcat and Apache to run with each other (WIN2K)? I haven't found
this in the Tomcat user's manual. I am new to both systems and need
something aimed at newbies. Thanks,
Robert Douglass


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




Re: Tomcat 4 and Apache

2002-02-25 Thread Frank

I had the same problem

here is the relevant code for /etc/conf/httpd.conf

*** insert at the end of LoadModules
LoadModule webapp_module modules/mod_webapp.so

* insert at end of AddModules
AddModule mod_webapp.c

 add the virtual host www.testdomain.com where shown
# Virtual hosts


# Virtual host Default Virtual Host
VirtualHost _default_:*



   ServerName  _default_

  DirectoryIndex  index.php index.html index.htm index.shtml


   ServerSignature email











   LogLevel  warn
   HostNameLookups off




/VirtualHost

#NameVirtualHost 127.0.0.1

VirtualHost www.testdomain.com
ServerName www.testdomain.com
ServerAdmin root@localhost
DocumentRoot /var/www/html

WebAppConnection testWarp warp www.testdomain.com:8008
WebAppDeploy examples testWarp /examples/
WebAppDeploy workout testWarp /workout/
/VirtualHost

define a host in your Hosts file like
www.testdomain.com 192.168.1.200 Mendelsohn

Configured thusly,   you can access servlets from outside as 
http://Mendelsohn/workout/servlet/DBOopen for instance.  So if you have 
an Applet which calls a servlet, this will work fine (it's rally 
executing from outside)

A flaw in this arrangement is that from inside you need to do 
http://www.testdomain.com/workout/servlet/DBOpen  I think this is 
fixable, but haven't gotten to it yet.


I haven't seen a big performance increase from this, but you would need 
to implement this rather than tomcat standalone for security reasons I 
think.


Also you MUST start tomcat before apache.

[EMAIL PROTECTED] wrote:

 Hi everyone,
 
 I'm sorry that I'm probably the 100th person to ask this, but I have
 searched google groups and the archives of this mailing list, both of which
 failed to help me setting up Tomcat 4.01 with Apache 1.3.23 on Windows.
 
 I have tried to load both mod_jk.dll and mod_webapp.so in Apache. mod_jk
 gives me the following error:
 Syntax error on line 195 of c:/programme/wamp/apache/conf/httpd.conf:
 Can't locate API module structure `mod_jk' in file
 c:/programme/wamp/apache/modules/mod_jk.dll: (127) Die angegebene Prozedur
 wurde nicht gefunden:
 
 The last bit translates to The specified procedure was not found. The
 relevant lines in my httpd.conf are
 LoadModule mod_jk modules/mod_jk.dll
 AddModule mod_jk.c
 
 I had more luck with mod_webapp, which loads properly using these lines:
 LoadModule webapp_module modules/mod_webapp.so
 AddModule mod_webapp.c
 WebAppConnection conn  warp  localhost:8008
 
 But when I add either (or both) of these lines
 WebAppInfo /webapp-info
 WebAppDeploy examples conn  /examples
 
 apache -t gives me the following error:
 C:\Programme\Wamp\Apacheapache -t
 Syntax error on line 256 of c:/programme/wamp/apache/conf/httpd.conf:
 Invalid virtual host name
 
 where in line 256 is either one (or the first of)
 WebAppInfo /webapp-info
 WebAppDeploy examples conn  /examples
 
 I have found out that other users had this problem when their ServerName
 directive was commented out in their httpd.conf, and I have tried that
 already, without luck.
 
 Does anybody have an idea how to solve this problem?
 
 Thank you very much
 Kristian
 
 
 --
 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]




Connection Tomcat 4 to Apache 2

2002-02-25 Thread Dave Ferguson

Greetings,

I am trying to use the Warp protocol to get Tomcat 4.0.2 working with Apache 2.0.32 
(beta).  I am on Win2K.  I have copied mod_webapp.so and libapr.dll to the modules 
subdirectory and added the following lines to httpd.conf.  (Note: AddModule command is 
obsolete in Apache 2).

  LoadModule webapp_module modules/mod_webapp.so
  WebAppConnection conn warp localhost:8008
  WebAppDeploy examples conn /examples

When I try to start Apache, it chokes on the first line with this error:

  Cannot load D:/Apache2/modules/mod_webapp.so into server: The specified module could 
not be found.

The file is there.  What could I be missing?

Dave F.



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




RE: Tomcat 4 and Apache

2002-02-24 Thread Kristian Duske

Hi Brian,

 I think I see the problem.
 you do NOT need the line:
 AddModule mod_jk.c

Thanks for your tip, but this didn't fix it for me. I'm still at a loss
here.

Regards
Kristian


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




Re: Tomcat 4 and Apache

2002-02-24 Thread Pascal Chong

You need to uncomment ServerName directive in httpd.conf and change the
default server name there to your server's Fully Qualified Domain Name or IP
address. The error you are seeing is because ServerName has not been
changed.

Regards,
Pascal Chong


- Original Message -
From: Kristian Duske [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Sunday, February 24, 2002 6:10 PM
Subject: RE: Tomcat 4 and Apache


 Hi Brian,

  I think I see the problem.
  you do NOT need the line:
  AddModule mod_jk.c

 Thanks for your tip, but this didn't fix it for me. I'm still at a loss
 here.

 Regards
 Kristian


 --
 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: Tomcat 4 and Apache

2002-02-24 Thread Kristian Duske

 You need to uncomment ServerName directive in httpd.conf and change the
 default server name there to your server's Fully Qualified Domain
 Name or IP
 address. The error you are seeing is because ServerName has not been
 changed.

I tried both the machine name, localhost and the ip adress, but none of
these worked. I have installed Tomcat on my linux box along with Apache now,
and it works fine there (however, I had to compile mod_webapp.so myself).
I'd still be interested to get it to run on my Windows box though in case I
have to use it on my laptop.

Thank you for your tip
Kristian


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




Re: Tomcat 4 and Apache

2002-02-24 Thread rsequeira


I'm treading in quicksand here. But did you add the JkMount statements? I
was getting the a similar error Can't locate API module structure... with
mod_webapp till I added the WebAppConnection and WebAppDeploy statements.
Maybe I'm wrong. Just trying to help :-)
RS





Kristian Duske [EMAIL PROTECTED] on 02/23/2002 01:11:08 PM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:

Subject:  Tomcat 4 and Apache

Hi everyone,

I'm sorry that I'm probably the 100th person to ask this, but I have
searched google groups and the archives of this mailing list, both of which
failed to help me setting up Tomcat 4.01 with Apache 1.3.23 on Windows.

I have tried to load both mod_jk.dll and mod_webapp.so in Apache. mod_jk
gives me the following error:
Syntax error on line 195 of c:/programme/wamp/apache/conf/httpd.conf:
Can't locate API module structure `mod_jk' in file
c:/programme/wamp/apache/modules/mod_jk.dll: (127) Die angegebene Prozedur
wurde nicht gefunden:

The last bit translates to The specified procedure was not found. The
relevant lines in my httpd.conf are
LoadModule mod_jk modules/mod_jk.dll
AddModule mod_jk.c

I had more luck with mod_webapp, which loads properly using these lines:
LoadModule webapp_module modules/mod_webapp.so
AddModule mod_webapp.c
WebAppConnection conn  warp  localhost:8008

But when I add either (or both) of these lines
WebAppInfo /webapp-info
WebAppDeploy examples conn  /examples

apache -t gives me the following error:
C:\Programme\Wamp\Apacheapache -t
Syntax error on line 256 of c:/programme/wamp/apache/conf/httpd.conf:
Invalid virtual host name

where in line 256 is either one (or the first of)
WebAppInfo /webapp-info
WebAppDeploy examples conn  /examples

I have found out that other users had this problem when their ServerName
directive was commented out in their httpd.conf, and I have tried that
already, without luck.

Does anybody have an idea how to solve this problem?

Thank you very much
Kristian


--
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: Tomcat 4 and Apache

2002-02-24 Thread Kristian Duske

 I'm treading in quicksand here. But did you add the JkMount statements? I
 was getting the a similar error Can't locate API module
 structure... with
 mod_webapp till I added the WebAppConnection and WebAppDeploy statements.
 Maybe I'm wrong. Just trying to help :-)

No, that's not the problem either - I get the Can't locate... error with
mod_jk, I get Invalid virtual host name errors with mod_webapp.

Thanks anyway =)
Kristian


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




RE: Tomcat 4 and Apache

2002-02-24 Thread Brian Adams

Kristian,
Here are my files... look at them and see if you can find yours..
I am not running Virtual hosts but I have hooks into both mod_jk and
mpd_webapp (currently I only use mod_jk).
see if this helps.
I think I am using examples and a webapp named bbb.
Goodluck,
B

-Original Message-
From: Kristian Duske [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 24, 2002 3:48 PM
To: Tomcat Users List
Subject: RE: Tomcat 4 and Apache


 I'm treading in quicksand here. But did you add the JkMount statements? I
 was getting the a similar error Can't locate API module
 structure... with
 mod_webapp till I added the WebAppConnection and WebAppDeploy statements.
 Maybe I'm wrong. Just trying to help :-)

No, that's not the problem either - I get the Can't locate... error with
mod_jk, I get Invalid virtual host name errors with mod_webapp.

Thanks anyway =)
Kristian


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



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

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

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

Server port=8005 shutdown=SHUTDOWN debug=0


  !-- Uncomment this entry to enable JMX MBeans support --
!--
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0 port=-1 login=admin password=admin/
--

  !-- Global JNDI resources --
  GlobalNamingResources
Environment name=simpleValue type=java.lang.Integer value=30/
  /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 HTTP/1.1 Connector on port 8080 --
Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8080 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=6/
!-- Note : To disable connection timeouts, set connectionTimeout value 
 to -1 --

!-- Define an SSL HTTP/1.1 Connector on port 8443 --

   !-- Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8443 minProcessors=5 maxProcessors=75
   enableLookups=false
	   acceptCount=10 debug=0 scheme=https secure=true
  Factory className=org.apache.catalina.net.SSLServerSocketFactory
   clientAuth=false protocol=TLS/
/Connector
   --

!-- Define an AJP 1.3 Connector on port 8009 --

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


!-- Define a Proxied HTTP/1.1 Connector on port 8081 --
!-- See proxy documentation for more information about using

Tomcat 4 and Apache

2002-02-23 Thread Kristian Duske

Hi everyone,

I'm sorry that I'm probably the 100th person to ask this, but I have
searched google groups and the archives of this mailing list, both of which
failed to help me setting up Tomcat 4.01 with Apache 1.3.23 on Windows.

I have tried to load both mod_jk.dll and mod_webapp.so in Apache. mod_jk
gives me the following error:
Syntax error on line 195 of c:/programme/wamp/apache/conf/httpd.conf:
Can't locate API module structure `mod_jk' in file
c:/programme/wamp/apache/modules/mod_jk.dll: (127) Die angegebene Prozedur
wurde nicht gefunden:

The last bit translates to The specified procedure was not found. The
relevant lines in my httpd.conf are
LoadModule mod_jk modules/mod_jk.dll
AddModule mod_jk.c

I had more luck with mod_webapp, which loads properly using these lines:
LoadModule webapp_module modules/mod_webapp.so
AddModule mod_webapp.c
WebAppConnection conn  warp  localhost:8008

But when I add either (or both) of these lines
WebAppInfo /webapp-info
WebAppDeploy examples conn  /examples

apache -t gives me the following error:
C:\Programme\Wamp\Apacheapache -t
Syntax error on line 256 of c:/programme/wamp/apache/conf/httpd.conf:
Invalid virtual host name

where in line 256 is either one (or the first of)
WebAppInfo /webapp-info
WebAppDeploy examples conn  /examples

I have found out that other users had this problem when their ServerName
directive was commented out in their httpd.conf, and I have tried that
already, without luck.

Does anybody have an idea how to solve this problem?

Thank you very much
Kristian


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




RE: Tomcat 4 and Apache

2002-02-23 Thread Brian Adams

Hi Kristian,
I think I see the problem.
you do NOT need the line:
AddModule mod_jk.c


I have seen this error before and I am no connection geek but I thought this
line was not needed for mod_jk and I cchecked with my config and myne does
not have it either.

Goodluck,
brian

-Original Message-
From: Kristian Duske [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 23, 2002 1:11 PM
To: [EMAIL PROTECTED]
Subject: Tomcat 4 and Apache


Hi everyone,

I'm sorry that I'm probably the 100th person to ask this, but I have
searched google groups and the archives of this mailing list, both of which
failed to help me setting up Tomcat 4.01 with Apache 1.3.23 on Windows.

I have tried to load both mod_jk.dll and mod_webapp.so in Apache. mod_jk
gives me the following error:
Syntax error on line 195 of c:/programme/wamp/apache/conf/httpd.conf:
Can't locate API module structure `mod_jk' in file
c:/programme/wamp/apache/modules/mod_jk.dll: (127) Die angegebene Prozedur
wurde nicht gefunden:

The last bit translates to The specified procedure was not found. The
relevant lines in my httpd.conf are
LoadModule mod_jk modules/mod_jk.dll
AddModule mod_jk.c

I had more luck with mod_webapp, which loads properly using these lines:
LoadModule webapp_module modules/mod_webapp.so
AddModule mod_webapp.c
WebAppConnection conn  warp  localhost:8008

But when I add either (or both) of these lines
WebAppInfo /webapp-info
WebAppDeploy examples conn  /examples

apache -t gives me the following error:
C:\Programme\Wamp\Apacheapache -t
Syntax error on line 256 of c:/programme/wamp/apache/conf/httpd.conf:
Invalid virtual host name

where in line 256 is either one (or the first of)
WebAppInfo /webapp-info
WebAppDeploy examples conn  /examples

I have found out that other users had this problem when their ServerName
directive was commented out in their httpd.conf, and I have tried that
already, without luck.

Does anybody have an idea how to solve this problem?

Thank you very much
Kristian


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




Tomcat 4 and Apache w/ webapp module

2002-02-02 Thread salphonse


Hello.
I have installed apache-1.3.20-16 and tomcat4-4.0.2-b2.1 with 
mod_webapp-1.0.2-1 on Linux/Red Hat 7.2. The httpd.conf I am able to set up a 
test jsp page and it works under the following directory 
/var/tomcat4/webapps/jsp. When I  try the same test jsp page under the 
directory of /var/www/html I don't the desired jsp results. What am I doing 
wrong?

Thank-you for your time.

Sean Alphonse.


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




Re: Tomcat 4 and Apache 1.3

2002-01-07 Thread Marcelo Demestri

Hi Jose!
I have the same problem.
When I install Tomcat 4.0.1 and Apache 1.3.22 in an environment W2K
professional with JDK 1.3.1 and the mod_webapp WARP connector, I get the
following problem:
Whenever I try to access the Tomcat example index page:

[...]/examples/jsp/index.html

The plain text is displayed, but then Apache hangs downloading the gifs.
And I have to restart Apache.
However I do not have the problem running Tomcat in Stand-alone mode.

I think the occurrence of the log infinite is when Tomcat try to serve
the static content of a page.
Hopefully a Tomcat guru can tell us what's the problem and how to
solve.


Marcelo

P.S.: you talk spanish?

- Original Message -
From: Jose F. Osorio [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, January 06, 2002 10:05 PM
Subject: Tomcat 4 and Apache 1.3


 Hello List Members,

 I have pretty much spent the day upgrading my laptop from Tomcat 3.2.1 to
 Tomcat 4.0.1
 
 Laptop PIII 750 running Windows2000 Profesional.
 Java JDK 1.3
 

 The previous installation was very smooth and stable. The examples web app
 and my own deployed servlets worked fine under the older version.

 I installed the mod_webapp module and dll as per instructions. Set
 CATALINA_HOME to the folder where I installed the new version, made the
new
 entries in apache's http configuration file, and everything else as per
the
 installtion and config instructions.

 In reviewing fresh log files, it appears that both tomcat and apache
 comunicate with each other (I start tomcat first, then apache http
server.)
 Proof of this, I hope, is that I am able to see the main index.html page
 from the examples web application distributed with tomcat.

 If I don't start tomcat, then I am not able to browse that page. So, this
 tells me that the jsp/servlet container does comununicate with apache.

 As soon as I click on any of the links to run any of the sample
jsp/servlets
 from, the browser submits the request and just waits for responses from
the
 server. While this is going on, tomcat's  apache log file grows and grows.

 As you examine the log file below, the beginning of it shows what appears
to
 be normal initialization info. Then, later on you will see the repeating
 error messages from the request to run a sample application.

 Any ideas as to what am I doing wrong or missing?

 By the way, I have not listed server.jar in the CLASSPATH. I don't think
it
 is necessary to list it as it was not listed before and the older tomcat
 version worked fine.

 Thank you.

 Regards,

 Jose.


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




Tomcat 4 and Apache 1.3

2002-01-06 Thread Jose F. Osorio

Hello List Members,

I have pretty much spent the day upgrading my laptop from Tomcat 3.2.1 to
Tomcat 4.0.1

Laptop PIII 750 running Windows2000 Profesional.
Java JDK 1.3


The previous installation was very smooth and stable. The examples web app
and my own deployed servlets worked fine under the older version.

I installed the mod_webapp module and dll as per instructions. Set
CATALINA_HOME to the folder where I installed the new version, made the new
entries in apache's http configuration file, and everything else as per the
installtion and config instructions.

In reviewing fresh log files, it appears that both tomcat and apache
comunicate with each other (I start tomcat first, then apache http server.)
Proof of this, I hope, is that I am able to see the main index.html page
from the examples web application distributed with tomcat.

If I don't start tomcat, then I am not able to browse that page. So, this
tells me that the jsp/servlet container does comununicate with apache.

As soon as I click on any of the links to run any of the sample jsp/servlets
from, the browser submits the request and just waits for responses from the
server. While this is going on, tomcat's  apache log file grows and grows.

As you examine the log file below, the beginning of it shows what appears to
be normal initialization info. Then, later on you will see the repeating
error messages from the request to run a sample application.

Any ideas as to what am I doing wrong or missing?

By the way, I have not listed server.jar in the CLASSPATH. I don't think it
is necessary to list it as it was not listed before and the older tomcat
version worked fine.

Thank you.

Regards,

Jose.



2002-01-06 22:28:40 [org.apache.catalina.connector.warp.WarpConnector]
Connection from JOSELAPTOP.osoriosoft.com/192.200.207.13:1049 to
JOSELAPTOP.osoriosoft.com/192.200.207.13:8008
2002-01-06 22:28:40 WarpHost[joselaptop.osoriosoft.com]: Installing web
application at context path /examples from URL
file:C:\jakarta-tomcat-4.0.1\webapps\examples
2002-01-06 22:28:40 WebappLoader[/examples]: Deploying class repositories to
work directory
C:\jakarta-tomcat-4.0.1\work\joselaptop.osoriosoft.com\examples
2002-01-06 22:28:40 StandardManager[/examples]: Seeding random number
generator class java.security.SecureRandom
2002-01-06 22:28:40 StandardManager[/examples]: Seeding of random number
generator has been completed
2002-01-06 22:28:40 ContextConfig[/examples]: Configured an authenticator
for method FORM
2002-01-06 22:28:40 ContextListener: contextInitialized()
2002-01-06 22:28:40 SessionListener: contextInitialized()
2002-01-06 22:28:40 ContextListener:
attributeReplaced('org.apache.catalina.WELCOME_FILES',
'[Ljava.lang.String;@3bd574')
2002-01-06 22:28:40 StandardWrapper[/examples:default]: Loading container
servlet default
2002-01-06 22:28:40 default: init
2002-01-06 22:28:40 StandardWrapper[/examples:invoker]: Loading container
servlet invoker
2002-01-06 22:28:40 invoker: init
2002-01-06 22:28:40 jsp: init
2002-01-06 22:28:40
[org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter
mappings (2)

FROM THIS POINT ON, MESSAGES APPEAR TO HAVE BEEN GENERATED BY THE CLIENT
BROWSER's REQUEST.

2002-01-06 22:30:18 WarpEngine[Apache]: Mapping request
2002-01-06 22:30:18 WarpHost[joselaptop.osoriosoft.com]: Mapping request for
Host
2002-01-06 22:30:19 WarpEngine[Apache]: Mapping request
2002-01-06 22:30:19 WarpHost[joselaptop.osoriosoft.com]: Mapping request for
Host
2002-01-06 22:30:19 WarpEngine[Apache]: Mapping request
2002-01-06 22:30:19 WarpHost[joselaptop.osoriosoft.com]: Mapping request for
Host
2002-01-06 22:30:19 WarpEngine[Apache]: Mapping request
2002-01-06 22:30:19 WarpHost[joselaptop.osoriosoft.com]: Mapping request for
Host
2002-01-06 22:30:19 [org.apache.catalina.connector.warp.WarpConnection]
Exception on socket
java.net.SocketException: Connection aborted by peer: socket write error
at java.net.SocketOutputStream.socketWrite(Native Method)
at java.net.SocketOutputStream.write(SocketOutputStream.java:62)
at
org.apache.catalina.connector.warp.WarpConnection.send(WarpConnection.java:2
20)
at
org.apache.catalina.connector.warp.WarpResponse.sendHeaders(WarpResponse.jav
a:198)
at
org.apache.catalina.connector.HttpResponseBase.finishResponse(HttpResponseBa
se.java:228)
at
org.apache.catalina.connector.warp.WarpResponse.finishResponse(WarpResponse.
java:151)
at
org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand
ler.java:220)
at
org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:19
4)
at java.lang.Thread.run(Thread.java:484)

2002-01-06 22:30:23 [org.apache.catalina.connector.warp.WarpConnector]
Connection from JOSELAPTOP.osoriosoft.com/192.200.207.13:1050 to
JOSELAPTOP.osoriosoft.com/192.200.207.13:8008
2002-01-06 22:30:23

Configuring Tomcat 4 with Apache

2001-12-10 Thread Felipe de Alvarenga Leite

Hi,

I was using Tomcat at the standalone mode, and 
all was performing well. Then I put together 
Tomcat and Apache, and the problems started to 
appear.

My application works fine, put some libs are not 
found anymore (precisely the jce1_2_1), and 
neither does the reloadable function.  All the 
libs are at the correct place (/WEB-INF/lib), 
everything was working just fine before the 
Apache. I guess it is some problem with the 
Apache configuration. I am using mod_webapp and 
tomcat 4.0.1. All the help will be welcome. 

Here are some excerpts of the server.xml and 
httpd.conf:


httpd.conf:

LoadModule webapp_module modules/mod_webapp.so
AddModule mod_webapp.c

WebAppConnection warpConnection warp myhost:8008
WebAppDeploy examples warpConnection /examples
WebAppDeploy peopledb warpConnection /peopledb


server.xml:

Service name=Tomcat-Apache

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

Engine 
className=org.apache.catalina.connector.warp.Warp
Engine
 name=myhost 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


-
This mail sent through UK Online webmail

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




Tomcat 4 and Apache Web Server

2001-09-09 Thread Lars Nielsen Lind

Today I'm using the Jakarta-Tomcat 3.2.3 with Apache 1.3.20 (mod_jk). I know that I 
could use the Jakarta-Tomcat as Stand-A-Lone server  - but because of the advantages 
of using Apache due to its configuration options - I'm using it with Apache.

Question: Will it be possible to use the Jakarta-Tomcat 4.0 without Apache but with 
the same configuration options as mentioned above when using jakarta-tomcat with 
Apache?

/Lars Nielsen Lind







Re: Tomcat 4 and Apache Web Server

2001-09-09 Thread Pier Fumagalli

Lars Nielsen Lind [EMAIL PROTECTED] wrote:

 Today I'm using the Jakarta-Tomcat 3.2.3 with Apache 1.3.20 (mod_jk). I know
 that I could use the Jakarta-Tomcat as Stand-A-Lone server  - but because of
 the advantages of using Apache due to its configuration options - I'm using it
 with Apache.
 
 Question: Will it be possible to use the Jakarta-Tomcat 4.0 without Apache but
 with the same configuration options as mentioned above when using
 jakarta-tomcat with Apache?

It depends on what weird configuration options you're talking about... What
do you exactly tweak under Apache in your setup?

Pier




Re: Tomcat 4 and Apache Web Server

2001-09-09 Thread Lars Nielsen Lind

VirtualHosts + SSL.

But it is also done because Apache apparently supports the execution of static html 
files better than jakarta-tomcat.

/Lars Nielsen Lind

- Original Message - 
From: Pier Fumagalli [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, September 10, 2001 3:09 AM
Subject: Re: Tomcat 4 and Apache Web Server


 Lars Nielsen Lind [EMAIL PROTECTED] wrote:
 
  Today I'm using the Jakarta-Tomcat 3.2.3 with Apache 1.3.20 (mod_jk). I know
  that I could use the Jakarta-Tomcat as Stand-A-Lone server  - but because of
  the advantages of using Apache due to its configuration options - I'm using it
  with Apache.
  
  Question: Will it be possible to use the Jakarta-Tomcat 4.0 without Apache but
  with the same configuration options as mentioned above when using
  jakarta-tomcat with Apache?
 
 It depends on what weird configuration options you're talking about... What
 do you exactly tweak under Apache in your setup?
 
 Pier
 
 
 




Re: Tomcat 4 and Apache Web Server

2001-09-09 Thread Pier Fumagalli

Lars Nielsen Lind [EMAIL PROTECTED] wrote:

 VirtualHosts + SSL.

Both those are supported also by Tomcat 4.0 standalone...

 But it is also done because Apache apparently supports the execution of static
 html files better than jakarta-tomcat.

This will be automatically done for you with mod_webapp .NEXT (coming up
with 4.0RC1)...

Pier




Installing Tomcat 4 with Apache

2001-08-16 Thread Roberto B.

How I can Install Tomcat 4 to read jsp file and Apache to read HTML =
files??

Roberto.




Re: Installing Tomcat 4 with Apache

2001-08-16 Thread John Michael Luy

the documentation can be a good start...

- Original Message - 
From: Roberto B. [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 16, 2001 5:24 PM
Subject: Installing Tomcat 4 with Apache


 How I can Install Tomcat 4 to read jsp file and Apache to read HTML =
 files??
 
 Roberto.
 
 




Re: Installing Tomcat 4 with Apache

2001-08-16 Thread Roberto B.

Yes.. but the documentation for 4.0 is not still complete!

- Original Message - 
From: John Michael Luy [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 16, 2001 11:46 AM
Subject: Re: Installing Tomcat 4 with Apache


 the documentation can be a good start...
 
 - Original Message - 
 From: Roberto B. [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, August 16, 2001 5:24 PM
 Subject: Installing Tomcat 4 with Apache
 
 
  How I can Install Tomcat 4 to read jsp file and Apache to read HTML =
  files??
  
  Roberto.
  
  
 




Re: Installing Tomcat 4 with Apache

2001-08-16 Thread Pier P. Fumagalli

Roberto B. at [EMAIL PROTECTED] wrote:

 How I can Install Tomcat 4 to read jsp file and Apache to read HTML =
 files??

It's a feature I'm going to add as soon as I'm done with some security works
on our servers (darn!)

Pier




configuring tomcat 4 and apache 1.3

2001-07-25 Thread Marco Magistrali

Hi,

someone knows how to configurate tomcat 4 and apache 1.3 on winnt
system??

tanks!!




configuring tomcat 4 and apache 1.3

2001-07-25 Thread Marco Magistrali

Hi,

someone knows how to configurate tomcat 4 and apache 1.3 on winnt
system??

tanks!!
Marco





RE: Tomcat 4 and apache. How to make them work together?

2001-06-27 Thread Alejandro Arredondo

Krishna,

   Thanks a lot for your help. Unfortunately the
tomcat 4 version(catalina) doen not use the same
schema than tomcat 3 for configuration. I found some
documentation and I will try to see if it works. Any
way if it doesn't work I will install the older one.
Thank you again,

Alejandro Arredondo
P.S. I like you name a lot


--- Krishna Muthyala [EMAIL PROTECTED]
 wrote:
All you have to do is the following

include this line at the end of https.conf in
apache/conf

include path_to_tomcat/tomcat/conf/tomcat-apache.conf


and then do the following in tomcat.conf
uncomment the line based on which platform you are in


# Tell Apache on win32 to load the Apache JServ
communication module
 LoadModule jserv_module modules/ApacheModuleJServ.dll

# Tell Apache on Unix to load the Apache JServ
communication module
# For shared object builds only!!!
# @LOAD_OR_NOT@LoadModule jserv_module
@LIBEXECDIR@/mod_jserv.so
#LoadModule jserv_module libexec/mod_jserv.so

if its nt you have to get the .dll and place it in
apche/modules folder and if unix etc i think u are
fine.check to see if the above is present in your
modules folder.

you are set to go dude

Kris

--- Jann VanOver [EMAIL PROTECTED] wrote:
 Did you check the tomcat user guide?
 
 -Original Message-
 From: Alejandro Arredondo
 [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 26, 2001 7:31 AM
 To: [EMAIL PROTECTED]
 Subject: Tomcat 4 and apache. How to make them work
 together?
 
 
 I have installed Tomcat 4 configured it and it works
 fine. Now I want it to work with apache together. 
 Where can I find info on how to configure them?
 
 Thanks in advance,
 Alejandro Arredondo
 

_
 Free E-mail ---
 http://letodesigns.mail.everyone.net
 Letodesigns  Programming Free e-mail
 6MB limit
 http://letodesigns.8k.com


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

_
Free E-mail ---
http://letodesigns.mail.everyone.net
Letodesigns  Programming Free e-mail
6MB limit
http://letodesigns.8k.com



RE: Tomcat 4 and apache. How to make them work together?

2001-06-27 Thread Krishna Muthyala

Hi

Alej
Did you get it to work with tomcat4.0, I am planning
to migrate my apps to it.. post a not here is you did
or may be the steps to get it configured


Thanks

Krishna
--- Alejandro Arredondo
[EMAIL PROTECTED] wrote:
 Krishna,
 
Thanks a lot for your help. Unfortunately the
 tomcat 4 version(catalina) doen not use the same
 schema than tomcat 3 for configuration. I found some
 documentation and I will try to see if it works. Any
 way if it doesn't work I will install the older one.
 Thank you again,
 
 Alejandro Arredondo
 P.S. I like you name a lot
 
 
 --- Krishna Muthyala [EMAIL PROTECTED]
  wrote:
 All you have to do is the following
 
 include this line at the end of https.conf in
 apache/conf
 
 include
 path_to_tomcat/tomcat/conf/tomcat-apache.conf
 
 
 and then do the following in tomcat.conf
 uncomment the line based on which platform you are
 in
 
 
 # Tell Apache on win32 to load the Apache JServ
 communication module
  LoadModule jserv_module
 modules/ApacheModuleJServ.dll
 
 # Tell Apache on Unix to load the Apache JServ
 communication module
 # For shared object builds only!!!
 # @LOAD_OR_NOT@LoadModule jserv_module
 @LIBEXECDIR@/mod_jserv.so
 #LoadModule jserv_module libexec/mod_jserv.so
 
 if its nt you have to get the .dll and place it in
 apche/modules folder and if unix etc i think u are
 fine.check to see if the above is present in your
 modules folder.
 
 you are set to go dude
 
 Kris
 
 --- Jann VanOver [EMAIL PROTECTED] wrote:
  Did you check the tomcat user guide?
  
  -Original Message-
  From: Alejandro Arredondo
  [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, June 26, 2001 7:31 AM
  To: [EMAIL PROTECTED]
  Subject: Tomcat 4 and apache. How to make them
 work
  together?
  
  
  I have installed Tomcat 4 configured it and it
 works
  fine. Now I want it to work with apache together.
 
  Where can I find info on how to configure them?
  
  Thanks in advance,
  Alejandro Arredondo
  
 

_
  Free E-mail ---
  http://letodesigns.mail.everyone.net
  Letodesigns  Programming Free e-mail
  6MB limit
  http://letodesigns.8k.com
 
 
 __
 Do You Yahoo!?
 Get personalized email addresses from Yahoo! Mail
 http://personal.mail.yahoo.com/
 

_
 Free E-mail ---
 http://letodesigns.mail.everyone.net
 Letodesigns  Programming Free e-mail
 6MB limit
 http://letodesigns.8k.com


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



AW: Tomcat 4 and apache. How to make them work together?

2001-06-27 Thread Sladky, Jan

Hi Alejandro,
yesterday i tried to do the same, but had not the patience to get it done.
So i downloaded tomcat-3-3 and this has a  new feature.
tomcat automatically configures itself for Apache.
you have to insert 
ApacheConfig/
into the server.xml file. as i write this, i begin to understand, that
i dont understand this feature. Anyway, it works (examples run fine)
Maybe the approach on tomcat 4 is the same.

just an idea...

Jan

---
no, don't need no tagline

-Ursprüngliche Nachricht-
Von: Alejandro Arredondo [mailto:[EMAIL PROTECTED]]
Gesendet am: Mittwoch, 27. Juni 2001 17:24
An: [EMAIL PROTECTED]
Betreff: RE: Tomcat 4 and apache. How to make them work together?

Krishna,

   Thanks a lot for your help. Unfortunately the
tomcat 4 version(catalina) doen not use the same
schema than tomcat 3 for configuration. I found some
documentation and I will try to see if it works. Any
way if it doesn't work I will install the older one.
Thank you again,

Alejandro Arredondo
P.S. I like you name a lot


--- Krishna Muthyala [EMAIL PROTECTED]
 wrote:
All you have to do is the following

include this line at the end of https.conf in
apache/conf

include path_to_tomcat/tomcat/conf/tomcat-apache.conf


and then do the following in tomcat.conf
uncomment the line based on which platform you are in


# Tell Apache on win32 to load the Apache JServ
communication module
 LoadModule jserv_module modules/ApacheModuleJServ.dll

# Tell Apache on Unix to load the Apache JServ
communication module
# For shared object builds only!!!
# @LOAD_OR_NOT@LoadModule jserv_module
@LIBEXECDIR@/mod_jserv.so
#LoadModule jserv_module libexec/mod_jserv.so

if its nt you have to get the .dll and place it in
apche/modules folder and if unix etc i think u are
fine.check to see if the above is present in your
modules folder.

you are set to go dude

Kris

--- Jann VanOver [EMAIL PROTECTED] wrote:
 Did you check the tomcat user guide?
 
 -Original Message-
 From: Alejandro Arredondo
 [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 26, 2001 7:31 AM
 To: [EMAIL PROTECTED]
 Subject: Tomcat 4 and apache. How to make them work
 together?
 
 
 I have installed Tomcat 4 configured it and it works
 fine. Now I want it to work with apache together. 
 Where can I find info on how to configure them?
 
 Thanks in advance,
 Alejandro Arredondo
 

_
 Free E-mail ---
 http://letodesigns.mail.everyone.net
 Letodesigns  Programming Free e-mail
 6MB limit
 http://letodesigns.8k.com


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

_
Free E-mail ---
http://letodesigns.mail.everyone.net
Letodesigns  Programming Free e-mail
6MB limit
http://letodesigns.8k.com



RE: Tomcat 4 and apache. How to make them work together?

2001-06-26 Thread Jann VanOver

Did you check the tomcat user guide?

-Original Message-
From: Alejandro Arredondo [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 7:31 AM
To: [EMAIL PROTECTED]
Subject: Tomcat 4 and apache. How to make them work together?


I have installed Tomcat 4 configured it and it works
fine. Now I want it to work with apache together. 
Where can I find info on how to configure them?

Thanks in advance,
Alejandro Arredondo

_
Free E-mail ---
http://letodesigns.mail.everyone.net
Letodesigns  Programming Free e-mail
6MB limit
http://letodesigns.8k.com



How do I make work tomcat 4 with apache?

2001-06-24 Thread Alejandro Arredondo

Hi,

   How do I make work tomcat 4.0 with apache 1.3.19
under linux? 

Thanks in advance
Alejandro Arredondo

_
Free E-mail ---
http://letodesigns.mail.everyone.net
Letodesigns  Programming Free e-mail
6MB limit
http://letodesigns.8k.com



Re:Problem running tomcat 4 in apache 1.3.19

2001-05-23 Thread Tomasz.Sucharzewski


Would you please tell me how to compile web_apps.so.
I got error with pthread ... (serveral people had the same error but I could not
find the solution on tomcat list) when i start apache. Someone suggested that
module should be compiled with LD_LIBRARY_PATH properly set up, but I checked it
and it still does not work.

My machine:
Linux Mandrake with kernel 2.4.1
IBMJdk1.3
gcc version: 2.95.3

Regards,
Tomek



 /) Tomasz Sucharzewski  (\
/ )Unix/Sybase Administrator ( \
  _( (__  Web-Application Development_) )_
 (((\ \  /_   Electronic Data Processing Department  _\  / /)))
 ( \_/ /  ING Bank N.V. \ \_/ )
  \   /  \   /
   \_/  phone: (+48 22) 820-41-58 \_/
   /   /  mobilephone: (+48 606) 666-015\   \
  /   / email: [EMAIL PROTECTED]   \   \



Reply Separator
Subject:Problem running tomcat 4 in apache 1.3.19
Author: [EMAIL PROTECTED]
Date:   01-05-21 23:58

Hi,

After a struggle to get tomcat 4 running on my systen (running on Linux with
jdk 1.3.1), I tried to configure tomcat 4 to run with apache. After
following (some) of the instructions in the server.xml and other sources I
got the web_webapp.so actually compiled and running in apache ( which
means : apache doesn't crash when I start it up..). I mounted the examples
to be served by tomcat 4 and when I go there (say
http://servername/examples/ I get a nice directory overview and I want to
click on servlets. then I get a nice exception (without exception..) :

java.lang.NullPointerException
at javax.servlet.http.HttpUtils.getRequestURL(HttpUtils.java:338)
at
org.apache.catalina.connector.HttpResponseBase.toAbsolute(HttpResponseBase.j
ava:669)
at
org.apache.catalina.connector.HttpResponseBase.sendRedirect(HttpResponseBase
.java:1072)
at
org.apache.catalina.connector.HttpResponseFacade.sendRedirect(HttpResponseFa
cade.java:150)
at
org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.jav
a:1084)
at
org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:519)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

snap a lot


All this stuff is working great on the 8080 port, which is handled by tomcat
itself.

Can anybody enlighten me on what is going on or how to correctly configure
(and compile) the connection to tomcat

Note : the example of mounting _INFO_ to eg /tomcatinfo/ works...

Thanx for the help..

Mvgr,
Martin van den Bemt



-
ATTENTION:
The information in this electronic mail message is private and
confidential, and only intended for the addressee. Should you
receive this message by mistake, you are hereby notified that
any disclosure, reproduction, distribution or use of this
message is strictly prohibited. Please inform the sender by
reply transmission and delete the message without copying or
opening it.

Messages and attachments are scanned for all viruses known.
If this message contains password-protected attachments, the
files have NOT been scanned for viruses by the ING mail domain.
Always scan attachments before opening them.
-



RE: Problem running tomcat 4 in apache 1.3.19

2001-05-23 Thread Martin van den Bemt

See http://marc.theaimsgroup.com/?l=tomcat-devm=99020542608948w=2 (the
ant-dev mailinglist...).
The Exception btw is caused by a bug... If you call the
http://servername/examples/servlets/ you get the nullpointer exception,
because it cannot find what the welcome page should be (eg index.html) and
passes the null value. If you call
http://servername/examples/servlets/index.html it works fine..

Have fun,

Martin van den Bemt


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 23, 2001 12:53 PM
 To: [EMAIL PROTECTED]
 Subject: Re:Problem running tomcat 4 in apache 1.3.19



 Would you please tell me how to compile web_apps.so.
 I got error with pthread ... (serveral people had the same error
 but I could not
 find the solution on tomcat list) when i start apache. Someone
 suggested that
 module should be compiled with LD_LIBRARY_PATH properly set up,
 but I checked it
 and it still does not work.

 My machine:
 Linux Mandrake with kernel 2.4.1
 IBMJdk1.3
 gcc version: 2.95.3

 Regards,
 Tomek



  /) Tomasz Sucharzewski  (\
 / )Unix/Sybase Administrator ( \
   _( (__  Web-Application Development_) )_
  (((\ \  /_   Electronic Data Processing Department  _\  / /)))
  ( \_/ /  ING Bank N.V. \ \_/ )
   \   /  \   /
\_/  phone: (+48 22) 820-41-58 \_/
/   /  mobilephone: (+48 606) 666-015\   \
   /   / email: [EMAIL PROTECTED]   \   \



 Reply Separator
 Subject:Problem running tomcat 4 in apache 1.3.19
 Author: [EMAIL PROTECTED]
 Date:   01-05-21 23:58

 Hi,

 After a struggle to get tomcat 4 running on my systen (running on
 Linux with
 jdk 1.3.1), I tried to configure tomcat 4 to run with apache. After
 following (some) of the instructions in the server.xml and other sources I
 got the web_webapp.so actually compiled and running in apache ( which
 means : apache doesn't crash when I start it up..). I mounted the examples
 to be served by tomcat 4 and when I go there (say
 http://servername/examples/ I get a nice directory overview and
 I want to
 click on servlets. then I get a nice exception (without exception..) :

 java.lang.NullPointerException
 at javax.servlet.http.HttpUtils.getRequestURL(HttpUtils.java:338)
 at
 org.apache.catalina.connector.HttpResponseBase.toAbsolute(HttpResp
 onseBase.j
 ava:669)
 at
 org.apache.catalina.connector.HttpResponseBase.sendRedirect(HttpRe
 sponseBase
 .java:1072)
 at
 org.apache.catalina.connector.HttpResponseFacade.sendRedirect(Http
 ResponseFa
 cade.java:150)
 at
 org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultS
 ervlet.jav
 a:1084)
 at
 org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:519)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

 snap a lot


 All this stuff is working great on the 8080 port, which is
 handled by tomcat
 itself.

 Can anybody enlighten me on what is going on or how to correctly configure
 (and compile) the connection to tomcat

 Note : the example of mounting _INFO_ to eg /tomcatinfo/ works...

 Thanx for the help..

 Mvgr,
 Martin van den Bemt



 -
 ATTENTION:
 The information in this electronic mail message is private and
 confidential, and only intended for the addressee. Should you
 receive this message by mistake, you are hereby notified that
 any disclosure, reproduction, distribution or use of this
 message is strictly prohibited. Please inform the sender by
 reply transmission and delete the message without copying or
 opening it.

 Messages and attachments are scanned for all viruses known.
 If this message contains password-protected attachments, the
 files have NOT been scanned for viruses by the ING mail domain.
 Always scan attachments before opening them.
 -





Problem running tomcat 4 in apache 1.3.19

2001-05-21 Thread Martin van den Bemt

Hi,

After a struggle to get tomcat 4 running on my systen (running on Linux with
jdk 1.3.1), I tried to configure tomcat 4 to run with apache. After
following (some) of the instructions in the server.xml and other sources I
got the web_webapp.so actually compiled and running in apache ( which
means : apache doesn't crash when I start it up..). I mounted the examples
to be served by tomcat 4 and when I go there (say
http://servername/examples/ I get a nice directory overview and I want to
click on servlets. then I get a nice exception (without exception..) :

java.lang.NullPointerException
at javax.servlet.http.HttpUtils.getRequestURL(HttpUtils.java:338)
at
org.apache.catalina.connector.HttpResponseBase.toAbsolute(HttpResponseBase.j
ava:669)
at
org.apache.catalina.connector.HttpResponseBase.sendRedirect(HttpResponseBase
.java:1072)
at
org.apache.catalina.connector.HttpResponseFacade.sendRedirect(HttpResponseFa
cade.java:150)
at
org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.jav
a:1084)
at
org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:519)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

snap a lot


All this stuff is working great on the 8080 port, which is handled by tomcat
itself.

Can anybody enlighten me on what is going on or how to correctly configure
(and compile) the connection to tomcat

Note : the example of mounting _INFO_ to eg /tomcatinfo/ works...

Thanx for the help..

Mvgr,
Martin van den Bemt




Tomcat 4 in Apache 1.3

2001-04-05 Thread Chad LaJoie

Tomcat 4 has the ability to un/deploy web apps on the fly (i.e. without 
restarting Tomcat).  Does anyone know what implications this has on 
Apache.  In Tomcat 3 mod_jk.conf was used to create maps between Apache and 
your Tomcat webapps.   This can only be done at Apache runtime however as 
Apache does not allow for these types of mappings on a dynamic basis.  So 
how does Apache and Tomcat 4 work together in terms of the un/deploy 
technologies?  Has anyone tried this?  Dose mod_webapp take care of this in 
some manner?

Chad La Joie   "Only a man who can not conquer
IT Specialist his deficiencies feels the need to
ISC - WARD convince the world he has none"




RE: Tomcat 4 in Apache 1.3

2001-04-05 Thread GOMEZ Henri

Tomcat 4 has the ability to un/deploy web apps on the fly 
(i.e. without 
restarting Tomcat).  Does anyone know what implications this has on 
Apache.  In Tomcat 3 mod_jk.conf was used to create maps 
between Apache and 
your Tomcat webapps.   This can only be done at Apache runtime 
however as 
Apache does not allow for these types of mappings on a dynamic 
basis.  So 
how does Apache and Tomcat 4 work together in terms of the un/deploy 
technologies?  Has anyone tried this?  Dose mod_webapp take 
care of this in 
some manner?

I proposed to start load/unload of webapp system ported to mod_jk,
using a more advance protocol, ajp13++ (ajp14?).

But since there is no reaction, I may start ajp13++ on my side ;(