integrate Tomcat/IIS

2001-11-26 Thread Ponian Chu

Hi there, I am new in this list~ 

I need some help with Tomcat/IIS integration

I tried to integrate Tomcat 3.3 with IIS on my Windows 2000 system with difficulty...

My environment is:
-- all servlet classes are put in %tomcat_home%\webapps\ROOT\WEB-INF\classes folder
-- web site is put in c:\home\httpd\html folder which is set in IIS. A PHP redirector 
handles url redirection..
-- the isapi redirector filter is setup and test ok
-- http://localhost/examples/jsp/num/numguess.jsp is ok
-- http://localhost/servlet/SnoopServlet get 404 error
-- http://localhost:8080/servlet/SnoopServlet ok, but I don't like to put the port 
number in url


I tried to modify the %tomcat_home%\conf\auto\uriworkermap.properties, and add 2 lines:
  /=$(default.worker)
  /*=$(default.worker)
at line 9, the 404 error is fixed, but the real index.html is not reachable anymore..

any hints are appreciated.

Thank you in advance..



Re: integrate Tomcat/IIS

2001-11-26 Thread Samuel Rochas

Hi Chu, 

You'll need to configure your servlet in the server.xml file like this:
Context path=/servlet 
 docBase=[your path here like webapps/servlet or absolute]\ 
 crossContext=false
 debug=0 
 reloadable=true 
/Context

Put all the stuff you need for your servlet at the same place:
everything under %tomcat_jome%/... or under your local path.

The changes in uriworkermap.properties seen ok

Samuel
-- 
SWIPe Software Engineering  Project Management GmbH

Solutions with Individual Profile

Web: http://www.swipe.de

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: integrate Tomcat/IIS

2001-11-26 Thread Larry Isaacs

The default in Tomcat 3.3 is to *not* try to take over the
root context from an external web server, such as IIS.
Thus, http://localhost/servlet/SnoopServlet getting a 404
is the expected default behavior.  If you want to have
this URL work, you can set the noRoot attribute of the
IISConfig element in server.xml to false.  Following this
change, re-run jkconf and restart IIS.

However, here is a little more info about what you are
getting into, which should give you a clue as why its
disable by default.

1) With IISConfig's default forwardAll=true, setting
   noRoot=false means all root requests go to
   Tomcat.  This includes requests for *all* resources
   in virtual directories defined in IIS, not just
   InetPub\wwwroot.

2) To avoid #1 above, you can define forwardAll=false
   in addition to noRoot=false.  Now servlets and
   JSPs will be handled by Tomcat and static content
   handled by IIS.  (Note: This setting gives you
   behavior closest to what Tomcat 3.2.x implements.)
   The problem is that IIS thinks static content
   should come from InetPub\wwwroot, Tomcat thinks
   it should come from webapps\ROOT.  You will need
   to merge InetPub\wwwroot and webapps\ROOT in an
   appropriate way to get it to work correctly.  It is
   necessary to configure IIS to duplicate any web.xml
   settings not handled by the generated
   uriworkermap.properties file.

Hope this helps.

Cheers,

Larry

 -Original Message-
 From: Ponian Chu [mailto:[EMAIL PROTECTED]]
 Sent: Monday, November 26, 2001 7:01 AM
 To: [EMAIL PROTECTED]
 Subject: integrate Tomcat/IIS
 
 
 Hi there, I am new in this list~ 
 
 I need some help with Tomcat/IIS integration
 
 I tried to integrate Tomcat 3.3 with IIS on my Windows 2000 
 system with difficulty...
 
 My environment is:
 -- all servlet classes are put in 
 %tomcat_home%\webapps\ROOT\WEB-INF\classes folder
 -- web site is put in c:\home\httpd\html folder which is set 
 in IIS. A PHP redirector handles url redirection..
 -- the isapi redirector filter is setup and test ok
 -- http://localhost/examples/jsp/num/numguess.jsp is ok
 -- http://localhost/servlet/SnoopServlet get 404 error
 -- http://localhost:8080/servlet/SnoopServlet ok, but I don't 
 like to put the port number in url
 
 
 I tried to modify the 
 %tomcat_home%\conf\auto\uriworkermap.properties, and add 2 lines:
   /=$(default.worker)
   /*=$(default.worker)
 at line 9, the 404 error is fixed, but the real index.html is 
 not reachable anymore..
 
 any hints are appreciated.
 
 Thank you in advance..
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: integrate Tomcat/IIS

2001-11-26 Thread Ponian Chu

Thank Samuel and Larry,
I solved the problem this morning~
I added a line in %tomcat_home%\conf\auto\uriworkermap.properties:
  /servlet/*=$(default.worker)
than I can go to http://localhost/servlet/SnoopServlet without any errors.

Thank you again~
ponian


==
 PC home ¹q¤l«H½c¡A¥Ó½Ð½Ð¦Ü: http://www.pchome.com.tw
 PC home Online ºô¸ô®a®x¡G·|­û²Ä¤@¡A¥xÆW³Ì¤jªº¤J¤fºô¯¸
==

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]