tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan_Pie...@seagram.com (Jonathan Pierce)
Subject Re[3]: Re[3]: IIS ISAPI / Tomcat Problem - Help
Date Wed, 19 Apr 2000 03:03:40 GMT
Success !!!!!!!!!!!!!

Gal,

Thanks again for all your help on this.  I removed option-pack and reinstalled
it, recreated the virtual directory, and added back the filter and everything
worked as you said it would.

I must have had a corrupted IIS installation or Frontpage extensions or
something.

One question, though. Why wasn't the IISAPI included in the 3.1 distribution? It
seems to work well.

Thanks again !!!!

Jonathan



____________________Reply Separator____________________
Subject:    Re[2]: Re[3]: IIS ISAPI / Tomcat Problem - Help
Author: tomcat-dev@jakarta.apache.org
Date:       4/18/00 6:50 PM

Gal,

Thanks for spending so much time on this.

>>Something is very wrong in this log...
>>According to the logs you accessed the url /jakarta/isapi_redirect.dll
>>(and you say you don't) or the filter is not getting called.

I see that too. The request looks really screwed up.

 I am going to try and  install on another server to see if I get the same
behavior.

>>- What version of IIS are you using ?

I'm running IIS 4.0 from the NT4 option pack on top of NT4, Service Pack 6.

>> Did you set (in the MMC) /examples or /jakarta to run in a process
>>  other than the original IIS process?

No

The only ones I see were installed by FrontPage 98 and IIS.

They are C:\WINNT\System32\inetsrv\sspifilt.dll and 

d:\Program Files\Microsoft FrontPage\version3.0\bin\fpexedll.dll

I'll let you know what happens on the other server in a few minutes after I try
it.

BTW,

I am running the prebuilt one, but I did try to compile it with another
environment other that VC++ and found lots of compilation errors. Do these need
to be fixed? There were cast errors from unsigned char* to char*, and functions
that declared a value with no explicit return call among other things. I can
send the errors if you like.

Jonathan

>>BTW - The same code works for me...

On Tue, 18 Apr 2000, Jonathan Pierce wrote:

> Something is still wrong with my IIS / Tomcat integration. 
> 
> Can someone please provide some light on this, or at least confirm that it
works
> for them with a recent build. I am spending too much time trying to figure
this
> out. 
> 
> I am still getting the 404 error from the URL even though the ISAPI seems to
be
> running.
> 
> http://localhost:80/examples/servlet/HelloWorldExample
> 
> 
> I increased the log level and attached my Tomcat.log. Can someone interpret
this
> output for me?
> 
> tomcat.log:
> 
> set work dir work
> Add contextInterceptor javaClass="org.apache.tomcat.context.AutoSetup" 
> Add contextInterceptor javaClass="org.apache.tomcat.context.DefaultCMSetter" 
> Add contextInterceptor
javaClass="org.apache.tomcat.context.WorkDirInterceptor" 
> Add contextInterceptor javaClass="org.apache.tomcat.context.WebXmlReader" 
> Add contextInterceptor
> javaClass="org.apache.tomcat.context.LoadOnStartupInterceptor" 
> Add requestInterceptor javaClass="org.apache.tomcat.request.SimpleMapper" 
> Add requestInterceptor
javaClass="org.apache.tomcat.request.SessionInterceptor" 
> Add requestInterceptor javaClass="org.apache.tomcat.request.SecurityCheck" 
> Add requestInterceptor javaClass="org.apache.tomcat.request.FixHeaders" 
> Add connector javaClass="org.apache.tomcat.service.SimpleTcpConnector"
> Add connector javaClass="org.apache.tomcat.service.SimpleTcpConnector"
> Context log: path="/examples" Adding context path="/examples" 
> docBase="webapps/examples"
> Context log: path="" Adding context path=""  docBase="webapps/ROOT"
> Context log: path="/test" Adding context path="/test"  docBase="webapps/test"
> Starting tomcat install="D:\Tomcat3.1\dist\tomcat"
> home="D:\Tomcat3.1\dist\tomcat"
> classPath="D:\Tomcat3.1\dist\tomcat\classes;D:\Tomcat3.1\dist\tomcat\lib\webse
rv
> er.jar;D:\Tomcat3.1\dist\tomcat\lib\jasper.jar;D:\Tomcat3.1\dist\tomcat\lib\xm
l.
> jar;D:\Tomcat3.1\dist\tomcat\lib\servlet.jar;D:\jdk1.2.2\lib\tools.jar;D:\jdk1
.2
> .2\lib\tools.jar;d:\sybtools\ASEP\Monclass.zip;d:\sybtools\ASEP\3pclass.zip;"
> Context log: path="/admin" Automatic context load
> docBase="D:\Tomcat3.1\dist\tomcat\webapps\admin"
> Context log: path="/admin" Adding context path="/admin" 
> docBase="D:\Tomcat3.1\dist\tomcat\webapps\admin"
> set work dir D:\Tomcat3.1\dist\tomcat\work
> Context log: path="/admin" Add mapping /servlet/* Ct (Wrapper(invoker
> org.apache.tomcat.servlets.InvokerServlet) )
> org.apache.tomcat.request.SimpleMapper$Mappings@884bcbe7
> Context log: path="/admin" Add mapping *.jsp Ct (Wrapper(jsp
> org.apache.jasper.runtime.JspServlet) )
> org.apache.tomcat.request.SimpleMapper$Mappings@884bcbe7
> Context log: path="/examples" XmlReader - init  /examples webapps/examples
> Context log: path="/examples" Reading D:\Tomcat3.1\dist\tomcat\conf\web.xml
> Context log: path="/examples" Add mapping /servlet/* Ct (Wrapper(invoker
> org.apache.tomcat.servlets.InvokerServlet) )
> org.apache.tomcat.request.SimpleMapper$Mappings@f40fcbe7
> Context log: path="/examples" Add mapping *.jsp Ct (Wrapper(jsp
> org.apache.jasper.runtime.JspServlet) )
> org.apache.tomcat.request.SimpleMapper$Mappings@f40fcbe7
> Context log: path="/examples" Reading
> D:\Tomcat3.1\dist\tomcat\webapps\examples\WEB-INF\web.xml
> Context log: path="/examples" Add mapping /snoop Ct (Wrapper(snoop
SnoopServlet)
> ) org.apache.tomcat.request.SimpleMapper$Mappings@f40fcbe7
> Context log: path="/examples" Add mapping *.snp Ct (Wrapper(snoop
SnoopServlet)
> ) org.apache.tomcat.request.SimpleMapper$Mappings@f40fcbe7
> Context log: path="/examples" Add mapping /servletToJsp Ct
(Wrapper(servletToJsp
> servletToJsp) ) org.apache.tomcat.request.SimpleMapper$Mappings@f40fcbe7
> Context log: path="/examples" Add mapping /jsp/security/protected/* Ct
> (Wrapper(default org.apache.tomcat.servlets.DefaultServlet) Roles:  tomcat
role1
> ) org.apache.tomcat.request.SimpleMapper$Mappings@f40fcbe7
> Context log: path="/examples" Loading -2147483646 jsp
> Context log: path="/examples" Loading -2147483646 default
> Context log: path="/test" XmlReader - init  /test webapps/test
> Context log: path="/test" Reading D:\Tomcat3.1\dist\tomcat\conf\web.xml
> Context log: path="/test" Add mapping /servlet/* Ct (Wrapper(invoker
> org.apache.tomcat.servlets.InvokerServlet) )
> org.apache.tomcat.request.SimpleMapper$Mappings@dc8bcbe6
> Context log: path="/test" Add mapping *.jsp Ct (Wrapper(jsp
> org.apache.jasper.runtime.JspServlet) )
> org.apache.tomcat.request.SimpleMapper$Mappings@dc8bcbe6
> Context log: path="/test" Reading
> D:\Tomcat3.1\dist\tomcat\webapps\test\WEB-INF\web.xml
> Context log: path="/test" Add mapping /foo/bar/* Ct (Wrapper(servlet1
> requestMap.Servlet1) )
org.apache.tomcat.request.SimpleMapper$Mappings@dc8bcbe6
> Context log: path="/test" Add mapping /baz/* Ct (Wrapper(servlet2
> requestMap.Servlet2) )
org.apache.tomcat.request.SimpleMapper$Mappings@dc8bcbe6
> Context log: path="/test" Add mapping /catalog Ct (Wrapper(servlet3
> requestMap.Servlet3) )
org.apache.tomcat.request.SimpleMapper$Mappings@dc8bcbe6
> Context log: path="/test" Add mapping *.bop Ct (Wrapper(servlet4
> requestMap.Servlet4) )
org.apache.tomcat.request.SimpleMapper$Mappings@dc8bcbe6
> Context log: path="/test" Add mapping /foo1/* Ct (Wrapper(default
> org.apache.tomcat.servlets.DefaultServlet) Roles:  manager role1 )
> org.apache.tomcat.request.SimpleMapper$Mappings@dc8bcbe6
> Context log: path="/test" Add mapping /bar1/* Ct (Wrapper(default
> org.apache.tomcat.servlets.DefaultServlet) Roles:  manager role1 )
> org.apache.tomcat.request.SimpleMapper$Mappings@dc8bcbe6
> Context log: path="/test" Add mapping /foo2/* Ct (Wrapper(default
> org.apache.tomcat.servlets.DefaultServlet) Roles:  manager role1 )
> org.apache.tomcat.request.SimpleMapper$Mappings@dc8bcbe6
> Context log: path="/test" Add mapping /bar2/* Ct (Wrapper(default
> org.apache.tomcat.servlets.DefaultServlet) Roles:  manager role1 )
> org.apache.tomcat.request.SimpleMapper$Mappings@dc8bcbe6
> Context log: path="/test" Loading -2147483646 jsp
> Context log: path="/test" Loading -2147483646 default
> Context log: path="" XmlReader - init   webapps/ROOT
> Context log: path="" Reading D:\Tomcat3.1\dist\tomcat\conf\web.xml
> Context log: path="" Add mapping /servlet/* Ct (Wrapper(invoker
> org.apache.tomcat.servlets.InvokerServlet) )
> org.apache.tomcat.request.SimpleMapper$Mappings@e03bcbe6
> Context log: path="" Add mapping *.jsp Ct (Wrapper(jsp
> org.apache.jasper.runtime.JspServlet) )
> org.apache.tomcat.request.SimpleMapper$Mappings@e03bcbe6
> Context log: path="" Reading
> D:\Tomcat3.1\dist\tomcat\webapps\ROOT\WEB-INF\web.xml
> Context log: path="" Loading -2147483646 jsp
> Context log: path="" Loading -2147483646 default
> Starting endpoint port="8080"
> handler="org.apache.tomcat.service.http.HttpConnectionHandler" 
> Starting endpoint port="8007"
> handler="org.apache.tomcat.service.connector.Ajp12ConnectionHandler" 
> ProcessRequest: R( /jakarta/isapi_redirect.dll)
> Context log: path="" SM: Handler R(  +  + /jakarta/isapi_redirect.dll) Ct
> (Wrapper(default S:org.apache.tomcat.servlets.DefaultServlet) )
> After processing: R(  +  + /jakarta/isapi_redirect.dll)
> Context log: path="" In error handler 404 null / R(  +  +
> /jakarta/isapi_redirect.dll)
> Context log: path="" Error: Calling servlet Wrapper(tomcat.errorPage
> S:org.apache.tomcat.servlets.DefaultErrorPage)
> 
> ____________________Reply Separator____________________
> Subject:    Re[2]: IIS ISAPI / Tomcat Problem - Help
> Author: tomcat-dev@jakarta.apache.org
> Date:       4/18/00 11:09 AM
> 
> The version of the dll was part of the problem, but now I am getting a
different
> symptom. 
> 
> Why isn't the IIS dll build part of the 3.1 distribution build process?
> 
> When I serve the URL with the new version of the dll, it looks like Tomcat
can't
> find the file,
> but it works on the 8080 port.
> 
> http://localhost:8080/examples/servlet/HelloWorldExample
> 
> works fine,
> 
> but
> 
> http://localhost:80/examples/servlet/HelloWorldExample
> 
> still generates a 404 for a different reason now.
> 
> Do you have any idea why this is failing? Is this working for anyone else? 
> 
> 
> 
> The isapi.log contents are as follows:
> 
> [jk_uri_worker_map.c (150)]: Into jk_uri_worker_map_t::uri_worker_map_alloc
> [jk_uri_worker_map.c (183)]: Into jk_uri_worker_map_t::uri_worker_map_open
> [jk_uri_worker_map.c (197)]: jk_uri_worker_map_t::uri_worker_map_open, rule
map
> size is 2
> [jk_uri_worker_map.c (253)]: Into jk_uri_worker_map_t::uri_worker_map_open,
> match rule /servlet/=ajp12 was added
> [jk_uri_worker_map.c (253)]: Into jk_uri_worker_map_t::uri_worker_map_open,
> match rule /examples/=ajp12 was added
> [jk_uri_worker_map.c (282)]: Into jk_uri_worker_map_t::uri_worker_map_open,
> there are 2 rules
> [jk_uri_worker_map.c (303)]: jk_uri_worker_map_t::uri_worker_map_open, done
> [jk_worker.c (100)]: Into wc_open
> [jk_worker.c (219)]: Into build_worker_map, creating 1 workers
> [jk_worker.c (225)]: build_worker_map, creating worker ajp12
> [jk_worker.c (156)]: Into wc_create_worker
> [jk_worker.c (170)]: wc_create_worker, about to create instance ajp12 of ajp12
> [jk_ajp12_worker.c (264)]: Into ajp12_worker_factory
> [jk_worker.c (179)]: wc_create_worker, about to validate and init ajp12
> [jk_ajp12_worker.c (182)]: Into jk_worker_t::validate
> [jk_ajp12_worker.c (194)]: In jk_worker_t::validate for worker ajp12 contact
is
> localhost:8007
> [jk_worker.c (189)]: wc_create_worker, done
> [jk_worker.c (235)]: build_worker_map, removing old ajp12 worker 
> [jk_worker.c (247)]: build_worker_map, done
> [jk_worker.c (120)]: wc_open, done
> [jk_worker.c (141)]: Into wc_get_worker_for_name ajp12
> [jk_worker.c (145)]: wc_get_worker_for_name, done  found a worker
> [jk_ajp12_worker.c (223)]: Into jk_worker_t::get_endpoint
> [jk_ajp12_worker.c (121)]: Into jk_endpoint_t::service
> [jk_connect.c (107)]: Into jk_open_socket
> [jk_connect.c (114)]: jk_open_socket, try to connect socket = 1084
> [jk_connect.c (123)]: jk_open_socket, after connect ret = 0
> [jk_connect.c (131)]: jk_open_socket, set TCP_NODELAY to on
> [jk_connect.c (139)]: jk_open_socket, return, sd = 1084
> [jk_ajp12_worker.c (134)]: In jk_endpoint_t::service, sd = 1084
> [jk_ajp12_worker.c (357)]: Into ajpv12_handle_request
> [jk_ajp12_worker.c (361)]: ajpv12_handle_request, sending the ajp12 start
> sequence
> [jk_ajp12_worker.c (395)]: ajpv12_handle_request, sending the headers
> [jk_ajp12_worker.c (414)]: ajpv12_handle_request, sending the terminating mark
> [jk_ajp12_worker.c (454)]: ajpv12_handle_request done
> [jk_ajp12_worker.c (148)]: In jk_endpoint_t::service, sent request
> [jk_ajp12_worker.c (470)]: Into ajpv12_handle_response
> [jk_ajp12_worker.c (484)]: ajpv12_handle_response, read Status: 404 Not Found
> [jk_ajp12_worker.c (512)]: ajpv12_handle_response, read Status=404 Not Found
> [jk_ajp12_worker.c (484)]: ajpv12_handle_response, read Date: Tue, 18 Apr 2000
> 14:21:08 GMT
> [jk_ajp12_worker.c (512)]: ajpv12_handle_response, read Date=Tue, 18 Apr 2000
> 14:21:08 GMT
> [jk_ajp12_worker.c (524)]: ajpv12_handle_response, allocating header arrays
> [jk_ajp12_worker.c (484)]: ajpv12_handle_response, read Servlet-Engine: Tomcat
> Web Server/3.2 dev (JSP 1.1; Servlet 2.2; Java 1.2.2; Windows NT 4.0 x86;
> java.vendor=Sun Microsystems Inc.)
> [jk_ajp12_worker.c (512)]: ajpv12_handle_response, read Servlet-Engine=Tomcat
> Web Server/3.2 dev (JSP 1.1; Servlet 2.2; Java 1.2.2; Windows NT 4.0 x86;
> java.vendor=Sun Microsystems Inc.)
> [jk_ajp12_worker.c (484)]: ajpv12_handle_response, read Content-Language: en
> [jk_ajp12_worker.c (512)]: ajpv12_handle_response, read Content-Language=en
> [jk_ajp12_worker.c (484)]: ajpv12_handle_response, read Content-Type:
text/html
> [jk_ajp12_worker.c (512)]: ajpv12_handle_response, read Content-Type=text/html
> [jk_ajp12_worker.c (484)]: ajpv12_handle_response, read Status: 404
> [jk_ajp12_worker.c (512)]: ajpv12_handle_response, read Status=404
> [jk_ajp12_worker.c (484)]: ajpv12_handle_response, read 
> [jk_ajp12_worker.c (486)]: ajpv12_handle_response, headers are done
> [jk_ajp12_worker.c (545)]: ajpv12_handle_response, starting response
> [jk_ajp12_worker.c (556)]: ajpv12_handle_response, reading response body
> [jk_ajp12_worker.c (572)]: ajpv12_handle_response, response body is done
> [jk_ajp12_worker.c (584)]: ajpv12_handle_response done
> [jk_ajp12_worker.c (163)]: Into jk_endp
> 
> 
> 
> ____________________Reply Separator____________________
> Subject:    Re: IIS ISAPI / Tomcat Problem - Help
> Author: tomcat-dev@jakarta.apache.org
> Date:       4/18/00 10:53 AM
> 
> 
>  Jonathan,
> 
> I can think of two reasons:
> 1. The pre built dlls available for download are not in sync with the
> CVS/V3.1_rc*
>    So if you use Tomcat V3.1_rc1 (or a privately built CVS checkout) you
> should d/l 
>    the updated plugins from :
>   
> http://jakarta.apache.org/builds/tomcat/release/v3.1_rc1/bin/win32/i386/
> 2. I know that this may sound silly, but did you start tomcat prior to
> accessing it?
>    IIS (or any other Web Server) will not start tomcat for you.
> 
>         Gal Shachor
> 
> Jonathan Pierce wrote:
> > 
> > I installed the Tomcat isapi_redirect.dll according to the instructions, and
I
> > build the Tomcat dist but cannot get Tomcat to serve the example context on
> port
> > 80 with the dll. What am I doing wrong?
> > 
> > I'm running the latest Tomcat3.1 dist from today on NT4, SP6.  Tomcat works
> fine
> > on port 8080.
> > 
> > The DLL loads fine, and I get the expected green arrow, but the URL:
> > http://localhost:80/examples/servlet/HelloWorldExample
> > returns a 404 page not found error.
> > 
> > Here is the contents of my isapi.log file in debug mode:
> > DELETED STUFF

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message