RE: How to validate a session created on one server

2004-11-22 Thread Lee Chin Khiong
How to use clustering. -Original Message- From: Peter Johnson [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 23, 2004 1:55 PM To: Tomcat Users List Subject: Re: How to validate a session created on one server Use clustering. Lee Chin Khiong wrote: >How to validate a session created

RE: help with out of memory error

2004-11-22 Thread Carl Olivier
Oh another thing: C:\j2sdk1.4.2_04\jre\bin\client\jvm.dll Should read: C:\j2sdk1.4.2_04\jre\bin\server\jvm.dll So as not to cause a problem with the -server switch Carl -Original Message- From: Stephen Charles Huey [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 23, 2004 12:56 AM

RE: help with out of memory error

2004-11-22 Thread Carl Olivier
Greetings. I would suggest using the following switch in your startup - you can research and tweak as required: -Xss512k I have had the same problem you are having on a number of occassions - where the JVM mem usage is NOT high, and the machine apparently has enough RAM allocated. After extensi

Re: How to validate a session created on one server

2004-11-22 Thread Peter Johnson
Use clustering. Lee Chin Khiong wrote: How to validate a session created on one server ? Means if I have an apps running on 1st server then another apps runnning on the other server, of course I don't want them to re-login. Any idea ? -

How to validate a session created on one server

2004-11-22 Thread Lee Chin Khiong
How to validate a session created on one server ? Means if I have an apps running on 1st server then another apps runnning on the other server, of course I don't want them to re-login. Any idea ?

Re: high traffic Tomcat sites out there?

2004-11-22 Thread Quinton Delpeche
On Monday 22 November 2004 15:52, Shapira, Yoav wrote: > Of > course, your question itself is not that appropriate, because any answer > is meaningless as it does not apply to your specific apps. Go run > stress testers and figure out your max supported load for yourselves. I tend to agree. You n

help with context.xml

2004-11-22 Thread Scott Pippin
I am trying to set up a context for an application called IMS. I upload the war file to tomcat and it sticks the application and the .war under webapps. I am trying to set up the Context to redirect the logs to a different log than catalina.out. Inside my webapp I have the following: D

Re: Bug using  ?

2004-11-22 Thread Gili
Solved by replacing   with  . Under JSP 2.0 you apparently need to double-escape entity tags. Gili On Mon, 22 Nov 2004 21:38:15 -0500, Gili wrote: >Hi, > I've got a small testcase using JSP 2.0: >http://www.w3.org/1999/xhtml"; > xmlns:jsp="http://java.sun.com/JSP/Page"; >

How to set Error Log for Unpacked Web Application in Tomcat 5.5

2004-11-22 Thread inr
Hai all, I need the Configuration for setting the error Log file for my WebApplication running on Tomcat 5.5. How to set the Error log file in the Server.xml file. [ In Tomcat 5.5 ] Thanks for ever, inr -

RE: problem with simultaneous query submissions

2004-11-22 Thread Satish Plakote
here is my dopost method // Code starts here public void doPost(HttpServletRequest req,HttpServletResponse res) throws IOException, ServletException { System.out.println("Inside doPost"); String strQueryFlag =req.getParameter("new"); if(Integer.parseInt(st

Bug using  ?

2004-11-22 Thread Gili
Hi, I've got a small testcase using JSP 2.0: http://www.w3.org/1999/xhtml"; xmlns:jsp="http://java.sun.com/JSP/Page"; version="2.0">   When I try compiling this I get: org.apache.jasper.JasperException: The entity "nbsp" was referenced, but not declared. Oth

Re: [OT] Asynchronous Event processing API

2004-11-22 Thread QM
On Mon, Nov 22, 2004 at 08:43:19AM -0500, Tim Funk wrote: : I am hoping other people have this problem ... No thanks, I'm trying to get rid of my problems. ;) : I want to utilize an event processing system for when certain "things" : happen on a website I maintain. For example, if someone wishe

Re: problem with simultaneous query submissions

2004-11-22 Thread QM
Please post a *new* message when writing to the list. Replying to an old (unrelated) message confuses thread-aware mailers, which makes your question harder to find (and thus answer). On Tue, Nov 23, 2004 at 07:13:21AM +0530, Satish Plakote wrote: : I have written a servlet that takes the inpu

problem with simultaneous query submissions

2004-11-22 Thread Satish Plakote
hi, i am developing a search engine for my small database. I have written a servlet that takes the input from user , queries the database and creates objects of the information that is recieved. These objects (approximatley 10 ) are stored in the ArrayList which put in the session.using

Re: SSL and form-based login

2004-11-22 Thread erh
On Mon, Nov 22, 2004 at 08:21:11AM -0800, footh wrote: > On another note, once I'm in a page that is set to use > SSL all relative links within that page continue to > use SSL even though I would rather they be non-SSL. > Is there an easy way to prevent that other than > hardcoding absolute URLs i

RE: help with out of memory error

2004-11-22 Thread Stephen Charles Huey
I've seen most of that info before, but thanks for pointing it out. I'm really kind of clueless about what the problem could be. When I look at the Virtual Memory for Tomcat in the Task Manager, I see about 1.6 GB right now (whereas regular memory for Tomcat is about 300 MB). For Java, regular m

RE: help with out of memory error

2004-11-22 Thread Phillip Qin
Have you looked at this page? http://jakarta.apache.org/tomcat/faq/memory.html -Original Message- From: Stephen Charles Huey [mailto:[EMAIL PROTECTED] Sent: November 22, 2004 4:50 PM To: Tomcat User Subject: help with out of memory error Is this just a really ambiguous error message,

help with out of memory error

2004-11-22 Thread Stephen Charles Huey
Is this just a really ambiguous error message, or are there some specific places I can be hunting for an issue: Nov 22, 2004 3:53:42 PM org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run SEVERE: Caught exception executing [EMAIL PROTECTED], terminating thread java.lang.OutOfMemoryError:

RE: CGI Again...Servlet.service() for servlet cgi threw exception

2004-11-22 Thread Phillip Qin
CGIServlet does not support -wT in your perl script. Those switches are for debugging in perl. They are after your perl command, so, for example, if you test.pl contains #!/bin/perl -wT Then remove the -wT. Other things to check: - in your conf/web.xml, no need to put leading / cgiP

Re: Re[2]: setting JSESSION variable

2004-11-22 Thread Jacob Kjome
Sorry, I don't use jk2. However, I would think they would have made it jsessionid aware. I think addin the rewrite rule is the way to go, but you'll have to get verification of that from someone else. Good luck! Jake Quoting Alex Korneyev <[EMAIL PROTECTED]>: > Hello Jacob Kjome, > > l

RE: CGI Again...Servlet.service() for servlet cgi threw exception

2004-11-22 Thread Sergey Kamshilin
Phillip, Where do I have -wT??? /Sergeyk (Lab Documentation - "\\Lizard\rad\DraftDocs\msv\ctn\1290 Lab network description") Phone: 604 918-6360 Cell: 604 351-8966 > -Original Message- > From: Phillip Qin [mailto:[EMAIL PROTECTED] > Sent: Monday, November 22, 2004 1:11 PM > To: 'Tomcat

Re: high traffic Tomcat sites out there?

2004-11-22 Thread Peter Johnson
Joseph, Our site runs using Apache (1.3.x) and Tomcat (4.1.x) on 5 servers using LVS (www.linuxvirtualserver.org) for load balancing. This setup performs over 20M page impressions per month although we do cheat slightly by caching the front page every 60s and letting Apache serve it as a static

RE: CGI Again...Servlet.service() for servlet cgi threw exception

2004-11-22 Thread Phillip Qin
Remove -wT from your script. -Original Message- From: Sergey Kamshilin [mailto:[EMAIL PROTECTED] Sent: November 22, 2004 3:51 PM To: Tomcat Users List Subject: RE: CGI Again...Servlet.service() for servlet cgi threw exception Hello Mark, Servlet mapping: -

RE: CGI Again...Servlet.service() for servlet cgi threw exception

2004-11-22 Thread Sergey Kamshilin
Hello Mark, Servlet mapping: - cgi /cgi-bin/* - The URL: http://zee:8080/cgi-bin/index.pl Script index.pl: - #!/bin/perl print "Content type: text/html\n\n"; print "Hello World\n"; - T

RE: multipart/byteranges bug in tomcat 4.1.x

2004-11-22 Thread Mark Thomas
It depends on your application. The only way you will now for sure will be to upgrade and do lots of testing. There are always bugs in any software - the important issue is do they affect you. If you have the chance to upgrade I would go for the latest stable release which is currently 5.5.4. Obvi

Re[2]: setting JSESSION variable

2004-11-22 Thread Alex Korneyev
Hello Jacob Kjome, lovely :) however, since i have Apache as a middle man, i get this error: You don't have permission to access /secure;JSESSIONID=16E54F0A406582505A7A393E5307BC12&VA1=VAL1 on this server. this is related to : http://www.jguru.com/faq/view.jsp?EID=53878 however, i

RE: multipart/byteranges bug in tomcat 4.1.x

2004-11-22 Thread Vincent Gogan
Thanks. I'll ask for some quick advice. Is it safer (stability wise) to upgrade to 5.0.x rather than directly to 5.5.x? Thanks, Vincent > -Original Message- > From: Mark Thomas [mailto:[EMAIL PROTECTED] > Sent: Monday, November 22, 2004 2:38 PM > To: 'Tomcat Users List' > Subject: RE: mu

Re: JDBC transactions using MySQL / DBCP in Tomcat 5.0.28

2004-11-22 Thread Mark Matthews
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Trond G. Ziarkowski wrote: > Hi all! > > In my webapp I do two db inserts into two different tables. If the > second one fails I want to rollback the first one. My code is something > like the following: > > Connection con = gotten from jndi DataSo

Re: setting JSESSION variable

2004-11-22 Thread Jacob Kjome
Try... https://us.domain.com/secure;JSESSIONID=7D084BCFE46540FBB779486B4E003FD3?VAR1=VAL1 Yes, order is important! Jake Quoting Alex Korneyev <[EMAIL PROTECTED]>: > what is the proper way to set jsession id if i want my own id? > > basically the situation is as follows. > > my user authenticat

RE: multipart/byteranges bug in tomcat 4.1.x

2004-11-22 Thread Mark Thomas
Fixed in CVS for TC4 but I wouldn't expect a 4.1.32 release for some time (New Year at the earliest). Mark > -Original Message- > From: Shapira, Yoav [mailto:[EMAIL PROTECTED] > Sent: Monday, November 22, 2004 1:56 PM > To: Tomcat Users List > Subject: RE: multipart/byteranges bug in to

Re: Tomcat 4.1.30 not restoring JDBC connections

2004-11-22 Thread Sharad Ramadas
Whenever I encounter this problem I re-start the tomcat. On Mon, 22 Nov 2004 11:11:14 -0600, Alex Korneyev <[EMAIL PROTECTED]> wrote: > Hello All, > > has anyone ever experienced the following: > > we are using Tomcat's 4.1.30 connection pool. > > For some reason, when network connection goes

RE: high traffic Tomcat sites out there?

2004-11-22 Thread Shapira, Yoav
Hi, You can search the wiki (there's a "who's using Tomcat section) and archives of this list: there are sites that serve hundreds of concurrent requests for long periods of time, and millions of hits per day. Of course, your question itself is not that appropriate, because any answer is meaningl

RE: J2EE Policy Agent and Web Policy Agent

2004-11-22 Thread Shapira, Yoav
Hi, A google search seems to return a number of good and relevant results, including this one which has specific examples: http://docs.sun.com/source/816-6884-10/chapter2.html#wp37609. Yoav Shapira http://www.yoavshapira.com >-Original Message- >From: Derrick Koes [mailto:[EMAIL PROTECT

J2EE Policy Agent and Web Policy Agent

2004-11-22 Thread Derrick Koes
Does anyone have any experience using either of these with Tomcat? If so, can you point me to a good resource? Thanks, Derrick

setting JSESSION variable

2004-11-22 Thread Alex Korneyev
what is the proper way to set jsession id if i want my own id? basically the situation is as follows. my user authenticates into domain.com then depending on what his/her locale is i forward them to http://lang.domain.com * i.e. http://us.domain.com the problem is that once they authenticate an

Re: Enabling servlet reloading?

2004-11-22 Thread Ben Souther
reloadable="true" http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html On Mon, 2004-11-22 at 13:34, Stefan wrote: > Hi, > > What is entry (in server.xml) to allow for auto reloading of servlets in > Tomcat 5? Or can you set this in web.xml on a per application basis? > > > > St

RE: Server redirected too many times (20)

2004-11-22 Thread Allistair Crossley
We don't use server redirects as we use Struts request forwarding. One place the issue is happening in a JSP that uses JSTL's c:import tag to import an absolute URL to a HTML page perfectly accessible on the server (via iis) and also on browser request. Like I say, a Tomcat restart fixes these p

RE: Server redirected too many times (20)

2004-11-22 Thread Ben Souther
And you've verified that there are no circular references caused by response.sendRedirect calls? On Mon, 2004-11-22 at 13:34, Allistair Crossley wrote: > Hi Yoav, > > We run on Windows 2000, the concept of sym links aren't there. It's right > across our HTML content (which is loaded from file s

Enabling servlet reloading?

2004-11-22 Thread Stefan
Hi, What is entry (in server.xml) to allow for auto reloading of servlets in Tomcat 5? Or can you set this in web.xml on a per application basis? Stefan - Original Message - From: "Stefan" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Monday, November 22, 200

RE: Server.xml problem..

2004-11-22 Thread sven morales
I do not remember on top of my head at which version Tomcat has separated the element from server.xml but assuming it applies to your situation. On your Ant task you need to separate out from the server.xml the element and its contents ( .. to another file, call it rpcoemapi.xml. You can have

RE: Server redirected too many times (20)

2004-11-22 Thread Allistair Crossley
Hi Yoav, We run on Windows 2000, the concept of sym links aren't there. It's right across our HTML content (which is loaded from file system via IIS for security) blah.. so I do not think it will be this. Further, a Tomcat restart fixes it for a short while. Cheers, Allistair -O

Re: [OT] Re: Servlet mapping problem.

2004-11-22 Thread Ben Souther
Glad to see you're up and running. On Mon, 2004-11-22 at 13:20, Stefan wrote: > Yoav and Ben, > > After a fresh install of Tomcat, everything seems to be working fine. > > Many thanks for your extra patience with my fumbling about! > > Best regards, > > Stefan > > > - Original Message -

RE: Server redirected too many times (20)

2004-11-22 Thread Shapira, Yoav
Hi, Are you sure it's not a recursive symbolic link issue? Check to make sure that in recent days no one modified symbolic links throughout your installation such that they redirect to each other. Yoav Shapira http://www.yoavshapira.com >-Original Message- >From: Allistair Crossley [ma

[OT] Re: Servlet mapping problem.

2004-11-22 Thread Stefan
Yoav and Ben, After a fresh install of Tomcat, everything seems to be working fine. Many thanks for your extra patience with my fumbling about! Best regards, Stefan - Original Message - From: "Shapira, Yoav" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Monday

Re: FAIL - No context exists for path /blog

2004-11-22 Thread Dakota Jack
I was using roller .98. I switched to the RC 1.0 and have no trouble. I followed all installation instructions previously. I'm moving on with 1.0 and will grab the final when it comes. Thanks for your time, Yoav. Still wondering about the logging. If you happen to come up with a theory on wha

Server redirected too many times (20)

2004-11-22 Thread Allistair Crossley
Hi All, We upgraded to Java 5 and Tomcat 5.5.4 last week having tested it out on our test server without any apparent problems. However, we are noticing an awful lots of errors of the following nature, and I wanted to know if it is likely that something in Tomcat 5.5.4 could be involved, as ou

RE: Server.xml problem..

2004-11-22 Thread Shapira, Yoav
Hi, Ahh, my mistake, I thought you were using Tomcat 5.x - sorry about that confusion. For 4.x, maybe someone else can help you. Yoav Shapira http://www.yoavshapira.com >-Original Message- >From: Shilpa Nalgonda [mailto:[EMAIL PROTECTED] >Sent: Monday, November 22, 2004 12:35 PM >To: T

Re: FAIL - No context exists for path /blog

2004-11-22 Thread sven morales
Its just me, I do not fully trust the /manager app to deploy webapps all the time. For example its suppose to be able to deploy a war file even if the war file is coming from a remote site, ie it should attempt to download it but I have no luck with it deploying a remote war file yet. I wo

RE: JasperException thrown with no getMessage()

2004-11-22 Thread Shapira, Yoav
Hi, >I have a new question - I have an app which throws a JasperExcep[tion >whenever I try to use a RequestDispatcher to forward the request. I >am using Tomcat 5.0.12 - here is the code: Use a stable and more recent Tomcat release like 5.0.28. An exception may have a null message: that's leg

JasperException thrown with no getMessage()

2004-11-22 Thread Xeth Waxman
Greetings: Thanks to everyone for helping me solve my SSL issue last week. That application is now functioning properly. I have a new question - I have an app which throws a JasperExcep[tion whenever I try to use a RequestDispatcher to forward the request. I am using Tomcat 5.0.12 - here is th

Re: FAIL - No context exists for path /blog

2004-11-22 Thread Dakota Jack
I am running Tomcat 5.0, by the way on a Presario 2500 PC desktop with Windows XP. Jack On Mon, 22 Nov 2004 12:30:58 -0500, Shapira, Yoav <[EMAIL PROTECTED]> wrote: > > Hi, > If the startup fails with a 500-class error, one thing that's pointless > is to try starting it up again ;) Instead, lo

RE: Server.xml problem..

2004-11-22 Thread Shilpa Nalgonda
under TOMCAT_HOME/conf i only have" server.xml, tomcat-users.xml , web.xml, catalina.policy and jk2.properties." i can't find rpcoemapi.xml anywhere under Tomcat_home. Before i had all the datasource configuration for my Web apps in server.xml. And i used tomcat manager GUI to deploy the applicati

Re: high traffic Tomcat sites out there?

2004-11-22 Thread andrew
I would be very careful using tomcat for 'High-Performance' internet applications. You will need to disable keepalives - or use some form of keep-alive proxy to stop tomcat creating too many connections. How many simultaneous users are you planning on having? What operating system are you plann

Re: FAIL - No context exists for path /blog

2004-11-22 Thread Dakota Jack
Thanks for the quick turnaround, Yoav. There is no error in the logs. All that is in the logs is: StandardContext[/balancer]org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: Ne

RE: FAIL - No context exists for path /blog

2004-11-22 Thread Shapira, Yoav
Hi, If the startup fails with a 500-class error, one thing that's pointless is to try starting it up again ;) Instead, look at your logs to see the cause for the error, and fix it. Until then there's nothing to start, stop, or restart. If you're unsure what to do after looking at the log, post

FAIL - No context exists for path /blog

2004-11-22 Thread Dakota Jack
I thought I would do a quick little test on a roller blog. So I just popped the application into webapps and thought I would give it a little whirl. No whirl! I got a 503 error and when I tried to start it with manager?path=/blog, I got the error message in the Subject line of this email. I hav

Tomcat 4.1.30 not restoring JDBC connections

2004-11-22 Thread Alex Korneyev
Hello All, has anyone ever experienced the following: we are using Tomcat's 4.1.30 connection pool. For some reason, when network connection goes down, even for 1 sec, connection pool is not smart enough to either get rid of a connection and try get another one, or reconnect; any ideas?

RE: Server.xml problem..

2004-11-22 Thread Shapira, Yoav
Hi, Are you sure the information for your context isn't written to conf/[engine]/[host]/rpcoemapi.xml instead of server.xml? Yoav Shapira http://www.yoavshapira.com >-Original Message- >From: Shilpa Nalgonda [mailto:[EMAIL PROTECTED] >Sent: Monday, November 22, 2004 12:11 PM >To: Tomcat

RE:Server.xml problem..

2004-11-22 Thread Shilpa Nalgonda
Hi , I am usinh ant deploy target to deploy my web application on Tomcat 4.1.30. I have configured datasource to get the connection pooling for my webapp in server.xml. But whenever i do a ant deploy, the server.xml ia being backed up and a new server.xml is created. This new server.xml does no

Re: high traffic Tomcat sites out there?

2004-11-22 Thread Al Gidden
We have three Tomcat systems in front of a large database. We use JMeter to test our site, and have pushed each system with 1000 requests per minute and not noticed any problems at all. Our servers only have one processor and 1GB of RAM. The only time we start to see any performance issues is due t

RE: Servlet mapping problem.

2004-11-22 Thread Shapira, Yoav
Hi, Do you get any errors in your log on startup? Are you running Tomcat as a Windows service, or from the command line? Yoav Shapira http://www.yoavshapira.com >-Original Message- >From: Stefan [mailto:[EMAIL PROTECTED] >Sent: Monday, November 22, 2004 12:06 PM >To: Tomcat Users List

[OT] Re: Servlet mapping problem.

2004-11-22 Thread Ben Souther
I've added the [OT] because those examples are not a Tomcat issue. SimpleServlet (as the name implies) is the most basic example you can create. It has worked for everyone else who has tried it. Try again, with a fresh Tomcat install. Don't configure anything. On Mon, 2004-11-22 at 12:00, S

Re: Servlet mapping problem.

2004-11-22 Thread Stefan
Yoav, As I stated in a previous post - I actually included the context name in the context.xml file, I just omitted it in my email. Beyond that, I initially did not include a context.xml file - but it did not work, so I figured I'd give it a go. But if you noticed in my last post, I just dropped

RE: Looking for classes that were moved out

2004-11-22 Thread Shapira, Yoav
Hi, > Is that statement playing a russian roulette refers >to -- classes installed in the extention dirs does not >use security policies? No, I wasn't talking about security. I was talking about app separation and maintainability, both of which suffer significantly when you put classes in jre/

Re: Servlet mapping problem.

2004-11-22 Thread Stefan
Ben, I just dropped in your SimpleServlet war file and got this error: HTTP Status 404 - /SimpleServlet/test type Status report message /SimpleServlet/test description The requested resource (/SimpleServlet/test

RE: Servlet mapping problem.

2004-11-22 Thread Shapira, Yoav
Hi, The problem is that you've messed up your configuration. You created context.xml and you created your static HTML page. One says path="" and the other asks for path="/context_name". It's a beginner's mistake that's trivial to correct, and it's your mistake, not Tomcat's fault. You don't e

RE: Looking for classes that were moved out

2004-11-22 Thread sven morales
Is that statement playing a russian roulette refers to -- classes installed in the extention dirs does not use security policies? __ Do you Yahoo!? Meet the all-new My Yahoo! - Try it today! http://my.yahoo.com --

Re: Servlet mapping problem.

2004-11-22 Thread Stefan
Thanks Ben - I'll give it a go .. the client may insist still on Tomcat, anyway it bugs me that I can't get it to work! Thanks. Stefan www.killersites.com www.how-to-build-websites.com www.secretsites.com www.csstutorial.net www.websitereviews.org www.websitetemplates.name - Original Messag

Re: Servlet mapping problem.

2004-11-22 Thread Stefan
Ha ha ha ha ha I wasn't meant as an insult, but the truth cannot be ignored ... You have to ask yourself a question when you take the exact same code and drop it into Resin and in 1 minute it works fine, whereas with Tomcat, after an hour or two of poking around, it still doesn't work ... T

Re: Servlet mapping problem.

2004-11-22 Thread Ben Souther
If you're interested, I've got some simple apps all WARed up on my site. http://simple.souther.us. Try dropping one of those wars in your webapps directory. If they work (which they will if you have an out of the box installation of Tomcat), you can compare them with your app to see what's diffe

Re: logging compression stats

2004-11-22 Thread Tim Funk
There is no way to log that information right now. -Tim Ben Simon wrote: Howdy, I've enabled compression on my server [1]: , | |maxThreads="150" minSpareThreads="25" maxSpareThreads="75" |enableLookups="false" redirectPort="8453" acceptCount="100" |

RE: Servlet mapping problem.

2004-11-22 Thread Shapira, Yoav
Hi, >I actually put the context reference in the context tag ... just something >I >omitted in the email. But alas, it still does not work ... >I'm actually going to see if I can get the client to use Resin (for some >reason, everything works fine is Resin ... out of the box), frankly at this >p

Re: Servlet mapping problem.

2004-11-22 Thread Stefan
Hi, I actually put the context reference in the context tag ... just something I omitted in the email. But alas, it still does not work ... :( I'm actually going to see if I can get the client to use Resin (for some reason, everything works fine is Resin ... out of the box), frankly at this poin

RE: Tomcat startup error.

2004-11-22 Thread Shapira, Yoav
Hi, This is not an out-of-the-box Tomcat. Modify your log4j properties so that they don't look for a non-existent (or not running) JMS server ;) Yoav Shapira http://www.yoavshapira.com >-Original Message- >From: g k [mailto:[EMAIL PROTECTED] >Sent: Monday, November 22, 2004 11:16 AM >T

RE: Tomcat startup error.

2004-11-22 Thread Shapira, Yoav
... and to add to my previous message, also check out the Tomcat FAQ's section on logging with log4j and commons-logging. Yoav Shapira http://www.yoavshapira.com >-Original Message- >From: g k [mailto:[EMAIL PROTECTED] >Sent: Monday, November 22, 2004 11:16 AM >To: [EMAIL PROTECTED] >Su

Re: SSL and form-based login

2004-11-22 Thread footh
Thanks for the help. I see what you are saying about the redirection to the login page not being a true redirect. I'll give your method a shot and see how it turns out. I can't believe this issue hasn't been resolved before but I can't seem to find it via a search on the archives. On another no

Re: Servlet mapping problem.

2004-11-22 Thread Ben Souther
In your context tag, your specifying: path="" but in your url you're using: http://127.0.0.1/the_context/loginResponse.do"; ^^^ Either put: path="/the_context" in your context tag or don't specify it in your url. loginResponse.do On Mon, 2004-11-22 at 10:31,

Tomcat startup error.

2004-11-22 Thread g k
Hi I am new to Tomcat. I have version 5.0.25 installed on my pc. When i startup tomcat using the startup.bat i get the following error (apologies for the long details). 22-Nov-2004 16:13:53 org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8081 22-Nov-2004 1

webapps directory disappears

2004-11-22 Thread Scott Pippin
Sometimes when I undeploy an application on Tomcat 5.0.28 the entire webapps directory disappears. Has anyone else had problems with this? Tomcat 5.0.28 AIX 5.2.10 Apache 2.x Thanks, Scott Pippin [EMAIL PROTECTED]

Re: Servlet mapping problem.

2004-11-22 Thread Stefan
Hi Ben, I've used a relative link - same problem ... Could this be a problem having to do with setting up the context? What I did to do this, was drop an xml file with my web apps name in the folder: conf\Catalina\localhost In the xml file (contexName.xml) I have this entry: Of course, my w

Re: Servlet mapping problem.

2004-11-22 Thread Stefan
The HTML form is actually in a static page, I'm not generating the form via a servlet. I've actually began this with a relative URL, I've just been trying different things to see if I could figure out how to get this to work. I agree with your comments regarding the portability, I've just been try

logging compression stats

2004-11-22 Thread Ben Simon
Howdy, I've enabled compression on my server [1]: , | ` And, when I make a request with the Accept-Encoding header set to gzip, I do indeed get compressed output. However, the file size logged in the access log is the same as if I requested it and it wasn't compressed. Is there a

Re: Servlet mapping problem.

2004-11-22 Thread Ben Souther
Why don't you just use a relative link?: On Mon, 2004-11-22 at 10:13, Stefan wrote: > Hi, > > Just out of curiousity I changed the forms' action attribute to include the > full path: > > http://127.0.0.1/the_context/loginResponse.do"; method="post"> > > >From a page with this URL: http://127.0

Re: SSL and form-based login

2004-11-22 Thread erh
On Sun, Nov 21, 2004 at 10:53:52AM -0800, footh wrote: > The URL in the browser is the URL of the protected > page I'm trying to access. So, for example if > /test/test.jsp is protected by forms-login and I click > a link to that page, /test/test.jsp will be the URL in > the browser, but the login

RE: Servlet mapping problem.

2004-11-22 Thread Shapira, Yoav
Hi, > > >name: > > > > I meant the server-side code, not the HTML output. >Q. Accordingly, how do you generate this element? >A. I'm not sure what you mean, it's just a hard-coded HTML form. It shouldn't be. Try a relative URL instead. >Q. I assume you don't have the webapp's name hard-cod

Re: Servlet mapping problem.

2004-11-22 Thread Stefan
Hi, Just out of curiousity I changed the forms' action attribute to include the full path: http://127.0.0.1/the_context/loginResponse.do"; method="post"> >From a page with this URL: http://127.0.0.1/the_context/logIn.jsp And when I submit the form I am taken to Tomcats' web server admin tool lo

Re: Servlet mapping problem.

2004-11-22 Thread Stefan
Hi, my form code: name: To naswer your questions: Q. Accordingly, how do you generate this element? A. I'm not sure what you mean, it's just a hard-coded HTML form. Q. I assume you don't have the webapp's name hard-coded A. Hard-coded where? In the forms' action attribute? If so, is th

RE: Servlet mapping problem.

2004-11-22 Thread Shapira, Yoav
Hi, The web.xml file looks reasonable. But you have yet to answer the other question, which is how you generate the form tag. Yoav Shapira http://www.yoavshapira.com >-Original Message- >From: Stefan [mailto:[EMAIL PROTECTED] >Sent: Monday, November 22, 2004 10:00 AM >To: Tomcat Users

Re: Servlet mapping problem.

2004-11-22 Thread Stefan
Hi, This is my web.xml for the web app: http://java.sun.com/dtd/web-app_2_3.dtd";> index.jsp authentication filter com._XYZ.authenticateAdminFilter authentication filter /admin/* loginResponse com._XYZ.authenticateAdmin testPassword xxx loginRespon

RE: Tomcat 5.5.4 - classes in classpath not being "released"

2004-11-22 Thread Shapira, Yoav
Hi, >(e.g. get the StandardHost and call remove on the service/engine and then >recreate a StandardHost instance with all the relevant settings, then >calling deploy and start on it...) This is really not a recommended practice. With the increased JMX and Logging interaction, it's hard to get t

RE: Tomcat 5.5.4 - classes in classpath not being "released"

2004-11-22 Thread Carl Olivier
Ooppps. Sorry -meant 300 seconds! -Original Message- From: Carl Olivier [mailto:[EMAIL PROTECTED] Sent: Monday, November 22, 2004 4:37 PM To: Tomcat Users List Subject: RE: Tomcat 5.5.4 - classes in classpath not being "released" Hectic. When it says startup performance penalties its

RE: Tomcat 5.5.4 - classes in classpath not being "released"

2004-11-22 Thread Carl Olivier
Agreed. Just nice to be aware of the penalties! If you undeploy and redeploy a site (using the core Catalina) classes etc, if this was NOT activated (the antiResourceLocking) would there be any effects? I am not talking about a redeployment via class changes, but a manual redeploy from within co

RE: Tomcat 5.5.4 - classes in classpath not being "released"

2004-11-22 Thread Shapira, Yoav
Hi, Yup, not kidding. However, the reason to turn this on is to do in-place reloading, as opposed to server restarting, so the penalty is easily amortized over a few (not many) reloads. Yoav Shapira http://www.yoavshapira.com >-Original Message- >From: Carl Olivier [mailto:[EMAIL PROTE

RE: Tomcat 5.5.4 - classes in classpath not being "released"

2004-11-22 Thread Carl Olivier
Hectic. When it says startup performance penalties its not kidding eh? Context set tot antiResourceLocking="true" and added like 30 seconds to the server startup time :) -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, November 22, 2004 3:58 PM To: Tomca

Re: high traffic Tomcat sites out there?

2004-11-22 Thread Peter Lin
look at the poweredby list http://wiki.apache.org/jakarta-tomcat/PoweredBy the biggest factor in how much bandwidth your 4 node cluster is primarily going to be network bandwidth and database performance. Normally, since buckle due to database crashing. I know of a directory site that gets millio

RE: Tomcat 5.5.4 - classes in classpath not being "released"

2004-11-22 Thread Carl Olivier
Ok, thanks!! Appreciate the response as always! Carl -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, November 22, 2004 3:58 PM To: Tomcat Users List Subject: RE: Tomcat 5.5.4 - classes in classpath not being "released" Hi, You would need to turn on the

RE: Servlet mapping problem.

2004-11-22 Thread Shapira, Yoav
Hi, >message /loginResponse.do > >description The requested resource (/loginResponse.do) is not available. It seems the context_name part of your element is blank, missing, or wrong, since the page is asking for /loginResponse.do and not /whatever/loginResponse.do. Accordingly, how do you gener

RE: Tomcat 5.5.4 - classes in classpath not being "released"

2004-11-22 Thread Shapira, Yoav
Hi, You would need to turn on the antiJARLocking or antiResourceLocking features of Tomcat 5.5.x (they are Context attributes, use either one but not both at the same time). Yoav Shapira http://www.yoavshapira.com >-Original Message- >From: Carl Olivier [mailto:[EMAIL PROTECTED] >Sent:

Tomcat 5 Cluster on blades with multiple network adapters

2004-11-22 Thread Maibaum, Norbert
Title: Tomcat 5 Cluster on blades with multiple network adapters I try to get Tomcat-Cluster running on blades where two network-adapters are active. So i figured out that "mcastBindAddr" parameter has to specified. (mcastBindAddr = bind the multicast socket to a specific address) Has a

RE: Looking for classes that were moved out

2004-11-22 Thread Shapira, Yoav
Hi, It's your code that's looking for this class, not Tomcat. Anyways, putting code in jre/lib/ext is tantamount to playing Russian roulette. Yoav Shapira http://www.yoavshapira.com >-Original Message- >From: Wout Perquin [mailto:[EMAIL PROTECTED] >Sent: Saturday, November 20, 2004 10:

  1   2   >