Re: Question about BASIC Authentication

2010-06-29 Thread Matthew Mauriello
Christopher, Thanks for the response. I have two directories in 'webapps' other than ROOT. ROOT redirects users to webappA. WebappA does not use tomcat's basic authentication but if you log into the application there are links inside it that sends the user to the SOLR webapp via http://user:passw

RE: LockoutRealm configuration problem

2010-06-29 Thread Caldarale, Charles R
> From: Robillard, Greg L [mailto:greg.l.robill...@lmco.com] > Subject: LockoutRealm configuration problem One more thing... > Jun 29, 2010 3:00:25 PM org.apache.catalina.loader.WebappClassLoader > validateJarFile > > INFO: validateJarFile(C:\Program Files\Apache Software > Foundation\Tomcat 6.0

Re: Question about BASIC Authentication

2010-06-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Matt, On 6/29/2010 5:57 PM, Matthew Mauriello wrote: > I am having a minor problem related to Tomcat's BASIC Authentication setup. > > A user access my custom web application in the 'webapps' folder which is > accessible to everyone in a separate sub

Re: PDF to acrobat

2010-06-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thad, On 6/29/2010 4:05 PM, Thad Humphries wrote: > "application/octet-stream" is one way, but it's by no means bullet-proof. > If the file name has an extension, some version of IE will blow off the MIME > type and do what they damn well please based

Re: ISAPI Redirector Help

2010-06-29 Thread Electronjockey
George, I know this has nothing to do with the solution to your problem, but try using a isapi_redirect.properties file instead of the registry. I find it makes configuration management much easier. George Sexton wrote: I'm trying to get the ISAPI redirector working on IIS 7.0 running under W

ISAPI Redirector Help

2010-06-29 Thread George Sexton
I'm trying to get the ISAPI redirector working on IIS 7.0 running under Windows Server Data Center 64-bit. When I make a request, I get served the isapi_redirector.dll. Here's the detailed information. IIS is running in 32 bit mode. I have downloaded the latest 32-bit ISAPI redirector.

RE: question for sso session replication in tomcat 6.0.26

2010-06-29 Thread Okubo, Yasushi (TSD)
Hi Pid I think I found a problem. Could you tell me how to fix this? Should I report it to bugzilla? SingleSignOn sessionEvent is destroying session, but DeltaSession is notifying session expiration to other node on same cluster. == singlesignon == protected void deregister(String ssoId) {

RE: question for sso session replication in tomcat 6.0.26

2010-06-29 Thread Okubo, Yasushi (TSD)
On 28/06/2010 23:19, Okubo, Yasushi (TSD) wrote: > On 28/06/2010 21:21, Okubo, Yasushi (TSD) wrote: >> Yes, I do. >> >> >name="webclust2" >>expireSessionsOnShutdown="false" > > Hmm. > > Can you unset the DeltaManager name attribute on all of your in

Question about BASIC Authentication

2010-06-29 Thread Matthew Mauriello
Hello, I am having a minor problem related to Tomcat's BASIC Authentication setup. A user access my custom web application in the 'webapps' folder which is accessible to everyone in a separate sub folder. I have another 'webapps' sub folder for SOLR which is secured with BASIC Authentication. I h

Re: Webapp reloading issue and intermittent 404 errors

2010-06-29 Thread Pid
On 29/06/2010 19:29, Konstantin Kolinko wrote: > 2010/6/29 Caldarale, Charles R : >>> From: Tomislav Petrović [mailto:t.petro...@inet.hr] >>> Subject: Re: Webapp reloading issue and intermittent 404 errors >>> >>> org.apache.catalina.util.RequestUtil.normalize(RequestUtil.java:131) >> >> IIRC, you

RE: LockoutRealm configuration problem

2010-06-29 Thread Robillard, Greg L
Thanks, I will deploy the new driver. -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Tuesday, June 29, 2010 4:08 PM To: Tomcat Users List Subject: Re: LockoutRealm configuration problem On 29/06/2010 21:14, Robillard, Greg L wrote: > username="fltwinds" passwo

Re: LockoutRealm configuration problem

2010-06-29 Thread Pid
On 29/06/2010 21:14, Robillard, Greg L wrote: > username="fltwinds" password="fltwinds" > driverClassName="org.gjt.mm.mysql.Driver" Old school! MySQL have a nice shiny new Connector/J driver, "com.mysql.jdbc.Driver", much better to use that unless you have a really good reason.

RE: LockoutRealm configuration problem

2010-06-29 Thread Robillard, Greg L
That was it, thanks. -Original Message- From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] Sent: Tuesday, June 29, 2010 3:34 PM To: Tomcat Users List Subject: Re: LockoutRealm configuration problem 2010/6/30 Robillard, Greg L : > When LockoutRealm is added to configuration, tomcat w

Re: LockoutRealm configuration problem

2010-06-29 Thread Konstantin Kolinko
2010/6/30 Robillard, Greg L : > When LockoutRealm is added to configuration, tomcat will not start and I > receive the following errors.  All runs well when the wrapper is not used. > > Apache Tomcat 6.0.20 Server The last released 6.0.x version is 6.0.26. The 6.0.28 release candidate build is a

Re: EL 2.2 in Tomcat 7 RC1/RC2 does not fully support method invocation, such as "#{helloWorldController.doSomething(helloWorldModel)}"

2010-06-29 Thread Mark Thomas
On 21/06/2010 15:16, John Wu wrote: Hi Mark, I just got a chance to test it on the Beta release. It's still broken, with a slightly different exception message. Confirmed. I'm pretty sure JSF is doing the right thing here and that I need to read the spec more carefully. I'll post an update w

Re: How to make a webapp restart

2010-06-29 Thread Dola Woolfe
Hi, I know whether init is called by a System.out.println("Hi") with a flush command. This servlet is never used by a request. But it is a 1 servlet. Thanks again, Dola - Original Message From: "Caldarale, Charles R" To: Tomcat Users List Sent: Tue, June 29, 2010 4:05:51 PM Subje

Re: PDF to acrobat

2010-06-29 Thread Dola Woolfe
There we go. Thank you! - Original Message From: David Fisher To: Tomcat Users List Sent: Tue, June 29, 2010 3:41:18 PM Subject: Re: PDF to acrobat You will want to do this: response.setContentType("application/pdf"); response.setHeader("Content-disposition", "i

LockoutRealm configuration problem

2010-06-29 Thread Robillard, Greg L
When LockoutRealm is added to configuration, tomcat will not start and I receive the following errors. All runs well when the wrapper is not used. Apache Tomcat 6.0.20 Server Server.xml configuration: ... ... Catalina ERROR: Jun 29, 2010 2:46:57 PM o

RE: How to make a webapp restart

2010-06-29 Thread Caldarale, Charles R
> From: Dola Woolfe [mailto:dolac...@yahoo.com] > Subject: Re: How to make a webapp restart > > but "not fire" I mean that init() does not get called. Does the init() method get called later, when the servlet is actually used by a request? How do you know if the init() method is called or not?

Re: PDF to acrobat

2010-06-29 Thread Thad Humphries
Comment inline below. On Tue, Jun 29, 2010 at 3:23 PM, Zachary Valentiner wrote: > Hi Dola, > > Setting the content type to "application/octet-stream" will force a > download. If I recall my headers correclty, setting "application/pdf" is as > close as you can get to telling it to open in the bro

RE: PDF to acrobat

2010-06-29 Thread Martin Gainty
you'll want to acquire and configure the acrobat plugin for your browser Firefox: http://kb2.adobe.com/cps/333/333563.html Internet Explorer http://kb2.adobe.com/cps/331/331025.html Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note d

Re: PDF to acrobat

2010-06-29 Thread David Fisher
You will want to do this: response.setContentType("application/pdf"); response.setHeader("Content-disposition", "inline"); For an attachment / download you will want to do: response.setContentType("application/pdf"); response.setHeader("Content-disposi

Re: PDF to acrobat

2010-06-29 Thread Zachary Valentiner
Hi Dola, Setting the content type to "application/octet-stream" will force a download. If I recall my headers correclty, setting "application/pdf" is as close as you can get to telling it to open in the browser without embedding it in an HTML file directly and thereby forcing the browser to use

Re: [ANN] Apache Tomcat 7.0.0 beta released

2010-06-29 Thread Tony Anecito
Thanks Mark. I wrote a set of web services that typically operate under 5 microseconds and the logs show around 1 millisecond. I use tomcat 6.0.20 with the APR instead of running a separate Apache Web Server using Mod JK. So for me the most of the recorded response time is not in the app but in

Re: PDF to acrobat

2010-06-29 Thread Hassan Schroeder
On Tue, Jun 29, 2010 at 12:16 PM, Dola Woolfe wrote: > For example, when I click on PDF links, sometimes it opens the file in the > browser window and at other times it downloads the file. > > What's the possible difference in the (common default) settings? Content-Disposition:

Re: PDF to acrobat

2010-06-29 Thread Dola Woolfe
Then I guess I am asking about most common default settings. For example, when I click on PDF links, sometimes it opens the file in the browser window and at other times it downloads the file. What's the possible difference in the (common default) settings? Thanks, Dola - Original Messag

Re: How to make a webapp restart

2010-06-29 Thread Dola Woolfe
Yes, you make good points Chuck. By "work" I mean that I get the message: "INFO: Reloading this Context has started" but "not fire" I mean that init() does not get called. Many thanks in advance, Pavel - Original Message From: "Caldarale, Charles R" To: Tomcat Users List Sent: Tue

Re: PDF to acrobat

2010-06-29 Thread Thad Humphries
What happens on the browser end is entirely up to the user. It's subject to the browser they are using, whatever browser plug-ins they've installed, and how they've set those plug-ins. On Tue, Jun 29, 2010 at 3:08 PM, Dola Woolfe wrote: > Hi, > > I set > > response.setContentType("application/p

PDF to acrobat

2010-06-29 Thread Dola Woolfe
Hi, I set response.setContentType("application/pdf"); as a result, the served up content triggers a "Download" rather than opening acrobat within browser window. Do I get to control what happens at client end? I want acrobat to open within browser. How do I achieve that? Thanks, Dola

Re: Webapp reloading issue and intermittent 404 errors

2010-06-29 Thread Konstantin Kolinko
2010/6/29 Caldarale, Charles R : >> From: Tomislav Petrović [mailto:t.petro...@inet.hr] >> Subject: Re: Webapp reloading issue and intermittent 404 errors >> >> org.apache.catalina.util.RequestUtil.normalize(RequestUtil.java:131) > > IIRC, you are not the first person to report an exception at this

RE: How to make a webapp restart

2010-06-29 Thread Caldarale, Charles R
> From: Dola Woolfe [mailto:dolac...@yahoo.com] > Subject: Re: How to make a webapp restart > > Whenever I recompile a library under tomcat/lib, I also > "touch" an "empty" .jar file under WEB-INF/lib. > > That seems to work What do you mean by "work"? That will typically reload the webapp (as

Re: How to make a webapp restart

2010-06-29 Thread Dola Woolfe
How about this trick then. Whenever I recompile a library under tomcat/lib, I also "touch" an "empty" .jar file under WEB-INF/lib. That seems to work, BUT: it states: Jun 29, 2010 2:08:36 PM org.apache.catalina.core.StandardContext reload INFO: Reloading this Context has started but a 1 servle

RE: question for sso session replication in tomcat 6.0.26

2010-06-29 Thread Okubo, Yasushi (TSD)
-Original Message- From: Pid [mailto:p...@pidster.com] Sent: Monday, June 28, 2010 4:01 PM To: Tomcat Users List Subject: Re: question for sso session replication in tomcat 6.0.26 On 28/06/2010 23:19, Okubo, Yasushi (TSD) wrote: > On 28/06/2010 21:21, Okubo, Yasushi (TSD) wrote: >> Yes,

RE: Webapp reloading issue and intermittent 404 errors

2010-06-29 Thread Caldarale, Charles R
> From: Tomislav Petrović [mailto:t.petro...@inet.hr] > Subject: Re: Webapp reloading issue and intermittent 404 errors > > org.apache.catalina.util.RequestUtil.normalize(RequestUtil.java:131) IIRC, you are not the first person to report an exception at this spot in the code. (Unfortunately, I

Does JSF 2.0 work on Tomcat 6.0.26 ?

2010-06-29 Thread Michael Amanti
Does JSF 2.0 work on Tomcat 6.0.26 ? I've installed... Tomcat 6.0.26 ( for Windows x64 arch ). JVM Version:1.6.0_20-b02 ( for Windows x64 arch ). I'm reading book entitled "Java Server Faces 2.0, The Complete Reference". Chapter 2, page 30 is entitle

Re: Convert a certificate from IIS (.PFX) into a (.keystore) for Apache Tomcat v 6.x

2010-06-29 Thread Bruno Harbulot
On 23/06/10 23:04, ian loyola wrote: Dear colleagues, I'm running IIS version 6 and Apache Tomcat 6.x on a Windows 2003 enterprise server. I had to renew SSL certificates for both the IIS and Tomcat web server. I was told to raise a CSR from the IIS server and create a certificate. The cert

RE: Help with tomcat configuration

2010-06-29 Thread Caldarale, Charles R
> From: btodd_22 [mailto:bran...@mortech-inc.com] > Subject: Re: Help with tomcat configuration > > it was my understanding that tomcat used the context.xml > within the project itself as the base and not the global > within the Catalina Ba Not quite sure what your unfinished sentence was suppose

Re: Help with tomcat configuration

2010-06-29 Thread btodd_22
btodd_22 wrote: > > I am trying to track down a problem that has something to do with this > error below > > [CODE]java.lang.NullPointerException > at java.util.Properties$LineReader.readLine(Properties.java:418) > at java.util.Properties.load0(Properties.java:337) > at java.

Re: [ANN] Apache Tomcat 7.0.0 beta released

2010-06-29 Thread Mark Thomas
On 29/06/2010 17:27, Tony Anecito wrote: Any performance improvements over 6.0.X due to refactoring? Not that you'll notice. Requests spend relatively little time in Tomcat code compared to application code so even if Tomcat 7 was twice as fast you'd be very unlikely to notice it. Most of the

Re: [ANN] Apache Tomcat 7.0.0 beta released

2010-06-29 Thread Tony Anecito
Any performance improvements over 6.0.X due to refactoring? Is memory leaks reported somewhere? Thanks, -Tony - Original Message From: Mark Thomas To: annou...@tomcat.apache.org; Tomcat Users List ; Tomcat Developers List Sent: Tue, June 29, 2010 5:45:59 AM Subject: [ANN] Apache To

RE: Help with tomcat configuration

2010-06-29 Thread btodd_22
n828cl wrote: > >> Now here is what i know, the code that is calling the >> Connection pool is correct > > All evidence to the contrary... > >> Is it incorrect to assume that tomcat can't find my >> db.properties file > > Yes, it is incorrect to assume that, especially since Tomcat isn't l

RE: Help with tomcat configuration

2010-06-29 Thread Caldarale, Charles R
> From: btodd_22 [mailto:bran...@mortech-inc.com] > Subject: Help with tomcat configuration > > Now here is what i know, the code that is calling the > Connection pool is correct All evidence to the contrary... > Is it incorrect to assume that tomcat can't find my > db.properties file Yes, i

RE: Possible to redeploy a JAR file without restarting Tomcat?

2010-06-29 Thread Caldarale, Charles R
> From: laredotornado [mailto:laredotorn...@gmail.com] > Subject: Re: Possible to redeploy a JAR file without restarting Tomcat? > > So would restarting one of my applicaitons pick up the new > shared JAR and all the other apps would continue to use the > old version? No - read the first respons

Help with tomcat configuration

2010-06-29 Thread btodd_22
I am trying to track down a problem that has something to do with this error below [CODE]java.lang.NullPointerException at java.util.Properties$LineReader.readLine(Properties.java:418) at java.util.Properties.load0(Properties.java:337) at java.util.Properties.load(Properti

Re: Possible to redeploy a JAR file without restarting Tomcat?

2010-06-29 Thread laredotornado
Regarding "restarting" an application, the JAR file in question is in a common shared directory by all applications and each application has its files deployed in a folder within the CATALINA_HOME/webapps directory. So would restarting one of my applicaitons pick up the new shared JAR and all t

Does tomcat replicate all sessions before starting the application when redeploying?

2010-06-29 Thread Dimitar Asenov
Hi everyone, In the company I work for we have a Tomcat cluster with two instances (version 5.5.25) running on a single Xen virtual machine (kernel 2.6.18). We use the default, one line, cluster configuration. Our main goal is to make sure our web page is available and that all sessions survive du

Re: jconsole

2010-06-29 Thread Kaushal Shriyan
On Tue, Jun 29, 2010 at 7:22 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Kaushal Shriyan [mailto:kaushalshri...@gmail.com] > > Subject: jconsole > > > > Does jconsole > > http://java.sun.com/developer/technicalArticles/J2SE/jconsole.html > > cause additional overheads o

RE: jconsole

2010-06-29 Thread Caldarale, Charles R
> From: Kaushal Shriyan [mailto:kaushalshri...@gmail.com] > Subject: jconsole > > Does jconsole > http://java.sun.com/developer/technicalArticles/J2SE/jconsole.html > cause additional overheads on a server? Of course - not even Java can avoid Heisenberg. Just how much overhead depends on what y

jconsole

2010-06-29 Thread Kaushal Shriyan
Hi, Does jconsole http://java.sun.com/developer/technicalArticles/J2SE/jconsole.html cause additional overheads on a server? Thanks, Kaushal

Re: "Application" vars -

2010-06-29 Thread Shay Rojansky
Hi Eric. Would making your servlet reload all application vars not be akin to simply reloading your servlet altogether, by changing context/init params in your web.xml or context.xml? If you really want to avoid an application reload, why not just have your app read its values from a properties c

Re: [ANN] Apache Tomcat 7.0.0-beta released

2010-06-29 Thread Mark Thomas
On 29/06/2010 13:48, Mark Thomas wrote: The Apache Tomcat team announces the immediate availability of Apache Tomcat 7.0.0 beta. Folks, I think the list might be about to get a number of these. It looked like I was having e-mail issues so the message got resent several times. Apologies in adv

[ANN] Apache Tomcat 7.0.0 beta released

2010-06-29 Thread Mark Thomas
The Apache Tomcat team announces the immediate availability of Apache Tomcat 7.0.0 beta. Note that this version has 4 zip binaries: a generic one and three bundled with Tomcat native binaries for Windows operating systems running on different CPU architectures. Apache Tomcat 7.0 includes new f

Re: Webapp reloading issue and intermittent 404 errors

2010-06-29 Thread Mark Thomas
On 29/06/2010 12:51, Tomislav Petrović wrote: This is problematic code (part of normalize method): // Resolve occurrences of "//" in the normalized path while (true) { int index = normalized.indexOf("//"); if (index< 0) br

Re: Webapp reloading issue and intermittent 404 errors

2010-06-29 Thread Tomislav Petrović
Pid said on 29.6.2010 13:36: On 29/06/2010 11:51, Tomislav Petrović wrote: Tomislav Petrović said on 28.6.2010 15:46: Caldarale, Charles R said on 28.6.2010 15:32: Seems to me it is related to web app reloading but this is my blind guess. What makes you suspicious that reloading is going on?

[ANN] Apache Tomcat 7.0.0-beta released

2010-06-29 Thread Mark Thomas
The Apache Tomcat team announces the immediate availability of Apache Tomcat 7.0.0 beta. Apache Tomcat 7.0 includes new features over Apache Tomcat 6.0, including support for the new Servlet 3.0, JSP 2.2 and EL 2.2 specifications, web application memory leak detection and prevention, improved s

Re: [ANN] Tomcat blog now available

2010-06-29 Thread Pid
On 29/06/2010 12:17, Mark Thomas wrote: > The Apache Tomcat team is pleased to announce the creation of the Apache > Tomcat blog: > http://blogs.apache.org/tomcat/ > > The Tomcat developers will be regularly blogging about Tomcat > development and Tomcat related topics. To start the blog off, ther

Re: Webapp reloading issue and intermittent 404 errors

2010-06-29 Thread Pid
On 29/06/2010 11:51, Tomislav Petrović wrote: > Tomislav Petrović said on 28.6.2010 15:46: >> Caldarale, Charles R said on 28.6.2010 15:32: Seems to me it is related to web app reloading but this is my blind guess. >>> >>> What makes you suspicious that reloading is going on? >>> >> >> Ju

[ANN] Tomcat blog now available

2010-06-29 Thread Mark Thomas
The Apache Tomcat team is pleased to announce the creation of the Apache Tomcat blog: http://blogs.apache.org/tomcat/ The Tomcat developers will be regularly blogging about Tomcat development and Tomcat related topics. To start the blog off, there is a short entry on Tomcat 7. Thank you, --

Re: Webapp reloading issue and intermittent 404 errors

2010-06-29 Thread Tomislav Petrović
Tomislav Petrović said on 28.6.2010 15:46: > Caldarale, Charles R said on 28.6.2010 15:32: > >> Seems to me it is related to web app reloading but this > >> is my blind guess. > > > > What makes you suspicious that reloading is going on? > > > > Just my VERY BIG AND BLIND guess based on classes in

Re: connector configuration values - need help to review

2010-06-29 Thread Rainer Jung
In addition to the comments in your other discussion thread. On 28.06.2010 23:23, Rumpa Giri wrote: Worker.properties ps=\ # ps=/ Remove, doesn't mean anything. worker.list=loadbalancer worker.template.type=ajp13 worker.template.lbfactor=1

Re: questions on documentation for configuring AJP connector

2010-06-29 Thread Rainer Jung
On 28.06.2010 22:06, Rumpa Giri wrote: We are trying to upgrade to the latest connector. While going through the worker properties variables to set we have few questions regarding the following - Please do also grab the source tarball. In version 1.2.30 it contains an example configuration fi

Re: How to make a webapp restart

2010-06-29 Thread Pid
On 28/06/2010 23:22, Dola Woolfe wrote: > > > > > - Original Message > From: "Caldarale, Charles R" > To: Tomcat Users List > Sent: Mon, June 28, 2010 5:54:47 PM > Subject: RE: How to make a webapp restart > >> From: Dola Woolfe [mailto:dolac...@yahoo.com] >> Subject: How to make a

Re: exception on hitting tomcat url

2010-06-29 Thread Pid
On 29/06/2010 05:38, vinay basavanal wrote: > Ya sorry for that > Tomcat version is 6.0.16 > and am attaching the server.xml file We don't usually ask you to /attach/ files because the mailing list sometimes strips attachments, and because various mail archives don't store them. One of the advan

RE: Connection is closed when CometEvent.close is called during an event

2010-06-29 Thread Reich, Matthias
> -Original Message- > From: Konstantin Kolinko > Sent: Friday, June 11, 2010 4:46 AM > To: Tomcat Users List > Subject: Re: Connection is closed when CometEvent.close is > called during an event > > Regarding Comet + Keep-Alive, if it does not work, it is worth filing > an enhancemen

Re: How to make a webapp restart

2010-06-29 Thread Christoph Kukulies
Am 29.06.2010 00:22, schrieb Dola Woolfe: Thanks, Chuck. And is there a setting to have Tomcat automatically restarted when jar changes under tomcat/lib? I'm not sure if this is of any use for you, Dola, but when a .war file is deployed to the webapps directory, tomcat loads the webapp.