RE: Refresh JSP in Tomcat 5.5

2007-08-26 Thread Tim Lee
I might be completely off course, but... Does the title stay the same (as in your IE case) when you use Firefox as well? If it changes in Firefox, it might be a problem of IE browser caching problem. Have you tried hard-refreshing, or closing the browser and opening again? Timothy Wonil Lee Jav

Re: filter IP for a webapps through mod_jk

2007-08-29 Thread Tim Funk
Then you need to extend org.apache.catalina.valves.RemoteAddrValve to check the port (and other customizations as needed) -Tim Sebastien Moretti wrote: [EMAIL PROTECTED] a écrit : I would like to deny access for my webapps through port 8080 and to allow access for other webapps via 8080

Re: context-param vs env-entry. Ready? Fight!

2007-08-31 Thread Tim Funk
context-param requires access to the servlet context. env-entry requires access to jndi Do you really want code that has nothing to do with the servlet api dependent on ServletContext? Plugging in a new jndi lookup for testing is much easier. -Tim Brian Munroe wrote: I just started to help

Re: context-param vs env-entry. Ready? Fight!

2007-08-31 Thread Tim Funk
eans is OK. -Tim Brian Munroe wrote: On 8/31/07, Tim Funk <[EMAIL PROTECTED]> wrote: Do you really want code that has nothing to do with the servlet api dependent on ServletContext? Plugging in a new jndi lookup for testing is much easier. Forgive my ignorance here, but do you mean

Re: Filter on j_security_check or Alternate way

2007-09-19 Thread Tim Funk
rPrincipal() && session.getAttribute("didInitializeSession") to see if you need to do any special setup work. -Tim alee amin wrote: Hi, I have implemented form based security on web app using JDBCRealm in server.xml file. It has been implemented. Now i want to use some pre-req before accessing

Re: Jasper/Tomcat custom .tag processing extremely slow if in .jars -- profiling results

2007-09-21 Thread Tim Funk
Yes - tag file compilations are slow. IIRC - there was Google summer of code attempt in 2005 to fix this but it went nowhere. Patches to Jasper would be appreciated for the speedup. -Tim Berglas, Anthony wrote: PROBLEM JSPs that make use of custom .tag files can be very slow to compile

Re: Application Realm in Tomcat

2008-02-07 Thread Tim Funk
Via the spec - you can't query all the roles a user has. But you can say request.isUserInRole(rolename) If you *need* access to the realm, things start to get ugly. You need to start coding against Tomcat internal specific classes. -Tim maux wrote: Hi, I am doing a Java code. This

Re: QUESTION: How do I change JSESSIONID to something else?

2008-02-07 Thread Tim Funk
There usually isn't much happiness in the spec violations. Most of the time, the violations are due - optimizations - contradictions - better use case where not following the spec is a good idea (but in those cases, the ability to follow the spec is still there) -Tim Gregory Gerard

Re: Tomcat access logs

2008-02-07 Thread Tim Funk
Add this to cron: (use google to decode) 0 0 * * * find /TCLOG_DIR/localhost_access_log* ! -mtime -30|xargs rm -Tim Vamsavardhana Reddy wrote: Is there a way to specify how many days access logs should be retained by tomcat so that old access logs (for e.g. more than a month old) are

Tomcat6 on Linux startup on boot..daemon?

2008-02-15 Thread Tim Alberts
I'm setting up Tomcat6 on Linux and want it to start on boot. I use the following init script: #!/bin/sh # description: Tomcat 6.0 web application server # chkconfig: 2345 99 00 case "$1" in 'start') export JAVA_HOME=/usr/java/default /opt/apache/apache-tomcat-6.0.16/bin/startup.sh to

RE: Tomcat ISAPI Redirector for IIS

2008-02-18 Thread Tim Whittington
e, but there's not enough info to tell exactly what's going on. Change your log level to debug (in isapi_redirect.properties or the registry if you're using that), do a complete IIS restart and make a single request - post the resulting log and we can have a look at what's goin

Re: Why Tomcat take about 15 minutes to start?

2008-02-19 Thread Tim Funk
Try (temporarily of course) 1) disabling DNS lookups 2) disabling outbound port 80 connections -Tim Mohamed Mohamedin wrote: The log is like this in the lines that cause the problem: Feb 18, 2008 10:26:57 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine

Re: Mapping JSP's to outside of the war or expanded folder

2008-02-19 Thread Tim Funk
If you are brave ... you can apply this patch: http://svn.apache.org/viewvc?view=rev&revision=575332 -Tim emerson cargnin wrote: This is not really an issue for me, as the access to the servers are totally strict and... any idea on how to map to the jsp's outside? Nobody ever nee

Re: Mapping JSP's to outside of the war or expanded folder

2008-02-21 Thread Tim Funk
It got rolled back due to some vetos. (Hence the if your brave comment). See the dev list for details. The patch itself works fine. -Tim emerson cargnin wrote: Thanks Tim. Do you know if this will be included on next release of tomcat6? regards emerson On 19/02/2008, Tim Funk <[EM

Re: JVM Uninstall

2008-02-26 Thread Tim Funk
l the keys at the moment to look for) -Tim [EMAIL PROTECTED] wrote: Hi Folks, Can any body say if unstalling of JVM in a machine will effect to the Tomcat service/server. We need to update the JVM in our production machine where Tomcat 4.1 is running, Becausewe have unstall the JVM but t

mod_jk, lb cluster, multiple web servers

2008-03-03 Thread Tim Alberts
I have 3 physical servers, all 3 running tomcat6 and the 2 web applications (one for local, one for www) just fine. Two of these have apache web servers (local and www), both configured and running static content by themselves just fine. Ideally, I want the 3 tomcat6 instances to be a lb clus

Re: mod_jk, lb cluster, multiple web servers

2008-03-03 Thread Tim Alberts
Rainer Jung wrote: Hi Tim, Tim Alberts schrieb: I have 3 physical servers, all 3 running tomcat6 and the 2 web applications (one for local, one for www) just fine. Two of these have apache web servers (local and www), both configured and running static content by themselves just fine

Tomcat 4.1.30 Compression Not Working

2008-03-14 Thread Smith, Tim
We have a Linux server running Tomcat 4.1.30, serving jsp pages. We have tried to enable gzip compression by the addition of the compression="on" attribute to the server.xml file. We've seen some odd results. First of all we couldn't get any compression to take place (using Fiddler to monitor respo

RE: Tomcat 4.1.30 Compression Not Working

2008-03-14 Thread Smith, Tim
Re: Tomcat 4.1.30 Compression Not Working -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tim, Smith, Tim wrote: | We have a Linux server running Tomcat 4.1.30, serving jsp pages. We have | tried to enable gzip compression by the addition of the compression="on" | attribute to the server.

Delay between TCP handshake and POST

2008-04-14 Thread Tim Lavers
Am running a Tomcat 6.0 server that is distributing a client program using Java WebStart. The client program communicates to the server using running an RMI HTTP tunnelling servlet and a - To start a new topic, e-mail: users@

Delay between TCP handshake and POST (complete)

2008-04-14 Thread Tim Lavers
Am running a Tomcat 6.0 server that is distributing a client program using Java WebStart. The client program communicates to the server using an RMI HTTP tunnelling servlet which is running inside the same Tomcat instance. I've had this setup running on three different computers. On two of them

Re: Delay between TCP handshake and POST (complete)

2008-04-14 Thread Tim Lavers
reverse DNS lookups if I've got enableLookups=false"? Tim Reverse DNS lookup which always fails? Ronald. On Mon Apr 14 23:46:23 CEST 2008 Tomcat Users List wrote: Am running a Tomcat 6.0 server that is distributing a client program using Java WebStart. The client program communica

Re: Delay between TCP handshake and POST (complete)

2008-04-15 Thread Tim Lavers
Hi Ronald, I think we do have such a firewall. I will find out the exact configuration and get back to you. Tim - Original Message - From: "Ronald Klop" <[EMAIL PROTECTED]> To: "Tomcat Users List" Cc: "Tim Lavers" <[EMAIL PROTECTED]> Sent: T

Re: Delay between TCP handshake and POST (complete)

2008-04-15 Thread Tim Lavers
Just checked: our firewall does not do DNS lookups. Tim - Original Message - From: "Ronald Klop" <[EMAIL PROTECTED]> To: "Tomcat Users List" Cc: "Tim Lavers" <[EMAIL PROTECTED]> Sent: Tuesday, April 15, 2008 8:58 PM Subject: Re: Delay betwe

Re: Extending DefaultServlet, broken welcome-file

2008-04-24 Thread Tim Funk
You need to look at org.apache.tomcat.util.http.mapper.Mapper Welcome files belong to the container since jsp's can be used as welcome files and jsps are satisfied by a different servlet. -Tim Fred Toth wrote: Hi all, I'm lost in the woods. Some time ago we built an applic

Re: Delay between TCP handshake and POST (complete)

2008-04-30 Thread Tim Lavers
what the problem is or how to further diagnose it? Thanks, Tim - Original Message - From: "Tim Lavers" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Wednesday, April 16, 2008 3:13 PM Subject: Re: Delay between TCP handshake and POST (complete) Just checked

Re: link to Tomcat6 bug list

2008-05-13 Thread Tim Funk
https://issues.apache.org/bugzilla/buglist.cgi?product=Tomcat+6&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&bug_status=NEEDINFO -Tim Zemian Deng wrote: Hi, The bug report interface here: https://issues.apache.org/bugzilla/query.cgi?pro

Re: Throwing exception when including unexisting resource

2008-10-22 Thread Tim Funk
This can be done in a Filter. Horribly pseudo coded as: doFilter(...) { if (null==servletContext.getResource(request.getServletPath())) { throw new ServletException("No file"); } chain.doFilter(...); } Then map the filter as needed (with any additional checks too) -Ti

Re: Throwing exception when including unexisting resource

2008-10-22 Thread Tim Funk
nsion like *.do - servletContext.getResource(stuff) would return null since the controller would decode the URL into some action. -Tim Antonio wrote: 2008/10/22 Tim Funk <[EMAIL PROTECTED]>: if (null==servletContext.getResource(request.getServletPath())) { Are you sure th

Re: Throwing exception when including unexisting resource

2008-10-22 Thread Tim Funk
This would not work for includes since includes can't change the status or change any headers. -Tim Filip Hanik - Dev Lists wrote: you could also create a response wrapper in a filter, capture the status/output, so if the servlet sets 404, you can react to it appropriately Filip An

Re: Obfuscating a Servlet

2008-10-24 Thread Tim Funk
engineer is to use a black box approach - which is typically LOTS harder to get right. -Tim Jeng Yu wrote: Hi All, I just wanted to know if I can first obfuscate my selvlet with ProGuard before I deploy it in Tomcat environment. Will doing this really protect my servlet and make it really

Re: Tomcat server with two websites with two different authentications

2008-10-27 Thread Tim Funk
You need to configure a Realm per Virtual Host (or if different webapps in the same vhost need different authentication schemes - the Realm element can be per context too) http://tomcat.apache.org/tomcat-6.0-doc/config/realm.html -Tim Hisham Farahat wrote: Dear All, Can i configure tomcat

basic help with tomcat5

2008-10-28 Thread Tim Potter
Currently, I am trying to get an instance of tomcat running on a FC6 box. [EMAIL PROTECTED] ~]$ /usr/sbin/httpd -version Server version: Apache/2.2.3 Server built: Sep 11 2006 09:43:05 [EMAIL PROTECTED] ~]$ java -version java version "1.6.0_10" Java(TM) SE Runtime Environment (build 1.6.0_10-b33

Re: Cookie problem in 5.5.26

2008-10-30 Thread Tim Funk
An extreme kludge is to create a Filter which creates a HttpServletRequestWrapper which overrides getCookies() with a custom implementation. That custom implementation would read the headers, find the cookies and perform its own parsing mechanism to read the cookies. -Tim Mark Thomas wrote

Setting up context.xml for an application

2008-11-10 Thread Tim Dean
auto-deployment, but I really want to keep auto- deployment on while I'm deploying frequently. Is there something I'm missing? Is there a way to define app-specific context that does not get deleted every time I redeploy

Re: [ANNOUNCE] Beta candidate for Tomcat connection pool

2008-11-13 Thread Tim Funk
http://tomcat.markmail.org/message/4acbkimgilfkcdru?q=+list:org%2Eapache%2Etomcat%2Edev+ -Tim Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filip, Filip Hanik - Dev Lists wrote: The Apache Tomcat team announces the immediate availability of Apache Tomcat JDBC

Re: JVM/Tomcat startup parameters, HPUX

2008-11-19 Thread Tim Funk
Most of these are set via catalina.sh (which you don't want to touch). But if you wish to add your own -X params. See /opt/hpws/tomcat/bin/setenv.sh In there - you'll see that HP already has added CATALINA_OPTS="-XdoCloseWithReadPending" -Tim André Warnier wrote: Hi.

Re: Why is my page repeatedly invoking itself?

2009-02-12 Thread Tim Funk
Use Firefox + LiveHttpHeaders and discover that the page is probably being invoked many times (probaly due to a bad image tag or other media asset) -Tim Jonathan Mast wrote: Here's my setup: Java 1.4.2 Tomcat 5.5.17 Windows XP I'm developing in NetBeans 6.5 (which is invoking Tomcat)

Re: of the different methods to get a user-id

2009-02-12 Thread Tim Funk
l and RemoteUserHackFilter would adapt to that. -Tim André Warnier wrote: Hi. I am currently testing/comparing two user authentication methods for webapps, in a Windows NTLM context. Despite my abysmal lack of knowledge in matters Java and Tomcat, I notice a difference between the two, and I

Re: Tomcat vs deflate

2009-02-17 Thread Tim Funk
Can support - yes Out of the box - no. Why not out of the box? Because gzip is there and most people use apache in front of tomcat. -Tim Gabor 'Morc' KORMOS wrote: Hi Guys/Gals, I tried to search for an answer whether Tomcat can support deflate as compression but I fou

Re: Tomcat vs deflate

2009-02-17 Thread Tim Funk
There aren't really any docs to point to beyond http://tomcat.apache.org/tomcat-6.0-doc/config/http.html From there you can dig into the source. Since gzip and deflate are much the same - it might be relatively easy. -Tim Gabor 'Morc' KORMOS wrote: Hi Tim, Thanks for the

Re: Tomcat vs deflate

2009-02-17 Thread Tim Funk
front to handle lots of the goofy issues that apache httpd is good at. (But now I venture into off topic my own opinion land .. and place where bad things usually happen) -Tim Peter Crowther wrote: From: Tim Funk [mailto:funk...@joedog.org] most people use apache in front of tomcat. Tim, I&#x

Re: Tomcat vs deflate

2009-02-17 Thread Tim Funk
yup - and if your inclined - you can submit an bug enhancement with the patch -Tim Gabor 'Morc' KORMOS wrote: So basically you say code it for yourself by modifying the HTTP connector? Morc. On 17/02/2009 13:46, Tim Funk wrote: There aren't really any docs to point

Re: Tomcat error messages sent to client browsesr

2009-02-25 Thread Tim Funk
Tomcat out of the box doesn't provide a way to suppress the stack traces for those errors. Like your post said, you need to use web.xml to configure your error pages. -Tim Edao, Aliye wrote: Dear all, I am trying to find out if there is an alternative way of telling Tomcat not to

Re: very slow class loading on initial JSP/servlet request after restart

2009-02-25 Thread Tim Funk
e a better sandbox for debugging. If not ... you have a new interesting data point in the debug process. Last oddball question - even though this is a Linux server, is there any virus scanning software running? -Tim Mark Thomas wrote: Sam Hokin wrote: Mark Thomas wrote: Sam Hokin wrote: Tha

Re: session.isNew() not thread safe?

2009-02-26 Thread Tim Funk
finishes its response faster than the first request. In which case, the first request could have isNew set=true only later have it be set to be false. -Tim Jakob Ericsson wrote: > Our feeling is that this is a race condition between threads before tomcat set isNew to false. A quick workaround

Re: friendly urls

2009-03-02 Thread Tim Funk
to use a Filter. The filter can look at the URL - determine if it is SEO friendly URL, and then perform a RequestDispatcher.forward() to the "real servlet". -Tim Dan Vega wrote: Thanks for the help Chuck. I am actually running railo under tomcat fine right now and as you said

Re: A question about redirecton from users.mydomain.com to mydomain.com/users

2009-03-03 Thread Tim Funk
Doable : Yes Out of the Box: No You can write a Servlet filter to examine the incoming hostname and forward the request with the username prefix. In fact - you might need to write it : UrlRewriteFilter - http://tuckey.org/urlrewrite/ might do it for you. -Tim Anand HS wrote: Hi, I have

Re: A question about redirecton from users.mydomain.com to mydomain.com/users

2009-03-03 Thread Tim Funk
I have not used it before. I can't imagine why it would not preserve POST requests. -Tim Anand HS wrote: Thanks Andre and Tim for the quick response. I do not have an apache server right now. So URL Rewrite tool seems like a good solution. However, I understand that the URL rewrite mech

Re: Windows distribution vunerability

2009-10-26 Thread Tim Funk
Confirmed. The docs are not in sync with what the installer does. We'll get this fixed in a future release. In future, please report possible security issues privately rather than publicly. -Tim David Norheim wrote: Hi, I would like someone's opinion on the following issue th

Re: How to cancel a servlet startup?

2009-11-12 Thread Tim Funk
tch(Throwable e) { servletContext.getAttribute("initFailed", "Y"); } If you have access to URLRewrite filter - then you don't even need to write the filter above - but that configuration is left as an exercise to the user -Tim Mark Thomas wrote: Dan Armbrust wro

Re: per context access log

2009-11-19 Thread Tim Funk
Sorry - (AFAICT) there isn't a way to do that. You have to configure each one. -Tim Ursula Walenciak wrote: Hi, I'm trying to configure access-logging per context by using the AccessLogValve. Actually I would like to produce one log-file per context but avoid configuring i

Re: Preventing httpd from accessing WEB-INF contents

2009-11-25 Thread Tim Funk
Equally well AllowOverride none deny from all The docs say AllowOverride is not allowed on regex's so I believe in reality - this could be overridden with effort. -Tim Pid wrote: On 25/11/2009 16:47, Nikolay Diulgerov wrote: Try AllowOverride None deny fro

Page 404 on mydomain.com/share but not localhost:8080/share

2009-12-15 Thread Tim Heger
I go to http://mydomain.com/share the url redirects to http://mydomain.com/share/page/site-index and logs a 404 error. I have posted this on the Alfresco and Apple Snow Leopard forum with no avail... Thanks for your help, Tim

Re: Uniqueness of a sessionId

2010-01-08 Thread Tim Funk
also configure tomcat to use one session id for all contexts. (Comes in handy for portlets) -Tim On 1/8/2010 8:07 AM, Arnab Ghosh wrote: Dear Friends, I have an doubt.Tomcat is using *org.apache.catalina.session.ManagerBase* to generate sessionId. Now I wants to know whether this generated

Re: New project to Apache Software Foundation

2010-01-25 Thread Tim Williams
2010/1/25 Kranti™ K K Parisa : > Hi, > > Can anyone guide me about the steps to start a new project at Apache > Software Foundation. You may want to read up on the Incubator[1]... --tim [1] - http://incubator.apache.org/incubation/Incubation

Supporting multiple hostnames with one TomCat?

2010-01-27 Thread Hare, Tim
ts. Is it possible to do this with contexts under TomCat, or will I need multiple TomCats listening on different ports to have a production and test environments? Can I specify a hostname when I deploy and can I relate it to a different file URL? Thanks Tim Hare Senior Systems Programmer

RE: Supporting multiple hostnames with one TomCat?

2010-01-27 Thread Hare, Tim
for Tomcat also.. Tim Hare Senior Systems Programmer Southwood Shared Resource Center Office:  850.488.4989 mailto:tim.h...@ssrc.myflorida.com Please Note:  Florida has a very broad public records law.  Most written communications to or from state officials regarding state business are publi

Re: listing directory content outside tomcat root

2010-02-25 Thread Tim Funk
eave conf/web.xml alone. Which of course would be the easiest thing to do. -Tim On 2/25/2010 6:22 AM, Ivan Longhi wrote: hi, I would like to list the content of a directory outside tomcat root without enabling the listings parameter in default servlet. conf/web.xml

Re: Reading POSTed data

2009-06-17 Thread Tim Funk
e of how much content is available from the client. -Tim Kyle Brantley wrote: I'm honestly not sure (being an entire day into tomcat servlets), but I don't believe so. Full code: public class Frontend extends HttpServlet { public void doPost(HttpServletRequest reque

Re: Serving images from classes directory

2009-06-17 Thread Tim Funk
placeFirst(".+/", ""); request.getRequestDispatcher("/WEB-INF/class/more/cowbell/" + np) .forward(request, response); } else { chain.doFilter(...); } } -Tim - To unsubscribe, e-mail: users-unsubscr...@t

Re: Serving images from classes directory

2009-06-17 Thread Tim Funk
The filter (below) can be made smarter to perform smarter checks - so "regular images" could be excluded. -Tim Susan G. Conger wrote: Thanks Tim. I don't have control during build because that is done by the third party tool. I am not going to mention their name. I was h

Re: Help: auth-constraint with Tomcat 6

2009-06-24 Thread Tim Funk
, hr Then your role names * would be gone and you would need a for each resource category you need to protect. (Google for more details on for more help on that) -Tim Clement Chong wrote: Hi tomcat users, I am using Tomcat 6.0.20 and have successfully implemented a lockout realm with

Re: Help: auth-constraint with Tomcat 6

2009-06-24 Thread Tim Funk
there isn't much extra work)] Ex: doFilter(req, resp, chain) { if (req.isUserInRole("blacklist")) { response.sendError(403); return; } chain.doFilter(...); } -Tim Clement Chong wrote: Hi Tim, Basically the first realm contains list of users we want to deny acces

Re: Null value in response.sendRedirect() causes original url to be invoked 20 times

2009-06-26 Thread Tim Funk
=UTF-8 Content-Length: 0 Date: Fri, 26 Jun 2009 16:33:15 GMT With no Location header in the response - some browsers will giveup. Others may redirect to the original URL. Others may do odder things. -Tim Jonathan Mast wrote: A null value in bounce_url is causing the original Request url to be i

Re: Tomcat server Not starting when symantec installed!

2009-07-08 Thread Tim Funk
elist java. Symantec should provide a faq or tech support. -Tim Raghu.p wrote: Hi, I have installed Tomcat 6.0.18 in Windows 2003 server previously it is working fine, today I have installed "Symantec End Point Protection 11.0" In that same server, then I restarted the server,

Re: RemoteAddressValve

2009-07-08 Thread Tim Funk
allow is a regex - you probably want this: allow="176\.24\..+" with allow="176.24.*.*" - you would also let through 176.240. 176.241. ... 176.249. -Tim Leo Donahue - PLANDEVX wrote: I want to restrict web access to a specific web app to only allow it to be available

Re: JNDI Authentication

2009-08-04 Thread Tim Funk
JNDIRealm is based on communicating to an LDAP server. (Which is one way AD can communicate) -Tim Geofrey Rainey wrote: Does anyone know what type of authentication Tomcat uses by default to authenticate to an AD server using the JNDIRealm? (I haven't specified any parti

Re: JNDI Authentication

2009-08-04 Thread Tim Funk
on can be used. If no value is given the providers default is used. By default - authentication is null so the code is not called. -Tim Geofrey Rainey wrote: Im sorry, I don't understand your response. I'm writing a Login Module to auth against an active directory server and know

Re: How to hide x-poweredBY response header

2009-08-04 Thread Tim Funk
See conf/web.xml in your tomcat installation (and look for xpoweredBy in the comments) - if that doesn't exist - then you'll need to consult the JBOSS docs since they configure it in a different manner. -Tim acastanheira2001 wrote: Mark, Could you tell me what Tomcat doc is?

Re: Mapping role names to groups

2009-08-06 Thread Tim Funk
Try adding this to web.xml (and IIUC - this is portable across all containers) users SG-FooBar-Users admins SG-FooBar-Admins -Tim Jason Royals wrote: Hello Tomcatters, Consider the following scenario. I have a Java web application, and it is a packaged, commercial

Re: method invocations in EL?

2009-08-10 Thread Tim Funk
I doubt this will be seen in tomcat 6. The closest you'll get are the function taglibs functionality. -Tim Jess Holle wrote: I note in http://java.dzone.com/articles/unified-el-learns-method that in JEE 6 EL finally allows method invocations. Is there any chance this feature can be us

Re: method invocations in EL?

2009-08-10 Thread Tim Funk
You might be able to replace jasper-el.jar and have it work, but what needs changed? That'll require some digging. (It might even require changing jsp-api.jar) -Tim Jess Holle wrote: That's unfortunate. One can apparently drop this upgrade into Glassfish. I don't, however,

Re: Custom response header not working because of Content Length

2009-08-10 Thread Tim Funk
If you are doing this: doFilter() { chain.doFilter() response.addHeader(...) } Expect failure to occur. (unless you are sending less than 8k in the response) -Tim Anantha Padmanabha wrote: I'm using tomcat 6.0.18. I added a filter that adds a custom response header by

Re: Custom response header not working because of Content Length

2009-08-10 Thread Tim Funk
are trying to log latency, your best bet is to use log4j or your favorite logging library and log everything to info(). Then when you need to see latency - you configure info level log message to appear. -Tim Anantha Padmanabha wrote: Hi people, You are correct. My header got ignored and was

Re: Is encryption of AJP traffic between Apache and Tomcat possible out of the box?

2009-08-10 Thread Tim Funk
An ssh tunnel is also easy too. (but can also open other security holes depending on how its deployed and the requirements) -Tim Mark Thomas wrote: Florian Kirchhoff wrote: Hi, I know this has been asked before, but after reading the documentation and searching previous threads: http

Re: Any way to make tomcat send the "disable caching" headers on all responses?

2009-08-17 Thread Tim Funk
Out of the box - no. But you can write a filter to add the response to all requests. doFilter(...) { response.setHeader("Cache-Control","no-cache"); /* or no-store YMMV*/ response.setHeader("Pragma","no-cache"); response.setDateHeader (&q

Re: catalina.sh and java_opts question

2009-08-17 Thread Tim Funk
t.headless=true' -Tim Susan Teague Rector wrote: Hello all, I've searched around on the net and have found differing opinions about where to actually place the java_opts env var for tomcat. Should this variable be in /tomcat/bin/catalina.sh? When I set it in this file and then p

Re: Serving JSP who aren't into a physical file.

2009-08-19 Thread Tim Funk
You probably want to implement your own DirContext. See FileDirContext and WARDirContext - which is how Tomcat serves Files from disk or WAR files. Of course this solution makes your webapp tomcat dependent and you'll need to place new classes/jars into the server classloader. -Tim

Re: Custom 404 page when webapp stopped

2009-08-20 Thread Tim Funk
application restart. As a workaround, there is an option in Tomcat to use your own ErrorReportValve. This might be an option. http://tomcat.apache.org/tomcat-6.0-doc/config/host.html - see errorReportValveClass -Tim llg wrote: Hi, I have a webapp that needs to be down if we are doing some

Re: Custom 404 page when webapp stopped

2009-08-20 Thread Tim Funk
to make. (Too lazy to look up the bug report) [Personally - I'd rather stick apache in front let apache trap the condition during the outage window and not worry about the rest.] -Tim Caldarale, Charles R wrote: From: Tim Funk [mailto:funk...@apache.org] Subject: Re: Custom 404 page

Re: Accessing Properties file located in Conf Directory of Tomcat 5.XX

2009-08-20 Thread Tim Funk
("catalina.home"), "conf"); File propFile = new File(confDir , "genPricing.properties"); Properties p = new Properties(); p.load(new FileInputStream(propFile)); -Tim kaverappa.prabha...@do.treas.gov wrote: We have to place, as per rules set by the department, the pro

Re: Custom 404 page when webapp stopped

2009-08-20 Thread Tim Funk
map setting) and use that as a toggle to a 404 page. -Tim Len Popp wrote: How would you trap the condition? Apache httpd's ErrorDocument directive won't work because as long as Tomcat is running you get Tomcat's error pages. If you stop Tomcat completely then you c

Re: EL - access to nonexisting property, but no error ?

2009-08-26 Thread Tim Funk
Put this in a JSP all by itself - you should get an error (or at least - I did): <%request.setAttribute("aList", new java.util.ArrayList());%> ${aList.a} Not sure why yours did not produce an erro - a more complete snippet would be needed. -Tim David Balažic wrote:

Re: java.lang.UnsatisfiedLinkError: running tomcat on java headless?

2009-08-31 Thread Tim Funk
http://wiki.apache.org/tomcat/FAQ/Linux_Unix -Tim method8 wrote: Dear all, I'm using the iText library to generate pdfs from a database on the fly. Whenever I use some of it's features that require simple things like java.awt.Color, I get an java.lang.UnsatisfiedLinkErro

Re: java.lang.UnsatisfiedLinkError: running tomcat on java headless?

2009-08-31 Thread Tim Funk
s ago). Of course - since you are using iText - this shouldn't be an issue. -Tim Michael Ludwig wrote: Tim Funk schrieb: http://wiki.apache.org/tomcat/FAQ/Linux_Unix You're probably alluding to: How do I run without an X server and still get graphics? You either need to run

Re: Testing apache

2009-09-02 Thread Tim Funk
jvmRoute needs to be unique across all the tomcat instances. server1: server2: To test - tail the access logs on each tomcat and see what appears. -Tim given.shiri...@sita.co.za wrote: Hi Guyz. I got two linux servers machine running,in both of them,I have tomcat 5 running i.e

Re: Using multiple DataSource's for fail-over.

2009-09-02 Thread Tim Funk
I thought the Oracle JDBC driver allowed for all the nodes to be placed into the connect string and the driver was smart enough to detect failover. [So its a configuration exercise on the connection string.] -Tim Ognjen Blagojevic wrote: This is interesting topic. IANA-failover-expert, but

Re: Share file between 2 apps

2009-09-02 Thread Tim Funk
File(servletContext.getInitParameter("myfile")); FileWriter fw = new FileWriter(f); fw.write(stuff); ... If you need to read the file from app B, use a file reader. This is an easy way to keep the apps decoupled -Tim ramzi khlil wrote: Hi All, I need to share a file between two applications, A and B.

Re: Share file between 2 apps

2009-09-02 Thread Tim Funk
If the file is loaded via a ClassLoader - then the JVM will cache it and you'll need to reload the webppa or restart tomcat. -Tim ramzi khlil wrote: Hi, Thank you for your response. It's working for me. I have a problem with caching. The server doesn't update the file in te

Re: very high CPU and load...

2009-09-09 Thread Tim Funk
you have a config issue. I bet you have 250 apache workers (per server) and 250 tomcat workers(per server). But there are 500 apache workers (250 * 2). So in the worst case - you need tomcat to handle 500 connections. -Tim keeplearning wrote: I am running a load test with 2 web (apache

Re: very high CPU and load...

2009-09-09 Thread Tim Funk
e 250 workers. -Tim keeplearning wrote: Where do I see # of apache workers and tomcat workers in the config file? With what you said, shouldn't 2 tomcat servers handle 500 connections (250 *2)? Thanks a lot Prakash funkman wrote: you have a config issue. I bet you have 250 apache wo

Re: tomcat-users.xml and manager role

2009-09-09 Thread Tim Funk
This worked fine for me conf/tomcat-users.xml - make sure this is the full XML file: (and then restart tomcat) -Tim Bruce Nourish wrote: Hi, I have a 6.0.20 Tomcat binary distribution downloaded and untarred directly from the Tomcat site. My system is Ubuntu 8.04 with Java version

Shared jars

2009-09-10 Thread Tim Berglund
ike is the shared class loader as a supplement to the webapp classloader. Many thanks for your help! Tim Berglund

Re: Shared jars

2009-09-11 Thread Tim Berglund
va:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:319) at java.lang.ClassLoader.loadClass(ClassLoader.java:254) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:399) ... 27 more Tim O

Re: Shared jars

2009-09-12 Thread Tim Berglund
Still stuck, and not sure where to look. Mad grateful for further ideas. Tim 2009/9/11 Caldarale, Charles R > > From: Tim Berglund [mailto:tlbergl...@gmail.com] > > Subject: Re: Shared jars > > > > The class failing to load is org.hibernate.SessionFactory > > Any c

Re: Shared jars

2009-09-14 Thread Tim Berglund
just won't work ClassLoader-wise. Is now the time to give up? :) Tim That's exactly right: a class in a JAR in the webapp ClassLoader (to wit, is trying to create an object that implements an interface On Mon, Sep 14, 2009 at 8:27 AM, Christopher Schultz < ch...@christopherschultz.ne

Re: Shared jars

2009-09-14 Thread Tim Berglund
Then the Grails WAR shall be enormous now and always. So let it be written, so let it be done. :) Thanks for your help thinking through this. I don't mind quitting now that I understand what the problem is. Tim On Mon, Sep 14, 2009 at 8:48 AM, Peter Crowther wrote: > 2009/9/14 Tim

Re: access log and Apache server

2009-09-17 Thread Tim Funk
There is no way. But you can alter the format property to log the Via header which does have the ip address. (But it will also have more text in it too) The javadocs for AccessLogValve have all the variables you can use. -Tim Angelo Chen wrote: Hi, I run tomcat behind an Apache server

Re: Security Constraint conflict

2009-09-18 Thread Tim Funk
See 13.8.1 of the servlet spec. The result in is unioning all the constraints together for one that passes It might be easier to write a filter to implement the restriction that only GET/POST/HEAD is allowed. -Tim Peter Holcomb wrote: We have a situation where we recently introduced a new

<    4   5   6   7   8   9   10   11   12   13   >