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

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 or is not a

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
It seems you have a thread started in the background during the life of the application. This thread goes to some external place of storage and to look for emails to send. It seems this thread is not stopped when a context is reloaded. When the app is reloaded - a new thread is started. In this

Re: Multiple Threads for one webapp

2005-09-30 Thread Tim Funk
persists. Every time tomcat is restarted, I can see the notification thread start Notification thread started...32237 Regards Thanks Mahesh S Kudva -Original Message- From: Tim Funk [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Date: Fri, 30

Re: Multiple Threads for one webapp

2005-09-30 Thread Tim Funk
-console. Within each of these there are two files session and cache. Is this causing the issue.??? Is this normal ??? Regards Thanks Mahesh S Kudva -Original Message- From: Tim Funk [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Date: Fri, 30

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
There is an option to disable TLD processing. This is nice if: 1) You precompile 2) Or don't use tld files See http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html for disabling them If you place listeners in your TLD files - I am unsure if they are picked up if the TLD is

Re: How to limit the size of TOMCATs stdout file

2005-09-23 Thread Tim Funk
See http://jakarta.apache.org/tomcat/faq/logging.html#catalina.out ClientAbortExceptions are thrown by tomcat when the client presses stop before the page is downloaded but does not log the exception. If there is custom code trapping exception - it might be logging it. In this case - the

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

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 if this is

Re: How to share static content across applications

2005-09-15 Thread Tim Funk
If the thing being shared are browser sepefic such as images - I create a new webapp. For example: for all my common images I could create an images webapp. Context path=/images .../ Then my webapps which refernce those images can link to /images directly (and take it on faith that there is an

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 but

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 it

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) into the

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
errorOnUseBeanInvalidClassAttribute (IIRC) is a test when jsp:useBean is used without a default constructor being available. If you are using include files which were as meant as compile time include fragments, rename them (the include files) to jspf and they will be ignored by the jsp

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 and a

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 to be

Re: Pre-compiled JSPs?

2005-09-06 Thread Tim Funk
From the jasper task all the [valid] jsp's are turned into java files and compiled into class files. Those class files need to be a jar file in WEB-INF/lib or inside WEB-INF/classes. The jasper task can also rewrite web.xml so that all the mappings from the JSP -- class file are taken care of.

Re: compile precompile jsps at runtime

2005-09-06 Thread Tim Funk
? Tim Funk wrote: 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

Re: Pre-compiled JSPs?

2005-09-06 Thread Tim Funk
. -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: 06 September 2005 16:14 To: Tomcat Users List Subject: Re: Pre-compiled JSPs? From the jasper task all the [valid] jsp's are turned into java files and compiled into class files. Those class files need to be a jar file

Re: How to stop Tomcat supplying HTML for statues

2005-09-06 Thread Tim Funk
I want. I want to STOP it sending an HTML page, rather than the error-page tag to set it. David On Tuesday 06 September 2005 15:06, Tim Funk wrote: 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

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 the

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
Hopefully, you are declaring fieldNames somewhere - but for some reason - the scope is probably is not correct. Looking into more detail translated jsp for fieldNames should do the trick. the static block is a helpful feature that lets the jsp compiler re-compile if on eo the files if

Re: Tomcat compileted for 64-bit Xeon machines

2005-08-25 Thread Tim Funk
The 64 bit edition has been available since the public release of tomcat including all 3.X releases. Actually - to get 64bit performance - you need to be sure your JVM by Sun/BEA/IBM is one optimized for a 64 bit machine. The JVM byte code doesn't care whether your system is 32 or 64 bit.

Re: Tomcat compileted for 64-bit Xeon machines

2005-08-25 Thread Tim Funk
to where I can find the 64-bit edition, since I can't see anything specific on the Tomcat website. Or does the download include both 32-bit and 64-bit? -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: 25 August 2005 12:59 To: Tomcat Users List Subject: Re: Tomcat compileted

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 a

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

Re: Tomcat W3C Access Log

2005-08-12 Thread Tim Funk
See ... http://jakarta.apache.org/tomcat/tomcat-4.1-doc/catalina/docs/api/org/apache/catalina/valves/ExtendedAccessLogValve.html Valve className=org.apache.catalina.valves.ExtendedAccessLogValve directory=logs pattern='c-ip cs-method cs-uri sc-status time'

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
Temporarily Location: http://localhost.localdomain:8180/index.jsp Content-Length: 0 Date: Thu, 11 Aug 2005 20:15:38 GMT Server: Apache-Coyote/1.1 Connection: close What I'm I doing wrong? Thanks! Leandro On Thu, 2005-08-11 at 15:56 -0400, Tim Funk wrote: The Server header can be configured

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
There is definitely no dependency on hibernate. Since it is looking for: net/sf/hibernate/Lifecycle - I might be *guessing* there could be a taglib (or something) somewhere with that might by trying to create a net.sf.hibernate.Lifecycle. Otherwise - there might be a class which (indirectly)

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
need to build 4.1 from source or upgrade to a later version of 5.0 or 5.5. We were trying to put that off a bit longer. Thanks again - Richard Original Message: - From: Tim Funk [EMAIL PROTECTED] Date: Wed, 10 Aug 2005 14:15:46 -0400 To: tomcat-user@jakarta.apache.org Subject: Re

Re: sendRedirect still does not handle mailto correctly

2005-08-10 Thread Tim Funk
1) Download this file: (The patched revision from CVS) http://cvs.apache.org/viewcvs.cgi/*checkout*/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat4/CoyoteResponse.java?rev=1.38 2) Put $CATALINA_HOME/common/lib/*.jar, $CATALINA_HOME/server/lib/*.jar in your CLASSPATH for

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

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 to

Re: W3C log format in Tomcat 4?

2005-08-01 Thread Tim Funk
it is what I was looking for. Since I'm very new to Tomcat, I'm struggling to figure out how to implement this valve. Do you have an example of a standard implementation that you could send me that I could paste into my server.xml file? Thanks a bunch for your help! Jason --- Tim Funk [EMAIL

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

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 the

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
Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: July 24, 2005 7:46 AM To: Tomcat Users List Subject: Re: Error 500 messages 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

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
Adile -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: July 22, 2005 12:42 PM To: Tomcat Users List Subject: Re: Error 500 messages flush=false -Tim Adile Abbadi wrote: Hi Tim, Thanx for the information - I forgot about that. I guess the question is why did

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: 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

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: 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
It looks like your tld file is missing the uri element. For example: taglib xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee web-jsptaglibrary_2_0.xsd version=2.0 ...

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 and SQL Server

2005-07-11 Thread Tim Funk
FWIW .. there is a new version of the SQLServer JDBC driver from Microsoft. -Tim Mitchell Teixeira wrote: Hi - I've heard nothing but bad things about the Microsoft JDBC driver for SQL Server. I don't have any suggestions how to fix your problem in-place, just a suggestion to switch drivers.

Re: Using Single Sign on to access another webapp.

2005-07-08 Thread Tim Funk
One way to do SSO is to utilize a cookie (lets call it SSO, and to be really secure - it should only be transfered over https). The existence of a cookie says the person might be logged in. The value of the cookie needs to be checked. The value of the cookie shold NOT be the user id. It can

Re: 2 apps

2005-07-07 Thread Tim Funk
The safest way is to run 2 instances of tomcat on the device. Once instance runs on port 80 for the world to see. Then a firewall can block all access to any other port from the outside. The other instance runs on a high port for internal use. Otherwise, look at RemoteAddressValve:

Re: Turning off jsessionid on URL?

2005-07-07 Thread Tim Funk
Please stop posting the same question 4 times and please wait for a response. The answer to the question below is no. There is no switch. To not use URL rewriting, do not utilize the method HttpServletResponse.encodeURL(). Of course - this requires a code rewrite. The easier solution is to

Re: How do you set up JMX remote for Tomcat 5.5.9?

2005-07-07 Thread Tim Funk
http://jakarta.apache.org/tomcat/faq/misc.html#properties -Tim andy gordon wrote: Help, How do you set up JMX remote for Tomcat 5.5.9? For instance where do you specify the JVM startup option -Dcom.sun.management.jmxremote.port=9998 that enables remote monitoring and management?

Re: making clear

2005-06-30 Thread Tim Funk
Tomcat can be used with any version of apache. -Tim ganesan malairaja wrote: hi guys i already have apache 2, java jdk 1.4.2 .. i need to know can i use tomcat version 5.0.x or must have version 4.. - To unsubscribe,

Re: jsp include/RequestDispatcher incompatible?

2005-06-29 Thread Tim Funk
access to it? Do I also need to call flush at the end of each request dispatcher call? --George On 6/28/05, Tim Funk [EMAIL PROTECTED] wrote: The out from the jspwriter is NOT the same out as receieved by response.getWriter(); The out in the JspPage is buffered. -Tim George Finklang wrote

Re: naming of individual Context files

2005-06-29 Thread Tim Funk
No - the name does not matter. I haven't tries more than one context decalration in a file. If it would work - It doesn't feel like a good idea. -Tim Paul Singleton wrote: If I store Context elements... * in individual files (with a .xml extension) in the

Re: ClientAbortException: java.net.SocketException: Connection reset by peer: socket write error

2005-06-28 Thread Tim Funk
Connection reset by peer means the client disconnected before all the data was sent. -Tim Adriana Suarez wrote: Hello, I got this exception and I don't know how to solve it, I have a web application with a servlet which sends video with formats avi, mpeg, and mov, it shows the video but the

Re: single session id

2005-06-28 Thread Tim Funk
Set emptySessionPath=true on your connector declaration. This is a tomcat 5.5 feature only. -Tim Rogerio Baldini das Neves wrote: Hi, I need to have a single session id in all my contexts in my host ? Is it possible ? My problem: I have a cluster this 1 Apache and 2 Tomcats. In each

Re: jsp include/RequestDispatcher incompatible?

2005-06-28 Thread Tim Funk
The out from the jspwriter is NOT the same out as receieved by response.getWriter(); The out in the JspPage is buffered. -Tim George Finklang wrote: have the following code in my jsp, which is called by a forward from my Controller servlet. The various Dispatchers are either servlets or

Re: Is there a DTD/XML Schema available for the Context.xml files?

2005-06-28 Thread Tim Funk
No ... http://jakarta.apache.org/tomcat/faq/misc.html#dtd -Tim Behrang Saeedzadeh wrote: Hi I'm searching for the DTD or the XML Schema for the Context.xml files. Does anybody know where can I find them? -Behrang - To

Re: website stops answering requests from time to time

2005-06-23 Thread Tim Funk
Looks like a race condition with JDBCStore. -Tim Ayyanar Inbamohan wrote: This is a production site. We use Tomcat 4.1. website stops answering requests from time to time Our website is under very high daily volume. Several times a week, no requests are answered. Here is the log

  1   2   3   4   5   6   7   8   9   10   >