RE: Clustering and Load balancing

2004-11-10 Thread Dale, Matt
Hi, There is a load of information in the tomcat documentation. Your post is a bit vague about what you actually want to know. I'd suggest reading the documentation then coming back here if you have any more specific questions or problems. But a hint to get you on the road. There is a

RE: exception in clustering

2004-11-10 Thread Dale, Matt
You might have more luck with an answer if you hadnt hijacked someone elses thread with an entirely unrelated post. I'd suggest creating a new post with the question. I don't know why JMeter wouldnt connect but some more information would be handy, is it JMeter that fails completely? or does

RE : Clustering and Load balancing

2004-11-10 Thread LERBSCHER Jean-Pierre
You have to follow the rules included in the document (http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cluster-howto.html ) . All your session attributes must implement java.io.Serializable . Uncomment the Cluster element in server.xml Define multicast address and port for your cluster

Why the javaEncoding setting is noneffective?

2004-11-10 Thread sky yjck
I hope tomcat parse the jsp file with the GBK encoding,so I set the javaEncoding paramater's value to GBK. The simple JSP file is: html body output: Something String /body /html My operation system is chinese GBK charset. When I replace Something String to chinese text,I found the parsed java

Installation of tomcat V 4.1.31 from source on Linux

2004-11-10 Thread Sandeep N
Hi All, Has anybody tried to install Apache-Tomcat-4.1.31 from the source on Linux? I am not able to get the servletapi V 4 (as mentioned in the building.txt file in the tomcat source) required for this anywhere. Can anybody tell where it is available? Regards, Sandeep

PDA + Tomcat + AXIS

2004-11-10 Thread Suleman Butt
Hi, Well i'm looking for a solution for the execution of OWL-S described web services on a resource constraint device (PDA, HP Pocket PC 5500, 400mhz Processor, 128mb Ram). Now could anybody suggest me about any application server like Tomcat which could be installed on a PDA for hosting web

request.setCharacterEncoding not working

2004-11-10 Thread Nick Mitchell
Hi all I have a web app that relies on using request parameters encoded in UTF-8 and in my JSPs I use request.setCharacterEncoding(UTF-8) before getting the parameters. This works perfectty on OC4J and now I have deployed the app to Jonas (which has tomcat 5.0.28 integrated). I've done some

Speed of jsp:useBean tags.

2004-11-10 Thread Andoni
Hello, I have an application which is just a front-end for a main-frame. The process on the mainframe which my application calls takes 8 seconds to complete so I am trying to make my Java application as fast as possible so that there is as little time as possible wasted. Can anybody give any

jsps are not working

2004-11-10 Thread Akhthar Parvez. K
Hi All, I am unable to see the jsp webpages. All I could see that the default page. My server contains more than 100 websites and for none of them it's working. I have installed it through cPanel. I have enabled tomcat for some websites already. Please let me know what I am missing:) -- With

Re: jsps are not working

2004-11-10 Thread David Stevenson
On 10/11/04 11:58, Akhthar Parvez. K [EMAIL PROTECTED] wrote: Please let me know what I am missing Sufficient detail in your question. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Counting Page Hits

2004-11-10 Thread Tim Funk
The AccessLogValve allows for conditional logging. So you'll need to add code (Filter or modify servlets) to add/not add an entry to the HttpServletRequest so the Valve can decide whether to log the entry. Or much easier is an COTS access log parser. -Tim Justin Jaynes wrote: What is the

Re: request.setCharacterEncoding not working

2004-11-10 Thread Tim Funk
See URIEncoding http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html -Tim Nick Mitchell wrote: Hi all I have a web app that relies on using request parameters encoded in UTF-8 and in my JSPs I use request.setCharacterEncoding(UTF-8) before getting the parameters. This works perfectty

Re: Preventing users getting accessing to directory contents in Tomcat

2004-11-10 Thread Paul Taylor
Thanks works a treat Is there a similar way to prevent the user typing in the url of a partciuar jsp or image and stop them being taken it. Ive looked at security-constraints but this seems to be based on only certain/logged in users gaining access. I have no concept of logged users in my

Re: Preventing users getting accessing to directory contents in Tomcat

2004-11-10 Thread Tim Funk
You can't prevent images from being taken. As for JSP's. Move them to your WEB-INF directory. Then use a servlet to validate the incoming parameters and then forward to the JSP. -Tim Paul Taylor wrote: Thanks works a treat Is there a similar way to prevent the user typing in the url of a

RE: jsps are not working

2004-11-10 Thread Steve Kirk
Quick guess: check that you have the default JSP servlet and mapping enabled. by default this is generally found in two separate chunks within the web.xml of your tomcat's conf directory and looks a bit like this: servlet servlet-namejsp/servlet-name

RE: Speed of jsp:useBean tags.

2004-11-10 Thread Jos Luis
Hi Andoni, i have a proliant server and when i installed tomcat at first time this runs slow, taking few seconds to complete one request. Change config of Tomcat and JVM. Use programs like Jmeter to measure your system performance. This link help you to improve JVM performance.

Re: Preventing users getting accessing to directory contents in Tomcat

2004-11-10 Thread Paul Taylor
Point taken regarding images. But is this the only way to protect jsp ? I have a directory structure as follows /jsp/feedback/start.jsp /jsp/feedback/finish.jsp I want them to be able to bookmark start.jsp and access it either through the interface or directly from the url. but I dont want them

RE: resource defined in web.xml has null attributes but server.xml is ok

2004-11-10 Thread Steve Kirk
You don't say what version. I am aware that things are changing in this area in 5.5.x so what I'm saying possibly applies to 5.0.x only. Check the docs if you have a different version. In 5.0.x, you have to put resource-ref in web.xml if you want to be compliant with the servlet spec. If you do

Re: request.setCharacterEncoding not working

2004-11-10 Thread Nick Mitchell
Thanks Tim Slightly embarassed I did not look at that before =) I'll be off now Tim Funk wrote: See URIEncoding http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html -Tim Nick Mitchell wrote: Hi all I have a web app that relies on using request parameters encoded in UTF-8 and in my

Re: Preventing users getting accessing to directory contents in Tomcat

2004-11-10 Thread Ben Souther
test.html === html a href=test.jsptest.jsp/a /html test.jsp === %=request.getHeader(REFERER)% On Wed, 2004-11-10 at 08:17, Paul Taylor wrote: please how do I do that ? Ben Souther wrote: You could check the referrer header to make sure

Tomcat and CGI Programs

2004-11-10 Thread Michael McQuade
Hi Tomcat people,a simple question here I hope. Im running Servlets in Tomcat (nothing earth shattering there I know)... But I also need to run a couple CGI programs ( i.e. program.exe ).. I assume Tomcat will do this???Can anyone tell me if I have to do anything special, set

Compression - problematic?

2004-11-10 Thread Carl Olivier
Greetings. I am trying out the compression feature on the HTTP Connector in Tomcat 5.0.27 and 5.0.28. I have simply set the connector attribute compression=on - everything else like buffering, socketBuffer etc has been left as default. The default list of MIME types to compress I have also

Why JNDI ResourceLink not resolved, if .war file name doesn't match context path in Tomcat 5.0.28 ?

2004-11-10 Thread Michael Echerer
Hi, we have an application that we deploy as .WAR file on Tomcat 5.0.28. It has a META-INF/context.xml with this content: Context path=/foo reloadable=false useNaming=true ResourceLink name=jdbc/myDB global=jdbc/myDB type=javax.sql.DataSource/ResourceLink /Context If our .war file is

RE: Compression - problematic?

2004-11-10 Thread Shapira, Yoav
Hi, From my experience, compression works fine. I haven't seen strange adverse effects from it, but then again I'm only one data point. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Carl Olivier [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 10, 2004 8:34 AM

RE: Counting Page Hits

2004-11-10 Thread Shapira, Yoav
Hi, answer I've seen in the past is that you should use log analysis tools on the logs, which are in a fairly standard format. Just a tiny correction: standard format completely, not just fairly standard. CLF and ELF are both supported and strictly adhered to, and these are the standard access

RE: Getting filepath of webapp without using Reqeust or Response

2004-11-10 Thread Shapira, Yoav
Hi, This is practically a FAQ, and it's been discussed on this list numerous times, so an archive search might prove helpful. You can try to use ServletContext#getRealPath(/), but if running from a packed WAR that will fail. Then again, what you're trying to do is against the spirit of the

Re: dear friend i'm in a big trouble

2004-11-10 Thread Phillip Mangwiro
Raasi Potluri wrote: I'm just a beginner and I have installed Tomcat5.0 and try to run a simple servlet. I have copied the compiled servlet on the webapps/root/WEB-INF/classes and added the servlet name and servlet mapping in the web.xml file. I'm trying to call my HelloClientServlet from

RE: Speed of jsp:useBean tags.

2004-11-10 Thread Shapira, Yoav
Hi, First, please don't blindly tune anything. Change one parameter at a time, and measure the impact using a program like JMeter, Grinder, ab, wget, or whatever load tester you like. For example, chances are the minProcessors/maxProcessors advice in the other response to your message is

RE: Why JNDI ResourceLink not resolved, if .war file name doesn't match context path in Tomcat 5.0.28 ?

2004-11-10 Thread Shapira, Yoav
Hi, I would caution you ahead of time: if you open any Bugzilla issues for this, please be prepared to submit your own .diff patches to address them. We're probably not going to spend significant time on it, as things are done differently in Tomcat 5.5 which is where the focus of development is,

RE: TC 4.1_05 sb 4.1.31

2004-11-10 Thread Shapira, Yoav
Hi, So it is Tomcat 4.1.31. Does the rest hold true? Try changing context path=/ to path=. You can use catalina.bat run (instead of startup.bat, which calls catalina.bat start) to keep the DOS window open and observe messages. This still holds true and is a useful debugging approach. Also

RE: Tomcat and CGI Programs

2004-11-10 Thread Shapira, Yoav
Hi, Yes, you can run CHI programs in Tomcat. See the CGI How-To document at http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cgi-howto.html. You need to rename the CGI servlet JAR and due a bit of configuration. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Michael

Re: wrong version 49.0

2004-11-10 Thread Phillip Mangwiro
Wei Wei wrote: After installed 5.0.29 TC, I tried to bring up the new application I just start today. I get the following error message. Can some tell me what is wrong here. 2004-11-04 10:42:39 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception

Buffering and redirection to the errorPage

2004-11-10 Thread Carl Olivier
Greetings. I have a question with regards buffering of output and subsequent errorPage redirection. Maybe I am missing something. The default buffer size for a JSP page response is 8kb. If an exception is thrown AFTER 8kb has been written (and the initial chunks has been committed) then the

Re: Speed of jsp:useBean tags.

2004-11-10 Thread Andoni
There are two alternatives with the Mainframe. One is to do a call to a batch file which searches through a directory tree for the files I want and then opens them and returns the data from them. This is the one currently in use live. The second alternative is the one I am trying to implement and

RE: Speed of jsp:useBean tags.

2004-11-10 Thread Shapira, Yoav
Hi, Is there a way to tune the JVM's File Access methods maybe? They're plenty fast as-is. But using the specific file approach rather than having it search through (potentially large) directory trees is obviously an improvement. Yoav This e-mail, including any attachments, is a

How do default to get website to go straight to my webapp ?

2004-11-10 Thread Paul Taylor
How do you default to get website to go straight to my webapp ? I have a web application called testapp and in web.xml I have welcome-file-list welcome-filejsp/overview.jsp/welcome-file /welcome-file-list Going to http://localhost:8080/testapp takes the user to

RE: How do default to get website to go straight to my webapp ?

2004-11-10 Thread Mike Curwen
getting rid of 8080: Change your Connector's port attribute in server.xml (search in the file for 8080). getting rid of the context name: Change your Context's path attribute to be . (probably also in server.xml). You will need to remove the existing default web application, which is that

RE: Buffering and redirection to the errorPage

2004-11-10 Thread Mike Curwen
If an exception is thrown AFTER 8kb has been written (and the initial chunks has been committed) then the redirection to the errorPage (if specified) does not occur. Does this sound right? That sounds 100% correct. Is there anyway to enforce the redirection to the errorPage? Not once

RE: How do default to get website to go straight to my webapp ?

2004-11-10 Thread Shapira, Yoav
Hi, BUT how can I get the user to go straight to http://localhost:8080/testapp/jsp/overview.jsp when they enter http://localhost:8080 at the moment it just goes to the tomcat home page index.jsp You need to make your webapp reside at context path (the empty string, not null and especially not

Re: Preventing users getting accessing to directory contents in Tomcat

2004-11-10 Thread Tim Funk
The easy way is to make start.jsp a GET and all the other pages POST. When pages are bookmarked - they are asked for via GET requests. Code you JSP to look for the request method. If the method is NOT POST, then redirect them to some error page. (Or the start page) For example, in JSTL (but not

Re: comparison of Type 4 JDBC drivers

2004-11-10 Thread agidden
I cannot thank you enough Tuncay Baskan. We were about to switch to Tomcat from Jrun4 and found that the MS drivers were noticably slower. Your tip to use jTds probably saved me a few days of testing. We also tried DataDirect, but they will not sell you just a driver unless you have some

Re: How do default to get website to go straight to my webapp ?

2004-11-10 Thread Paul Taylor
Thanks for the quick prompt reply. Is this normal to do, it feels like I am messing up the standard config and would the end result be that the url would display as localhost/overview.jsp rather than localhost/testapp/overview.jsp Would it be better to replace ROOT app with a mini app. For

RE: How do default to get website to go straight to my webapp ?

2004-11-10 Thread Shapira, Yoav
Hi, Is this normal to do, it feels like I am messing up the standard config It's normal, common, and fine. It might feel a little intimidating to someone who's new to Tomcat and/or web application design, but don't worry about it. That's why you're doing stuff in a test environment first,

Tomcat - 4.1 - SSL redirect only works on ports 80 and 443

2004-11-10 Thread David Austin
Good Morning, This is my first post to this site, so please go easy on me... I am running a tomcat 4.1 standalone server and I am trying to implement an SSL connector. I followed the instructions and was able to successfully get it to work with one problem: For some reason the redirect

update Tomcat 5.0.19 to 5.0.29

2004-11-10 Thread Francesco Pellegrini
Hi all, I run my web application with TOMCAT 5.0.19, I would update this version with the latest 5.0.29, Is this updating recommended? Thanks in advance Francesco. - To unsubscribe, e-mail: [EMAIL PROTECTED] For

RE: update Tomcat 5.0.19 to 5.0.29

2004-11-10 Thread Shapira, Yoav
Hi, Don't get 5.0.29. Get 5.0.28 now, which is an excellent release. Alternatively, if you want to wait about a week, 5.0.30 should be available depending on how busy my weekend is ;) Yoav Shapira http://www.yoavshapira.com -Original Message- From: Francesco Pellegrini [mailto:[EMAIL

RE: Multi-Site Clustering? (hot failover)

2004-11-10 Thread Steve Kirk
I've considered something like this in the past. However, I'd be interested to know how you plan to have the failover website at the second take over when the first website dies. In other words, how will a user's browser know to access the website at the failover IP address rather than the

Re: How do default to get website to go straight to my webapp ?

2004-11-10 Thread Paul Taylor
Ok, ive done the section so that I can add an extra application at a later stage if I need to. You say in your post index.xml do you mean index.jsp or web.xml I've created a new index.jsp which provides the user with a hyperlink to testapp but I dont know if I can make the new page

RE: How do default to get website to go straight to my webapp ?

2004-11-10 Thread Shapira, Yoav
Hi, You say in your post index.xml do you mean index.jsp or web.xml I meant the index page, so index.jsp or index.html would do, but not web.xml. Sorry for the typo. Note that the root webapp is precompiled: so if you want to replace index.jsp you need to clear out the compiled one. Yoav

Re: How do default to get website to go straight to my webapp ?

2004-11-10 Thread Paul Taylor
Ok FYI, done it added head meta http-equiv=refresh content=1; URL=../testapp/overview/startup.jsp/ /head to index.jsp Paul Taylor wrote: I've created a new index.jsp which provides the user with a hyperlink to testapp but I dont know if I can make the new page automatically go to testapp

RE : Compression - problematic?

2004-11-10 Thread LERBSCHER Jean-Pierre
I am surprised because if you search for compress in the source code of Tomcat 5.0.27 and you can see only get/set method in CoyoteConnector. More information would be welcome. -Message d'origine- De : Shapira, Yoav [mailto:[EMAIL PROTECTED] Envoyé : mercredi 10 novembre 2004 14:45 À :

How Are Default Contexts Created?

2004-11-10 Thread Fisher, Mitchell L
This question is about contexts that are created by default, not the DefaultContext element in service.xml. Even though I don't have any Contexts defined in my xml files, they seem to get created automatically, at least for running the Default servlet and the Status servlet. How are they

Re: Preventing users getting accessing to directory contents in Tomcat

2004-11-10 Thread Paul Taylor
Thanks Tim For all non JSTLers I added this to my page: %if (request.getMethod().equals(GET)) { response.sendError(HttpServletResponse.SC_NOT_FOUND); } % Tim Funk wrote: The easy way is to make start.jsp a GET and all the other pages POST. When pages are bookmarked - they are asked for via GET

Re: Multi-Site Clustering? (hot failover)

2004-11-10 Thread Filip Hanik - Dev
You need your fail over to be higher up in your network stack Filip - Original Message - From: Steve Kirk [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, November 10, 2004 9:35 AM Subject: RE: Multi-Site Clustering? (hot failover) I've

Session-cookie problems with several virtual hosts

2004-11-10 Thread Martin Morawetz
We have 3 different virtual hosts, which are subdomains of our main domain. We need access to the session from all virtual hosts. We use cookie-sessions, at the moment url-rewriting isn't a possible alternative. The problem is, that the browser doesn't send the cookie back to a subdomain, if the

Re: Preventing users getting accessing to directory contents in Tomcat

2004-11-10 Thread Tim Funk
Actually make it: % if (request.getMethod().equals(GET)) { response.sendError(HttpServletResponse.SC_NOT_FOUND); // Make sure return is here to STOP all processing - otherwise // You'll probably see IllegalStateExceptions return; } -Tim Paul Taylor wrote: Thanks Tim For all non JSTLers I

RE: Session-cookie problems with several virtual hosts

2004-11-10 Thread Shapira, Yoav
Hi, We need access to the session from all virtual hosts. We use cookie-sessions, at the moment url-rewriting isn't a possible alternative. Too bad, as that's the only portable alternative. Till now we solved the problem by specifying the domain globally in the resin.conf . Yes we used Resin

Use of Referer header

2004-11-10 Thread Paul Taylor
I have a WebPage which can be called from two different webpages, and I wanted it to have a back button. Originally I had the calling pages passing a parameter to tell the called page what called it. Then someone pointed out %=request.getHeader(REFERER)% to m. This works much better. But I

RE: Use of Referer header

2004-11-10 Thread Shapira, Yoav
Hi, But I have 2 questions: 1. Where are these header values defined I've not beeen able to find a good source. See the HTTP protocol RFC itself for common headers like referrer. Other servers and routers may add custom headers along the way. Your app and other apps can also use custom headers

Re: Use of Referer header

2004-11-10 Thread Ben Souther
The browser generates the HTTP headers and there are some rules governing when they are to be sent. http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html This isn't really Tomcat specific so I'm marking [OT] You may find more enthusiastic help on a JSP/Servlet list. -Ben On Wed,

[OT] Re: Use of Referer header

2004-11-10 Thread Ben Souther
On Wed, 2004-11-10 at 12:52, Ben Souther wrote: The browser generates the HTTP headers and there are some rules governing when they are to be sent. http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html This isn't really Tomcat specific so I'm marking [OT] You may find more enthusiastic

AW: wrong version 49.0

2004-11-10 Thread Steffen Heil
Sorry, http://learn.to/quote Regards, Steffen -Ursprüngliche Nachricht- Von: Phillip Mangwiro [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 10. November 2004 08:06 An: Tomcat Users List Betreff: Re: wrong version 49.0 Wei Wei wrote: After installed 5.0.29 TC, I tried to bring up

Tomcat and -server option

2004-11-10 Thread Mufaddal Khumri
Hi, I have specified the -server option in my catalina.sh using JAVA_OPTS. JAVA_OPTS=-server -Djava.awt.headless=true -Xms1g -Xmx1g -Dfile.encoding=ISO-8859-1 When I log into the manager app in tomcat I can see that its taking the correct memory settings , but I could not find a way to verify

class loader problem?

2004-11-10 Thread Ma, Liang
Hi there, I have a problem by running fop in a servlet with Tomcat 4.1.31. Every time when I first run the servlet to generate a pdf file after rebooting tomcat or leaving it for a couple of days, it gives me Null pointer exception (see below). Then I run it again, it works fine. Looks like

RE: Tomcat and -server option

2004-11-10 Thread Shapira, Yoav
Hi, JAVA_OPTS=-server -Djava.awt.headless=true -Xms1g -Xmx1g -Dfile.encoding=ISO-8859-1 Wow, min 1G heap. Interesting use-case there. When I log into the manager app in tomcat I can see that its taking the correct memory settings , but I could not find a way to verify that it is taking the

RE: Multi-Site Clustering? (hot failover)

2004-11-10 Thread Steve Kirk
thanks for replying, but can you be a bit more specific please? I'm stll not understanding how this can be done. -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: Wednesday 10 November 2004 16:47 To: Tomcat Users List Subject: Re: Multi-Site Clustering?

Catalina-ant manager tasks ZipException

2004-11-10 Thread Phillip Qin
I encounter this problem after every 20 to 30 deployments using catalina-ant Manager tasks (update=true). A normal one takes less than 1 minute. While this abnormal deployment takes 10 minutes. My war file is fine. My app is still deployed. However, after roughly 10 abnormal deployments, tomcat

RE: class loader problem?

2004-11-10 Thread Shapira, Yoav
Hi, As the stack trace shows, the exception is in the FOP classes. So the amount of blame you can give Tomcat, and the amount of help you can get on this list, are both severely limited. However, just out of curiosity I went to FOP's CVS repository, to try to find the Service or Driver classes

Re: Counting Page Hits

2004-11-10 Thread Justin Jaynes
The general answer I've seen in the past is that you should use log analysis tools Unfortunatly, I have never been introduced to log analysis tools. Could you give me a quick pointer in the right direction for a good, popular log analyzer? Then I can study up. I would appreciate the help

RE: Counting Page Hits

2004-11-10 Thread Shapira, Yoav
Hi, Could you give me a quick pointer in the right direction for a good, popular log analyzer? Then I can study up. I would appreciate the help so much. Easy. Enable the AccessLogValve in conf/server.xml, with pattern common (the default) or combined (for additional info). Use the server a

Re: Multi-Site Clustering? (hot failover)

2004-11-10 Thread Filip Hanik - Dev
Even a datacenter by itself plugs in to more than one backbone (network provider) So a datacenter itself has more than one connection into it. So what I am saying, if you want to fail over between data centers, that is not something you configure in tomcat, or in your own network, that is

Re: Counting Page Hits

2004-11-10 Thread Tim Funk
This is an apples to orangles comparison. commons-logging and log4j are for logging devloper errors and for debugging statements. Its purpose is for logging errors, stack traces, etc instead of using System.out.println() Access logs are pages or any other HTTP based request. There are free

Re: Multi-Site Clustering? (hot failover)

2004-11-10 Thread Peter Lin
normally ISP will offer multi-site load balancing using DNS. In terms of failover, it generally handled the same way. If an earthquake swallows the first location, the second site's DNS will pick and route the traffic to the second cluster. I would talk to your service provider. the smaller shops

Re: Multi-Site Clustering? (hot failover)

2004-11-10 Thread Filip Hanik - Dev
which might also give you the idea, if you control your own DNS, you could manually switch it over to a new set of IP addresses when your old data center blows up. Filip - Original Message - From: Peter Lin [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday,

RE: class loader problem?

2004-11-10 Thread Ma, Liang
Hi Yoav, Thank you very much for your valuable input. Very interesting. The classes reporting the problem are not there. But the version I use is the latest stable one (0.20.5). I am going to ask fop people again. Liang MA Software Analyst --

[VOTE][RESULT] Tomcat 5.5.4 Stability

2004-11-10 Thread Shapira, Yoav
Hi, After ample time for voting, we've ratified Tomcat 5.5.4 as a stable release, the first one of the 5.5 branch. The voting archive is here: http://marc.theaimsgroup.com/?t=10996632613r=1w=2. There were 3 binding +1 votes (Remy, Mladen, myself) and 1 non-binding +1 vote (David). There

How do you log with verbosity?

2004-11-10 Thread Cervenka, Tom
The Logger component has a verbosity attribute but the ServletContext.log method doesn't. Now LoggerBase.log does. How do I access this object from a servlet or jsp? -Tom Cervenka University of Illinois - To unsubscribe, e-mail:

problem in accessing / instead of /index.jsp

2004-11-10 Thread Didier McGillis
very odd. very. if I access the page with http://www.domain/dir/index.jsp it fine. if I access the page with http://www.domain/dir/ or http://www.domain/dir it give me the error. org.apache.jasper.JasperException: String index out of range: -1 I have index.jsp in the welcome file list, but I

Re: How do you log with verbosity?

2004-11-10 Thread Tim Funk
You don't. (or can't) The servlet spec stinks with respect to logging. Personally - I avoid using the log mehtods provided by the servlet API and use commons-logging. Then the underlying system can be tuning to the appropriate level of verbosenes. -Tim Cervenka, Tom wrote: The Logger component

JAASRealm, Classloader

2004-11-10 Thread Oliver Wulff
Isn't is possible to deploy my custom JAASLoginModule into the server/lib directory instead of shared/lib or web-inf/lib? The JAASRealm is loaded by the Catalina classloader either. You're help is appreciated. Oliver *** BITTE BEACHTEN *** Diese Nachricht

RE: problem in accessing / instead of /index.jsp

2004-11-10 Thread Phillip Qin
Have you set your welcome file in web.xml? -Original Message- From: Didier McGillis [mailto:[EMAIL PROTECTED] Sent: November 10, 2004 2:33 PM To: [EMAIL PROTECTED] Subject: problem in accessing / instead of /index.jsp very odd. very. if I access the page with

How to tell if JNI Library Loaded at Tomcat Startup?

2004-11-10 Thread Dan Barron
Hello, How can you determine in Tomcat if a JNI library has been loaded as a shared resource for web applications? I have a Wrapper class and the library both living tomcat-root/shared/lib. Thanks. Dan - To unsubscribe,

RE: problem in accessing / instead of /index.jsp

2004-11-10 Thread Didier McGillis
tomcat/web.xml welcome-file-list welcome-fileindex.html/welcome-file welcome-fileindex.htm/welcome-file welcome-fileindex.jsp/welcome-file /welcome-file-list application web.xml welcome-file-list welcome-fileindex.jsp/welcome-file

How to run a servlet when an application or Tomcat is stopped

2004-11-10 Thread Bill McHugh
I know that you can use load-on-startup to run a servlet when an application is started. Is there a way to specify that a particular servlet (or java class) is to be run when (a) the application is stopped, and (b) when Tomcat is shut down (or will shutting down Tomcat automatically trigger (a))?

Re: How to run a servlet when an application or Tomcat is stopped

2004-11-10 Thread Ben Souther
Yes, read up on ContextListeners. On Wed, 2004-11-10 at 15:15, Bill McHugh wrote: I know that you can use load-on-startup to run a servlet when an application is started. Is there a way to specify that a particular servlet (or java class) is to be run when (a) the application is stopped, and

Manual Datasource - Context Unavailable

2004-11-10 Thread Robert
Hi All, I have been following recent threads regarding JNDI DataSources and have decided to create my own singleton class to hold the DataSource and supply connections as needed as suggested by Yoav. This seems to be working fine. However, I would like to send a message to tomcat to make the

RE: Manual Datasource - Context Unavailable

2004-11-10 Thread Shapira, Yoav
Hi, Is there a way to programmatically make the Context unavailable? Not a portable/container-independent way. Instead, write a simple filter that calls YourSingleton.isEverythingOk(), and if the response is negative, redirects the request to a app unavailable page (or throws an exception, or

Manual Datasource - Context Unavailable

2004-11-10 Thread Shapira, Yoav
Hi, Is there a way to programmatically make the Context unavailable? Actually, I'd like to add to my previous message. There *is* at least one portable way to do this. If you initialize your singleton from a ServletContexteListener#contextInitialized method and throw an exception there, the

problem - BindException: JVM_Bind: 80

2004-11-10 Thread Stephen Charles Huey
I'm seeing a strange error message. We only run Tomcat as a service on Windows 2000, and no IIS or anything else, so I can't see anything else holding onto port 80. Any idea what would be causing this? Would it be something as simple as choosing to Start or Restart the service when it's already

Apache/Tomcat problem

2004-11-10 Thread Guillaume Alleon
Hi, I have a Linux FC1 machine running httpd (see conf below) I have now a tomcat applocation that I want to access through httpd since only the port 80 is open to this machine. Therefore, I did install jakarta-tomcat-connectors-jk2-2.0.4-src jakarta-tomcat-5.0.28. Trying apachectl configtest I

RE: problem - BindException: JVM_Bind: 80

2004-11-10 Thread Shapira, Yoav
Hi, Yup, something is using port 80. Either an already-running Tomcat instance, or another server. There's also a small chance your system administrator has configured your box to now allow people to bind this port. If you're the sysadmin you can obviously ignore this possibility ;) Yoav

RE: class loader problem?

2004-11-10 Thread Ma, Liang
Hi Yoav, Here is the answer to the source code question. Quote starts here: You are using FOP's latest maintenance release (0.20.5), which is FTM still recommended for general use. Driver.java, which contains the Driver and Service classes, can be found in the Attic at:

RE: class loader problem?

2004-11-10 Thread Shapira, Yoav
Hi, Thanks for posting, but I think you're on your own. I personally am not going to waste time looking into a class removed by another project ;) Maybe someone else is curious, or someone on the FOP list. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Ma, Liang

AW: problem - BindException: JVM_Bind: 80

2004-11-10 Thread Steffen Heil
Hi Get tcpview pro (it's free) and check what binds this port. Regards, Steffen -Ursprüngliche Nachricht- Von: Stephen Charles Huey [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 10. November 2004 22:01 An: Tomcat User Betreff: problem - BindException: JVM_Bind: 80 I'm seeing a

Ask for the best way to handle an exception

2004-11-10 Thread Daxin Zuo
In a JSP page, there are buttons. clicking one will launch an action which may read/write socket. In my program, all actions work well. But exception caused in the circumstance: I clicked a button. Before that action finished (in the middle of read/write socket), immediately, I clicked another

RE: Ask for the best way to handle an exception

2004-11-10 Thread Shapira, Yoav
Hi, First, this error is not serious and can safely be ignored. But if you want avoid it, don't click other buttons until the action is done ;) Of course that's easier to say than to enforce. One way to enforce this is some basic JavaScript: set all form buttons to disabled when one is

ChannelSocket is loosing connections

2004-11-10 Thread Lars George
Hi, After investigating the problem we have reported earlier a little more, it looks like we have the following problem: Every now and then we get heaps of SocketExceptions in the logs on Tomcat, all in ChannelSocket.invoke() in jk.common.ChannelSocket.java. Then all TP-Processor threads are

RE: class loader problem?

2004-11-10 Thread Mark Claassen
This is probably unrelated, but since you seem stuck I will tell you about an annoying issue that I have not yet investigated. Hopefully this will help you in some way. My issue is I sometimes get an NPE when tomcat de-serializes a session. (I valid solution for me is just to turn this

RE: problem in accessing / instead of /index.jsp

2004-11-10 Thread Phillip Qin
How about your mod_jk2 mapping in workers2.properties? -Original Message- From: Didier McGillis [mailto:[EMAIL PROTECTED] Sent: November 10, 2004 3:06 PM To: [EMAIL PROTECTED] Subject: RE: problem in accessing / instead of /index.jsp tomcat/web.xml welcome-file-list

RE: Apache/Tomcat problem

2004-11-10 Thread Phillip Qin
jk2_module is correct. Have you link the libapr-0.so.0? What is your LoadModule in httpd.conf? -Original Message- From: Guillaume Alleon [mailto:[EMAIL PROTECTED] Sent: November 10, 2004 4:01 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Apache/Tomcat problem Hi, I have a

  1   2   >