Re: Change value of Header Server

2004-12-20 Thread Tim Funk
Its a Connector attribute. In 5.5.3 or better. server="WayTooParanoid/1.618" -Tim Andras Balogh wrote: Hello, We are running a web application with Tomcat5.0. As i have seen Tomcat returns this as Response Headers: "Server: Apache-Coyote/1.1" It is possible to change this value? According to

Re: strongly typed collection in a scriptlet tag won't compile

2004-12-18 Thread Tim Funk
I believe JDT with tomcat does not support 1.5. Only 1.4. -Tim Connor Barry wrote: I'm trying to compile this code: <% Collection a = new ArrayList();%> And I get this error: - org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred a

Re: integrated login between servers

2004-12-16 Thread Tim Funk
You may want to look at a 3rd party SSO solution. They do exist for java and there are some open source ones. -Tim Paulo Alvim wrote: Hi, I'm using a cluster with two machines each one running 4 identical war files. But I'll need to keep another application isolated in a third machine...The point

Re: TOMCAT adds "/servlet" to URL -> program doesn`t work

2004-12-16 Thread Tim Funk
http://jakarta.apache.org/tomcat/faq/misc.html#invoker -Tim Kay Farin wrote: Hello. This is my first post at this list... I`am currently trying to set up some webapps on a TOMCAT 5.5.6 installation. There is a HTML page index.html containing an applet. Let`s call this app "ball". When I hit a cer

Re: Myth or Best practice : <%@ page session="false" %>

2004-12-16 Thread Tim Funk
The implicit scripting variable called session is unavailable. If you still want access to the session - a JSP scriptlet *must* explicilty ask for it. HttpSession mySession = request.getSession(); -Tim Razi Ansari wrote: Thnx for the reply people, one thing that Andreas pointed out to me from th

Re: Myth or Best practice : <%@ page session="false" %>

2004-12-15 Thread Tim Funk
Yes. By default, a session variable is implicitly created for every JSP. The session variable is then initialized with the exsiting session or creates a new session if needed. This behavior is disabled via <%@ page session="false" %>. But you are still allowed to code in your JSP: <% HttpSession

Re: TC4.1.30: AccessLogValve

2004-12-13 Thread Tim Funk
docs. Thanks, Michael -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Monday, December 13, 2004 3:30 PM To: Tomcat Users List Subject: Re: TC4.1.30: AccessLogValve No can do with the existing logger. You can instead use a filter to place the value you desire int

Re: TC4.1.30: AccessLogValve

2004-12-13 Thread Tim Funk
at'll probably do it. But how do I code it in the server.xml file? My first experiments aren't liked by tomcat: How do I get the quotes right? Thanks again, Michael -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Monday, December 13, 2004 1:15 PM To:

Re: TC4.1.30: AccessLogValve

2004-12-13 Thread Tim Funk
the quotes right? Thanks again, Michael -----Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Monday, December 13, 2004 1:15 PM To: Tomcat Users List Subject: Re: TC4.1.30: AccessLogValve %{Content-Length}i -Tim Lemke, Michael IZ/HZA-IOR wrote: Hi, I've got TC 4.1.30 runnin

Re: TC4.1.30: AccessLogValve

2004-12-13 Thread Tim Funk
%{Content-Length}i -Tim Lemke, Michael IZ/HZA-IOR wrote: Hi, I've got TC 4.1.30 running. How can make the AccessLogValve report the bytes *received* for PUT/POST requests? Or is there another way to log it? Thanks, Michael -

Re: StandardWrapperValve[jsp]: Servlet.service()

2004-12-13 Thread Tim Funk
Look at MyLogin.jsp since its throwing the exception. - Root Cause - javax.servlet.ServletException at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:536) at org.apache.jsp.MyLogin_jsp._jspService(MyLogin_jsp.java:141) -Tim [EMAIL PROTECT

Re: access log question

2004-12-12 Thread Tim Funk
Combined has the referer. Use the copy or move command to a name webalizer likes. -Tim Guy Katz wrote: hello; i have the line below in my server.xml what is the difference between the 'common' and 'combined' values? also, the files the serer creates are access_log.2004-12-11.txt because i am usin

Re: Tomcat Version

2004-12-11 Thread Tim Funk
http://jakarta.apache.org/tomcat/faq/misc.html#version -Tim Billy Ng wrote: Hi folks, Is there any way to find out the tomcat version from the command line? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-m

Re: include directive " or "include action" are now make the same effect ?

2004-12-11 Thread Tim Funk
No. The newer version of tomcat looks for changes in <%@ include file %> and recompiles on demand. -Tim Altug B. Altintas wrote: I thing in the new versions of Tomcat these below to code <%@ include file="time.html" %> make the same effect. When i make changes in time.html; i always see the mai

Re: Versions of JVM to use with Tomcats 5.0.28 and 5.5.4

2004-12-11 Thread Tim Funk
(My opinion) - JDK1.4 is prefered. (With all the patches) I haven't tried JDK1.5. It is still "relatively young" so your comfort level with it will probably be inversely proportional to the size of the company where you need to deploy it. ;) -Tim Hari Mailvaganam wrote: Can anyone point me to wh

Re: JSP expressions are displayed as string

2004-12-11 Thread Tim Funk
A few possible reasons - Use a 2.3 DTD in your web.xml - web.xml says el is disabled for that page - the jsp has el ignored - you haven't included the fn tag lib (doubt this) -Tim haimra wrote: I am having this wired problem driving me crazy. I am using JSTL and Tomcat 5.0.30. Some times for unkn

Re: simplest way to cache jsp pages into built "static" files?

2004-12-07 Thread Tim Funk
Have your JSP provide some expiration data headers and then mod_cache might do the trick ... http://httpd.apache.org/docs-2.1/mod/mod_cache.html -Tim Mieke Banderas wrote: What's the simplest way of caching jsp-generated pages, built by Tomcat 4, so that Apache 2 serves most of these (except a fe

Re: Why some variables and methods have leading "_" in the servlet compiled from JSP?

2004-12-05 Thread Tim Funk
Because the jsp spec says so. -Tim zerol tib wrote: Howdy, When I am reading the servlet compiled from JSPs, I find that There are some variables and methods have leading "_" while others not: _jspxFactory _jspx_out _jspx_includes Why these identities have the leading underline? Is there a namin

Re: HP-UX misbehaving AGAIN

2004-12-03 Thread Tim Funk
http://jakarta.apache.org/tomcat/faq/memory.html#why After a long battle with HP-UX - I love the performance I get on it. Odds are - your memory issues have to do with process/thread limits. If you are running apache and tomcat on the same machine - run them as different userids since the sum of

Re: Badly need any hint on Illegal State exception

2004-12-02 Thread Tim Funk
http://jakarta.apache.org/tomcat/faq/misc.html#illegalstate Hint - you are performing a redirect after the response is committed. -Tim Pradeep Chauhan wrote: Hi, Please any body provide any hint on following error. Because of this User got "INTERNAL SERVER 500 Error". 2004-11-26 12:50:48 StandardWr

Re: Asynchronous statistics logger

2004-12-02 Thread Tim Funk
I second using JMS. Having a JMS server "somewhere" and tomcat as a JMS client. Then all the events are sent to the JMS server. Then the server can decide to consume the messages on demand and log as needed. -Tim Allistair Crossley wrote: this strikes me as being something JMS would handle well,

Re: JSTL/JSP/regexp Question

2004-12-01 Thread Tim Funk
e EL is done by JSP 2.0. What do I need to do here? Any suggestions would be appreciated. Thanks, Jack Tim Funk wrote: If your webapp's web.xml is a 2.4 webapp. Then tomcat will do the EL translations before the value is passed to your custom tag. You won't have to use ExpressionEva

Re: JSTL/JSP/regexp Question

2004-12-01 Thread Tim Funk
If your webapp's web.xml is a 2.4 webapp. Then tomcat will do the EL translations before the value is passed to your custom tag. You won't have to use ExpressionEvaluatorManager because it would have been done for you. -Tim Jack Lauman wrote: Tim: This app is deployed with JBoss 3.2.7RC1/Tomcat

Re: JSTL/JSP/regexp Question

2004-12-01 Thread Tim Funk
Ideally you'd be using tomcat5. (and jdk1.4) Then you can use JSTL functions like below ... match my.Foo boolean match(java.lang.String, java.lang.String) -- package my; public class Foo { public static boolean match(String s, Strin

Re: Multipe Tomcat instances

2004-12-01 Thread Tim Funk
If you run tomcat in a cluster where all the webapps are identical, we use the exact same (copy) of server.xml for all the tomcat instances. So when one server.xml is changed - we copy it to all of the tomcat installations. Then we rely on variable substitution in server.xml for items which migh

Re: Reloading context through Code

2004-11-30 Thread Tim Funk
Or as a shortcut, look at the Manager webapp and see what it does to reload a Context. -Tim Shapira, Yoav wrote: Hi, Yes, it's possible. You walk down the container hierarchy of the org.apache.catalina classes, starting with the factory like ServerFactory.getServer, then Service, Engine, Host, e

Re: Tomcat Requirements?

2004-11-30 Thread Tim Funk
When Mysql is at 100%, you go to the Mysql list and ask for help.;) A database at 100% could be any number of reasons: 1) A bad join 2) An inefficient query 3) Not enough memory on the server 4) Not enough memory for Mysql 5) Lack of indexes or poor index choices 6) ... Get a second machine. Perfor

Re: org.apache.catalina.connector.Request

2004-11-30 Thread Tim Funk
In the cvs browser, you can view by a specific tag. From there you can easily determine which revision is associated with which version. Next - it will probably be much easier to not use container based authentication based on your requirements. Servlet Filters would probably be much easier. A

Re: Tomcat 5.0.x or 5.5.x in production

2004-11-29 Thread Tim Funk
5.5.5 is about to be tagged "soon." (See the dev list) If there are no showstoppers in that release - I (IMO) would say its realistic to start consider moving your 5.0.X releases to 5.5. But be warned that if you have custom modules (valves, realms, etc) against 5.0 - you will need to recompile

Re: No more threads

2004-11-29 Thread Tim Funk
Use sam to tune the kernel parameters to allow more threads, process limits, and memory limits. -Tim David Teruel wrote: Hello everyone. I'm having one little problem with the memory of my Tomcat 5.5.4. I'm doing a little test for knowing how many concurrent sessions of my application can I hav

Re: ClassCastException in org.apache.jasper.compiler.TagLibraryInfoImpl (Tomcat5.5) (oops)

2004-11-28 Thread Tim Funk
(I was wrong) It was voted stable ... http://marc.theaimsgroup.com/?l=tomcat-dev&m=110011482407630&w=2 -Tim Tim Funk wrote: Are you running with the security manager turned on? If so - do you get the same error with it turned off? (BTW 5.5 has not been voted &quo

Re: ClassCastException in org.apache.jasper.compiler.TagLibraryInfoImpl (Tomcat5.5)

2004-11-28 Thread Tim Funk
Are you running with the security manager turned on? If so - do you get the same error with it turned off? (BTW 5.5 has not been voted "stable" yet) -Tim Kevin A. Burton wrote: Kevin A. Burton wrote: Whats up with this? java.lang.ClassCastException org.apache.jasper.compiler.TagLibraryInfoImpl.c

Re: TC 5.0.28 "error creating temporary file"

2004-11-27 Thread Tim Funk
http://issues.apache.org/bugzilla/show_bug.cgi?id=19765 Tomcat uses Ant to do a compile. Ant creates a temp file to assist in compliation. I am guessing the tempdir is not set correctly. (or something similar) -Tim M.Hockings wrote: Tim Funk wrote: Ant is trying to create some temporary files

Re: TC 5.0.28 "error creating temporary file"

2004-11-26 Thread Tim Funk
Ant is trying to create some temporary files to compile the JSP. Ant cannot write the temp file. Somewhere in the archives or in bugzilla there was a discussion about this. -Tim M.Hockings wrote: Hello, I apologize for the length of this note but I have attempted to shorten it as much as possib

Re: classpath of a filter

2004-11-26 Thread Tim Funk
You'd have to let your web app also be able to use the server classloader. You can do this by setting server="true" in the declaration. That being said - whatever your trying to do is probably a very bad idea. -Tim Brij Naald wrote: Hi, i'm creating a filter which needs to know if the request is

Re: Class Loader Crazy!!!

2004-11-24 Thread Tim Funk
jasper-compile.jar is not meant to be copied. jasper-runtime.jar is for use when you precompile your jsp's so they may be used in any container (including a newer tomcat version) If you precompile your jsp's against tomcat 4 - they will run fine in tomcat 5 if you copy jasper-runtime.jar into WE

Re: How to disable directory listing

2004-11-24 Thread Tim Funk
FAQ! http://jakarta.apache.org/tomcat/faq/misc.html#listing -Tim Lee Chin Khiong wrote: How to disable directory listing under Tomcat 5 ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

Re: New session created from same client/different host

2004-11-24 Thread Tim Funk
Not really. -Tim Mark O'Driscoll wrote: If my client (IE6) connects to a single tomcat(5.0.28 Windows2k) using different hostnames (e.g. http://localhost:8080/myapp/test.jsp AND http://127.0.0.1:8080/myapp/test.jsp ) a new session is created for each alias. Is there any way to stop these new sessio

Re: Error in start.log...

2004-11-24 Thread Tim Funk
Your user id doens't have write permission to /var/run -Tim Quinton Delpeche wrote: Hello, I get this error in my start.log file /usr/share/tomcat5/bin/catalina.sh: line 281: /var/run/tomcat5.pid: Permission denied Now I know what this means, but I want to know if anybody else gets this error on

Re: Protecting my web server

2004-11-24 Thread Tim Funk
If a limited number of people need to see your machine and your know their ip addresses or domain names, you can use the RemoteAddresssValve. -Tim Richard wrote: Hello Guys, Please advise. For demo purposes I need to expose my machine to the web. I got a public IP and have hosted my dev version

Re: Printing to log files..

2004-11-24 Thread Tim Funk
Look at log4j. Then your log4j config can log those entries anywhere you want. -Tim Satish Plakote wrote: Hello Deepak, i have certain process that are started by tomcat..And the only way for me to know that the process is going on is to put system.out.print(),but then this also prints on my log f

Re: Data sorting problem Tomcat<->Oracle

2004-11-24 Thread Tim Funk
ly be more helpful for the appropriate connection string. (Or setting) -Tim Harald Henkel wrote: Tim Funk wrote: Tomcat knows nothing about NLS_SORT. Odds are NLS_SORT is probably not set when running on XP. ??? Oracle usually sets values in the registry, and by default only NLS_LANG, from which the ot

Re: Scheduling and queue management under Coyote

2004-11-23 Thread Tim Funk
Use a Servlet Filter. The filter will keep track of the weight of each request. If there are too many requests of one kind - it will not perform the next itme in the chain- it can just throw an error. And its portable so you should be able to use that logic now. -Tim Simian Vector wrote: Hiyo.

Re: Tomcat, Apache connected in interesting way

2004-11-23 Thread Tim Funk
Nope. That is my prefered way to go. Let apache do what it does best. Let tomcat do what it does best. You'll notice that it'll also take longer before you need to add more tomcats in your cluster by doing this. What you need to be wary of are any security issues where some static assets need t

Re: Filter Problem

2004-11-23 Thread Tim Funk
You probably want to ignore context path. Its servletPath you really care about. -Tim Jack Lauman wrote: Can you append the two together to get the desired result? Jack Tim Funk wrote: getContextPath is the path name of the webapp. For example, if my webapp is registered at /more. Then my

Re: Filter Problem

2004-11-23 Thread Tim Funk
getContextPath is the path name of the webapp. For example, if my webapp is registered at /more. Then my contextPath is /more. If I request /more/cowbell.jsp. The contextPath is /more and the servletPath is /cowbell.jsp. -Tim Jack Lauman wrote: I have an access control filter that is supposed t

Re: Data sorting problem Tomcat<->Oracle

2004-11-23 Thread Tim Funk
Tomcat knows nothing about NLS_SORT. Odds are NLS_SORT is probably not set when running on XP. -Tim Harald Henkel wrote: Hello all. I have a strange problem with data sorting using an Oracle 8.1.7 database. I set the database to use binary sorting (NLS_SORT=BINARY), independent from GERMAN language

Re: Changing the default session key

2004-11-23 Thread Tim Funk
No. You can supply a patch - but no one will commit it. If it is committed, the other committers will -1 it. -Tim Lasse Koskela wrote: Any plans on externalizing the session key into an optional configuration element in server.xml? Please forgive me if I appear overly persistent but I honestly ha

Re: Changing the default session key

2004-11-23 Thread Tim Funk
Yes this is the case. You'd need to change the source and recompile. -Tim Lasse Koskela wrote: Hello, I recently encountered a requirement to use a session key other than JSESSIONID for the cookie of a web application deployed on Tomcat 4 (I'm not yet sure about the exact version). Now, I found a p

Re: logging compression stats

2004-11-22 Thread Tim Funk
There is no way to log that information right now. -Tim Ben Simon wrote: Howdy, I've enabled compression on my server [1]: , | |maxThreads="150" minSpareThreads="25" maxSpareThreads="75" |enableLookups="false" redirectPort="8453" acceptCount="100" |

[OT] Asynchronous Event processing API

2004-11-22 Thread Tim Funk
I am hoping other people have this problem ... I want to utilize an event processing system for when certain "things" happen on a website I maintain. For example, if someone wishes to contact my client, the web site writes to a database to record the entry, then emails customer service for noti

Re: Prevent session creation by DefaultServlet

2004-11-21 Thread Tim Funk
The DefaultServlet does not create sessions. Make sure you don't have a filter creating sessions. -Tim John Sidney-Woollett wrote: Is there any way on tomcat 5.0.x to prevent tomcat/defaultServlet creating a session when serving static image files (*.jpg, *.gif, *.png)? This is only an issue if

Re: HTTP persistence with Tomcat 4.1.29

2004-11-18 Thread Tim Funk
> verified that the client is sending "Keep-Alive". Is there any way to log > the response header "Connection" to see whether the server is not sending > "Close" in the response? I can't find a way to log response headers in Not really. (With the existing code base) Chunked encoding is needed for k

Re: Bad Expires Code?

2004-11-17 Thread Tim Funk
On a quick search, my guess is mod_expires is not configured correctly. -Tim Squashua wrote: I tried looking through the archive using the search provided by the mailing list archives, but I couldn’t find anythign relevant, and googling didn't get me anywhere (my google-fu is not strong), so I am

Re: Tomcat startup time delay in Windows 95/98

2004-11-17 Thread Tim Funk
Just created, details are sparse .. http://wiki.apache.org/jakarta-tomcat/HowTo/FasterStartUp -Tim Pragyan Padmini Misra wrote: HI, I had posted this earlier and again am resending as am still not getting any solution. Can any one help me out on this. The application which we have developed has a

Re: 301 Redirect Question

2004-11-17 Thread Tim Funk
You need to code them yourself in your servlet/jsp. response.setStatus(HttpServletResponse.SC_MOVED_PERMANENTLY); response.addHeader("Location", "/more/cowbell.jsp"); -Tim Lyndon Smith wrote: Hi Allistair I have a question for the Tomcat User Group. I hope you don't mind me asking you because the a

Re: Tomcat 5.X always creates session for every request?

2004-11-17 Thread Tim Funk
By default JSP's need to be told to *not* ask for a session via <[EMAIL PROTECTED] session='false'%> Otherwise - it sounds like a cookie setting issue that the client isn't remembering the sessionid. -Tim LAM Kwun Wa Joseph wrote: I have implemented a simple HttpSessionListener dumping every new

Re: j_security_check/ Realm question

2004-11-17 Thread Tim Funk
See section SRV.12.3 Programmatic Security of the Servlet spec for the role link question. As for the welcome page - the spec wasn't meant to handle cases like this. The container protects resources. Once you try to access a protected resource - you mustr authenticate. Then you are passed to th

Re: Tomcat and apache in Oracle9.2.0.1

2004-11-16 Thread Tim Funk
How about http://www.oracle.com/support/index.html ? -Tim Daxin Zuo wrote: After install Oracle9.2.0.1, Apache and Tomcat are installed. What are the versions of the TOMCAT and the apache in this version of Oracle? Do you know the location of the document where oracle describe its http server? ---

Re: Configure Tomcat's Session Cookie Domain?

2004-11-16 Thread Tim Funk
Nope. Can't do it. But if you really need it to be more domain generic - there is nothing stopping you from expiring the JSESSIONID cookie and setting a newer one at a more generic level. (But this will probably cause future issues) -Tim Joe Reger, Jr. wrote: Hi. Is there any way to specify t

Re: Understanding origin of "Unexpected exception ... outside the VM"

2004-11-16 Thread Tim Funk
JVM crash means native code doing bad things and since .. Current Java thread: at kyudo.NativeCall.Call_C_tpcall(Native Method) at kyudo.NativeCall.tp_call(NativeCall.java:58) That looks like a good candidate. -Tim Chris Kaido wrote: Hi, I'm running a JSP application on Apache/Tomc

Re: Content-disposition for file downlaod with Mozilla/Firefox

2004-11-15 Thread Tim Funk
Its not a bug. https://bugzilla.mozilla.org/show_bug.cgi?id=221028 -Tim David Wall wrote: The following are headers we send out for a given file that is being downloaded: Content-Length: 28160 content-disposition: attachment;filename=Some Agreement 2004-11-15.doc Content-Type: application/octet-str

Re: How do you log with verbosity?

2004-11-10 Thread Tim Funk
You don't. (or can't) The servlet spec stinks with respect to logging. Personally - I avoid using the log mehtods provided by the servlet API and use commons-logging. Then the underlying system can be tuning to the appropriate level of verbosenes. -Tim Cervenka, Tom wrote: The component has a

Re: Counting Page Hits

2004-11-10 Thread Tim Funk
This is an apples to orangles comparison. commons-logging and log4j are for logging devloper errors and for debugging statements. Its purpose is for logging errors, stack traces, etc instead of using System.out.println() Access logs are pages or any other HTTP based request. There are free prod

Re: Preventing users getting accessing to directory contents in Tomcat

2004-11-10 Thread Tim Funk
or all non JSTLers I added this to my page: <%if (request.getMethod().equals("GET")) { response.sendError(HttpServletResponse.SC_NOT_FOUND); } %> Tim Funk wrote: The easy way is to make start.jsp a GET and all the other pages POST. When pages are bookmarked - they are asked for

Re: Preventing users getting accessing to directory contents in Tomcat

2004-11-10 Thread Tim Funk
The easy way is to make start.jsp a GET and all the other pages POST. When pages are bookmarked - they are asked for via GET requests. Code you JSP to look for the request method. If the method is NOT POST, then redirect them to some error page. (Or the start page) For example, in JSTL (but not

Re: Preventing users getting accessing to directory contents in Tomcat

2004-11-10 Thread Tim Funk
You can't prevent images from being taken. As for JSP's. Move them to your WEB-INF directory. Then use a servlet to validate the incoming parameters and then forward to the JSP. -Tim Paul Taylor wrote: Thanks works a treat Is there a similar way to prevent the user typing in the url of a partciu

Re: request.setCharacterEncoding not working

2004-11-10 Thread Tim Funk
See URIEncoding http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html -Tim Nick Mitchell wrote: Hi all I have a web app that relies on using request parameters encoded in UTF-8 and in my JSPs I use request.setCharacterEncoding("UTF-8") before getting the parameters. This works perfectt

Re: Counting Page Hits

2004-11-10 Thread Tim Funk
The AccessLogValve allows for conditional logging. So you'll need to add code (Filter or modify servlets) to add/not add an entry to the HttpServletRequest so the Valve can decide whether to log the entry. Or much easier is an COTS access log parser. -Tim Justin Jaynes wrote: What is the easies

Re: Tomcat bug?

2004-11-03 Thread Tim Funk
Ahh .. I see now. I filed a bug -Tim Behrang Saeedzadeh wrote: Hi Tim Thanks for the reply. I just downloaded Tomcat 5.0.28 and tested my sample page with that too and I'm still getting the same exception. Be sure that you don't insert a newline after the " ---

Re: Tomcat bug?

2004-11-02 Thread Tim Funk
Works for me in 5.0.28 -Tim Behrang Saeedzadeh wrote: Hi It looks like Tomcat cannot generate Servlet code for JSP files that have incorrect HTMLish syntax. In the simple JSP page below I have written the end tag incorrectly and have missed to put the end > character and then Tomcat complains that

Re: index.jsp doesn't change

2004-11-02 Thread Tim Funk
Check your system clock. That might be your problem. -Tim --- US citizens: Remember to vote today. Ross Rankin wrote: That worked... is there a reason it wasn't recompling on its own? Date maybe? Ross Andoni wrote: Hello, You might try deleting the contents of the $CATALINA_HOME/work directory.

Re: Return Custom Error Page from Realm

2004-10-30 Thread Tim Funk
Not really. The archives have a similar discussion. -Tim Anderson, M. Paul wrote: I've created a derived realm that performs a custom authentication scheme. I'd like to be return a custom error page when the user has attempted to login to the system > 3 times and failed. The user will be locked o

Re: how to deny .jsp execution within an upload directory

2004-10-29 Thread Tim Funk
The easiest way to do this would be to create a filter on that directory. The filter would either deny access - of it would get the default servlet via the ServletContext.getNamedDispatcher() and then perform a forwards(). -Tim Chris Lawder wrote: Hello, Can somebody please point me to documenta

Re: Resticting Access via a Request Filter

2004-10-29 Thread Tim Funk
Inside the declaration you may also declare Valves. -Tim Acácio Furtado Costa wrote: HI all, I have only one TomCat Application Server and I need to offer some Applications to the Internet and deny to others. I look for some Valves and found a "RemoteAddrValve", but looking in the

Re: User access to directorys and files

2004-10-26 Thread Tim Funk
Then you'll need to place all your images in a special directory that doesn't serve images directly. Then you'll need a servlet to determine if the image may be served - then serve the image. Or the *much* easier solution is to write a Servlet filter to determine if the image may be shown. -Ti

Re: Configuration Management, JSP Recompiles, War Files

2004-10-25 Thread Tim Funk
I try to precompile my jsp's, copy all the precompiled JSP's into a JAR file, then delete all the JSP's. Less stuff to deploy. No surprises with respect to caching, or missing compiles, or broken JSP's making it to production. -Tim Steven J. Owens wrote: Hi folks, I'm interested in hearing

Re: adding HTTP headers for all responses in web application

2004-10-22 Thread Tim Funk
jsp in the next release of servlet, i.e. servlet xp? -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: October 22, 2004 10:32 AM To: Tomcat Users List Subject: Re: adding HTTP headers for all responses in web application Actually the pattern is *.jsp - not /*.jsp -Tim Ph

Re: adding HTTP headers for all responses in web application

2004-10-22 Thread Tim Funk
Actually the pattern is *.jsp - not /*.jsp -Tim Phillip Qin wrote: If your pattern is /*.jsp, then your filter applies to all jsps. -Original Message- From: Mark [mailto:[EMAIL PROTECTED] Sent: October 22, 2004 1:19 AM To: Tomcat Users List Subject: RE: adding HTTP headers for all response

Re: Upgrading for the sake of it?

2004-10-22 Thread Tim Funk
Summary: Keeping upgrading if your webapp code keeps changing. ** If the webapps running on the tomcat instance will not change or only change for critical fixes - then don't upgrade tomcat. Newer versions may break old applications. (like any software upgrade) ** If the webapps are undergoing a

Re: Testing/Development environment setups..

2004-10-21 Thread Tim Funk
There should be no reason you are not able to do all your development on a windows laptop. That being said ... here's how we do things ... When possible all code is written and compiled on our Windows laptops. If anyone wants to look at the latest revision of code - they need to run it off thei

Re: Threads in application

2004-10-21 Thread Tim Funk
contains two methods, wich writte a message, when is application started or stopped. But why have registered thread? Please help me. Thank, renhu = Original message = Od (From): "Tim Funk" <[EMAIL PROTECTED]> Komu (To): "Tomcat Users List" <

Re: Threads in application

2004-10-21 Thread Tim Funk
You need to regeister that thread "somewhere" so it can be stopped on webapp shutdown. See ServletContextListener for hooking into webapp startup and shutdown. -Tim René Hužva wrote: Hi, I create a one thread in a application, which runs in Tomcat (application doesn't run as servlet). When I rel

Re: jsp java compile error on v5

2004-10-21 Thread Tim Funk
Tomcat's error page to the web shows less detail than the logs. Look at the logs. -Tim Vic Cekvenich wrote: Thanks Tim, but this is 5.029. You can see it here: http://boardvu.com/roller Any additional hints? .V - To unsubscribe,

Re: jsp java compile error on v5

2004-10-21 Thread Tim Funk
Check out the archives for tomcat-dev and bugzilla. There have been compile gotchas with respect to 5.5 and JDK5.0 Otherwise - the logs should have (localhost_log_XXX.txt) - should have more detail. -Tim Vic Cekvenich wrote: I hava JAVA_HOME, tools.jar in common and permisions. I am running on

Re: BadInputFilterValve to stop XSS

2004-10-20 Thread Tim Funk
It looks like its updating a map while iterating through the keys to the map. -Tim [EMAIL PROTECTED] wrote: Has anyone successfully installed com.oreilly.tomcat.valves.BadInputFilterValve to help stop XSS attacks? from: http://safari.oreilly.com/?x=1&mode=section&sortKey=title&sortOrder=asc&view=

Re: Mysterious session behavior across browsers

2004-10-20 Thread Tim Funk
If its the same PC under the same id during the same session with the same browser- yeah thats normal. Now if you saw this behavior when you were using IE. Then opened Firefox- and saw the IE session - then there might be a problem. -Tim Michael McGrady wrote: While testing my application, when

Re: How to get a notfication if the user closes its browser?

2004-10-20 Thread Tim Funk
An IOException should be thrown by write sometime after the socket is disconnected. (It may vary due to buffering) Tomcat doesn't log that IOException since it is so common but it can be caught if your decide to do so. -Tim Stephan Coboos wrote: Hi, I need to send a very very big set of data wi

Re: Including Zip functionality in a filter...

2004-10-20 Thread Tim Funk
If your traffic is going across the internet (or a corporate WAN) - then you probably want to zip your output. If your traffic is all LAN based - compression will probably not make much of a difference. Don't worry about writing a compression filter - tomcat comes with one on its HTTP connecto

Re: Unterminated <@ page tag Issue

2004-10-15 Thread Tim Funk
<%@ page import="java.util.ArrayList", "com.gcc.creditclaim.CreditClaim"; %> should be <%@ page import="java.util.ArrayList" import="com.gcc.creditclaim.CreditClaim" %> -Tim Xeth Waxman wrote: Greetings all. I have a jsp running on Tomcat 5.0.12. When this jsp is called, I get the follo

Re: How to do some work when a webapp is first loaded

2004-10-15 Thread Tim Funk
ServletContextListener http://jakarta.apache.org/tomcat/tomcat-5.0-doc/servletapi/javax/servlet/ServletContextListener.html -Tim Philipp Taprogge wrote: Hi! Perhaps one of the gurus could space a few minutes... I have worked with tomcat quite a bit, but never had to do anythings like this before:

Re: Jasper compilation of included files

2004-10-15 Thread Tim Funk
File A should *not* be called fileA.jsp. It should be called fileA.jspf An added advanatage is you know what what all your incoded fragment files are by looking at the file name. -Tim Dave Minter wrote: I'm trying to get Jasper to pre-compile my JSP pages. I've got an Ant task (swiped from the m

Re: Servlet caching?

2004-10-14 Thread Tim Funk
It sounds like one of the classes the Servlet is depending on is caching the result. -Tim Carlos wrote: Do servlets in Tomcat (1.4) catch results of programs that they run? I have a java servlet that lists the print services of printers installed in the server (Linux Red Hat). I run the servlet

Re: Blocking access to static content

2004-10-11 Thread Tim Funk
The best way is to place all protected content under WEB-INF. -Tim Robert Harper wrote: I have turned the listings off in the default servlet. Now how do I keep users from directly accessing anything outside of the defined servlets and JSP pages even if the user knows the path to the file?

Re: Rename jsessionid

2004-10-09 Thread Tim Funk
This is exactly what you'll need to do. There is no feature (or never will be a feature) to allow the renameing of jsessionid. -Tim Michael Echerer wrote: Built Tomcat from source and change the few java class files where jsessionid is in. What we once did: Patch the binary! :-) you can grep fo

[OT] Re: AW: DefaultServlet

2004-10-08 Thread Tim Funk
removing dead code patches will probably be ignored in bugzilla. Typically because we're too busy with such a patch. Your alternative code below is probably faster but drastically changes how the code works. The original snippet allows for exceptions to be caught and continue looping. Your alte

Re: AW: DefaultServlet

2004-10-08 Thread Tim Funk
It can go even though it does no harm. (Even from a performance point of view) -Tim Steffen Heil wrote: Hi I see the code now. Its dead code. At one time - when tomcat was serving resources and the client pressed the stop button - a broken pipe exception would be logged. But since then in other co

Re: File retrieving

2004-10-08 Thread Tim Funk
FAQ http://jakarta.apache.org/tomcat/faq/misc.html#getResourceAsStream -Tim Giuseppe Briotti wrote: Hi all! I need to retrieve a file from inside a servlet. If I try: Url myURL = servletcontext.getResource("/WEB-INF/myFile.xml"); File myFile = myURL.getFile(); If I try this, I obtain a different be

Re: DefaultServlet

2004-10-08 Thread Tim Funk
question Steffen, I think that either the "else" is missing, or the whole "try/catch" and "if" clauses are redundant. -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Friday 08 October 2004 11:45 To: Tomcat Users List Subject: Re: DefaultServle

Re: DefaultServlet

2004-10-08 Thread Tim Funk
The else is implicit. The next line throws the IOException so something else down the chain can catch it. -Tim Steffen Heil wrote: Hi I just read the DefaultServlet code and found in doGet(...) the following: try { serveResource(request, response, true); } catch( IOE

<    1   2   3   4   5   6   7   8   9   10   >