RE: Asking again: index.jsp and virtual directories

2005-10-04 Thread David Thielen
That was it - thank you very much - dave

 
David Thielen
www.windwardreports.com
303-499-2544
 

-Original Message-
From: andy gordon [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 22, 2005 10:27 AM
To: Tomcat Users List
Subject: Re: Asking again: index.jsp and virtual directories

David, 
 
Have you looked at setting up virtual hosts in tomcat as this seems to be
what you are looking for.
 
- andy gordon

David Thielen [EMAIL PROTECTED] wrote:
Hi;

I am running on Windows 2003/IIS 6.0  tomcat. I have a single IP address
for all of my websites (I have several) and then use the request header to
determine which website to return. IIS does this very nicely.

I want to have index.jsp in each of these websites. How can I set it up so
that when isapi_redirect calls tomcat, it knows which website's index.jsp to
use? The solution JRun uses is it will look in the IIS directory of the
website for the jsp file. But I tried that with tomcat and it didn't work.

Is there a way to do this?

Thanks - dave

Ps - to see what I mean, you can go to:
http://www.windward.net or http://jasmine.windward.net/windward/
http://www.windwardreports.com or
http://jasmine.windward.net/windwardreports/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
Yahoo! for Good
 Click here to donate to the Hurricane Katrina relief effort. 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Please verify this is correct: Need multiple virtual directories for isapi_redirector

2005-09-27 Thread David Thielen
Asking again

Thanks - dave

David Thielen
303-499-2544
www.windwardreports.com

-Original Message-
From: David Thielen [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 22, 2005 9:10 AM
To: 'Tomcat Users List'
Subject: Please verify this is correct: Need multiple virtual directories
for isapi_redirector

Hi;

I want to make sure this is correct:


If you want to run Tomcat against multiple websites, not just the default
website, this is what I have had to do.

This is on Windows 2003/IIS 6.0.

I removed isapi_redirector.dll from the default web site ISAPI Filters and
put it in the parent Web Sites ISAPI Filter properties.

I added a jakarta virtual directory for each website (and I have a lot.).

Now it appears to work.

??? - thanks - dave



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Desperately need help: What is correct for workers.properties.minimal

2005-09-27 Thread David Thielen
Asking again - thanks - dave


David Thielen
303-499-2544
www.windwardreports.com

-Original Message-
From: David Thielen [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 22, 2005 9:09 AM
To: 'Tomcat Users List'
Subject: Desperately need help: What is correct for
workers.properties.minimal

Hi;

I'm running Tomcat 5.5 on Windows 2003/IIS 6.0 using isapi_redirect

The isapi_redirect.exe installer creates a worker.properties.minimal of:
worker.list=wlb,jkstatus
worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009
worker.wlb.type=lb
worker.wlb.balance_workers=ajp13w
worker.jkstatus.type=status

While the docs show one of:
worker.list=ajp13w
worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009

First, what use is the load balancing if I have just one server running one
instance of Tomcat? Does it load balance within that one instance?

Second, what is jkstatus for?

Third, I am using the non-lb listing above. And it appears to work fine but
occasionally I am getting the following. What does it mean:

[Thu Sep 22 07:30:02 2005] [error] HttpExtensionProc::jk_isapi_plugin.c
(1029): could not get a worker for name ajp13
[Thu Sep 22 07:36:20 2005] [info]  ajp_send_request::jk_ajp_common.c (1178):
Socket 320 is not connected any more (errno=-1)
[Thu Sep 22 07:36:20 2005] [info]  ajp_send_request::jk_ajp_common.c (1202):
Error sending request. Will try another pooled connection

Thanks - dave



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Please verify this is correct: Need multiple virtual directories for isapi_redirector

2005-09-27 Thread David Thielen
I ask because I have come across way too many situations where something
works not by design, but by luck. And then it turns out that while it did
work - under certain circumstances it doesn't and I am left trying to find
the correct solution in the middle of an emergency.

Also, if this is the correct way to do it, I was going to post it in my blog
as I am sure others run across this same problem.

Thanks - dave


David Thielen
303-499-2544
www.windwardreports.com

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 27, 2005 8:57 AM
To: Tomcat Users List
Subject: RE: Please verify this is correct: Need multiple virtual
directories for isapi_redirector

Dave,

If it's working via a solution you've configured, and you are not writing a
specification of how things will work, why do you keep asking this question?

With best intentions, Allistair.

 -Original Message-
 From: David Thielen [mailto:[EMAIL PROTECTED]
 Sent: 27 September 2005 15:52
 To: 'Tomcat Users List'
 Subject: RE: Please verify this is correct: Need multiple virtual
 directories for isapi_redirector
 
 
 Asking again
 
 Thanks - dave
 
 David Thielen
 303-499-2544
 www.windwardreports.com
 
 -Original Message-
 From: David Thielen [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, September 22, 2005 9:10 AM
 To: 'Tomcat Users List'
 Subject: Please verify this is correct: Need multiple virtual 
 directories
 for isapi_redirector
 
 Hi;
 
 I want to make sure this is correct:
 
 
 If you want to run Tomcat against multiple websites, not just 
 the default
 website, this is what I have had to do.
 
 This is on Windows 2003/IIS 6.0.
 
 I removed isapi_redirector.dll from the default web site 
 ISAPI Filters and
 put it in the parent Web Sites ISAPI Filter properties.
 
 I added a jakarta virtual directory for each website (and I 
 have a lot.).
 
 Now it appears to work.
 
 ??? - thanks - dave
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
Disclaimer:  The information contained within this e-mail is confidential
and may be privileged. This email is intended solely for the named recipient
only; if you are not authorised you must not disclose, copy, distribute, or
retain this message or any part of it. If you have received this message in
error please contact the sender at once so that we may take the appropriate
action and avoid troubling you further.  Any views expressed in this message
are those of the individual sender.  QAS Limited has the right lawfully to
record, monitor and inspect messages between its employees and any third
party.  Your messages shall be subject to such lawful supervision as QAS
Limited deems to be necessary in order to protect its information, its
interests and its reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS
Limited cannot guarantee that attachments are virus free or compatible with
your systems and does not accept any liability in respect of viruses or
computer problems experienced.
/FONT


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



log files not rolling over.

2005-09-26 Thread David Thielen
Hi;

Some of my log files (the ones specified in log4j.xml) are not rolling over.
Specifically, after 3 days my logs directory is:

09/23/2005  12:18 PM 0 admin.2005-09-23.log
09/25/2005  10:08 PM 0 admin.2005-09-25.log
09/23/2005  12:18 PM 0 catalina.2005-09-23.log
09/25/2005  10:08 PM 0 catalina.2005-09-25.log
09/23/2005  12:18 PM 0 host-manager.2005-09-23.log
09/25/2005  10:08 PM 0 host-manager.2005-09-25.log
09/25/2005  10:06 PM56,743 isapi_redirect.log
09/23/2005  12:18 PM 0 jakarta_service_20050923.log
09/25/2005  10:08 PM 0 jakarta_service_20050925.log
09/23/2005  12:18 PM 0 localhost.2005-09-23.log
09/25/2005  10:08 PM 0 localhost.2005-09-25.log
09/23/2005  12:18 PM 0 manager.2005-09-23.log
09/25/2005  10:08 PM 0 manager.2005-09-25.log
09/23/2005  12:18 PM 0 stderr_20050923.log
09/25/2005  10:08 PM 0 stderr_20050925.log
09/25/2005  08:20 PM10,748 stdout_20050923.log
09/26/2005  10:30 AM 4,149 stdout_20050925.log
09/26/2005  10:30 AM 1,076 tomcat.log
09/26/2005  02:52 AM 5,867 windward.log

And stdout_*.log has:

log4j:ERROR Failed to rename [C:\Tomcat 5.5/logs/windward.log] to [C:\Tomcat
5.5/logs/windward.log.2005-09-23].
log4j:ERROR Failed to rename [C:\Tomcat 5.5/logs/windward.log] to [C:\Tomcat
5.5/logs/windward.log.2005-09-23].
log4j:ERROR Failed to rename [C:\Tomcat 5.5/logs/windward.log] to [C:\Tomcat
5.5/logs/windward.log.2005-09-24].
log4j:ERROR Failed to rename [C:\Tomcat 5.5/logs/windward.log] to [C:\Tomcat
5.5/logs/windward.log.2005-09-24].
log4j:ERROR Failed to rename [C:\Tomcat 5.5/logs/tomcat.log] to [C:\Tomcat
5.5/logs/tomcat.log.2005-09-23].
log4j:ERROR Failed to rename [C:\Tomcat 5.5/logs/tomcat.log] to [C:\Tomcat
5.5/logs/tomcat.log.2005-09-25].

Any idea why? Tomcat is running as Local System (default install) and System
has full rights on these files.

??? - thanks - dave


David Thielen
303-499-2544
www.windwardreports.com



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Desperately need help: What is correct for workers.properties.minimal

2005-09-22 Thread David Thielen
Hi;

I'm running Tomcat 5.5 on Windows 2003/IIS 6.0 using isapi_redirect

The isapi_redirect.exe installer creates a worker.properties.minimal of:
worker.list=wlb,jkstatus
worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009
worker.wlb.type=lb
worker.wlb.balance_workers=ajp13w
worker.jkstatus.type=status

While the docs show one of:
worker.list=ajp13w
worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009

First, what use is the load balancing if I have just one server running one
instance of Tomcat? Does it load balance within that one instance?

Second, what is jkstatus for?

Third, I am using the non-lb listing above. And it appears to work fine but
occasionally I am getting the following. What does it mean:

[Thu Sep 22 07:30:02 2005] [error] HttpExtensionProc::jk_isapi_plugin.c
(1029): could not get a worker for name ajp13
[Thu Sep 22 07:36:20 2005] [info]  ajp_send_request::jk_ajp_common.c (1178):
Socket 320 is not connected any more (errno=-1)
[Thu Sep 22 07:36:20 2005] [info]  ajp_send_request::jk_ajp_common.c (1202):
Error sending request. Will try another pooled connection

Thanks - dave



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Asking again: index.jsp and virtual directories

2005-09-22 Thread David Thielen
Hi;

I am running on Windows 2003/IIS 6.0  tomcat. I have a single IP address
for all of my websites (I have several) and then use the request header to
determine which website to return. IIS does this very nicely.

I want to have index.jsp in each of these websites. How can I set it up so
that when isapi_redirect calls tomcat, it knows which website's index.jsp to
use? The solution JRun uses is it will look in the IIS directory of the
website for the jsp file. But I tried that with tomcat and it didn't work.

Is there a way to do this?

Thanks - dave

Ps - to see what I mean, you can go to:
http://www.windward.net or http://jasmine.windward.net/windward/
http://www.windwardreports.com or
http://jasmine.windward.net/windwardreports/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Please verify this is correct: Need multiple virtual directories for isapi_redirector

2005-09-22 Thread David Thielen
Hi;

I want to make sure this is correct:


If you want to run Tomcat against multiple websites, not just the default
website, this is what I have had to do.

This is on Windows 2003/IIS 6.0.

I removed isapi_redirector.dll from the default web site ISAPI Filters and
put it in the parent Web Sites ISAPI Filter properties.

I added a jakarta virtual directory for each website (and I have a lot.).

Now it appears to work.

??? - thanks - dave



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: db-connectin is working fine, but is it pooling?

2005-09-22 Thread David Thielen
I think (not sure as I am not a Tomcat expert) that you can just get 2
connections without closing either - and see that you got 2.

- dave


-Original Message-
From: Trond Hersløv [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 22, 2005 6:24 PM
To: Tomcat Users List
Subject: RE: db-connectin is working fine, but is it pooling?

Thanks, I'll do that, but still - how can I be sure that my pool have more
than just this one connection. Writing two servlets with endless loops,
avoiding checking the connections back would give me the answer I guess.
But why is there only one connection established to my DB server??

Is there a way to configure the pool to pre generate eg. 10 connections?

\trond


-Original Message-
From: Kyle [mailto:[EMAIL PROTECTED] 
Sent: 23. september 2005 02:14
To: Tomcat Users List
Subject: Re: db-connectin is working fine, but is it pooling?

Print out your Connection Object .toString() to stdout or on a page and 
you should see that it is a Pool(ed|able) Connection object.

K

Trond Hersløv wrote:

Everything works just fine, but I'm a little bit concerned that maybe I am
generating a singel connection to the DB and not a pool of connections.
As I run  netstat -a on the machine hosting the DB, I expected to find
a lot of connections to port 3306, which my MySQL server listens to, but
there is only one single connection. Even when I press F5 for a long time to
refresh my IE window like a 100 times or with more windows open at the same
time there is just this one connection to be found.
  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


**
This email message has been swept by
MIMEsweeper for the presence of computer viruses.
**


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: need final / in url

2005-09-21 Thread David Thielen
That was it - thanks - dave


-Original Message-
From: Mladen Turk [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 20, 2005 11:42 PM
To: Tomcat Users List
Subject: Re: need final / in url

David Thielen wrote:
 
 The url www.windward.net/forums fails while www.windward.net/forums/
 succeeds.
 
 My uriworkermap has:
 
 /forums/*=ajp13w


try:
/forums|/*=ajp13w

This will actually create two maps:
/forums=ajp13w
/forums/*=ajp13w

Regards,
Mladen.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



need final / in url

2005-09-20 Thread David Thielen
Hi;

 

The url www.windward.net/forums fails while www.windward.net/forums/
succeeds.

 

My uriworkermap has:

/forums/*=ajp13w

 

I understand that isapi_redirect sees the first as a filename - but
shouldn't it also look for it as a servlet?

 

Thanks - dave

 



Asking again: Need multiple virtual directories for isapi_redirector

2005-09-20 Thread David Thielen
Hi;

I want to make sure this is correct:


If you want to run Tomcat against multiple websites, not just the default
website, this is what I have had to do.

This is on Windows 2003/IIS 6.0.

I removed isapi_redirector.dll from the default web site ISAPI Filters and
put it in the parent Web Sites ISAPI Filter properties.

I added a jakarta virtual directory for each website (and I have a lot.).

Now it appears to work.

??? - thanks - dave



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Asking again: index.jsp and virtual directories

2005-09-20 Thread David Thielen
Hi;

I am running on Windows 2003/IIS 6.0  tomcat. I have a single IP address
for all of my websites (I have several) and then use the request header to
determine which website to return. IIS does this very nicely.

I want to have index.jsp in each of these websites. How can I set it up so
that when isapi_redirect calls tomcat, it knows which website's index.jsp to
use? The solution JRun uses is it will look in the IIS directory of the
website for the jsp file. But I tried that with tomcat and it didn't work.

Is there a way to do this?

Thanks - dave

Ps - to see what I mean, you can go to:
http://www.windward.net or http://jasmine.windward.net/windward/
http://www.windwardreports.com or
http://jasmine.windward.net/windwardreports/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Asking again: What is correct for workers.properties.minimal

2005-09-20 Thread David Thielen
Hi;

I'm running Tomcat 5.5 on Windows 2003/IIS 6.0 using isapi_redirect

The isapi_redirect.exe installer creates a worker.properties.minimal of:
worker.list=wlb,jkstatus
worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009
worker.wlb.type=lb
worker.wlb.balance_workers=ajp13w
worker.jkstatus.type=status

While the docs show one of:
worker.list=ajp13w
worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009

First, what use is the load balancing if I have just one server running one
instance of Tomcat? Does it load balance within that one instance?

Second, what is jkstatus for?

Third, I am using the non-lb listing above. And it appears to work fine but
occasionally I am getting the following. What does it mean:
[Sun Sep 18 20:15:30 2005] [error]
HttpExtensionProc::jk_isapi_plugin.c (1029): could not get a worker for name
ajp13

Thanks - dave



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Asking again: Need multiple virtual directories for isapi_redirector

2005-09-19 Thread David Thielen
Hi;

I want to make sure this is correct:


If you want to run Tomcat against multiple websites, not just the default
website, this is what I have had to do.

This is on Windows 2003/IIS 6.0.

I removed isapi_redirector.dll from the default web site ISAPI Filters and
put it in the parent Web Sites ISAPI Filter properties.

I added a jakarta virtual directory for each website (and I have a lot.).

Now it appears to work.

??? - thanks - dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



index.jsp and virtual directories

2005-09-19 Thread David Thielen
Hi;

I am running on Windows 2003/IIS 6.0  tomcat. I have a single IP address
for all of my websites (I have several) and then use the request header to
determine which website to return. IIS does this very nicely.

I want to have index.jsp in each of these websites. How can I set it up so
that when isapi_redirect calls tomcat, it knows which website's index.jsp to
use? The solution JRun uses is it will look in the IIS directory of the
website for the jsp file. But I tried that with tomcat and it didn't work.

Is there a way to do this?

Thanks - dave

Ps - to see what I mean, you can go to:
http://www.windward.net or http://jasmine.windward.net/windward/
http://www.windwardreports.com or
http://jasmine.windward.net/windwardreports/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



What is correct for workers.properties.minimal

2005-09-19 Thread David Thielen
Hi;

I'm running Tomcat 5.5 on Windows 2003/IIS 6.0 using isapi_redirect

The isapi_redirect.exe installer creates a worker.properties.minimal of:
worker.list=wlb,jkstatus
worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009
worker.wlb.type=lb
worker.wlb.balance_workers=ajp13w
worker.jkstatus.type=status

While the docs show one of:
worker.list=ajp13w
worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009

First, what use is the load balancing if I have just one server running one
instance of Tomcat? Does it load balance within that one instance?

Second, what is jkstatus for?

Third, I am using the non-lb listing above. And it appears to work fine but
occasionally I am getting the following. What does it mean:
[Sun Sep 18 20:15:30 2005] [error]
HttpExtensionProc::jk_isapi_plugin.c (1029): could not get a worker for name
ajp13

Thanks - dave



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Where to place a common jar file?

2005-09-19 Thread David Thielen
Hi;

 

If I have a jar file used by multiple servlets, should I put it in
${catalina}/common/lib or in ${catalina}/webapps/${each_app}/WEB-INF/lib?

 

I ask because I have seen various warnings that most jar files need to be
placed in each webapp and not in common (like struts).

 

??? - thanks - dave



RE: Tomcat 5.5.9 and IIS 5/6

2005-09-19 Thread David Thielen
Hello;

I can feel your pain - I just went through this. A couple of things:
1) reboot. It shouldn't be necessary but was in my case.
2) If IIS6, you have to go to the web extensions(?) in IIS and add
isapi_redirect.dll as an allowed extension.

Good luck - dave


-Original Message-
From: Gregg D Bolinger [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 19, 2005 2:23 PM
To: tomcat-user@jakarta.apache.org
Subject: Tomcat 5.5.9 and IIS 5/6

I am having to get Tomcat setup with IIS on Windows 2003. I started testing 
on my XP box to make sure I could get things rolling before I started 
screwing with the server. So first I download isapi_redirect.dll from
herehttp://apache.towardex.com/jakarta/tomcat-connectors/jk/binaries/win32/
jk-1.2.14/.
Next, I followed step by step the instructions located
herehttp://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/jk/iishowto
.html
.http://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/jk/iishowto.ht
ml

I have also changed the paths in my workers.properties file to reflect my 
java and tomcat home locations.

Needless to say, it is not working. I can't get the filter to show a green 
arrow in IIS. It still shows that the isapi_redirect.dll is not loaded. No 
log files are being generated or anything. 

I was wondering if

A. I am following current instructions
B. Do I have the right DLL downloaded
C. What else can I do

Thanks.

Gregg


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat 5.5.9 and IIS 5/6

2005-09-19 Thread David Thielen
All I can suggest is make sure the uriworkers. and workers. files are
correct, that the registry is pointing at the ones you think it is pointing
at AND that you have the servlets spelled correctly - - its
servlets-examples, not servlet-examples on my system.

 

Thanks - dave

 

 

  _  

From: Gregg D Bolinger [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 19, 2005 2:45 PM
To: David Thielen
Cc: Tomcat Users List
Subject: Re: Tomcat 5.5.9 and IIS 5/6

 

Ok Dave. I rebooted and the Filter is Green.  So that is a start.  However,
the servlets-examples is still not being loaded.  Says page cannot be
displayed.  There is nothing in the log file.  I made sure, per your
discovery, that the uriworkermap.properties file is fixed.  Any other
suggestions?

Thanks a bunch.


Gregg

On 9/19/05, David Thielen  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
wrote:

Hello;

I can feel your pain - I just went through this. A couple of things: 
1) reboot. It shouldn't be necessary but was in my case.
2) If IIS6, you have to go to the web extensions(?) in IIS and add
isapi_redirect.dll as an allowed extension.

Good luck - dave


-Original Message- 
From: Gregg D Bolinger [mailto:[EMAIL PROTECTED]
Sent: Monday, September 19, 2005 2:23 PM
To: tomcat-user@jakarta.apache.org 
Subject: Tomcat 5.5.9 and IIS 5/6

I am having to get Tomcat setup with IIS on Windows 2003. I started testing
on my XP box to make sure I could get things rolling before I started
screwing with the server. So first I download isapi_redirect.dll from 
herehttp://apache.towardex.com/jakarta/tomcat-connectors/jk/binaries/win32/
jk-1.2.14/.
Next, I followed step by step the instructions located 
herehttp://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/jk/iishowto
.html
.
http://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/jk/iishowto.ht
http://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/jk/iishowto.ht
ml

I have also changed the paths in my workers.properties file to reflect my
java and tomcat home locations.

Needless to say, it is not working. I can't get the filter to show a green 
arrow in IIS. It still shows that the isapi_redirect.dll is not loaded. No
log files are being generated or anything.

I was wondering if

A. I am following current instructions
B. Do I have the right DLL downloaded 
C. What else can I do

Thanks.

Gregg

 



RE: Where to place a common jar file?

2005-09-19 Thread David Thielen
Sorry - you're right on the shared vs common. I put the jdbc drivers in
common/lib as I access them via Tomcat's jndi - so Tomcat uses them. Is that
correct for them

Thanks - dave


-Original Message-
From: Mark Eggers [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 19, 2005 4:19 PM
To: Tomcat Users List
Subject: Re: Where to place a common jar file?

From the Tomcat documetation:

http://localhost:8080/tomcat-docs/class-loader-howto.html

* For classes and resources specific to a particular 
web application, place unpacked classes and resources 
under /WEB-INF/classes  of your web application 
archive, or place JAR files containing those classes 
and resources under /WEB-INF/lib of your web
application archive.

* For classes and resources that must be shared across

all web applications, place unpacked classes and 
resources under $CATALINA_BASE/shared/classes, or
place 
JAR files containing those classes and resources under

$CATALINA_BASE/shared/lib.

Further on down the page:

Common - This class loader contains additional classes

that are made visible to both Tomcat internal classes 
and to all web applications. Normally, application 
classes should NOT  be placed here.

/mde/

--- David Smith [EMAIL PROTECTED] wrote:

 Shared jars can be placed in common/lib, but keep in
 mind that all your
 webapps will be locked to the same version of the
 jar.  It's better to
 have a copy in the webapp instead where you'll have
 more version
 independence between wepapps.
 
 --David
 
 
 David Thielen wrote:
 
 Hi;
 
  
 
 If I have a jar file used by multiple servlets,
 should I put it in
 ${catalina}/common/lib or in
 ${catalina}/webapps/${each_app}/WEB-INF/lib?




__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat 5.5.9 and IIS 5/6

2005-09-19 Thread David Thielen
For worker.properties.minimal you need (you're missing the first line):

worker.list=ajp13w
worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009


-Original Message-
From: Gregg D Bolinger [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 19, 2005 3:20 PM
To: David Thielen
Cc: Tomcat Users List
Subject: Re: Tomcat 5.5.9 and IIS 5/6

Ohm another thing...I actually got an error in my tomcat log fle.

HttpExtensionProc::jk_isapi_plugin.c (1029): could not get a worker for name

ajp13w

Does that help?

gregg

On 9/19/05, Gregg D Bolinger [EMAIL PROTECTED] wrote:
 
 Ok Dave. Checking..Here is the information I have. Maybe I have a typo and

 can't see it because I have been staring at it too long.
 
 workers.properties.minimal
 ---
 worker.ajp13w.type=ajp13
 worker.ajp13w.host=localhost
 worker.ajp13w.port=8009
 
 uriworkermap.properties
 
 /servlets-examples/*=ajp13w
 !/servlets-examples/*.jpeg=ajp13w
 
 registry
 -
 Value 0
 Name: extension_uri
 Type: REG_SZ
 Data: /jakarta/isapi_redirect.dll
 
 Value 1
 Name: log_file
 Type: REG_SZ
 Data: c:\tomcat\logs\isapi.log
 
 Value 2
 Name: log_level
 Type: REG_SZ
 Data: info
 
 Value 3
 Name: worker_file
 Type: REG_SZ
 Data: c:\tomcat\conf\workers.properties.minimal
 
 Value 4
 Name: worker_mount_file
 Type: REG_SZ
 Data: c:\tomcat\conf\uriworkermap.properties
 
 everything looks good to me, but who knows.
 
 Gregg
 
 On 9/19/05, David Thielen [EMAIL PROTECTED] wrote:
  
   All I can suggest is make sure the uriworkers. and workers. files are 
  correct, that the registry is pointing at the ones you think it is
pointing 
  at AND that you have the servlets spelled correctly - - its 
  servlets-examples, not servlet-examples on my system.
  
   Thanks - dave
  
 --
   
  *From:* Gregg D Bolinger [mailto:[EMAIL PROTECTED] 
  *Sent:* Monday, September 19, 2005 2:45 PM
  *To:* David Thielen
  *Cc:* Tomcat Users List
  *Subject:* Re: Tomcat 5.5.9 and IIS 5/6
   
   Ok Dave. I rebooted and the Filter is Green. So that is a start. 
  However, the servlets-examples is still not being loaded. Says page
cannot 
  be displayed. There is nothing in the log file. I made sure, per your 
  discovery, that the uriworkermap.properties file is fixed. Any other 
  suggestions?
  
  Thanks a bunch.
  
  
  Gregg
   
  On 9/19/05, *David Thielen*  [EMAIL PROTECTED] wrote:
  
  Hello;
  
  I can feel your pain - I just went through this. A couple of things: 
  1) reboot. It shouldn't be necessary but was in my case.
  2) If IIS6, you have to go to the web extensions(?) in IIS and add
  isapi_redirect.dll as an allowed extension.
  
  Good luck - dave
  
  
  -Original Message- 
  From: Gregg D Bolinger [mailto:[EMAIL PROTECTED]
  Sent: Monday, September 19, 2005 2:23 PM
  To: tomcat-user@jakarta.apache.org 
  Subject: Tomcat 5.5.9 and IIS 5/6
  
  I am having to get Tomcat setup with IIS on Windows 2003. I started 
  testing
  on my XP box to make sure I could get things rolling before I started
  screwing with the server. So first I download isapi_redirect.dll from 
 
herehttp://apache.towardex.com/jakarta/tomcat-connectors/jk/binaries/win32/

  
  jk-1.2.14/.
  Next, I followed step by step the instructions located 
 
herehttp://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/jk/iishowto

  
  .html
 
.http://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/jk/iishowto.ht
  ml
  
  I have also changed the paths in my workers.properties file to reflect 
  my
  java and tomcat home locations.
  
  Needless to say, it is not working. I can't get the filter to show a 
  green 
  arrow in IIS. It still shows that the isapi_redirect.dll is not loaded. 
  No
  log files are being generated or anything.
  
  I was wondering if
  
  A. I am following current instructions
  B. Do I have the right DLL downloaded 
  C. What else can I do
  
  Thanks.
  
  Gregg
   
   



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Need multiple virtual directories for isapi_redirector

2005-09-18 Thread David Thielen
Hi;

 

If you want to run Tomcat against multiple websites, not just the default
website, this is what I have had to do.

 

IS THIS CORRECT??

 

This is on Windows 2003/IIS 6.0.

 

I removed isapi_redirector.dll from the default web site ISAPI Filters and
put it in the parent Web Sites ISAPI Filter properties.

 

I added a jakarta virtual directory for each website (and I have a lot.).

 

Now it appears to work.

 

??? - thanks - dave

 

Google:

HttpFilterProc::jk_isapi_plugin.c (849): [/track/index.htm] is a servlet url
- should redirect to ajp13w (last line in log)

Host header

Multiple web sites

 



trying to get jsp files in my IIS directory to work

2005-09-17 Thread David Thielen
Hi;

 

Here is the basic problem I am trying to solve. On our server we use the
request header to serve up a web page. So www.windward.net
http://www.windward.net/  and www.windwardreports.com
http://www.windwardreports.com/  which go to the same server use a
different website to return pages. The true root of all this is
jasmine.windward.net/windward and jasmine.windward.net/windwardreports.

 

The problem is that when testing on my system, I don't have a way to do the
virtual websites based on the header request. So I am always
localhost/windward and localhost/windwardreports.

 

When I need to have links between my jsp pages and my static pages, I don't
know if I need to add in that extra directory. If I could just process jsp
files that are in the IIS directory, then it would not be a problem because
they would all be ./filename to each other.

 

I tried the following in my uriworkermap.properties:

*.jsp=ajp13w

/*.jsp=ajp13w

/windwardreports/*.jsp=ajp13w

 

But I get an error 404. And nothing in any of the log files.

 

Any suggestions, ideas?

 

Thanks - dave

 



Can't get isapi_redir working on Win 2003/IIS6

2005-09-17 Thread David Thielen
Hi;

 

I have tomcat working fine on my workstation - Windows XP/ IIS5

 

I installed tomcat on our server - Windows 2003 / IIS6

 

I ran the isape_redirect.exe installer. 

I then copied over my worker.properties.minimal and uriworkermap.properties.


I then went to Web Services Extensions and added isapi_redirector.dll and
set it to allowed.

 

I have a green arrow for the jakarta ISAPI Filter

The registry entries and jakarta virtual directory properties all look
correct - they were set by the installer.

 

I can run one of my servlets using 8080 - http://www.windward.net:8080/track
works

But http://www.windward.net/track
http://www.windward.net/track%20fails%20with%20error%20404  fails with
error 404.

 

The log:

2005-09-18 04:36:59 W3SVC862201082 JASMINE 192.168.200.11 GET /track - 80 -
192.168.200.11
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.4322;+.
NET+CLR+1.0.3705) sourceid=1127005230840_144 - www.windward.net 404 0 0

 

Workers.properties.minimal:

worker.list=ajp13w

worker.ajp13w.type=ajp13

worker.ajp13w.host=localhost

worker.ajp13w.port=8009

 

uriworkermap.properties:

/admin/*=wlb

/manager/*=wlb

/store/*=ajp13w

/track/*=ajp13w

*.jsp=ajp13w

*.faces=ajp13w

/forums/*=ajp13w

 

isapi_redirect.log - empty (0 bytes)

 

Other logs - nothing on isapi_redirect.

 

Registry:

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
Redirector]

@=

 

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
Redirector\1.0]

@=

extension_uri=/jakarta/isapi_redirect.dll

log_file=C:\\Tomcat 5.5\\logs\\isapi_redirect.log

log_level=info

worker_file=C:\\Tomcat 5.5\\conf\\workers.properties.minimal

worker_mount_file=C:\\Tomcat 5.5\\conf\\uriworkermap.properties

 

Any ideas?

 

Thanks - dave

 



RE: Can't get isapi_redir working on Win 2003/IIS6

2005-09-17 Thread David Thielen
I set logging to debug, deleted the log file, and restarted. No log file was
created. But in the ISAPI Filter list it does have a green up arrow.

What do I try now?

Thanks - dave


-Original Message-
From: David Thielen [mailto:[EMAIL PROTECTED] 
Sent: Saturday, September 17, 2005 10:50 PM
To: tomcat-user@jakarta.apache.org
Subject: Can't get isapi_redir working on Win 2003/IIS6

Hi;

 

I have tomcat working fine on my workstation - Windows XP/ IIS5

 

I installed tomcat on our server - Windows 2003 / IIS6

 

I ran the isape_redirect.exe installer. 

I then copied over my worker.properties.minimal and uriworkermap.properties.


I then went to Web Services Extensions and added isapi_redirector.dll and
set it to allowed.

 

I have a green arrow for the jakarta ISAPI Filter

The registry entries and jakarta virtual directory properties all look
correct - they were set by the installer.

 

I can run one of my servlets using 8080 - http://www.windward.net:8080/track
works

But http://www.windward.net/track
http://www.windward.net/track%20fails%20with%20error%20404  fails with
error 404.

 

The log:

2005-09-18 04:36:59 W3SVC862201082 JASMINE 192.168.200.11 GET /track - 80 -
192.168.200.11
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.4322;+.
NET+CLR+1.0.3705) sourceid=1127005230840_144 - www.windward.net 404 0 0

 

Workers.properties.minimal:

worker.list=ajp13w

worker.ajp13w.type=ajp13

worker.ajp13w.host=localhost

worker.ajp13w.port=8009

 

uriworkermap.properties:

/admin/*=wlb

/manager/*=wlb

/store/*=ajp13w

/track/*=ajp13w

*.jsp=ajp13w

*.faces=ajp13w

/forums/*=ajp13w

 

isapi_redirect.log - empty (0 bytes)

 

Other logs - nothing on isapi_redirect.

 

Registry:

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
Redirector]

@=

 

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
Redirector\1.0]

@=

extension_uri=/jakarta/isapi_redirect.dll

log_file=C:\\Tomcat 5.5\\logs\\isapi_redirect.log

log_level=info

worker_file=C:\\Tomcat 5.5\\conf\\workers.properties.minimal

worker_mount_file=C:\\Tomcat 5.5\\conf\\uriworkermap.properties

 

Any ideas?

 

Thanks - dave

 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Can't change servlet path

2005-09-14 Thread David Thielen
Hi;

I'm not understanding something here I think. On (1) you say (I think) that
I must put Context in server.xml for the path attribute. But in (2) you
tell me (I think) to not put Context in server.xml?

What am I not getting here?

Thanks - dave


-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 13, 2005 9:27 PM
To: Tomcat Users List
Subject: RE: Can't change servlet path

 From: David Thielen [mailto:[EMAIL PROTECTED] 
 Subject: RE: Can't change servlet path
 
 1) Why is this forced in server.xml when otherwise we are 
 supposed to put everything in our META-INF?

You should consider the use of Context in server.xml as merely a
migration mechanism from older Tomcat versions.  The path attribute has
to be used in this situation, since there is no other means of
determining the application name.  For the other two cases, the
application name is derivable from either the location or the name of
the .xml file.

 2) In this case, is the context.xml in my META-INF used also? In other
 words, should I put the JDBC Resource node in the Context node in
 server.xml or in my context.xml?

You simply shouldn't have a Context tag in server.xml (see above).

 3) While /abc now works, /store still does too. Is this by design?

I suspect that your app has actually been deployed twice - once for each
of the Context instances you have.  I believe the normal way of
handling a single app that you want to use under multiple path names is
to have trivial secondary apps that merely forward requests to the real
one.  (Others may have better solutions, since I primarily work on the
inside of the JVM, not on J2EE apps.)

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problem making my servlet the default servlet (instead of ROOT)

2005-09-14 Thread David Thielen
Hi;

We have some ASP stuff too so we have to have IIS.

I think I'll just put my servlet in root and stop trying to change what root
is (yuck).

Thanks - dave


-Original Message-
From: Parsons Technical Services [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 13, 2005 10:45 PM
To: Tomcat Users List
Subject: Re: Problem making my servlet the default servlet (instead of ROOT)

 If I do Context path=/ docBase=store., then
 http://localhost:8080/cart.faces  returns an error 404.

Yep. It will. Since you are using the path attribute I assume this is in the

server.xml and to set it as the root you would use .

 If you specify a context path of an empty string (), you are defining 
the default web application for this Host, which will process all requests 
not assigned to other Contexts. 

If this is not in the server.xml then remove the path attribute completely. 
Name your package ROOT.war and deploy it. (Someone correct me if I am wrong 
here.)


 I figured it should be / and not ?


No. See above.


 If I do Context path= docBase=store., then it works. But.

 http://localhost:8080/store/cart.faces works

 http://localhost/store/cart.faces works (via IIS)

 http://localhost:8080/cart.faces works

 http://localhost/cart.faces - error 404



 Any idea why the error only if using the root?




I don't use IIS but I would say it is a configuration issue in the 
connector, as you are connecting to two different apps in the first two URLs

than you are in the last two. And since both :8080 URLs work then Tomcat is 
working.

Out of curiosity is there any particular reason you are using IIS and not 
Tomcat alone?

Doug 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Can't change servlet path

2005-09-13 Thread David Thielen
Hi;

 

I have tried the following in context.xml (in webapps/store/WEB-INF and
META-INF):

 

Context path=/abc docBase=store debug=5 reloadable=true
crossContext=true

  Resource name=jdbc/storeDB auth=Container
type=javax.sql.DataSource

username=sa password=*
driverClassName=com.microsoft.jdbc.sqlserver.SQLServerDriver

 
url=jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=StoreTest;Select
Method=cursor

maxActive=8 maxIdle=4/

/Context

 

But http://localhost:8080/abc/ fails while http://localhost:8080/store/
works. What am I doing wrong?

 

Also, does context.xml go in WEB-INF or META-INF?

 

Thanks - dave

 

 



RE: Can't change servlet path

2005-09-13 Thread David Thielen
Hello;

I am using Tomcat 5.5 (which is really nice).

1) I have no Context nodes in server.xml

2) Tomcat 5.5\conf\context.xml is:
Context
WatchedResourceWEB-INF/web.xml/WatchedResource
/Context

3) Tomcat 5.5\webapps\store\META-INF\context.xml is:
Context path=/abc docBase=store debug=5 reloadable=true
crossContext=true
Resource name=jdbc/storeDB auth=Container
type=javax.sql.DataSource username=sa password=*
driverClassName=com.microsoft.jdbc.sqlserver.SQLServerDriver
url=jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=StoreTest;Select
Method=cursor maxActive=8 maxIdle=4/
/Context

Yet http://localhost:8080/abc fails and http://localhost:8080/store
succeeds.

I've read all the docs and it seems to me this is supposed to work.

What am I missing

Thanks - dave


-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 13, 2005 3:59 PM
To: Tomcat Users List
Subject: RE: Can't change servlet path

 From: David Thielen [mailto:[EMAIL PROTECTED] 
 Subject: Can't change servlet path
 
 I have tried the following in context.xml (in 
 webapps/store/WEB-INF and META-INF):

Please read the very explicit doc:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html

(Since you didn't bother to tell us which Tomcat version you're using,
you'll need to adjust the above URL appropriately.)

In particular, the above says:

In addition to nesting Context elements inside a Host element, you can
also store them:
* in the individual $CATALINA_HOME/conf/context.xml file: the
Context element information will be loaded by all webapps
* in the individual
$CATALINA_HOME/conf/[enginename]/[hostname]/context.xml.default file:
the Context element information will be loaded by all webapps of that
host
* in individual files (with a .xml extension) in the
$CATALINA_HOME/conf/[enginename]/[hostname]/ directory
* if the previous file was not found for this application, in
individual file at /META-INF/context.xml inside the application files

Please note that for tomcat 5, unlike tomcat 4.x, it is NOT recommended
to place Context elements directly in the server.xml file.  Instead,
put them in the META-INF/context.xml directory of your WAR file or the
conf directory as described above.

If you are using 5.5, also note the following for the path attribute:

The value of this field must not be set except when statically defining
a Context in server.xml, as it will be infered [sic] from the filenames
used for either the .xml context file or the docBase.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Can't change servlet path

2005-09-13 Thread David Thielen
Hi;

I'm sorry - I saw all the notes about don't put anything in server.xml and
so skipped over that part.

Out of curiosity, three questions:

1) Why is this forced in server.xml when otherwise we are supposed to put
everything in our META-INF?

2) In this case, is the context.xml in my META-INF used also? In other
words, should I put the JDBC Resource node in the Context node in
server.xml or in my context.xml?

3) While /abc now works, /store still does too. Is this by design?

Thanks again - dave


-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 13, 2005 5:42 PM
To: Tomcat Users List
Subject: RE: Can't change servlet path

 From: David Thielen [mailto:[EMAIL PROTECTED] 
 Subject: RE: Can't change servlet path
 
 3) Tomcat 5.5\webapps\store\META-INF\context.xml is:
   Context path=/abc docBase=store debug=5 reloadable=true
 crossContext=true
   /Context
 
 What am I missing

To repeat (3rd time today):

 If you are using 5.5, also note the following for the path attribute:
 
 The value of this field must not be set except when 
 statically defining a Context in server.xml, as it will
 be infered [sic] from the filenames used for either the
 .xml context file or the docBase.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problem making my servlet the default servlet (instead of ROOT)

2005-09-13 Thread David Thielen
Hi;

 

If I do Context path=/ docBase=store., then
http://localhost:8080/cart.faces  returns an error 404.

 

I figured it should be / and not ?

 

 

If I do Context path= docBase=store., then it works. But.

http://localhost:8080/store/cart.faces works

http://localhost/store/cart.faces works (via IIS)

http://localhost:8080/cart.faces works

http://localhost/cart.faces - error 404

 

Any idea why the error only if using the root?

 

??? - thanks - dave



Asking Again: What's the best way to mix html jsp

2005-09-12 Thread David Thielen

Hi;

I have websites which are 95% html and 5% jsp/jsf. Any suggestions on the
best way to mix this? What I have always done to date is put the jsp/jsf
stuff under the Tomcat webapps dir and the rest under the IIS
inetpub/wwwroot dir. It's a little disjointed during development but seems
to work great in production.

? - thanks - dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Asking again: Final questions: Default pages

2005-09-12 Thread David Thielen

Hi;

I have multiple domains on my website (IIS). I would like to do the
following.

When a user goes to http://www.windward.net/cart.jsp or
http://www.windwardreports.com/cart.jsp that it then loads the jsp page in
the root of a specific webapp of mine.

In other words, all requests for a .jsp (or .faces) page is mapped to the
same servlet regardless of the domain. And that the servlet name is not
needed as part of the url.

How can I do this?

Thanks - dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Asking again: Final questions: Default pages

2005-09-12 Thread David Thielen
Hi;

What I am trying to do is beable to have a url of www.windward.net/cart.jsp
instead of www.windward.net/stroe/cart.jsp. Is there any way to get the
servlet name out of the url for the default servlet?

Thanks - dave


-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 12, 2005 10:07 AM
To: Tomcat Users List
Subject: RE: Asking again: Final questions: Default pages

Hi,

Just don't bother putting the domain in the mapping from IIS to Tomcat, e.g

/*.jsp=ajp13

would capture both domain requests and forward to Tomcat.

Allistair.

 -Original Message-
 From: David Thielen [mailto:[EMAIL PROTECTED]
 Sent: 12 September 2005 17:03
 To: 'Tomcat Users List'
 Subject: Asking again: Final questions: Default pages
 
 
 
 Hi;
 
 I have multiple domains on my website (IIS). I would like to do the
 following.
 
 When a user goes to http://www.windward.net/cart.jsp or
 http://www.windwardreports.com/cart.jsp that it then loads 
 the jsp page in
 the root of a specific webapp of mine.
 
 In other words, all requests for a .jsp (or .faces) page is 
 mapped to the
 same servlet regardless of the domain. And that the servlet 
 name is not
 needed as part of the url.
 
 How can I do this?
 
 Thanks - dave
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
Disclaimer:  The information contained within this e-mail is confidential
and may be privileged. This email is intended solely for the named recipient
only; if you are not authorised you must not disclose, copy, distribute, or
retain this message or any part of it. If you have received this message in
error please contact the sender at once so that we may take the appropriate
action and avoid troubling you further.  Any views expressed in this message
are those of the individual sender.  QAS Limited has the right lawfully to
record, monitor and inspect messages between its employees and any third
party.  Your messages shall be subject to such lawful supervision as QAS
Limited deems to be necessary in order to protect its information, its
interests and its reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS
Limited cannot guarantee that attachments are virus free or compatible with
your systems and does not accept any liability in respect of viruses or
computer problems experienced.
/FONT


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Desperate: trying to get Tomcat working through IIS

2005-09-09 Thread David Thielen
First off - THANK YOU. It's amazing how it's so often a dumb little thing.

Second, I'm getting a lot closer. I now get the following in the IIS log:
16:10:38 127.0.0.1 GET /servlet-examples/index.html 200

The isapi_redirect.log is still empty (0 bytes).

The jakarta virtual directory is set to Execute Permissions: Scripts and
Executables.

Any ideas?

Thanks - dave

David Thielen
303-499-2544
www.windwardreports.com

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 09, 2005 1:57 AM
To: Tomcat Users List
Subject: RE: Desperate: trying to get Tomcat working through IIS

if your uriworkermap.properties file contains 

/servlet-examples/*=ajp13w
!/servlet-examples/*.jpeg=ajp13w

then why are you expecting 

http://localhost/jsp-examples/index.html 

to work? For that, you'd need to add

/jsp-examples/*=ajp13w

(and restart IIS)

Allistair.

 -Original Message-
 From: David Thielen [mailto:[EMAIL PROTECTED]
 Sent: 09 September 2005 00:50
 To: tomcat-user@jakarta.apache.org
 Subject: Desperate: trying to get Tomcat working through IIS
 
 
 Hi;
 
  
 
 I followed the instructions in
 http://jakarta.apache.org/tomcat/connectors-doc/howto/iis.html
  It references
 for configuring Tomcat with IIS 5 and 6 with a link - but 
 the link is dead
 and a search in the wiki it goes to shows nothing. I rebooted after
 installing before attempting to connect.
 
  
 
 When I go to http://localhost:8080/jsp-examples/index.html - 
 it works. When
 I go to http://localhost/jsp-examples/index.html I get an error 404.
 
  
 
 My IIS log is:
 
 #Software: Microsoft Internet Information Services 5.1
 
 #Version: 1.0
 
 #Date: 2005-09-08 23:37:35
 
 #Fields: time c-ip cs-method cs-uri-stem sc-status 
 
 23:37:35 127.0.0.1 GET /jsp-examples/index.html 404
 
  
 
 My isapi_redirect.log log file is created, but is empty.
 
  
 
 I used the isapi_redirect-1.2.14.exe setup program, then checked the
 registry settings and they all appear to be correct. I 
 followed every step
 in the howto except the ones done by the setup program.
 
  
 
 My uriworkermap.properties is:
 
 /servlet-examples/*=ajp13w
 
 !/servlet-examples/*.jpeg=ajp13w
 
  
 
 My workers.properties.minimal is:
 
 worker.list=ajp13w
 
 worker.ajp13w.type=ajp13
 
 worker.ajp13w.host=localhost
 
 worker.ajp13w.port=8009
 
  
 
 My server.xml includes (only node with ajp in it):
 
 Connector port=8009 
 
enableLookups=false redirectPort=8443 
 protocol=AJP/1.3
 /
 
  
 
  
 
 Please help - I'm desperate.
 
  
 
 Thanks - dave
 
  
 
  
 
 David Thielen
 
 303-499-2544
 
 www.windwardreports.com http://www.windwardreports.com/ 
 
  
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



IT WORKS! (was Desperate Programmers - the new hit show on ABC)

2005-09-09 Thread David Thielen
Hi;

 

Here's the problem - and I will enter this as a bug as it's killer to find.
The uriworkermap.properties file installed has the line:

/servlet-examples/*=ajp13w

 

But based on the webapps installed by Tomcat, it should be:

/servlets-examples/*=ajp13w

 

Big thankyou to Allistair  Tracy - I owe you guys.

 

thanks - dave

 

 

 

Below is my settings - in case someone googles this in the archive.

 

Yes, definitely have the green arrow - Default Web Site, Properties, ISAPI
Filters.

 

Registry is (exported to .reg, imported to Word as unicode, copy/paste - so
this is not retyped - no mistakes):

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
5.5\\logs\\isapi_redirect.log

log_level=info

worker_file=C:\\Program Files\\Apache Software Foundation\\Tomcat
5.5\\conf\\workers.properties.minimal

worker_mount_file=C:\\Program Files\\Apache Software Foundation\\Tomcat
5.5\\conf\\uriworkermap.properties

 

My jakarta virtual dir is C:\\Program Files\\Apache Software
Foundation\\Tomcat 5.5\\bin.

 

Another email said you have to manually add the isapi_redirect.dll to the
Web Extensions so I went to Default Web Site, Properties, Home Directory,
Configuration, and on the mappings tab I added .jsp - C:\Program
Files\Apache Software Foundation\Tomcat 5.5\bin\isapi_redirect.dll It
requires the  - I assume because of the spaces.

 

Thanks - dave

 

 

 

David Thielen

303-499-2544

www.windwardreports.com

 

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 09, 2005 10:19 AM
To: Tomcat Users List
Subject: RE: Desperate: trying to get Tomcat working through IIS

 

Hi,

 

Can you list the registry settings in Apache Software Foundation/Isapi
Redirector ..

 

Can you check that your website has the ISAPI filter installed with a green
arrow pointed up?

 

Cheers, Allistair

 

 -Original Message-

 From: David Thielen [mailto:[EMAIL PROTECTED]

 Sent: 09 September 2005 17:16

 To: 'Tomcat Users List'

 Subject: RE: Desperate: trying to get Tomcat working through IIS

 

 

 First off - THANK YOU. It's amazing how it's so often a dumb 

 little thing.

 

 Second, I'm getting a lot closer. I now get the following in 

 the IIS log:

 16:10:38 127.0.0.1 GET /servlet-examples/index.html 200

 

 The isapi_redirect.log is still empty (0 bytes).

 

 The jakarta virtual directory is set to Execute Permissions: 

 Scripts and

 Executables.

 

 Any ideas?

 

 Thanks - dave

 

 David Thielen

 303-499-2544

 www.windwardreports.com

 

 -Original Message-

 From: Allistair Crossley [mailto:[EMAIL PROTECTED] 

 Sent: Friday, September 09, 2005 1:57 AM

 To: Tomcat Users List

 Subject: RE: Desperate: trying to get Tomcat working through IIS

 

 if your uriworkermap.properties file contains 

 

 /servlet-examples/*=ajp13w

 !/servlet-examples/*.jpeg=ajp13w

 

 then why are you expecting 

 

 http://localhost/jsp-examples/index.html 

 

 to work? For that, you'd need to add

 

 /jsp-examples/*=ajp13w

 

 (and restart IIS)

 

 Allistair.

 

  -Original Message-

  From: David Thielen [mailto:[EMAIL PROTECTED]

  Sent: 09 September 2005 00:50

  To: tomcat-user@jakarta.apache.org

  Subject: Desperate: trying to get Tomcat working through IIS

  

  

  Hi;

  

   

  

  I followed the instructions in

  http://jakarta.apache.org/tomcat/connectors-doc/howto/iis.html

   It references

  for configuring Tomcat with IIS 5 and 6 with a link - but 

  the link is dead

  and a search in the wiki it goes to shows nothing. I rebooted after

  installing before attempting to connect.

  

   

  

  When I go to http://localhost:8080/jsp-examples/index.html - 

  it works. When

  I go to http://localhost/jsp-examples/index.html I get an error 404.

  

   

  

  My IIS log is:

  

  #Software: Microsoft Internet Information Services 5.1

  

  #Version: 1.0

  

  #Date: 2005-09-08 23:37:35

  

  #Fields: time c-ip cs-method cs-uri-stem sc-status 

  

  23:37:35 127.0.0.1 GET /jsp-examples/index.html 404

  

   

  

  My isapi_redirect.log log file is created, but is empty.

  

   

  

  I used the isapi_redirect-1.2.14.exe setup program, then checked the

  registry settings and they all appear to be correct. I 

  followed every step

  in the howto except the ones done by the setup program.

  

   

  

  My uriworkermap.properties is:

  

  /servlet-examples/*=ajp13w

  

  !/servlet-examples/*.jpeg=ajp13w

  

   

  

  My workers.properties.minimal is:

  

  worker.list=ajp13w

  

  worker.ajp13w.type=ajp13

  

  worker.ajp13w.host=localhost

  

  worker.ajp13w.port=8009

  

   

  

  My server.xml includes (only node with ajp in it):

  

  Connector port=8009 

  

 enableLookups=false

RE: Desperate: trying to get Tomcat working through IIS

2005-09-09 Thread David Thielen
Hi;

I went to Default Web Site, Properties, Home Directory, Configuration, and
on the mappings tab I added .jsp - C:\Program Files\Apache Software
Foundation\Tomcat 5.5\bin\isapi_redirect.dll It requires the  - I assume
because of the spaces.

Is this necessary? Any idea what this does?

Thanks - dave


David Thielen
303-499-2544
www.windwardreports.com


-Original Message-
From: Tracy Spratt [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 09, 2005 10:28 AM
To: Tomcat Users List
Subject: RE: Desperate: trying to get Tomcat working through IIS

Also, I think you have to manually add the isapi_redirect.dll to the
Web Extensions In IIS, if you haven't already.  If this is not
necessary, please correct me.

Tracy

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 09, 2005 12:19 PM
To: Tomcat Users List
Subject: RE: Desperate: trying to get Tomcat working through IIS

Hi,

Can you list the registry settings in Apache Software Foundation/Isapi
Redirector ..

Can you check that your website has the ISAPI filter installed with a
green arrow pointed up?

Cheers, Allistair

 -Original Message-
 From: David Thielen [mailto:[EMAIL PROTECTED]
 Sent: 09 September 2005 17:16
 To: 'Tomcat Users List'
 Subject: RE: Desperate: trying to get Tomcat working through IIS
 
 
 First off - THANK YOU. It's amazing how it's so often a dumb 
 little thing.
 
 Second, I'm getting a lot closer. I now get the following in 
 the IIS log:
 16:10:38 127.0.0.1 GET /servlet-examples/index.html 200
 
 The isapi_redirect.log is still empty (0 bytes).
 
 The jakarta virtual directory is set to Execute Permissions: 
 Scripts and
 Executables.
 
 Any ideas?
 
 Thanks - dave
 
 David Thielen
 303-499-2544
 www.windwardreports.com
 
 -Original Message-
 From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
 Sent: Friday, September 09, 2005 1:57 AM
 To: Tomcat Users List
 Subject: RE: Desperate: trying to get Tomcat working through IIS
 
 if your uriworkermap.properties file contains 
 
 /servlet-examples/*=ajp13w
 !/servlet-examples/*.jpeg=ajp13w
 
 then why are you expecting 
 
 http://localhost/jsp-examples/index.html 
 
 to work? For that, you'd need to add
 
 /jsp-examples/*=ajp13w
 
 (and restart IIS)
 
 Allistair.
 
  -Original Message-
  From: David Thielen [mailto:[EMAIL PROTECTED]
  Sent: 09 September 2005 00:50
  To: tomcat-user@jakarta.apache.org
  Subject: Desperate: trying to get Tomcat working through IIS
  
  
  Hi;
  
   
  
  I followed the instructions in
  http://jakarta.apache.org/tomcat/connectors-doc/howto/iis.html
   It references
  for configuring Tomcat with IIS 5 and 6 with a link - but 
  the link is dead
  and a search in the wiki it goes to shows nothing. I rebooted after
  installing before attempting to connect.
  
   
  
  When I go to http://localhost:8080/jsp-examples/index.html - 
  it works. When
  I go to http://localhost/jsp-examples/index.html I get an error 404.
  
   
  
  My IIS log is:
  
  #Software: Microsoft Internet Information Services 5.1
  
  #Version: 1.0
  
  #Date: 2005-09-08 23:37:35
  
  #Fields: time c-ip cs-method cs-uri-stem sc-status 
  
  23:37:35 127.0.0.1 GET /jsp-examples/index.html 404
  
   
  
  My isapi_redirect.log log file is created, but is empty.
  
   
  
  I used the isapi_redirect-1.2.14.exe setup program, then checked the
  registry settings and they all appear to be correct. I 
  followed every step
  in the howto except the ones done by the setup program.
  
   
  
  My uriworkermap.properties is:
  
  /servlet-examples/*=ajp13w
  
  !/servlet-examples/*.jpeg=ajp13w
  
   
  
  My workers.properties.minimal is:
  
  worker.list=ajp13w
  
  worker.ajp13w.type=ajp13
  
  worker.ajp13w.host=localhost
  
  worker.ajp13w.port=8009
  
   
  
  My server.xml includes (only node with ajp in it):
  
  Connector port=8009 
  
 enableLookups=false redirectPort=8443 
  protocol=AJP/1.3
  /
  
   
  
   
  
  Please help - I'm desperate.
  
   
  
  Thanks - dave
  
   
  
   
  
  David Thielen
  
  303-499-2544
  
  www.windwardreports.com http://www.windwardreports.com/ 
  
   
  
  
 
 
 FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
 ---
 QAS Ltd.
 Registered in England: No 2582055
 Registered in Australia: No 082 851 474
 ---
 /FONT
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED

RE: Desperate: trying to get Tomcat working through IIS

2005-09-09 Thread David Thielen
Yep - not needed.

Thanks - dave


David Thielen
303-499-2544
www.windwardreports.com


-Original Message-
From: Tracy Spratt [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 09, 2005 12:33 PM
To: Tomcat Users List
Subject: RE: Desperate: trying to get Tomcat working through IIS

Dave, I missed that you were using IIS 5 when I suggested the Web
Extensions step.  That is new with win 2003 and IIS 6 I believe.

Since we are figuring this out as we go along, why don't your remove
that jsp extension specification and see if you still work.  I did NOT
add it and I can serve jsp pages through the isapi filter ok.

Tracy

-Original Message-
From: David Thielen [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 09, 2005 2:02 PM
To: 'Tomcat Users List'
Subject: RE: Desperate: trying to get Tomcat working through IIS

Hi;

I went to Default Web Site, Properties, Home Directory, Configuration,
and
on the mappings tab I added .jsp - C:\Program Files\Apache Software
Foundation\Tomcat 5.5\bin\isapi_redirect.dll It requires the  - I
assume
because of the spaces.

Is this necessary? Any idea what this does?

Thanks - dave


David Thielen
303-499-2544
www.windwardreports.com


-Original Message-
From: Tracy Spratt [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 09, 2005 10:28 AM
To: Tomcat Users List
Subject: RE: Desperate: trying to get Tomcat working through IIS

Also, I think you have to manually add the isapi_redirect.dll to the
Web Extensions In IIS, if you haven't already.  If this is not
necessary, please correct me.

Tracy

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 09, 2005 12:19 PM
To: Tomcat Users List
Subject: RE: Desperate: trying to get Tomcat working through IIS

Hi,

Can you list the registry settings in Apache Software Foundation/Isapi
Redirector ..

Can you check that your website has the ISAPI filter installed with a
green arrow pointed up?

Cheers, Allistair

 -Original Message-
 From: David Thielen [mailto:[EMAIL PROTECTED]
 Sent: 09 September 2005 17:16
 To: 'Tomcat Users List'
 Subject: RE: Desperate: trying to get Tomcat working through IIS
 
 
 First off - THANK YOU. It's amazing how it's so often a dumb 
 little thing.
 
 Second, I'm getting a lot closer. I now get the following in 
 the IIS log:
 16:10:38 127.0.0.1 GET /servlet-examples/index.html 200
 
 The isapi_redirect.log is still empty (0 bytes).
 
 The jakarta virtual directory is set to Execute Permissions: 
 Scripts and
 Executables.
 
 Any ideas?
 
 Thanks - dave
 
 David Thielen
 303-499-2544
 www.windwardreports.com
 
 -Original Message-
 From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
 Sent: Friday, September 09, 2005 1:57 AM
 To: Tomcat Users List
 Subject: RE: Desperate: trying to get Tomcat working through IIS
 
 if your uriworkermap.properties file contains 
 
 /servlet-examples/*=ajp13w
 !/servlet-examples/*.jpeg=ajp13w
 
 then why are you expecting 
 
 http://localhost/jsp-examples/index.html 
 
 to work? For that, you'd need to add
 
 /jsp-examples/*=ajp13w
 
 (and restart IIS)
 
 Allistair.
 
  -Original Message-
  From: David Thielen [mailto:[EMAIL PROTECTED]
  Sent: 09 September 2005 00:50
  To: tomcat-user@jakarta.apache.org
  Subject: Desperate: trying to get Tomcat working through IIS
  
  
  Hi;
  
   
  
  I followed the instructions in
  http://jakarta.apache.org/tomcat/connectors-doc/howto/iis.html
   It references
  for configuring Tomcat with IIS 5 and 6 with a link - but 
  the link is dead
  and a search in the wiki it goes to shows nothing. I rebooted after
  installing before attempting to connect.
  
   
  
  When I go to http://localhost:8080/jsp-examples/index.html - 
  it works. When
  I go to http://localhost/jsp-examples/index.html I get an error 404.
  
   
  
  My IIS log is:
  
  #Software: Microsoft Internet Information Services 5.1
  
  #Version: 1.0
  
  #Date: 2005-09-08 23:37:35
  
  #Fields: time c-ip cs-method cs-uri-stem sc-status 
  
  23:37:35 127.0.0.1 GET /jsp-examples/index.html 404
  
   
  
  My isapi_redirect.log log file is created, but is empty.
  
   
  
  I used the isapi_redirect-1.2.14.exe setup program, then checked the
  registry settings and they all appear to be correct. I 
  followed every step
  in the howto except the ones done by the setup program.
  
   
  
  My uriworkermap.properties is:
  
  /servlet-examples/*=ajp13w
  
  !/servlet-examples/*.jpeg=ajp13w
  
   
  
  My workers.properties.minimal is:
  
  worker.list=ajp13w
  
  worker.ajp13w.type=ajp13
  
  worker.ajp13w.host=localhost
  
  worker.ajp13w.port=8009
  
   
  
  My server.xml includes (only node with ajp in it):
  
  Connector port=8009 
  
 enableLookups=false redirectPort=8443 
  protocol=AJP/1.3
  /
  
   
  
   
  
  Please help - I'm desperate.
  
   
  
  Thanks - dave
  
   
  
   
  
  David Thielen
  
  303-499-2544
  
  www.windwardreports.com http

Final questions: workers.properties

2005-09-09 Thread David Thielen
Hi;

 

First off thanks to all for help - I think I'm just about done. Question:

 

workers.properties.minimal (which works fine) only has:

worker.list=ajp13w

worker.ajp13w.type=ajp13

worker.ajp13w.host=localhost

worker.ajp13w.port=8009

 

While workers.properties (not load balancing) also has:

workers.tomcat_home=/var/tomcat3

workers.java_home=/opt/IBMJava2-13

ps=/

worker.inprocess.* (lots of inprocess ones)

 

Are the above needed for anything? It wasn't clear to me reading the docs
what inprocess was for.

 

??? - thanks - dave

 

 

David Thielen

303-499-2544

www.windwardreports.com http://www.windwardreports.com/ 

 



Final questions: Default pages

2005-09-09 Thread David Thielen
Hi;

 

I have multiple domains on my website (IIS). I would like to do the
following.

 

When a user goes to http://www.windward.net/cart.jsp or
http://www.windwardreports.com/cart.jsp that it then loads the jsp page in
the root of a specific webapp of mine.

 

In other words, all requests for a .jsp (or .faces) page is mapped to the
same servlet regardless of the domain. And that the servlet name is not
needed as part of the url.

 

How can I do this?

 

Thanks - dave

 

 

David Thielen

303-499-2544

www.windwardreports.com http://www.windwardreports.com/ 

 



What's the best way to mix html jsp

2005-09-09 Thread David Thielen
Hi;

 

I have websites which are 95% html and 5% jsp/jsf. Any suggestions on the
best way to mix this? What I have always done to date is put the jsp/jsf
stuff under the Tomcat webapps dir and the rest under the IIS
inetpub/wwwroot dir. It's a little disjointed during development but seems
to work great in production.

 

? - thanks - dave

 

 

David Thielen

303-499-2544

www.windwardreports.com http://www.windwardreports.com/ 

 



RE: Desperate: trying to get Tomcat working through IIS

2005-09-09 Thread David Thielen
Hi;

This is a great idea - but it installs isapi_redir2.dll, not isapi_redir.dll
and isapi_redir2.dll has been deprecated.

Thanks - dave


David Thielen
303-499-2544
www.windwardreports.com


-Original Message-
From: Woodchuck [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 09, 2005 3:19 PM
To: Tomcat Users List
Subject: RE: Desperate: trying to get Tomcat working through IIS

hihi all,

fyi, there is a nice installation program that takes the pain out of
configuring IIS -- Tomcat for you, and it can be found here:

http://www.shiftomat.de/opensource/

we use this in production and it works great.  have tested it on IIS 5
-- Tomcat 4.1.24 and also IIS 6 (W2k3) -- Tomcat 5.5.9

just a few clicks and you're done.  no manual editing of any files at
all.


woodchuck


--- Tracy Spratt [EMAIL PROTECTED] wrote:

 Looking a little further, I suspect the jsp extension configuration
 in
 IIS is not necessary, because the uriworkermap.properties context
 specification handles that.
 
 Specifically, in the line 
   /servlet-examples/*=ajp13w
 I think the asterisk allows any extension.
 
 I read in the IIS HowTo that if you want to restrict Tomcat to
 serving
 specific file types, say jsp only, you can do this:
   /servlet-examples/*.jsp=ajp13w
 
 From that I infer that * alone permits any extension.
 
 Tracy
 
 -Original Message-
 From: Tracy Spratt [mailto:[EMAIL PROTECTED] 
 Sent: Friday, September 09, 2005 2:33 PM
 To: Tomcat Users List
 Subject: RE: Desperate: trying to get Tomcat working through IIS
 
 Dave, I missed that you were using IIS 5 when I suggested the Web
 Extensions step.  That is new with win 2003 and IIS 6 I believe.
 
 Since we are figuring this out as we go along, why don't your remove
 that jsp extension specification and see if you still work.  I did
 NOT
 add it and I can serve jsp pages through the isapi filter ok.
 
 Tracy
 
 -Original Message-
 From: David Thielen [mailto:[EMAIL PROTECTED] 
 Sent: Friday, September 09, 2005 2:02 PM
 To: 'Tomcat Users List'
 Subject: RE: Desperate: trying to get Tomcat working through IIS
 
 Hi;
 
 I went to Default Web Site, Properties, Home Directory,
 Configuration,
 and
 on the mappings tab I added .jsp - C:\Program Files\Apache Software
 Foundation\Tomcat 5.5\bin\isapi_redirect.dll It requires the  - I
 assume
 because of the spaces.
 
 Is this necessary? Any idea what this does?
 
 Thanks - dave
 
 
 David Thielen
 303-499-2544
 www.windwardreports.com
 
 
 -Original Message-
 From: Tracy Spratt [mailto:[EMAIL PROTECTED] 
 Sent: Friday, September 09, 2005 10:28 AM
 To: Tomcat Users List
 Subject: RE: Desperate: trying to get Tomcat working through IIS
 
 Also, I think you have to manually add the isapi_redirect.dll to the
 Web Extensions In IIS, if you haven't already.  If this is not
 necessary, please correct me.
 
 Tracy
 
 -Original Message-
 From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
 Sent: Friday, September 09, 2005 12:19 PM
 To: Tomcat Users List
 Subject: RE: Desperate: trying to get Tomcat working through IIS
 
 Hi,
 
 Can you list the registry settings in Apache Software
 Foundation/Isapi
 Redirector ..
 
 Can you check that your website has the ISAPI filter installed with a
 green arrow pointed up?
 
 Cheers, Allistair
 
  -Original Message-
  From: David Thielen [mailto:[EMAIL PROTECTED]
  Sent: 09 September 2005 17:16
  To: 'Tomcat Users List'
  Subject: RE: Desperate: trying to get Tomcat working through IIS
  
  
  First off - THANK YOU. It's amazing how it's so often a dumb 
  little thing.
  
  Second, I'm getting a lot closer. I now get the following in 
  the IIS log:
  16:10:38 127.0.0.1 GET /servlet-examples/index.html 200
  
  The isapi_redirect.log is still empty (0 bytes).
  
  The jakarta virtual directory is set to Execute Permissions: 
  Scripts and
  Executables.
  
  Any ideas?
  
  Thanks - dave
  
  David Thielen
  303-499-2544
  www.windwardreports.com
  
  -Original Message-
  From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
  Sent: Friday, September 09, 2005 1:57 AM
  To: Tomcat Users List
  Subject: RE: Desperate: trying to get Tomcat working through IIS
  
  if your uriworkermap.properties file contains 
  
  /servlet-examples/*=ajp13w
  !/servlet-examples/*.jpeg=ajp13w
  
  then why are you expecting 
  
  http://localhost/jsp-examples/index.html 
  
  to work? For that, you'd need to add
  
  /jsp-examples/*=ajp13w
  
  (and restart IIS)
  
  Allistair.
  
   -Original Message-
   From: David Thielen [mailto:[EMAIL PROTECTED]
   Sent: 09 September 2005 00:50
   To: tomcat-user@jakarta.apache.org
   Subject: Desperate: trying to get Tomcat working through IIS
   
   
   Hi;
   

   
   I followed the instructions in
   http://jakarta.apache.org/tomcat/connectors-doc/howto/iis.html
It references
   for configuring Tomcat with IIS 5 and 6 with a link - but 
   the link is dead
   and a search in the wiki it goes

Desperate: trying to get Tomcat working through IIS

2005-09-08 Thread David Thielen
Hi;

 

I followed the instructions in
http://jakarta.apache.org/tomcat/connectors-doc/howto/iis.html It references
for configuring Tomcat with IIS 5 and 6 with a link - but the link is dead
and a search in the wiki it goes to shows nothing. I rebooted after
installing before attempting to connect.

 

When I go to http://localhost:8080/jsp-examples/index.html - it works. When
I go to http://localhost/jsp-examples/index.html I get an error 404.

 

My IIS log is:

#Software: Microsoft Internet Information Services 5.1

#Version: 1.0

#Date: 2005-09-08 23:37:35

#Fields: time c-ip cs-method cs-uri-stem sc-status 

23:37:35 127.0.0.1 GET /jsp-examples/index.html 404

 

My isapi_redirect.log log file is created, but is empty.

 

I used the isapi_redirect-1.2.14.exe setup program, then checked the
registry settings and they all appear to be correct. I followed every step
in the howto except the ones done by the setup program.

 

My uriworkermap.properties is:

/servlet-examples/*=ajp13w

!/servlet-examples/*.jpeg=ajp13w

 

My workers.properties.minimal is:

worker.list=ajp13w

worker.ajp13w.type=ajp13

worker.ajp13w.host=localhost

worker.ajp13w.port=8009

 

My server.xml includes (only node with ajp in it):

Connector port=8009 

   enableLookups=false redirectPort=8443 protocol=AJP/1.3
/

 

 

Please help - I'm desperate.

 

Thanks - dave

 

 

David Thielen

303-499-2544

www.windwardreports.com http://www.windwardreports.com/ 

 



isapi_redirector or isapi_redirector2?

2005-09-08 Thread David Thielen
Hi;

 

Is isapi_redirector2 that latest  greatest? On
http://jakarta.apache.org/site/downloads/downloads_tomcat-connectors.cgi
http://jakarta.apache.org/site/downloads/downloads_tomcat-connectors.cgi%20
JK2  JK2 is listed as deprecated.

 

I am using IIS 5.1 for development (XP) and 6.0 for production (Windows
2003).

 

Thanks - dave

 

 

David Thielen

303-499-2544

www.windwardreports.com http://www.windwardreports.com/ 

 



Problem with error.jsp (via JSF)

2005-09-07 Thread David Thielen
Hi;

 

In my web.xml I have:

error-page

exception-typejava.lang.Throwable/exception-type

location/error.jsp/location

/error-page

 

Most of my jsp pages are in a pages subdirectory. So when an excpetion is
thrown in say /pages/order.faces (order.jsp), I am sort-of in that
subdirectory.

 

The error.jsp page displays fine. But it uses a base.css page for it's
styles. And if that file is not in /pages, then it doesn't find it and does
not use the styles.

 

I can place the css file in both the root and pages subdirectory. But I
dislike having the same file in 2 locations as it can then get out of sync.

 

Any suggestions?

 

Thanks - dave

 

 

 

David Thielen

303-499-2544

www.windwardreports.com http://www.windwardreports.com/ 

 



Connectiong tomcat to IIS - no luck and conflicting info

2005-09-06 Thread David Thielen
Hi;

 

I am trying to connect Tomcat 5.5 to IIS 5.1 and having zero luck.

 

Here is what I did:

1.  Went to
http://apache.towardex.com/jakarta/tomcat-connectors/jk/binaries/win32/jk-1.
2.14
2.  Downloaded  ran isapi_redirect-1.2.14.exe
3.  Added isapi_redirect as an ISAPI filter to the default website.

 

When I try to bring up the page http://localhost/jkstatus I get the
following in my IIS log:

20:19:47 127.0.0.1 GET /jkstatus 404

 

So it's not even calling isapi_redirect.dll. The installer did create the
jakarta virtual directory and some registry entries. (I believe that even if
all of my tomcat settings are wrong - it should still be calling
isapi_redirect.)

 

I'm stuck now. The book Pro Jakarta Tomcat 5 discusses setting this up using
isapi_redirect2.dll and using registry entries that have a 2.0 node in them.
But I can't find any metion of this anywhere else.

 

The isapi_redirect installer doesn't have any documentation.

 

On the jakarta website I can't find any 5.x specific install instructions.

 

I've done this successfully for Tomcat 4.x - see
http://dave.thielen.com/articles/Configuring%20Tomcat%20to%20work%20with%20I
IS.doc but these instructions don't match the contents of the config files
for 5.5.

 

So what should I try next?

 

Thanks - dave

 



Where can I get isapi.dll?

2005-09-03 Thread David Thielen
Hi;

 

I downloaded and installed 5.5 for windows on my system. Tomcat runs fine
but I can't find isapi_redirector.dll anywhere in my install or on the
jakarta site? Does anyone know where I can download it? (the 5.5 version.)

 

Also, are there complete instructions anywhere for workers.properties? (and
while uriworkermap.properties seems simple enough, if there are docs for
that too can someone give me a url?)

 

Thanks - dave

 

 

David Thielen

303-499-2544

www.windwardreports.com http://www.windwardreports.com/ 

 



RE: Where can I get isapi.dll?

2005-09-03 Thread David Thielen
Tomcat itself has this - but all I can find is the source, not the compiled
dll.

Also the popularshareware is for 4.0 from the looks of it.

Thanks - dave


David Thielen
303-499-2544
www.windwardreports.com


-Original Message-
From: jmail [mailto:[EMAIL PROTECTED] 
Sent: Saturday, September 03, 2005 3:36 PM
To: Tomcat Users List
Subject: Re: Where can I get isapi.dll?

h

I think you were thinking about this

http://www.popularshareware.com/JspISAPI-download-11630.html

jmail

 Wiadomość Oryginalna 
Od: David Thielen [EMAIL PROTECTED]
Do: tomcat-user@jakarta.apache.org
Data: Sat, 3 Sep 2005 15:29:11 -0600
Temat: Where can I get isapi.dll?

 Hi;
 
  
 
 I downloaded and installed 5.5 for windows on my system. Tomcat runs fine
 but I can't find isapi_redirector.dll anywhere in my install or on the
 jakarta site? Does anyone know where I can download it? (the 5.5 version.)
 
  
 
 Also, are there complete instructions anywhere for workers.properties?
(and
 while uriworkermap.properties seems simple enough, if there are docs for
 that too can someone give me a url?)
 
  
 
 Thanks - dave
 
  
 
  
 
 David Thielen
 
 303-499-2544
 
 www.windwardreports.com http://www.windwardreports.com/ 
 
  
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: isapi_redirect dll location

2005-09-03 Thread David Thielen
First off - thank you.

Second there is a isapi_redirect-1.2.14.exe file also - does this do a
complete install of the dll?

Thanks - dave


David Thielen
303-499-2544
www.windwardreports.com

-Original Message-
From: Steve Ochani [mailto:[EMAIL PROTECTED] 
Sent: Saturday, September 03, 2005 4:12 PM
To: tomcat-user@jakarta.apache.org
Subject: isapi_redirect dll location

To whomever was looking for isapi_redirect dll:

As much as I hate to promote IIS:

isapi_redirect dll can be found here 

http://apache.towardex.com/jakarta/tomcat-connectors/jk/binaries/win32/jk-1.
2.14




«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»
Education is what remains after one has forgotten everything he
learned in school. -Albert Einstein 

Steve O.
http://www.steveo.us

New pics: B17G and B24
http://www.steveo.us/B17-B24/

B17G WWII Bomber Yankee Lady Flight I took
http://www.steveo.us/b17ride

SUNY NCC Physical Sciences Dept. Network Admin
SUNY NCC MATH/COMPUTER Unix Admin
http://www.matcmp.ncc.edu


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



sharing pooled tomcat connections with hibernate

2005-09-02 Thread David Thielen
Hi;

 

If I am using hibernate for most of my jdbc access but need to perform some
directly (long story), is there anything special I need to do? All of this
is connecting to the same database using the same user/pass. Hibernate
connects via Tomcat's jndi.

 

And should I use the Tomcat's jndi method to get the pooled connection?

 

??? - thanks - dave

 

 

David Thielen

303-499-2544

www.windwardreports.com http://www.windwardreports.com/ 

 



sort-of off topic: How to do a 3rd party cookie

2005-08-19 Thread David Thielen
Hi;

 

I have 2 domains. I need to get a cookie from domain A to domain B.

 

Is the best way to do this to have a img src=www.domainB.com/servlet
http://www.domainb.com/servletcookie=value cookie=value/? And if so:

1.  Anyone have some sample servlet code for this so I don't have to
re-invent the wheel?
2.  Is there a way to set the url using javascript (the value of the
cookie depends on an incoming param) so I can keep my pages as pure html?

 

Thanks - dave

 

 

 

David Thielen

303-499-2544

www.windwardreports.com http://www.windwardreports.com/ 

 



sort-of offtopic: gif keeps running when refresh/forward

2005-08-19 Thread David Thielen
Hi;

 

When I go to process a credit card I first forward to a page that has an
animated gif on it. The page then does a refresh to the page that processes
the card  displays the results.

 

I want the enimated gif to keep running while the request is pending for the
new page - but as soon as the refresh occurs, the animation stops. How can I
keep it going?

 

Thanks - dave

 

 

David Thielen

303-499-2544

www.windwardreports.com http://www.windwardreports.com/ 

 



RE: Has anyone used Tomcat 5.5.9 connecting to MS SQL Server using JNDI?

2005-08-11 Thread David Thielen
And the other thing is, the link I gave you is for a setup that works - I
know so because I am using it right now and I figured it out last week. So
while you may not have it running on your system, that is not due to lack of
how to do it being documented.

- dave


David Thielen
303-499-2544
www.windwardreports.com


-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 11, 2005 7:40 AM
To: Tomcat Users List
Subject: RE: Has anyone used Tomcat 5.5.9 connecting to MS SQL Server using
JNDI?

 From: Wylie, Ian [mailto:[EMAIL PROTECTED] 
 Subject: RE: Has anyone used Tomcat 5.5.9 connecting to MS 
 SQL Server using JNDI?
 
 In my opinion the people who develop Tomcat should provide an 
 example of JNDI for ALL major databases.

Question:  How much have YOU contributed to Tomcat?  The people that
work on it are all volunteers, donating their time, energy, and skills
to the project.  It seems a bit presumptious for any of us
non-contributors to tell volunteers what they should be doing.  Asking
would be appropriate, but in this particular instance, the number of
database variations extant makes that extremely difficult.  Once you do
get the configuration working, submitting a doc update with your
findings would certainly be appreciated.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: OT: JSTL and JSF book recommendations

2005-08-11 Thread David Thielen
JSF In Action and JSTL in Action are both very good.

- dave

David Thielen
303-499-2544
www.windwardreports.com


-Original Message-
From: Joe Plautz [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 11, 2005 10:31 AM
To: Tomcat Users List
Subject: Re: OT: JSTL and JSF book recommendations

Starting out, I suggest the Core Servlets and JavaServer Pages by Marty 
Hall to gain an understanding of the Java EE web technologies. It's 
about as good of a book as I've seen on any technical subject matter, 
particularly for a beginner. I still reference it after several years.

For JSF I have both the O'Reilly book and the Core JSF books. I wouldn't 
say one is particularly better than the other, but both need a working 
knowledge of underlying technologies to make total sense. I have the 
first editions of them both though, so they are a bit behind the game on 
the latest and I believe second editions on each are available. I also 
suggest going here

http://forum.java.sun.com/forum.jspa?forumID=427

it's the official JSF forum, you'll get lots of information from it.

David Boyer wrote:
 We're using Tomcat 5.5.9, and I'm looking for good books (or other
resources) for learning JSTL and JSF. These will be for a person with a
novice-level understanding of Java and Tomcat, so I'd like something that
will take him from beginner to intermediate (or better). He'll be learning
Java at the same time.
  
 Any suggestions you have are appreciated.
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Has anyone used Tomcat 5.5.9 connecting to MS SQL Server using JNDI?

2005-08-10 Thread David Thielen
http://thielen.typepad.com/programming/2005/07/hibernate_on_to.html


David Thielen
303-499-2544
www.windwardreports.com


-Original Message-
From: Wylie, Ian [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 10, 2005 4:37 AM
To: tomcat-user@jakarta.apache.org
Subject: Has anyone used Tomcat 5.5.9 connecting to MS SQL Server using
JNDI?

Hi All,
 
I have just installed Tomcat 5.5.9 on our Dev Server.  I managed with a bit
of work and a few searches on the web to get Tomcat 4.1.x working with MS
SQL Server using JNDI and database pooled connections to work.  This has
been working well for some time now.  However, there is quite a few
advantages for upgrading the current system to Tomcat 5.5, not least of
which, is improvements to the list and functionality of tools that aid with
Java debugging!
 
I cannot get Tomcat 5.5.9 working with JNDI and MS SQL Server at the moment.
 
I have already read all the various official docs on JNDI how-to and
searched the web but even after all that and changing various things that
others have recommended, I cannot get the JNDI to work.
 
Has anyone out there successfully using JNDI with Tomcat and MS SQL Server?
 
If so please can you put another professional out of there misery!
 
Many thanks,

Best Regards,

  _  

 http://www.pfizer.co.uk/Ian Wylie - [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] 
  Business Intelligence Architect
  Business Information  Technology (BIT)
  Pfizer Global Pharmaceuticals (PGP)
  Direct: +44 (0)1737 330422
  Address: Pfizer Ltd, Walton Oaks (IPC 2G), Dorking Road, Tadworth, Surrey,
KT20 7NS.

LEGAL NOTICE 
Unless expressly stated otherwise, this message is confidential and may be
privileged. It is intended for the addressee(s) only. Access to this e-mail
by anyone else is unauthorised. If you are not an addressee, any disclosure
or copying of the contents of this e-mail or any action taken (or not taken)
in reliance on it is unauthorised and may be unlawful. If you are not an
addressee, please inform the sender immediately. 

Pfizer Limited is registered in England under No. 526209 with its registered
office at Ramsgate Road, Sandwich, Kent CT13 9NJ

  _  

 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: error-page not working

2005-08-09 Thread David Thielen
That's not it - the file is over 2K in size.

??? - thanks - dave

David Thielen
303-499-2544
www.windwardreports.com


-Original Message-
From: Marius Hanganu [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 09, 2005 1:47 AM
To: Tomcat Users List
Subject: RE: error-page not working

It may be because of the size of your errorpage.jsp. According to

http://www.404-error-page.com/404-error-page-too-short-problem-microsoft
-ie.shtml 

500 errors should have pages with size greater than 512 bytes.

Marius

-Original Message-
From: David Thielen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 09, 2005 7:29 AM
To: tomcat-user@jakarta.apache.org
Subject: error-page not working

Hi;

 

I am using JSF - although that should not make a difference.

 

In web.xml I have:

error-page

exception-typejava.lang.Throwable/exception-type

location/errorpage.jsp/location

/error-page

 

And in my event handler I have:

throw new NullPointerException(hi there);

 

But when it happens, I get the following in IE:



The page cannot be displayed

 


There is a problem with the page you are trying to reach and it cannot
be displayed.


  _  

Please try the following:

*   Open the  http://localhost:8080 localhost:8080 home page, and
then
look for links to the information you want. 
*   Click the Refresh button, or try again later. 
*   Click  javascript:doSearch() Search to look for information on
the
Internet. 
*   You can also see a list of related sites. 

 


HTTP 500 - Internal server error
Internet Explorer 


 

Any ideas?

 

Thanks - dave

 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Missing catalina.bat

2005-08-09 Thread David Thielen
Hi;

I hit the same problem. So I then downloaded the .zip install also and
pulled the bat files from the .zip install and copied them to the bin
directory.

- dave


David Thielen
303-499-2544
www.windwardreports.com


-Original Message-
From: Kees Broenink [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 09, 2005 7:39 AM
To: 'Tomcat Users List'
Subject: Missing catalina.bat

Hi,

I just downloaded and installed Tomcat 5.5.9. When i wanted to configure
JPDA I saw that catalina.bat is missing in the bin directory. 

So now I am starting Tomcat by running the tomcat5.exe.

I scanned all config files, registry settings, release notes,
documentation, mailing lists and did not find a answer to my question:

- how to configure JPDA (and other JVM settings)

The most appropriate way I could image was the registry setting:

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun
2.0\Tomcat5\Parameters\Java]

adding the following to the Options key:

-Xdebug -Xrunjdwp:transport=dt_socket,address=5678,server=y,suspend=n

But this does not work.

Changing something else like -Dcatalina.home will influence the startup!

I have seen somebody else also asking this question to the mailing list.
But I did not see any answers. So please if somebody knows tell us and
let's put this info in the FAQ.

Thanks,

Kees


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Using hibernate on Tomcat 5.5

2005-08-08 Thread David Thielen
Hi;

This is really a hibernate issue but as some people on this list may hit
this problem due to the hibernate docs, I figured I should post here too.

Tomcat 5.5 has changed how it does the JNDI settings for a JDBC setup. I am
still working through some minor details making sure I have them exactly
right. But the following works.

First, do not place anything in server.xml. Everything you do will go in
your webapp directory. My webapp is named store.

Note: I do not create a war when developing so this is in an exploded
directory.

META-INF/context.xml(complete):
Context path=/store docBase=store
debug=5 reloadable=true crossContext=true
  Resource name=jdbc/storeDB auth=Container type=javax.sql.DataSource
   username=sa password=mmouse
driverClassName=com.microsoft.jdbc.sqlserver.SQLServerDriver
 
url=jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=StoreTest;Select
Method=cursor
   maxActive=8 maxIdle=4/
/Context

web.xml (just the resource part):
web-app xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
version=2.4

...

resource-ref
   descriptionConnection to my DB./description
   res-ref-namejdbc/storeDB/res-ref-name
   res-typejavax.sql.DataSource /res-type
   res-authContainer/res-auth
/resource-ref

...

/web-app

hibernate.cfg.xml (just DB part):
session-factory
  property name=show_sqlfalse/property
  property name=dialectorg.hibernate.dialect.SQLServerDialect/property

  property
name=connection.datasourcejava:/comp/env/jdbc/storeDB/property

  ...

/session-factory

/hibernate-configuration

AND - this is important - this will not work when run from IntelliJ! It only
works if you start Tomcat and use it normally. 

Running under IntelliJ

Ok, here's the IntelliJ part you have to do. Lets assume your webapp is
named store.

1) copy webapps/store/META-INF/context.xml to %Tomcat
5.5%\conf\Catalina\localhost/store.xml - note the filename change.

2) In the run/debug configuration, deployment tab, set the application
context to /store (the default is /).

3) In the server tab the startup page is now
http://localhost:8080/store/index.html (the store directory is added).

And then - - it works!!!

thanks - dave

 



error-page not working

2005-08-08 Thread David Thielen
Hi;

 

I am using JSF - although that should not make a difference.

 

In web.xml I have:

error-page

exception-typejava.lang.Throwable/exception-type

location/errorpage.jsp/location

/error-page

 

And in my event handler I have:

throw new NullPointerException(hi there);

 

But when it happens, I get the following in IE:



The page cannot be displayed

 


There is a problem with the page you are trying to reach and it cannot be
displayed.


  _  

Please try the following:

*   Open the  http://localhost:8080 localhost:8080 home page, and then
look for links to the information you want. 
*   Click the Refresh button, or try again later. 
*   Click  javascript:doSearch() Search to look for information on the
Internet. 
*   You can also see a list of related sites. 

 


HTTP 500 - Internal server error 
Internet Explorer 


 

Any ideas?

 

Thanks - dave

 



Please Help - HttpSessionBindingListener.valueUnbound() not called

2003-03-28 Thread David Thielen

Hi;

I have an object that implements HttpSessionBindingListener. It calls
valueBound fine. But it never calls valueUnbound. Not when it times out and
not when Tomcat is closed. I am running 4.1.18.

Any ideas?

thanks - dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Why does Tomcat use xerces under java 1.4 instead of the internal jvm classes?

2003-03-27 Thread David Thielen

thanks - dave

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



HttpSessionBindingListener.valueUnbound() not called

2003-03-27 Thread David Thielen
Hi;

I have an object that implements HttpSessionBindingListener. It calls valueBound fine. 
But it never calls valueUnbound. Not when it times out and not when Tomcat is closed. 
I am running 4.1.18.

Any ideas?

thanks - dave

Bug? - HttpSessionBindingListener.valueUnbound() not called

2003-03-27 Thread David Thielen
Hi;

I have an object that implements HttpSessionBindingListener. It calls
valueBound fine. But it never calls valueUnbound. Not when it times out and
not when Tomcat is closed. I am running 4.1.18.

Any ideas?

thanks - dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: debug statements

2003-03-26 Thread David Thielen

Hi;

Two questions:

1) If I set
Server port=8005 shutdown=SHUTDOWN debug=4

Logger className=org.apache.catalina.logger.FileLogger verbosity=4
directory=logs  prefix=localhost_log. suffix=.txt timestamp=true/

I get no extra messages. But if I set:
Server port=8005 shutdown=SHUTDOWN debug=100

I do get more messages. This is not documented as far as I can tell so
what's going on here?

2) Even with the debug=100, it doesn't tell me why a given url doesn't
load anything. Is there any way to get how it's looking at a uri?

thanks - dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: debug statements

2003-03-26 Thread David Thielen
I tried that - it tells the least.

thanks - dave


- Original Message - 
From: Jeremy Whitlock [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 10:56 AM
Subject: RE: debug statements


 David,
 Try debug=0.  That should tell you EVERYTHING!!!  Hope this
 helps, Jeremy
 
 -Original Message-
 From: David Thielen [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, March 26, 2003 10:50 AM
 To: Tomcat Users
 Subject: Re: debug statements
 
 
 Hi;
 
 Two questions:
 
 1) If I set
 Server port=8005 shutdown=SHUTDOWN debug=4
 
 Logger className=org.apache.catalina.logger.FileLogger
 verbosity=4
 directory=logs  prefix=localhost_log. suffix=.txt
 timestamp=true/
 
 I get no extra messages. But if I set:
 Server port=8005 shutdown=SHUTDOWN debug=100
 
 I do get more messages. This is not documented as far as I can tell so
 what's going on here?
 
 2) Even with the debug=100, it doesn't tell me why a given url doesn't
 load anything. Is there any way to get how it's looking at a uri?
 
 thanks - dave
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



web.xml - context-param not in order

2003-03-26 Thread David Thielen
Hi;

When I retrieve the param-name/param-value pairs from web.xml via:
Enumeration en = pageContext.getServletContext().getInitParameterNames();

It does not return them in the order they appear in web.xml. Is random order just part 
of the API definition?

thanks - dave

debug statements

2003-03-25 Thread David Thielen

Hi;

Two questions:

1) If I set
Server port=8005 shutdown=SHUTDOWN debug=4

Logger className=org.apache.catalina.logger.FileLogger verbosity=4
directory=logs  prefix=localhost_log. suffix=.txt timestamp=true/

I get no extra messages. But if I set:
Server port=8005 shutdown=SHUTDOWN debug=100

I do get more messages. This is not documented as far as I can tell so
what's going on here?

2) Even with the debug=100, it doesn't tell me why a given url doesn't
load anything. Is there any way to get how it's looking at a uri?

thanks - dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Why does Tomcat use xerces under java 1.4 instead of the internal jvm classes?

2003-03-25 Thread David Thielen


thanks - dave

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JSP won't work unless have package in taglib .java file

2003-03-25 Thread David Thielen


Hi;

If I have a tld object (ie TemplateDesc.java) with no project and place it
in WEB-INF/classes - it won't work. But if I give it a package name and
place it in WEB-INF/classes/package - then it works.

The problem seems to be that with no package it generates the code:
TemplateDesc _jspx_th_tl_TP_0 = (TemplateDesc)
_jspx_tagPool_tl_TP.get(com.windwardreports.TemplateDesc.class);

but with the package it generates:
com.windwardreports.TemplateDesc _jspx_th_tl_TP_0 =
(com.windwardreports.TemplateDesc)
_jspx_tagPool_tl_TP.get(com.windwardreports.TemplateDesc.class);

which makes sense. But why can it find it as part of a package but not with
no package?

thanks - dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Can't get logger/debug messages

2003-03-22 Thread David Thielen
Hi;

In server.xml I changed logging to

Server port=8005 shutdown=SHUTDOWN debug=4

Logger className=org.apache.catalina.logger.FileLogger verbosity=4
  directory=logs  prefix=localhost_log. suffix=.txt
timestamp=true/

Yet I get no additional messages. Any ideas?

Also, I am assuming with a log level of 4, when I use my browser to get a
servlet I think should show up - and instead I get an error, it will tell me
why in the log.

thanks - dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to access a servlet without servlet-mapping

2003-03-22 Thread David Thielen
Hi;

How do I access a servlet without using servlet-mapping? I know servlet-mapping 
makes sense but I want to understand the other URI and everything I try doesn't make 
sense:

servlet:
webapp/WEB-INF/classes/ReportSales.jave

web.xml:
servlet
servlet-nameSalesReport/servlet-name
servlet-classReportSales/servlet-class
/servlet

The following all failed:
http://localhost:8080/WindwardReportsServlet/servlet/ReportSales
http://localhost:8080/WindwardReportsServlet/servlet/SalesReport
http://localhost:8080/WindwardReportsServlet/ReportSales
http://localhost:8080/WindwardReportsServlet/SalesReport

any ideas?

thanks - dave

iterative taglib weirdness

2003-03-22 Thread David Thielen
Hi;

I am writing an iterative taglib where I have a variable assigned to id that can then 
be accessed as %=id% inside the taglib loop. The thing is, the first time through 
the loop id is null. The second+ times it is the second+ values.

Any ideas?

thanks - dave


My code is:

List titles;
ListIterator li;

public int doStartTag() {
  
readStringsIntoTitles();
  
if (titles.size() == 0)
return SKIP_BODY;

li = titles.listIterator(); 
pageContext.setAttribute( id, li.next() );
return EVAL_BODY_INCLUDE;
}
 
 public int doAfterBody() throws JspException {

// handle if have more
if (li.hasNext()) {
pageContext.setAttribute( id, li.next() );
return EVAL_BODY_AGAIN;
}

// all done
return SKIP_BODY;
}


JSP won't work unless have package in taglib .java file

2003-03-22 Thread David Thielen
Hi;

If I have a tld object (ie TemplateDesc.java) with no project and place it in 
WEB-INF/classes - it won't work. But if I give it a package name and place it in 
WEB-INF/classes/package - then it works.

The problem seems to be that with no package it generates the code:
TemplateDesc _jspx_th_tl_TP_0 = (TemplateDesc) 
_jspx_tagPool_tl_TP.get(com.windwardreports.TemplateDesc.class);

but with the package it generates:
com.windwardreports.TemplateDesc _jspx_th_tl_TP_0 = 
(com.windwardreports.TemplateDesc) 
_jspx_tagPool_tl_TP.get(com.windwardreports.TemplateDesc.class);

which makes sense. But why can it find it as part of a package but not with no package?

thanks - dave

Why does Tomcat use xerces under java 1.4 instead of the internal jvm classes?

2003-03-22 Thread David Thielen
thanks - dave

servlet mapping

2003-03-22 Thread David Thielen
How do I access a servlet without using servlet-mapping? I know servlet-mapping 
makes sense but I want to understand the other URI and everything I try doesn't make 
work:

servlet:
webapp/WEB-INF/classes/ReportSales.jave

web.xml:
servlet
servlet-nameSalesReport/servlet-name
servlet-classReportSales/servlet-class

servlet-mapping
servlet-nameSalesReport/servlet-name
url-pattern/report/url-pattern
/servlet-mapping

/servlet

The following all failed:
http://localhost:8080/WindwardReportsServlet/servlet/ReportSales
http://localhost:8080/WindwardReportsServlet/servlet/SalesReport
http://localhost:8080/WindwardReportsServlet/ReportSales
http://localhost:8080/WindwardReportsServlet/SalesReport

This does work:
http://localhost:8080/WindwardReportsServlet/report

??? - thanks - dave

debug statements

2003-03-22 Thread David Thielen
Hi;

Two questions:

1) If I set
Server port=8005 shutdown=SHUTDOWN debug=4

Logger className=org.apache.catalina.logger.FileLogger verbosity=4 
directory=logs  prefix=localhost_log. suffix=.txt timestamp=true/

I get no extra messages. But if I set:
Server port=8005 shutdown=SHUTDOWN debug=100

I do get more messages. This is not documented as far as I can tell so what's going on 
here?

2) Even with the debug=100, it doesn't tell me why a given url doesn't load 
anything. Is there any way to get how it's looking at a uri?

thanks - dave


Very simple servlet - won't show up

2003-03-20 Thread David Thielen
Hi;

I am trying to get a very simple servlet to display. This is my web.xml
file:

?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application
2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd;

web-app
display-nameWindward Utilities/display-name
servlet
servlet-namehello/servlet-name
servlet-classHelloWorldExample/servlet-class
/servlet
/web-app

My directory is:
C:\Program Files\Apache Group\Tomcat 4.1\webapps\utils\WEB-INF\web.xml
C:\Program Files\Apache Group\Tomcat
4.1\webapps\utils\WEB-INF\classes\HelloWorldExample.*
C:\Program Files\Apache Group\Tomcat
4.1\webapps\utils\WEB-INF\classes\LocalStrings*.properties

When I put in the url http://localhost:8080/servlet/hello

I get:

HTTP Status 404 - /servlet/hello




type Status report

message /servlet/hello

description The requested resource (/servlet/hello) is not available.





Apache Tomcat/4.1.18
any ideas?

thanks - dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Can't get logger/debug messages

2003-03-20 Thread David Thielen
Hi;

In server.xml I changed logging to

Server port=8005 shutdown=SHUTDOWN debug=4

Logger className=org.apache.catalina.logger.FileLogger verbosity=4
 directory=logs  prefix=localhost_log. suffix=.txt
timestamp=true/

Yet I get no additional messages. Any ideas?

Also, I am assuming with a log level of 4, when I use my browser to get a
servlet I think should show up - and instead I get an error, it will
tell me why in the log.

thanks - dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Can't get more logging messages

2003-03-19 Thread David Thielen
Hi;

In server.xml I changed logging to

Logger className=org.apache.catalina.logger.FileLogger
verbosity=4
 directory=logs  prefix=localhost_log. suffix=.txt
 timestamp=true/

Yet I get no additional messages. Any ideas?

Also, I am assuming with a log level of 4, when I use my browser to get a
servlet I think should show up - and instead I get an error, it will tell me
why in the log.

thanks - dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Simple servlet won't display

2003-03-19 Thread David Thielen
Hi;

I am trying to get a very simple servlet to display (the example ones work fine). This 
is my web.xml
file:

?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application
2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd;

web-app
display-nameWindward Utilities/display-name
servlet
servlet-namehello/servlet-name
servlet-classHelloWorldExample/servlet-class
/servlet
/web-app

My directory is:
C:\Program Files\Apache Group\Tomcat 4.1\webapps\utils\WEB-INF\web.xml
C:\Program Files\Apache Group\Tomcat
4.1\webapps\utils\WEB-INF\classes\HelloWorldExample.*
C:\Program Files\Apache Group\Tomcat
4.1\webapps\utils\WEB-INF\classes\LocalStrings*.properties

When I put in the url http://localhost:8080/servlet/hello

I get:

HTTP Status 404 - /servlet/hello




type Status report

message /servlet/hello

description The requested resource (/servlet/hello) is not available.





Apache Tomcat/4.1.18
any ideas?

thanks - dave


Re: Simple servlet won't display

2003-03-19 Thread David Thielen
Hi;

First off, thank you - that (servlet-mapping) got it working.

So why does this book I'm reading show it working without this? I was trying
to start with the most basic configuration and work my way up to a war file
so I understand each part.

thanks - dave


- Original Message -
From: p niemandt [EMAIL PROTECTED]
To: Tomcat Users [EMAIL PROTECTED]
Sent: Wednesday, March 19, 2003 6:31 PM
Subject: Re: Simple servlet won't display


 aah: Where to start ;-)

 {list users feel free to correct ...

 1. server.xml
 You need to configure your web application in the server xml. This is in
 an element Context / which defines where your application resides, and
 optionally any resources your web app uses.

 2. web.xml
 You need to map your web application to it's implementation. It's not
 enough to just state your web descriptor {Like your post shows}, you
 will also need something like

 !-- Map requests to servlet --
 servlet-mapping
 servlet-nameServletName/servlet-name
 url-pattern/*/url-pattern
 /servlet-mapping

 after ALL the servlet / definitions.

 3. The implementation: You will need to compile your servlet and place
 the implementation classes under your web app directory ... {which it
 seems you did correctly }

 something like
 $CATALINA_HOME/webapps/yourwebapp/WEB-INF/classes


 This all said, there are a lot of different ways of doing the above,
 packaging everything in a WAR file comes to mind.

 You would probably need to do quite a bit of reading up on it first,
 it's not the easiest of things to come to grips with: The learning curve
 is quite steep, but well worth it.

 Hope this helps somewhat, good luck!
 Paul



 On Thu, 2003-03-20 at 01:07, David Thielen wrote:
  Hi;
 
  I am trying to get a very simple servlet to display (the example ones
work fine). This is my web.xml
  file:
 
  ?xml version=1.0 encoding=ISO-8859-1?
  !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application
  2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd;
 
  web-app
  display-nameWindward Utilities/display-name
  servlet
  servlet-namehello/servlet-name
  servlet-classHelloWorldExample/servlet-class
  /servlet
  /web-app
 
  My directory is:
  C:\Program Files\Apache Group\Tomcat 4.1\webapps\utils\WEB-INF\web.xml
  C:\Program Files\Apache Group\Tomcat
  4.1\webapps\utils\WEB-INF\classes\HelloWorldExample.*
  C:\Program Files\Apache Group\Tomcat
  4.1\webapps\utils\WEB-INF\classes\LocalStrings*.properties
 
  When I put in the url http://localhost:8080/servlet/hello
 
  I get:
 
  HTTP Status 404 - /servlet/hello
 

 --
--
  
 
  type Status report
 
  message /servlet/hello
 
  description The requested resource (/servlet/hello) is not available.
 
 

 --
--
  
 
  Apache Tomcat/4.1.18
  any ideas?
 
  thanks - dave
 --
 p niemandt [EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Simple servlet won't display

2003-03-19 Thread David Thielen
I found that if I don't have the context in server.xml it still works. Is
that how it's supposed to be?

thanks - dave


- Original Message -
From: p niemandt [EMAIL PROTECTED]
To: Tomcat Users [EMAIL PROTECTED]
Sent: Wednesday, March 19, 2003 6:31 PM
Subject: Re: Simple servlet won't display


 aah: Where to start ;-)

 {list users feel free to correct ...

 1. server.xml
 You need to configure your web application in the server xml. This is in
 an element Context / which defines where your application resides, and
 optionally any resources your web app uses.

 2. web.xml
 You need to map your web application to it's implementation. It's not
 enough to just state your web descriptor {Like your post shows}, you
 will also need something like

 !-- Map requests to servlet --
 servlet-mapping
 servlet-nameServletName/servlet-name
 url-pattern/*/url-pattern
 /servlet-mapping

 after ALL the servlet / definitions.

 3. The implementation: You will need to compile your servlet and place
 the implementation classes under your web app directory ... {which it
 seems you did correctly }

 something like
 $CATALINA_HOME/webapps/yourwebapp/WEB-INF/classes


 This all said, there are a lot of different ways of doing the above,
 packaging everything in a WAR file comes to mind.

 You would probably need to do quite a bit of reading up on it first,
 it's not the easiest of things to come to grips with: The learning curve
 is quite steep, but well worth it.

 Hope this helps somewhat, good luck!
 Paul



 On Thu, 2003-03-20 at 01:07, David Thielen wrote:
  Hi;
 
  I am trying to get a very simple servlet to display (the example ones
work fine). This is my web.xml
  file:
 
  ?xml version=1.0 encoding=ISO-8859-1?
  !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application
  2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd;
 
  web-app
  display-nameWindward Utilities/display-name
  servlet
  servlet-namehello/servlet-name
  servlet-classHelloWorldExample/servlet-class
  /servlet
  /web-app
 
  My directory is:
  C:\Program Files\Apache Group\Tomcat 4.1\webapps\utils\WEB-INF\web.xml
  C:\Program Files\Apache Group\Tomcat
  4.1\webapps\utils\WEB-INF\classes\HelloWorldExample.*
  C:\Program Files\Apache Group\Tomcat
  4.1\webapps\utils\WEB-INF\classes\LocalStrings*.properties
 
  When I put in the url http://localhost:8080/servlet/hello
 
  I get:
 
  HTTP Status 404 - /servlet/hello
 

 --
--
  
 
  type Status report
 
  message /servlet/hello
 
  description The requested resource (/servlet/hello) is not available.
 
 

 --
--
  
 
  Apache Tomcat/4.1.18
  any ideas?
 
  thanks - dave
 --
 p niemandt [EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat classpath?

2002-06-27 Thread David Thielen

What's the context when I have:

  Context path=/ docBase=c:\Inetpub\wwwroot debug=0 privileged=true
/

I tried ROOT, nothing, _ - none of them worked.

thanks - dave


- Original Message -
From: Milt Epstein [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, June 27, 2002 10:31 AM
Subject: Re: Tomcat classpath?


 On Thu, 27 Jun 2002, David Thielen wrote:

  Hi;
 
  Where do I place jar files or where in the tomcat configuration do I
  tell it of a jar file to use with my jsp?
 
  Also, can I just do .class files in a directory or must it be a jar
  file? (And if so, how do I set that?)

 If you're talking about context specific stuff, jars go in
 ...context/WEB-INF/lib and classes in
 ...context/WEB-INF/classes (don't forget to include the complete
 package hierarchy in the classes subdirectory).

 You don't set the classpath for this stuff, it all works automatically.

 Milt Epstein
 Research Programmer
 Systems and Technology Services (STS)
 Campus Information Technologies and Educational Services (CITES)
 University of Illinois at Urbana-Champaign (UIUC)
 [EMAIL PROTECTED]


 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Tomcat classpath?

2002-06-27 Thread David Thielen

I tried CATALINA_HOME\webapps\ROOT\WEB-INF\classes\net\windward\*.class (my
package is net.windward)
I tried CATALINA_HOME\webapps\WEB-INF\classes\net\windward\*.class
I tried CATALINA_HOME\webapps\_\WEB-INF\classes\net\windward\*.class

I also added:
  Context path=/apps docBase=apps debug=0 privileged=true /

And then created
CATALINA_HOME\webapps\apps\*.jsp
and
CATALINA_HOME\webapps\apps\WEB-INF\classes\net\windward\*.class

In all these cases I can get ot the .jsp file but the jsp file cannot find
the java .class files.

I am doing no web.xml file because I have no servlets or anything else like
that. Just jsp files and classes for them to access.

? - thanks - dave


- Original Message -
From: Milt Epstein [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, June 27, 2002 11:04 AM
Subject: Re: Tomcat classpath?


 On Thu, 27 Jun 2002, David Thielen wrote:

  What's the context when I have:
 
Context path=/ docBase=c:\Inetpub\wwwroot debug=0
privileged=true
  /
 
  I tried ROOT, nothing, _ - none of them worked.

 What do you mean when you say you tried ROOT, ..., where did you try
 it?  And when you say they didn't work, what do you mean?  It didn't
 find the servlets/jsps, or it didn't find the classes/jars?  What URL
 did you try?  Anything relevant in the logs?

 I'd *think* that the path attribute above is just to tell Tomcat how
 to match URLs to resources (e.g. servlets/jsps).

 And I'd think that you can have WEB-INF under c:\Inetpub\wwwroot (and
 lib and classes under WEB-INF).


  - Original Message -
  From: Milt Epstein [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Thursday, June 27, 2002 10:31 AM
  Subject: Re: Tomcat classpath?
 
 
   On Thu, 27 Jun 2002, David Thielen wrote:
  
Hi;
   
Where do I place jar files or where in the tomcat configuration do I
tell it of a jar file to use with my jsp?
   
Also, can I just do .class files in a directory or must it be a jar
file? (And if so, how do I set that?)
  
   If you're talking about context specific stuff, jars go in
   ...context/WEB-INF/lib and classes in
   ...context/WEB-INF/classes (don't forget to include the complete
   package hierarchy in the classes subdirectory).
  
   You don't set the classpath for this stuff, it all works
automatically.

 Milt Epstein
 Research Programmer
 Systems and Technology Services (STS)
 Campus Information Technologies and Educational Services (CITES)
 University of Illinois at Urbana-Champaign (UIUC)
 [EMAIL PROTECTED]


 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Tomcat classpath?

2002-06-27 Thread David Thielen

I'm sticking with this example as it should work.

The url I put in is localhost/apps.10.jsp.

Here is a dir (screen dump) of the file:
 Directory of C:\Program Files\Apache Tomcat 4.0\webapps\apps

02/16/2002  03:50p 727 10.jsp

So the file is there.

The error I get is:
C:\Program Files\Apache Tomcat
4.0\work\Standalone\localhost\apps\$10$jsp.java:3: Class net.windward.Cart
not found in import.
import net.windward.Cart;
   ^
1 error, 1 warning

Here is the dir (screen dump) of the file Cart.class
 Directory of C:\Program Files\Apache Tomcat
4.0\webapps\apps\WEB-INF\classes\ne
t\windward

12/29/2001  01:11p  18,392 Cart.class
12/29/2001  01:10p  24,099 Cart.java

So any idea why it can't find it? I looked in the log files but couldn't
find any that listed a directory it was looking in.

thanks - dave

- Original Message -
...
  I also added:
Context path=/apps docBase=apps debug=0 privileged=true /
 
  And then created
  CATALINA_HOME\webapps\apps\*.jsp
  and
  CATALINA_HOME\webapps\apps\WEB-INF\classes\net\windward\*.class

 I don't see anything wrong with this, it looks like it should work.
 This all makes me wonder if something else is wrong.  How is the jsp
 looking for the class file?  For example, is it using the full package
 name?


  In all these cases I can get ot the .jsp file but the jsp file
  cannot find the java .class files.
 
  I am doing no web.xml file because I have no servlets or anything
  else like that. Just jsp files and classes for them to access.

 I think that should be OK, and if it's finding the servlets/jsps OK,
 that should indicate it's OK.


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Tomcat on IIS virtual web sites

2002-06-27 Thread David Thielen

I tried adding isapi_redirector.dll as a filter in one of my virtual web
sites and added a jakarta virtual directory to that web site.

When I try to access a jsp page via the virtual site, I get a Tomcat message
of: The requested resource (/jakarta/isapi_redirector.dll) is not available.

Any ideas?

thanks - dave


- Original Message -
From: David Thielen [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, June 27, 2002 10:21 AM
Subject: Tomcat on IIS virtual web sites


Hi;

Ok, I have tomcat working on my default website. How do I get it to work on
the virtual web sites I have?

thanks - dave


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Please help - Tomcat IIS

2002-06-27 Thread David Thielen

Hi all;

I've been tring for 3 days non-stop to get Tomcat working with IIS. And I'm still 
stuck and getting desperate. If anyone can help on these, please please do so. I'm 
assuming that there must be someone out there who has done this before successfully.

Or if it can't be done let me know and I'll go buy JRun.

thanks - dave

Question 1:

I tried adding isapi_redirector.dll as a filter in one of my virtual web
sites and added a jakarta virtual directory to that web site.

When I try to access a jsp page via the virtual site, I get a Tomcat message
of: The requested resource (/jakarta/isapi_redirector.dll) is not available.

Any ideas?

thanks - dave


- Original Message -
Hi;

Ok, I have tomcat working on my default website. How do I get it to work on
the virtual web sites I have?

thanks - dave




Question 2:

I'm sticking with this example as it should work.

The url I put in is localhost/apps.10.jsp.

Here is a dir (screen dump) of the file:
 Directory of C:\Program Files\Apache Tomcat 4.0\webapps\apps

02/16/2002  03:50p 727 10.jsp

So the file is there.

The error I get is:
C:\Program Files\Apache Tomcat
4.0\work\Standalone\localhost\apps\$10$jsp.java:3: Class net.windward.Cart
not found in import.
import net.windward.Cart;
   ^
1 error, 1 warning

Here is the dir (screen dump) of the file Cart.class
 Directory of C:\Program Files\Apache Tomcat
4.0\webapps\apps\WEB-INF\classes\ne
t\windward

12/29/2001  01:11p  18,392 Cart.class
12/29/2001  01:10p  24,099 Cart.java

So any idea why it can't find it? I looked in the log files but couldn't
find any that listed a directory it was looking in.

thanks - dave

- Original Message -
...
  I also added:
Context path=/apps docBase=apps debug=0 privileged=true /
 
  And then created
  CATALINA_HOME\webapps\apps\*.jsp
  and
  CATALINA_HOME\webapps\apps\WEB-INF\classes\net\windward\*.class

 I don't see anything wrong with this, it looks like it should work.
 This all makes me wonder if something else is wrong.  How is the jsp
 looking for the class file?  For example, is it using the full package
 name?


  In all these cases I can get ot the .jsp file but the jsp file
  cannot find the java .class files.
 
  I am doing no web.xml file because I have no servlets or anything
  else like that. Just jsp files and classes for them to access.

 I think that should be OK, and if it's finding the servlets/jsps OK,
 that should indicate it's OK.




Trying to get Tomcat/IIS to work together - log

2002-06-26 Thread David Thielen

Hi;

Here's the isapi.log when trying to display a .jsp file - it doesn't seem to list any 
error, except it returns a 404. And the file does exist!!!

[Wed Jun 26 12:02:07 2002]  [jk_isapi_plugin.c (904)]: Using registry.
[Wed Jun 26 12:02:07 2002]  [jk_isapi_plugin.c (906)]: Using log file C:\Program 
Files\Apache Tomcat 4.0\logs\isapi.log.
[Wed Jun 26 12:02:07 2002]  [jk_isapi_plugin.c (907)]: Using log level 0.
[Wed Jun 26 12:02:07 2002]  [jk_isapi_plugin.c (908)]: Using extension uri 
/jakarta/isapi_redirect.dll.
[Wed Jun 26 12:02:07 2002]  [jk_isapi_plugin.c (909)]: Using worker file C:\Program 
Files\Apache Tomcat 4.0\conf\workers.properties.
[Wed Jun 26 12:02:07 2002]  [jk_isapi_plugin.c (910)]: Using worker mount file 
C:\Program Files\Apache Tomcat 4.0\conf\uriworkermap.properties.
[Wed Jun 26 12:02:07 2002]  [jk_isapi_plugin.c (911)]: Using uri select 0.
[Wed Jun 26 12:02:07 2002]  [jk_uri_worker_map.c (159)]: Into 
jk_uri_worker_map_t::uri_worker_map_alloc
[Wed Jun 26 12:02:07 2002]  [jk_uri_worker_map.c (199)]: Into 
jk_uri_worker_map_t::uri_worker_map_open
[Wed Jun 26 12:02:07 2002]  [jk_uri_worker_map.c (217)]: 
jk_uri_worker_map_t::uri_worker_map_open, rule map size is 3
[Wed Jun 26 12:02:07 2002]  [jk_uri_worker_map.c (273)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, match rule /servlet/=ajp13 was added
[Wed Jun 26 12:02:07 2002]  [jk_uri_worker_map.c (262)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, suffix rule /.jsp=ajp13 was added
[Wed Jun 26 12:02:07 2002]  [jk_uri_worker_map.c (291)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, exact rule /security/j_security_check=ajp13 
was added
[Wed Jun 26 12:02:07 2002]  [jk_uri_worker_map.c (302)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, there are 3 rules
[Wed Jun 26 12:02:07 2002]  [jk_uri_worker_map.c (324)]: 
jk_uri_worker_map_t::uri_worker_map_open, done
[Wed Jun 26 12:02:07 2002]  [jk_worker.c (82)]: Into wc_open
[Wed Jun 26 12:02:07 2002]  [jk_worker.c (207)]: Into build_worker_map, creating 2 
workers
[Wed Jun 26 12:02:07 2002]  [jk_worker.c (213)]: build_worker_map, creating worker 
ajp12
[Wed Jun 26 12:02:07 2002]  [jk_worker.c (138)]: Into wc_create_worker
[Wed Jun 26 12:02:07 2002]  [jk_worker.c (152)]: wc_create_worker, about to create 
instance ajp12 of ajp12
[Wed Jun 26 12:02:07 2002]  [jk_ajp12_worker.c (264)]: Into ajp12_worker_factory
[Wed Jun 26 12:02:07 2002]  [jk_worker.c (161)]: wc_create_worker, about to validate 
and init ajp12
[Wed Jun 26 12:02:07 2002]  [jk_ajp12_worker.c (182)]: Into jk_worker_t::validate
[Wed Jun 26 12:02:07 2002]  [jk_ajp12_worker.c (194)]: In jk_worker_t::validate for 
worker ajp12 contact is localhost:8007
[Wed Jun 26 12:02:07 2002]  [jk_worker.c (177)]: wc_create_worker, done
[Wed Jun 26 12:02:07 2002]  [jk_worker.c (223)]: build_worker_map, removing old ajp12 
worker 
[Wed Jun 26 12:02:07 2002]  [jk_worker.c (213)]: build_worker_map, creating worker 
ajp13
[Wed Jun 26 12:02:07 2002]  [jk_worker.c (138)]: Into wc_create_worker
[Wed Jun 26 12:02:07 2002]  [jk_worker.c (152)]: wc_create_worker, about to create 
instance ajp13 of ajp13
[Wed Jun 26 12:02:07 2002]  [jk_ajp13_worker.c (922)]: Into ajp13_worker_factory
[Wed Jun 26 12:02:07 2002]  [jk_worker.c (161)]: wc_create_worker, about to validate 
and init ajp13
[Wed Jun 26 12:02:07 2002]  [jk_ajp13_worker.c (443)]: Into jk_worker_t::validate
[Wed Jun 26 12:02:07 2002]  [jk_ajp13_worker.c (456)]: In jk_worker_t::validate for 
worker ajp13 contact is localhost:8009
[Wed Jun 26 12:02:07 2002]  [jk_ajp13_worker.c (482)]: Into jk_worker_t::init
[Wed Jun 26 12:02:07 2002]  [jk_worker.c (177)]: wc_create_worker, done
[Wed Jun 26 12:02:07 2002]  [jk_worker.c (223)]: build_worker_map, removing old ajp13 
worker 
[Wed Jun 26 12:02:07 2002]  [jk_worker.c (235)]: build_worker_map, done
[Wed Jun 26 12:02:07 2002]  [jk_worker.c (102)]: wc_open, done
[Wed Jun 26 12:02:25 2002]  [jk_isapi_plugin.c (626)]: HttpFilterProc started
[Wed Jun 26 12:02:25 2002]  [jk_isapi_plugin.c (672)]: In HttpFilterProc Virtual Host 
redirection of /jasmine.windward.net/store/5.jsp
[Wed Jun 26 12:02:25 2002]  [jk_uri_worker_map.c (351)]: Into 
jk_uri_worker_map_t::map_uri_to_worker
[Wed Jun 26 12:02:25 2002]  [jk_uri_worker_map.c (368)]: Attempting to map URI 
'/jasmine.windward.net/store/5.jsp'
[Wed Jun 26 12:02:25 2002]  [jk_uri_worker_map.c (416)]: 
jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 - *.jsp
[Wed Jun 26 12:02:25 2002]  [jk_isapi_plugin.c (688)]: HttpFilterProc [/store/5.jsp] 
is a servlet url - should redirect to ajp13
[Wed Jun 26 12:02:25 2002]  [jk_isapi_plugin.c (737)]: HttpFilterProc check if 
[/store/5.jsp] is points to the web-inf directory
[Wed Jun 26 12:02:25 2002]  [jk_isapi_plugin.c (777)]: HttpExtensionProc started
[Wed Jun 26 12:02:25 2002]  [jk_worker.c (123)]: Into wc_get_worker_for_name ajp13
[Wed Jun 26 12:02:25 2002]  [jk_worker.c (127)]: wc_get_worker_for_name, done  found a 
worker
[Wed Jun 26 12:02:25 

Re: Tomcat on IIS - almost working

2002-06-26 Thread David Thielen

No where/how do I do that?

thanks - dave


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 26, 2002 9:13 AM
Subject: RE: Tomcat on IIS - almost working


 Did you specify ajp12 in your workers.properties file?

 Bao-Ha Dam Bui
 [EMAIL PROTECTED]
 S. Jude Medical, Inc
 651.765.1018


 -Original Message-
 From: David Thielen [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, June 26, 2002 10:07 AM
 To: 'Tomcat Users List'
 Subject: Tomcat on IIS - almost working


  I am now getting the error:
 [Wed Jun 26 08:03:18 2002]  [jk_isapi_plugin.c (820)]: HttpExtensionProc
 error, could not get a worker for name ajp12

 I added the following to server.xml:
  Context path=/ docBase=C:/InetPub/wwwroot debug=0
 reloadable=true/

  And added the following to uriworkermap.properties:
  /*.jsp=ajp12

  All as specified in http://www.verysimple.com/scripts/support_tc_iis.html

  Any ideas?

  thanks - dave


  - Original Message -
  From: Andrew Conrad [EMAIL PROTECTED]
  To: 'Tomcat Users List' [EMAIL PROTECTED];
  [EMAIL PROTECTED]
  Sent: Tuesday, June 25, 2002 3:54 PM
  Subject: RE: Tomcat, IIS, and
 
 
   Hey David,
  
   here is where you can find what the workers.properties and
   uriworkermap.properties look like and the reg settings.  Look about
half
   way down the page.
  
   http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html
  
   if you need more help, you can take a look at this helpfile.
  
   http://www.getnet.net/~rbarr/TomcatOnIIS/default.htm
  
  
   - Andrew
  
  
  
  
   -Original Message-
   From: David Thielen [mailto: ]
   Sent: Tuesday, June 25, 2002 4:36 PM
   To: [EMAIL PROTECTED]
   Subject: Tomcat, IIS, and
  
   Hi;
  
   I've installed Tomcat 4.0 and it runs fine in standalone mode.
  
   I've followed the following instructions for connection to IIS:
   http://www.verysimple.com/scripts/support_tc_iis.html
   http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-iis-howto.html
  
   And the dll won't load. I think the problem is that the install did
not
   give me the files:
   workers.properties
   uriworkermap.properties
  
   (Also the install did not give me a suggested .reg file for setting
the
   registry).
  
   Does anyone have a sample standard of these two files I can use? And
any
   idea why they did not install?
  
   thanks - dave
  
 


 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Tomcat, IIS, and

2002-06-25 Thread David Thielen

Hi;

I've installed Tomcat 4.0 and it runs fine in standalone mode.

I've followed the following instructions for connection to IIS:
http://www.verysimple.com/scripts/support_tc_iis.html
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-iis-howto.html

And the dll won't load. I think the problem is that the install did not give me the 
files:
workers.properties
uriworkermap.properties

(Also the install did not give me a suggested .reg file for setting the registry).

Does anyone have a sample standard of these two files I can use? And any idea why they 
did not install?

thanks - dave