Hi, John

Is there any HOWTO for win2k? Similar to that for RH?
For my setup and configure of Apache, Tomcat and JK2
on win2k, it seems that Apache and Tomcat can work
well seperately. But it cannot work to open jsp file
with Apache to acivate Tomcat to deal with. And I got
the message on the Tomcat window: APR not loaded,
disabling jni component:java.io.ioexception: no jkjni
in java.library.path. Can you help me? Thanks lots,

Minger

--- "Turner, John" <[EMAIL PROTECTED]> wrote:
> 
> I don't think you can get any simpler than this:
> 
> http://www.johnturner.com/howto
> 
> The version numbers are irrelevant...the procedures
> are the same.
> 
> Newer versions of Tomcat use one connector class to
> handle multiple
> protocols.  That class is called CoyoteConnector and
> it "talks" JK, JK2, and
> HTTP (and I think HTTPS as well).  Older versions of
> Tomcat used a class
> called Ajp13Connector to "talk" JK.  If you are
> using JK, you can use either
> CoyoteConnector (enabled by default) or
> Ajp13Connector.  If you are using
> JK2, you have to use CoyoteConnector.
> 
> In your files, you are using JK commands (JkMount)
> with a JK2 module, that
> won't work. Check my HOWTO, if you have problems,
> post back to the list.
> 
> Also, flagging messages as "urgent" or "high
> importance" isn't very polite,
> and will probably cause more people to ignore your
> post than to read it and
> answer it....we're all very, very busy, and your
> important issue isn't any
> more important than those of anyone else.
> 
> John
> 
> 
> -----Original Message-----
> From: Rob Cartier [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, December 16, 2002 5:11 PM
> To: [EMAIL PROTECTED]
> Subject: Help: Simple example to use tomcat 4.1.12 /
> Apache 1.3 and mod_jk
> ??
> Importance: High
> 
> I having looking for a very simple howto
> on how to get on RH 7.2
> 
> Tomcat 4.1.12 
> Apache 1.3 
> Mod_jk  or mod_jk2
> 
> working together possibly using the /examples that
> are included with tomcat as a test bed.
> 
> I am confused on how to configure tomcat. 
> I see Coyote/AJP13 and ajp13 in  the server.xml
> file but I am unsure which one to  use.
> 
> There is also a discussion of jk2.properties
> file but that one is all commented out and there
> seems to be no clear example of what needs to
> be done in the server.xml and jk2.properties
> if anything that needs to be adjusted. 
> 
> On the Apache side I have tried both
> mod_jk and mod_jk2 but the examples in the how to 
> are either for mod_jk.so or mod_jk2.so
> cant tell . It is very fustrating.
> 
> Does anyone have a very simple docs I can follow
> 
> ==================================================
> 
> Here are some of my files
> 
> 
> I added this to my httpd.conf in the beginning
> 
> LoadModule jk2_module          modules/mod_jk2.so
> ADDModule  mod_jk2.c
> --------------
> 
> at the bottom I added so that it would at least
> start
> 
> 
> LoadModule jk2_module libexec/mod_jk2.so
> AddModule mod_jk2.c
> <IfModule mod_jk2.c>
> 
>  Jk2WorkersFile /etc/httpd/conf/workers.properties
>  JkLogFile /var/log/httpd/mod_jk2.log
>  JkLogLevel info
>  JkLogStampFormat "(%a %b %d %H:%M:%S %Y) "
>  JkOptions +ForwardKeySize +ForwardURICompat
> -ForwardDirectories
>  JkRequestLogFormat "%w %V %T"
>  JkMount /examples/servlet/* worker1
>  JkMount /examples/*.jsp worker1
> </IfModule>
> 
> 
> my worker2.properties file
> ============================
> # Define 1 real worker using
> ajp13worker.list=worker1 
> # Set properties for worker1
> (ajp13)worker.worker1.type=ajp13 
> worker.list=worker1
> worker.worker1.host=localhost 
> worker.worker1.port=8009 
> worker.worker1.lbfactor=50 
> worker.worker1.cachesize=10 
> worker.worker1.cache_timeout=600 
> worker.worker1.socket_keepalive=1 
> worker.worker1.socket_timeout=300 
> 
> 
> 
> 
> What I wind up is protocol errors in my catalina.out
> file
> 
> Ajp13Connector active threads=6
>
java.lang.ThreadGroup[name=Ajp13Connector[8009],maxpri=10]
>    
> Thread[Ajp13Connector[8009],5,Ajp13Connector[8009]]
>    
>
Thread[Ajp13Processor[8009][0],5,Ajp13Connector[8009]]
>    
>
Thread[Ajp13Processor[8009][1],5,Ajp13Connector[8009]]
>    
>
Thread[Ajp13Processor[8009][2],5,Ajp13Connector[8009]]
>    
>
Thread[Ajp13Processor[8009][3],5,Ajp13Connector[8009]]
>    
>
Thread[Ajp13Processor[8009][4],5,Ajp13Connector[8009]]
> ===================================
> BAD packet 256
> In: : [B@958bf9 4/843
> 01 00 03 47 00 00 00 00 00 00 00 00 00 00 00 00  |
> ...G............
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  |
> ................
> 
> ........
> 
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system
> (http://www.grisoft.com).
> Version: 6.0.419 / Virus Database: 235 - Release
> Date: 11/13/2002
>  
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system
> (http://www.grisoft.com).
> Version: 6.0.419 / Virus Database: 235 - Release
> Date: 11/13/2002
>  
> 
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 


__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com

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

Reply via email to