Re: How to access the request URL in a custom valve implementation?

2024-01-26 Thread Tim Funk
It depends on what you are trying to accomplish. ExtendedAccessLogValve is a little more flexible where you can write out arbitrary request attributes but still format the request like the standard access log. So you could have a filter set the value and not need to write your own access logger. -

Re: How to access the request URL in a custom valve implementation?

2024-01-26 Thread Tim Funk
My bad - AccessLogValve also supports that feature too - *%{xxx}r* write value of ServletRequest attribute with name xxx (escaped if required, value ?? if request is null) https://tomcat.apache.org/tomcat-9.0-doc/config/valve.html#Access_Logging -Tim On Fri, Jan 26, 2024 at 7:23 AM Tim

Re: How to access the request URL in a custom valve implementation?

2024-01-26 Thread Tim Funk
See AbstractAccessLogValve (which AccessLogValve overrides) Then you could override AbstractAccessLogValve.createAccessLogElement() which has case 'q': return new QueryElement(); To possible do doing something like case 'q': return new ObfuscatedQueryElemen

Re: Rotating/archiving catalina.out

2024-01-30 Thread Tim Funk
One option (hacky workaround) is to try using "swallowOutput" which may mitigate the worst of your issue. (Beyond a rewrite with a logging framework) https://tomcat.apache.org/tomcat-9.0-doc/config/context.html -Tim On Mon, Jan 29, 2024 at 3:28 PM Aryeh Friedman wrote: > We need to shrink the

Re: Operation not permitted errors [EXTERNAL]

2024-02-07 Thread Tim Funk
Crazy wild guess looking at the stack trace ... > sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) > at sun.nio.fs.UnixCopyFile.copyFile(UnixCopyFile.java:283) at A snoop of sun.nio.fs.UnixCopyFile shows its calling the system call utimes() or futimes() (probably utimes) - An

Re: Tomcat Internal Architect for JSP compilation?

2024-03-22 Thread Tim Funk
One possible workaround is to precompile the JSP's at build time. https://tomcat.apache.org/tomcat-9.0-doc/jasper-howto.html#Web_Application_Compilation -Tim On Fri, Mar 22, 2024 at 1:37 AM Subodh Joshi wrote: > > Why i am doing this exercise? > In our some of the deployed linux environment ma

Re: Possible penetration attempt or DOS attack: any suggestions on what can be done?

2024-06-24 Thread Tim Funk
As long as the webapp is reporting 404's - you're in good shape and probably not exposing hints of new vectors for attack. (Sometimes 500's errors can provide hints for tweaking parameters) But this is really a case study for why people may want to run a web application firewall. (I do not have a

Re: Tomcat 9.0.93 Patching | Error- A fatal error has been detected by the Java Runtime Environment | Problematic frame:sigar-amd64-winnt.dll+0x14ed4

2024-09-03 Thread Tim Funk
"sigar-amd64-winnt.dll" is triggering the error. The details will be in the core dump. The vendor which supports "sigar-amd64-winnt.dll" will need to fix it. Based on the release revisions, I suspect the DLL is using a reference to a request or response object *after* the request was already compl

Re: Max parameters limit

2024-09-11 Thread Tim Funk
I'd guess the "easiest" way is to use the builtin Tomcat functionality for max for the smaller number. Then for the bigger number ... Use a servlet filter for the "special" urls that slurps the "input stream" and parses the parameters in application space. And use RequestWrapper to intercept getP

Re: CVE-2021-44228 Log4j 2 Vulnerability -- How does this affect Tomcat?

2021-12-14 Thread Tim Funk
LOG4J2 allows for multiple keyword types of keyword expansions in the logs. Keyword expansion is a "great way" to log items possibly only known at run time. And with trace, debug level logging - Comparing those expanded values to logged values makes debugging "easier". (The closest you'll get to br

Re: Tomcat 7 - Log4j Vulnerability Guide Request

2022-01-28 Thread Tim Funk
Out of the box, no version of Apache Tomcat uses any log4j version. If log4j is used, it is by a specific application (not provided by the ASF) deployed to Tomcat. (Or an admin changed the default install to add it) -Tim On Fri, Jan 28, 2022 at 10:36 AM Samuel Anderson-Burrell | Cloud21 wrote:

Re: Conditional access logs

2022-04-22 Thread Tim Funk
I don't think there is a technical reason why it couldn't be added. I think the hard part is getting the config wording/naming correct Alternatively, I think an out of the box workaround could also be Tomcat's RewriteValve where the condition matches on header and sets the "environment variable" h

Re: hiding tomcat version from error pages

2020-09-17 Thread Tim Funk
It should a tweak to the ErrorReportValve as documented here: (inside of server.xml) https://tomcat.apache.org/tomcat-9.0-doc/config/valve.html#Error_Report_Valve You'll want to set showServerInfo and showReport to false -Tim On Thu, Sep 17, 2020 at 8:20 AM Rathore, Rajendra wrote: > Hi All,

Re: hiding tomcat version from error pages

2020-09-17 Thread Tim Funk
It should be ... http://tomcat.apache.org/tomcat-8.5-doc/config/valve.html#Error_Report_Valve On Thu, Sep 17, 2020 at 10:40 AM Rathore, Rajendra wrote: > > Hi Tim, > > I am using tomcat 8.5.x, will that available over there? > -

Re: Append content to OutputStream after RequestDispatcher#forward

2020-09-29 Thread Tim Funk
Advice: Redesign since this will be a support nightmare for you in the future since the design is not in the spirit of how the spec works. Now onto the real solution (over simplified .. but google can expand on each sub-idea) Create a ServletResponseWrapper and pass that to the forward() method w

Re: Append content to OutputStream after RequestDispatcher#forward

2020-09-29 Thread Tim Funk
Forward needed to be used due to this in the original email > I also tried using RequestDispatcher#include but I need to keep response > headers, added during the forward And include() is not allowed to set headers. -Tim On Tue, Sep 29, 2020 at 2:27 PM Christopher Schultz wrote: > > If you wan

Re: Strange error with JSP

2021-06-02 Thread Tim Funk
My guess? ClassNotFoundException is rooted in some other exception. Such as a different error is thrown during class initiation. Such as a static { doStuff();} block where doStuff does bad stuff. Hopefully there is more stack trace out there. If the JSP has static initializers - wrap them in try

Re: Ip on the diferent apps on Tomcat

2006-06-15 Thread Tim Funk
tomcat.apache.org/faq/security.html#restrict -Tim Julio Rios wrote: Hello I have one machine with this release: Información de Servidor Versión de Tomcat: Apache Tomcat/5.5.17 Versión JVM: 1.4.2_01-b06 Vendedor JVM: Sun Microsystems Inc. Nombre de SO: Windows XP Versión de SO: 5.1 Arquitectura

Re: Import file > 3gb possible?

2006-06-15 Thread Tim Funk
It should be. But you cannot use request.getContentLength() to get the length of the posted data. You will need to get the Content-Length header and parse it to a long. Things like this were done in tomcat5 for serving files larger than 2GB. I am unsure if there is anything in the way in tomcat

Re: flushing system.out

2006-06-16 Thread Tim Funk
I doubt you want to print to system.out in a servlet (or jsp). Odds are you want flushBuffer http://tomcat.apache.org/tomcat-5.0-doc/servletapi/javax/servlet/ServletResponseWrapper.html#flushBuffer() or flush http://tomcat.apache.org/tomcat-5.0-doc/jspapi/javax/servlet/jsp/JspWriter.html#flush()

Re: mod_proxy a risk?

2006-06-16 Thread Tim Funk
No. It looks like a config problem. -Tim Christoph Kukulies wrote: I wonder whether mod_proxy can be a security risk in Apache2.0.54, when being enabled in conjunction with tomcat (5.5). A machine which is open to the world (on port 80 only) is blacklisted at cbl.abuseat.org and I wonder how

Re: Critical bug in RequestDispatcher.include(..) in Tomcat 5.5.16 ?

2006-07-03 Thread Tim Funk
You need to be using Under the covers getOutputStream during the include. But a getWriter was already called. Once you call getWriter - you can't call getOutputStream, or you get the ISE. jsp:include gets aroung this by wrapping the response and wrapping getOutputStream to avoid this issue.

Re: tomcat version output in error messages

2006-07-06 Thread Tim Funk
You can use your own ErrorReportValve. Look for errorReportValveClass in http://tomcat.apache.org/tomcat-5.0-doc/config/host.html -Tim Mike Schmelzer wrote: Hi *! I'm using Apache 2 and Tomcat 5 to host several websites. For security reasons I don't want that Tomcat is displaying the Tomcat

Re: How to set value to environment variable in xml file in the Tomcat

2006-07-18 Thread Tim Funk
Use system properties. Hi, I need to set one of the parameter in the xml configuration file to the environment variable + some text. eg. where $WEB_DIR is an environment variable. How can I acheive this? Thanks, Sangita --

Re: Loading TLD from JAR file?

2006-07-21 Thread Tim Funk
If the tld is in the META-INF directory, then you do not need to map it web.xml - it will be loaded by tomcat for you. Then in your JSP - use the mapping in the tld identified by , for example: http://java.sun.com/jsp/jstl/core -Tim Mike Wannamaker wrote: Is it possible to have your tld files

Re: JSP 2.0 tag files slowing development/deployment

2006-07-26 Thread Tim Funk
Yes tomcat 5.5.17 would speed things up since the Eclipse compiler is used and is faster. You should ALWAYS precompile your webapp when placing it into production. It eliminates any compile penalties as well as validates that everything DOES compile before your deploy. Uploading anything to the

Re: JSP 2.0 tag files slowing development/deployment

2006-07-26 Thread Tim Funk
erated\classes\org folder in work\Catalina\localhost\MYAPP\org does the job, but it's been said that messing around with "work" is not a good idea. Could you please describe me (or point me to a FAQ/tutorial) on how to deploy my precompiled JSPs/tags? thanks, John Tim Funk wro

Re: Future Releases

2006-08-15 Thread Tim Funk
http://tomcat.apache.org/faq/version.html#when -Tim [EMAIL PROTECTED] wrote: What are the future releases of Tomcat and when are they scheduled? Could anyone please point me to a link which has this kind of information. Thanks. ---

Re: Future Releases

2006-08-15 Thread Tim Funk
dates to the JSP and Servlet spec) this past spring - I have not seen any mention of a future version of Tomcat that might support them. Not asking for a date/when, just is there any work being accomplished to this end. Or maybe it will just be slip-streamed into Tomcat 5.5.x? -Original Message

Re: Logging of request parameters -- how do I turn off

2006-08-16 Thread Tim Funk
You need to use a custom pattern with the AccessLogValve pattern='%a %U' http://tomcat.apache.org/tomcat-5.0-doc/catalina/docs/api/org/apache/catalina/valves/AccessLogValve.html It would be much better to use POST requests when items such as passwords are in the URL. This way they will also no

Re: Next version of Tomcat (Tomcat 6.0 ?)

2006-08-23 Thread Tim Funk
If my wording (an understanding) is correct ... Tomcat was never the reference implementation. The reference implementation provided by Sun was based on Tomcat. AFAICT - glassfish is now considered the reference implementation for any J2EE spec. -Tim Leon Rosenberg wrote: On 8/23/06, David

Re: Avoid chunk response

2006-08-24 Thread Tim Funk
IIRC - There was a discussion on this a while bakc (in tomcat user, dev, or bugzilla). But I believe the resolution was - there is no configurable way to do so. If you want no chunking at all - then at a minimum - you need to set the content length explicitly. (response.setContentLength()) - b

Re: HowTo question: Setting java system properties in web.xml?

2006-09-12 Thread Tim Funk
There is no way to do this in tomcat. The alternative is the link you provided http://wiki.apache.org/tomcat/HowTo#head-45c3314139cb900ddd43dde2ff671532e6e844bc OR Use JNDI to do the lookup. You'll do this via *|* in web.xml Then this environment entry can be set in web.xml or overridden in to

Re: Log analysis with Apache, mod_jk and 2 Tomcat instances

2006-09-12 Thread Tim Funk
If apache is serving all the traffic - then tomcat doesn't need to record any access logs. (Unless you need monitor how much load went to each tomcat) Apache will have every request. If you combine the logs - you would double count some of your requests. -Tim Frank Niedermann wrote: Hello,

Re: How to redirect to a jsp

2006-09-12 Thread Tim Funk
If I am reading this correctly, an "easier" solution would be to create an index.jsp at the root level that forwards to "/jsp/index.jsp" -Tim Romain Quilici wrote: Hi all, this question seems simple, but I did not figure out how to answer it. In my web.xml I have defined a default servlet. So

Re: Looking for someone to review a Tomcat setup.

2006-09-22 Thread Tim Funk
My first guess would be your database server is taken down for cold backups once a week and the JDBC driver is barfing on that. [Assuming its pooling driver of some kind] Good luck -Tim Charles P. Killmer wrote: Is anyone in the Central Minnesota area interested in reviewing a Tomcat 5.5 set

Re: the future of Tomcat... (JEE 5 and Tomcat 6)

2006-10-03 Thread Tim Funk
Tomcat 6.0 is getting polish with respect to the docs at the moment and there are other technical discussions as can be found on the dev list. Tomcat will support JSP2.1. Personally - I'm not on top of the JSF spec but if all it requires is a JSP2.1 container - then you should be good to go.

Re: CGI vs SMTP vs Tomcat

2006-10-05 Thread Tim Funk
A CGI run from tomcat is just like any other exe. It runs outside the JVM sandbox so it may do as much evil (or good) as it wants. If Tomcat is being run as a service. It could be your PATH and other environment variables may not be configured correctly. (Or at all) -Tim HALSTEAD SGT WARREN

Re: AXIS: tomcat always do http compression without watch min size

2006-10-05 Thread Tim Funk
compressionMinSize only works with fixed file sizes. If axis is NOT setting the ContentLength before serving back results - then compressionMinSize can't be checked to see if compression can be done. And then compression will be done based on the client input headers. -Tim wakeup wrote: Hi,

Re: specify filter in server.xml

2006-10-05 Thread Tim Funk
You don't, you were right when you put it in $CATALINA_HOME/conf/web.xml -Tim Magnus Bergman wrote: Hi, I would like to add a filter to server.xml, to have a "server-wide-filter", but it doesn't seem to be registered. It works fine if I put it in any-webapp/WEB-INF/web.xml or in $CATALINA_HO

Re: AXIS: tomcat always do http compression without watch min size

2006-10-06 Thread Tim Funk
connector. -Tim wakeup wrote: Thanks, I think you are right. Axis don't set content-leght because it is sending response chunked. Where do I have to disable chunk in the axis server o in the client? Thankss Tim Funk wrote: compressionMinSize only works with fixed file sizes. If axis is

Re: Performance decreasing if access.log enabled

2006-10-09 Thread Tim Funk
Unless you are max'd on working threads - access logging should not be a performance hit. Access logging takes pace after the response is sent to the client. BUT if the access logs are big, AND you a re low on disk, AND/OR your disk is SLW then that could be a problem. The overhead of log

Re: Performance decreasing if access.log enabled

2006-10-09 Thread Tim Funk
y far from beeing full and it's a RAID1 with SCSI disks so they should have enough performance. I'm now totally unsure if I should enable access.log-files (to have statistics with AWstats) or disable them (to have more performance) ... Frank Frank Niedermann wrote: Tim, Tim Funk wr

Re: Performance decreasing if access.log enabled

2006-10-09 Thread Tim Funk
You can have conditional access logging. http://tomcat.apache.org/tomcat-5.0-doc/catalina/docs/api/org/apache/catalina/valves/AccessLogValve.html condition='foo' If set the Valve will look in the ServletRequest for an attribute called foo. If it exists then the request is logged. (Of course you

Re: getPageContext returns null

2005-10-26 Thread Tim Funk
Variables in pageContext scope are only available to the JSP. It looks like you should be setting variables in the request scope. -Tim Michael Neel wrote: Hi, Quick overview, I'm setting some variables in the session from my servlet to be used in my JSP/JSTL page. Everything is fine if a JS

Re: Trying to use a filter to redirect to a servlet

2005-10-27 Thread Tim Funk
You can't run a filter against j_security_check -Tim Klotz Jr, Dennis wrote: What I'm trying to do is once a user is authorized on my server, using FORM based authorization, I want a different servlet (other than what the user might have originally requested) to be called before any web page

Re: Trying to use a filter to redirect to a servlet

2005-10-27 Thread Tim Funk
ny other ideas I'd really appreciate it. Thanks for your time and help. -Dennis -----Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Thursday, October 27, 2005 11:48 AM To: Tomcat Users List Subject: Re: Trying to use a filter to redirect to a servlet You can't ru

Re: barring :8080 to the outside world

2005-10-28 Thread Tim Funk
To your Connector declaration - add: address='127.0.0.1' -Tim Christoph P. Kukulies wrote: I'm a bit concerned that I find the customers' site I'm currently working on being open with port 8080 to the outside world. What is the standard way to make tomcat safe in that it doesn't present the ja

Re: A Simple Advice

2005-11-02 Thread Tim Funk
The last way (the one without the web.xml) should work fine. -Tim Alvaro Seixas wrote: Hello List!! I need a simple advice from you guys. I'm running TC 4.1 on Win 2K. I need to share large amounts of static content (image files) between contexts. These images will be stored in 12 shared fol

Re: Backing up a web application?

2005-11-02 Thread Tim Funk
In that case - "an easy way" is to not use the webapps dir for autodeployment. Keep 2 copies of your webapp (old and new) somewhere on disk. Then change the context declaration file (the file with ) to point to the new directory. -Tim Larry Mulcahy wrote: My question is: Is there a straigh

Re: Modifying the Tomcat Cache?

2005-11-02 Thread Tim Funk
You need to create your own classloader and load your custom class into that classloader. Then when it changes - you disregard that classloader (and its class). Tomcat is not doing the caching - the jvm is. -Tim Michael Vorschütz wrote: Hello, My web application generates at runtime a java

Re: finalize question

2005-11-02 Thread Tim Funk
See ... http://opensource2.atlassian.com/confluence/spring/pages/viewpage.action?pageId=2669 (I really need to update the FAQ on this one) -Tim Andy Kriger wrote: I have a webapp that causes Tomcat to die with an OutOfMemoryError due to PermGen after about 10 reloads. I am trying to determine

Re: question about web-inf/lib

2005-11-03 Thread Tim Funk
You can place common library in common/lib. If that class needs to use reflection to instantiate any classes in your webapp - it may fail. (But since this looks to be a standalone utility - that doesn't seem to be the case) In the case of the reloads - a dll may only be registered once during t

Re: "Illegal to flush within a custom tag"

2005-11-03 Thread Tim Funk
It looks like your custom tag is creating its own body content. The body content is handed back to the tag so furthur transformations may be done on it. So the whole tag needs evaluated and buffered before it may be flushed. Your tag is returning BodyTag.EVAL_BODY_BUFFERED during doStartTag().

Re: Apache filters?

2005-11-03 Thread Tim Funk
Unless you use a 3rd party authorization package which has a tomcat and apache plugin - your out of luck -Tim ALEX HYDE wrote: Hi all, I am using Tomcat to serve up my image content. I was considering moving this static content to Apache itself but I'm stuck on how to do dynamic authorisatio

Re: Load class from different web app

2005-11-04 Thread Tim Funk
You are violating the servlet spec. Do not pass go, do not collect $200. Classes for a webapp need to be in WEB-INF/classes and WEB-INF/lib. Tomcat does allow for webapps to share classes via the $CATALINA_HOME/shared and $CATALINA_HOME/common directories but you'll need to see the classloader

Re: Load class from different web app

2005-11-04 Thread Tim Funk
fine as any classes / libraries in that dir are loaded by the JVM meaning they are always available - This is also where we put the JDBC driver jar. Mike. -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: 04 November 2005 11:32 To: Tomcat Users List Subject: Re: Load class

Re: request.getSession(false) incorrectly creates a session

2005-11-15 Thread Tim Funk
If you are using jsp - you need <[EMAIL PROTECTED] session='false'%> in your page otherwise - a session is created for your whether you use it or not. -Tim Andy wrote: Hi, When I deploy my web app and call request.getSession(false), according to the javadoc, if a session does not exist null i

Re: Asking Again: How to create multiple context's linked to the same webapp, without instantiating multiple webapp instances

2005-11-15 Thread Tim Funk
If the servlet is that simple. I would 1) rewrite it as a filter 2) Put it in the root webapp 3) Map the filter to all requests 4) Use a config file to handle all your mappings 5) make the filter smart enough to re-read the config file (servletContext.getResourceAsStream()) to detect changes so y

Re: Asking Again: How to create multiple context's linked to the same webapp, without instantiating multiple webapp instances

2005-11-15 Thread Tim Funk
other webapp? regards Leon On 11/15/05, Tim Funk <[EMAIL PROTECTED]> wrote: If the servlet is that simple. I would 1) rewrite it as a filter 2) Put it in the root webapp 3) Map the filter to all requests 4) Use a config file to handle all your mappings 5) make the filter smart enough to

Re: Tomcat overwrites error response body

2005-11-17 Thread Tim Funk
Don't use sendError() - use setStatus(). Also - se the status first as to ensure the response is not committed before you send th body of the page. Also - once the page is done - try and close the resonse to ensure any error handling by tomcat is not done. -Tim Anurag Chakravarti wrote: Hi,

Re: Newbie question - How to verify version of Tomcat?

2005-11-17 Thread Tim Funk
http://tomcat.apache.org/faq/misc.html#version -Tim Ritchie Gillam wrote: Should be an easy questions for the Tomcat users out there. I know I have Tomcat installed but I did the installation many moons ago. Is there a command that I can run from Windows that will tell me what version I am

Re: How to set restrictions on the retreival of files from some directories

2005-11-18 Thread Tim Funk
Something is fishy with your server (or configuration) I cannot reproduce that issue with 5.0.28 on windows. -Tim Brian Buchanan wrote: Upgrade. In a short test on two of my servers, 5.0.28 on windows has this WEB-INF. vulnerability, but 5.5.7 did not. -Original Message- From: "Alla

Re: JSP compilation

2005-11-21 Thread Tim Funk
TestMe.class is not the file created. Look in $TOMCAT_INSTALLATION/work/. It'll probably be called TestMe_jsp.class -Tim Milan Tomic wrote: I have created simple TestMe.jsp page and when I open it in Tomcat, I can see it OK. The problem is that I can't find, using WinXP WE search engine, T

Re: unix user auth within servlets/jsps?

2005-11-29 Thread Tim Funk
I think there is a JAAS plugin which allows unix password authentication so using JaasRealm will probably be the way to go. I think somewhere on sun.com there are some jsp / servlet mailing lists. -Tim Kristian Rink wrote: - From a Perl programmers point of view, determining which folders to

Re: Tomcat 5.0.27 >> java.net.SocketException: Software caused connection abort: recv failed

2005-11-29 Thread Tim Funk
Not a tomcat issue. Its a mysql driver issue. IIRC - there is an autoreconnect option for the mysql driver. -Tim Rajiv Singla wrote: Hi, I am working on a web application which uses Tomcat-5.0.27 as Application server and MySql 4.1 as DB server. The application uses Struts 1.1 and Hibernate

Re: Virtual folders in Tomcat

2005-11-29 Thread Tim Funk
Create a new Context declaration (in a new xml file under the webapps folder of your tomcat installation) that points you there. -Tim Roland Rabben wrote: Hi, I want to map a "virtual" folder to my Web application. How can I set up my system so I can have a "data" folder on a different disk t

Re: File Download not working for anchor tags

2005-11-29 Thread Tim Funk
Are you doing this? http://tomcat.apache.org/faq/misc.html#saveas -Tim Mike wrote: Hello, I've encountered a bug with the 4.1.31 version of Tomcat. Apparently, when I use an anchor tag for a file, and I click on the link, it does not show the file download message "Do you want to open or sav

Re: web.xml question

2005-11-29 Thread Tim Funk
Security constraints are only imposed on the incoming URL. Long story short - you'll need to place the entire webapp in SSL. There is no clean way to use declarative statements to force the login to be SSL and the rest of the webapp be nonssl. -Tim Klotz Jr, Dennis wrote: Hello all. I hope

Re: Sharing session across http and https connections

2005-11-29 Thread Tim Funk
While in https - you'd need to reset the cookie (JSESSIONID) and not have the secure flag set. -Tim Chris Birch wrote: Hi, I'm sure this has been solved and documented already but I can't find any information, if anyone can help me or point me in the right direction, I'd be very grateful.

Re: web.xml question

2005-11-29 Thread Tim Funk
but when I get ready to do the actual purchase and log in it is a secure site (https). Is there something that they are doing, possibly masquerading the url or something? Again not an expert, but something I have been interested in for some time myself. Dean 8-) -Original Message----- From

Re: Java client does not re-use TCP/IP connections.

2005-11-30 Thread Tim Funk
This has nothing to do with tomcat. Please use the appropriate list. -Tim Magyar, Bence wrote: Sorry, I'm quite new with all of this. I've created a java client to my tomcat web service using the Java2WSDL2 utility and WSDL2Java utility. Correct me if I'm wrong, I believe this is called t

Re: web.xml question

2005-11-30 Thread Tim Funk
option or should i rethink this? Tim Funk wrote: I would bet they are not using security constraints as defined in web.xml. I would bet they are using a 3rd party solution implemented as a Servlet Filter or something application server specific to handle this login issue. Notice they

Re: web app to show session state for all server sessions

2005-11-30 Thread Tim Funk
If I had to do it - I would use MBeans. See the manager application and JMXProxy servlet in the manager application for details on querying jmx. There might be a gotcha. You might run into occasional ClassNotFound exceptions or similar when trying to display the value of the attributes in sess

Re: preferred tomcat version

2005-11-30 Thread Tim Funk
5.5.12 Why? It gets the most developer attention if you find a bug. -Tim mukesh wrote: Hi friends, I am using Redhat Linux 7.0 and Apache web server (not tomcat). Which is the preferred version of tomcat I should use to add the JSP/Servlet to my apache we server

Re: Recursive Tagfile and JSP Precompilation

2005-12-01 Thread Tim Funk
IIRC - this is fixed in 5.5. I'm not sure if it was fixed with 5.5.12 - but 5.5.13 was just tagged and should be available soon. BUT it hasn't been voted how stable it is yet. (beta, alpha, stable) -Tim Peter L wrote: Hello, I'm trying to precompile JSP's for a JBoss(4.0.1) / Tomcat(5.0) serv

Re: confusion of tomcat downloading

2005-12-01 Thread Tim Funk
Tomcat behind Apache. A PHP parser in java would be a non-trivial exercise. -Tim Seak, Teng-Fong wrote: Caldarale, Charles R wrote: If JSP and PHP are to be suppoerted in a server, what would everybody suggest? Tomcat behind Apache? Or a PHP parser module (probably written in Java) ru

Re: jasper encryption and patents

2005-12-01 Thread Tim Funk
Jasper does not contain any encryption code which would violate any commercial export laws. There are no IP patent suits against tomcat at the moment. If this were to happen - we would have the assistance of the solicitors for the ASF guide us in a best course of action for resolution. -Tim J

Re: Recursive Tagfile and JSP Precompilation

2005-12-02 Thread Tim Funk
quot; %><%@ taglib tagdir="/WEB-INF/tags/jspTags" prefix="slk" %> defaultValue="${requestScope.recurseParamMap.defaultValue}"/> Example Tagfile snippet: <%java.util.Map recurseParamMap = new java.util.HashMap(); recurseParamMap.put("value",

Re: application scope beans persistence

2005-12-02 Thread Tim Funk
Application scope is not persisted across restarts. Sessions can be persisted across restarts. But sessions which contain non-serializable attributes will not be persisted. (Because they can't be serialized) -Tim Khawaja Shams wrote: Hello all, I am wondering when the application/sessio

Re: JSP on apache

2005-12-02 Thread Tim Funk
Now that apache 2.2 is just released - it comes with mod_ajp out of the box so there is no need for mod_jk -Tim mukesh wrote: Thanks for your kind response. Well I am using tomcat 5.5 and I could not find any directory with name "native" as its mentioned in mod_jk documentation that aforemen

Re: JSP on apache

2005-12-02 Thread Tim Funk
-Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Friday, December 02, 2005 5:30 PM To: Tomcat Users List Subject: Re: JSP on apache Now that apache 2.2 is just released - it comes with mod_ajp out of the box so there is no need for mod_jk -Tim mukesh wrote

Re: Apache 2.2 and mod_proxy_ajp

2005-12-02 Thread Tim Funk
Performance (IIRC while reading on the mailing lists) is about the same. mod_proxy_ajp should be easier to configure and install since it comes bundled with apache and it should be much easier to install than jk. e wrote: Hi, I'm happy to see Apache 2.2 has been released. I'm curious if any

Re: JSP on apache

2005-12-02 Thread Tim Funk
Both of those binaries look to be for apache2. My guess is to rename the version you are using (apache worker vs prefork) to mod_jk.so. Place the mod_jk.so libexec directory then add the appropriate so load module directives and othr jk config directives. The FAQ should have some links (some g

Re: memory limit for tomcat?

2005-12-05 Thread Tim Funk
The JVM heap can be as large as you want it. But its up to existing implementations on how well the gc implementation is and do you need that much heap. That being said - if your tomcat application runs fine under the current memory limits - you are not adding more webapps (or or memory hoggi

Re: HP -UNIX JDK1.2 /TOMCAT 41

2005-12-05 Thread Tim Funk
This was few years ago - but I suffered using jdk1.2.X jvms on HPUX. They are crap. A giant load of crap. A stinky pile of crap. (YMMV). Switch to the 1.3.x JVM. Hopefully this will solve the issue. -Tim Karthik wrote: Hi Form Our development Env is as below O/s= Win2000

Re: memory limit for tomcat?

2005-12-05 Thread Tim Funk
32bits architecture . With Best Regards Bruno Georges Glencore International AG Tel. +41 41 709 3204 Fax +41 41 709 3000 - Original Message - From: Tim Funk [EMAIL PROTECTED] Sent: 05.12.2005 12:48 To: Tomcat Users List Subject: Re: memory limit for tomcat? The JVM heap can be as large

Re: Question concerning java.lang.NoClassDefFoundError: javax/servlet/ServletContext

2005-12-06 Thread Tim Funk
See - http://tomcat.apache.org/faq/classnotfound.html Odds are you have your own servlet-api.jar somewhere in the webapp or system classpath and that is conflicting with the one in common/lib (installed by tomcat) -Tim John Poley wrote: Please forgive my intrusion if this is not the proper

Re: JSP on apache

2005-12-06 Thread Tim Funk
dvice. Regards, Mukesh Kumar -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Friday, December 02, 2005 7:43 PM To: Tomcat Users List Subject: Re: JSP on apache Both of those binaries look to be for apache2. My guess is to rename the version you are using (apache worker

Re: Compiling JSPs - how to ignore files with certain extensions.

2005-12-06 Thread Tim Funk
What tomcat version and commands are you using? IIRC - jspf files by default are not precompiled. -Tim Chris Wareham wrote: I have a web app structured as follows: myapp/footer.jspf myapp/header.jspf myapp/index.jsp myapp/taglibs.jspf myapp/WEB-INF/... I would like to add a target to m

Re: Compiling JSPs - how to ignore files with certain extensions.

2005-12-06 Thread Tim Funk
I suspect that you have a file which includes header.jspf - and that parent file is not including the fn tag lib. (The (potentially) bad error message is another issue) -Tim Chris Wareham wrote: Tim Funk wrote: What tomcat version and commands are you using? IIRC - jspf files by default

Re: Compiling JSPs - how to ignore files with certain extensions.

2005-12-06 Thread Tim Funk
x27; memoryMaximumSize='356m' -Tim Chris Wareham wrote: Tim Funk wrote: I suspect that you have a file which includes header.jspf - and that parent file is not including the fn tag lib. (The (potentially) bad error message is another issue) -Tim Yes, there was one file w

Re: Question concerning java.lang.NoClassDefFoundError: javax/servlet/ServletContext

2005-12-07 Thread Tim Funk
BINGO! freemarker.jar does not belong in the system classloader. It belongs in WEB-INF/lib. [ Quick rule of thumb - putting a lib in java/lib/ext will cause problems 99% of the time. ] -Tim John Poley wrote: And as for me, since we seem to be having similar issues, I cut out eclipse

Re: Servlet with URL pattern "*." is not working.

2005-12-12 Thread Tim Funk
You have the invoker enabled. It is evil. Get rid of it. http://tomcat.apache.org/faq/misc.html#evil > java.lang.ClassNotFoundException: sa.ca -Tim Akhthar Parvez K wrote: Hello, I have a tomcat server (ver:- 5.5.9) installed on my server and all jsps and servlets are working fine except the

Re: syntax for RemoteAddrValve and allowing multiple hosts

2005-12-12 Thread Tim Funk
Its comma seperated. http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html try: allow='192\.168\.1\..+,^10\..+' -Tim Mark wrote: I want to use the RemoteAddrValve and allow multiple hosts. What is the syntax for doing this? Thank you.

Re: Tomcat change in PageContextImpl.setAttribute from 4.1.30 to 4.1.31 makes 4.1.31 unusable... please confirm if it`s a bug ?????

2005-12-12 Thread Tim Funk
I am guesing it was a fix for spec compliance: http://tomcat.apache.org/tomcat-4.1-doc/servletapi/javax/servlet/jsp/PageContext.html#setAttribute(java.lang.String,%20java.lang.Object,%20int) -Tim David Gagnon wrote: Hi all, I just installed a fresh tomcat 4.1.31 and run into this problem.

Re: How use the archives and a TomCat config question

2005-12-13 Thread Tim Funk
I did notice that http://tomcat.apache.org/faq/tomcatuser.html could use some cleaning. I'll try fix that soon. (Unless someone beats me too it) -Tim Mark Thomas wrote: Carl T. Dreher wrote: I'm sure this has been answered before, but as I said, the archives aren't much use. (By the way, i

Re: Many questions are left unanswered.

2005-12-16 Thread Tim Funk
http://tomcat.apache.org/faq/tomcatuser.html#why -Tim George Sexton wrote: That would primarily be because your questions are badly asked. You might want to read: http://www.catb.org/~esr/faqs/smart-questions.html George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585

Re: Which is better Option

2005-12-19 Thread Tim Funk
jms - JMS can live in the same JVM or be moved to a new JVM without changing any servlet code. (Only some config changes) -Tim Karthik wrote: Hi Form Please somebody specify Which Option [ advantages /limitations ] is Better ? 1) Using a Servlet to created a seperate Thread for proce

Re: ServletContextListener - how to detect http path of web application?

2005-12-21 Thread Tim Funk
There is no way to detect the contextPath on servletInit. It can only be done after the first request. (Using HttpServletRequest.getContextPath()) -Tim [EMAIL PROTECTED] wrote: Hi, Apols for a newbie question, I didn't have much luck with the archives or in Google. In my ServletContextListe

  1   2   3   4   5   >