Re: Stats on Tomcat installations

2005-12-22 Thread Tim Funk
I don't know of many publicly available stats. Gartner might be of help. Tomcat is embedded as the web server for many packaged applications (COTS - commercial of the shelf software) which are web based. So while an Enterprise might say they don't use tomcat - if they use COTS software thats ja

Re: Access static content ("logs" folder) ?

2005-12-22 Thread Tim Funk
Add a context declaration like this in a file called logs.xml in your conf/Catalina/localhost directory. -Tim LANDRAIN Jean-Pol wrote: Hi, I use Tomcat 5.5 and I'd like to be able to browse my logs directory (%TOMCAT_HOME%\logs) from a web page to access it remotely (distant server insid

Re: Directory listing in Tomcat 5.5.14.

2006-01-03 Thread Tim Funk
Directory listings are disabled by default. This is because there is a speed issue with tomcat trying to list very large directories. This could cause a DOS attack for those in a default configuration and having a directory with a LOT of files in it. See the FAQ for how to enable/disable directo

Re: Where can I get JspC / Jasper2 argument overview?

2006-01-04 Thread Tim Funk
See all the set methods in http://tomcat.apache.org/tomcat-5.5-doc/jasper/docs/api/org/apache/jasper/JspC.html Typically I use the ant delete task after the compilation is done. I also exclude index.jsp so welcome file mappings work OK. -Tim Charl Gerber wrote: Al

Re: Real time optimization problem

2006-01-05 Thread Tim Funk
1) Put back all the logging via (Log4j or whatever) 2) Add filters (or whatever) to to all the individual pieces which make up the entire transaction 3) find the component which is slowest or from a timing point of view potentially too slow and start attcking that point. For example - if the da

Re: Comparing Tomcat Performance on Windows vs. Linux

2006-01-05 Thread Tim Funk
Interesting. In enterprise environments, I also hear it common to see antivirus software also run on windows servers too. (Yes, you read that correctly) I'd be curious to see how much or a performance decrease there is when one is turned on. -Tim Michael Czeiszperger wrote: I thought that T

Re: Migration

2006-01-06 Thread Tim Funk
The servlet spec requires that the following packages are imported in your jsp: javax.servlet.*; javax.servlet.http.*; javax.servlet.jsp.*; Other vendors in the past have also done things such as also include import java.util.* import java.io.* These actions are not mentioned by the spec and cre

Re: Way to force Tomcat not to send headers in its http response.

2006-01-06 Thread Tim Funk
This is a little vague. Are there certain headers which must NOT be sent? -Tim COURTAULT Francois wrote: Hello, Do you know if there is a way to force Tomcat not to send http headers in its http response ? Regards. - To

Re: Way to force Tomcat not to send headers in its http response.

2006-01-06 Thread Tim Funk
You will need to create your own Connector. Certain headers such as Server are always added to the response. -Tim COURTAULT Francois wrote: All the headers ! Regards. PS: Is there also a way to not send the ack http response (ie HTTP/1.1 200 OK) ? -Message d'origine- De

Re: Way to force Tomcat not to send headers in its http response.

2006-01-06 Thread Tim Funk
Your filter would create a HttpServletResponseWrapper. The wrapper would override the setHeader and addHeader methods to be no-ops. But certain headers will still be sent (unless you ovveride the Connector) -Tim COURTAULT Francois wrote: I don't see in the servlet api a way to clear or reset

Re: jsp cannont find my bean class

2006-01-09 Thread Tim Funk
http://tomcat.apache.org/faq/classnotfound.html See "Don't use packageless classes and declare all imported classes" -Tim marju jalloh wrote: Hi everyone I`m using Tomcat 4.1.* on Linux .All my servlet and jsp work fine including the interaction with mysql database. Now I want to te

Re: RequestDumperValve screws UTF-8 parameter parsing

2006-01-10 Thread Tim Funk
The first thing a servlet (or filter) should do is set the encoding before touching the request parameters. Its not intended to be called somewhere late in the processing lifecycle. Since a Valve executes before any javax.servlet code - all bets are off (for the request encoding) based on the wa

Re: Using Tomcat 5.5 as a standalone web server

2006-01-10 Thread Tim Funk
If possible - look into 5.5.15. The APR connectors should help with serving all the video and flash streaming. -Tim Adam Johnston wrote: Hello all, I am running a reasonable sized site, on Linux Red Hat + Tomcat 5.5.7. The site is serving mainly Flash movies and servlets with streaming vid

Re: Can't play wmv

2006-01-11 Thread Tim Funk
Make sure tomcat is returning the header: Content-Type: video/x-ms-wmv You can confirm this via telnet: telnet MYSERVER 80 HEAD /MY/foo.wmv HTTP/1.1 Host: MYSERVER Connection: close You can add the header in $CATALINA_HOME/conf/web.xml or in web.xml of your webapp. -Tim Mark Winslow wrote

Re: Problem with pdf in tomcat 4.1.29

2006-01-11 Thread Tim Funk
Its the response header: Content-Type: application/pdf;charset=ISO-8859-1 I can't recall the resolution to this issue. I believe a tomcat update fixes this. An issue similar to this was discussed in Bugzilla. The main issue is your using a JSP. The JSP is calling response.setCharacterset().

Re: Image Scaling Code

2006-01-12 Thread Tim Funk
FAQ .. http://tomcat.apache.org/faq/unix.html#x -Tim Justin Jaynes wrote: Hello all, I've written a java class to scale jpeg images. But I can't seem to get it to work. Can anyone point me in the right direction? - To

Re: concurrency of users on tomcat

2006-01-13 Thread Tim Funk
Tomcat should be able to handle this. The real question is "can your application handle it? Bandwidth is application dependent. You'll need to examine the average file size being returned. Whether the file can be compressed (via gzip). How many database queries need to be done. Can the databas

Re: help for error javax.servlet.ServletException

2006-01-13 Thread Tim Funk
A servlet threw a Throwwable during its service method which was not caught by any number of exceptions. There should be something in the logs (catalina.out of localhost_log_{date}.txt which should tell you the nested part of the exception. Otherwise - start looking for timestamps and trace tha

Re: Unable to override doPut(), etc, from Tomcat's JSPServlet (response 403)

2006-01-13 Thread Tim Funk
You cannot add a doPut() to your servlet and excpect it to work. But in your JSP, you can do this: // The following worked fine with tomcat 5.0.28 (plus unrelated patches) if("PUT".equals(request.getMethod()) { /*put code*/ } else { /*not put code*/ } JSP's declare Servlet.service() as fina

Re: help for OutOfMemoryError

2006-01-13 Thread Tim Funk
http://tomcat.apache.org/faq/memory.html#why -Tim Qaiser Mehmood wrote: Hi everyone, Can anyone help me that why I am getting this error : 2006-01-13 09:50:11 StandardWrapperValve[action]: Servlet.service() for servlet action threw exception java.lang.OutOfMemoryError: Java heap space

Re: [OT] 64Bit Java doesn't honour Xmx,Xms settings?

2006-01-17 Thread Tim Funk
Just because you get an OOM error doesn't mean its a heap issue. See the faq for details: http://tomcat.apache.org/faq/memory.html#why -Tim Leon Rosenberg wrote: Hi, sorry for OT, but since there is so much combined Java experience here, it's the fastest way of getting an answer. We have pr

Re: Any issues with using Access Log Valve in production??

2006-01-17 Thread Tim Funk
It depends. In a nutshell, it shouldn't be a performance issue. Why? Since access log writing occurs after the request has been sent to the client- there is no performance penalty with respect to the client. *BUT* if all you threads are in use then your clients will have a small wait period. But

Re: Authenticating LDAP users without their input - doable?

2006-01-18 Thread Tim Funk
See the faq ... http://tomcat.apache.org/faq/windows.html#ntlm -Tim g m wrote: I have a critical 'challenge' It is possible to authenicate on Tomcat using LDAP (Active Directory) (using MS IE browser), but, 'without' the user inputing their username and password - that is,

Re: malformed HTTP?

2006-01-18 Thread Tim Funk
There is a bugzilla report similar to this - but also check 5.1.15 since it has some fixes too. -Tim Patricio Keilty wrote: Hi guys, i recently tried to migrate my webapps from version 5.5.4 to a brand new 5.5.12 installation, so i just copied original $CATALINA_HOME/conf/server.xml & all $CA

Re: tomcat log analyser

2006-01-18 Thread Tim Funk
No. Tomcat can produce access log files in the statndard format as read by most log file analyzers. -Tim Stas Ostapenko wrote: Hello ! I'm searching for tomcat log analyser. Under Apache (not Tomcat) i have used AWStats. Is there something similar for standalone Tomcat ? -

Re: malformed HTTP?

2006-01-18 Thread Tim Funk
Actually - it might be more like http://issues.apache.org/bugzilla/show_bug.cgi?id=37627 -Tim Patricio Keilty wrote: Tim Funk joedog.org> writes: There is a bugzilla report similar to this - but also check 5.1.15 since it has some fixes too. -Tim Thanks for your response

Re: tomcat doesn't shutdown

2006-01-18 Thread Tim Funk
http://tomcat.apache.org/faq/misc.html#stop -Tim philguillard wrote: Hi, Launching the script shutdown.sh doesn't shutdown my tomcat 5.5.12. Any idea? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-

Re: tomcat doesn't shutdown

2006-01-19 Thread Tim Funk
noranc! My problem is just that i'd like to be able to use shutdown.sh in an automatic script without needing to manually check the process and kill it. Regards, Phil Tim Funk wrote: http://tomcat.apache.org/faq/misc.html#stop -Tim philguillard wrote: Hi, Launching the script shut

Re: is there any way to monitor application server when it is working ?

2006-01-31 Thread Tim Funk
Look at the archives for peter Lin and jmeter. He has a jmeter plugin for monitoring tomcat. I don' think it has all you need - but could be a good foundation for what you need. -Tim Legolas Woodland wrote: thank you for reading my post is there any application that help monitor an applicati

Re: percent sign in URI

2006-02-01 Thread Tim Funk
If this were fixed, there would be a host of people complaining about the opposite. The URL below is inavlid based ont the RFC. getParameter has some basic assumptions that the url is correctly encoded. If you wish to place bad data in the query string, I recommend using request.getQueryString

Re: How to identify version of a running Tomcat and similar trivia

2006-02-01 Thread Tim Funk
See the FAQ. http://tomcat.apache.org/faq/ There are a few ways to get the version 1) Use version.sh (or vertsion.bat) 2) Look at the manager webapp (in url /manager/html/) 3) More ways that I can't remember -Tim [EMAIL PROTECTED] wrote: Hi Tomcatters, I beg your pardon for this affront to a

Re: HTTP Status 408

2006-02-01 Thread Tim Funk
The code says (in FormAuthenticator) if (session == null) session = request.getSessionInternal(false); if (session == null) { if (containerLog.isDebugEnabled()) containerLog.debug ("User took so long to log on the session

Re: How to identify version of a running Tomcat and similar trivia

2006-02-01 Thread Tim Funk
Tomcat is like any server based java app. It will always require a convulted classpath as well as multiple classloaders to do anything interesting. The most failsafe way to get the version regarless of the packaging is to do the following: (no, i'm not kidding) 1) find catalina.jar. It *should*

Re: How to identify version of a running Tomcat and similar trivia

2006-02-02 Thread Tim Funk
This has been fixed in the tomcat 5.0.X line months ago with the inclusion of the version.bat and version.sh scripts. (Which call "catalina.sh version"). We can't help it if OS vendors repackage tomcat and omit those files. -Tim [EMAIL PROTECTED] wrote: Hi Tim, yes, at least the later Tomcat

Re: BUG TOMCAT 4.1.31 Stack Trace

2006-02-02 Thread Tim Funk
Its a database error [ ORA-01722: invalid number] coming from oracle. Looks like your trying do shove a nonnumber into a fields which is a number. This is a developer coding error. (not tomcat) -Tim Markus kalle wrote: that's the stack trace i get when i try the mentioned code. regards, mar

Re: The Future of Tomcat

2006-02-02 Thread Tim Funk
Sweet sweet flame fodder. Tomcat is as alive as the community of developers that are willing to work on it (like any open source project). Tomcat did take a hit with respect to Sun moving resources to Glassfish. But in general, servlet containers are fairly "mature" and boring and somewhat sta

Re: The Future of Tomcat

2006-02-02 Thread Tim Funk
Apache is a legal entity which is composed of many developers who work on a variety of software projects in a variety of programming languages. Some projects are related to one another, others are not. Apache != httpd. httpd was the first Apache project. -Tim David Kerber wrote: Apache and T

Re: Servlet filter on j_security_check

2006-02-02 Thread Tim Funk
You can't install a filter on j_security_check -Tim Martin Dubuc wrote: I am using form based authentication in my application. I would like to know if it is possible to install a Servlet filter on j_security_check. I have tried to install one, but it never gets invoked. Here is my fi

Re: Servlet filter on j_security_check

2006-02-02 Thread Tim Funk
If you want to be spec compliant. There is a bugzilla entry with respect to this and confirmation by the expert group that Tomcat's behavior is correct. -Tim Frank W. Zammetti wrote: Well, there you go Martin :) Tim, is this something peculiar to Tomcat that doesn't allow it? As I mentioned

Re: Catalina.out gets to big-> Server crashes

2006-02-03 Thread Tim Funk
http://tomcat.apache.org/faq/logging.html#catalina.out -Tim Joost de Heer wrote: now the question I have is now, how can I here setup jsvc so that it uses logrotation, As far as I'm aware catalina.out can't be rotated. For the Tomcat servers I maintain I've written a script that stops/moves

Re: Two URLs, One Web Site

2006-02-08 Thread Tim Funk
If you are using apache. Using mod_rewrite is a very easy way to fix the doorway problem. For example: ServerName www.companyA.com RewriteEngine on RewriteCond %{REQUEST_URI} ^/$ RewriteRule.+ /companyA_index.html [L,R=302] ServerName www.companyB.com RewriteEngine on Re

Re: pure java mod_rewrite using javax.servlet.Filter

2006-02-10 Thread Tim Funk
The Tomcat distritbution doesn't have an equivalent of mod_rewrite. Try http://javawebparts.sourceforge.net/ It has an apache license. -Tim Antony Riley wrote: Googles suggested implementation is GPL, which prohibits me from using it, and I'm not paying for the equivalent of mod_rewrite for to

Re: Access log to see where robots go.

2006-02-10 Thread Tim Funk
The problem is your home page, not robots.txt. When / is requested - the following is served back, notice the javascript redirect: (the full file is below) function invokeWebApp() { top.location.href = "http://www.theuniquepear.com/unique/index.jsp";; } Search engines do not e

Re: AccessLogValve - tomcat 5.0.x logging to syslog?!

2006-02-22 Thread Tim Funk
You'd need to implement your own access log valve class to write to syslog. OR if you are using a Unix system you *might* be able to try this kludge: 1) Create a named pipe (using mkfifo) 2) Configure AccessLogValve to NOT rotate and use that named pipe 3) Run a program which reads from the fifo

Re: Redirect username and password from http basic authentication to a serlvet as parameters

2006-02-22 Thread Tim Funk
In this case - I would not use a realm. I would use a few filters. 1) One that checks for the WWW-Authenticate headers to ensure you are logged in and sets request.getRemoteUser() and override request.isUserInRole() accordingly (via a HttpServletRequestWrapper). If not logged in - it will retu

Re: Here is site, not getting spidered.

2006-03-27 Thread Tim Funk
It looks like the major issues as seen here: http://marc.theaimsgroup.com/?l=tomcat-user&m=113962621607862&w=2 have been fixed. Since it has been less than 1 month since those issue have been fixed - it may be a waiting game. Google has additional crawling algorthm which detects how often a si

Re: Can I generate JSP pages on the fly using this mechanism?

2006-03-31 Thread Tim Funk
You don't want to use JSP for something like this. It be much easier to use a templating language such as Freemarker or Velocity. -Tim Gabriel Belingueres wrote: Hi, I'd like to write an application that, instead of deploying .JSP pages into a context, I could deploy, let's say .xyz pages int

Re: W3C "Extended Log Format"

2006-04-07 Thread Tim Funk
The javadocs do provide some good stuff ... http://tomcat.apache.org/tomcat-5.0-doc/catalina/docs/api/org/apache/catalina/valves/ExtendedAccessLogValve.html -Tim Peter Rossbach wrote: Look at class o.a.c.valves.ExtendedAccessLogValve at the Source Distribution. This AccessLogger is currently

Re: Server attributes in Http connector

2006-04-13 Thread Tim Funk
The Server attribute is for setting the server name on the response. For example, you can have tomcat server back: 200 Ok Server: More Cowbell/1.0 ... As for the "charset=ISO-8859-1" - See the tomcat-user archives and bugzilla about this. I can't recall the outcome of the various resolutions f

Re: IE 20 session cookies limitation

2006-04-16 Thread Tim Funk
Check the docs - there is an option that will allow tomcat to use the same jsessionid for all webapps. -Tim Rick Wong wrote: It's been a while since my last posting of this topic. I have a work-around that perhaps someone may find it useful. I worked around the issue by implementing a Tomc

Re: File download error in IE with mod_jk

2006-04-18 Thread Tim Funk
IIRC, its an IE setting. It has to do with tomcat probably sending a no-cache (like) header while in HTTPS. HTTPS + nocache + IE == weird issues. I can't recall the resolution. But google searching: https Internet explorer download will probably get you int he right directions. There are a

Re: what about a server specific web.xml tailoring?

2006-04-18 Thread Tim Funk
No. But if I were you - I would write an Ant task which 1) unpacked the war 2) copied the original web.xml to a backup name (for reference) 3) injected the security constraint 4) repackage the war Or you can create a Valve which does the additional constraints. -Tim Rolf Schumacher wrote: Dea

Re: AJP13 and Mod jk security

2006-04-18 Thread Tim Funk
The easiest way is to rely on you network admins to ensure no one is eavesdropping. But sometimes that isn't possible. The next easiest way to use an ssh tunnel between tomcat and apache. You need google for the specifics. But from your apache servers - if you have one tomcat - you'd probably

Re: Tomcat releases

2006-04-20 Thread Tim Funk
5.5.17 was called beta because it needed to be called something. It could also be called alpha, moe, larry, or curly too. But it can't quite be called stable. But it CAN be called stable once some time (typically a few days) go by and the Release Manager calls for a vote on stability of the re

Re: Problem with the xsl:import

2006-04-25 Thread Tim Funk
Here's the problem. xsl:import is purely an XSL thing. So it doesn't necessarily do anything similar to how the servlet spec does things. So when you have - cowbell is retreived in a relative style with respect to its context. (which could be file, or http). Your webapp lives in a context. B

Re: vsite config files on Tomcat 5.5 - including in server.xml?

2006-04-27 Thread Tim Funk
Since the jsp servlet is registered globally - all vhosts inside tomcat will be able to run jsp's. But since you are using apache in front of tomcat - you can decide which requests get routed to tomcat and which do not. (Via your apache config) As for configuring tomcat with virtual hosts - a

Re: How to access WebService implementation from Context?

2006-05-02 Thread Tim Funk
If you mean WebService ala SOAP - you are probably out of luck without a lot of work. If you mean webservice as a webpage which does stuff that is intended to be called by an application - there might be hope. If the ENTIRE webapp is considered the webservice, you can run the Valve at the Co

Re: add a session's attribute after authentication

2006-05-02 Thread Tim Funk
Via tomcat - there isn't a hook. The best (and most portable way) you can do this is to write a filter which checks for the attribute in the session vs the remoteUser value. For example: doFilter(...) { if (null!=request.getRemoteUser() && null==request.getSession().getAttribute("cowb

Re: Limiting effects of badly-behaved webapps

2006-05-02 Thread Tim Funk
An "easier solution" is to throttle the webapp via a filter. For example: Filter{ final int maxThreadCount=10; int threadCount=0; doFilter() { synchronized(this) { if (threadCount>maxThreadCount) { response.sendError(SC_SERVICE_UNAVAILABLE); return; } t

Re: Plan to support Servlet 2.5 spec

2006-05-03 Thread Tim Funk
JSP2.1, Servlet spec 2.5 support will be in tomcat 6. Launch date is unknown. There first has to be the round of alpha, beta testing. -Tim Sanjeeb Kumar Sahoo wrote: Hi, Is there schedule for supporting Servlet 2.5 spec? Which version of Tomcat will it be?

Re: Using Tomcat as a reverse proxy

2006-05-03 Thread Tim Funk
See http://j2ep.sourceforge.net/ -Tim Andrew Miehs wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dear List, I have an application where I need to use tomcat as a reverse proxy for certain URLs. Yes - I know normally it is the other way around, but not in this case. Is there a re

Re: Tomcat caching proprties file loaded with : myClass.getResourceAsStream( "props.properties")

2006-05-04 Thread Tim Funk
Use URL url = ServletContext.getResource(path) Where path is relative to the web root. Then you can open the URL and see the last modified date and reload if it changed with ServletContext.getResourceAsStream(path) (or by opening the URL) -TIm Chris Ward wrote: Thanks Filip, I figured

Re: Resource vs. RealPath

2006-05-06 Thread Tim Funk
You'll need to clean the following up but you can use this: Date lastModified = new Date(servletContext .getResource() .openConnection() .getLastModified()); -Tim Bruce Miller wrote: Hi Tomcatters; A seemingly naive question: I've got various configura

Re: Resource vs. RealPath

2006-05-06 Thread Tim Funk
Its not as expensive as you think. The connection is NOT an HttpConnection. Its a connection to a custom resource loader. -Tim Bruce Miller wrote: Tim Funk wrote: You'll need to clean the following up but you can use this: Date lastModified = new Date(servletCo

Re: Default servlet

2006-05-08 Thread Tim Funk
The default servlet already is mapped to / so your mapping below is not needed. Tomcat's default servlet is defined in $CATALINA_HOME/conf/web.xml -Tim Dmitry S. Kravchenko wrote: Hi! How can I configure existance of default servlet? This servlet, as I can see, allows me to use following

Re: Listener in tld files - bug ?

2006-05-08 Thread Tim Funk
Listeners are allowed in TLD files. -Tim MiSt wrote: I added (by mistake) element org.springframework.web.context.ContextLoaderListener to struts .tld file (after ) despite web.xml and I noticed that Spring context was loaded properly! Why? Elment is illegal in

Re: Listener in tld files - bug ?

2006-05-09 Thread Tim Funk
Yes. You can turn on XML validation of the XML file before using it - but many people believe that should be a build time exercise and not a run/deploy time exercise. -Tim MiSt wrote: Tim Funk: Listeners are allowed in TLD files. Thanks for answer You are right. Element listener is

Re: Does Tomcat reuse parameterMap?

2006-05-09 Thread Tim Funk
It can be reused - but it is only used in by a single request at a time. A single request is bound to a thread. So it is thread safe. Now if you have listeners that is assigning the value of the map or the servlet request to something else. And that something else lives longer than the life of

Re: System.setProperty failed during Tomcat5 startup

2006-05-09 Thread Tim Funk
1) Don't hijack threads - start a new one 2) Your running tomcat in with the security manager turned on. When the security manager is enabled - methods System.setProperty() and System.exit() are not allowed to be called. -Tim lee hwaying wrote: Tomcat startup fail with below error log when S

Re: System.setProperty failed during Tomcat5 startup

2006-05-09 Thread Tim Funk
Don't know - you'll need to ask a spring related user list. -Tim lee hwaying wrote: sorry for that. THanks for the reply is there any way round it without having to touch the security manager as I am running it from a web hosting package many thanks From: Tim Funk <[EM

Re: JAVA_HOME / JRE_HOME still necessary?

2006-05-10 Thread Tim Funk
Some of us run many JVM's on the same machine. And for reasons which drive us insane, java 1.1.X tends to be the first java in the PATH. -Tim Stefan Wachter wrote: Hi all, wouldn't it be nice if Tomcat does not need the JAVA_HOME or JRE_HOME environment variable? After installation of the SU

Re: Tomcat 5.0.x: AccessLogValve's "%B" pattern specifier shows -1 bytes??

2006-05-17 Thread Tim Funk
Most likely - the response was a 3XX response. In which case - there is no body to send. (In particular look at 304 responses) 1) Setting timeFormat to a format not friendly to SimpleDateFormat will probably yeild bad results. 2) No -Tim Francis Galiegue wrote: Hello list, In order to o

Re: Is it possible to use regular expressions in web.xml's servlet mapping?

2006-05-18 Thread Tim Funk
There is no regex support for URI mapping. At one time it was to be part of the 2.5 servlet spec - but for reasons unknown to me - it was yanked. -Tim Paul Hamer wrote: Hi All! I want to map a single servlet to multiple URLs. Ofcourse in web.xml I could do this, which works fine: MyS

Re: Getting servlet context path without a servlet request.

2006-05-22 Thread Tim Funk
Your on the right track - the servlet 2.5 spec fixes this (but tomcat 6 isn't out yet). If I were in this predicament - I'd use a ServletContext init parameter. They can be overridden in the declaration. -Tim Stuart Wood wrote: I have a web application running under Tomcat 5.0, and I need

Re: Classloader bug?

2006-05-22 Thread Tim Funk
Its not a bug. A jar needs to contain classes, not other jars. -Tim Asaf Lahav wrote: I think encountered a tomcat classloader bug. I have a jar file that contains several other jar files. I expected the classloader to be aware of the jar files that are packaged inside it. Anyhow, I kep

Re: Classloader bug?

2006-05-22 Thread Tim Funk
Cellular: 972-54-4717955 Phone: 972-3-6540255 Fax: 972-3-6540254 -Original Message----- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Monday, May 22, 2006 7:28 PM To: Tomcat Users List Subject: Re: Classloader bug? Its not a bug. A jar needs to contain cla

Re: can the servlet instantiation be patched?

2006-05-26 Thread Tim Funk
You might have an easier time using a Filter. But this might not offer the same amount of granularity. (Using a HttpServletRequestWrapper() might help too) -Tim Leon Rosenberg wrote: Hi, sorry if my research hasn't been very deep, but does someone know how to patch the servlet instantiation i

Re: can the servlet instantiation be patched?

2006-05-26 Thread Tim Funk
Rosenberg wrote: I'm not sure I will have control of the end of the servlet execution with the filter, would I? regards Leon On 5/26/06, Tim Funk <[EMAIL PROTECTED]> wrote: You might have an easier time using a Filter. But this might not offer the same amount of granularit

Re: can the servlet instantiation be patched?

2006-05-27 Thread Tim Funk
berg wrote: Thanx tim, I have one last question, which would be probably the hardest to answer... How do I now _which_ servlet is behind me in the chain? regards Leon On 5/26/06, Tim Funk <[EMAIL PROTECTED]> wrote: Yes you will ... doFilter(...) { // log and set other timing

Re: using jsps included in jar

2006-05-31 Thread Tim Funk
No such feature in tomcat. (Unless the jsp's were precompiled - in which case - they'd be servlets) -Tim Leon Rosenberg wrote: Hi, due the nature of the keywords "jsp", "jar" and "compile" it's pretty hard to find the result to this question by googling, or at least I failed. Is it possible

Re: Tomcat as a standalone webserver. Why not?

2006-06-01 Thread Tim Funk
This is getting dated but is still somewhat accurate: http://tomcat.apache.org/faq/connectors.html#integrate The latest versions of Tomcat are comparable to apache in delivering static content. But in reality - unless your site is very high traffic - this is not an issue. Its ([expensive dynam

Re: jar Sequence in the same directory

2006-06-02 Thread Tim Funk
No. Place your patches in the classes folder. -Tim exquisitus wrote: I have a special question related to the classloader of Tomcat. If I put two jar files in the same directory (myJar.jar and myJarPatch.jar) where the second jar is a patch, that contains only a part of classes (let's say a s

Re: HTTP-less GenericServlets - Was: Socket Servlet using Tomcat 5.5.17

2006-06-02 Thread Tim Funk
(My opinion) The servlet spec really only works for http based things. Trying to fit anything else in will morph into a ainful kludge. There are other apache projects out there such as avalon (or whatever subprojects it broke into) which is probably more suited to this task. -Tim Juergen Weber

Re: few "fat" contexts of many "lean" contexts?

2006-06-07 Thread Tim Funk
From a performance point of view - it doesn't matter. From a maintenaince point of view - I prefer many lean clients. That way - if one of them behaves badly - off they go into a new JVM (assuming you have apache in front of tomcat) -Tim Javier Gonzalez wrote: Hi, I'm running a tomcat

Re: Only a Ip's set in application TOMCAT

2006-06-09 Thread Tim Funk
http://tomcat.apache.org/faq/security.html#restrict -Tim Julio Rios wrote: Hello, I have a Tomcat with these releases: Versión de Tomcat: Apache Tomcat/5.5.17 Versión JVM: 1.4.2_01-b06 Nombre de SO: Windows XP I have two applications and one web services (axis) I like to do the tomcat filter

Re: Servlet on FileTypes

2006-06-09 Thread Tim Funk
You can do prefix or suffix matching. Not both. (Darn servlet spec) -Tim Kenneth Østby wrote: Hey.. I'm trying to map **/*.page to a spesific servlet, and I can't find any documentation about. Is there a way that I can use url-mapper to eat /**/*.page ? Kenneth --

Re: Servlet on FileTypes

2006-06-09 Thread Tim Funk
*.do goes to struts. Then struts does the appropriate re-mapping to the correct action. -Tim Tim Lucia wrote: Are you sure? How would Struts handle modules with a generic action servlet mapping for *.do? I.e., I can have module actions like /mod1/action1.do, /mod1/action2.do, /mod2/action1.

Re: few "fat" contexts of many "lean" contexts?

2006-06-09 Thread Tim Funk
ntually lead to duplicated libraries which would ultimately lead to wasting memory. Thanks for taking the time to answer my question. On 6/7/06, Tim Funk <[EMAIL PROTECTED]> wrote: From a performance point of view - it doesn't matter. From a maintenaince point of view - I prefer many le

Re: Outgoing requests to match a specific IP

2006-06-13 Thread Tim Funk
Its not a tomcat setting, it java socket programming. http://java.sun.com/j2se/1.4.2/docs/api/java/net/Socket.html#Socket(java.net.InetAddress,%20int,%20java.net.InetAddress,%20int) Whatever library is making the outbound call should have an option to choose the local ip address the connection

Re: Tomcat 5.5 Regular Expression as servlet-mapping url-pattern

2006-10-27 Thread Tim Funk
Nope -Tim ben short wrote: Hi is it possible to use a regular expression as a servlet-mappings url-pattern? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional co

Re: Could a bad servlet initializtion stop tomcat?

2006-11-03 Thread Tim Funk
It may be better to move the "startup code" to a ServletContextListener. When a ServletContextLister fails on startup - then the webapp is unavailable. When the webapp is unavailable - any HTTP based monitoring tool would pick that up (due the error page returned) -Tim Yaar Schnitman wrote:

Re: Tomcat authenticate with BASIC Auth (Pre: Active directory)

2006-11-03 Thread Tim Funk
Out of the box - there is no Valve in Tomcat which requires authentication without first consulting web.xml. As a simple(?) kludge - you could write your own Valve which forces authentication on anything executed by the Valve: - you'll need to fill in isAuthenticated(...) public class Prote

Re: Using Tomcat as UDP server

2006-11-21 Thread Tim Funk
HTTP is a TCP based service. Running it over UDP will not work. -Tim [EMAIL PROTECTED] wrote: Hi I want to use Tomcat as an UDP server instead of TCP. Can this be done just by configuration? If not, then what do I need to do? I have read and searched a lot on the subject but theres is no cl

Re: Form Based Authentication : connection and bind to directory problems

2006-11-29 Thread Tim Funk
IIRC there is no way to do that. As an alternative, you can hack JNDIRealm to have it do what you wish. -Tim Christopher Buffington wrote: I'm trying to use form based authentication with JNDIRealm to validate users in an Active Directory Application Mode (ADAM) directory. I have a small test

Re: Web spiders - disabling jsessionid

2006-12-01 Thread Tim Funk
The easiest is the filter and custom HttpServletResponse which overrides encodeURL() to do nothing. It could be made one step smarter by checking if the User agent is a search engine bot to selectively execute or not. -Tim Mikolaj Rydzewski wrote: Hi, As you may know url rewriting feature

Re: Web spiders - disabling jsessionid

2006-12-01 Thread Tim Funk
Wrong. Google is very clear about not hiding user agent - as well as a the other major bots. Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html Just just for Googlebot in the user-agent header. -Tim Leon Rosenberg wrote: On 12/1/06, Tim Funk <[EMAIL PROTECTED]>

Re: Should I manually buffer my streams I get from the servlet-container?

2006-12-15 Thread Tim Funk
Do not perform your own buffering - its already done by the container. The streams are not synchronized - but they don't need to be. -Tim Clemens Eisserer wrote: Hello, I wonder wether I should manually buffer the streams I get from HttpRequest/HttpResponse by wrapping it in an BufferedS

Re: How many programmers were involved in Tomcat 4.0?

2006-12-17 Thread Tim Funk
Look(count) at the history of differnet committers here: http://svn.apache.org/viewvc/tomcat/container/tags/tc4.0.x/ -Tim Thanh Vinh Nguyen wrote: How many programmers were involved in Tomcat 4.0? Please dont answer 4.0 is obsolete: I KNOW THAT. I am doing a reasearch on the evelovment of Tomc

Re: On Tomcat 5.5.9, can't flush the buffer or reduce buffer size < 8192

2006-12-19 Thread Tim Funk
JSP's also have a buffer too. To make it smaller or eliminate it: <[EMAIL PROTECTED] buffer='none'%> or use out.flush() instead or response.flushBuffer() -Tim Richard Mundell wrote: No one replied, so in the hope someone might have the answer to this, here's a repost... :-) -Original

Re: On Tomcat 5.5.9, can't flush the buffer or reduce buffer size < 8192

2006-12-19 Thread Tim Funk
lBuffer==true) { %><[EMAIL PROTECTED] buffer="1kb"%><% } %> ...but this doesn't work (can't mix directives and scripting elements). Any ideas? Thanks, Richard -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Tuesday, D

<    1   2   3   4   5   >