How Can I integrate tomcat6 cometprocessor + apache2.2 (load balancing)

2009-06-02 Thread redmoon
Nice to meet you. I am trying to integrate tomcat6 and apache2.2 for load balancing. I tested connecting tomcat6 and apache2.2 (not nio) and load balancing, and it was successful.. By the way, I must use cometprocessor of tomcat6, so that I have to use nio protocol. When I send http request(come

RE: Windows x64 Installer

2009-06-02 Thread Caldarale, Charles R
> From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] > Subject: RE: Windows x64 Installer > > Now the reason why 4) below was not working (all 64-bit), is that I > didn't have an address specified in my tag. Apparently, at > all windows revs prior to 2008 server, if you didn't supply an I

RE: Just a few questions on my Tomcat Configuration

2009-06-02 Thread Caldarale, Charles R
> From: Josh Gooding [mailto:josh.good...@gmail.com] > Subject: Just a few questions on my Tomcat Configuration > > I have tomcat running on a dedicated Windows server (this > is a web server). Tomcat version? Always tell us that - we're not mind readers. > My /conf directory is not exactly th

RE: fonts in linux

2009-06-02 Thread Caldarale, Charles R
> From: newsletter [mailto:newslet...@energyts.com] > Subject: fonts in linux > > We have recently moved from a windows to a Linux platform and we have > noticed that the default fonts seem to have changed. Is there any way > of setting them that same as on the windows system. we are using tomcat5

Re: Authentication from the browser

2009-06-02 Thread Bill Barker
"Alec Swan" wrote in message news:34abb48b0906021503t158542a5ube612b5ccfad0...@mail.gmail.com... > On Tue, Jun 2, 2009 at 2:34 PM, Jonathan Mast > wrote: > >> Alec, so basically members of your client company should be able to have >> direct access to a servlet that is otherwise restricted to a

Just a few questions on my Tomcat Configuration

2009-06-02 Thread Josh Gooding
I have tomcat running on a dedicated Windows server (this is a web server). I have been reading apache's site on Virtual Hosts for tomcat and I have a few questions. Here is how I need to get the software up and running. 1 instance of tomcat to serve on port 80 across all sub-domains (not an issu

RE: Authentication from the browser

2009-06-02 Thread Martin Gainty
Alec- Here are the index.jsp contents from securityfilter POST to the Secure Page This form POSTs to the Secure Page. By entering a value here and clicking the submit button below, you can verify that POSTed parameters are maintained through the login sequence. " method="POST"> make sure you

RE: fonts in linux

2009-06-02 Thread Martin Gainty
//here is 1 style excerpted from styles/form.css /* A CSS Framework by Mike Stenhouse of Content with Style */ /* FORM ELEMENTS */ form { margin:0; padding:0; } //import of forms.css from /styles/main.css @import url(layout-navtop-localleft.css); @import url(layout.css); @

fonts in linux

2009-06-02 Thread newsletter
Hi all We have recently moved from a windows to a Linux platform and we have noticed that the default fonts seem to have changed. Is there any way of setting them that same as on the windows system. we are using tomcat5 on centos. cheers -

Re: [OT] Windows x64 Installer

2009-06-02 Thread André Warnier
János Löbb wrote: On May 29, 2009, at 7:15 PM, Markus Schönhaber wrote: János Löbb: Because the electron has resting mess, it will never go with speed of light. The info by the way is not supplied by the electron, but rather with electromagnetic waves around the wire who have no resting mes

Re: Which Do I SSL - httpd or Tomcat?

2009-06-02 Thread André Warnier
Alston, Brian (US SSA) wrote: What I have is 3 virtual servers (VMWare -> Windows Server 2003). One server has Apache httpd v2.2.11 and two other servers running Apache Tomcat v6.0.18. The Tomcat servers are independently accessible from outside of the httpd server; so, I assume that I wi

Re: Authentication from the browser

2009-06-02 Thread Alec Swan
> > ? You can't put HTTP headers "in" a link, unless you're processing > it through some proxy mechanism... > Looks like the last SecurityFilter build was released on Dec. 14, 2004, which makes me hesitant to use it. I am wondering if it is possible to use JavaScript to include the user name and

RE: element type "taglib" must be declared

2009-06-02 Thread Caldarale, Charles R
> From: Tom1973 [mailto:garyp1...@gmail.com] > Subject: element type "taglib" must be declared > > Starting service Tomcat-Standalone > Apache Tomcat/4.0.1 You're trying to use a Tomcat that's over 7.5 years old? Please try this on a supported level (even 4.1.39, if you absolutely must have anc

Re: Authentication from the browser

2009-06-02 Thread Alec Swan
On Tue, Jun 2, 2009 at 2:34 PM, Jonathan Mast wrote: > Alec, so basically members of your client company should be able to have > direct access to a servlet that is otherwise restricted to a handful of > users who must authenicate themselves with a username/password login, > right? > Yes, this is

Re: ISAPI issues

2009-06-02 Thread Rainer Jung
On 02.06.2009 23:30, dljohnson69 wrote: > Actually I am still on 1.2.27 but am willing to update, just cannot find a > compiled download of the 1.2.28 dll. http://tomcat.apache.org/download-connectors.cgi > However, I made those changes and now there are no errors in the isapi.log > but the brows

element type "taglib" must be declared

2009-06-02 Thread Tom1973
I am having a hell of a time trying to deploy an app I wrote in JDeveloper on tomcat. I put the war file under the webapps directory and when I start tomcat is creates a folder for it but I get some errors messages. Starting service Tomcat-Standalone Apache Tomcat/4.0.1 PARSE error at line 1 col

Re: ISAPI issues

2009-06-02 Thread dljohnson69
Actually I am still on 1.2.27 but am willing to update, just cannot find a compiled download of the 1.2.28 dll. However, I made those changes and now there are no errors in the isapi.log but the browser errors with "service temporary unavailable". When I check the logs I get "All Tomcat instance

RE: Windows x64 Installer

2009-06-02 Thread Jeffrey Janner
Eureka I figured this out!! First, on 3) below. The reason it worked was that Tomcat just ignored the 32-bit APR library. Acted as though it wasn't there. Once I set up an HTTPS connector, I noticed this because the error came back that it couldn't find ".keystore" file. Now the reason wh

Re: Authentication from the browser

2009-06-02 Thread Hassan Schroeder
On Tue, Jun 2, 2009 at 1:01 PM, Alec Swan wrote: > We have one corporate customer who is putting a link to our servlet on their > intranet web page. Therefore, we know the domain name of the users who need > custom authentication. Seems iffy -- none of these users will ever be working remotely a

Re: Authentication from the browser

2009-06-02 Thread Jonathan Mast
Alec, so basically members of your client company should be able to have direct access to a servlet that is otherwise restricted to a handful of users who must authenicate themselves with a username/password login, right? One solution to this situation would be to create a simple servlet that snif

RE: jk Status not showing errors

2009-06-02 Thread Lawrence Lamprecht
Below is the config that I have and this works. I have looked at your workers.properties file. There are few entries that I am not sure of. So I would suggest trying to simplify your config until you get a functional system. Once you reach that stage, then you can add more complication to it

Re: jk Status not showing errors

2009-06-02 Thread Rainer Jung
On 02.06.2009 21:46, Matthew Laird wrote: > > Rainer Jung wrote: > >> Assuming that you did refresh the jkstatus display: what is your test >> client? The fact that you see OK/IDLE, but all requests go to the other >> node indicates, that you are using requests with associated session, so >> the

Re: ISAPI issues

2009-06-02 Thread Rainer Jung
I assume you are using the latest version 1.2.28. That makes things easier to discuss. On 02.06.2009 21:53, dljohnson69 wrote: > Cool, maybe you can help more than the log files then. Are you referring to > the configuration of the workers.properties and/or the uriworkermap files or > is there so

Re: Authentication from the browser

2009-06-02 Thread Alec Swan
I may not be explaining it clearly. We have one corporate customer who is putting a link to our servlet on their intranet web page. Therefore, we know the domain name of the users who need custom authentication. We can also tell the customer to put whatever we need in the link, such as HTTP header

Re: ISAPI issues

2009-06-02 Thread dljohnson69
Cool, maybe you can help more than the log files then. Are you referring to the configuration of the workers.properties and/or the uriworkermap files or is there something else that could be involved as well? I just started with a basic setup as instructed by some sites. Here is what I have, if

Re: jk Status not showing errors

2009-06-02 Thread Matthew Laird
Rainer Jung wrote: Assuming that you did refresh the jkstatus display: what is your test client? The fact that you see OK/IDLE, but all requests go to the other node indicates, that you are using requests with associated session, so the balancer is not allowed to send them to the other node and

Re: jk Status not showing errors

2009-06-02 Thread Rainer Jung
On 02.06.2009 21:40, Matthew Laird wrote: > I'm not seeing anything like that. I just took both Tomcats down, I > instantly get the 503 from Apache when I try to load the application. Assuming that there is no mod_proxy in the game. When there is a 503, you will have [error] log lines in the JK l

Re: jk Status not showing errors

2009-06-02 Thread Rainer Jung
On 02.06.2009 20:53, Matthew Laird wrote: > Unfortunately I'm not seeing that. What I did was start both Tomcats in > my LB pair, start Apache, then I take the second Tomcat down to see if > it will detect it being failed. > > Unfortunately it never seems to, it just shows the second as OK/IDLE,

Re: jk Status not showing errors

2009-06-02 Thread Matthew Laird
I'm not seeing anything like that. I just took both Tomcats down, I instantly get the 503 from Apache when I try to load the application. However tailing the mod_jk.log, I just see entries like this: [Tue Jun 02 12:36:23 2009] jkstatus www.innatedb.ca 0.000360 [Tue Jun 02 12:36:26 2009] jkstat

Re: ISAPI issues

2009-06-02 Thread Rainer Jung
On 02.06.2009 19:42, dljohnson69 wrote: > I have a Tomcat install that is working okay but going through the > isapi_redirect it gets a "bad gateway" error. The isapi.log has errors > that says it cannot connect to tomcat, "tomcat is down or refused > connection". Any ideas?? Bad gateway plus

RE: jk Status not showing errors

2009-06-02 Thread Lawrence Lamprecht
What you could do is tail -f mod_jk.log file. Then take down the tomcat, see if the errors appear. You should see something like the following. Good Entries to Track Attempting to map context URI '/search-engine*' ajp_unmarshal_response::jk_ajp_common.c (621): status = 302 Maintaining worker l

Custom annotations in a backing bean

2009-06-02 Thread Pawel Zmarlicki
I use some custom annotations in backing beans in my application. They works fine as long as the attribute metadata-complete in web.xml is set to false. However, when I set it to true, I get the following exception when JSF is trying to create an instance of the backing bean: java.lang.Null

Re: jk Status not showing errors

2009-06-02 Thread Matthew Laird
Unfortunately I'm not seeing that. What I did was start both Tomcats in my LB pair, start Apache, then I take the second Tomcat down to see if it will detect it being failed. Unfortunately it never seems to, it just shows the second as OK/IDLE, and happily directs all requests to the first.

Re: Authentication from the browser

2009-06-02 Thread Hassan Schroeder
On Tue, Jun 2, 2009 at 11:03 AM, Alec Swan wrote: > Hassan, I don't think that the goals are contradictory, because each goal > applies to its own group of users: our customer users and everybody else. > Customer users should not have to enter user name and password, but > everybody else should.

Re: Authentication from the browser

2009-06-02 Thread Alec Swan
Hassan, I don't think that the goals are contradictory, because each goal applies to its own group of users: our customer users and everybody else. Customer users should not have to enter user name and password, but everybody else should. Also, in general it is possible to authenticate a user with

Re: JSP/Japer in batch

2009-06-02 Thread Tim Funk
A better fit is Velocity or Freemarker for templating outside of a web environment. -Tim Mitch Claborn wrote: I'm looking for a good general purpose template engine to use with various Java projects, not just web projects. Is it possible to use Jasper outside of a servlet engine? -

JSP/Japer in batch

2009-06-02 Thread Mitch Claborn
I'm looking for a good general purpose template engine to use with various Java projects, not just web projects. Is it possible to use Jasper outside of a servlet engine? Mitch - To unsubscribe, e-mail: users-unsubscr...@tomcat

ISAPI issues

2009-06-02 Thread dljohnson69
I have a Tomcat install that is working okay but going through the isapi_redirect it gets a "bad gateway" error. The isapi.log has errors that says it cannot connect to tomcat, "tomcat is down or refused connection". Any ideas?? -- View this message in context: http://www.nabble.com/ISAPI-is

Re: Authentication from the browser

2009-06-02 Thread Hassan Schroeder
On Tue, Jun 2, 2009 at 10:22 AM, Alec Swan wrote: > We would also like to continue using the existing authentication mechanism. > So, the question is how can we ... allow authentication to happen > without requiring the end-user to type in the user name and password? Your goals seem contradicto

Authentication from the browser

2009-06-02 Thread Alec Swan
I implemented a servlet and deployed it in Tomcat 6.0. The servlet is secured using Tomcat authentication mechanism which reads user credentials from the conf/users.xml file. We have a customer who would like to put a link on a web page (hosted by their server) which will invoke the servlet (hoste

Re: Caching of static content

2009-06-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jukka, On 5/19/2009 7:58 AM, Jukka Raanamo wrote: > I was trying to create a Filter that generates the some content as files (if > required) into the file system and lets the default servlet handle the rest. Interesting idea. > However I noticed tha

Re: Windows x64 Installer

2009-06-02 Thread János Löbb
On May 29, 2009, at 7:15 PM, Markus Schönhaber wrote: János Löbb: Because the electron has resting mess, it will never go with speed of light. The info by the way is not supplied by the electron, but rather with electromagnetic waves around the wire who have no resting mess, Oh, what a mes

Re: How to do with response.sendError() after the ServletOutputStream is established?

2009-06-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 流水音, On 6/1/2009 1:55 AM, 流水音 wrote: > when the maxcount() returns 15, the exception is thrown out before the > first buffer is flushed, then client can get the response code of: 605 > but when the maxcount() returns 9, the exception is thrown out

Re: Newbie question: How to test if Tomcat is running?

2009-06-02 Thread will trillich
On Tue, Jun 2, 2009 at 8:46 AM, Kai Behncke wrote: > Dear users, > > I have installed tomcat on a Debian Etch-System via > > apt-get install tomcat5.5 tomcat5.5-admin tomcat5.5-webapps > > and started it with /etc/init.d/tomcat start > > Now I would like to test if it runs on my remote server, but

RE: Which Do I SSL - httpd or Tomcat?

2009-06-02 Thread Alston, Brian (US SSA)
What I have is 3 virtual servers (VMWare -> Windows Server 2003). One server has Apache httpd v2.2.11 and two other servers running Apache Tomcat v6.0.18. The Tomcat servers are independently accessible from outside of the httpd server; so, I assume that I will need to place SSL on all thr

RE: Which Do I SSL - httpd or Tomcat?

2009-06-02 Thread Martin Gainty
Brian if you're running TC standalone (without Apache or any other webserver FE) an excellent tutorial on implementing SSL in TC available to read at http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html Q:does outside world assume outside the uk? Martin Gainty

RE: Newbie question: How to test if Tomcat is running?

2009-06-02 Thread Martin Gainty
test locally e.g. http://localhost:PORT port attribute defined in http Date: Tue, 2 Jun 2009 06:46:48 -0700 > From: kai-behn...@gmx.de > To: users@tomcat.apache.org > Subject: Newbie question: How to test if Tomcat is running? > > > Dear users, > > I have installed tomcat on a Debian Etch-Sys

Re: Newbie question: How to test if Tomcat is running?

2009-06-02 Thread Markus Schönhaber
Peter Crowther: >> From: Kai Behncke [mailto:kai-behn...@gmx.de] >> I have installed tomcat on a Debian Etch-System via >> http://www.myhomepage.de:8180 >> >> nothing at all appears? > > Unless Debian changes Tomcat's configuration a lot, the default port is port > 8080, not 8180. Try that? I

RE: Which Do I SSL - httpd or Tomcat?

2009-06-02 Thread Alston, Brian (US SSA)
All Well ... I believe I have my answer. Thank you all very much for reading and replying. Have a good day From: Zeeshan Ahmad [zah...@i2cinc.com] Sent: Tuesday, June 02, 2009 10:05 AM To: 'Tomcat Users List' Subject: RE: Which Do I SSL - httpd or Tom

RE: Newbie question: How to test if Tomcat is running?

2009-06-02 Thread Peter Crowther
> From: Kai Behncke [mailto:kai-behn...@gmx.de] > I have installed tomcat on a Debian Etch-System via > apt-get install tomcat5.5 tomcat5.5-admin tomcat5.5-webapps > > and started it with /etc/init.d/tomcat start > > Now I would like to test if it runs on my remote server, but > if I type: > > http

RE: Which Do I SSL - httpd or Tomcat?

2009-06-02 Thread Zeeshan Ahmad
if your tomcats are accessible from out side world then, you have to add ssl on Tomcats as well otherwise its ok and there should be some security (e.g Firewall) on the network level, thanks. Best Regards, Zeeshan Ahmad. Associate Manager SCM. P Save a tree...pls don't print this e-mail unless n

Newbie question: How to test if Tomcat is running?

2009-06-02 Thread Kai Behncke
Dear users, I have installed tomcat on a Debian Etch-System via apt-get install tomcat5.5 tomcat5.5-admin tomcat5.5-webapps and started it with /etc/init.d/tomcat start Now I would like to test if it runs on my remote server, but if I type: http://www.myhomepage.de:8180 nothing at all appea

RE: Which Do I SSL - httpd or Tomcat?

2009-06-02 Thread Peter Crowther
> From: Alston, Brian (US SSA) [mailto:brian.als...@baesystems.com] > Thank you for reading and replying. Can I assume from > your reply that if I am not on a secure LAN that I should SSL > httpd and both Tomcat servers? SSL between httpd and Tomcat will protect the channel between httpd and T

Re: Which Do I SSL - httpd or Tomcat?

2009-06-02 Thread Serge Fonville
Hi, >    Thank you for reading and replying. Can I assume from your reply that if I > am not on a secure LAN that I should SSL httpd and both Tomcat servers? It depends, is your tomcat accessible directly instead of through httpd? HTH Regards, Serge Fonville -

RE: Which Do I SSL - httpd or Tomcat?

2009-06-02 Thread Alston, Brian (US SSA)
Hi, Thank you for reading and replying. Can I assume from your reply that if I am not on a secure LAN that I should SSL httpd and both Tomcat servers? Thank You From: Zeeshan Ahmad [zah...@i2cinc.com] Sent: Tuesday, June 02, 2009 9:15 AM To: 'Tomcat

RE: Which Do I SSL - httpd or Tomcat?

2009-06-02 Thread Peter Crowther
> From: Alston, Brian (US SSA) [mailto:brian.als...@baesystems.com] > I have a clustered/load-balanced Apache httpd and Tomcat > setup. I have one httpd front end that load balances for two > Tomcat back ends. I now want to add SSL to the mix but I am > confused. Do I add the SSL to the httpd s

RE: Which Do I SSL - httpd or Tomcat?

2009-06-02 Thread Zeeshan Ahmad
Hello, If your web and application servers are on a secure LAN then this would be better technique if you will add SSL on httpd rather then on all of them, your communication will be over ssl from the client to web server and vice versa. Best Regards, Zeeshan Ahmad. P Save a tree...pls don't pr

Which Do I SSL - httpd or Tomcat?

2009-06-02 Thread Alston, Brian (US SSA)
Hello All I have a clustered/load-balanced Apache httpd and Tomcat setup. I have one httpd front end that load balances for two Tomcat back ends. I now want to add SSL to the mix but I am confused. Do I add the SSL to the httpd server, to the two Tomcat servers, or to all of them? Thank yo

Re: Query timeout in dbcp

2009-06-02 Thread Mark Thomas
S Arvind wrote: > Hi Martin & Chris, > Thing i actually need is, if a query executed from web application then it > shold not execute more then 22mins. If it execute more then that means query > shold be cancelled from postgres and java should get exception on this > event. Is it possible? If a)

RE: Update server.xml without restart?

2009-06-02 Thread Peter Crowther
> From: Lars Nielsen Lind [mailto:lan...@tidtilforandring.dk] > is it possible to update server.xml with out restart? You can edit the file, but Tomcat will not notice the new configuration until you restart Tomcat. What do you want to do? There may be other ways to achieve your goal.

Update server.xml without restart?

2009-06-02 Thread Lars Nielsen Lind
Hi, is it possible to update server.xml with out restart? thanks, Lars - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Query timeout in dbcp

2009-06-02 Thread S Arvind
Hi Martin & Chris, Thing i actually need is, if a query executed from web application then it shold not execute more then 22mins. If it execute more then that means query shold be cancelled from postgres and java should get exception on this event. Is it possible? Thanks, Arvind S * "Many of li

Re: Which listeners required in server.xml?

2009-06-02 Thread Mark Thomas
Bill Barker wrote: >> >> > /> > > This looks like it is left over from the admin webapp (RIP). It doesn't > look like it does anything particularly useful anymore, but again the > warning about weird errors. There is almost certainly some code in there that is now redundant. However, this l

Re: Problems retrieving client certificates with mod_jk

2009-06-02 Thread Diego Manilla Suárez
OK, problem solved. I added SSLOptions +ExportCertData and now it's working again. Regards, Diego Diego Manilla Suárez escribió: Hi. I'm using client certificates in certain parts of my webapp. When I was using mod_proxy_ajp I could retrieve the client certificates from a request attribute:

Problems retrieving client certificates with mod_jk

2009-06-02 Thread Diego Manilla Suárez
Hi. I'm using client certificates in certain parts of my webapp. When I was using mod_proxy_ajp I could retrieve the client certificates from a request attribute: request.getAttribute("javax.servlet.request.X509Certificate"); But now I've switched to mod_jk and I always get null. This is my c

RE: Caching rendered page - reducing hits to the backend?

2009-06-02 Thread Peter Crowther
> From: Andre-John Mas [mailto:aj...@sympatico.ca] > I think I may end up simply ensuring that the database has > enough memory and slowly evaluate where the bottle necks are. It's often the best approach. You can spend a lot of time optimising places that turn out not to be the bottleneck. You

Re: Caching rendered page - reducing hits to the backend?

2009-06-02 Thread Andre-John Mas
On 2-Jun-2009, at 04:37, Pid wrote: Have you already measured the performance of your application and determined that caching the rendered pages is the appropriate thing to do - ie how have you determined that database access is the bottleneck? If not, caching page content may just hide a m

Re: Caching rendered page - reducing hits to the backend?

2009-06-02 Thread Pid
Have you already measured the performance of your application and determined that caching the rendered pages is the appropriate thing to do - ie how have you determined that database access is the bottleneck? If not, caching page content may just hide a multitude of performance related sins. JPA'