Re: Isapi redirector log file is always empty - IIS 7.5 - Tomcat 7.0.26 - Isapi 1.2.30 - Win2008 R2

2012-05-18 Thread André Warnier

ann ramos wrote:

Hi,

I have set up our system to do SSO.  The setup works fine because whenever the 
user access the system, they are automatically logged in to the system.

Following are the steps that I used to set up Isapi:
1. Manually created the folders Apache Software Foundation\Jakarta Isapi 
Redirector.  Then inside those folders I created a sub folder bin, conf and log.
2. I manually created the registry entries.  The set up works because the 
system functions as SSO.

The only thing is that my isapi_redirect.log is always empty even though I set the log_level to debug. 


I tried searching the internet but I'm not getting anywhere.

I would appreciate any thoughts and ideas that you can share so I can resolve my problem.  



Apart from your mention of Tomcat in the subject, it is not very clear so far if anything 
you're doing is accessing Tomcat through isapi_redirector (or even Tomcat at all).

Can you be a bit more explicit about what you are doing ?
And where the SSO part come into the picture here ?


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



Threads in Tomcat

2012-05-18 Thread Vance -
I'm maintaining a Web application for searching multiple wikis, this app
runs under Tomcat 6. I need to modify a servlet so it instantiates a
'Thread' subclass to perform a wiki availability check every so often, say
every 30 minutes. Given that I'm no expert on the use of threads, a
co-worker suggested the following questions to look into:

· Does the spawned thread have a time limit imposed by Tomcat?

· Does it take up worker thread space from other Tomcat threads?


I'd appreciate any help anyone could give w.r.t. these questions.


Re: Threads in Tomcat

2012-05-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Vance,

On 5/18/12 12:14 PM, Vance - wrote:
 I'm maintaining a Web application for searching multiple wikis,
 this app runs under Tomcat 6. I need to modify a servlet so it
 instantiates a 'Thread' subclass to perform a wiki availability
 check every so often, say every 30 minutes.

Suggestion: use a ServletContextListener, not a Servlet. Remember to
terminate the thread in the destroy() method. Note that terminating a
thread basically requires that you be able to communicate with the
thread to tell it to shut down (i.e. don't call Thread.stop()): you
need to have a Runnable that can be interrupted (using interrupt())
and also knows that the interrupt needs to be terminal... so set a
shutdown flag or something like that.

 Given that I'm no expert on the use of threads, a co-worker
 suggested the following questions to look into:
 
 · Does the spawned thread have a time limit imposed by
 Tomcat?

No.

 · Does it take up worker thread space from other Tomcat
 threads?

No.

Your thread will take up RAM and CPU time of course. Also, processes
have thread limits and your thread will count against that.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+2dsYACgkQ9CaO5/Lv0PBT8ACgnUwG5KjDzTf9SYHtEM9iaYxJ
dy8An1vGhmAjMhzgpvfXGVNMkDlQTPzA
=nH91
-END PGP SIGNATURE-

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



Re: Threads in Tomcat

2012-05-18 Thread Vance -
Chris, thanks for responding.

The servlet I have in mind for modification is the one responsible for
performing the search as well as for getting the next page of search
results. If one or more of the wikis is unavailable, I want to display an
error message on the search results page.

The wiki availability check won't be done all the time, as I mentioned
before, just every so often, say, every 30 minutes.

Why would using a ServletContextListener be better than using a servlet?


On Fri, May 18, 2012 at 12:20 PM, Christopher Schultz 
ch...@christopherschultz.net wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Vance,

 On 5/18/12 12:14 PM, Vance - wrote:
  I'm maintaining a Web application for searching multiple wikis,
  this app runs under Tomcat 6. I need to modify a servlet so it
  instantiates a 'Thread' subclass to perform a wiki availability
  check every so often, say every 30 minutes.

 Suggestion: use a ServletContextListener, not a Servlet. Remember to
 terminate the thread in the destroy() method. Note that terminating a
 thread basically requires that you be able to communicate with the
 thread to tell it to shut down (i.e. don't call Thread.stop()): you
 need to have a Runnable that can be interrupted (using interrupt())
 and also knows that the interrupt needs to be terminal... so set a
 shutdown flag or something like that.

  Given that I'm no expert on the use of threads, a co-worker
  suggested the following questions to look into:
 
  · Does the spawned thread have a time limit imposed by
  Tomcat?

 No.

  · Does it take up worker thread space from other Tomcat
  threads?

 No.

 Your thread will take up RAM and CPU time of course. Also, processes
 have thread limits and your thread will count against that.

 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
 Comment: GPGTools - http://gpgtools.org
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAk+2dsYACgkQ9CaO5/Lv0PBT8ACgnUwG5KjDzTf9SYHtEM9iaYxJ
 dy8An1vGhmAjMhzgpvfXGVNMkDlQTPzA
 =nH91
 -END PGP SIGNATURE-

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




I have /subapp/a and /subapp/b. Can i have different sessions for them?

2012-05-18 Thread Teo
Hi,

first time posting on a mailing list, hope i'm not breaking any rules of
some sort. My problem is pretty simple but it seems a lot of people have
trouble understanding it in other forums. Let's say i have 2 main entry
points into my application: /subapp/a and /subapp/b. They are part of the
same webapp but they are somehow different and i want to distinguish
between them. Having a separate session for each of them would be the
greatest thing but is this possible for Tomcat? The path of the session
cookie (JSESSIONID) is automatically put at the root context path (so
/subapp in this example). And i don't want to have multiple wars or
multiple Tomcats... I would like this in Tomcat 7 btw... I'm trying to
avoid changing Tomcat itself so i tried to extend/wrap the usual response
classes/interfaces but no luck because Tomcat writes the Set-Cookie header
directly into the coyote response header...

Any help would be appreciated, been wrestling with this for some days...

Thanks,
Teo


Re: Threads in Tomcat

2012-05-18 Thread Tim Watts
On Fri, 2012-05-18 at 12:14 -0400, Vance - wrote:
 I'm maintaining a Web application for searching multiple wikis, this app
 runs under Tomcat 6. I need to modify a servlet so it instantiates a
 'Thread' subclass to perform a wiki availability check every so often, say
 every 30 minutes. Given that I'm no expert on the use of threads, a
 co-worker suggested the following questions to look into:
 
Might want to study the classes  interfaces in java.util.concurrent
instead of using a raw Thread.  Concurrency often ends up being trickier
than it first appears and the classes  interfaces in this package were
designed to handle a lot of these subtle details for you.  The Executors
class in particular has some pre-built common configurations ready to
instantiate.

 · Does the spawned thread have a time limit imposed by Tomcat?
 
 · Does it take up worker thread space from other Tomcat threads?
 
I believe the simple answer to these is No.  Which is to say I don't
believe Tomcat per se enforces such limits.  However, it may be possible
that an active SecurityManager could impose them.  Would be unusual
though -- especially the 1st question.

 
 I'd appreciate any help anyone could give w.r.t. these questions.



signature.asc
Description: This is a digitally signed message part


WebApp on Tomcat recognize automaticely uploaded file

2012-05-18 Thread Ermal Aliraj
Hello,

can anyone help me, if  there is a configuration parameter in tomcat, which
permit to the web application to auto-recognize when I put an image from
filesystem into the webapp?

I put images in the path of my application: appBase/webAppA/uploads through
another webAppB, but seems that webAppA recognizes the images only after
Tomcat restart.
Working until now with tomcat integrated into eclipse, I didn't noticed
this event because eclipse was publishing automatically after each upload.

Thank you to anyone for any kind of help.

Ermal


Re: WebApp on Tomcat recognize automaticely uploaded file

2012-05-18 Thread André Warnier

Ermal Aliraj wrote:

Hello,

can anyone help me, if  there is a configuration parameter in tomcat, which
permit to the web application to auto-recognize when I put an image from
filesystem into the webapp?

I put images in the path of my application: appBase/webAppA/uploads through
another webAppB, but seems that webAppA recognizes the images only after
Tomcat restart.

Hi.

Can you explain exactly what you mean by
webAppA recognizes the images ?

What are you doing that makes you think that these images are not being 
recognised ?
Are you trying to access them from a browser via a URL ?
Explain in detail please, step by step.



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



Re: WebApp on Tomcat recognize automaticely uploaded file

2012-05-18 Thread Vance -
I've found this article helpful in the past:

http://whatwouldnickdo.com/wordpress/157/tomcat-images-directory/


On Fri, May 18, 2012 at 4:53 PM, Ermal Aliraj ermal.ali...@gmail.comwrote:

 Hello,

 can anyone help me, if  there is a configuration parameter in tomcat, which
 permit to the web application to auto-recognize when I put an image from
 filesystem into the webapp?

 I put images in the path of my application: appBase/webAppA/uploads through
 another webAppB, but seems that webAppA recognizes the images only after
 Tomcat restart.
 Working until now with tomcat integrated into eclipse, I didn't noticed
 this event because eclipse was publishing automatically after each upload.

 Thank you to anyone for any kind of help.

 Ermal



Re: WebApp on Tomcat recognize automaticely uploaded file

2012-05-18 Thread Ermal Aliraj
Yes, I say webAppA do not recognize the images because do not serve them
through the browser via URL.

I did the following scneario and writing down in case can make the
situation more clear
uploaded manualy the following files on:

webAppA/uploads/1.jpg
webAppB/uploads/1.jpg

requesting the files through URL i have the following:

www.localhost/webAppA/uploads/1.jpg --- no reply
www.localhost/webAppB/uploads/1.jpg -- photo visualized

Do you have any idea what might cause appA not to recognize the images?

Thank you very much for your help

Ermal


2012/5/18 André Warnier a...@ice-sa.com

 Ermal Aliraj wrote:

 Hello,

 can anyone help me, if  there is a configuration parameter in tomcat,
 which
 permit to the web application to auto-recognize when I put an image from
 filesystem into the webapp?

 I put images in the path of my application: appBase/webAppA/uploads
 through
 another webAppB, but seems that webAppA recognizes the images only after
 Tomcat restart.

 Hi.

 Can you explain exactly what you mean by
 webAppA recognizes the images ?

What are you doing that makes you think that these images are not being
 recognised ?
 Are you trying to access them from a browser via a URL ?
 Explain in detail please, step by step.



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




Re: WebApp on Tomcat recognize automaticely uploaded file

2012-05-18 Thread André Warnier

Ermal Aliraj wrote:

Yes, I say webAppA do not recognize the images because do not serve them
through the browser via URL.

I did the following scneario and writing down in case can make the
situation more clear
uploaded manualy the following files on:

webAppA/uploads/1.jpg
webAppB/uploads/1.jpg

requesting the files through URL i have the following:

www.localhost/webAppA/uploads/1.jpg --- no reply


no reply cannot be.  What /exactly/ happens when you enter that URL ?

Have you verified that the user under which tomcat runs has permissions to read what is in 
webAppA ?




www.localhost/webAppB/uploads/1.jpg -- photo visualized




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



Tomcat SPDY Connector

2012-05-18 Thread Konstantin Preißer
Hi!

I'm currently experimenting with developing a .Net SPDY Client / IIS SPDY 
Redirector (written in C#) that could be used as a possible replacement over 
AJP, to forward HTTP requests from IIS to Tomcat (some time ago I mentioned 
that I might look into writing such a client when I had some spare time [1] - 
which is the case now ;) ).
It is based on Draft3 of the SPDY specification [2], which names the protocol 
spdy/3.

Currently I'm testing the client with Google servers which support both 
spdy/2 and spdy/3. I'd also like to test it with Tomcat. I don't know much 
about Tomcat's code/architecture, but from looking at the SPDY code from Tomcat 
trunk [3], it seems that Tomcat is currently only supporting spdy/2, but not 
spdy/3. Is this correct?

If yes, are there already plans to implement spdy/3? (The main difference 
between SPDY v2 and v3 is the addition of flow control, which I think is 
important when using SPDY as server-to-server protocol, to prevent flooding the 
intermediate server with messages if it has a slow connection to the actual 
client.)

Thanks!

Regards,
Konstantin Preißer


[1] http://markmail.org/message/jvaztqpl7vba7jn7
[2] http://dev.chromium.org/spdy/spdy-protocol/spdy-protocol-draft3
[3] http://svn.apache.org/repos/asf/tomcat/trunk/java/org/apache/tomcat/spdy


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