Re: manager outofmemory exception

2005-10-11 Thread Tim Funk
http://jakarta.apache.org/tomcat/faq/memory.html#why -Tim Enrique Rodriguez wrote: I know this is a very common issue but i want to be sure about it. I have 5 tomcats on a 8Gb RAM machine. The number of applications installed on tomcats are 5 to 15. All the tomcat run with -Xms128M -Xmx512M

Fwd: More helpful reporting of exceptions in JSPs

2005-10-11 Thread Tim Fennell
Apologies in advance for cross-posting this, but I sent this email out to the tomcat-dev list a couple of days ago and have received no replies at all... I think this is quite a useful feature, and I'm wondering how best to go about contributing it. Thanks -Tim Fennell http

Re: More helpful reporting of exceptions in JSPs

2005-10-11 Thread Tim Fennell
. -Original Message- From: Tim Fennell [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 11, 2005 12:15 PM To: Tomcat Users List Subject: Fwd: More helpful reporting of exceptions in JSPs Apologies in advance for cross-posting this, but I sent this email out to the tomcat-dev list

Re: More helpful reporting of exceptions in JSPs

2005-10-11 Thread Tim Fennell
. If you give it a shot and have any problems and/or suggestions for improving it please let me know - but please read the readme first ;) Happy bug hunting. -Tim Fennell http://stripes.mc4j.org On Oct 11, 2005, at 3:40 PM, Tim Fennell wrote: I certainly don't have a problem

Re: JasperException: Unable to compile class for JSP

2005-10-04 Thread Tim Funk
Put it in a package ... http://jakarta.apache.org/tomcat/faq/classnotfound.html -Tim Goo GGooo wrote: On 10/4/05, Wendy Smoak wrote: From: Goo GGooo [EMAIL PROTECTED] An error occurred at line: 1 in the jsp file: /name.jsp Generated servlet error: UserData cannot be resolved

Re: tomcat caching issue

2005-09-30 Thread Tim Funk
Based on everything written so far - there is no evidence tomcat would be chaching anything. I'd suggest placing as much debug code in your code as possible via a logging pacakge such as log4j/commons-logging so the log information can be turned on via configuration directives. -Tim

Re: Multiple Threads for one webapp

2005-09-30 Thread Tim Funk
. In this case - the app was restarted 6 times - leaving you 7 threads all looking to the smae external loctation for sending emails. Solution: Use a ServletContextListerner to detect webapp shutdown so the thread may be stopped. -Tim Mahesh S Kudva wrote: Hi All I have setup virtual hosts for 3

Re: Multiple Threads for one webapp

2005-09-30 Thread Tim Funk
This still seems to be a programming issue (possibly a config issue). Without source and config files - I don't see how the mailing list can help resolve this. -Tim Mahesh S Kudva wrote: Hi I have restarted Tomact and made sure no threads run in the background. But still the problem

Re: Multiple Threads for one webapp

2005-09-30 Thread Tim Funk
I think JBOSS support (or mailing list) would be more helpful. Everything described below doesn't make any sense to those of us who don't use JBOSS. -Tim Mahesh S Kudva wrote: Hi Thanks for the note. I just happened to see something strange. As I have configured 3 Virtual hosts

Re: https to web server, http from proxy to tomcat

2005-09-28 Thread Tim Funk
There is also 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 Joost de Heer wrote: [EMAIL PROTECTED] said: We are currently using an nsapi plugin module for our

Re: An error about Tomcat 4.0

2005-09-27 Thread Tim Funk
See the error logs .. java.lang.NoClassDefFoundError at ... org.apache.jsp.fr110_0005fchartTest$jsp._jspService(fr110_0005fchartTest$jsp.java:72) For some reason - a class is missing. The source of the JSP should tell you the missing class. -Tim Greece wrote: Hi,Everyone, I am using

Re: HTTP header lines

2005-09-27 Thread Tim Funk
There is a configuration parameter on the Connector called server. For example: server='Its a secret 180/3.14' -Tim Wilding, Gregory wrote: How do I limit the amount of information disclosed in the HTTP header lines within Tomcat

Re: change path of the session cookie

2005-09-26 Thread Tim Funk
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/http.html emptySessionPath=true -Tim cristi wrote: Hello all Is there any possibility of changing the path of the session cookie ? - To unsubscribe, e-mail: [EMAIL

Re: HTTP trace

2005-09-26 Thread Tim Funk
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/http.html See the allowTrace option -Tim Wilding, Gregory wrote: Does anybody know how to disable HTTP trace within Tomcat Thanks - To unsubscribe, e-mail: [EMAIL

Re: connecting httpd with Tomcat

2005-09-26 Thread Tim Funk
development on mod_jk2 has been abandoned, not mod_jk -Tim Dale, Matt wrote: JK 1.2.13 is the latest mod_jk and the one you should use. Development on mod_jk has been abandoned due to lack of developer interest and most of the features backported to JK

Re: Question about tomcat startup ConcurrentModificationException

2005-09-26 Thread Tim Funk
Search bugzilla. There is a bug report about ConcurrentModificationException - it has to do with mx4j having a race condition. The bug describes a fix. -Tim Maurice Yarrow wrote: Hello Tomcat people When tomcat is restarted, it occasionally (1 in 25 times) gets the below exception

Re: Options to prevent web app from being available if DB not available?

2005-09-26 Thread Tim Funk
Servlet filter. The filter can check the database status on init. Then the filter could be made smart enough to let all traffic through if the database comes back to life. (or conversely also goes away) -Tim Mike Miller wrote: Hi, I am looking for options to prevent my web application

Re: How to limit the size of TOMCATs stdout file

2005-09-24 Thread Tim Funk
Tomcat doesn't explicitly log to standard output. The underlying logging mechanism does. The docs and faq talk about how to configure logging so standard out is not used. -Tim Leon Rosenberg wrote: actually tomcat spams a lot in the catalina.out, this is my favorite: [EMAIL PROTECTED

Re: tld processing performance at startup

2005-09-23 Thread Tim Funk
is explicitly listed in web.xml. If not - you can place the listener explicitly in web.xml. -Tim Jilles van Gurp wrote: Hi, I have a large site running on tomcat with some tag libs. Restarting tomcat can take up to 30-40 seconds which is not that bad except that we'd prefer to minimize

Re: How to limit the size of TOMCATs stdout file

2005-09-23 Thread Tim Funk
- the custom code is too agressive in catching exceptions and should let the container handle them correctly. (And probably incorrectly using error.printStackTrace() instead of a logger) -Tim [EMAIL PROTECTED] wrote: How do you limit the size of Tomcats stdout file. If you look at version 5.5

Re: RES: Problems with gzip compression with Apache/Tomcat cluster and Firefox

2005-09-22 Thread Tim Funk
You need mod_gzip or mod_deflate(?) if your using apache in front of tomcat (via jk) -Tim Acácio Furtado Costa wrote: Hi We're having problems to configure gzip using TC559/Apache Cluster... We moved the compression=on and others gzip declarations from connector 80 to 8009 in all Tomcat

Re: Remote Address Valve Lets Everything Through

2005-09-20 Thread Tim Funk
Not: valve Try: Valve -Tim Mark Leone wrote: KEREM ERKAN wrote: Hi Mark, Is it possible that you may have mistyped allow=xxx.xxx.xxx.xxx as allow=xxx.xxx.xxx.xxx in your configuration? If you did not accidentally delete the () from the right hand side of allow when sending to the list

Re: Starting options

2005-09-20 Thread Tim Funk
See catalina.sh for options you can set on startup. CATALINA_TMPDIR - should allow you to set your temp directory. -Tim Krzysztof Graczyk wrote: Hi! I have a question about starting options of Tomcat server. Is there any starting option (from command line

Re: Mixing Form-based authentication with Public Resources

2005-09-20 Thread Tim Funk
No solution. You can filter prefix, or suffix, but not both. -Tim Marquez, Omar wrote: Hi, Im using Tomcat Form-based Authentication with a JDBC realm, this is working ok for all my pages that are protected trough web.xml with security-constraint web-resource-collection web

Re: Starting options

2005-09-20 Thread Tim Funk
I'm surprised the CATALINA_TMPDIR trick is not working. As for changing (server.xml and ROOT.xml) - I think you are stuck with those in the situation you are describing. -Tim Krzysztof Graczyk wrote: Arup Vidyerthy wrote: Sorry for being nosy but can I ask you exactly why do you want

Re: Tomcat on UNIX

2005-09-16 Thread Tim Funk
java 1.4 -Tim Wei Zhao wrote: Hi: What's the JDK/JVM requirement for running Tomcat 5.5 on AIX 5.1 and HP-UX11? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to share static content across applications

2005-09-15 Thread Tim Funk
I typically create a 3rd webapp with those shared images and other similar assets. Otherwise - you can import those shared assets into your webapp at build time by placing all the shared assets into their own version control repository. -Tim Ritchie Gillam wrote: I am not sure

Re: How to share static content across applications

2005-09-15 Thread Tim Funk
time config resources such as XML files or properties files - that is a whole different story. I typically place them in a JAR file is created at build time by a using a build time dependency. -Tim Ritchie Gillam wrote: In fact that is sort of what I am doing. I am creating a new Context

Re: Why are tag files always compiled to class files?

2005-09-13 Thread Tim Funk
Yeah, I ran into this too. It would require a refactoring of jasper to allow this. The last time I looked into this - at first glance, it appeared the tag file need compiled so that all of its properties can be looked up for pages which used that tag file. -Tim ping xu wrote: Hi, I hope

Re: URL embedded filename suggestion not working inTomcat

2005-09-13 Thread Tim Funk
You could use the Content-Disposition header to send the filename back to the user. -Tim Ron Cozad wrote: This url is not working in Tomcat, but it works with Apache http server. http://my.company.com/cgi-bin/program1.cgi/filename.txt?parameter1=123 Next url does work with tomcat

Re: empty lines in HTML output

2005-09-11 Thread Tim Funk
trimSpaces is a a feature of tomcat 5 -Tim Eugeny N Dzhurinsky wrote: On Sat, Sep 10, 2005 at 09:36:16PM +0200, Leon Rosenberg wrote: Check for trimSpaces parameter in to the jsp servlet in conf/web.xml But beware, combined with genStrAsCharArray option it can crash your tomcat (at least

Re: Pre-compiled JSPs?

2005-09-07 Thread Tim Funk
Yes, think of jspf like .h files in c. You don't compile .h files, but .c files include .h files at compile time. -Tim Richard Burman wrote: Hi Tim, Sorry, I'm sure I'm being a bit dense but I seem to be missing something important here. Are the jspf files included (embedded

Re: Disabling IdentityCheck (port 113)

2005-09-07 Thread Tim Funk
Odd. Are you sure its not your OS logging all incoming TCP connections? There is no such setting in tomcat which does this. -Tim Jim Doble wrote: I am using Tomcat as a stand-alone web server, and I have noticed that whenever my browser opens up a TCP connection to the web server, the server

Re: HttpServletResponse's getOutputStream() methtod.

2005-09-06 Thread Tim Funk
If you want to disable chunked encoding - you need to determine how much data you will send so setContentLength can be called. -Tim Saminda Abeyruwan wrote: Hi all, I'm using tomcat 5.0.28 in Linux environment. In doPost(...) method i'm asking HttpServletResponse's output stream. Tomcat

Re: HttpServletResponse's getOutputStream() methtod.

2005-09-06 Thread Tim Funk
I thought if setContentLength() is used, then chunked encoding is not used. Is that not the case? -Tim Saminda Abeyruwan wrote: Tim Funk wrote: If you want to disable chunked encoding - you need to determine how much data you will send so setContentLength can be called. -Tim Hi Tim

Re: Pre-compiled JSPs?

2005-09-06 Thread Tim Funk
compiler. -Tim Richard Burman wrote: Ah, I thought it was all too good to be true. Now that I have an understanding of how to put it all together, I have given it a go but hit another snag. Remember the use of the 'errorOnUseBeanInvalidClassAttribute' flag? Well, of course, that means that when

Re: How to stop Tomcat supplying HTML for statues

2005-09-06 Thread Tim Funk
http://jakarta.apache.org/tomcat/faq/misc.html#error -Tim David Goodenough wrote: I have a server which is being used only for XML servlets. I would like to send back error responses either as an XML error or, in the case of a non-200 status code just to send back the status code

Re: Pre-compiled JSPs?

2005-09-06 Thread Tim Funk
guessing - your pages have a similar issue. -Tim Richard Burman wrote: Sorry, I don't understand. How will my JSP compile at all if a section (fragment) is ignored and, presumably, omitted from the resulting java file? -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent

Re: compile precompile jsps at runtime

2005-09-06 Thread Tim Funk
Can't with tomcat out of the box. -Tim Zachi Hazan wrote: Hi all, Is there a way to compile precompiled jsp at runtime? i.e., I want to precompiled my jsp before deployment, but after they are deployed I still want to make changes to the jsps that will take effect immediately. I want

Re: Pre-compiled JSPs?

2005-09-06 Thread Tim Funk
of. Once all the jsp's are compiled and mapped in web.xml. They can be deleted from the deployment war file (or dir). -Tim Richard Burman wrote: Hi Tim, Yeah, that's my exact issue, except the pages somewhat more complicated than your example. ;o) I've tried renaming one of them to jspf

Re: compile precompile jsps at runtime

2005-09-06 Thread Tim Funk
. In a nutshell ... not pretty. Or you can have tomcat run in production mode (for the jsp servlet) and all the jsp's get compiled in the background when they are changed. But this relies on jsps NOT being precompiled. -Tim Zachi Hazan wrote: So, how can I do it with tomcat not out of the box

Re: Pre-compiled JSPs?

2005-09-06 Thread Tim Funk
There is no need to turn jspf into classes. The jspf are included by real jsp files. Those jsp files are turned into the class files. -Tim Richard Burman wrote: Tim, Is there no way of turning the fragment (jspf) file into .class files or do they need to remain as JSPs? Cheers, Richard

Re: How to stop Tomcat supplying HTML for statues

2005-09-06 Thread Tim Funk
Then make the error page a jsp which clears the stream and prints what you want. If your servlet already prints what you need, then force the buffer to be flushed so that the response is committed and an error page is not shown. -Tim David Goodenough wrote: No, this is the reverse of what

Re: How to stop Tomcat supplying HTML for statues

2005-09-06 Thread Tim Funk
Don't use sendError. - Call response.setStatus(int). - Calculate the size of your body text - Call setContentLength(value from previous step) - Send the message in the output stream - Profit! ;) -Tim David Goodenough wrote: Maybe we are talking at cross purposes. I will try to explain what I

Re: Dropped response

2005-09-01 Thread Tim Funk
Tomcat should send back a 404. But the RequestDumperValve doesn't log responses. -Tim Rob Hunt wrote: I saw this interesting request show up in my log file: 2005-08-28 20:11:08 RequestDumperValve[catalina]: REQUEST URI =/cgi-bin/jud.cgi SNIP And then there's nothing noting what

Re: errors building tomcat5 from source

2005-09-01 Thread Tim Funk
The location to download junit may have changed or that version might not be available for download. See build.properties.default for where it is being downloaded and change it there OR copy that entry with a valid URL to build.properties. -Tim Michael P. Soulier wrote: Hi, I didn't see

Re: Include directive works strangely in Tomcat 4.1

2005-08-25 Thread Tim Funk
if depends on changes. (Since these are compile time includes, not run time includes) -Tim [EMAIL PROTECTED] wrote: I was trying to include a bit of common Java code using the include directive. But it appears to not be working as I would expect. A few places I checked include: http://java.sun.com

Re: Tomcat compileted for 64-bit Xeon machines

2005-08-25 Thread Tim Funk
. So in a nutshell - the answer is 1. -Tim Philip Widan wrote: I'd like to run Tomcat on a Xeon 64-bit machine as a 64-bit application, not a 32-bit application. My questions are: 1. Is there a 64-bit Tomcat download available? 2. If '1' is no, then does the Tomcat team plan to make one available

Re: Tomcat compileted for 64-bit Xeon machines

2005-08-25 Thread Tim Funk
Ahh ... by the email - you mean the wrappers which invoke the JVM. your best best is to compile from source a 64 bit version. Otherwise - a 64 bit version would be available whenever one of the committers gets a 64 bit xeon machine. -Tim Philip Widan wrote: Thanks Tim. Can you point me

Re: jar files

2005-08-24 Thread Tim Funk
Personally - I prefer jar files. Its one file to keep track of. Instead of 100's of .class files. When you start building up your library - you start to get a large directory of WEB-INF/classes. It much easier to manage them as jar files. -Tim Mott Leroy wrote: This probably sounds like

Re: JSP 2.1 support?

2005-08-23 Thread Tim Funk
There has been no talk of tomcat 6. It is expected that once the 2.5 version of the servlet spec is announced (in draft form) - work would begin on tomcat6. -Tim Jonathan Eric Miller wrote: Does anyone know when JSP 2.1 support is expected? Will that be in Tomcat 6

Re: Anyone familiar where SavedRequest class can be found?

2005-08-22 Thread Tim Funk
server/lib/catalina.jar -Tim Mark Goking wrote: Anyone know which jar file this belongs? I found this article, and this could be the solution to retaining request parameters after logging in http://sourceforge.net/tracker/?group_id=59484atid=491164func=detaila id=766413

tomcat 5.0.19 randomly stops taking http requests

2005-08-15 Thread Tim Lam
Tomcat 5.0.19 is actually still running, but stops taking http requests randomly. It will run just fine for one or two weeks, then in the middles of the night, or over the weekend when no one is using tomcat at all, it stops taking requests (I know when it happens because I have a

Re: Tomcat W3C Access Log

2005-08-12 Thread Tim Funk
=localhost_access_log. suffix=.txt resolveHosts=false/ It can be declared at the host, context, or engine level. -Tim Björn Andersen wrote: Hi, We are hosting webapplications on IIS with an Tomcat-Backend connected via JK2. We analyze the IIS-Logs to supply Webstats. Now, the ISAPI-calls

Re: Security Questions Regarding Tomcat

2005-08-11 Thread Tim Funk
The Server header can be configured in the Connector declaration. server='Sun Solaris IIS/6.0' To limit the HTTP methods this can be done a few ways; 1) Use a servlet filter 2) Use web.xml and security constraints on those method types 3) ??? -Tim LFM wrote: Hi! I'm hardening a Web Server

Re: Security Questions Regarding Tomcat

2005-08-11 Thread Tim Funk
Setting the server header is a tomcat 5.5 feature. -Tim LFM wrote: Tim, Thanks for the reply, but I can't get in working: In conf/server.xml I added server=TEST, as shown: !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8180 -- Connector className=org.apache.coyote.tomcat4

Re: Tomcat and workers(2).properties files

2005-08-11 Thread Tim Funk
correct. -Tim Nathan Hook wrote: Greetings, Does Tomcat itself ever use either the workers.properties or the worker2.properties files? My understanding is that these files are just example property files for the Apache2 mod_jk(2) modules and that Tomcat itself never references these files

Re: Does JspC in 5.0 rely on Hibernate?

2005-08-10 Thread Tim Funk
) inherits from net.sf.hibernate.Lifecycle. -Tim Will Hartung wrote: Hi all! I'm working on migrating from Tomcat 4.1.x to 5.0.x, and one of the components is JspC. Using the ANT Task presented in the 5.0 docs as inspiration I have: target name=jspcx depends=ensure-jsp-src taskdef

Re: sendRedirect still does not handle mailto correctly

2005-08-10 Thread Tim Funk
The fix was made after 4.1.31 ... http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat4/CoyoteResponse.java?rev=1.40view=log -Tim [EMAIL PROTECTED] wrote: A while back we tried to use response.sendRedirect with a mailto:[EMAIL PROTECTED] link

Re: sendRedirect still does not handle mailto correctly

2005-08-10 Thread Tim Funk
Who knows when a 4.1.32 will come out. The easiest thing is to get the file revision and compile that file and drop it into the server/classes directory. -Tim [EMAIL PROTECTED] wrote: Tim, Thanks for the quick response. Is a 4.1.32 in the works at all? Otherwise I guess that means that we

Re: sendRedirect still does not handle mailto correctly

2005-08-10 Thread Tim Funk
for compiling 3) javac -d $CATALINA_HOME/server/classes CoyoteResponse.java 4) restart tomcat 5) Done -Tim [EMAIL PROTECTED] wrote: Tim, Thanks again. Yes, that's what I'm doing I downloaded the Jakarta connectors source, got the update file from CVS and now am going through dependency hell getting

Re: error in CATALINA startup in UNIX

2005-08-09 Thread Tim Funk
If you used HP's tar - then the you might have some bad files. YOu need to use the GNU tar. To uncompress the .tgz file. -Tim Kurniawan Kurt wrote: Hi, All. We have problem in starting Tomcat 5.0.28 in one of out HP-UX. We have installed it so many times in both HP-UX and Win, and never had

tomcat 5.0.19 randomly stops taking http requests

2005-08-08 Thread Tim Lam
Tomcat 5.0.19 is actually still running, but stops taking http requests randomly. It will run just fine for one or two weeks, then in the middles of the night, or over the weekend when no one is using tomcat at all, it stops taking requests (I know when it happens because I have a

Re: suppress directory listing

2005-08-04 Thread Tim Funk
http://jakarta.apache.org/tomcat/faq/misc.html#listing -Tim Paul Singleton wrote: My JSP app has a /images folder and Tomcat 5.5.9 happily serves up a directory listing of this: how can I suppress this? Paul Singleton

Re: W3C log format in Tomcat 4?

2005-08-02 Thread Tim Funk
This page has some links .. http://jakarta.apache.org/tomcat/bugreport.html -Tim Jason wrote: Tim, Perfect, that worked exactly like I needed it to. Thank you VERY much! Is there a searcable archive of all these mailing list questions and responses

Re: W3C log format in Tomcat 4?

2005-08-01 Thread Tim Funk
Try the ExtendedAccessLogValve. You'll need to look in the javadocs for the details. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/catalina/docs/api/org/apache/catalina/valves/ExtendedAccessLogValve.html -Tim Jason wrote: I'm new to Tomcat 4 and am trying to figure out how to configure

Re: Forwarding Domains

2005-08-01 Thread Tim Funk
Sorry, there is no way out of the box. But there are filters which can do this for you. For example: http://tuckey.org/urlrewrite/ -Tim Justin Jaynes wrote: Is it possible for me to host somedomain.com on my tomcat, and as that is my prefered domain name format, and want all users who go

Re: W3C log format in Tomcat 4?

2005-08-01 Thread Tim Funk
I think this will work ... Valve className=org.apache.catalina.valves.ExtendedAccessLogValve directory=logs pattern='c-ip cs-method cs-uri sc-status time' prefix=localhost_access_log. suffix=.txt resolveHosts=false/ -Tim Jason wrote: Tim, This looks like

Re: mod_rewrite for Tomcat 5.5

2005-07-30 Thread Tim Funk
This might work ... http://tuckey.org/urlrewrite/ -Tim David Wall wrote: Can anybody recommend anything like mod_rewrite for Tomcat 5.5? I know the FAQ says something about why reinvent the wheel, but in this case, it's because we want to get rid of Apache just because we need one small

Re: jsp:include params

2005-07-30 Thread Tim Funk
In this case - you probably want to use a tag file. -Tim Patrick Thomas wrote: Hi All, When jsp:include-ing a page, I see that params from the calling page are also passed on to the called page. Example: caller.jsp: (hypothetically called with param1 = val1) jsp:include page=callee.jsp

Re: Tomcat, getRequestURI(), and URL fragments

2005-07-30 Thread Tim Funk
The web browser never sends (or shouldn't send) #blah so the webserver will never see it. -Tim Kito D. Mann wrote: I've noticed an interest consequence of getRequestURI() with Tomcat -- getRequestURI() doesn't return the URL fragment (the part after the #). So, if the URL is http

Re: JNDI - TOMCAT

2005-07-27 Thread Tim Funk
Don't use docs based on 4.1 when running 5.5. Use the 5.5 docs. The way JNDI resources are declared in 5.5 changed as compared to previous versions. The archives in the tomcat user list also talk about this too. http://jakarta.apache.org/tomcat/tomcat-5.5-doc/index.html -Tim Kane Wilson

Re: ho to check if forward-target exists?

2005-07-27 Thread Tim Funk
If you are looking for a physical resource use if (null==servletContext.getResource()) { ... yes it exists ... } -Tim Marten Lehmann wrote: Hello, I can start a forward like this e.g. through a filter: request.getRequestDispatcher(/test.html).forward(request, response); But how can I

Re: Instantiating an Application Scoped Bean

2005-07-27 Thread Tim Funk
Please don't use servlets and the load-on-startup to do this. It is a kludge. Use a ServletContextListener(). They were intended for just this type of need. -Tim Raghupathy,Gurumoorthy wrote: Define a servlet say com.guru.servlet.StartUpServlet And in the StartupServlet Overide

Re: injecting a new request within a filter

2005-07-27 Thread Tim Funk
1) You need to be running tomcat 5 2) See SRV.6.2.5 Filters and the RequestDispatcher in the servlet spec - it discusses exactly what you need to do. -Tim Marten Lehmann wrote: Hello, from within a filter, I'm trying to do the following: request.getRequestDispatcher(req.getServletPath

Re: Compile error in v5 but not v4

2005-07-27 Thread Tim Funk
Tomcat5 uses jasper 2 which does much better optimizations of handlng custom tags. If you ahve a page with a lot of custom tags - it might not compile in tomcat 4. One alternative (but with a performance penalty) is to split some of the JSP file into a run-time include (jsp:include). -Tim

Re: Linking/forwarding GET requests using Default servlet or other Tomcat feature

2005-07-27 Thread Tim Funk
There is nothing in tomcat which out of the box can do this. But there are many 3rd party filters (or 3 liners which are easy to write) which can do this. -Tim Rob Hunt wrote: Yes, I know that an internal forward would work. I just didn't want to code/test/debug it. Yes, I'm being very

Re: Error 500 messages

2005-07-26 Thread Tim Funk
Yes, for example: %@ page buffer='128kb' % -Tim Adile Abbadi wrote: Hi Tim, Thanx for this again - sorry to be a pain - but this is good info - so the bugger size value is a jsp page directive? I'll check into it - but if you can confirm I would appreciate it. Thanx Adile -Original

Re: Init parameter in context.xml

2005-07-26 Thread Tim Funk
Only a guess try Context path=/appName ... Parameter name=paramName value=dummyValue/ /Context -Tim Arash Ramin wrote: In lieu of using web.xml, I'm trying to add an init parameter in our application's context.xml file: context path=/appName ... parameter name=paramName

Re: HTTP/1.1 GZIP compression and its impact on server

2005-07-26 Thread Tim Funk
It will eat up CPU, but you also save CPU by not having to transmit those extra bytes. Its always a good idea to GZIP. -Tim Peddireddy Srikanth wrote: Hi all, Iam planning to turn on the HTTP/1.1 GZIP compression for my application by setting the compression attribute of http connector. Iam

Re: How to prevent JSP from creating a session by default?

2005-07-26 Thread Tim Funk
If your running tomcat5, look at the JSP spec - JSP.3.3.5 Defining Implicit Includes This *might* allow you to declare %@ page session=false % in an include then have that be included in all your jsp's. -Tim Markus Kobler wrote: We have recently introduced load balancing using JK and have

Re: Error 500 messages

2005-07-24 Thread Tim Funk
The response is being comitted before the erro is being thrown. You need to set the buffer size to be larger. Its a page directive. -Tim Adile Abbadi wrote: Hi Tim, Thank you very much - that has helped - however I discovered that the problem still exists if I have an include within

Re: Limitting bandwidth: Filedownload

2005-07-22 Thread Tim Funk
Sounds like you would need to write a servlet filter to perform the throttling. I'd guess there are some out there that do similar. -Tim Lars Nielsen Lind wrote: Hi. Is there a way to make two channels with Apache / Jakarta-Tomcat regarding to the Internet connections bandwidth

Re: Configure email catcher for dev and stage environments?

2005-07-22 Thread Tim Funk
An easier solution is to build your own mail server which eats all the emails or redirects them to a test email account where you can view the results. -Tim Marc Guillemot wrote: Hi, in dev and stage environments, we are working with real data but have to avoid that email are really sent

Re: Jsp and xml

2005-07-22 Thread Tim Koop
. This is not as likely as number 1 above. Tim Koop Kiran Patel wrote: Hello all, I am creating a xml document using JSP. The JAVA codes in JSP creates blank lines in xml document. How can I remove this or how can I don't create. I will appreciate any help. Thank You, Kiran Patel Software

Re: Request parameter data not being recognised as UTF-8

2005-07-22 Thread Tim Koop
a lot, to anyone who has any ideas. -- Tim Koop Mark Thomas wrote: 1. Try accessing Tomcat directly to see if mod_jk is causing problems. 2. Try 4.1.31 - it has a bunch of bug fixes that might (I haven't checked the release note for details) help 3. Try the following simple test JSP and once

Re: Replacing a class file

2005-07-22 Thread Tim Koop
server. If you have more that one instance of Tomcat running maybe you restarted the wrong one. Check file permissions. Maybe the new class is actually running and the changes you made to the java file don't actually fix the problem. Tim Koop none none wrote: Hello, I am very new to tomcat

Re: Request parameter data not being recognised as UTF-8

2005-07-22 Thread Tim Koop
Thanks Mikolaj. That did it. For some reason running request.setCharacterEncoding(UTF-8) in my code does nothing, but if it gets run from a Filter it works great. Tim Koop Mikolaj Rydzewski wrote: Tim Koop wrote: I have a web page form that is expecting UTF-8 data, but when my code

Re: Error 500 messages

2005-07-22 Thread Tim Funk
This line jsp:include page=top.html flush=true will commit the response and send html back to the client. Once that is done - no error messages will be sent back to the client and you will end up with a blank screen. -Tim Adile Abbadi wrote: Hi Rob, Thanx for this - this is great - I may

Re: Error 500 messages

2005-07-22 Thread Tim Funk
flush=false -Tim Adile Abbadi wrote: Hi Tim, Thanx for the information - I forgot about that. I guess the question is why did it work in Tomcat 3 and not Tomcat 4 and second is there a workaround to get it to work? Adile -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED

Request parameter data not being recognised as UTF-8

2005-07-21 Thread Tim Koop
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler URIEncoding=UTF-8 useBodyEncodingForURI=false / Thanks for any ideas. I've tried everything I can think of. -- Tim Koop

Re: RAM limity

2005-07-21 Thread Tim Funk
Nope. No limits. Just OS limits. -Tim Paulo Alvim wrote: Hi, I'm using TC559 and JVM 1.5.x with Win2003 / 2GB RAM. I'd like upgrade to 4GB RAM...is there any JVM or Tomcat limit here? - To unsubscribe, e-mail: [EMAIL

Re: Unable to use Python/CGI from Tomcat....

2005-07-19 Thread Tim Diggins
that in your shebang line... also, might it not be an idea to a have a specific instance of CGIServlet that has executable=python, rather than piping to ksh and then to python? (ie why bother with the shebang line, if you don't really need it...) just a few ideas, FWIW... Tim Ed Hillmann

Re: Request too long

2005-07-18 Thread Tim Diggins
Are you doing get or post? Yair Zohar wrote: Hello, I'm building a web application on tomcat 4.1.18 which is connected to apache 2 web server by ajp13 connector. I get the response : Server Error The following error occurred: [code=HTTP_REQUEST_TOO_LONG] The HTTP request

Re: robots.txt

2005-07-14 Thread Tim Funk
Place a robots meta tag in the head tag of your html. -Tim Eric J. Pastoor wrote: The msn bot has been hammering one of my webapps for about 2 weeks now. I have a calendar style transaction page that is not password protected. Essentially this calendar goes on forever. This means that the msn

Re: RFC-2047 Header Character Set Encoding JK + Tomcat 5

2005-07-13 Thread Tim Funk
You may need to add this to your Connector declaration: URIEncoding=UTF-8 -Tim Guernsey, Byron (GE Consumer Industrial) wrote: Is there a FAQ on how Tomcat 5 and JK1 implement HTTP header character sets? (ie, does it support RFC-2047) We use some single sign-on plugin's at the web server

Re: 500 - Internal server error

2005-07-13 Thread Tim Funk
You'll need to check the logs. When you have such a high load, it can be any number of reasons. -Tim Ayyanar Inbamohan wrote: Hi all, My web application run in an intranet site, i used jmeter for testing the Load and performance, when the concurrent user is set to 500 in jmeter to test

Re: How to set the user created tld in web.xml??

2005-07-12 Thread Tim Funk
://www.jiyaJobs.com//uri ... /taglib Also be sure the tag file is in /WEB-INF/ -Tim IndianAtTech wrote: Hi All, I am facing a problem in setting the user created tld file in web.xml If I don't specify anything in web.xml I am getting below error Exception Handler Description: An unhandled exception

Re: file access via HttpSession

2005-07-12 Thread Tim Funk
No, you would need to do this via a programmtic authorization. There is no declaritive way to do this. -Tim Clark Slater wrote: Hello- I am running 5.0.19 Is there a way to restrict access to files in a directory based on a value in an HttpSession? For example: Customer c = (Customer

Re: Tomcat 5.5.9 - When JSPs change, gives error org.apache.xerces.jaxp.SAXParserFactoryImpl could not be instantiated

2005-07-11 Thread Tim Diggins
I don't know the answer, but can you confirm you are either: 1) using jdk 1.5 or 2) using jdk 1.4 (and with the compatibility package for tomcat 5.5) as the compatibility package (as I understand it) addresses xml parser versioning/instantiation issues. -- Tim Craig Dixon wrote: I've

  1   2   3   4   5   6   7   8   9   10   >