• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Configuring Tomcat with IIS 5.0 (very Urgent)

 
Amit Roy
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi friends
This is a problem which requires help urgently i am tryin to configure Tomcat with IIS 5.0 I am gettin a problem with the worker_file setting for typos name and Data and with worker_mount_file setting typos,name and Data if the above settings are properly done then a green arrow pointing upwards should appear according to the specification but i am gettin a red arrow pointing downwards please some one help me out
URGENT
Amit
 
Amit Roy
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Come On guys Dont tell me that no one in javaranch knows to configure Tomcat with IIS 5.0
 
kashif sohail
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is not the reply whic no of new ones like me expecting
anyway
thax
 
Nitin Dubey
Ranch Hand
Posts: 126
Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi amit,

think u r frustrated man ....
check the jakarta project at apache site. they have provided documentation for configuring tomcat with IIS 5.0. i have done it successfully without any problem.
if u r getting red down arrow that means that your isapi redirector is'nt configured properly.
i myself has noted down some steps to configure the same. hope it helps u ....
machinename is name of your machine or IP
servletname is name of your servlet .class file
Steps :
1) Install tomcat by extracting the zip file into default folder given in zip file.
2) Use tomcat.bat to start tomcat. This batch files sets up the necessary environment to run tomcat.
3) give address http://machinename:8080 to check the tomcat. Try a few examples in it.
4) Start iis and check whether it is working fine or not by giving http://machinename.
5) Use Tomcat-IIS HowTo.htm to configure tomcat and iis. (it worked with tomcat 3.2.1 and IIS 5.0 with WIN 2000)
6) Place your Servlet file in TOMCAT_HOME\webapps\examples\WEB-INF\classes
7) Give this URL in your HTML file <http://machinename/examples/servlet/servletname>
8) Make another virtual directory in IIS and give physical path of your html file.
9) Now call your html file from browser by giving http://machinename/virtualdirectoryname/htmlfilename
10) If this runs ur successful in doing it else recheck..
GOOD LUCK
Making it sensible (running an example) :
1) Make a virtual directory in IIS and put your HTML file in it.
2) Copy your file in TOMCAT_HOME\webapps\examples\WEB-INF\classes
3) Start tomcat and IIS.
4) Your url in the html should be http://machinename/examples/servlet/servletname
-- machinename : Name of your machine
-- examples : Is the context
-- servletname : Is the name of your servlet that u have put in TOMCAT_HOME\webapps\examples\WEB-INF\classes folder
5) Open browser and type url http://machinename/virtualdirectoryname/htmlfilename
-- machinename : Name of your machine
-- virtualdirectoryname : Name of the virtual directory that u have created in IIS
-- htmlfilename : HTML file name. the file that u have put in physical path of the virtual directory
6) This will open your html file. Press submit...
7) Now you should get the reply from servlet.....if so u r successful.

Making a new context
1) Open server.xml from folder TOMCAT_HOME\conf
2) Copy the structure of TOMCAT_HOME\webapps\examples folder into new folder under TOMCAT_HOME\webapps. The name of the context and folder should be same.
with the name same as that of the context
3) Append the following lines in the file at the end between <ContextManager> .... </ContextManager>
<Context path="/contextname"
docBase="webapps/foldername"
crossContext="true"
debug="0"
reloadable="true"
trusted="false" >
</Context>
-- contextname : Name of the context
-- foldername : Name of the folder which should be the same as contextname
4) Change the url in the html with new context name. In the previous example it was examples.
5) Open browser and open the html file making use of virtual directory.
6) Press submit and you will get the reply from the servlet

this is what i have followed. let me know whether it helped u or not.
nitin
:-)
 
Amit Roy
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a ton Nitin i am sure that u took a lot of pains to reply to that though i have no ttried ur solution as yet ill do it today and if it works i sure owe u a drink
Amit
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic