Re: Peak load of Tomcat-powered server(s)?

2006-12-25 Thread Tim Funk
Any modern server can easily handle thousands of concurrent users. But that doesn't answer concurrent requests. Which should be > 100/sec. But there are 2 major factors - use of HttpSession is light - Using HttpSession for users can kill scalability due to memory constraints. (YMMV) - Amount of

Re: IllegalStateException

2007-01-03 Thread Tim Funk
http://tomcat.apache.org/faq/misc.html#illegalstate -Tim Leon van der Merwe wrote: I am getting the above exception thrown all over my log files and I am not sure what it means... Does anyone know what this means? 20061113 09:54:33 <> PageTemplateManager> java.lang.IllegalStateException

Re: Tomcat and JSTL 1.2

2007-01-09 Thread Tim Funk
Looks like you are missing the JSTL jar files whihc need to be in WEB-INF/lib -Tim ben short wrote: Hi all, Im trying to use jstl 1.2 with tomcat 5.5.20 and java 1.5.0_05-b05. My webapp deploys ok but when I browse to it I get the following exception. xception org.apache.jasper.JasperExcep

Re: Is Tomcat still the reference implementation for Servlets and JSP?

2007-01-09 Thread Tim Funk
Tomcat isn't used in the RI for 2.5. Glassfish is a fork of tomcat. So you'll notice many things the same. -Tim Jon Miller wrote: Hi all, Does anyone know if Tomcat is still the reference implementation for Servlets and JSP? I thought the Servlets 2.5 spec was finalized in May. Why is it ta

Re: How do you do virtual directory / path mapping in a webapp

2007-01-10 Thread Tim Funk
There is no way currently. I have a patch on my local machine which allows add this functionality for FileDirContext. http://tomcat.apache.org/tomcat-5.5-doc/config/resources.html But I haven't had time to see if my patch is secure or compliant if someone uses the WebDav servlet. In the m

Re: Is it possible to deploy a war file which gives a different context name?

2007-01-11 Thread Tim Funk
Yes (I think) 1) Keep the war file out of the tomcat installation 2) Use a context declaration which points to the war file (mainApp.xml) 3) Don't unpack wars () mainApp.xml === === -Tim Aaron Chai wrote: Is it possible for Tomcat to deploy war files where the context name is not the same as

Re: How can I get the unparsed URI from inside a servlet

2007-01-14 Thread Tim Funk
What about HttpServletRequest.getRequestURI()? -Tim [EMAIL PROTECTED] wrote: Is it possible to get the unparsed URI from inside the service method of an HttpServlet? I am using tomcat 5.5.9. I notice that the HttpServletRequest parameter to this method is - implemented by org.apache.catalina.

Re: Trailing slash added

2007-01-14 Thread Tim Funk
There is no way to customize this behavior other than overriding the default servlet with your own implementation. -Tim lightbulb432 wrote: I noticed that Tomcat adds a trailing slash automatically when it detects that the requested resource points to an existing directory. While I know that A

Re: Watching a directory for new files

2007-01-16 Thread Tim Funk
Various operating system allow hooks to do be notified when items in the filesystem change. But since we're using java - thats not the case here so you need to something generic such as the following: Create a new ServletContextListener - this will run once one webapp loading. Have this spawn

Re: shut out IP-adresses / subnets

2007-01-16 Thread Tim Funk
http://tomcat.apache.org/faq/security.html#restrict -Tim [EMAIL PROTECTED] wrote: Hello list, I'm unsing Tomcat 5.5 in a intranet environment. Is it possible to shut out special IP adresses or subnets by Tomcat configuration? A Address specified on this 'blacklist' should not get ANY response

Re: Tomcat 6.0.8 & JSF 1.2 RI

2007-01-22 Thread Tim Funk
Check your server.xml - this should be in it - if not - then you will (sometimes) get the error as described below: -Tim Zaphod wrote: I try to use the JSF 1.2_03 RI with Tomcat 6.0.8. I get a NullPointerException: Servlet.service() for servlet jsp threw exception java.lang.NullPointerExcep

Re: Further documentation on j_security_check

2007-01-24 Thread Tim Funk
See the servlet spec SRV.12.5.3 Form Based Authentication -Tim Langas de los Langas wrote: Thanks for the feedback, but I had already checked that documentation. I want to understand j_security_check on a deeper level; I especifically want to know how the process receives and handles the dat

Re: JSP include issue when pre-compiling using Ant/Tomcat

2007-01-25 Thread Tim Funk
Jsp files which are compile time includes should not end in .jsp - but something else. (Preferably .jspf) renaming test2.jsp to test2.jspf will fix your precompilation issue. Using jspf has the added advantage of also letting you know immediately the files being used as compile time includes.

Re: JSP include issue when pre-compiling using Ant/Tomcat

2007-01-25 Thread Tim Funk
1) If you keep reading, it also says: "JSP fragments that are not complete pages should always use the .jspf suffix and should always be placed in /WEB-INF/jspf" 2) Try requesting test2.jsp (the jsp which was the fragment earlier in this thread) from the browser - it won't compile 3) The doc

Re: How to locate a configuration file on disk at runtime

2007-01-26 Thread Tim Funk
My preference is JNDI ( ) for such things. Then in web.xml - you can create a default entry in web.xml" configFile /etc/stuff java.lang.String Then it can be overridden in your context config: Then looked up in java via: *** import javax.naming.Context; import javax.naming.Initial

Re: authentication using active directory

2007-01-26 Thread Tim Funk
Most likely - you need to remove /gridsphere from your login config -Tim Deepan wrote: Hi, I am trying to authenticate using Active directory for one my application in tomcat. ( I have only one application deployed in tomcat). I had configured server.xml and web.xml to use /gridsphere/login

Re: difference between FORM and BASIC authentication method

2007-01-26 Thread Tim Funk
Basic auth delivers the browser popup. Form authentication allows one to configure their own form and error page for login. So a prettier login can be presented. -Tim Deepan wrote: what is BASIC authentication method ? i mean how is it different from FORM authentication ? does it mean i dont

Re: Disable servlet runtime

2007-01-31 Thread Tim Funk
You should be able to do this via Servlet Filter. -Tim Subscriber wrote: Hi, I would like to know if it is possible to disable a servlet within a web application while it is running. My scenario is, that I would like to turn on/off different features in my webapplication. These features are

Re: IllegalStateException in Tomcat 5.5.X

2007-02-08 Thread Tim Funk
This smells of a static-like object which has a race condition in handling of requests and responses. For example - if sessions are used and there is a filter which puts the current request into the session - that will be a problem. Another example: A filter which does user logging/tracking

Re: OutOfMemoryError (but not really out of memory?) cause tomcat processes to hang

2007-02-09 Thread Tim Funk
http://tomcat.apache.org/faq/memory.html "If you have a lot of servlets or JSP's, you may need to increase your permanent generation. By default, it is 64MB. Doubling it to be -XX:MaxPermSize=256m might be a good start." Pardon the bad math in the faq since 64*2!=256 ;) -Tim Nikola Milutin

Re: tomcat behind tomcat

2007-02-12 Thread Tim Funk
This may do the trick: http://j2ep.sourceforge.net/ -Tim siddharth karandikar wrote: Hi Everyone ! As Tomcat can also be used as normal HTTP server, is there a possibility to run a Tomcat behind another Tomcat? What exactly I am trying to do is, http://localhost:8080/console/* should fetch

Re: Apache Software DST (2007) Compliance

2007-02-13 Thread Tim Funk
Tomcat is Daylight Savings Time compatible if the JVM it is running on is. -Tim Cory L Tryon wrote: To Whom It May Concern, With the recent changes in Daylight Savings Time, business are now attempting to determine which software is DST compliant and what is not. Would someone please let me kn

Re: Systems Architecture Pros and Cons

2005-10-13 Thread Tim Funk
Personally - I prefer the 2 apache + 3 tomcat approach. With 2 apache's you have your needed redundancy. The apaches can also be used to use the many modules for decorating any requests. (Such as mod_headers to add selectively add cache-control headers) Since the tomcats will probably need mo

Re: AccessLogValve with POST

2005-10-13 Thread Tim Funk
You can't. I doubt you want post data in your acess log since POST data can be large (very large, megabytes large). -Tim Peter Menzel wrote: Hi there, I configured a AccessLogValve in the of my webapp with the common pattern: prefix="mywebapp" suffix=".log" pattern="common" /> Unfortun

Re: Tomcat as proxy?

2005-10-17 Thread Tim Funk
There is a reverse proxy implemented as a webapp which can be used as its own webapp or easily embedded inyour own webapp. (Courtesy of the Google SoC) http://j2ep.sourceforge.net/ -Tim Hassan Schroeder wrote: Before I go reinventing a wheel -- has anyone written a passthrough proxy for Tomca

Re: setting the domain of the jsession COOKIE

2005-10-17 Thread Tim Funk
There is no way to do that. -Tim Iratxe Etxeberria Sainz-Ezquerra wrote: Hello! I am using tomcat 5.0.28, and I am searching for a way to set the domain of the session cookie. I need to set the cookie domain to .mydomain.com and not to www.mydomain.com. I have been looking for it in many

Re: hacking the tomcat DefaultServlet

2005-10-18 Thread Tim Funk
Use a servlet filter to rewrite the request and let the DefaultServelt stay untouched. Then you get easily maintainable code and its not tomcat specific. For example: doFilter(request, response, filterChain) { if (magicalCanRewrite(request)) { String newPath = magicMethodTOGetNewPathFromS

Re: One login for multiple webapps

2005-10-18 Thread Tim Funk
Look at the SSOValve -Tim Elaine Sit wrote: > Is it possible to have one login for multiple web apps within the same tomcat > webapp? That is, I don't need to relogin to web app B if the user have > already logged in web app A when the user have the access right in both web > app. Thanks. --

Re: Tomcat upgrade

2005-10-18 Thread Tim Funk
If its not broke - why upgrade? But if your app is still being actively developed - it may encounter issues/bugs which may be fixed with the currect (or future) version of tomcat. That being said - you still have the source to patch it yourself (if you are comfortable with that) -Tim Santosh

Re: hacking the tomcat DefaultServlet

2005-10-19 Thread Tim Funk
I think this should work in your own web.xml: MyFilter default -Tim Maurice Yarrow wrote: Tim So, my question is: can I request that a filter be applied to all static page requests that are going to DefaultServlet? Or is this done with a Valve? --

Re: Dynamically included jsp's

2005-10-20 Thread Tim Funk
That should work but with development=false checkInterval=900 - there might be a lag of 900 seconds before the nwe file is used. Try development=true -Tim j r wrote: All, This is perhaps a very easy question for many of you, but here it goes: What has changed from tomcat 4.1.30 to tomcat 5

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

2005-10-20 Thread Tim Funk
There called ServletFilters. -Tim Darryl L. Miles wrote: I would like to change a sub-tree (/subdir) of my web-app so that I run every request runs through my own default servlet (for a security check) then if it drops out of the bottom I wish to forward to tomcat's default servlet. Doe

Re: session problem

2005-10-21 Thread Tim Funk
Cookies might be blocked on the other pc's browser -Tim David Won wrote: I developed a very simple project, there is a jsp page and a servlet. In servlet: session.setAttribute("my","abc"); In jsp: String mystring = (String) session.getAttribute("my"); This project works perfect in one of m

Re: HHTP 302 redirect issue with Tomcat 5.0.28

2005-10-21 Thread Tim Funk
Check bugzilla. This was reported but I can't remember if the report was resolved as FIXED or INVALID. Keywords to use include mapper -Tim Bray, Ian wrote: Hi, I have a problem with Tomcat 5.0.28 (after upgrading from 4.1.29) responding to a HTTP POST request with a 302 redirect. Requests t

Re: Server Access Log and Request Information

2005-10-21 Thread Tim Funk
Look at the javadocs for AccessLogValve. It allows for conditional logging. -Tim TK wrote: Hi, I am looking for ways to associate each object recorded in the log file with the corresponding page requested. Say, for example, Page A contains objects p, q, r, s Page B contains onjects x, y, z Re

Re: hacking the tomcat DefaultServlet

2005-10-21 Thread Tim Funk
vant code, if anyone would like to see that also, so please do not hesitate to ask.) Maurice Yarrow Tim Funk wrote: I think this should work in your own web.xml: MyFilter default -Tim Maurice Yarrow wrote: Tim So, my question is: can I request that a filter be applied to all stati

Re: LDAP connections pool

2005-10-25 Thread Tim Funk
If you mean pooling with JNDIRealm - there is no pooling available with that realm. -Tim Javier Leyba wrote: Hi All I want to make an LDAP connection pool in my Tomcat 5028 server. Is this possible ? Could someone show an example ? -

Re: How to measure queueing time: from tomcat recieving request to axis web service

2005-10-26 Thread Tim Funk
A Valve might be what you need - but you might need to hack the Connectors depending on how granular you need to be. A Valve is just like a servlet filter. -Tim Pim W. wrote: Hi, I want to measure the queueing time starting from when Tomcat recieve the request from a client until the reques

Re: tomcat as a proxy via a proxy

2008-08-06 Thread Tim Funk
IIRC, HttpClient has its own configuration for setting the proxy. http://hc.apache.org/httpclient-3.x/apidocs/org/apache/commons/httpclient/HostConfiguration.html http://hc.apache.org/httpclient-3.x/apidocs/org/apache/commons/httpclient/HttpState.html#setProxyCredentials(org.apache.commons.httpcl

Re: #of Site can be run on single Tomcat Instance?

2008-08-06 Thread Tim Funk
There is no real limitation (except for memory) You might be out of permgen space. Try: JAVA_OPTS=-XX:MaxPermSize=128m -Tim Tomcat User6 wrote: I am running around 10 different site on single Tomcat Instnace i.e. 6.0. I am facing some unexpected errors while running some of the sites. Everyt

Re: How to programmatically add parameters to ServletRequest objects?

2008-08-06 Thread Tim Funk
I suggest you look at ServletRequest.setAttribute() In programming Servlets - you can work with parameters which are the fun little things which come off the query string or via the POST body. These items should be thought readonly - and only set/sent from the HttpClient (aka - the web browse

Re: removal of product name/version

2008-08-12 Thread Tim Funk
In server.xml - add a "server" attribute to the Connector element. [WWW] http://tomcat.apache.org/tomcat-6.0-doc/config/http.html [I just added this to the FAQ] http://wiki.apache.org/tomcat/FAQ/Security#Q9 -Tim Tommy Pham wrote: Hi, I'm looking for a way to remove the product name and/or ve

Re: Bug in tomcat scripts?

2008-08-12 Thread Tim Funk
The tomcat distribution doesn't contain any code which goes into /etc/init.d The feature as described below needs to be addressed in the distribution. (Or the rpm creator) -Tim Enrique Arizón wrote: I suddenly removed my cwd just prior to start tomcat. Briefly, the script would be similar t

Re: Tomcat Experts - Need help with Cookie support in 6.0.18

2008-08-14 Thread Tim Funk
With 6.0.18 : "; Path=/; HttpOnly" [literally] becomes part of the cookie value. [That it worked before was sheer luck.] -Tim KalChitown wrote: We recently upgraded from 6.0.14 to 6.0.18 due to an XSS security alert we received. The following code was working in 6.0.14 version but not in 6.0

Re: Tomcat Experts - Need help with Cookie support in 6.0.18

2008-08-14 Thread Tim Funk
art of the value". I thought I had them part of the cookieValue already? Can point out the change I need to make in my code snippet? -Kal Tim Funk wrote: With 6.0.18 : "; Path=/; HttpOnly" [literally] becomes part of the cookie value. [That it worked before was sheer luck.]

Re: Another confused person trying to get jconsole to monitor tomcat.

2008-08-21 Thread Tim Funk
An easy kludge is to run jconsole locally on the server and send the display to yourself. ssh -Y yourserver (or ssh -X server YMMV) $JAVA_HOME/bin/jconsole pid No iptables tricks needed. -Tim Bill Davidson wrote: Is this random port opened by the server side (Tomcat) or the client side (jcon

Re: Another confused person trying to get jconsole to monitor tomcat.

2008-08-21 Thread Tim Funk
vnc might have acceptable performance. Not sure if you'd run into issue by installing vncserver. -Tim Bill Davidson wrote: Tim Funk wrote: An easy kludge is to run jconsole locally on the server and send the display to yourself. ssh -Y yourserver (or ssh -X server YMMV) $JAVA_HOM

Re: java.lang.IllegalStateException: Cannot create a session after the response has been committed

2008-08-25 Thread Tim Funk
I bet au.com.objectconsulting.catalina.valves.SetRemoteUserValve is calling HttpServletRequest.getSession() or HttpServletRequest.getSession(true) after the request is made and the response is sent to the client. (And the response did not contain an active session) au.com.objectconsulting.cat

Re: Sharing Application Code Between Contexts

2008-09-29 Thread Tim Funk
1) Disk is cheap. 2) Build scripts can easily push the common code out to all your apps in a reproducable manner. 3) Seperate code makes regression upgrades easier to do since there is always that one app which cant be upgraded While you may be "sharing code" - all the code will be living in

Re: Sharing Application Code Between Contexts

2008-09-29 Thread Tim Funk
Sayre wrote: Are there any tools that would help with building different .war files for each context? On Mon, Sep 29, 2008 at 8:58 AM, Tim Funk <[EMAIL PROTECTED]> wrote: 1) Disk is cheap. 2) Build scripts can easily push the common code out to all your apps in a reproducable manner. 3) Seperat

Re: dynamic JSP include?

2007-02-22 Thread Tim Funk
A few problems: 0) Try page='/pages/<%= request.getParameter("site")%>' (Notice the use of single quotes - jasper is getting confused by the extra use of double quotes 1) If you are not including JSP params (jsp:param) you should use 2) Try validating <%= request.getParameter("site")%> first i

Re: Tomcat 6 Compatibility Patch?

2007-02-27 Thread Tim Funk
Tomcat 6 requires Java 1.5 (since the servlet spec does) -Tim Fran Varin wrote: Hi, Tomcat 5 allowed for the installation of a compatibility patch to allow it to run with Java 1.4. I've taken a look at the documentation for Tomcat 6 and do not see any mention of a similar facility so, my assum

[OT] Re: Lucene and DB speeds

2007-03-01 Thread Tim Funk
A common way is to add timers around the commands and then using a logging library to output those times (under info, debug, or trace) You'll probably get more help from the lucene user list -Tim Sriram Narayanan wrote: Hi all: When I query for large datasets, I see a delay between the searc

Re: Multiple physical processors

2007-03-02 Thread Tim Funk
Yes (as long as the JVM knows how to split the load of multiple threads across multiple processors) -Tim David Kerber wrote: It's a simple question, so I hope it's a simple answer: Running TC 5.5.15, with a single webapp, will Tomcat take advantage of multiple physical processors if they exi

Re: Detecting terminal HTTP chunk

2007-03-04 Thread Tim Funk
The servlet API does not expose these details. At best you have the InputStream to read from. (And use available() if you want to try to read without blocking (but due to buffering probably won't work anyways)) But since you can't send the response without finishing the reading of the input st

Re: trimDirectiveWhitespaces not working

2007-03-06 Thread Tim Funk
trimDirectiveWhitespaces is only applicable at servlet configuration time. See $TOMCAT_HOME/conf/web.xml -Tim Peik Feng wrote: Hi, I have installed Tomcat 6.0.10 with JRE 1.6.0. I tried to set trimDirectiveWhitespaces in page directive but it doesn't take effect. <%@ page trimDirectiveWhi

Re: server.xml configuration..

2007-03-06 Thread Tim Funk
Use a servlet filter which is mapped to *.jsp - see Google for more details on Servlet Filters. (javax.servlet.Filter) -Tim prt wrote: Hi to all, Where i have to config and what, to prevent direct access to my jsp files ?

Re: trimDirectiveWhitespaces not working

2007-03-06 Thread Tim Funk
D'oh! I had an older copy of the spec without those notes. -Tim Rémy Maucherat wrote: On 3/6/07, Tim Funk <[EMAIL PROTECTED]> wrote: trimDirectiveWhitespaces is only applicable at servlet configuration time. See $TOMCAT_HOME/conf/web.xml There's a new directive and new jsp p

Re: Servlet Filtering & performance..

2007-03-06 Thread Tim Funk
If your allowed list check is small and simple (and NOT synchronized) - the performance impact is probably not noticeable. If your list of URLS is large - then your check would be based on your check algorithm. (http://en.wikipedia.org/wiki/Big_O_notation) -Tim prt wrote: Hi to all again,

Re: Server suddenly using GMT instead of local time

2007-03-06 Thread Tim Funk
Look at your system properties [user.timezone] -Tim David Kerber wrote: I had a weird thing happen yesterday: I'm running TC 5.5.12 on Windows 2000 server. The jre is version 1.5.0_07. I did windows updates through IE, and used tzedit to update the DST settings, then rebooted the server.

Re: Server suddenly using GMT instead of local time

2007-03-06 Thread Tim Funk
Its a system property - you can see it by with of the following in a sample jsp: out.println(System.getProperties().getProperty("user.timezone")) or System.getProperties().list(new java.io.PrintWriter(out)); -Tim David Kerber wrote: What file would that be in?

Re: [OT] Servlet Filtering & performance..

2007-03-06 Thread Tim Funk
You won't even notice this code being run. -Tim prt wrote: Hi, My list is small only 5 URLS, I save it in (String[]), that load in the Filter init method by init parameter in the web.xml. Every request i take the ServletPath and to this part in function, boolean bRunURL; for(int i = 0, max

Re: Rationale for makeing Invoker harder to user

2007-03-14 Thread Tim Funk
http://tomcat.apache.org/faq/misc.html#evil -Tim Paul Mendelson wrote: I recently installed Tomacat 6.0 and see that I now need to make my web application privalaged in order to use InvokerServlet to allow users to execute arbitrary servlets. This seems to continue a trend that may eventuall

Re: Memory (leak) continues to increase (Tomcat5.exe)

2007-03-20 Thread Tim Funk
Does this use lots of LARGE jsps where the JSP's use tags which use many BodyContent objects instead of flushing directly to stream? In this case, tomcat will allocate a buffer and keep it, in anticipation that the same buffer size will be used in the future. [Some call this a leak, others an o

Re: Custom error page on Tomcat 6

2007-03-20 Thread Tim Funk
http://tomcat.apache.org/faq/misc.html#error Hoa Doan wrote: How do I set up a custom error page in Tomcat 6? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional co

Re: How to hide Tomcat serverversion information?

2007-04-11 Thread Tim Funk
IIRC, this will handle the error page body but not the server header. The Connectors are pretty stringent on not being change in 5.0.x. You'll need to change org.apache.coyote.http11.Constants Here is the code which you'll change: /** * Server string. */ public static final byte[] SERVER_BYTE

Re: rotatable access logs?

2007-04-17 Thread Tim Funk
There is no option for keeping the last 30 days. instead add this to cron: find $CATALINA_HOME/logs \ -name "localhost_access_log*" \ -mtime +30 | xargs rm -f -Tim Jay Dickon Glanville wrote: Hello all, I'm currently using the Access Log Valve as part of my Tomcat 5.5 installation to tra

Re: problem at port 8001

2007-05-09 Thread Tim Funk
I believe that the HTTPURLCOnnection throws a java.io.FileNotFoundException in the case where a web server returns a 404. Look at your access logs and request http://localhost:8001/servlet/WESFWDataLink_BRK.class?DLCT=EO via the browser and see what happens. -Tim kz wrote: Hi, I am working

Re: A Randome Very Strange Tomcat Crash

2007-05-09 Thread Tim Funk
You are using the Jdbc-odbc bridge. That JDBC-ODBC bridge is not meant to be used on a web server or multi threaded environment. -Tim Massimiliano PASQUALONI wrote: Hy Everyone! I'm develop my first application in jsp. Isn't a real "application", it's an "system integration" job that join 2

Re: R: A Randome Very Strange Tomcat Crash

2007-05-09 Thread Tim Funk
Access databases don't work well for webservers - even with IIS. SO you should switch databases. If concurrency is *very* low - you could try throwing synchronization blocks around all database code to limit only one database user at a time. (This is not recommended) -Tim Massimiliano PASQUAL

Re: TomCat users' list, forum or documentation ?

2007-05-09 Thread Tim Funk
Typically you go to the software vendor for support. Since you are installing JForum - going to their site for support would be the way to go. Which looks like:http://www.jforum.net/development.jsp -Tim Sven wrote: Is there a TomCat users' list, forum or documentation that is for actual end

Re: How to get authenticated user's DirContext from JNDIRealm?

2007-05-09 Thread Tim Funk
You could use request.getUserPrincipal but JNDIRealm doesn't create a Principal with the details you need. That being said - your own code might be the way to go. (An "easy" solution could be to create a servlet filter which wraps the servlet request and overrides getUserPricipal to return the

Re: http chunking in Tomcat 5.5

2007-05-10 Thread Tim Funk
Its enabled by default. IIRC - you can't disable it unless you set the content length for the response. (See the servlet spec / google for how to set content length) -Tim Alexander Wolff wrote: How can i enable/disable "http chunking" in Tomcat 5.5? thanks in advance, Alexander

Re: 2 apache with mod_jk and only one Jboss

2007-05-10 Thread Tim Funk
This is possible. But "strange problems" doesn't really provide any details to how to solve the issue. Since you have 2 apache's and one tomcat - you need to ensure you have tomcat configured to accept the appropriate amount of connections from both apaches. For example - if each apache can cr

Re: Remote EJB calls from Tomcat 5 to Weblogic 8.1 appear to be slower than from Weblogic 8.1 as a web server

2007-05-14 Thread Tim Funk
With weblogic - EJB calls were done in the same JVM. With Tomcat - all the EJB calls occur outsite Tomcat's JVM and in weblogic's JVM. This is a BG performance penalty. (But allows for scalability). You should notice the same performance suckage if you ran 2 copies of weblogic where one o

Re: Tomcat Inner Gold Mine

2007-05-14 Thread Tim Funk
In this case - it might better to "reinvent the wheel" and not rely on tomcat's apis. Why? Tomcat might change from version to version and re-writing perfrectly good good due to API changes is not fun. But there are exceptions. Such as the (jakarata) commons api's that tomcat uses. For example

Re: Tomcat thinks TCP port is in use

2007-05-15 Thread Tim Funk
Tomcat has a shutdown port it listens on too. Typically this is 8005 -Tim [EMAIL PROTECTED] wrote: Hi Everyone, I'm trying to get Tomcat 6.0 running on Windows XP. Whenever I start it I get the message: java.net.BindException: Address already in use: JVM_Bind I've tried three differ

Re: Servlet class according to url-mapping

2007-05-15 Thread Tim Funk
Not really (via the Servlet Api) -Tim Milanez, Marcus wrote: Hi, Is it possible to get the full servlet class name (e.g: com.test.MyServlet) according to its URL (e.g: /servlet/MyServlet) programmatically ? - To start a

Re: Overriding Default Servlet?

2007-05-18 Thread Tim Funk
It can be extended like any other java class. In reality - there are probably 2 better solutions than extending (or replacing) the Default Servlet. 1) Create a filter which does what you need then pass control to the default servlet. (chain.doFilter()) 2) Create your own default servlet but i

Re: AW: Tomcat-Question: Inefficient searching for jsp-files?

2007-05-21 Thread Tim Funk
I don't think tomcat(explicitly) is doing this. It could be any of the following: 1) When the file is found a full path check is done to prevent sneaky people from trying ../../ tricks - so I you might see the JVM and how it implments File.getAbsolutePath) on a file 2) It could be IIS doing the

Re: Configure Tomcat 6 for php 5.2.2

2007-05-21 Thread Tim Funk
Look at quercus (if I spelled that right). http://www.caucho.com/resin-3.0/quercus/ People have been able to install it on tomcat 6. -Tim Pierluigi Fabbris wrote: Hi, I've problem to configuring Tomcat 6. The problem is: I use saxon b, java and php how can I configure the last one? In Tomcat

Re: JSP pages mixing for concurrent users

2007-05-26 Thread Tim Funk
Me thinks this is your problem. You have some variables being shared which are not thread safe. > -All JSP pages extend a common class which writes the header and footer > using the JspWriter. -Tim Florian wrote: Hi. I have a group of developers that are experiencing an intermitent problem

Re: Cookie Rookie - cannot delete session cookie

2007-06-01 Thread Tim Funk
There is nothing in the servelt api to explicitly delete the session cookie. -Tim Mike Peremsky wrote: I am pretty new to cookies and am having an issue. I create a cookie in my servlet and write it to the response to last the lifetime of the session (duration = -1). When the user clicks the

Re: Cookie Rookie - cannot delete session cookie

2007-06-01 Thread Tim Funk
uration to 0 (cookie.setMaxAge(0)) and re-add it to the response (response.addCookie(cookie)) Tim Funk <[EMAIL PROTECTED]> wrote: There is nothing in the servelt api to explicitly delete the session cookie. -Tim Mike Peremsky wrote: I am pretty new to cookies and am having an issue. I

Re: Why use tomcat + apache + mod_*

2007-06-01 Thread Tim Funk
http://tomcat.apache.org/faq/connectors.html#vs -Tim Albert Shih wrote: Hi all I'm really newbie and maybe my question is stupid. But something the admin to put a apache with mod_something between users(Internet) and the tomcat server ? It's for perf ? for load-balancing ? security ? ---

Re: jsp-output in wrong frames

2007-06-04 Thread Tim Funk
http://struts.apache.org/mail.html -Tim Johnny Kewl wrote: Is there a struts mailing list? I think this is a coding issue, just wondering if there is a place someone can post a struts program so that people can see the errors in the code. Struts guys will be able to tell you where connections

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Tim Funk
To test the TimerTask theory - I'd suggest changing the TimerTask to run at 12:30 and see the next crash -Tim Pid wrote: Martin Cavanagh wrote: Each time when Tomcat has crashed, it has been at midnight. At exactly midnight my program changes log directorys - from 20-09-2007 to 21-09-2007.

Re: Implementing HttpSession

2007-10-04 Thread Tim Funk
For a different session implementation than StandardSession : http://tomcat.apache.org/tomcat-6.0-doc/config/manager.html It is a JDBC based version of storing an HttpSession. -Tim lightbulb432 wrote: Rather than using Tomcat's own HttpSession, I may be implementing HttpSession to write to sh

Re: setting secure cookie in Tomcat 5.0 config

2007-10-04 Thread Tim Funk
If you are talking about the JSESSIONID cookie - if the session is created while your are using SSL - the secure flag is set for you. Nothing to configure. -Tim Biagi, Bill (Contractor) wrote: How do you set Tomcat 5.0 to use secure cookies on an SSL session. Back in 3.3 it was an attribute

Re: setting secure cookie in Tomcat 5.0 config

2007-10-04 Thread Tim Funk
ontact the sender and delete them. -Original Message----- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Thursday, October 04, 2007 1:14 PM To: Tomcat Users List Subject: Re: setting secure cookie in Tomcat 5.0 config If you are talking about the JSESSIONID cookie - if the session is created

Re: setting secure cookie in Tomcat 5.0 config

2007-10-04 Thread Tim Funk
sender and delete them. -Original Message----- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Thursday, October 04, 2007 1:38 PM To: Tomcat Users List Subject: Re: setting secure cookie in Tomcat 5.0 config You'll need to install fiddler to sniff when the cookie is being set. If the req

Re: setting secure cookie in Tomcat 5.0 config

2007-10-05 Thread Tim Funk
attachments are confidential and solely for the intended addressee(s). Do not share or use them without Fannie Mae's approval. If received in error, contact the sender and delete them. -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Thursday, October 04, 2007 2:13 PM To: T

Re: Setup a Proxy in Tomcat

2007-10-05 Thread Tim Funk
This should work: http://sourceforge.net/projects/j2ep/ -Tim bajistaman wrote: Is there a way to map a local context to a remote one with tomcat? I mean: http://localhost:8080/somename-->http://remotehost/someothername I know that this can be done with Apache Http Server but I'm trying to a

Re: Setup a Proxy in Tomcat

2007-10-05 Thread Tim Funk
Its not ready for high volume but for most sites which are low volume- i would think its OK -Tim bajistaman wrote: Tim Funk wrote: This should work: http://sourceforge.net/projects/j2ep/ Thanks Tim, It looks like what I need, Have you tried it?, Does it have good performance

Re: Different jar version

2007-10-10 Thread Tim Funk
It uses the first version of the class it finds when findClass is called. First version depends on which jar it looks in first. There is no defined order in which jars should be read first. So the behavior of Tomcat would be like any other java application - unknown. -Tim Andrew Hole wrote:

Re: How to write a custom realm?

2007-10-10 Thread Tim Funk
With any luck - this will be accurate enough: http://www.jroller.com/funkman/entry/howto_create_a_realm_in -Tim On Wednesday 10 October 2007, quanxin zhu wrote: Hi, Everyone, Where could I find the document of how to write a custom realm? -

Re: Tomcat vs. Tomcat+Apache+mod_jk

2007-10-12 Thread Tim Funk
http://tomcat.apache.org/faq/connectors.html#integrate It depends. If you (or your admins) can't do a good job of securing apache. Then one could argue - that you be LESS secure if your ran apache in front of Tomcat. Personally - the only reason I would run apache in front of Tomcat because

Re: UTF-8 Properties File

2007-10-17 Thread Tim Funk
There is no such thing as UTF-8 properties files. Tomcat follows the same rules as java when reading properties files. Properties file must be ISO8859-1 and if you have characters outside of that character set - then you use native2ascii to encode those other characters. -Tim Billy Ng wrote

Re: Why DefaultServlet listing does not work

2007-10-23 Thread Tim Funk
You want listsings=true in web.xml contained in $CATALINA_HOME/conf/web.xml -Tim Artur Rataj wrote: Hello. I have the following servlet definition: Listings org.apache.catalina.servlets.DefaultServlet debug 0

Re: how to submit

2007-10-23 Thread Tim Funk
I'd suggest reading these first.. http://tomcat.apache.org/faq/bugs.html http://tomcat.apache.org/bugreport.html http://tomcat.apache.org/faq/ -Tim Carlo Politi wrote: Good day, I would like to know if it's possible submit an add on to Apache Tomcat, which are the steps or whom contact. Thanks

<    1   2   3   4   5   >