Barrow H Kwan/Corporate/ThoughtWorks/US is out of the office.

2001-11-13 Thread bhkwan

I will be out of the office starting  11/13/2001 and will not return until
11/27/2001.

I will respond to your message when I return.  I might check my email once
a day.


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




Barrow H Kwan/Corporate/ThoughtWorks/US is out of the office.

2001-04-26 Thread bhkwan

I will be out of the office starting  04/26/2001 and will not return until
05/12/2001.

I will respond to your message when I return.




Re: Info on connections using mysql

2001-01-11 Thread bhkwan


here is what I did
1. grap the mm.mysql jdbc driver ( check www.mysql.com )
2. untar the file to eg /usr/local/mm.mysql
3. in your tomcat.sh file, add classpath to include the mysql jar ( ie
export CLASSPATH=/usr/local/mm.mysql/mysql.jar:$CLASSPATH ).
4. write your code and use it.  I didn't put the mysql.jar in the WEB-INF
since I have multiple instance of Tomcat running.  So, add a classpath in
tomcat.sh can let all Tomcat instance use the mysql jdbc driver



   

Andrew 

Burrows  To: [EMAIL PROTECTED]  

andrewbu@bigcc:   

pond.comSubject: Re: Info on connections using 
mysql  
   

01/10/2001 

09:33 PM   

Please 

respond to 

tomcat-user

   

   






Sounds like you may have to wait for the next full moon as I have already
done + I used 7 virgins and had to kill 3 young lambs.

Anyway tomcat and apache are working fine but i am still trying to come to
grips with how the connect works through to mysql.

Dose it use the drive setup in WEB-INF and do i need to install the driver
some were on the system.

The system i am working on is.
Linux don't know i think version 7 red hat
Apache 1.3.9
tomcat 1.3
mysql good question


 From: Glen Campbell [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 Date: Wed, 10 Jan 2001 21:21:16 -0800
 To: [EMAIL PROTECTED]
 Subject: Re: Info on connections using mysql

 On 1/10/01 8:49 PM, "Andrew Burrows" [EMAIL PROTECTED] casually
stated:

 Hi All tomcat people,
 Could someone point me in the right direction to find info on using
mysql in
 conjunction with tomcat/apache.

 Thanks

 [EMAIL PROTECTED]


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


 Hi - I'm doing that sort of thing myself. I'm running Linux (redhat 7)
with
 Apache 1.4 and Tomcat 3.2.1. I've gotten Tomcat running standalone, and
I'm
 about to start work on integrating it with Apache. All the documentation
 says to use mod_jserv to handle this, but many people on the list have
 suggested that mod_jk is easier to configure. I believe mod_jserv is
pretty
 easy, too, except you have to wait for the next full moon and the
procedure
 seems to require three virgins for some reason. Mod_jk is not available
 standalone anywhere, as far as I can tell; you have to download the
Tomcat
 sources and build it from that. I'll let you know how my adventures
proceed.

 Glen


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



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





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




Re: dose tomcat 3.1 work with jre1.3

2001-01-08 Thread bhkwan


I didn't use jre1.3 but jdk1.3.  I don't think there is any different if
you are just trying to start Tomcat.

I am running Tomcat 3.2.1 + Apache 1.3.14 and everything is fine.



   
   
Andrew 
   
Burrows  To: Tomcat User   
   
andrewbu@big[EMAIL PROTECTED]  
   
pond.comcc:   
   
 Subject: dose tomcat 3.1 work with jre1.3 
   
01/08/2001 
   
01:22 PM   
   
Please 
   
respond to 
   
tomcat-user
   
   
   
   
   




HI all,
I have this problem I'm trying to run tomcat3.1 with Apache but every time
I
try to add the tomcat.conf to my httpd.conf Apache just fails to start.
I must say the document aren't clear.

Please help as I need this project completed today.

Andrew
[EMAIL PROTECTED]




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





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




Re: i'm in trouble with configuring virtual hosting of tomcat 3.2

2001-01-06 Thread bhkwan


Phillip Rhodes post the following instruction which is working prefectly
for me...

check it out...


POST from Phillip Rhodes:

This kind of got long and detailed.   I would like it to be reused if
possible in the faq.

I did it.  I have 3 virtual hosts in Apache, with 3 different instances of
Tomcat.  One for each virtual host.

I am running apache 1.3.9 on FreeBSD, jdk1.2.2, tomcat 3.2.1

create a subdirectory in /usr/local/jakarta-tomcat-3.2.1 for each apache
virtual host you want to run a tomcat instance for.  You can call them
tomcat1, tomcat2, and tomcat3

copy /usr/local/jakarta-tomcat-3.2.1/conf into each of your new
subdirectories.
The following commands are just used to clarify the above stepI know
you
know this!
cd /usr/local/jakarta-tomcat-3.2.1/
cp -R conf ./tomcat1
cp -R conf ./tomcat2
cp -R conf ./tomcat3
So now there is a ./tomcat1/conf, ./tomcat2/conf and a ./tomcat3/conf

You need to edit each server.xml in each of the conf directories that you
have just created.
Edit Steps:

1)
Find the ContextManage element and add the attribute "home", as shown
below.
This allows tomcat to create what it needs in each of the subdirectories
that you have created.
ContextManager home="tomcat1" debug="0" workDir="work"
showDebugInfo="true" 
When you edit the 2nd and 3rd server.xml files, just change tomcat1 to
tomcat2, and so on.

2)
Find the connector for HTTP.  This defaults to 8080 or something like that,
but in any case, it is a STUPID default, because you have default http,
ajp12 and ajp13 ports right next to each other.  I like to increment my
ports as I increment my instances.  Change the first server.xml file to use
an http port of "7001", the second one can be 7002, and so one.  (A brief
aside for the enlightened, my scheme is 7000's for HTTP, 8000's for ajp12
and 9000's for ajp13)

If you don't understand the above, don't worry, just find the line below
and
change the value to "7001" for you first server.xml, use 7002 for your
second server.xml, 7003 for yourand so on.

!-- Normal HTTP --
Connector className="org.apache.tomcat.service.PoolTcpConnector"
Parameter name="handler"

value="org.apache.tomcat.service.http.HttpConnectionHandler"/
Parameter name="port"
value="7001"/
/Connector

3)
Find the connector for ajp12.  Change the port to 8001.  Use 8002, and so
on
for your other server.xml's
!-- Apache AJP12 support. This is also used to shut down tomcat.
  --
Connector className="org.apache.tomcat.service.PoolTcpConnector"
Parameter name="handler"
   value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/
Parameter name="port" value="8001"/
/Connector

4)
Add this line right after where the above line ends!  For subsequent
server.xml files, increment the port of 9001 to 9002

!--enable AJP13 support
  --
Connector className="org.apache.tomcat.service.PoolTcpConnector"
Parameter name="handler"
value
="org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/
Parameter name="port" value="9001"/
/Connector

5)  Add the following right after the line above.  Change the name
attribute
of element host. This value will be the virtual host as it is known to
apache. Change docbase to point to your web server document root!

Host name="www.rhoderunner.com"
  Context path="/" docBase="/usr/local/www/rhoderunner" debug="0"/
/Host

You are now done with server.xml file editing.

6)
Now edit the /usr/local/jakarta-tomcat-3.2.1/conf /workers.properties file.
You should read the HOWTO on this, but just follow the pattern that I have
done:  You can see my file at
http://www.rhoderunner.com/tomcatconf/workers.properties

Make sure your JAVA_HOME, PS environment variable are set correctly.
You want to create a 2 workers for every virtual host.  One worker will be
of type ajp12, and the other will be ajp13
I used a portion of the domain appended to the type of worker to name it.
This makes it much easier when you are setting up your apache conf file.
For example, here is my def for "ajp13rhoderunner".  Notice that I use port
9001 for the ajp13.  Remember the schema I defined earlier?  We use 9000
for
ajp3, and 8000 for ajp2

#
# Defining a worker named ajp13 and of type ajp13
# Note that the name and the type do not have to match.
#
worker.ajp13rhoderunner.port=9001
worker.ajp13rhoderunner.host=localhost
worker.ajp13rhoderunner.type=ajp13
#
# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
#   lbfactor must be  0
#   Low lbfactor means less work done by the worker.
worker.ajp13rhoderunner.lbfactor=1


Edit your apache httpd.conf file  Here is how I defined 2 virtual hosts:
# Load mod_jk
#
LoadModule

JSP won't return anything if Tomcat 3.2.1 start as nobody.

2001-01-04 Thread bhkwan

jsp page return 404 if I start tomcat 3.2.1 as nobody.  If I start it as
root, jsp is fine.

what is going on?



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




Howto: mod_jk + tomcat 3.2.1 + apache 1.3.14 + virtual host

2001-01-04 Thread bhkwan

I can successfully create two virtual hosts ( mod_jk + tomcat 3.2.1 +
apache 1.3.14 ) with ONE instance of tomcat.  I would like to be able to
let the tow virtual hosts' owner to start their instance of tomcat.  In
that case, tomcat's instance will own by them instead of NOBODY.

the currently HOWTO only tell us how to setup two virtual hosts with one
tomcat instance using mod_jk. ( I know there are lot of document tell you
how to do this with mod_jserv. )

If anyone has successfully doing this, can you post your configuration.  I
pretty sure a lot of people will need that too..


thanks


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




virtual host..

2001-01-03 Thread bhkwan

I have tried to setup virtual host with Tomcat but failed.  JSP run on
main.somewhere.com but None of the JSP run on the a.somewhere.com virtual
host.

here is my server.xml configuration:

.
!-- Virtual host example -
 In "127.0.0.1" virtual host we'll reverse "/" and
 "/examples"
 (XXX need a better example )
 (use  "http://127.0.0.1/examples" )
Host name="127.0.0.1" 
   Context path=""
docBase="webapps/examples" /
   Context path="/examples"
docBase="webapps/ROOT" /
/Host
 --
Host name="a.somewhere.com" 
   Context path=""
docBase="/home/somewhere/a" /
/Host

/ContextManager
/Server

Here is my httpd.conf.
...
JkWorkersFile
/home/apps/jakarta/jakarta-tomcat-3.2.1/conf/workers.properties
JkLogFile   /var/log/httpd/mod_jk.log
JkLogLevel  warn
VirtualHost 10.2.1.60
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /home/apps/apache-1.3.14/htdocs
CustomLog /home/apps/apache-1.3.14/logs/somewhere.log combined
Servername main.somewhere.com
JkMount /servlet/* ajp13
JkMount /*.jsp ajp13
Alias /examples
"/home/apps/jakarta/jakarta-tomcat-3.2.1/webapps/examples"
Directory
"/home/apps/jakarta/jakarta-tomcat-3.2.1/webapps/examples"
Options Indexes FollowSymLinks
/Directory
Directory
"/home/apps/jakarta/jakarta-tomcat-3.2.1/webapps/examples/WEB-INF/"
AllowOverride None
deny from all
/Directory
Directory
"/home/apps/jakarta/jakarta-tomcat-3.2.1/webapps/examples/META-INF/"
AllowOverride None
deny from all
/Directory
/VirtualHost
VirtualHost 10.2.1.60
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /home/somewhere/a/htdocs
CustomLog /home/apps/apache-1.3.14/logs/somewhere-a.log combined
Servername a.somewhere.com
JkMount /*.jsp ajp13
JkMount /myapp/* ajp13
Directory "/home/somewhere/a"
Options Indexes FollowSymLinks
/Directory
Directory "/home/somewhere/a/WEB-INF"
AllowOverride None
deny from all
/Directory
Directory "/home/somewhere//META-INF"
AllowOverride None
deny from all
/Directory
/VirtualHost


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