RE: Issues with the tomcat connector (On W2k8 + IIS7.5)

2012-03-14 Thread Alex Samad - Yieldbroker


 -Original Message-
 From: Mladen Turk [mailto:mt...@apache.org]
 Sent: Tuesday, 13 March 2012 5:01 PM
 To: users@tomcat.apache.org
 Subject: Re: Issues with the tomcat connector (On W2k8 + IIS7.5)
 
 On 03/13/2012 12:09 AM, Alex Samad - Yieldbroker wrote:
  [snip]
 
  Try the RC binaries from
  http://people.apache.org/~mturk/tomcat-connectors/jk-1.2.33/
 
  Does this one crashes as well?
 
  Okay, got your build from there.
 
  1) it loads up with single application thread (so not a web garden)
  but then failed
 
 OK, cool.
 
  2) I tried it as a web garden, so 4 processes failed bad !!!
 
 
 Suppose the previous versions do the same.

32 didn't fail as bad as this

 
  This is what I see in the event log
  ERROR-
  Faulting application name: w3wp.exe, version: 7.5.7601.17514, time
  stamp: 0x4ce7afa2 Faulting module name: isapi_redirect.dll, version:
  1.2.33.0, time stamp: 0x4f59bc9e Exception code: 0xc005 Fault
  offset: 0x00039e82
 
 This looks like referencing null memory.
 Is there anything in the jk.log before that if you turn log level to trace?

Okay I ran it on trace ... died, the application pool died !

The files are rather large, I will email directly to you instead of on list (1M 
+ 25k)

 
  Faulting process id: 0x154c
  Faulting application start time: 0x01cd00a34e76bf11 Faulting
  application path: c:\windows\system32\inetsrv\w3wp.exe
  Faulting module path:
  C:\YB\Shared\dev.yieldbroker.com\ajpconfig\isapi_redirect.dll
  Report Id: 8ded0aa6-6c96-11e1-a357-005056b7000a
 
 
  Bit more curious as to why my build didn't work
 
  I have VS 2010 install,
  I built first with 32bit to get the programme built Then I opened a
  Win64 command window and build the dll there. Mine is about 100K
 small, so I am guessing I am missing something ...
 
 
 I build that using WinDDK so it links to msvcrt.dll instead msvcrtXXX.dll.
 Anyhow suppose you missed something with win32/win64 environment
 settings.
 
 Try to build directly from 1.2.33-src.zip I fixed the need to run win32 build
 before win64 so you can build 64-bit directly.
 Tested that with vs2010 and it builds flawlessly.

Just went in and did a nmake (what is WinDDK and should I install it ?)

C:\Users\alex.samad\Documents\SVN\Tomcat-Connector\tomcat-connectors-1.2.33-src\tomcat-connectors-1.2.33-src\native\iisnmake
 -f Makefile.am
d64

Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation.  All rights reserved.

cd .\pcre
C:\Program Files (x86)\Microsoft Visual Studio 
10.0\VC\BIN\amd64\nmake.exe /   /F .\pcre.amd64

Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation.  All rights reserved.

if not exist .\Release_amd64/ mkdir .\Release_amd64
tempfile.bat
.\pcre.amd64(142) : fatal error U1054: cannot create inline file 'tempfile.bat'
Stop.
NMAKE : fatal error U1077: 'C:\Program Files (x86)\Microsoft Visual Studio 
10.0\VC\BIN\amd64\nmake.exe' : return code '0x2'
Stop.

 
 
 Regards
 --
 ^TM
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Issues with the tomcat connector (On W2k8 + IIS7.5)

2012-03-13 Thread Mladen Turk

On 03/13/2012 12:09 AM, Alex Samad - Yieldbroker wrote:

[snip]


Try the RC binaries from
http://people.apache.org/~mturk/tomcat-connectors/jk-1.2.33/

Does this one crashes as well?


Okay, got your build from there.

1) it loads up with single application thread (so not a web garden) but then 
failed


OK, cool.


2) I tried it as a web garden, so 4 processes failed bad !!!



Suppose the previous versions do the same.


This is what I see in the event log
ERROR-
Faulting application name: w3wp.exe, version: 7.5.7601.17514, time stamp: 
0x4ce7afa2
Faulting module name: isapi_redirect.dll, version: 1.2.33.0, time stamp: 
0x4f59bc9e
Exception code: 0xc005
Fault offset: 0x00039e82


This looks like referencing null memory.
Is there anything in the jk.log before that if you turn log level to trace?


Faulting process id: 0x154c
Faulting application start time: 0x01cd00a34e76bf11
Faulting application path: c:\windows\system32\inetsrv\w3wp.exe
Faulting module path: 
C:\YB\Shared\dev.yieldbroker.com\ajpconfig\isapi_redirect.dll
Report Id: 8ded0aa6-6c96-11e1-a357-005056b7000a




Bit more curious as to why my build didn't work

I have VS 2010 install,
I built first with 32bit to get the programme built
Then I opened a Win64 command window and build the dll there. Mine is about 
100K small, so I am guessing I am missing something ...



I build that using WinDDK so it links to msvcrt.dll instead msvcrtXXX.dll.
Anyhow suppose you missed something with win32/win64 environment settings.

Try to build directly from 1.2.33-src.zip
I fixed the need to run win32 build before win64 so you can build 64-bit 
directly.
Tested that with vs2010 and it builds flawlessly.


Regards
--
^TM

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Issues with the tomcat connector (On W2k8 + IIS7.5)

2012-03-12 Thread Mladen Turk

On 03/12/2012 12:37 AM, Alex Samad - Yieldbroker wrote:

Hi

Thanks any idea's why the latest head version doesn't work. I got it to 
compile, but it crashes when IIS tries to load it


 From Failed Request tracking  on IIS

ErrorDescription
Calling LoadLibraryEx on ISAPI filter 
C:\YB\Shared\dev.yieldbroker.com\ajpconfig\isapi_redirect.dll failed



Try the RC binaries from
http://people.apache.org/~mturk/tomcat-connectors/jk-1.2.33/

Does this one crashes as well?


Regards
--
^TM

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Issues with the tomcat connector (On W2k8 + IIS7.5)

2012-03-12 Thread Alex Samad - Yieldbroker
Thanks I will 
[snip]
 
   From Failed Request tracking  on IIS
 
  ErrorDescription
  Calling LoadLibraryEx on ISAPI filter
 C:\YB\Shared\dev.yieldbroker.com\ajpconfig\isapi_redirect.dll failed
 
 
 Try the RC binaries from
 http://people.apache.org/~mturk/tomcat-connectors/jk-1.2.33/
 
 Does this one crashes as well?
 
 
 Regards
 --
 ^TM
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Issues with the tomcat connector (On W2k8 + IIS7.5)

2012-03-12 Thread Alex Samad - Yieldbroker
[snip]
 
 Try the RC binaries from
 http://people.apache.org/~mturk/tomcat-connectors/jk-1.2.33/
 
 Does this one crashes as well?

Okay, got your build from there.

1) it loads up with single application thread (so not a web garden) but then 
failed
2) I tried it as a web garden, so 4 processes failed bad !!!

This is what I see in the event log
ERROR-
Faulting application name: w3wp.exe, version: 7.5.7601.17514, time stamp: 
0x4ce7afa2
Faulting module name: isapi_redirect.dll, version: 1.2.33.0, time stamp: 
0x4f59bc9e
Exception code: 0xc005
Fault offset: 0x00039e82
Faulting process id: 0x154c
Faulting application start time: 0x01cd00a34e76bf11
Faulting application path: c:\windows\system32\inetsrv\w3wp.exe
Faulting module path: 
C:\YB\Shared\dev.yieldbroker.com\ajpconfig\isapi_redirect.dll
Report Id: 8ded0aa6-6c96-11e1-a357-005056b7000a

Bit more curious as to why my build didn't work

I have VS 2010 install, 
I built first with 32bit to get the programme built
Then I opened a Win64 command window and build the dll there. Mine is about 
100K small, so I am guessing I am missing something ...

Alex


 
 
 Regards
 --
 ^TM
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Issues with the tomcat connector (On W2k8 + IIS7.5)

2012-03-11 Thread Alex Samad - Yieldbroker
Hi

Thanks any idea's why the latest head version doesn't work. I got it to 
compile, but it crashes when IIS tries to load it


From Failed Request tracking  on IIS
 
ErrorDescription
Calling LoadLibraryEx on ISAPI filter 
C:\YB\Shared\dev.yieldbroker.com\ajpconfig\isapi_redirect.dll failed

Not much else in event log or any other log I am looking at

Alex

-Original Message-
From: Mladen Turk [mailto:mt...@apache.org] 
Sent: Thursday, 8 March 2012 7:21 PM
To: users@tomcat.apache.org
Subject: Re: Issues with the tomcat connector (On W2k8 + IIS7.5)

On 03/06/2012 11:50 PM, Alex Samad - Yieldbroker wrote:
 Hi


 I patched Mmakefile.amd64 it was different to the x86 one then ran 
 nmake -f Makefile.amd64

 again, built no errors or warnings

 Thanks
 Alex

 Patch...
 Index: Makefile.amd64
 ===
 --- Makefile.amd64(revision 1297756)
 +++ Makefile.amd64(working copy)
 @@ -293,10 +293,10 @@

   pcre_amd64 :
  cd .\pcre
 -   $(MAKE) /$(MAKEFLAGS) /F .\pcre.amd64
 +   $(MAKE) /$(MAKEFLAGS) /F .\pcre.amd64 CFG=pcre.amd64
  cd ..


CFG in not used in 64-bit makefile, so no point to add it.
What's needed is that you run 32-bit build before 64-bit so that dftables.exe 
gets created (it's created only for 32-bit target), and that would eventually 
need to get fixed.


Regards
--
^TM

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Issues with the tomcat connector (On W2k8 + IIS7.5)

2012-03-08 Thread Mladen Turk

On 03/06/2012 11:50 PM, Alex Samad - Yieldbroker wrote:

Hi


I patched Mmakefile.amd64 it was different to the x86 one then ran
nmake -f Makefile.amd64

again, built no errors or warnings

Thanks
Alex

Patch...
Index: Makefile.amd64
===
--- Makefile.amd64  (revision 1297756)
+++ Makefile.amd64  (working copy)
@@ -293,10 +293,10 @@

  pcre_amd64 :
 cd .\pcre
-   $(MAKE) /$(MAKEFLAGS) /F .\pcre.amd64
+   $(MAKE) /$(MAKEFLAGS) /F .\pcre.amd64 CFG=pcre.amd64
 cd ..



CFG in not used in 64-bit makefile, so no point to add it.
What's needed is that you run 32-bit build before 64-bit so that
dftables.exe gets created (it's created only for 32-bit target),
and that would eventually need to get fixed.


Regards
--
^TM

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Issues with the tomcat connector (On W2k8 + IIS7.5)

2012-03-06 Thread Mladen Turk

On 03/06/2012 06:35 AM, Alex Samad - Yieldbroker wrote:

Hi



... a very long post :)

In general I agree that newest IIS's needs some tune up.
You are very welcome to provide patches.


Does somebody have a tar  ball of a tree what I can just point to and compile 
:) (or maybe some instruction on how to get it to build from the svn tree in 
VS2010)



That's easy.
Open VSxxx command prompt for target CPU and cd to native/iis then just
nmake -f Makefile.x86
or
nmake -f Makefile.amd64 for 64-bit

I don't believe in GUI :)


Regards
--
^TM

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Issues with the tomcat connector (On W2k8 + IIS7.5)

2012-03-06 Thread Mladen Turk

On 03/06/2012 06:35 AM, Alex Samad - Yieldbroker wrote:

Hi

Under load, IIS will first start 1 process and then if enough request another 
and another depending on load.  So what I see is 4 process starting at about 
the same time and the shared memory is getting corrupted and from there it 
turns to poo.



Try with the latest trunk.
I added process mutex instead critical section for guarding init_jk.
This should solve concurrent launches of multiple processes for the same host by
serializing access to initialization.


Regards
--
^TM

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Issues with the tomcat connector (On W2k8 + IIS7.5)

2012-03-06 Thread Alex Samad - Yieldbroker


 -Original Message-
 From: Mladen Turk [mailto:mt...@apache.org]
 Sent: Tuesday, 6 March 2012 11:52 PM
 To: users@tomcat.apache.org
 Subject: Re: Issues with the tomcat connector (On W2k8 + IIS7.5)
 
 On 03/06/2012 06:35 AM, Alex Samad - Yieldbroker wrote:
  Hi
 
  Under load, IIS will first start 1 process and then if enough request 
  another
 and another depending on load.  So what I see is 4 process starting at about
 the same time and the shared memory is getting corrupted and from there it
 turns to poo.
 
 
 Try with the latest trunk.
 I added process mutex instead critical section for guarding init_jk.
 This should solve concurrent launches of multiple processes for the same
 host by serializing access to initialization.

Great thanks

 
 
 Regards
 --
 ^TM
 



 -Original Message-
 From: Mladen Turk [mailto:mt...@apache.org]
 Sent: Tuesday, 6 March 2012 9:39 PM
 To: users@tomcat.apache.org
 Subject: Re: Issues with the tomcat connector (On W2k8 + IIS7.5)
 
 On 03/06/2012 06:35 AM, Alex Samad - Yieldbroker wrote:
  Hi
 
 
 ... a very long post :)

Sorry wanted to make sure I had it all in there. Been working on it for a bit

 
 In general I agree that newest IIS's needs some tune up.
 You are very welcome to provide patches.
 
  Does somebody have a tar  ball of a tree what I can just point to and
  compile :) (or maybe some instruction on how to get it to build from
  the svn tree in VS2010)
 
 
 That's easy.
 Open VSxxx command prompt for target CPU and cd to native/iis then just
 nmake -f Makefile.x86 or nmake -f Makefile.amd64 for 64-bit

Cool will try that !

 
 I don't believe in GUI :)

Can believe how much of a pain VS is compared to eclipse ... but I can work a 
cli as well !

 
 
 Regards
 --
 ^TM
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Issues with the tomcat connector (On W2k8 + IIS7.5)

2012-03-06 Thread Alex Samad - Yieldbroker


-Original Message-
From: Mladen Turk [mailto:mt...@apache.org] 
Sent: Tuesday, 6 March 2012 9:39 PM
To: users@tomcat.apache.org
Subject: Re: Issues with the tomcat connector (On W2k8 + IIS7.5)

[snip] 

 That's easy.
 Open VSxxx command prompt for target CPU and cd to native/iis then just nmake 
 -f Makefile.x86 or nmake -f Makefile.amd64 for 64-bit

Tried it, downloaded the latest head from trunk, started my amd64 VS windows, 
made my way over to the project directory 

nmake -f Makefile.amd64

[bunch of stuff]

cl.exe @C:\Users\ALEX~1.SAM\AppData\Local\Temp\nm1CA4.tmp
jk_isapi_plugin.c
link.exe @C:\Users\ALEX~1.SAM\AppData\Local\Temp\nm205C.tmp
   Creating library .\Release_amd64\isapi_redirect.lib and object 
.\Release_amd64\isapi_redirect.exp
jk_isapi_plugin.obj : error LNK2001: unresolved external symbol pcre_free
jk_isapi_plugin.obj : error LNK2019: unresolved external symbol pcre_info 
referenced in function ap_regcomp
jk_isapi_plugin.obj : error LNK2019: unresolved external symbol pcre_compile 
referenced in function ap_regcomp
jk_isapi_plugin.obj : error LNK2019: unresolved external symbol pcre_exec 
referenced in function ap_regexec
.\Release_amd64\isapi_redirect.dll : fatal error LNK1120: 4 unresolved externals
NMAKE : fatal error U1077: 'C:\Program Files (x86)\Microsoft Visual Studio 
10.0\VC\BIN\amd64\link.exe' : return code '0x460'
Stop.

I gather something is missing from the pcre lib
Run again so I gather the error message completely
C:\Users\alex.samad\Documents\SVN\Tomcat-Connector\native\iisnmake -f 
Makefile.amd64

Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation.  All rights reserved.

cd .\pcre
C:\Program Files (x86)\Microsoft Visual Studio 
10.0\VC\BIN\amd64\nmake.exe /   /F .\pcre.amd64

Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation.  All rights reserved.

cd ..
link.exe @C:\Users\ALEX~1.SAM\AppData\Local\Temp\nm5EA3.tmp
   Creating library .\Release_amd64\isapi_redirect.lib and object 
.\Release_amd64\isapi_redirect.exp
jk_isapi_plugin.obj : error LNK2001: unresolved external symbol pcre_free
jk_isapi_plugin.obj : error LNK2019: unresolved external symbol pcre_info 
referenced in function ap_regcomp
jk_isapi_plugin.obj : error LNK2019: unresolved external symbol pcre_compile 
referenced in function ap_regcomp
jk_isapi_plugin.obj : error LNK2019: unresolved external symbol pcre_exec 
referenced in function ap_regexec
.\Release_amd64\isapi_redirect.dll : fatal error LNK1120: 4 unresolved externals
NMAKE : fatal error U1077: 'C:\Program Files (x86)\Microsoft Visual Studio 
10.0\VC\BIN\amd64\link.exe' : return code '0x460'
Stop.

I am guess some object is not being compiled or added to the list of files for 
the lib..

 I don't believe in GUI :)


 Regards
 --
 ^TM

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Issues with the tomcat connector (On W2k8 + IIS7.5)

2012-03-06 Thread Alex Samad - Yieldbroker


 -Original Message-
 From: Alex Samad - Yieldbroker [mailto:alex.sa...@yieldbroker.com]
 Sent: Wednesday, 7 March 2012 9:30 AM
 To: Tomcat Users List
 Subject: RE: Issues with the tomcat connector (On W2k8 + IIS7.5)
 
 
[snip]

 .\Release_amd64\isapi_redirect.exp
 jk_isapi_plugin.obj : error LNK2001: unresolved external symbol pcre_free
 jk_isapi_plugin.obj : error LNK2019: unresolved external symbol pcre_info
 referenced in function ap_regcomp jk_isapi_plugin.obj : error LNK2019:
 unresolved external symbol pcre_compile referenced in function
 ap_regcomp jk_isapi_plugin.obj : error LNK2019: unresolved external
 symbol pcre_exec referenced in function ap_regexec
 .\Release_amd64\isapi_redirect.dll : fatal error LNK1120: 4 unresolved
 externals NMAKE : fatal error U1077: 'C:\Program Files (x86)\Microsoft
 Visual Studio 10.0\VC\BIN\amd64\link.exe' : return code '0x460'
 Stop.

I tried the x86 version and it compiled okay !

 
 I am guess some object is not being compiled or added to the list of files for
 the lib..
 


[snip]



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Issues with the tomcat connector (On W2k8 + IIS7.5)

2012-03-06 Thread Alex Samad - Yieldbroker
Hi

 -Original Message-
 From: Alex Samad - Yieldbroker [mailto:alex.sa...@yieldbroker.com]
 Sent: Wednesday, 7 March 2012 9:35 AM
 To: Tomcat Users List
 Subject: RE: Issues with the tomcat connector (On W2k8 + IIS7.5)

 [snip]
 
 I tried the x86 version and it compiled okay !

Sorry for the extra email.

I tried a build with x86 version it built the dftables exe, then did  a 
nmake -f Makefile.amd64
it completed but gave me errors, they looked like I had mixed 32 and 64 bit 
code together..
so did a 
nmake -f Makefile.x86 clean
nmake -f Makefile.amd64 clean


I patched Mmakefile.amd64 it was different to the x86 one then ran 
nmake -f Makefile.amd64

again, built no errors or warnings 

Thanks
Alex

Patch...
Index: Makefile.amd64
===
--- Makefile.amd64  (revision 1297756)
+++ Makefile.amd64  (working copy)
@@ -293,10 +293,10 @@
 
 pcre_amd64 :
cd .\pcre
-   $(MAKE) /$(MAKEFLAGS) /F .\pcre.amd64
+   $(MAKE) /$(MAKEFLAGS) /F .\pcre.amd64 CFG=pcre.amd64
cd ..
 
 pcre_amd64CLEAN :
cd .\pcre
-   $(MAKE) /$(MAKEFLAGS) /F .\pcre.amd64 RECURSE=1 CLEAN
+   $(MAKE) /$(MAKEFLAGS) /F .\pcre.amd64 CFG=pcre.amd64 RECURSE=1 CLEAN
cd ..




 [snip]


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org