Comet API Question

2007-12-29 Thread Jens Hagel
Hi,
i need to detect if the user reloads the webapp or rather if the connection
gets interrupted.
i therefore use the CometEvent.EventSubType but the events don't get fired.
in the context.xml i've uncommented the CometConnectionManagerValve.
Do I have to instantiate the ConnectionManager by myself or what's going
wrong?

2nd question: it's a little bit unclear to my what happens when i call
cometEvent.close()
sometimes i use it and sometimes not with no difference.. :)

Kind regards,
Jens


Re: Does a static directory now always take precedence to a url-pattern?

2007-12-29 Thread Mark Thomas
Tad Woods wrote:
 The 5.5.23 version seems to give static directories total precedence over
 url-patterns defined in the web.xml. For example, in my application root,
 I had a directory /office which contained static files and in my
 application's web.xml I mapped a servlet to the url-pattern /office. In
 the older Tomcat this worked fine, matching the url-pattern if the URL was
 exactly /office or the static content if the URL was /office/something,
 but in the newer Tomcat the existence of the static directory causes the
 url-pattern to be completely ignored. Is this the expected behavior or am I
 missing something in the configuration that would give matching the
 url-pattern precedence again?

I think you are missing something. This works as expected for me.

Just a wild stab in the dark - what values are you using for the docBase
for your app and the host's appBase?

Mark

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



RE: Get tomcat version from webapp code?

2007-12-29 Thread Martin Gainty

1.x taglib is quite old
I would check application functionality on newer 
versionMartin__Disclaimer and 
confidentiality noteEverything in this e-mail and any attachments relates to 
the official business of Sender. This transmission is of a confidential nature 
and Sender does not endorse distribution to any party other than intended 
recipient. Sender does not necessarily endorse content contained within this 
transmission. Date: Fri, 28 Dec 2007 22:15:52 -0500 From: [EMAIL PROTECTED] 
Subject: Re: Get tomcat version from webapp code? To: users@tomcat.apache.org 
 Louis wrote:  David kerber wrote:  Thanks for the response, but I've 
never dealt with that at all. Is   there any sample code that would give me 
the equivalent of something   like getServerProperty( version ), and 
return 5.5.15, or Apache   Tomcat 5.5.15, or something similar?   
D  In a JSP:  %= application.getServerInfo() %   In a Servlet:  
String serverInfo = getServletContext().getServerInfo();  Thanks, guys! 
Believe it or not, I did do a bit of searching for this,  but I guess I didn't 
happen upon the right search terms...  D
- To start 
a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL 
PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 
_
Share life as it happens with the new Windows Live.
http://www.windowslive.com/share.html?ocid=TXT_TAGHM_Wave2_sharelife_122007

RE: Does a static directory now always take precedence to a url-pattern?

2007-12-29 Thread Tad Woods
Mark,

Here is what I think is the relevant part of my server.xml you're asking
for...

Host name=katchconstructionsupply.com appBase=/home/katch/public_html
Context path= docBase=/home/katch/public_html /
/Host

...this was the same configuration that I ran in 5.5.14.

Something that may be related and seems odd to me is that if I go into the
Tomcat Application Manager all of the static directories under the base are
listed as applications.  my host told me today that this was an
intentional design change to Tomcat at version 5.5.17?? Not sure I believe
that.

-Tad


-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: Saturday, December 29, 2007 11:58 AM
To: Tomcat Users List
Subject: Re: Does a static directory now always take precedence to a
url-pattern?

Tad Woods wrote:
 The 5.5.23 version seems to give static directories total precedence over
 url-patterns defined in the web.xml. For example, in my application
root,
 I had a directory /office which contained static files and in my
 application's web.xml I mapped a servlet to the url-pattern /office. In
 the older Tomcat this worked fine, matching the url-pattern if the URL was
 exactly /office or the static content if the URL was
/office/something,
 but in the newer Tomcat the existence of the static directory causes the
 url-pattern to be completely ignored. Is this the expected behavior or am
I
 missing something in the configuration that would give matching the
 url-pattern precedence again?

I think you are missing something. This works as expected for me.

Just a wild stab in the dark - what values are you using for the docBase
for your app and the host's appBase?

Mark

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



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



Re: Does a static directory now always take precedence to a url-pattern?

2007-12-29 Thread Mark Thomas
Tad Woods wrote:
 Host name=katchconstructionsupply.com appBase=/home/katch/public_html
 Context path= docBase=/home/katch/public_html /
 /Host

Thought so.

 ...this was the same configuration that I ran in 5.5.14.
 
 Something that may be related and seems odd to me is that if I go into the
 Tomcat Application Manager all of the static directories under the base are
 listed as applications.  my host told me today that this was an
 intentional design change to Tomcat at version 5.5.17?? Not sure I believe
 that.

Your host is sort of correct. The full answer is that using the same
directory for appBase and docBase is an invalid configuration that has
never been supported. That it worked at all in earlier versions was an
unintentional side-effect of a bug that has since been fixed.

Any directory found in the appBase is now treated as a context. This is to
align Tomcat 5 with Tomcat 6 (which is required to do this by the 2.5
servlet spec)

Assuming you only want a single context then a possible configuration would be:

Host name=katchconstructionsupply.com appBase=/home/katch/appBase
/Host

And move the contents of /home/katch/public_html to /home/katch/appBase/ROOT

Note that the Context element is unnecessary given your example above.

Mark

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



Re: Tomcat 6 getRemoteUser() returns null

2007-12-29 Thread Natalie Wang
Thank you for all the help.

It is a configuration problem.

I use apache and webauth to do the authentication.
in tomcat server.xml, I need to set
tomcatAuthentication=false which I did not do it.

Connector protocol=AJP/1.3 port=...  ...
tomcatAuthentication=false  /

Thanks,
Natalie
 
--- Mark Thomas [EMAIL PROTECTED] wrote:

 Natalie Wang wrote:
  It does not work either.
 
 Tomcat version?
 Java version?
 OS and version?
 LDAP and version?
 Errors in logs?
 Extracts from relevant configuration files?
 
 Have you tried this with a simple test case? Ie a
 single html file and a
 resource constraint? Does the same test work if you
 use the memory realm?
 
 Mark
 
 

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



  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

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