Re: Sticky servlet

2007-09-19 Thread Mikolaj Rydzewski
Kamil Burzynski wrote: I would like to create one of my servlets to be 'sticky': to be sure that Tomcat will never try to remove this servlet from memory. Is load-on-startup enough? I know that it will start my servlet as soon as tomcat starts, but will tomcat ever try to remove such servlet?

Re: Question about JNDI + Connection Pool + Mysql (Tomcat 6)

2007-09-19 Thread Mikolaj Rydzewski
Fredy Provoste wrote: Hi again, i've been deployed a webapp called libreria in Tomcat 6, i tried to configure a mysql connection pool, so in the path libreria . . META-INF/context.xml put the lines Context path=/libreria docBase=libreria debug=5 privileged=true reloadable=true

Re: Tomcat status

2007-09-19 Thread Ognjen Blagojevic
Hi Andrew, For Tomcat you can use: http://localhost:8080/manager/status Be sure to confugure conf/tomcat-users.xml. Regards, Ognjen Andrew Hole wrote: Could you tell me wich page? On 9/18/07, Bj [EMAIL PROTECTED] wrote: if you're using apache httpd and mod_jk in front of your tomcats,

Re: How do you access all sessions from a servlet in tomcat 6.0?

2007-09-19 Thread Lyallex
OK, for some reason I've been obsessing about this for a whole day now. If you hold an external reference to a Session then according to my tests the session will still time out as expected but the external reference will be non null. At the very least this means that you may end up with a large

Re: Sticky servlet

2007-09-19 Thread David Delbecq
I see no reason you would need your servlet to stay in memory. As long as it is alive when needed (that is when requests arrive) it's enough. Maybe you problem is that it does much than serving request, like running background thread, send message to people and so on. Then you might simply

Re: How do you access all sessions from a servlet in tomcat 6.0?

2007-09-19 Thread David Delbecq
Just use WeakReference :) Lyallex a écrit : OK, for some reason I've been obsessing about this for a whole day now. If you hold an external reference to a Session then according to my tests the session will still time out as expected but the external reference will be non null. At the very

Re[2]: Sticky servlet

2007-09-19 Thread Kamil Burzynski
Hello, I see no reason you would need your servlet to stay in memory. As long as it is alive when needed (that is when requests arrive) it's enough. Maybe you problem is that it does much than serving request, like running background thread, send message to people and so on. Then you

Filter on j_security_check or Alternate way

2007-09-19 Thread alee amin
Hi, I have implemented form based security on web app using JDBCRealm in server.xml file. It has been implemented. Now i want to use some pre-req before accessing any page in secure area say (faces/secure/main.xhtml). My index page redirect to faces/secure/main.xhtml where it ask for login and

Re: How do you access all sessions from a servlet in tomcat 6.0?

2007-09-19 Thread gary . l . johnstone
Thanks for all the feedback on this. ___ Gary Johnstone Engineering IT Cummins Turbo Technologies Ltd +44 1484 440532 Lyallex

Re: Filter on j_security_check or Alternate way

2007-09-19 Thread Tim Funk
Filters are not invoked on j_security_check If you need to do something special on login - you will need to store some state in the session. (Like session variable called didInitializeSession) Then the filter can check for the existence of a request.getUserPrincipal()

Re: Filter on j_security_check or Alternate way

2007-09-19 Thread alee amin
yeah i can get info from getPrincipal() but where should i put that code to retrieve the info? where should i save the state in session? at login page? no - then after login the secured page is going to open - i need to save something or process something before it. -alee On 9/19/07, Tim Funk

Tomcat integration with Sun ONE web server

2007-09-19 Thread Tata, Jagadeesh
Hi All, I installed/configured Tomcat 6.0.13 version on Solaris SPARC server. Also I installed Sun ONE web server 6.1 (Called currently as Sun Java System Web Server). I want to integrate Sun ONE with Tomcat. I'm new to the web servers and their configuration. I heard that Sun ONE /Apache

Re: mod_jk and Apache httpd 2.2 [RESOLVED ; still have questions]

2007-09-19 Thread Rainer Jung
Christopher Schultz wrote: Rainer Jung wrote: 2. Is is okay to have connection_pool_size=1 for my workers? The docs suggest to me that it /must be/ set to 1 if I'm using prefork MPM. OK, I see, that our wording is still not clear. What we try to tell the users: I think I get it.

Re: Filter on j_security_check or Alternate way

2007-09-19 Thread David Delbecq
Map a filter to your JSF servlet (faces/*). In that filter check that user principal is not null. If it's not null, do your initialization stuff if not yet done. When it's done, store that state information in session. Here that's how we check and upgrade user profile informations upon login.

Re: Tomcat integration with Sun ONE web server

2007-09-19 Thread Rainer Jung
Hi Jagadeesh, first: integration here means, that you are fronting Tomcat with an additional web server. YXou don't need to do this, because Tomcat also is a web server. But there are common reasons to do it, like security, separation of static content, and application routing (few web

Tomcat 6.0.14 - Admin-Webapplication

2007-09-19 Thread Fuchs, Jens
Hello, I searched your FAQ and the web for informations about my problem but I don´t found any. We want to switch our production from Tomcat 5.028 to Tomcat 6.0.14. Therefor we need among other things the admin-webapplication. On your website I only find a admin-webapplication for Tomcat 5.5.

Re: Tomcat 6.0.14 - Admin-Webapplication

2007-09-19 Thread David Delbecq
Hello, http://www.nabble.com/Tomcat-6-Admin-Application-tf4475389.html Fuchs, Jens a écrit : Hello, I searched your FAQ and the web for informations about my problem but I don´t found any. We want to switch our production from Tomcat 5.028 to Tomcat 6.0.14. Therefor we need among other

Re: problem with https and apache+httpd+tomcat [SOLVED]

2007-09-19 Thread Rainer Jung
Hi Christian, thanks for your feedback. Good to know the reason and that the theory works, at least if SSL is explicitely activated in the vhost. mod_jk gets the ssl info froom an apache httpd internal environment variable. It looks like this wasn't set by your configuration. In case one

Re: unknown protocol: httpg

2007-09-19 Thread DEMESY Nicolas
Hi David; Ok , It works well with the second solution, I put the globus library in the common/lib directory of Tomcat . Thanks a lot Nicolas David Delbecq a écrit: Hello Nicolas, java.net.URL is trying to instanciate a handler for protocol httpg and fails. Looking at your code, i suppose

Re: How do you access all sessions from a servlet in tomcat 6.0?

2007-09-19 Thread Lyallex
On 9/19/07, David Delbecq [EMAIL PROTECTED] wrote: Just use WeakReference :) Er, well that's OK, the WeakReference referant object (the session) is null after gc but now I have a WeakReference object lurking in my Map as opposed to the HttpSession object previously so I'm not really gaining

Download problem with IE6, IIS 6.0, SSL, Tomcat 6.0.13 and connector 1.2.25 (last in date) on Windows Server 2k3

2007-09-19 Thread Baldurien
Hello, I have the following configuration : - A Tomcat 6.0.13 serving any file running on port 8080 - A IIS 6.0 frontend server, on port 80/443 (for SSL) which use the Jp connector 1.2.25 as a gateway to Tomcat, on Windows Server 2003 The connector serves all that is in /myProject

RE: Question about JNDI + Connection Pool + Mysql (Tomcat 6)

2007-09-19 Thread Caldarale, Charles R
From: Mikolaj Rydzewski [mailto:[EMAIL PROTECTED] Subject: Re: Question about JNDI + Connection Pool + Mysql (Tomcat 6) Context path=/libreria docBase=libreria debug=5 privileged=true reloadable=true You should not use path attribute in META-INF/context.xml. Nor docBase, for that

Why Net use ... does not work with WebDAV servlet

2007-09-19 Thread shahab
Hi, I am trying to develop a simple distributed file system using WebDAV servlet on Tomact application server. while I can successfully browse the WebDAV enabled directory via IE or FireFox, issuing net use p: http://lp:port/Dav; results in The network name can not be found error message so

Re: Download problem with IE6, IIS 6.0, SSL, Tomcat 6.0.13 and connector 1.2.25 (last in date) on Windows Server 2k3

2007-09-19 Thread Martin Gainty
to make sure its not tomcat timing out what is disableUploadTimeout in your connector set to? M-- - Original Message - From: Baldurien [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Wednesday, September 19, 2007 9:16 AM Subject: Download problem with IE6, IIS 6.0, SSL, Tomcat

Re: Download problem with IE6, IIS 6.0, SSL, Tomcat 6.0.13 and connector 1.2.25 (last in date) on Windows Server 2k3

2007-09-19 Thread Baldurien
If you are refering to the Connector / in the server.xml file, it is set up to the default (false). Below is the part of the configuration that define it : !-- A Connector represents an endpoint by which requests are received and responses are returned. Documentation at :

RE: How do you access all sessions from a servlet in tomcat 6.0?

2007-09-19 Thread Brian.Horblit
Gary, I'm not sure how much time was spent discussing alternatives as apposed to the question of if getting access to all sessions would work. You originally talked about tracking for concurrent license checking... We currently do this type of thing - and more, like abstracting the session

RE: Why Net use ... does not work with WebDAV servlet

2007-09-19 Thread Peter Crowther
From: shahab [mailto:[EMAIL PROTECTED] I am trying to develop a simple distributed file system using WebDAV servlet on Tomact application server. while I can successfully browse the WebDAV enabled directory via IE or FireFox, issuing net use p: http://lp:port/Dav; results in The

Re: Question about JNDI + Connection Pool + Mysql (Tomcat 6)

2007-09-19 Thread Steve Ochani
Date sent: Wed, 19 Sep 2007 00:26:04 -0400 From: Fredy Provoste [EMAIL PROTECTED] Subject:Question about JNDI + Connection Pool + Mysql (Tomcat 6) To: Tomcat User List users@tomcat.apache.org Send reply to: Tomcat Users List users@tomcat.apache.org Hi again, i've been

Comet

2007-09-19 Thread Saman Ghodsian
Hi there, I'm trying to get in touch with anyone that has had success in getting the comet chat example working on tomcat 6.0.14. Saman Notice - The information in this e-mail is confidential and may be legally privileged. It is intended solely for the recipient(s) named above. If you

Re: Download problem with IE6, IIS 6.0, SSL, Tomcat 6.0.13 and connector 1.2.25 (last in date) on Windows Server 2k3

2007-09-19 Thread Baldurien
Here is more information : - I tried with firefox using IIS, and it fails too. - I've done the following test : I made 10 files of different size (512 bytes, 1024, 2048, ...) then I uploaded them : On IIS (tested with Fx, and IE): 1. When the file is less or equals 16KiB, upload works. 2.

HELP -- need to get Basic Authentication working (.htaccess) with Apache/Tomcat 5 to prevent access

2007-09-19 Thread Kim Albee
I need to figure out a way to 'gate' access in a broad sense to the overall website on a test server. The site is all JSP, using Apache and Tomcat, but .htaccess doesn't work, as it appears that Apache hands off to Tomcat prior to doing the .htaccess check. Does anyone have a solution to this?

Re: HELP -- need to get Basic Authentication working (.htaccess) with Apache/Tomcat 5 to prevent access

2007-09-19 Thread Martin Gainty
http://www.apache-ssl.org/ M-- - Original Message - From: Kim Albee [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, September 19, 2007 2:22 PM Subject: HELP -- need to get Basic Authentication working (.htaccess) with Apache/Tomcat 5 to prevent access

Re: HELP -- need to get Basic Authentication working (.htaccess) with Apache/Tomcat 5 to prevent access

2007-09-19 Thread Kim Albee
M - I'm confused. we don't need SSL at all here... ??? clarification? thanks, Kim :-) On 9/19/00, Martin Gainty [EMAIL PROTECTED] wrote: http://www.apache-ssl.org/ M-- - Original Message - From: Kim Albee [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent:

Help with tomcat

2007-09-19 Thread Amnon Lahav
all of a sudden i can't access the server ' when i start it from within eclipse it doesn't report anything but can't acess from IE neither from inside eclipse as run at server / tomcat 5.5 eclipse 3.3 it worked great for half a year and now ... when i shutted the server now i got this message

Re: HELP -- need to get Basic Authentication working (.htaccess) with Apache/Tomcat 5 to prevent access

2007-09-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kim, Kim Albee wrote: I'm confused. we don't need SSL at all here... ??? clarification? Confusion is par for the course with responses from Martin. Since mod_jk (I assume you're using mod_jk) maps URIs to Tomcat, your mapping will occur before

Re: JSP - static mirroring

2007-09-19 Thread Dola Woolfe
--- Hassan Schroeder [EMAIL PROTECTED] wrote: On 9/15/07, Dola Woolfe [EMAIL PROTECTED] wrote: I have built a website with Tomcat, but all the pages are essentially static, as there are no forms, etc. I used JSP because I have libraries that produce HTML. Now I want to move the

Session uniqueness

2007-09-19 Thread Dale Nesbitt
Is there a way to enforce that a given username can only have one valid session at a time? -- Dale Nesbitt - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: JSP - static mirroring

2007-09-19 Thread Hassan Schroeder
On 9/19/07, Dola Woolfe [EMAIL PROTECTED] wrote: How do I configure Tomcat to process .html files as .jsp? Add this to the web.xml of the relevant Context: servlet-mapping servlet-namejsp/servlet-name url-pattern*.html/url-pattern /servlet-mapping

Tomcat Website

2007-09-19 Thread Timothy Wonil Lee
Hi, all, My apologies if this isn't the right mailing list to report this, but It's been about 10 days since tomcat 5.5.25 is released, yet the apache tomcat home page still shows the latest tomcat as 5.5.23 (http://tomcat.apache.org/index.html) Anybody going to update that page? Regards,

changing the default application

2007-09-19 Thread Thomas Schweikle
Hi! How can I change the default application from the tomcat ROOT/index.jsp page to an application installed in $CATALINA_HOME/Catalina/localhost/app.xml? I found the default application in web.xml and changed it from servlet-mapping servlet-namedefault/servlet-name

Re: Session uniqueness

2007-09-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dale, Dale Nesbitt wrote: Is there a way to enforce that a given username can only have one valid session at a time? Yes, but I'd imagine the question you're really asking is is there an /easy/ way to enforce... or, perhaps a standard way. The

RE: changing the default application

2007-09-19 Thread Caldarale, Charles R
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Thomas Schweikle Subject: changing the default application How can I change the default application from the tomcat ROOT/index.jsp page to an application installed in $CATALINA_HOME/Catalina/localhost/app.xml? Name your application ROOT -

Re: HELP -- need to get Basic Authentication working (.htaccess) with Apache/Tomcat 5 to prevent access

2007-09-19 Thread Martin Gainty
Confusing Chris- what happens when there is no .htaccess to place your RewriteRules? M-- - Original Message - From: Bill Barker [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Wednesday, September 19, 2007 9:28 PM Subject: Re: HELP -- need to get Basic Authentication working

RE: AccessControlException with Embedded Tomcat 5.5.23

2007-09-19 Thread S D
I appreciate your response Chuck. I'm using ant to build and execute my system. I wasn't able to figure out how to set the java.security.manager and java.security.policy args in my ant target. I assumed that it was ant's jvmarg but that option didn't work. I finally realized that the ant