Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 46025 invoked from network); 1 Nov 2007 14:40:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Nov 2007 14:40:12 -0000 Received: (qmail 25800 invoked by uid 500); 1 Nov 2007 14:39:56 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 25570 invoked by uid 500); 1 Nov 2007 14:39:56 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 25559 invoked by uid 99); 1 Nov 2007 14:39:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Nov 2007 07:39:55 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [69.25.50.232] (HELO outbound.mse4.exchange.ms) (69.25.50.232) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Nov 2007 14:39:59 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: RE: Rebuilding isapi_redirect.dll Date: Thu, 1 Nov 2007 10:39:37 -0400 Message-ID: <9F3886E85BDBCE49BDA069C36AFE0CC204C9014C@mse4be2.mse4.exchange.ms> In-Reply-To: <004501c8199f$3f2cbc50$340b14ac@orion.internal> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Rebuilding isapi_redirect.dll Thread-Index: AcgYDtx5Ngfda9gCT/q2iriXUQW2xwAAML2gABT973AAHoOikAAwNKwAAL2ZPKA= References: <9F3886E85BDBCE49BDA069C36AFE0CC204B88E85@mse4be2.mse4.exchange.ms> <004501c8199f$3f2cbc50$340b14ac@orion.internal> From: "Dan Burton" To: "Tomcat Developers List" X-Virus-Checked: Checked by ClamAV on apache.org Tim -=20 One of my colleagues got the build working on his machine. I still couldn't get it working on mine, but at least we've got our new DLL now, which seems to work like a charm. Thanks for your help. -Dan -----Original Message----- From: Tim Whittington [mailto:tim.whittington@orionhealth.com]=20 Sent: Sunday, October 28, 2007 15:15 To: 'Tomcat Developers List' Subject: RE: Rebuilding isapi_redirect.dll The errors you're getting are classic Runtime Library mismatches - everything you're linking together needs to be compiled with the same setting (you've got the right location). If you're getting these errors in a single project (e.g. with no other libraries etc.), then you need to do a Clean/Rebuild to clean out the object files compiled with the old setting. If you're still getting problems, seek help from the one of the VC newsgroups. The project I provided builds out of the box on a clean machine with VC2005, so if it's failing for you it may be something wrong with your environment (I couldn't begin to guess what that is though). The VC runtime re-distributable files are usually in your VC install directory (something like C:\Program Files\Microsoft Visual Studio 8\VC\redist), and a quick Google should locate the installers for them. tim=20 -----Original Message----- From: Dan Burton [mailto:dburton@bluefishgroup.com]=20 Sent: Sunday, 28 October 2007 10:36 a.m. To: Tomcat Developers List; tim.whittington@orionhealth.com Subject: RE: Rebuilding isapi_redirect.dll Tim - Thanks very much for the response and the project file. Unfortunately, this doesn't seem to get me any further. The DLL that gets built behaves the same as the one I was building before. Are you referring to the settings under project properties -> Configuration Properties -> C/C++ -> Code Generation -> Runtime Library? It's set to "Multi-threaded Debug DLL (/MDd)". Is that right? I also tried setting it to just "Multi-threaded (/MT)", but then I see the following errors when I try to build: 1>MSVCRTD.lib(MSVCR80D.dll) : error LNK2005: _memmove already defined in LIBCMT.lib(memmove.obj) 1>MSVCRTD.lib(MSVCR80D.dll) : error LNK2005: _strncmp already defined in LIBCMT.lib(strncmp.obj) Also, not sure if this is related, but I also see the following warning (even when the build succeeds): 3>LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library I tried setting this via the project properties under Configuration Properties -> Linker -> Input -> Ignore Specific Library =3D "library", but I still see the warning. The command line as shown in the properties panel shows /NODEFAULTLIB:"library" (with the quotes). Should that matter? Would another course be to install the VC8 runtime you mentioned on the IIS server machine? How would I go about doing that? I apologize in advance if this is a dumb question. I'm mostly a Java guy, and have very little experience building things with Visual Studio. Also, I've noticed that even with the release version of the DLL, even though I'm setting the log level to 'debug' or 'trace', it only generates a log file when it has a problem loading the workers.properties file (e.g. when I intentionally point it to the wrong path). It doesn't generate a log file at all when things are running normally. It behaves this way whether I use the registry keys for the bootstrap config or if I use the isapi_redirect.properties file. I was hoping I might be able to get some more info about what's going wrong through the log, but my built version of the DLL doesn't log anything regardless of the configuration. Thanks again for any help, -Dan -----Original Message----- From: Tim Whittington [mailto:tim.whittington@orionhealth.com] Sent: Saturday, October 27, 2007 01:38 To: 'Tomcat Developers List' Subject: RE: Rebuilding isapi_redirect.dll The errors sound like what you get when you build with VC2005 with the DLL C runtime, but don't install the VC8 runtime on the IIS server. Changing your runtime settings (to Multithread) should fix that. I've attached the project I use to build the ISAPI DLL - it might help. tim -----Original Message----- From: Dan Burton [mailto:dburton@bluefishgroup.com] Sent: Saturday, 27 October 2007 9:35 a.m. To: dev@tomcat.apache.org Subject: Rebuilding isapi_redirect.dll Hi all, =20 We've run into the issue as described in this bug: http://issues.apache.org/bugzilla/show_bug.cgi?id=3D42003 I'm trying to rebuild the dll myself using Visual Studio to incorporate this change, but the dll I build doesn't seem to work at all when I use it in IIS (all users just get a 500 error instead of actually making it through into the app hosted in Tomcat). We've got the 1.2.25 release version of the dll in there now, and it works fine (except for this bug, which affects users who have inordinately many group memberships). =20 Also, I can't figure out how to get the Visual Studio project to build a 'release' version, as opposed to a 'debug' version, and as a result, my dll is about twice the size of the latest release version. I'm not sure if that's causing the problem or not. Is there anything else I should need to do besides open up the isapi.dws workspace in Visual Studio and build it? =20 Any help would be greatly appreciated. If anyone has a built dll with this fix in that you could share, that would be fantastic. =20 Thanks very much, =20 - Dan =20 Dan Burton Solution Architect=20 Information Access Solutions tel.:=20 fax:=20 mobile:=20 (512) 469-9300 x150 (512) 692-1958 (512) 657-1414=20 dburton@bluefishgroup.com=20 =20 "committed to client elation" =20 --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org