Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_jsp thread: Tomcat and IIS


Message #1 by "Lior Shliechkorn" <lior@f...> on Wed, 16 Oct 2002 18:56:27
Thanks for the reply. Can you perhaps explain to me why this is happening?

Localhost seems to only pick up on jsp pages and not locate html pages, 
and IIS through my URL only picks up on html pages and not the jsp. I 
checked IIS and saw that it has index.html/htm on the virtual directories 
and I added some more extensions for precaution and it's still not 
working. This is my worker.properties:

#
# general stuff
#
workers.tomcat_home=c:\tomcat
workers.java_home=c:\jdk1.3.1_04
ps=\

#
# workers list
#
worker.list=ajp12, ajp13

#
# ajp12 communicates on port 8007
#
worker.ajp12.port=8007
worker.ajp12.host=localhost
worker.ajp12.type=ajp12
worker.ajp12.lbfactor=1

#
# ajp13 connector communicating on port 8009
#
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1

#
# load balancing
#
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13, ajp12

#
# The JVM that we are about to use
#
worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)
classic$(ps)jvm.dll

#
# Setting the place for the stdout and stderr of tomcat
#
worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)
inprocess.stdout
worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)
inprocess.stderr

I added the virtual directory on IIS, named the same as the webapp and 
pointing to that directory. I can only see html pages though. I got to the 
URL/webapp/html/login.html and it's fine. But when I try to post the info 
to a servlet URL/webapp/servlet/Login it doesn't work. I get a page not 
found error. The same for every JSP page, I even just copied in Hello.jsp 
to make sure it has nothing to do with my code. I check the redirect log 
and it says that it found a mapping match and it should be redirected to 
ajp13 but nothing happens. The pages aren't served. I even went ahead and 
added the examples directory to IIS and it's the same thing. 

What do you think could be wrong? I really have no clue at this point.


  Return to Index