Multiple coyote jk2 connectors?

2003-04-01 Thread Quinton McCombs
How do you configure two coyote jk2 connectors on the same server?  I
have tried assigning different ports for each one but they both take the
port specified in jk2.properties.  Is it possible to define multiple
ports in jk2.properties?Is there some setting for the connector to
specify the properties file?


Quinton McCombs
NequalsOne - HealthCare marketing tools
mailto:[EMAIL PROTECTED]
http://www.NequalsOne.com 


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



RE: mod_jk2 logic check

2003-03-30 Thread Quinton McCombs
No.  The docs say that anything you can set in the properties file can
be set in httpd.conf.  You might try JkUriSet context /xxx.

 -Original Message-
 From: Richard Anderson [mailto:[EMAIL PROTECTED] 
 Sent: Sunday, March 30, 2003 11:03 AM
 To: Tomcat Users List
 Subject: Re: mod_jk2 logic check
 
 
 Do you know if there is anything that explains the syntax of JkUriSet?
 
 This shows how to set a worker, but I still need to tell it 
 what context 
 to hook to. The way I read this is /ccpd is a directory that 
 apache maps 
 as http://ccpd.foo.edu/ccpd
 
 Location /ccpd
JkUriSet worker ajp13:localhost:8009
 /Location
 
 
 Thanks
 
 --Rick
 
 
 Quinton McCombs wrote:
 
   
 
 -Original Message-
 From: Richard Anderson [mailto:[EMAIL PROTECTED]
 Sent: Friday, March 28, 2003 6:11 PM
 To: Tomcat List
 Subject: mod_jk2 logic check
 
 
 
 I have apache 2.0.43 and tomcat 4.1.24. I've set up mod_jk2.
 
 Here is my understanding of how things should work. I need 
 this logic
 double check.
 
 My webapp is locate in webapps/ccpd
 
 I restart tomcat and/or tomcat automaticly finds the webapp
 ccpd and 
 maps a default contect to it.
 
 context=/ccpd
 
 In the apache2 httpd2.conf file the following is inserted:
 
 ###Load mod_jk2 and relate file
 LoadModule jk2_module modules/mod_jk2.so
 Include /etc/httpd2/conf/jk2.properties
 
 
 
 No.  You do not include the jk2.properties file into your httpd.conf 
 file.  As long as your jk2.properties file is found under 
 ${serverRoot}/conf, it will read it.  You can manually set 
 the location 
 of the config file and a few other directives using the JkSet 
 directive.
  
   
 
 I also set the virtual host up so apache recognizes it.
 
 
  From there I configure the workers2.properties file:
 
 [uri:ccpd.foo.edu/*]
 info=ccpd
 context=/ccpd
 
 
  From what I understand now that i have set these all in place.
 Everything now should work just fine. Anything that runs off of 
 ccpd.foo.edu will not map directly to my tomcat4 context.
 
 
 
 I could not figure out what context and servlet path were 
 meant to be 
 used for.  It did not seem to matter what combinations I 
 tried, I could 
 not seem to map servlet requests to a virtual host in 
 jk2.properties.  
 I was able to use the JkUriSet directive in httpd.conf to 
 perform the 
 mapping.  You might run into a problem here if you have multiple 
 virtual hosts mapping the same path...
 
 In your virtual host configuration, you do something like this: 
 Location /ccpd
JkUriSet worker ajp13:localhost:8009
 /Location
 
   
 
 Is this correct? Maybe the problem is elsewhere. What's the
 best way to 
 diagnose this?
 
 Thanks you for help.
 
 --Rick
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
   
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


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



RE: Virtual hosting mod_jk2

2003-03-29 Thread Quinton McCombs
None at all.  I think that I encountered a bug or two in mod_jk2.  This
is when you have two virtual hosts mapping the same path to the worker.
Only the last map is kept.

I ended up switching to mod_jk.  I got everything working under that
connector.  I can go into the details of how that is working if you are
interested.

 -Original Message-
 From: Richard Anderson [mailto:[EMAIL PROTECTED] 
 Sent: Friday, March 28, 2003 5:56 PM
 To: Tomcat Users List
 Subject: Re: Virtual hosting  mod_jk2
 
 
 Did you have any luck getting this configured?
 
 I'm having difficulties doing the same thing.
 
 --Rick
 
 On Thursday, March 27, 2003, at 03:51 PM, Quinton McCombs wrote:
 
  I am having a difficult time figuring out how to properly configure 
  Apache 2.0.44 and Tomcat 4.1.12 with virtual hosting.  I am using 
  mod_jk2 as my connector.
 
  I have all of this working with Apache 1.3, Tomcat 4.1, and 
  mod_webapp
 
  In my testing environment, I have a servlet based 
 application that is 
  available over https and http.
 
  On the tomcat side, I have defined the default host and one virtual 
  host.  The virtual host (test.nequalsone.com) has a non-default 
  appBase. The intent here is to only allow access to the application 
  through test.nequalsone.com although the server can be accessed by 
  serveral names.
 
  On the Apache side, I am using name based virtual hosting.  
 I have one 
  host defined to use SSL which should forward requests for my 
  application to Tomcat.  I have another virtual host 
  (test.nequalsone.com) that is defined to also forward requests to 
  tomcat.  I am using JKUriSet to define the mapping to Tomcat.
 
  This seemed to work fine at first but then I noticed that the 
  application did not work properly on the SSL version.  My 
 application 
  did not detect that it was being accessed over SSL so it was 
  generating links using http:// instead of https://.  
 Everything else 
  appeared to work...
 
  I decided to try creating a second AJP13 connector on tomcat.  The 
  second connection has scheme=https and secure=true.  Both 
  connectors are on different ports.  Is this the correct way 
 to solve 
  this problem so far?
 
  Next, I created a new channel in workers2.properties.  I 
 then modified 
  the JKSetUri directive for the SSL virtual host to use the new 
  channel. This is where things started to go wrong
 
  Checking the jkstatus page showed that the last JKSetUri directive 
  over wrote the previous one.  Under the uri runtime info section, I 
  had the
  following:
  Id=0, name=/neo/servlet, host=*, uri=/neo/servlet,
  group=ajp13:localhost:8010, context=/
 
  The location that I mapped for both virtual hosts was 
 /neo/servlet.  
  It seems that it should have created two uri mappings with 
 different 
  hosts.
 
  After running into this problem, I tried setting the mapping in 
  workers2.properties.  I was unable to get that working properly. 
  Consider the following section from the virtual host in apache.
 
  VirtualHost *
  ServerName test.nequalsone.com
  DocumentRoot /usr/local/www/test
  Alias /neo /opt/jakarta/test_webapps/neo
  Location /neo/servlet
JKUriSet group ajp13:localhost:8009
  /Location
  /VirtualHost
 
  I tried all of the following entries in workers2.properties: 
  [uri:test.nequalsone.com/neo/servlet]
  Group=agp13:localhost:8009
 
  [uri:test.nequalsone.com/neo/servlet/]
  Group=agp13:localhost:8009
 
  [uri:test.nequalsone.com/neo/servlet/*]
  Group=agp13:localhost:8009
 
  [uri:/neo/servlet]
  Group=agp13:localhost:8009
 
  [uri:/neo/servlet/]
  Group=agp13:localhost:8009
 
  [uri:/neo/servlet/*]
  Group=agp13:localhost:8009
 
  None of them worked.  The log file for the mod_jk2 module reported 
  that the file /opt/jakarta/test_webapps/neo/servlet did not exist.
 
  What am I doing wrong here?
  
  Quinton McCombs
  NequalsOne - HealthCare marketing tools 
 mailto:[EMAIL PROTECTED]
  http://www.NequalsOne.com
 
 
 
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


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



RE: mod_jk2 logic check

2003-03-29 Thread Quinton McCombs


 -Original Message-
 From: Richard Anderson [mailto:[EMAIL PROTECTED] 
 Sent: Friday, March 28, 2003 6:11 PM
 To: Tomcat List
 Subject: mod_jk2 logic check
 
 
 
 I have apache 2.0.43 and tomcat 4.1.24. I've set up mod_jk2.
 
 Here is my understanding of how things should work. I need this logic 
 double check.
 
 My webapp is locate in webapps/ccpd
 
 I restart tomcat and/or tomcat automaticly finds the webapp 
 ccpd and 
 maps a default contect to it.
 
 context=/ccpd
 
 In the apache2 httpd2.conf file the following is inserted:
 
 ###Load mod_jk2 and relate file
 LoadModule jk2_module modules/mod_jk2.so
 Include /etc/httpd2/conf/jk2.properties

No.  You do not include the jk2.properties file into your httpd.conf
file.  As long as your jk2.properties file is found under
${serverRoot}/conf, it will read it.  You can manually set the location
of the config file and a few other directives using the JkSet directive.
 
 I also set the virtual host up so apache recognizes it.
 
 
  From there I configure the workers2.properties file:
 
 [uri:ccpd.foo.edu/*]
 info=ccpd
 context=/ccpd
 
 
  From what I understand now that i have set these all in place. 
 Everything now should work just fine. Anything that runs off of 
 ccpd.foo.edu will not map directly to my tomcat4 context.

I could not figure out what context and servlet path were meant to be
used for.  It did not seem to matter what combinations I tried, I could
not seem to map servlet requests to a virtual host in jk2.properties.  I
was able to use the JkUriSet directive in httpd.conf to perform the
mapping.  You might run into a problem here if you have multiple virtual
hosts mapping the same path...

In your virtual host configuration, you do something like this:
Location /ccpd
   JkUriSet worker ajp13:localhost:8009
/Location

 
 Is this correct? Maybe the problem is elsewhere. What's the 
 best way to 
 diagnose this?
 
 Thanks you for help.
 
 --Rick
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


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



Bug in CoyoteConnector when using JkCoyoteHandler

2003-03-29 Thread Quinton McCombs

I am running into a strange problem on Tomcat 4.1.18.

I setup a CoyoteConnector on port 8009 using the JkCoyoteHandler
protocol handler to handle AJP13 requests.  This worked perfectly.  

I then needed to add a second AJP13 connector to process secure requests
(though an ssl apache virtual host).  I created a second CoyoteConnector
using the JkCoyoteHandler listening on port 8443.  I should be able to
have multiple connectors as long as they are on different ports, right?

After I restarted the sever, I saw an error message when the second AJP
connector tried to initialize.  It reported that port 8009 was already
bound.  It then promptly bound the second connector to port 8010.  This
truly confused me.  I double checked my configureation and everything
seemed to be correct.  I also did a netstat -l to see what ports were
actually in use.  Ports 8009 and 8010 had listeners.

I removed the second connector.  I then changed the original connector
to listen on port 8019.  I now had only one CoyoteConnector for AJP13
connections configured.  The only port is 8019.

After I restarted the server, the connector bound itself to 8009.
netstat -l confirmed that this was not a bogus log message.

From the way this looks, a coyote connector using the JkCoyoteHandler
will always attempt to use port 8009 reguadless of the port attribute of
the connector.  If the port is not available, it increment the port
number by one and try again.  This appears to be a bug.


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



RE: mod_jk2+tomcat+apache2 on OSX: WORKS! but NOT FINDING workers2.properties in DFAULT location

2003-03-29 Thread Quinton McCombs
JkSet config.file /etc/apache2/worker2.properties

The above directive can be placed anywhere inside your httpd.conf file.
It will set the location of your config file for jk2.

 -Original Message-
 From: R Blake [mailto:[EMAIL PROTECTED] 
 Sent: Saturday, March 29, 2003 2:07 AM
 To: Tomcat Users List
 Cc: Anthony Marlowe
 Subject: Re: mod_jk2+tomcat+apache2 on OSX: WORKS! but NOT 
 FINDING workers2.properties in DFAULT location 
 
 
 hi
 
  I've built 2.0.44 on Mac OS X with mod_jk2 and and running Tomcat 
  4.1.8 and 4.1.24. If the apache directory patch is set up correctly 
  apache should look for it conf directory, based on how you defined 
  --prefix in configure. It should look something like this:
 
  ./configure \
  --prefix= /Library/Apache2 \ 
 --with-apxs=/Library/Apache2/bin/apxs 
  \ --with-java-home=/Library/Java/Home \
  --with-java-platform=2 \
  --enable-jni \
  --enable-so \
  --enable-proxy \
  --enable-imap \
  --enable-ssl \
  --enable-modules=most \
  --enable-mods-shared=all \
  --enable-java=/System/Library/Frameworks/JavaVM.framework/Versions/
  1.4.1
 
 agreed  that's what's got me a bit confused.  prefix, and 
 all other 
 template settings are invoked in my configure with 
 -enable-layout-=Darwin 
 ...
 
 ./configure \
 --enable-layout=Darwin --with-port=80 --with-mpm=prefork \ 
 --enable-mods-shared=all --enable-so \ 
 --sysconfdir=/etc/apache2 \ --enable-dav --enable-dav-fs \ 
 --enable-ssl --with-ssl \ --enable-suexec 
 --with-suexec-caller=www \ --with-z \ --enable-proxy \ 
 --enable-proxy-connect \ --enable-proxy-ftp \ 
--enable-proxy-http \ --enable-logio \ --enable- authn-dbm
--enable-authz-dbm
 
 which, if you look in my original pst, includes:
 
 prefix:/usr
 exec_prefix:   ${prefix}
 bindir:${exec_prefix}/bin
 sbindir:   ${exec_prefix}/sbin
 libdir:${exec_prefix}/lib
 libexecdir:${exec_prefix}/libexec+
 mandir:${prefix}/share/man
 datadir:   /Library/WebServer
 sysconfdir:/etc+
 
  Then the workers2.properties file should be found in the 
  /Library/Apache2/conf directory and apache should find it.
 
 So that's my point . its grapping the ${serverroot} from apache's 
 prefix=/usr  but IGNORING where the sysconf files 
 ACTUALLY are ... 
 i.e., in /etc/apache2
 
  does you jk2.properties file look like? See mine below:
 
 mine is very simple:
 
 handler.list=apr,channelSocket,request
 shm.file=/usr/local/tomcat/work/jk2.shm
 
 your comments have comfirmed i how it is behaving, but, 
 again, it SHOULD 
 find it in /etc/apache2, no?
 
 thx,
 
 blakers
 
 ## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT 
 IS STOPED ## 
 WHEN YOU EDIT THE FILE.
 
 ## COMMENTS WILL BE _LOST_
 
 ## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.
 
  serverRoot=/Library/Apache2
 # Set the desired handler list  
 handler.list=apr,request,container,channelJni
 #
 # Override the default port for the socketChannel
 # channelSocket.port=8019
 # Default:
 # channelUnix.file=${jkHome}/work/jk2.socket
 # Just to check if the the config  is working
 # shm.file=${jkHome}/work/jk2.shm
 
 # In order to enable jni use any channelJni directive  
 channelJni.disabled = 0 # And one of the following directives:
 
 # apr.jniModeSo=/opt/apache2/modules/mod_jk2.so
 
 # If set to inprocess the mod_jk2 will Register natives 
 itself # This 
 will enable the starting of the Tomcat from mod_jk2  
 apr.jniModeSo=inprocess
 
  Regards,
 
  Tony
 
 
 
  On Saturday, Mar 29, 2003, at 08:18 Europe/Berlin, R Blake wrote:
 
  hi all,
 
  i've gotten mod_jk2/2.0.3-dev, tomcat 4.1.24 LE, and Apache/2.1.0 
  built and playing nicely together on MacOSX 10.2.4.  html, jsp  
  servlets all behaving exactly as they should!
 
  just fyi, my Apache 'server-info reports:
 
 Apache/2.1.0-dev (Unix) mod_perl/1.99_08 Perl/v5.8.0 DAV/2 
  mod_jk2/2.0.3-dev PHP/4.3.2-RC
 
  now, to my problem .
 
  everything builds fine, and I've set up my config/properties files 
  correctly, but on apachectl start,  my 
 /var/log/apache2_error.log 
  is
  showing:
 
 [error] config.update(): Can't find config file 
  /usr/conf/workers2.properties
 
 
  in order to make this work, I have to kludge a bit by:
 
 mkdir /usr/conf
 ln -s /etc/apache2/workers2.properties 
  /usr/conf/workers2.properties
 
  where /etc/apache2 is my httpd.conf directory  and 
 where mod_jk 
  SHOULD be looking for workers2.properties
 
  now, I know the REASON this is happening .  mod_jk2's code 
  defines:
 
  # define JK_WORKER_FILE_DEF  
  (${serverRoot}/conf/workers2.properties)
  in several places, and an apxs build of mod_jk2 is 
 grabbing prefix:
  /usr for the ServerRoot, because I use the Darwin/MacOS
  (config.layout) template when building apache2:
 
  #   Darwin/Mac OS Layout u
  Layout Darwin?
 prefix:/usr
 exec_prefix:   ${prefix}
 bindir:${exec_prefix}/bin
 sbindir:   

RE: Where to store files in a portable app?

2003-03-29 Thread Quinton McCombs
You could have ant replace the value of the directory name in your
properties file during the build.  As part of your build process, ant
would have to copy the properties file from its source directory into
the target directory where it will be used for the build.  See the ant
docs for filter and copy for more details.


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: Saturday, March 29, 2003 8:59 AM
 To: Tomcat Users List
 Subject: Re: Where to store files in a portable app?
 
 
 Hi Kaarle,
 
 Thx for the input.
 Unfortunately the development system is Windows and 
 production system is 
 Unix, so absolute paths will never be the same.
 
 Do you have any idea for how to manage properties files which will be 
 different for windows than unix?
 Should I create a separate web_local and web_remote directory 
 and make a 
 simple ant copy task to distinguish production/development?
 Or is there a more elegant approach to this?
 
 thx alot
 Johannes
 
 
 
 
 Kaarle Kaila [EMAIL PROTECTED] 
 29.03.2003 15:41
 Please respond to
 Tomcat Users List [EMAIL PROTECTED]
 
 
 To
 Tomcat Users List [EMAIL PROTECTED]
 cc
 
 Subject
 Re: Where to store files in a portable app?
 
 
 
 
 
 
 At 15:35 29.3.2003 +0100, you wrote:
 HI there,
 
 In my app I need to store files after a transaction is 
 complete. I want 
 to keep my application portable, so where should I store such
 files
 to??
 
 I would put the directory address for the files in a properties file 
 (ResourceBundle)
 Then you can really put them anywhere you like.
 
 regards
 Kaarle
 
 
 Should I use a /output/.. directory in the root area or where else 
 could be a smart location?
 
 Any ideas on this topic??
 
 thx alot
 Johannes
 
 -
 Kaarle Kaila
 http://www.iki.fi/kaila
 mailto:[EMAIL PROTECTED]
 tel: +358 50 3725844 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


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



Virtual hosting mod_jk2

2003-03-27 Thread Quinton McCombs
I am having a difficult time figuring out how to properly configure
Apache 2.0.44 and Tomcat 4.1.12 with virtual hosting.  I am using
mod_jk2 as my connector.

I have all of this working with Apache 1.3, Tomcat 4.1, and
mod_webapp

In my testing environment, I have a servlet based application that is
available over https and http.  

On the tomcat side, I have defined the default host and one virtual
host.  The virtual host (test.nequalsone.com) has a non-default appBase.
The intent here is to only allow access to the application through
test.nequalsone.com although the server can be accessed by serveral
names.

On the Apache side, I am using name based virtual hosting.  I have one
host defined to use SSL which should forward requests for my application
to Tomcat.  I have another virtual host (test.nequalsone.com) that is
defined to also forward requests to tomcat.  I am using JKUriSet to
define the mapping to Tomcat.

This seemed to work fine at first but then I noticed that the
application did not work properly on the SSL version.  My application
did not detect that it was being accessed over SSL so it was generating
links using http:// instead of https://.  Everything else appeared to
work...

I decided to try creating a second AJP13 connector on tomcat.  The
second connection has scheme=https and secure=true.  Both connectors
are on different ports.  Is this the correct way to solve this problem
so far?

Next, I created a new channel in workers2.properties.  I then modified
the JKSetUri directive for the SSL virtual host to use the new channel.
This is where things started to go wrong

Checking the jkstatus page showed that the last JKSetUri directive over
wrote the previous one.  Under the uri runtime info section, I had the
following:
Id=0, name=/neo/servlet, host=*, uri=/neo/servlet,
group=ajp13:localhost:8010, context=/

The location that I mapped for both virtual hosts was /neo/servlet.  It
seems that it should have created two uri mappings with different hosts.

After running into this problem, I tried setting the mapping in
workers2.properties.  I was unable to get that working properly.
Consider the following section from the virtual host in apache.

VirtualHost *
ServerName test.nequalsone.com
DocumentRoot /usr/local/www/test
Alias /neo /opt/jakarta/test_webapps/neo
Location /neo/servlet
  JKUriSet group ajp13:localhost:8009
/Location
/VirtualHost

I tried all of the following entries in workers2.properties:
[uri:test.nequalsone.com/neo/servlet]
Group=agp13:localhost:8009

[uri:test.nequalsone.com/neo/servlet/]
Group=agp13:localhost:8009

[uri:test.nequalsone.com/neo/servlet/*]
Group=agp13:localhost:8009

[uri:/neo/servlet]
Group=agp13:localhost:8009

[uri:/neo/servlet/]
Group=agp13:localhost:8009

[uri:/neo/servlet/*]
Group=agp13:localhost:8009

None of them worked.  The log file for the mod_jk2 module reported that
the file /opt/jakarta/test_webapps/neo/servlet did not exist.

What am I doing wrong here?

Quinton McCombs
NequalsOne - HealthCare marketing tools
mailto:[EMAIL PROTECTED]
http://www.NequalsOne.com 


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



RE: Tomcat and IIS

2003-03-27 Thread Quinton McCombs
Well, I am doing this on apache 2.0.44.  My DirectoryIndex has
index.html and index.jsp.  I am directing *.jsp to tomcat.  Requesting
the directory without a filename causes index.jsp to be processed by
tomcat and the result returned.

I am also using mod_jk2 if that makes a difference.


Quinton McCombs
NequalsOne - HealthCare marketing tools
mailto:[EMAIL PROTECTED]
http://www.NequalsOne.com 

 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, March 27, 2003 3:11 PM
 To: Tomcat Users List
 Subject: Re: Tomcat and IIS
 
 
 
 Switching to Apache wouldn't solve it unless you wanted to 
 use mod_rewrite. 
  Check the archives for last fall...there were bunches of 
 threads on this 
 topic for quite awhile.  AFAIK, nothing's changed, though I 
 was off this 
 list for several weeks recently and its very possible someone 
 came up with 
 a workaround that I missed.
 
 John
 
 On Thu, 27 Mar 2003 13:10:14 -0800, jsp [EMAIL PROTECTED] wrote:
 
  Yea, I thought about that( or even an asp redirect, defeats the 
  purpose
  of using jsp) but I'm trying to get the referrer from the 
 browser into a 
  database and I don't want index.html as my only referrer :)
 
  I'll try just using tomcat, I would just switch to apache I 
 guess but 
  I
  paid about 1200 bucks for w2k server 2 years ago and STILL 
 paying on it. 
  Oh well.
 
  Thanks
  -wiley
 
 
  -Original Message-
  From: John Turner [mailto:[EMAIL PROTECTED] Sent: 
 Thursday,
  March 27, 2003 12:57 PM
  To: Tomcat Users List
  Subject: Re: Tomcat and IIS
 
 
  AFAIK, the only way to do this when using Tomcat in 
 conjunction with a
  web server is a kludge.  I do it by making index.html my 
 default home 
  page, and having index.html be nothing but a meta refresh 
 page with a 
  time of 0 to http://www.foo.com/index.jsp.  There are 
 other ways...some 
  Apache folks use mod_rewrite.
 
  This means index.jsp will show up in the address bar of the 
 browser.  
  If
  you don't want that, I'm not sure you can do it. I don't 
 know enough 
  about IIS to know if there is a more elegant way to do it.
 
  If you want to use Tomcat alone, you setup a welcome-file 
 tag/element 
  in
  your application's web.xml file that has index.jsp as a parameter.
 
  John
 
  On Thu, 27 Mar 2003 12:47:17 -0800, jsp [EMAIL PROTECTED] wrote:
 
  I'm trying to get away from ASP. The top file of my website is an 
  index.jsp page. I set the root directory for the website to 
  \Catalina_home\webapps\MyWebsite
 
  So when you go to http://www.mywebsite.com the default 
 page in iis is 
  index.jsp but I'm positive that is the wrong way to do 
 this because 
  the only way jsp will work is if you type into the browser
 
  http://www.mywebsite.com/MyWebsite/index.jsp
 
  maybe this is not a tomcat related question but I'm hoping someone 
  could be doing this and give me some type of CLUE ?
 
  Basically when you go to http://www.mywebsite.com I want 
 the top file 
  to be a functioning .jsp page because I don't want to use an ASP 
  stats program.
 
  Hopefully it makes sense
 
  -wiley
 
 
 
 
 
 
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: 
 [EMAIL PROTECTED]
 
 
 
 
 
 
 
 
 -- 
 Using M2, Opera's revolutionary e-mail client: 
 http://www.opera.com/m2/
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


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



RE: Tomcat and IIS

2003-03-27 Thread Quinton McCombs
 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, March 27, 2003 3:22 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Tomcat and IIS
 
 
 
 Really?  Can you post your config files?  I'd be interested in seeing 
 them...I haven't been able to make this work, though I don't use JK2.
 
 John
 

Httpd.conf:

VirtualHost *
DocumentRoot /usr/local/www/default
ServerName neo03.nequalsone.com
DirectoryIndex index.html Wiki.jsp

Alias /wiki /opt/jakarta/webapps/wiki
Directory /opt/jakarta/webapps/wiki
Options -Indexes +FollowSymLinks +Includes MultiViews
/Directory
Location /data
   AllowOverride None
   deny from all
/Location
Location /WEB-INF
   AllowOverride None
   deny from all
/Location
/VirtualHost

Workers2.properties:

[channel.socket:localhost:8009]

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

[uri:/wiki/*.jsp]
worker=ajp13:localhost:8009






 On Thu, 27 Mar 2003 15:15:02 -0600, Quinton McCombs 
 [EMAIL PROTECTED] wrote:
 
  Well, I am doing this on apache 2.0.44.  My DirectoryIndex has 
  index.html and index.jsp.  I am directing *.jsp to tomcat.  
 Requesting 
  the directory without a filename causes index.jsp to be 
 processed by 
  tomcat and the result returned.
 
  I am also using mod_jk2 if that makes a difference.
 
  
  Quinton McCombs
  NequalsOne - HealthCare marketing tools 
 mailto:[EMAIL PROTECTED]
  http://www.NequalsOne.com
 
  -Original Message-
  From: John Turner [mailto:[EMAIL PROTECTED] 
 Sent: Thursday,
  March 27, 2003 3:11 PM
  To: Tomcat Users List
  Subject: Re: Tomcat and IIS
 
 
 
  Switching to Apache wouldn't solve it unless you wanted to use
  mod_rewrite. Check the archives for last fall...there were 
 bunches of 
  threads on this topic for quite awhile.  AFAIK, nothing's changed, 
  though I was off this list for several weeks recently and its very 
  possible someone came up with a workaround that I missed.
 
  John
 
  On Thu, 27 Mar 2003 13:10:14 -0800, jsp [EMAIL PROTECTED] wrote:
 
   Yea, I thought about that( or even an asp redirect, defeats the 
  purpose
   of using jsp) but I'm trying to get the referrer from 
 the browser 
   into
  a  database and I don't want index.html as my only referrer :)
  
   I'll try just using tomcat, I would just switch to 
 apache I guess 
   but
   I
   paid about 1200 bucks for w2k server 2 years ago and 
 STILL paying on 
  it.  Oh well.
  
   Thanks
   -wiley
  
  
   -Original Message-
   From: John Turner [mailto:[EMAIL PROTECTED] Sent: 
   Thursday, March 27, 2003 12:57 PM
   To: Tomcat Users List
   Subject: Re: Tomcat and IIS
  
  
   AFAIK, the only way to do this when using Tomcat in conjunction 
   with a web server is a kludge.  I do it by making index.html my 
   default home page, and having index.html be nothing but a meta 
   refresh page with a time of 0 to 
 http://www.foo.com/index.jsp.  
   There are other
  ways...some  Apache folks use mod_rewrite.
  
   This means index.jsp will show up in the address bar of the 
   browser.
   If
   you don't want that, I'm not sure you can do it. I don't 
 know enough  
  about IIS to know if there is a more elegant way to do it.
  
   If you want to use Tomcat alone, you setup a welcome-file 
   tag/element
   in
   your application's web.xml file that has index.jsp as a 
 parameter.
  
   John
  
   On Thu, 27 Mar 2003 12:47:17 -0800, jsp [EMAIL PROTECTED] wrote:
  
   I'm trying to get away from ASP. The top file of my 
 website is an 
   
  index.jsp page. I set the root directory for the website to 
  \Catalina_home\webapps\MyWebsite
  
   So when you go to http://www.mywebsite.com the default 
 page in iis 
   is
   index.jsp but I'm positive that is the wrong way to do 
 this because 
   the only way jsp will work is if you type into the browser
  
   http://www.mywebsite.com/MyWebsite/index.jsp
  
   maybe this is not a tomcat related question but I'm 
 hoping someone 
   
  could be doing this and give me some type of CLUE ?
  
   Basically when you go to http://www.mywebsite.com I 
 want the top 
   file
   to be a functioning .jsp page because I don't want to 
 use an ASP  
  stats program.
  
   Hopefully it makes sense
  
   -wiley
  
  
  
  
  
  
   
 --
   ---
   To unsubscribe, e-mail: 
 [EMAIL PROTECTED]
   For additional commands, e-mail: 
 [EMAIL PROTECTED]
  
  
  
  
  
 
 
 
  -- Using M2, Opera's revolutionary e-mail client:
  http://www.opera.com/m2/
 
 
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: 
 [EMAIL PROTECTED]
 
 
 
 
 
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED

RE: MOD JK2

2003-03-27 Thread Quinton McCombs
What do you have in workers2.properties?



Quinton McCombs
NequalsOne - HealthCare marketing tools
mailto:[EMAIL PROTECTED]
http://www.NequalsOne.com 

 -Original Message-
 From: Jonas Eriksson [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, March 27, 2003 4:05 PM
 To: Tomcat Users List
 Subject: MOD JK2
 
 
 I'm useing jk2 
 
 My apache 2.043 does not send my  jsp requests to tomcat when 
 the file name is something other than .jsp
 
 I have looked in the manual but I only find how to fix that 
 with mod_jk and not for jk2. Please help me!
 
  
 


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



RE: MOD JK2

2003-03-27 Thread Quinton McCombs
   My apache 2.043 does not send my  jsp requests to tomcat when
   the file name is something other than .jsp

What sort of request is it not processing?  Servlets perhaps?  I had to
put the full path to the servlet for it to work.  Example:
[uri:/scarab/*]

If you try something like [uri:/scarab/servlet/*] to pass only the
servlet requests, it does not seem to work.

You can also use JKUriSet in httpd.conf.
Location /scarab/servlet
  JKUriSet worker ajp13:localhost:8009
/Location


The above config can be used instead of [uri:/scarab/servlet] in
workers2.properties.  This will cause only the servlet requests to be
passed to tomcat while leaving everything else to Apache.


 -Original Message-
 From: Jonas Eriksson [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, March 27, 2003 8:31 PM
 To: Tomcat Users List; [EMAIL PROTECTED]
 Subject: Re: MOD JK2
 
 
 Well rigt now i'm using mod warp to get it to work at all.
 But i need to get jk2 to work...
 
 It looks like this:
 
 [shm]
 file=/usr/local/logs/shm.file
 size=1048576
 
 [channel.socket:localhost:8009]
 port=8009
 host=127.0.0.1
 
 [channel.un:/usr/local/tomcat/work/jk2.socket]
 tomcatId=localhost:8009
 debug=0
 
 [ajp13:localhost:8009] 
 #channel=channel.un:/usr/local/tomcat/work/jk2.socket
 channel=channel.socket:localhost:8009
 
 [status:status]
 
 [uri:/*.jsp]
 worker=ajp13:localhost:8009 
 #worker=ajp13:/usr/local/tomcat/work/jk2.socket
 
 [uri:/manager/*]
 worker=ajp13:localhost:8009
 
 [uri:/*/servlets/]
 worker=ajp13:localhost:8009
 
 [uri:/status/*]
 worker=status:status
 
 - Original Message - 
 From: Quinton McCombs [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Thursday, March 27, 2003 11:13 PM
 Subject: RE: MOD JK2
 
 
  What do you have in workers2.properties?
  
  
  
  Quinton McCombs
  NequalsOne - HealthCare marketing tools 
 mailto:[EMAIL PROTECTED]
  http://www.NequalsOne.com 
  
 
   -Original Message-
   From: Jonas Eriksson [mailto:[EMAIL PROTECTED]
   Sent: Thursday, March 27, 2003 4:05 PM
   To: Tomcat Users List
   Subject: MOD JK2
   
   
   I'm useing jk2
   
   My apache 2.043 does not send my  jsp requests to tomcat when
   the file name is something other than .jsp
   
   I have looked in the manual but I only find how to fix that
   with mod_jk and not for jk2. Please help me!
   

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


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



RE: MOD JK2

2003-03-27 Thread Quinton McCombs
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html

Sorry, can't offer any help with load balancing...

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, March 27, 2003 10:01 PM
 To: Tomcat Users List
 Subject: Re: MOD JK2
 
 
 Are the names and usage of the parameters used in the 
 workers2.properties file documented somewhere?
 In particular, I'm trying to set up load balancing between multiple 
 instance of Tomcat.
 
 
 
 Quinton McCombs wrote:
 
 My apache 2.043 does not send my  jsp requests to tomcat when the 
 file name is something other than .jsp
 
 
 
 What sort of request is it not processing?  Servlets 
 perhaps?  I had to 
 put the full path to the servlet for it to work.  Example: 
 [uri:/scarab/*]
 
 If you try something like [uri:/scarab/servlet/*] to pass only the 
 servlet requests, it does not seem to work.
 
 You can also use JKUriSet in httpd.conf.
 Location /scarab/servlet
   JKUriSet worker ajp13:localhost:8009
 /Location
 
 
 The above config can be used instead of [uri:/scarab/servlet] in 
 workers2.properties.  This will cause only the servlet 
 requests to be 
 passed to tomcat while leaving everything else to Apache.
 
 
   
 
 -Original Message-
 From: Jonas Eriksson [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 27, 2003 8:31 PM
 To: Tomcat Users List; [EMAIL PROTECTED]
 Subject: Re: MOD JK2
 
 
 Well rigt now i'm using mod warp to get it to work at all. 
 But i need 
 to get jk2 to work...
 
 It looks like this:
 
 [shm]
 file=/usr/local/logs/shm.file
 size=1048576
 
 [channel.socket:localhost:8009]
 port=8009
 host=127.0.0.1
 
 [channel.un:/usr/local/tomcat/work/jk2.socket]
 tomcatId=localhost:8009
 debug=0
 
 [ajp13:localhost:8009]
 #channel=channel.un:/usr/local/tomcat/work/jk2.socket
 channel=channel.socket:localhost:8009
 
 [status:status]
 
 [uri:/*.jsp]
 worker=ajp13:localhost:8009
 #worker=ajp13:/usr/local/tomcat/work/jk2.socket
 
 [uri:/manager/*]
 worker=ajp13:localhost:8009
 
 [uri:/*/servlets/]
 worker=ajp13:localhost:8009
 
 [uri:/status/*]
 worker=status:status
 
 - Original Message -
 From: Quinton McCombs [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Thursday, March 27, 2003 11:13 PM
 Subject: RE: MOD JK2
 
 
 
 
 What do you have in workers2.properties?
 
 
 
 Quinton McCombs
 NequalsOne - HealthCare marketing tools
   
 
 mailto:[EMAIL PROTECTED]
 
 
 http://www.NequalsOne.com
 
   
 
 -Original Message-
 From: Jonas Eriksson [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 27, 2003 4:05 PM
 To: Tomcat Users List
 Subject: MOD JK2
 
 
 I'm useing jk2
 
 My apache 2.043 does not send my  jsp requests to tomcat when the 
 file name is something other than .jsp
 
 I have looked in the manual but I only find how to fix that with 
 mod_jk and not for jk2. Please help me!
 
  
 
 
 
 
   
 
 
 -
 
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: 
 [EMAIL PROTECTED]
 
 
   
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
   
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


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