Re: Tomcat FAQs on Wiki

2003-12-02 Thread Cliff Willsher
Mark,

Thank you for this. With a just a little jiggery-pokery I was able to get 
Tomcat5 and IIS5 working together in minutes after many frustrating hours.

Thanks again.
Cliff
At 13:37 01/12/2003 -0800, you wrote:
Folks,

I have put some of my documentation on the Tomcat Wiki
at:
http://nagoya.apache.org/wiki/apachewiki.cgi?TomcatWeb

These are sort of bare-bones documents about some ways
to connect Tomcat/Apache on Linux, Tomcat/Apache on
Windows/2000, and Tomcat/IIS 5 on Windows/2000.
Hopefully this will be of some use.

/mde/
just my two cents . . . .
__
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.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]


RE: Tomcat FAQs on Wiki - mod_jk2 howto

2003-12-02 Thread Scott, Sean
In what cases is step 5 required?  I am currently running without
jk2.properties at all. 

Can you explain what the purpose of jk2.properties is and when it should be
used?
What is the handler list used for?

Thanks

-sean

-Original Message-
From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 02, 2003 7:11 AM
To: Tomcat Users List
Subject: Re: Tomcat FAQs on Wiki - mod_jk2 howto


Tim Funk wrote:

> Writing anything like that for the list is a good thing since we can 
> always link to it in the archives ;)

Here goes.

STEP 1
--

Build "mod_jk2.so" and "jkjni.so" - do whatever needs to be done :-)

STEP 2
--

Place mod_jk2.so and jkjni.so with other Apache modules. In case of Mandrake

9.1, it was in /usr/lib/apache2-extramodules

STEP 3
--

Setup your Apache virtual host. Although you can run without it, I prefer
going 
the "right way". In my case:

/etc/httpd/conf.d/75_mod_jk2.conf
-
#
# Sample Apache configuration file for mod_jk2.
# Include this in your httpd.conf.
#

 
 LoadModule  jk2_module extramodules/mod_jk2.so
 



 #
 # Restrict access to JK status handler
 #
 
 Order Deny,Allow
 Deny from all
 Allow from 127.0.0.1
 Allow from 192.168.61.110
 


/etc/httpd/2.0/conf/vhosts/External.ev.co.yu

 ServerName  External.ev.co.yu
 ServerAdmin [EMAIL PROTECTED]
 DocumentRoot/home/www/public_html
 ErrorLog/home/www/logs/error.log
 CustomLog   /home/www/logs/access.log common
 
 ScriptAlias /cgi-bin/ "/home/www/cgi-bin/"
 
 
 AllowOverride FileInfo AuthConfig Limit Indexes
 Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
 
 Order allow,deny
 Allow from all
 
 
 Order deny,allow
 Deny from all
 
 
 
 AllowOverride None
 Options FollowSymLinks
 Order allow,deny
 Allow from all
 


STEP 4
--

Setup virtual host on Tomcat.

/etc/tomcat/server.xml
--

   
   
   
 
   


STEP 5
--

Setup JK2 on Tomcat side.

/etc/tomcat4/jk2.properties
---
# Set the desired handler list
# handler.list=apr,request,channelJni
handler.list=apr,request,channelUnix
#
apr.NativeSo=/usr/lib/apache2-extramodules/jkjni.so

request.tomcatAuthentication=false

channelUnix.file=${jkHome}/work/tomcat.sock

STEP 6 !!!
--

Ensure that jkjni.so picks up "serverConf" value from environment! The
easiest 
way for me was to edit /etc/tomcat/tomcat4.conf and add:

serverRoot=/etc/httpd/2.0
export serverRoot

If you're not using RPM version, just make sure that *that* variable is
defined 
in the script starting tomcat. This is needed by jkjni.so, so it can locate 
workers2.properties. And if you're wondering, jkjni.so is needed to talk to
UNIX 
domain socket. Tomcat can open it without using "handler apr" and jkjni.so,
but 
refuses to communicate over it.

STEP 7
--

Setup your Apache side of JK2. Edit ${serverConf}/worker2.properties file.
You 
must define socket channel, ajp13 worker and at least one URI mapping to
your 
virtual host. Needless to say, VHost definitions on Tomcat and Apache must 
(should?) match.

/etc/httpd/2.0/conf/workers2.properties
---
[logger]
level=DEBUG

[config:]
debug=0
debugEnv=0

[uriMap:]
info=Maps the requests. Options: debug
debug=0

# Alternate file logger
[logger.file:0]
level=DEBUG
file=/var/log/httpd/mod_jk2.log

[workerEnv:]
info=Global server options
timing=1
debug=0

[channel.un:unixsock]
info=Main socket to Tomcat engine
file=/var/tomcat4/work/tomcat.sock

[status:]
info=Status worker, displays runtime informations

[ajp13:unixsock]
info=Default AJP 1.3 worker
channel=channel.un:unixsock

[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:

[uri:external.ev.co.yu/bill]
info=Consumers bill
group=ajp13:unixsock

STEP 8
--

Restart Tomcat and then Apache.

Nix.


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

CONFIDENTIALITY NOTICE - This e-mail transmission, and any documents, files or 
previous e-mail messages attached to it may contain information that is confidential 
or legally privileged. If you are not the intended recipient, or a person responsible 
for delivering it to the intended recipient, you are hereby notified that you must not 
read this transmission and that any disclosure, copying, printing, distribution or use 
of any of the information contained in or attached to this transmission is STRICTLY 
PROHIBITED. If you have received this transmission in error, please

RE: Tomcat FAQs on Wiki

2003-12-02 Thread Derek Mahar
Speaking of Wiki, checkout Janne Jalkannen's JSPWiki at
http://www.jspwiki.org.

Derek

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: December 2, 2003 6:53 AM
To: Tomcat Users List
Subject: Re: Tomcat FAQs on Wiki


Google for Wiki. Most of the links are great and you'll learn more about
Wiki 
than you wish to know.

The best page about Wikis is this one: http://c2.com/cgi/wiki

-Tim

Adam Hardy wrote:
> On 12/02/2003 07:55 AM Nikola Milutinovic wrote:
> 
>> Mark Eggers wrote:
>>
>>> I have put some of my documentation on the Tomcat Wiki
>>> at:
>>>
>>> http://nagoya.apache.org/wiki/apachewiki.cgi?TomcatWeb
>>>
>>> These are sort of bare-bones documents about some ways
>>> to connect Tomcat/Apache on Linux, Tomcat/Apache on Windows/2000, 
>>> and Tomcat/IIS 5 on Windows/2000.
>>
>>
>> How does one contribute? I know Wiki is supposed to be free for
>> everyone to edit, but I've never done it. Any quick pointers,
links,...?
>>
>> I have managed to setup mod_jk2 over UNIX socket.
> 
> 
> Check out http://nagoya.apache.org/wiki/apachewiki.cgi?ApacheWiki
> 
> Adam
> 
> PS perhaps you should stick this link somewhere central in wiki as 
> well.


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



RE: Tomcat FAQs on Wiki

2003-12-02 Thread Shapira, Yoav

Howdy,
Wiki is for the most part trivially easy:
- Look for the link at the bottom of the page that says Edit Text or
something like that,
- Add your text
- Click save.

That's it.  There are a host of other tricks and trips on google.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Tim Funk [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, December 02, 2003 7:34 AM
>To: Tomcat Users List
>Subject: Re: Tomcat FAQs on Wiki
>
>Writing anything like that for the list is a good thing since we can
always
>link to it in the archives ;)
>
>Each Wiki has its quirks and can be a PITA.
>
>-Tim
>
>Nikola Milutinovic wrote:
>
>> Tim Funk wrote:
>>
>>> Google for Wiki. Most of the links are great and you'll learn more
>>> about Wiki than you wish to know.
>>>
>>> The best page about Wikis is this one: http://c2.com/cgi/wiki
>>
>>
>> I still haven't figured out how to publish to Wiki and frankly, I
don't
>> have the time. I'm up to my ass in crocodiles. After having setup
Linux
>> + PostgreSQL + Apache + Tomcat, I have to move the server into the
open
>> Internet.
>>
>> I can write the brief article on setting it up tot he list. Would
>> someone post it to WiKi?
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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



Re: Tomcat FAQs on Wiki - mod_jk2 howto

2003-12-02 Thread Nikola Milutinovic
Tim Funk wrote:

Writing anything like that for the list is a good thing since we can 
always link to it in the archives ;)
Here goes.

STEP 1
--
Build "mod_jk2.so" and "jkjni.so" - do whatever needs to be done :-)

STEP 2
--
Place mod_jk2.so and jkjni.so with other Apache modules. In case of Mandrake 
9.1, it was in /usr/lib/apache2-extramodules

STEP 3
--
Setup your Apache virtual host. Although you can run without it, I prefer going 
the "right way". In my case:

/etc/httpd/conf.d/75_mod_jk2.conf
-
#
# Sample Apache configuration file for mod_jk2.
# Include this in your httpd.conf.
#


LoadModule  jk2_module extramodules/mod_jk2.so



#
# Restrict access to JK status handler
#

Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Allow from 192.168.61.110


/etc/httpd/2.0/conf/vhosts/External.ev.co.yu

ServerName  External.ev.co.yu
ServerAdmin [EMAIL PROTECTED]
DocumentRoot/home/www/public_html
ErrorLog/home/www/logs/error.log
CustomLog   /home/www/logs/access.log common

ScriptAlias /cgi-bin/ "/home/www/cgi-bin/"


AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec

Order allow,deny
Allow from all


Order deny,allow
Deny from all



AllowOverride None
Options FollowSymLinks
Order allow,deny
Allow from all


STEP 4
--
Setup virtual host on Tomcat.

/etc/tomcat/server.xml
--

  
  
  

  

STEP 5
--
Setup JK2 on Tomcat side.

/etc/tomcat4/jk2.properties
---
# Set the desired handler list
# handler.list=apr,request,channelJni
handler.list=apr,request,channelUnix
#
apr.NativeSo=/usr/lib/apache2-extramodules/jkjni.so
request.tomcatAuthentication=false

channelUnix.file=${jkHome}/work/tomcat.sock

STEP 6 !!!
--
Ensure that jkjni.so picks up "serverConf" value from environment! The easiest 
way for me was to edit /etc/tomcat/tomcat4.conf and add:

serverRoot=/etc/httpd/2.0
export serverRoot
If you're not using RPM version, just make sure that *that* variable is defined 
in the script starting tomcat. This is needed by jkjni.so, so it can locate 
workers2.properties. And if you're wondering, jkjni.so is needed to talk to UNIX 
domain socket. Tomcat can open it without using "handler apr" and jkjni.so, but 
refuses to communicate over it.

STEP 7
--
Setup your Apache side of JK2. Edit ${serverConf}/worker2.properties file. You 
must define socket channel, ajp13 worker and at least one URI mapping to your 
virtual host. Needless to say, VHost definitions on Tomcat and Apache must 
(should?) match.

/etc/httpd/2.0/conf/workers2.properties
---
[logger]
level=DEBUG
[config:]
debug=0
debugEnv=0
[uriMap:]
info=Maps the requests. Options: debug
debug=0
# Alternate file logger
[logger.file:0]
level=DEBUG
file=/var/log/httpd/mod_jk2.log
[workerEnv:]
info=Global server options
timing=1
debug=0
[channel.un:unixsock]
info=Main socket to Tomcat engine
file=/var/tomcat4/work/tomcat.sock
[status:]
info=Status worker, displays runtime informations
[ajp13:unixsock]
info=Default AJP 1.3 worker
channel=channel.un:unixsock
[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:
[uri:external.ev.co.yu/bill]
info=Consumers bill
group=ajp13:unixsock
STEP 8
--
Restart Tomcat and then Apache.

Nix.

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


Re: Tomcat FAQs on Wiki

2003-12-02 Thread Tim Funk
Writing anything like that for the list is a good thing since we can always 
link to it in the archives ;)

Each Wiki has its quirks and can be a PITA.

-Tim

Nikola Milutinovic wrote:

Tim Funk wrote:

Google for Wiki. Most of the links are great and you'll learn more 
about Wiki than you wish to know.

The best page about Wikis is this one: http://c2.com/cgi/wiki


I still haven't figured out how to publish to Wiki and frankly, I don't 
have the time. I'm up to my ass in crocodiles. After having setup Linux 
+ PostgreSQL + Apache + Tomcat, I have to move the server into the open 
Internet.

I can write the brief article on setting it up tot he list. Would 
someone post it to WiKi?


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


Re: Tomcat FAQs on Wiki

2003-12-02 Thread Nikola Milutinovic
Tim Funk wrote:

Google for Wiki. Most of the links are great and you'll learn more about 
Wiki than you wish to know.

The best page about Wikis is this one: http://c2.com/cgi/wiki
I still haven't figured out how to publish to Wiki and frankly, I don't have the 
time. I'm up to my ass in crocodiles. After having setup Linux + PostgreSQL + 
Apache + Tomcat, I have to move the server into the open Internet.

I can write the brief article on setting it up tot he list. Would someone post 
it to WiKi?

Nix.

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


Re: Tomcat FAQs on Wiki

2003-12-02 Thread Tim Funk
Google for Wiki. Most of the links are great and you'll learn more about Wiki 
than you wish to know.

The best page about Wikis is this one: http://c2.com/cgi/wiki

-Tim

Adam Hardy wrote:
On 12/02/2003 07:55 AM Nikola Milutinovic wrote:

Mark Eggers wrote:

I have put some of my documentation on the Tomcat Wiki
at:
http://nagoya.apache.org/wiki/apachewiki.cgi?TomcatWeb

These are sort of bare-bones documents about some ways
to connect Tomcat/Apache on Linux, Tomcat/Apache on
Windows/2000, and Tomcat/IIS 5 on Windows/2000.


How does one contribute? I know Wiki is supposed to be free for 
everyone to edit, but I've never done it. Any quick pointers, links,...?

I have managed to setup mod_jk2 over UNIX socket.


Check out http://nagoya.apache.org/wiki/apachewiki.cgi?ApacheWiki

Adam

PS perhaps you should stick this link somewhere central in wiki as well.


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


Re: Tomcat FAQs on Wiki

2003-12-02 Thread Adam Hardy
On 12/02/2003 07:55 AM Nikola Milutinovic wrote:
Mark Eggers wrote:
I have put some of my documentation on the Tomcat Wiki
at:
http://nagoya.apache.org/wiki/apachewiki.cgi?TomcatWeb

These are sort of bare-bones documents about some ways
to connect Tomcat/Apache on Linux, Tomcat/Apache on
Windows/2000, and Tomcat/IIS 5 on Windows/2000.
How does one contribute? I know Wiki is supposed to be free for everyone 
to edit, but I've never done it. Any quick pointers, links,...?

I have managed to setup mod_jk2 over UNIX socket.
Check out http://nagoya.apache.org/wiki/apachewiki.cgi?ApacheWiki

Adam

PS perhaps you should stick this link somewhere central in wiki as well.
--
struts 1.1 + tomcat 5.0.14 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat FAQs on Wiki

2003-12-01 Thread Nikola Milutinovic
Mark Eggers wrote:

Folks,

I have put some of my documentation on the Tomcat Wiki
at:
http://nagoya.apache.org/wiki/apachewiki.cgi?TomcatWeb

These are sort of bare-bones documents about some ways
to connect Tomcat/Apache on Linux, Tomcat/Apache on
Windows/2000, and Tomcat/IIS 5 on Windows/2000.
Hopefully this will be of some use.
How does one contribute? I know Wiki is supposed to be free for everyone to 
edit, but I've never done it. Any quick pointers, links,...?

I have managed to setup mod_jk2 over UNIX socket.

Nix.

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


Tomcat FAQs on Wiki

2003-12-01 Thread Mark Eggers
Folks,

I have put some of my documentation on the Tomcat Wiki
at:

http://nagoya.apache.org/wiki/apachewiki.cgi?TomcatWeb

These are sort of bare-bones documents about some ways
to connect Tomcat/Apache on Linux, Tomcat/Apache on
Windows/2000, and Tomcat/IIS 5 on Windows/2000.

Hopefully this will be of some use.

/mde/
just my two cents . . . .

__
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

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