Re: question about setting up Apache and Tomcat

2001-05-17 Thread rday


At 5/16/01 5:45:08 PM, HDung [EMAIL PROTECTED] wrote:
#  Hello everybody,
#  I've had hard time in setting up Apache to talk to
#  Tomcat in WinNT.
#  I read some questions and answers similar to my
#  problem but they didn't help me either.
#  Hopefully, I can get help from this list.
#
#  Here is what I did:
#
#  -installed Tomcat 3.2.1
#  -installed Apache 1.3.14
#  -downloaded mod_jk.dll and put it under
#  c:/Apache/modules dir.
#  -added the following lines to httpd.conf
#  LoadModulejk_module  libexec/mod_jk.so
#  AddModule mod_jk.c
#  JkWorkersFile
#  /usr/local/tomcat/conf/workers.properties
#  JkLogFile /usr/local/apache/logs/mod_jk.log
#  JkLogLevelwarn
#  Include c:\tomcat\conf\mod_jk.conf-auto

I'm not even sure how you got Apache to run with this configuration (have you
tried Apache.exe -t?). Eventually, after much fiddling, I inserted the following
line - and only the following line - into the httpd.conf

Include c:/hqbin/apache/jakarta-tomcat-3.2.1/conf/mod_jk.conf-auto

Everything that you put in the httpd.conf is already in mod_jk.conf-auto, so
including it  and making sure all the include lines reference things that exist
- including

LoadModule jk_module modules/mod_jk.dll

(notice that I've used .dll rather than so)

should be more than enough.

I have no idea about the rest, although you should look at the line for the
examples in the include file.

#  -commented out the connector to port 8080 in
#  server.xml
#  -Set classpath for Tomcat and Apache
#  -Use 8007 for ajp12
#  When I setup Tomcat stand alone, everything is fine.
#  The installation for Apache is also successful (I can
#  see the first page saying I'm successful in installing
#  Apache when go to http://localhost)
#  After setup Apache to talk to Tomcat, I go to
#  http://localhost/schart/test.jsp
#  (Schart is the directory where I put my jsp)
#  It can't find my file, looking in the log file, the
#  server looks for /apache/htdocs/schart/test.jsp
#  instead of looking for it in Tomcat.  So, I know the
#  setup is not right and Apache can't talk to tomcat.
#
#  Please help.
#
#  Thank you so much!
#
#  Thao Nguyen
#
#  __
#  Do You Yahoo!?
#  Yahoo! Auctions - buy the things you want at great prices
#  http://auctions.yahoo.com/
#
Roger





Re: Attn: Roger - question about setting up Apache and Tomcat

2001-05-17 Thread HD


I'm not even sure how you got Apache to run with this
configuration (have you tried Apache.exe -t?). 

== Usually I double click the apache.exe file.  I
just tried your cmd the msg is: syntax OK, that's it.


Include
c:/hqbin/apache/jakarta-tomcat-3.2.1/conf/mod_jk.conf-auto
== Tomcat doesn't have to be installed under Apache
dir. right?  (just make sure)

LoadModule jk_module modules/mod_jk.dll

(notice that I've used .dll rather than so)
== Got this

I put the following 2 lines into httpd.conf file:

LoadModule jk_module modules/mod_jk.dll
Include c:\tomcat\conf\mod_jk.conf-auto

I have no idea about the rest, although you should
look at the line for the examples in the include file.

== I don't either but when I read the instructions in
the Tomcat website, I did what was there.

With the new setup, apache still doesn't talk to
tomcat.

One more thing, I put a dir named schart under
tomcat/webapps/ here I have my jsp files.
If I want to test Apache - Tomcat communication, I go
to http://localhost/schart/test.jsp, is this correct? 
The error log tells me that
c:/apache/htdocs/schart/test.jsp does not exist
I changed the DocumentRoot in the httpd.conf
file to point to C:/apache (the original point to
c:/apache/htdocs)

Thanks,
Thao



__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



Re: Attn: Roger - question about setting up Apache and Tomcat

2001-05-17 Thread rday


At 5/17/01 2:44:56 PM, HD [EMAIL PROTECTED] wrote:
#  I'm not even sure how you got Apache to run with this
#  configuration (have you tried Apache.exe -t?).
#
#  == Usually I double click the apache.exe file.  I
#  just tried your cmd the msg is: syntax OK, that's it.
#
#
#  Include
#  c:/hqbin/apache/jakarta-tomcat-3.2.1/conf/mod_jk.conf-auto
#  == Tomcat doesn't have to be installed under Apache
#  dir. right?  (just make sure)

That's just my configuration. And - my mistake - it should be

c:\tomcat\conf\mod_jk.conf

-auto means it's auto-generated doh!

#  LoadModule jk_module modules/mod_jk.dll
#
#  (notice that I've used .dll rather than so)
#  == Got this
#
#  I put the following 2 lines into httpd.conf file:
#
#  LoadModule jk_module modules/mod_jk.dll

That's also in the mod_jk.conf file - why don't you just look at the file?

#  Include c:\tomcat\conf\mod_jk.conf-auto
#
#  I have no idea about the rest, although you should
#  look at the line for the examples in the include file.
#
#  == I don't either but when I read the instructions in
#  the Tomcat website, I did what was there.
#
#  With the new setup, apache still doesn't talk to
#  tomcat.

I bet it does. Try this:

http://localhost/examples/jsp/

and clicking on the examples there

#  One more thing, I put a dir named schart under
#  tomcat/webapps/ here I have my jsp files.
#  If I want to test Apache - Tomcat communication, I go
#  to http://localhost/schart/test.jsp, is this correct?
#  The error log tells me that
#  c:/apache/htdocs/schart/test.jsp does not exist
#  I changed the DocumentRoot in the httpd.conf
#  file to point to C:/apache (the original point to
#  c:/apache/htdocs)

Roger





Re: Attn: Roger - question about setting up Apache and Tomcat

2001-05-17 Thread HD

Roger,

I don't know why the instruction on the Tomcat website
include the mod_jk.conf-auto.  
Since I don't know much about it, so I just followed
exactly what they instructed.  

I bet it does. Try this:

http://localhost/examples/jsp/
== don't know why it doesn't. That's why I need help.

I just reinstalled my Apache and Tomcat.
What I changed is below, please check if I'm right:

- Put the line: Include c:\tomcat\conf\mod_jk.conf
in httpd.conf 

- Changed mod_jk:
LoadModule jk_module modules/mod_jk.dll

IfModule mod_jk.c

JkWorkersFile c:/tomcat/conf/workers.properties
JkLogFile  logs/jk.log
JkLogLevel warn
JkMount /*.jsp ajp12
JkMount /servlet/* ajp12
JkMount /* ajp12
/IfModule

- I see this in tomcat-apache file:
LoadModule jserv_module modules/ApacheModuleJServ.dll
ApJServManual on
ApJServDefaultProtocol ajpv12
ApJServSecretKey DISABLED
ApJServMountCopy on
ApJServLogLevel notice

ApJServDefaultPort 8007

AddType text/jsp .jsp
AddHandler jserv-servlet .jsp

Alias /examples C:/tomcat/webapps/examples
Directory C:/tomcat/webapps/examples
Options Indexes FollowSymLinks
/Directory
ApJServMount /examples/servlet /examples

== I think I should change here too, since it's
looking for Jserv, I changed all ApJserv with Jk, and
other things relate to mod_jk, this is a guess. 

After all, nothing's working :((( 

Sorry to bother you but I must get this work.  Don't
know if I miss changing something else.


I appreciate your time!
Thao





__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



question about setting up Apache and Tomcat

2001-05-16 Thread HDung

Hello everybody,
I've had hard time in setting up Apache to talk to
Tomcat in WinNT.
I read some questions and answers similar to my
problem but they didn't help me either.
Hopefully, I can get help from this list.

Here is what I did:

-installed Tomcat 3.2.1
-installed Apache 1.3.14
-downloaded mod_jk.dll and put it under
c:/Apache/modules dir.
-added the following lines to httpd.conf
LoadModulejk_module  libexec/mod_jk.so
AddModule mod_jk.c
JkWorkersFile
/usr/local/tomcat/conf/workers.properties
JkLogFile /usr/local/apache/logs/mod_jk.log
JkLogLevelwarn
Include c:\tomcat\conf\mod_jk.conf-auto
-commented out the connector to port 8080 in
server.xml 
-Set classpath for Tomcat and Apache
-Use 8007 for ajp12
When I setup Tomcat stand alone, everything is fine. 
The installation for Apache is also successful (I can
see the first page saying I'm successful in installing
Apache when go to http://localhost)
After setup Apache to talk to Tomcat, I go to
http://localhost/schart/test.jsp
(Schart is the directory where I put my jsp)
It can't find my file, looking in the log file, the
server looks for /apache/htdocs/schart/test.jsp
instead of looking for it in Tomcat.  So, I know the
setup is not right and Apache can't talk to tomcat.

Please help.  

Thank you so much!

Thao Nguyen

__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/