Re: Problem getting custom 404 error working on 4.1.31

2005-10-24 Thread Seak, Teng-Fong
I'm using IE 6 SP1 but I found that I have to stuff the page up to more than 1024 bytes to make the so-called "friendly" error page disappear. OTOH, I've found a pitfall with IE. It's not enough to click the "refresh" button to test this. I have to quit it and reopen it again after every

Re: Please help ! configure Tomcat 5.5.12 and Eclipse 3.1 for debugging

2005-10-24 Thread Nikola Milutinovic
Sara Hugh wrote: Please help me out !! I try to setup debugging on tomcat 5.5.12 and Eclipse 3.1. For Eclipse, the setting is same as previous version, but for Tomcat 5.5.12, the script file for windows (catalina.bat) does not exist. How do I set JPDA_TRANSPORT and other values for tomcat 5.5.1

RE: Connection problem (Too many connections) for MySQL 4.1

2005-10-24 Thread Gupta, Razat
Hi, You can reduce this problem to a very good extent by working on following tags in your web.xml: maxActive 100 maxIdle 20 minIdle 10 maxWait 700 You can get the details from Tomcat Documentation. Regards, Raz

Re: tomcat 5 combined http and https, same session

2005-10-24 Thread Maurice Yarrow
Hello Hassan I'm also interested in this issue of http(s) switching. Could you possibly put up an example of this filter? Maurice Yarrow Hassan Schroeder wrote: Rob wrote: to run https for some pages in my webapp, and http for other pages, using the same session. It's working where I can

ASKING AGAIN: problem in getting database connection from remote machine using JNDI

2005-10-24 Thread rahul
Is there anything else that is required for remote database? > -Original Message- > From: rahul [mailto:[EMAIL PROTECTED] > Sent: Monday, October 24, 2005 7:56 PM > To: Tomcat Users List > Subject: problem in getting database connection from remote machine > using JNDI > > > Hi all, > >

help in using a custom API

2005-10-24 Thread Jayel Villamin
Hi. We have bought an IT customer management system to management the helpdesk. It came with a JAVA API. Here are is thin POS guide and some examples. The problem with the examples is that is uses plain Java (Java run from the commandline). But I need to use it from within a browser. Since my

Please Help!!! No session state received, time out 60s during tomcat start up

2005-10-24 Thread michelle wang
I'm running 2 tomcat (5.0.18) instances with Simple TCP Clustering on the same Solaris 9 server, there are multiple web applications need to be clustered. When starting up the secondary tomcat, there is only one webapp receives the session state while all others wait 60 seconds and time out. The st

Re: Can you intercept the default Servlet ? stack servlets ? forward to specific class ?

2005-10-24 Thread Darryl L. Miles
Thanks Tim. For anyone else searching the mailing list, check out: http://java.sun.com/products/servlet/Filters.html I was already using a filter to implement Hibernate "Open Session In View" pattern, so Duh! to me. The servlet url pattern matching is rather simplistic, so I've implemented

Re: tomcat 5 combined http and https, same session

2005-10-24 Thread Hassan Schroeder
Rob wrote: > to run https for some pages in my webapp, and http for other pages, using > the same session. It's working where I can redirect from http to https (see > the web.xml security constraint block below), but then I'm in https for all > web pages, and if I type http at the URL, the sessio

Has Anyone Achieved Mutal Authentication on 5.5.12 or 5.5.9???

2005-10-24 Thread Daniel
If so, whats the magic to the certs and keystores? - Daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

tomcat 5 combined http and https, same session

2005-10-24 Thread Rob
Hi All, I looked through the mail archives as well - past two years. There's some interesting info, but nothing that seems to address the issue. My goal is to run https for some pages in my webapp, and http for other pages, using the same session. It's working where I can redirect from http to

Re: TC 5.5.9 and 50X Custom Error Pages

2005-10-24 Thread Len Popp
The element is relative to the root of the web app - that is, you can only specify an error page within the same web app. There's a trick described here: http://marc.theaimsgroup.com/?l=tomcat-user&m=104160348302968 that uses a small .jsp that includes the Apache error page. Since you want the er

RE: Please help ! configure Tomcat 5.5.12 and Eclipse 3.1 for debugging

2005-10-24 Thread Caldarale, Charles R
> From: Sara Hugh [mailto:[EMAIL PROTECTED] > Subject: Please help ! configure Tomcat 5.5.12 and Eclipse > 3.1 for debugging > > For Eclipse, the setting is same as previous > version, but for Tomcat 5.5.12, the script file for > windows (catalina.bat) does not exist. It does if you use the r

Re: content length on response

2005-10-24 Thread Enrique Rodriguez Lasterra
Yes, the problem was on my servlets. they don't use setContentLength method on the response. If this is tomcat default behaviour I suppose that it's better not using it, but, in some circunstances, some clients need this http header variable for reading response. Regards, Enrique. El lun, 24-

Please help ! configure Tomcat 5.5.12 and Eclipse 3.1 for debugging

2005-10-24 Thread Sara Hugh
Please help me out !! I try to setup debugging on tomcat 5.5.12 and Eclipse 3.1. For Eclipse, the setting is same as previous version, but for Tomcat 5.5.12, the script file for windows (catalina.bat) does not exist. How do I set JPDA_TRANSPORT and other values for tomcat 5.5.12 for debugging?

Re: Custom error page when ...

2005-10-24 Thread Seak, Teng-Fong
Exactly. That's why he wrote "You can add pages for HTTP response codes to you(r) web.xml file for each web application you deploy within Tomcat." Roberto Bottoni - AfterBit wrote: >Ok.. but if I make this change in web.xml in folder /conf of Tomcat I get >the same result for every web appli

Connection problem (Too many connections) for MySQL 4.1

2005-10-24 Thread Manisha Sathe
I am on Tomcat 5, MySQL 4.1 and using JNDI. The context xml is as follows .. factory org.apache.commons.dbcp.BasicDataSourceFactory initialSize 10 maxActive 100 maxIdle 20 minIdle 10

Re: content length on response

2005-10-24 Thread Jan Pernica
If you want a content length header then you will not be able to return partial results. The page can be generated at once only. Jan Enrique Rodriguez wrote: I have 9-8 tomcat with version 4.1.23 or 5.5.9. They never put content-length http header variable on responses. Why does tomcat has t

Re: Undeploy/Deploy problem

2005-10-24 Thread Jan Pernica
That's the solution. Thank you. andy gordon wrote: Alllistair, If you don't mind providing a clarifcation, becuase when I looked at the definition of antijarlocking there is another attribute called antiResourceLocking whose definition is as follows and seems to be exactly the problem Jan

Re: content length on response

2005-10-24 Thread Hassan Schroeder
Enrique Rodriguez wrote: > I have 9-8 tomcat with version 4.1.23 or 5.5.9. They never put > content-length http header variable on responses. I just grabbed a JSP page from a 5.5.9 install with LiveHTTPHeaders running and it shows a Content-Length header; maybe you can provide more detail about th

HTTP 500 Error.

2005-10-24 Thread cory ng
Hello! I know this is a general error and I tried numerous scenarios of registering and unregistering componenets and dlls and restarts of the tomcat apache service. I tried changing some code in some jsp files. The error is referring to a jasper exception and a class cast exception. Attached is th

content length on response

2005-10-24 Thread Enrique Rodriguez
I have 9-8 tomcat with version 4.1.23 or 5.5.9. They never put content-length http header variable on responses. Why does tomcat has this behaviour? Apache, Microsoft IIS and other web server always return the Content-Lenght. Regards, Enrique. -- ___ Enrique Rodriguez L

What is Non-JMX API for cluster membership

2005-10-24 Thread Edmon Begoli
If I would to query the host tomcat (5.5.12) for the members in the cluster without using the JMX what would that API be? -- Thank you, Edmon Begoli http://blogs.ittoolbox.com/eai/software

Form Authentication

2005-10-24 Thread Patrick Dalla Bernardina
Hi, I'm using tomcat as my java web application server. I'm having a problem with FORM login config. As I've seen in tomcat source code, FormAuthenticator.java is responsible for this kind of authentication. FormAuthenticator saves a request to a protected resource, redirects to form login

4.1.31: RemoteAddrValve and custom 403 page

2005-10-24 Thread Robert Baruch
Hi all, I have a default install of 4.1.31 on Windows. I have two problems. First problem is, I want to have a custom 403 Forbidden page and a 404 Page Not Found. So, in conf/web.xml, I added this after the welcome-file-list block: 403 /file_not_found.jsp 404 /file_not_found.js

Re: Custom error page when ...

2005-10-24 Thread Roberto Bottoni - AfterBit
Ok.. but if I make this change in web.xml in folder /conf of Tomcat I get the same result for every web application? Thanks. Roberto. - Original Message - From: "Chris Birch" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Saturday, October 22, 2005 12:59 PM Subject: Re: Custom error

Re: log4j - how to keep it quiet but still usable

2005-10-24 Thread Robert Bateman
Apologies for replying late to this... I've learned that in production, I set my log level to INFO or higher: # Set root category priority to INFO to stop all the *trash* log4j.rootCategory=INFO, LOGFILE But setting my default to INFO, I need to be careful in my LOGFILE definition so I can trap

Unexpected 302 response from Tomcat or JK with filter /*

2005-10-24 Thread Allistair Crossley
Hi List, Not sure whether this is JK or Tomcat. We have a URI worker mapping /*=ajp13 Our ROOT web application that handles these requests in Tomcat has a filter mapping RequestPreparatorFilter /* To capture all requests. At the top of the filter, we log the request.getRequestURI() F

RE: Undeploy/Deploy problem

2005-10-24 Thread andy gordon
Alllistair, If you don't mind providing a clarifcation, becuase when I looked at the definition of antijarlocking there is another attribute called antiResourceLocking whose definition is as follows and seems to be exactly the problem Jan is experiencing. antiResourceLocking definition from

TC 5.5.9 and 50X Custom Error Pages

2005-10-24 Thread luc_boudreau
Hi fellow listers, I'm on TC 5.5.9 behind Apache 2.0.54 and I need TC to display the same error pages as in Apache. So, I've put the following code in CATALINA_HOME/conf/web.xml : --- 503 /erreur/erreur-5

Re: tomcat/apache issue

2005-10-24 Thread sayoke
you edit u r server.xml and make sure apache tomcat connctor port = '8080' . this will solve the problem. - Original Message - From: "Gupta, Razat" <[EMAIL PROTECTED]> To: Sent: Monday, October 24, 2005 11:11 AM Subject: tomcat/apache issue Hello Everyone, I have configured tomca

RE: Problem getting custom 404 error working on 4.1.31

2005-10-24 Thread Robert Graf-Waczenski
IE can be a PITA when it comes to error page display... ;-)) Check if your IE is configured with "friendly HTTP error messages". If this setting is enabled, IE displays its own "friendly" version of an error page and simply skips the server response. To avoid this nonsense-like behavior, your erro

RE: Undeploy/Deploy problem

2005-10-24 Thread Allistair Crossley
> -Original Message- > From: Jan Pernica [mailto:[EMAIL PROTECTED] > Sent: 24 October 2005 14:34 > To: users@tomcat.apache.org > Subject: Undeploy/Deploy problem > > > We have problem with Undeploy war and deploy again. Tomcat does not > remove folder under webapps and leaves some jars

Re: Problem getting custom 404 error working on 4.1.31

2005-10-24 Thread Hassan Schroeder
Robert Baruch wrote: > Basically, I've taken the default install of 4.1.31 on Windows. The > only difference from default is that I've installed in D:/Tomcat 4.1.31 Not related to your question, but spaces in path names involving Tomcat are a Bad Idea; check the archives for confirmation :-) >

problem in getting database connection from remote machine using JNDI

2005-10-24 Thread rahul
Hi all, I am using tomcat JNDI for getting databse connection in my application For this I have created a context.xml file in myAPP/META-INF which looks like this: This works absolutely fine. But when I try to connect to a remote database by changing url in above file to "jdbc:mysql://192

Problem getting custom 404 error working on 4.1.31

2005-10-24 Thread Robert Baruch
Hi all, I've been scratching my head over this for a few days, and I just can't see what I'm doing wrong. I am running 4.1.31 under JDK 1.4.2. Basically, I've taken the default install of 4.1.31 on Windows. The only difference from default is that I've installed in D:/Tomcat 4.1.31 In the

Undeploy/Deploy problem

2005-10-24 Thread Jan Pernica
We have problem with Undeploy war and deploy again. Tomcat does not remove folder under webapps and leaves some jars in the WEB-INF/lib. These jars are tomahawk.jar and ehcache.jar. Any sugestions how to avoid this problem?: Thank you Jan --

Re: Which JSESSIONID is evaluated first? The one from the Cookie or from the URL?

2005-10-24 Thread David Delbecq
Hi, am too lazy to check code too. Here is what i know from my experience using multipart/form-data form as first page of a user (assuming cookies session tracking are allowed in web app): First time you enter a web page, a session id is created, along with the HttpSession object. As server does n

RE: PernGen memory leak with Tomcat 5.5.9

2005-10-24 Thread Lisa Woodring
If you are undeploying & redeploying a webapp during development (without restarting Tomcat), this can/will happen. If you stop and restart Tomcat, you should avoid the issue. -Original Message- From: Félix Pedrera García [mailto:[EMAIL PROTECTED] Sent: Thursday, October 20, 2005 9:19

Re: Which JSESSIONID is evaluated first? The one from the Cookie or from the URL?

2005-10-24 Thread Peter Rossbach
Hi, I think the URL Session ID is interpreted first, but then the Cookie is parsed and set. See o.a.c.connector.CoyoteAdaptor.postParseRequest. First is sessionid set from URL (parseSessionId L. 249) and later set again from cookie ( parseSessionCookiesId L. 324). You can simple test this wit

Tomcat/Apache/ModJK

2005-10-24 Thread Anthony Smith
I have 2 tomcat instances running on two different boxes and one apache box. I just updated my workers.properties file to load balance between the two. Here is my problem. On one of the tomcat boxes, I have not even loaded the webapp yet. If I have load balancing, why does my app always show up if

AW: Block HTTP Connector Port in server.xml and still use manager deployer for Tomcat Deployments

2005-10-24 Thread Edao, Aliye
Hi all, Has anybody succesfully implemented "BadInputFilterValve" on Tomcat 5.5.12 or on Tomcat 5.5.x?? This valve works on Tomcat 4.x and 5.0.x without any problems. I can`t compile it on Tomcat 5.5.x. Thanks Aliye - To uns

Running Tomcat 5.0 as a Windows service using a specific user

2005-10-24 Thread Jan Andersson
Hi! I've written an application that accesses files on other computers on the network. Thus, the user running Tomcat has to have permissions to access these other computers. So, when running Tomcat as a Windows service, I use a user with permission to log on. To set the user, I'm using the con

Réf. : Virtual directory in Tomcat

2005-10-24 Thread Richard Leotard
Edit server.xml under /conf folder and add a contex ___ The integrity of this message cannot be guaranteed on the internet .Therefore EXANE cannot be considered responsible for the contents. If you are not the intended recipient of this message ,ple

Which JSESSIONID is evaluated first? The one from the Cookie or from the URL?

2005-10-24 Thread Leon Rosenberg
Hi, Sorry for being too lazy for looking into the source code, but I thought, that for people of knowledge it would be 10 sec to give me the right answer :-) There is an interesting issue of high-jacking a session on a .net application (surely founded in bad programming rather than the framework)

Virtual directory in Tomcat

2005-10-24 Thread Eider Iturbe
Hi all, I'm new on working with Tomcat. I've deployed a webapp in a Tomcat container, but now I need to define a virtual directory in order to show images. How can I do that? Thanks in advance, Eider - To unsubscribe, e-mai

Re: JMX task scheduler

2005-10-24 Thread Jan Pernica
We are facing the same problem. When we process the task, then we check for next planned execution time, Then we "sleep" for specified time. Process, and again. If task is running over next planned execution time, then this time is skipped. Jan Mikolaj Rydzewski wrote: Hello, I have some

RE: Do not want change into the warfile name

2005-10-24 Thread Nehal Sangoi
I need to retain the original name of war file for further use in Load-Balancing and Clustering. Thank you for the information provided. In my ANT script, i changed the "url". Context Path i kept same for all the urls and it worked fine. Thanks once again, to all who replied to my query. -Ori

Block HTTP Connector Port in server.xml and still use manager deployer for Tomcat Deployments

2005-10-24 Thread Nehal Sangoi
Hi All, I have a Tomcat Server (5.5.9) and an Apache webserver. These are physically two different machines. I want to do application deployments in Tomcat using Manager-Deploy Ant Build Script. But, does not want to use Tomcat's HTTP Connector Port found in server.xml. Basically, for some reaso

JMX task scheduler

2005-10-24 Thread Mikolaj Rydzewski
Hello, I have some kind of a task scheduler in my webapp. It's made of MBean Timer object, it fires its events overy 2 minutes and it works well. I know - it it works don't fix it ;-) But I want to turn it into something like cron. There are two projects I'm aware of: jcrontab at sourceforge

Re: [OT - sort of] response.sendRedirect or request.getRequestDispatcher.forward ...??

2005-10-24 Thread Kyle
Cheers Bill. K Bill Barker wrote: Using response.sendRedirect() sends a very small message back to the client, who then issues another Request on the same open Socket for the new URL. Unless you have a lot of network latency (e.g. a dial-up connection), this will be very fast. It's likely

Réf. : Do not want change into the warfile name

2005-10-24 Thread Richard Leotard
Hi If you do not want to jave your context rename, you need to specify it in the manager application "Nehal Sangoi" <[EMAIL PROTECTED]> 24/10/2005 11:48 Veuillez répondre à "Tomcat Users List" Pour : "'Tomcat Users List'" cc :(ccc : Richard Leotard/Dev_middle/Paris/Exan

Re: Do not want change into the warfile name

2005-10-24 Thread David Delbecq
Well contexts are used to name web applications web applications are accessed using http://host:port/contextName/ That is if you set context to 'clay', it's the expected behaviour it's accessible using http://host:port/clay/ For this, war is stored on server using name 'clay.war' If it was to be

Do not want change into the warfile name

2005-10-24 Thread Nehal Sangoi
Hi All, I need to deploy only one warfile. e.g = "example.war" to multiple tomcat instances having different context names. Currently, i am using ant's build script with manager deployer. Hence, while deploying the warfile to multiple instances, in the "webapps" of every instance, the war file's

Re: Help figuring out Virtual Hosts

2005-10-24 Thread Tom Burke
Hassan You posted this answer out a week or more ago. I'd just to like to respond by saying that I, too, had a problem with virtual hosts and was able to solve it by following your comments. In particular I had not understood before that I needed to have a ROOT.xml in the virtual host's conte

Undeploy problem

2005-10-24 Thread Jan Pernica
Hi everybody We have got a problem with undeploying the application. If we undeploy an application tomcat does not delete the unpacked war folder. The folder contains the WEB-INF/lib/tomahawk.jar library and ehcache.jar. If in lib there is a mail.jar then it hangs too. If we try to delete it

Securing Manager Role

2005-10-24 Thread Nehal Sangoi
Hi, How can i encrypt the manager user's password in tomcat-users.xml file? I need to keep manager-deployer thing be secured in my environment. Thanks & Regards, Nehal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional