RE: RES: RES: Tomcat 6.0 on Windows Server 2003 IIS 6.0 connector not functioning

2007-05-20 Thread gbarnas

Sean:

I've recently struggled through the same 404 issues on my test server, where
I'm preparing to move an app from an old Win2K/Apache/Tomcat environment to
W2K3/IIS6/Tomcat6 system.

I now have .jsp files being served up from within my IIS web structure as
well as the Tomcat /examples, all from the IIS port 80 interface. This
required creating a Virtual Directory in IIS for the /examples folder in
Tomcat, and a Context definition in Tomcat to reference the .JSPs in the
IIS folder.

The entire process is documented, with sample config files and screenshots,
and available on my web server at  
http://gw.innotechcg.com:2080/downloads/IntegrateTomcatIIS.zip 
http://gw.innotechcg.com:2080/downloads/IntegrateTomcatIIS.zip  . This is
the first draft of the document, and it covers everything from installing
Java to configuring the server.xml file. Presentation is generic, and geared
toward working examples, so the concepts can be grasped and applied to other
configurations. I'd love feedback on whether it helped, accuracy, and even
additional concepts to add to it.

Regards,

Glenn


That's one I haven't heard before.  I'll have to keep an eye out
for that in the future, but it isn't the case here.  I also did not
download any of the versions I'm using directly on the server,
so I should have been safe from that.

Thanks for the suggestion.

Sean McKellips
Systems Administrator
Associated Grocers
206-767-8725 phone
206-764-7879 fax
[EMAIL PROTECTED]
-- 
View this message in context: 
http://www.nabble.com/Tomcat-6.0-on-Windows-Server-2003-IIS-6.0-connector-not-functioning-tf3718810.html#a10705958
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: RES: RES: Tomcat 6.0 on Windows Server 2003 IIS 6.0 connector not functioning

2007-05-15 Thread Jean-Francois Beaulac
Hi,

Just for the record, have you checked if isapi_redirect.dll is blocked by
Windows 2003 protection for files downloaded from the internet?

If you go in the properties of the dll file, and it is blocked, a big
unblock button will be shown. I had this problem on Windows Server 2003 in
both 32/64bits. The green arrow shows up, everything seems normal but it
won't work if it's blocked.

Hope that helps! 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: May 14, 2007 4:46 PM
To: Tomcat Users List
Subject: Re: RES: RES: Tomcat 6.0 on Windows Server 2003 IIS 6.0 connector
not functioning

I tried adding the following lines to workers.properties from your config
files, Marcus,

worker.tomcat_home=C:\Program Files\Apache Software Foundation\Tomcat 6.0
worker.java_home=C:\Program Files\Java\jdk1.6.0

I tried using single quotes as well.  I also tried your isapi_redirect.dll.
Thanks
for the contribution, but neither resolved the problem.

I think my next step will be to start over and use pathnames without
any spaces.  It can't hurt anything at this point.


Sean McKellips
Systems Administrator
Associated Grocers
206-767-8725 phone
206-764-7879 fax
[EMAIL PROTECTED]


   
 [EMAIL PROTECTED] 
 sea.com   
To 
 05/14/2007 10:09  Tomcat Users List 
 AMusers@tomcat.apache.org   
cc 
   
 Please respond to Subject 
   Tomcat Users   Re: RES: RES: Tomcat 6.0 on Windows 
   List   Server 2003 IIS 6.0 connector not   
 [EMAIL PROTECTED] functioning 
 che.org  
   
   
   
   
   




I added one specific example explicity to get this:

/servlets-examples/*=ajp13w
/examples/*=ajp13w
/examples/jsp/jsp2/el/basic-arithmetic.jsp=ajp13w
/*=ajp13w

!/servlets-examples/*.jpeg=ajp13w

But I am still getting this from IIS:

2007-05-14 16:54:06 W3SVC1 127.0.0.1 GET
/examples/jsp/jsp2/el/basic-arithmetic.jsp - 80 - 127.0.0.1
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.4322)
404 3 50

And, yes, I've been reseting IIS after every change and frequently
tomcat too just to be safe.  At this point I'm trying hard not to take
anything for granted.  I've been stuck on this for more time than I
care to admit.  Clearly I'm missing something, but I can't seem to
find it.

Can you think of anything I might be missing in the redirect settings?
It seems to me this is the most likely place for my error, since I'm
also not getting a log file.  Here is the output when I export my
registry key:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
Redirector\1.0]
extension_uri=/jakarta/isapi_redirect.dll
log_file=C:\\Program Files\\Apache Software Foundation\\Tomcat 6.0
\\logs\\isapi.log
log_level=debug
worker_file=C:\\Program Files\\Apache Software Foundation\\Tomcat 6.0
\\conf\\workers.properties
worker_mount_file=C:\\Program Files\\Apache Software Foundation\\Tomcat
6.0\\conf\\uriworkermap.properties

I also have isapi_redirect.properties in
C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin:

# Configuration file for the Jakarta ISAPI Redirector

# The path to the ISAPI Redirector Extension, relative to the website
# This must be in a virtual directory with execute privileges
extension_uri=/jakarta/isapi_redirect.dll

# Full path to the log file for the ISAPI Redirector
log_file=C:\Program Files\Apache Software Foundation\Tomcat 6.0
\logs\isapi_redirect.log

# Log level (debug, info, warn, error or trace)
log_level=debug

# Full path to the workers.properties file
worker_file=C:\Program Files\Apache Software Foundation\Tomcat 6.0
\conf\workers.properties

# Full path to the uriworkermap.properties file
worker_mount_file=C:\Program Files\Apache Software Foundation\Tomcat 6.0
\conf\uriworkermap.properties

I know that the log file names do not match, but neither is getting
created.  If it finally does work, the log file name should tell me
which one is working.  I've also tried cutting

RE: RES: RES: Tomcat 6.0 on Windows Server 2003 IIS 6.0 connector not functioning

2007-05-15 Thread Sean_McKellips
That's one I haven't heard before.  I'll have to keep an eye out
for that in the future, but it isn't the case here.  I also did not
download any of the versions I'm using directly on the server,
so I should have been safe from that.

Thanks for the suggestion.

Sean McKellips
Systems Administrator
Associated Grocers
206-767-8725 phone
206-764-7879 fax
[EMAIL PROTECTED]


   
 Jean-Francois 
 Beaulac   
 jean-francois.be  To 
 [EMAIL PROTECTED] 'Tomcat Users List'   
  users@tomcat.apache.org   
cc 
 05/15/2007 07:37  
 AMSubject 
   RE: RES: RES: Tomcat 6.0 on Windows 
   Server 2003 IIS 6.0 connector not   
 Please respond to functioning 
   Tomcat Users   
   List   
 [EMAIL PROTECTED] 
 che.org  
   
   




Hi,

Just for the record, have you checked if isapi_redirect.dll is blocked by
Windows 2003 protection for files downloaded from the internet?

If you go in the properties of the dll file, and it is blocked, a big
unblock button will be shown. I had this problem on Windows Server 2003
in
both 32/64bits. The green arrow shows up, everything seems normal but it
won't work if it's blocked.

Hope that helps!

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: May 14, 2007 4:46 PM
To: Tomcat Users List
Subject: Re: RES: RES: Tomcat 6.0 on Windows Server 2003 IIS 6.0 connector
not functioning

I tried adding the following lines to workers.properties from your config
files, Marcus,

worker.tomcat_home=C:\Program Files\Apache Software Foundation\Tomcat 6.0
worker.java_home=C:\Program Files\Java\jdk1.6.0

I tried using single quotes as well.  I also tried your isapi_redirect.dll.
Thanks
for the contribution, but neither resolved the problem.

I think my next step will be to start over and use pathnames without
any spaces.  It can't hurt anything at this point.


Sean McKellips
Systems Administrator
Associated Grocers
206-767-8725 phone
206-764-7879 fax
[EMAIL PROTECTED]



 [EMAIL PROTECTED]
 sea.com
To
 05/14/2007 10:09  Tomcat Users List
 AMusers@tomcat.apache.org
cc

 Please respond to Subject
   Tomcat Users   Re: RES: RES: Tomcat 6.0 on Windows
   List   Server 2003 IIS 6.0 connector not
 [EMAIL PROTECTED] functioning
 che.org









I added one specific example explicity to get this:

/servlets-examples/*=ajp13w
/examples/*=ajp13w
/examples/jsp/jsp2/el/basic-arithmetic.jsp=ajp13w
/*=ajp13w

!/servlets-examples/*.jpeg=ajp13w

But I am still getting this from IIS:

2007-05-14 16:54:06 W3SVC1 127.0.0.1 GET
/examples/jsp/jsp2/el/basic-arithmetic.jsp - 80 - 127.0.0.1
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.4322)
404 3 50

And, yes, I've been reseting IIS after every change and frequently
tomcat too just to be safe.  At this point I'm trying hard not to take
anything for granted.  I've been stuck on this for more time than I
care to admit.  Clearly I'm missing something, but I can't seem to
find it.

Can you think of anything I might be missing in the redirect settings?
It seems to me this is the most likely place for my error, since I'm
also not getting a log file.  Here is the output when I export my
registry key:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
Redirector\1.0]
extension_uri=/jakarta/isapi_redirect.dll
log_file=C:\\Program Files\\Apache Software Foundation\\Tomcat 6.0
\\logs\\isapi.log
log_level=debug
worker_file=C:\\Program Files\\Apache Software Foundation\\Tomcat 6.0
\\conf\\workers.properties
worker_mount_file=C:\\Program Files\\Apache Software Foundation\\Tomcat
6.0\\conf\\uriworkermap.properties

I also have

Re: RES: RES: Tomcat 6.0 on Windows Server 2003 IIS 6.0 connector not functioning

2007-05-14 Thread Sean_McKellips
I added one specific example explicity to get this:

/servlets-examples/*=ajp13w
/examples/*=ajp13w
/examples/jsp/jsp2/el/basic-arithmetic.jsp=ajp13w
/*=ajp13w

!/servlets-examples/*.jpeg=ajp13w

But I am still getting this from IIS:

2007-05-14 16:54:06 W3SVC1 127.0.0.1 GET
/examples/jsp/jsp2/el/basic-arithmetic.jsp - 80 - 127.0.0.1
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.4322)
404 3 50

And, yes, I've been reseting IIS after every change and frequently
tomcat too just to be safe.  At this point I'm trying hard not to take
anything for granted.  I've been stuck on this for more time than I
care to admit.  Clearly I'm missing something, but I can't seem to
find it.

Can you think of anything I might be missing in the redirect settings?
It seems to me this is the most likely place for my error, since I'm
also not getting a log file.  Here is the output when I export my
registry key:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
Redirector\1.0]
extension_uri=/jakarta/isapi_redirect.dll
log_file=C:\\Program Files\\Apache Software Foundation\\Tomcat 6.0
\\logs\\isapi.log
log_level=debug
worker_file=C:\\Program Files\\Apache Software Foundation\\Tomcat 6.0
\\conf\\workers.properties
worker_mount_file=C:\\Program Files\\Apache Software Foundation\\Tomcat
6.0\\conf\\uriworkermap.properties

I also have isapi_redirect.properties in
C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin:

# Configuration file for the Jakarta ISAPI Redirector

# The path to the ISAPI Redirector Extension, relative to the website
# This must be in a virtual directory with execute privileges
extension_uri=/jakarta/isapi_redirect.dll

# Full path to the log file for the ISAPI Redirector
log_file=C:\Program Files\Apache Software Foundation\Tomcat 6.0
\logs\isapi_redirect.log

# Log level (debug, info, warn, error or trace)
log_level=debug

# Full path to the workers.properties file
worker_file=C:\Program Files\Apache Software Foundation\Tomcat 6.0
\conf\workers.properties

# Full path to the uriworkermap.properties file
worker_mount_file=C:\Program Files\Apache Software Foundation\Tomcat 6.0
\conf\uriworkermap.properties

I know that the log file names do not match, but neither is getting
created.  If it finally does work, the log file name should tell me
which one is working.  I've also tried cutting and pasting those
file names into explorer and the files do open.  Except of course
for the log files which dont exist.  Also, permissions on the entire
tomcat home tree is set to everyone full control.  I'm temped to
make Everyone an admin on the server to see if it helps.

Thanks again for the suggestions, I'm near the end of my rope!

Sean McKellips
Systems Administrator
Associated Grocers
206-767-8725 phone
206-764-7879 fax
[EMAIL PROTECTED]


   
 Milanez, Marcus 
 [EMAIL PROTECTED] 
 iebold.comTo 
   Tomcat Users List 
 05/14/2007 09:46  users@tomcat.apache.org   
 AM cc 
   
   Subject 
 Please respond to RES: RES: Tomcat 6.0 on Windows 
   Tomcat Users   Server 2003 IIS 6.0 connector not   
   List   functioning 
 [EMAIL PROTECTED] 
 che.org  
   
   
   
   




Hi Sean,

Take a look at my uriworkermap.properites file and see if it helps you.
My web sites are working just fine on Windows 2003 and IIS 6.



# *** Begin uriworkermap.properties ***
#
# Simple worker configuration file
#
/servlet/*=ajp13

# Mount the IC context to the ajp13 worker
/ic/servlet/*=ajp13
/ic/*.jsp=ajp13
/ic/=ajp13

# Mount all jsp pages to the ajp13 worker
/*.jsp=ajp13
/*.jws=ajp13



-Mensagem original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Enviada em: segunda-feira, 14 de maio de 2007 13:40
Para: Tomcat Users List
Assunto: Re: RES: Tomcat 6.0 on Windows Server 2003 IIS 6.0 connector
not functioning

Thanks for the suggestion!  With directory browsing enabled, after
creating an Examples virtual directory, I can now get

Re: RES: RES: Tomcat 6.0 on Windows Server 2003 IIS 6.0 connector not functioning

2007-05-14 Thread Sean_McKellips
 List
 05/14/2007 09:46  users@tomcat.apache.org
 AM cc

   Subject
 Please respond to RES: RES: Tomcat 6.0 on Windows
   Tomcat Users   Server 2003 IIS 6.0 connector not
   List   functioning
 [EMAIL PROTECTED]
 che.org








Hi Sean,

Take a look at my uriworkermap.properites file and see if it helps you.
My web sites are working just fine on Windows 2003 and IIS 6.



# *** Begin uriworkermap.properties ***
#
# Simple worker configuration file
#
/servlet/*=ajp13

# Mount the IC context to the ajp13 worker
/ic/servlet/*=ajp13
/ic/*.jsp=ajp13
/ic/=ajp13

# Mount all jsp pages to the ajp13 worker
/*.jsp=ajp13
/*.jws=ajp13



-Mensagem original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Enviada em: segunda-feira, 14 de maio de 2007 13:40
Para: Tomcat Users List
Assunto: Re: RES: Tomcat 6.0 on Windows Server 2003 IIS 6.0 connector
not functioning

Thanks for the suggestion!  With directory browsing enabled, after
creating an Examples virtual directory, I can now get to those pages,
but I'm still getting Page Not Found Errors when executing servlets.  My
IIS log shows that the ISAPI filter is not picking up the requests.

I've tried 1.2.22 and 1.2.21.  I get the green arrow showing its loaded
on both versions, but neither is actually doing any redirecting.  I'll
try explicitly listing a servlet in the urimap file and see if that
helps.

Thanks for the tip, Marcus, it's got me a step closer.


IIS Log:
2007-05-14 16:27:41 W3SVC1 127.0.0.1 GET /examples/servlets/index.html -
80
- 127.0.0.1
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.432
2)
200 0 0
2007-05-14 16:27:41 W3SVC1 127.0.0.1 GET
/examples/servlets/images/code.gif
- 80 - 127.0.0.1
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.432
2)
200 0 0
2007-05-14 16:27:53 W3SVC1 127.0.0.1 GET
/examples/servlets/servlet/HelloWorldExample - 80 - 127.0.0.1
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.432
2)
404 0 3
#Software: Microsoft Internet Information Services 6.0
#Version: 1.0
#Date: 2007-05-14 16:31:41
#Fields: date time s-sitename s-ip cs-method cs-uri-stem cs-uri-query
s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus
sc-win32-status
2007-05-14 16:31:41 W3SVC1 127.0.0.1 GET
/examples/servlets/servlet/HelloWorldExample - 80 - 127.0.0.1
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.432
2)
404 0 3
2007-05-14 16:31:45 W3SVC1 127.0.0.1 GET
/examples/servlets/servlet/RequestParamExample - 80 - 127.0.0.1
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.432
2)
404 0 3

Sean McKellips
Systems Administrator
Associated Grocers
206-767-8725 phone
206-764-7879 fax
[EMAIL PROTECTED]




 Milanez, Marcus

 [EMAIL PROTECTED]

 iebold.com
To
   Tomcat Users List

 05/14/2007 04:16  users@tomcat.apache.org

 AM
cc



Subject
 Please respond to RES: Tomcat 6.0 on Windows Server

   Tomcat Users   2003 IIS 6.0 connector not

   List   functioning

 [EMAIL PROTECTED]

 che.org














I must tell you guys, that the only way I can get Tomcat running along
with IIS is doing an extra step that is not  documented anywhere, which
consists on creating a Virtual Directory on IIS for my application and
pointing it to my tomcat app folder.

I do all those known steps (registry import, create an ISAPI filter,
etc...) but I also create a Virtual directory with the same name in IIS.
For example, if I have an application located in c:\tomcat\webapps\foo ,
I also create a new virtual direcory in IIS names foo and point it to
c:\tomcat\webapps\foo folder.. Thats the only way I can get tomcat
working with IIS. Have you tried it?


-Mensagem original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Enviada
em: sexta-feira, 11 de maio de 2007 19:26
Para: Tomcat Users List
Assunto: Re: Tomcat 6.0 on Windows Server 2003 IIS 6.0 connector not
functioning

I set up and allowed the extension.  I even set IIS to allow all ISAPI
extensions.
I've even set the CATALINA_HOME tree to Everyone - Full Control and
still no ISAPI log and no errors in any of the other logs or system
event logs.

If I can at least get the log to work, I'll have something to work on.
I've found
quite a few similar problems in the archives and other sites, but no
working solution.

Thank you for the suggestion, got any others?

Sean McKellips
Systems Administrator
Associated Grocers
206-767-8725 phone
206-764-7879 fax
[EMAIL PROTECTED]




 [EMAIL PROTECTED]

 net


To
 05/11/2007 02:08