Re: How to serve two docBases under the same context path

2008-10-24 Thread Johnny Kewl
- Original Message - From: nlif [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Thursday, October 23, 2008 4:56 PM Subject: How to serve two docBases under the same context path Hi all, I am using Tomcat 6, and I have the following problem: I am trying to separate the static

relation between Tomcat and Apache Commons

2008-10-24 Thread Petr Sumbera
Hi Tomcat gurus, The question I have is rather philosophical and not really technical (I'm evaluating Tomcat 6 integration into OpenSolaris). While compiling Tomcat 6.0.16 it requires: Apache Commons Daemon Apache Commons Collections Apache Commons DBCP Apache Commons Pool But after

Re: relation between Tomcat and Apache Commons

2008-10-24 Thread Rainer Jung
Petr Sumbera schrieb: Hi Tomcat gurus, The question I have is rather philosophical and not really technical (I'm evaluating Tomcat 6 integration into OpenSolaris). While compiling Tomcat 6.0.16 it requires: Apache Commons Daemon Apache Commons Collections Apache Commons DBCP Apache

RE: Question about Tomcat context

2008-10-24 Thread Peter Crowther
From: Jerome Lepage - AKEROZ [mailto:[EMAIL PROTECTED] I have developped a web application on Tomcat (5.0.28). My webapp use Hibernate 3 and i have a Singleton pattern too. I want have my webapp deployed N time in same Tomcat Server. But i don't want to share context, hibernate and Singleton

Re: Question about Tomcat context

2008-10-24 Thread Serge Fonville
Hi Jerome. If you save everything that is specific to the context in that context, they operate as separate. Regards, Serge Fonville On Fri, Oct 24, 2008 at 12:02 PM, Jerome Lepage - AKEROZ [EMAIL PROTECTED] wrote: Hi, Thanks for quick answers My app is a Cms The sources, wars, deploy

Re: Question about Tomcat context

2008-10-24 Thread Jerome Lepage - AKEROZ
Hi, Thanks to you too for your answers. Have you tried just deploying it N times, making sure all the jars are in WEB-INF/lib? Each webapp should get its own classloader, and hence will have its own copies of Hibernate and your singleton. I *think* they'll have different contexts, too,

Suspending Servlet Request Acceptance?

2008-10-24 Thread Jeng Yu
Hi Folks! What is the best way for an administrator to tell Tomcat (or maybe tell a specific servlet) to temporarily stop accepting new requests for a running servlet? I'm thinking of a scheme like this: I put code in the servlet doGet()/doPost() processing block of the servlet and have it

RE: Question about Tomcat context

2008-10-24 Thread Peter Crowther
From: Jerome Lepage - AKEROZ [mailto:[EMAIL PROTECTED] But when i launch tomcat with this env vars : JAVA_OPTS=-XX:MaxPermSize=512m -Xms24m -Xmx512m Well, yes :-). That should give you enough perm space. Tomcat looks like not really care about the memory i grant to JVM. It's seems that

Obfuscating a Servlet

2008-10-24 Thread Jeng Yu
Hi All, I just wanted to know if I can first obfuscate my selvlet with ProGuard before I deploy it in Tomcat environment. Will doing this really protect my servlet and make it really difficult for someone to reverse engineer or decompile it, as people seem to say? Thank you. Jeng

Re: Question about Tomcat context

2008-10-24 Thread Serge Fonville
First a few questions; What does the app do Do the deployed applications differ What is the reason you want them separate Do they share anything, reaml,db,files, Do you need to be able to update them easily (all in one go) How do you intend to deploy them, war, copy, remote Is it an option to

Question about Tomcat context

2008-10-24 Thread Jerome Lepage - AKEROZ
Hi @ll, I have developped a web application on Tomcat (5.0.28). My webapp use Hibernate 3 and i have a Singleton pattern too. I want have my webapp deployed N time in same Tomcat Server. But i don't want to share context, hibernate and Singleton from one webapp to other. (Like database access

Re: Question about Tomcat context

2008-10-24 Thread Jerome Lepage - AKEROZ
Hi, Thanks for quick answers My app is a Cms The sources, wars, deploy method is the same. Only a Environement String (pointing to a specific config dir) is différent with Context. I don't want to they share anything at all, because is not same customers for each context. So for security

RE: Obfuscating a Servlet

2008-10-24 Thread Peter Crowther
From: Jeng Yu [mailto:[EMAIL PROTECTED] I just wanted to know if I can first obfuscate my selvlet with ProGuard before I deploy it in Tomcat environment. As long as ProGuard doesn't hack around with the servlet interface calls, you should have no problem. However, I've never tried. Will

Re: Suspending Servlet Request Acceptance?

2008-10-24 Thread Ronald Klop
I'd suggesting implementing a filter. http://tomcat.apache.org/tomcat-5.5-doc/servletapi/javax/servlet/Filter.html Ronald. Op vrijdag, 24 oktober 2008 om 12:21 uur schreef Tomcat Users List users@tomcat.apache.org: Subject: Suspending Servlet Request Acceptance? Date: Fri Oct 24 12:21:31

Re: Obfuscating a Servlet

2008-10-24 Thread Serge Fonville
Hi, Obfuscation makes it harder to reverse engineer your code, nothing more. If your code is of interest, there a people who can reverse engineer it. If you want to make sure people can't read your code. Use a wrapper to encrypt it and decrypt it through a value you can provide through the

Re: Obfuscating a Servlet

2008-10-24 Thread Ronald Klop
What is the risk? Do you deploy it in your own Tomcat environment where only you have access or do you distribute your class files? Ronald. Op vrijdag, 24 oktober 2008 om 12:28 uur schreef Tomcat Users List users@tomcat.apache.org: Subject: Obfuscating a Servlet Date: Fri Oct 24 12:28:50

Re: Obfuscating a Servlet

2008-10-24 Thread Tim Funk
If someone can get your .class file - someone can reverse engineer it. Obfuscating will slow someone down, not prevent. If people only have access via web browser, then only server side code is being executed and people can never see your binaries on your server so the only way to reverse

How can I use a class in javax package from the jar file in WEB-INF/lib instead of the one in common/lib.

2008-10-24 Thread Kevin SeongHyun Lee
Hello, I'm trying to use JavaMail and the necessary libraries are in the WEB-INF/lib of my application. It works fine in my development environment. However, the problem is that after it is installed in the production environment and tries to send an email, it always throws

Re: relation between Tomcat and Apache Commons

2008-10-24 Thread PetrS
Rainer Jung-3 wrote: Commons collections seems to be a relict and not really used. DBCP and pool is contained in tomcat-dbcp.jar. We ranem the packages in order to make to dbcp and pool classes independant of any webapp bundled dbcp or pool versions. And what about Eclipse JDT Runtime

Re: relation between Tomcat and Apache Commons

2008-10-24 Thread Rainer Jung
PetrS schrieb: Rainer Jung-3 wrote: And what about Eclipse JDT Runtime Binary? Are these also renamed into jasper-jdt.jar? The same reason? Here it's slightly different: The jar file used to include JDT is named non-standard, but the classes contained in it still have the original

Multiple IIS sites and ISAPI redirect problem

2008-10-24 Thread Mikko Pukki
Hi, I have Tomcat installed on a server that already has Default Website configured for other use and I cannot use it to redirect to Tomcat. So I created another website that should listen to port 80 and authenticate users via AD authentication. After authentication it should redirect requests

RE: How can I use a class in javax package from the jar file in WEB-INF/libinstead of the one in common/lib.

2008-10-24 Thread Caldarale, Charles R
From: Kevin SeongHyun Lee [mailto:[EMAIL PROTECTED] Subject: How can I use a class in javax package from the jar file in WEB-INF/libinstead of the one in common/lib. it must be designed to work in any Tomcat server with default Tomcat libraries and the server admin also said he has to keep

Re: How can I use a class in javax package from the jar file in WEB-INF/lib instead of the one in common/lib.

2008-10-24 Thread Pid
Kevin SeongHyun Lee wrote: Hello, I'm trying to use JavaMail and the necessary libraries are in the WEB-INF/lib of my application. It works fine in my development environment. However, the problem is that after it is installed in the production environment and tries to send an email, it

RE: Question about Tomcat context

2008-10-24 Thread Caldarale, Charles R
From: Peter Crowther [mailto:[EMAIL PROTECTED] Subject: RE: Question about Tomcat context From: Jerome Lepage - AKEROZ [mailto:[EMAIL PROTECTED] JAVA_OPTS=-XX:MaxPermSize=512m -Xms24m -Xmx512m For server environments, you usually want to set Xms to the same value as Xmx to avoid heap

TomCat question

2008-10-24 Thread Ghanta, Bose
Dear TomCat community, I need to your advice and I appreciate it very much. We are porting Sun J2SE to our platform and would like to know if TomCat can run on J2SE. Will Tomcat run with J2SE or does it require J2EE? I appreciate your input here. Thank you, Bose

Re: TomCat question

2008-10-24 Thread David Smith
That depends on the all important version of tomcat you are using. Versions 5.5.x and 6.0.x at least should run on a j2se no problem. --David Ghanta, Bose wrote: Dear TomCat community, I need to your advice and I appreciate it very much. We are porting Sun J2SE to our platform and would

RE: TomCat question

2008-10-24 Thread Peter Crowther
From: Ghanta, Bose [mailto:[EMAIL PROTECTED] Will Tomcat run with J2SE or does it require J2EE? The ones I have here run just fine on J2SE. - Peter - To start a new topic, e-mail: users@tomcat.apache.org To

RE: TomCat question

2008-10-24 Thread Ghanta, Bose
Dear Peter Crowther and David Smith, Thank you very much for your prompt response and I very much appreciate it. You both assured me that TomCat would run fine on J2SE. Have a nice weekend! Thank you, Bose -Original Message- From: Peter Crowther [mailto:[EMAIL PROTECTED] Sent: Friday,

Re: Multiple IIS sites and ISAPI redirect problem

2008-10-24 Thread Gabe Wong
Mikko, Please elaborate what you mean by doesn't work? Errors or IIS 404 or Tomcat Errors? Multiple sites - is it multiple Tomcat instances or 1 Tomcat instance with multiple apps? Mikko Pukki wrote: Hi, I have Tomcat installed on a server that already has Default Website configured for

RE: TomCat question

2008-10-24 Thread Caldarale, Charles R
From: Peter Crowther [mailto:[EMAIL PROTECTED] Subject: RE: TomCat question From: Ghanta, Bose [mailto:[EMAIL PROTECTED] Will Tomcat run with J2SE or does it require J2EE? The ones I have here run just fine on J2SE. Tomcat must be run on J2SE, not J2EE. The J2EE download includes jars

Tomcat 5.5 logging confusion

2008-10-24 Thread Wm.A.Stafford
I am installing Tomcat 5.5.27 on Windows XP as the servlet container for a Spring MVC app we will be hosting. I have installed many older versions of Tomcat with no problems but I'm stuck on this installation. In older Tomat versions when an application is started, in my case a Spring based

Re: How can I use a class in javax package from the jar file in WEB-INF/libinstead of the one in common/lib.

2008-10-24 Thread Kevin SeongHyun Lee
Thanks Chuck for your reply. Well, that javamail.jar in the common/lib is, as far as I know, from the repository of the Linux server. Yeah, I think so too. I may need to provide to or I can simply document it so the client can know what to do. Regards, Kevin 2008/10/25 Caldarale, Charles R

RE: TomCat question

2008-10-24 Thread Caldarale, Charles R
From: David Smith [mailto:[EMAIL PROTECTED] Subject: Re: TomCat question That depends on the all important version of tomcat you are using. Versions 5.5.x and 6.0.x at least should run on a j2se no problem. I think you're confusing the OP's question with the more typical one about JRE vs

RE: How can I use a class in javax package from the jar file in WEB-INF/libinstead of the one in common/lib.

2008-10-24 Thread Caldarale, Charles R
From: Kevin SeongHyun Lee [mailto:[EMAIL PROTECTED] Subject: Re: How can I use a class in javax package from the jar file in WEB-INF/libinstead of the one in common/lib. Well, that javamail.jar in the common/lib is, as far as I know, from the repository of the Linux server. Hence my comment

Re: How can I use a class in javax package from the jar file in WEB-INF/lib instead of the one in common/lib.

2008-10-24 Thread Kevin SeongHyun Lee
Thank you P for your reply. Well, it sounds weird, doesn't it? :D It's indeed not a company but a university so the application is running on the server at the uni. However, the application development is funded by some other organisation. :) We are now offering the service of the application

Re: How can I use a class in javax package from the jar file in WEB-INF/libinstead of the one in common/lib.

2008-10-24 Thread Kevin SeongHyun Lee
Yeah, absolutely. :) Well, they have their policy though. So I have to respect that. Thanks Chuck. Regards, Kevin 2008/10/25 Caldarale, Charles R [EMAIL PROTECTED] From: Kevin SeongHyun Lee [mailto:[EMAIL PROTECTED] Subject: Re: How can I use a class in javax package from the jar file

RE: Multiple IIS sites and ISAPI redirect problem

2008-10-24 Thread Martin Gainty
Good Point.. be aware there exists a predefined connection limit (I believe of 10) to quote Mladen Just like Apache Web server for Windows, Microsoft IIS maintains a separate child process and thread pool for serving concurrent client connections. For non server products like Windows 2000

RE: Tomcat 5.5 logging confusion

2008-10-24 Thread Martin Gainty
Generally handled by level= which specifies how much logging is requested from common/classes/logging.properties e.g. 1catalina.org.apache.juli.FileHandler.level = FINE 1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs 1catalina.org.apache.juli.FileHandler.prefix =

RE: Multiple IIS sites and ISAPI redirect problem

2008-10-24 Thread Peter Crowther
Martin, read the OP's information? From: Martin Gainty [mailto:[EMAIL PROTECTED] [...] For non server products like Windows 2000 Professional or Windows XP the number of concurrent connections is limited to 10 [...] Mikko Pukki wrote: System is Windows Server 2003 That's a server

Are multiple contexts of the same code code base visible to each other?

2008-10-24 Thread Jonathan Mast
Suppose I have 1 webapp named code-stuff that sits in my webapps directory. Now lets say i set up 2 subdomains of my website, foo.mysite.comand bar.mysite.com and each have an context that points to code-stuff. Will code in these two contexts be visible to each other? I know Tomcat copies to

Re: Multiple IIS sites and ISAPI redirect problem

2008-10-24 Thread Rainer Jung
Mikko Pukki schrieb: Hi, I have Tomcat installed on a server that already has Default Website configured for other use and I cannot use it to redirect to Tomcat. So I created another website that should listen to port 80 and authenticate users via AD authentication. After authentication

Re: Are multiple contexts of the same code code base visible to each other?

2008-10-24 Thread Serge Fonville
Unless specifically coded to do so, no thread can talk to another by default since there is no way of talking to another instance with an unknown name or identifier On Fri, Oct 24, 2008 at 7:09 PM, Jonathan Mast [EMAIL PROTECTED]wrote: Suppose I have 1 webapp named code-stuff that sits in my

Re: Are multiple contexts of the same code code base visible to each other?

2008-10-24 Thread Jonathan Mast
OK, thats what I thought. The problem that I'm worried about is how a certain class in my webapp is going to behave when 2 instances are of it are running. I have a class called MultiLogger I use like this: MultiLogger logger = MultiLogger.getInstance(com.mysite.stuff.foo.log);

Tomcat connectors 1.2.27: tagging on Sunday

2008-10-24 Thread Rainer Jung
We plan to tag Tomcat connectors (mod_jk and isapi/nsapi redirector) on Sunday. If there are any more test results and observed problems. please let us know. I just updated the sources on http://tomcat.apache.org/dev/dist/tomcat-connectors/jk/source to the most recent revision (r707693), and

Force getting Client Cert from browser

2008-10-24 Thread atul
I am initiating client ssl in my webapp by requesting attr org.apache.coyote.request.X509Certificate   User is prompted for the client cert at the browser and logs in just fine. When the user logs out, we invalidate the Http session. However, when the user tries to access another protected

RE: Force getting Client Cert from browser

2008-10-24 Thread Caldarale, Charles R
From: atul [mailto:[EMAIL PROTECTED] Subject: Force getting Client Cert from browser Tomcat never initiates ssl renegotiation - probably because it hangs onto sslsocket and sslsession object for performance. No - it's because the *browser* uses the same sessionid and connection. Nothing

RE: Are multiple contexts of the same code code base visible to each other?

2008-10-24 Thread Caldarale, Charles R
From: Jonathan Mast [mailto:[EMAIL PROTECTED] Subject: Re: Are multiple contexts of the same code code base visible to each other? The problem that I'm worried about is how a certain class in my webapp is going to behave when 2 instances are of it are running. Each webapp has its own

RE: Tomcat 5.5 logging confusion

2008-10-24 Thread Caldarale, Charles R
From: Wm.A.Stafford [mailto:[EMAIL PROTECTED] Subject: Tomcat 5.5 logging confusion I am installing Tomcat 5.5.27 on Windows XP as the servlet container for a Spring MVC app we will be hosting. Are you running Tomcat as a service or from the command line? I'd recommend doing it from the

Re: Force getting Client Cert from browser

2008-10-24 Thread atul
Chuck, Thanks for your prompt response. Invalidate the session after every request - but only if you really want to annoy your users. which session ? Is there somehow I can invalidate SSLSession ? I tried invalidating httpsession but that didnt work. I put a trace to make sure that browser

RE: tomcat 6 and subdirectories

2008-10-24 Thread Angelov, Rossen
Chuck, Thanks for the advise, I fixed the problem. IT was definitely related to the way contexts were defined and not to the servlet mappings. Some of your replies to older postings helped me figure out the problem. As a solution, I put the context files for the applications in

RE: tomcat 6 and subdirectories

2008-10-24 Thread Caldarale, Charles R
From: Angelov, Rossen [mailto:[EMAIL PROTECTED] Subject: RE: tomcat 6 and subdirectories I had to remove the appBase attribute from the host definition and provide an absolute path in the context's docBase. That's not right. Each Host should have an appBase; you just need to insure that

RE: tomcat 6 and subdirectories

2008-10-24 Thread Angelov, Rossen
OK, I will put the appBase back in the host. -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Friday, October 24, 2008 3:38 PM To: Tomcat Users List Subject: RE: tomcat 6 and subdirectories From: Angelov, Rossen [mailto:[EMAIL PROTECTED] Subject: RE:

RE: How can I use a class in javax package from the jar file in WEB-INF/lib instead of the one in common/lib.

2008-10-24 Thread Caldarale, Charles R
From: Kevin SeongHyun Lee [mailto:[EMAIL PROTECTED] Subject: Re: How can I use a class in javax package from the jar file in WEB-INF/lib instead of the one in common/lib. I believe, if a class is in java or javax package it might not be loaded from the libraries in the WEB-INF/lib directory

I'm more confused than ever about where STDOUT goes

2008-10-24 Thread Wm.A.Stafford
First of all, thanks to Martin and Chuck for the replies to my original question about Tomcat 5.5 logging. To reiterate: I've installed Tomcat5.5.27 on Windows XP as a stand alone (not service) server and I do not see any of the logged info that I would expect when I start Tomcat. At the

Re: I'm more confused than ever about where STDOUT goes

2008-10-24 Thread Mark Thomas
Wm.A.Stafford wrote: First of all, thanks to Martin and Chuck for the replies to my original question about Tomcat 5.5 logging. To reiterate: I've installed Tomcat5.5.27 on Windows XP as a stand alone (not service) server and I do not see any of the logged info that I would expect when I

Re: Force getting Client Cert from browser

2008-10-24 Thread atul
I tried sending a http (using http/1.1) Connection: close header on the response which didnt work either...sigh. From: atul [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Friday, October 24, 2008 2:03:20 PM Subject: Re: Force getting

Re: How can I use a class in javax package from the jar file in WEB-INF/lib instead of the one in common/lib.

2008-10-24 Thread Kevin SeongHyun Lee
Hey, Chuck. Thanks :D I read that tomcat doc as well yet missed that. I probably didn't really pay attention. :( Thank you. :) Yeah, I think you're right. After I said common/lib one is loaded first, I found something weird. Even if it is loaded first, I believe, it should work as both

RE: How can I use a class in javax package from the jar file in WEB-INF/lib instead of the one in common/lib.

2008-10-24 Thread Caldarale, Charles R
From: Kevin SeongHyun Lee [mailto:[EMAIL PROTECTED] Subject: Re: How can I use a class in javax package from the jar file in WEB-INF/lib instead of the one in common/lib. Even if it is loaded first, I believe, it should work as both libraries are the same javamail What frequently happens is