You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Jonathan Pierce <Jo...@seagram.com> on 2000/04/19 17:12:52 UTC
Re[2]: Re[2]: Re[3]: IIS ISAPI / Tomcat Problem - Help
Gal,
Many of the errors won't show up until these get fixed. I can recompile again
after you have a new release and send new ones to you after these are fixed. I
had to change one include to get things to compile this far. The other errors I
got are attached in the errors.txt file.
In jk_global.h
#ifdef WIN32
#include <types.h>
#include <stat.h>
#else
#include <sys/types.h>
#include <sys/stat.h>
#endif
Jonathan
____________________Reply Separator____________________
Subject: Re: Re[2]: Re[3]: IIS ISAPI / Tomcat Problem - Help
Author: tomcat-dev@jakarta.apache.org
Date: 4/19/00 10:32 AM
That will be great, I am compiling in VC with full warnings and gcc with
-Wall and if something is not OK I would definitely like to know that.
Gal Shachor
-----
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
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
Basic authentication for Tomcat 3.1 418 release
Posted by David Jian <dj...@UU.NET>.
At 12:58 PM 04/19/2000 -0400, you wrote:
>Hi,
>
>I upgrade from tomcat 3.1 rc1 (4/10) to 4/18 release. My files structure is
>
>tomcat
> |-- webapps
> |--examples
> |
> |--uuio
>
>I add my staff (uuio) to rc1(4/10) with new \conf\server.xml and
>\Web-Inf\web.xml, it works well. But whe I add the same path and same
>server.xml and web.xml to the 4/18's release, It automatically add extra
>/servlets/ to my staff. It looks like this:
>
>rc1 release URL: http://myhost/uuio/servlets/myhtml.html
>
>4/18 release URL: http://myhost/uuio/servlets/serlvets/myhtml.html
>
>However the URL for \examples is no problem as
>http://myhost/examples/servlets/somehtml.html
>
>Could someone tell me what should I do to fix this? It's probably somewhere
>in a config file.
>
>Please help!
>
>Thanks
>
>DJ
>
>
The problem comes from /webapps/myapps/web-inf/web.xml file. I
need to use basic authentication to protect the my apps:
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>Tomcat</realm-name>
</login-config>
<security-constraint>
<web-resource-collection>
<web-resource-name>collection1</web-resource-name>
<url-pattern>/servlets/*</url-pattern>
<url-pattern>/jsp/*</url-pattern>
<url-pattern>/images/*</url-pattern>
<url-pattern>/servlet/*</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>tomcat</role-name>
<role-name>role1</role-name>
</auth-constraint>
</security-constraint>
This part worked for tomcat3.1 rc1 (4/10) , but when I put it into
tomcat3.1 4/18 release, it will automatically add an extra "/servlets/ to
URL. If I remove <url-pattern>/servlets/*</url-pattern>, it will fix that
problem, but the authentication does not work.
Anyone has a idea how to do the authetication with this.
Thanks
DJ
Config Problem for Tomcat 3.1 418 release
Posted by David Jian <dj...@UU.NET>.
Hi,
I upgrade from tomcat 3.1 rc1 (4/10) to 4/18 release. My files structure is
tomcat
|-- webapps
|--examples
|
|--uuio
I add my staff (uuio) to rc1(4/10) with new \conf\server.xml and
\Web-Inf\web.xml, it works well. But whe I add the same path and same
server.xml and web.xml to the 4/18's release, It automatically add extra
/servlets/ to my staff. It looks like this:
rc1 release URL: http://myhost/uuio/servlets/myhtml.html
4/18 release URL: http://myhost/uuio/servlets/serlvets/myhtml.html
However the URL for \examples is no problem as
http://myhost/examples/servlets/somehtml.html
Could someone tell me what should I do to fix this? It's probably somewhere
in a config file.
Please help!
Thanks
DJ