'touch'ing jsp files to force recompilation
I was using the 'touch' command to force a recompile of some jsp files. After a while, I checked lsof and noticed some files being left open: java 25139 fdblahh 21r REG3,3 1214916783806 /home/fdblahh/jakarta-tomcat-5.5.9/work/Catalina/localhost/_/org/apache/jsp/website/info_jsp.java java 25139 fdblahh 22r REG3,3 741936783810 /home/fdblahh/jakarta-tomcat-5.5.9/work/Catalina/localhost/_/org/apache/jsp/website/company_jsp.java java 25139 fdblahh 23r REG3,3 741936783810 /home/fdblahh/jakarta-tomcat-5.5.9/work/Catalina/localhost/_/org/apache/jsp/website/company_jsp.java java 25139 fdblahh 24r REG3,3 1214916783806 /home/fdblahh/jakarta-tomcat-5.5.9/work/Catalina/localhost/_/org/apache/jsp/website/info_jsp.java java 25139 fdblahh 25r REG3,3 1214916783806 /home/fdblahh/jakarta-tomcat-5.5.9/work/Catalina/localhost/_/org/apache/jsp/website/info_jsp.java java 25139 fdblahh 28r REG3,3 1214916783806 /home/fdblahh/jakarta-tomcat-5.5.9/work/Catalina/localhost/_/org/apache/jsp/website/info_jsp.java java 25139 fdblahh 29r REG3,3 771226783804 /home/fdblahh/jakarta-tomcat-5.5.9/work/Catalina/localhost/_/org/apache/jsp/website/index_jsp.java java 25139 fdblahh 30r REG3,3 1214916783806 /home/fdblahh/jakarta-tomcat-5.5.9/work/Catalina/localhost/_/org/apache/jsp/website/info_jsp.java java 25139 fdblahh 31r REG3,3 771226783804 /home/fdblahh/jakarta-tomcat-5.5.9/work/Catalina/localhost/_/org/apache/jsp/website/index_jsp.java After playing around, it seemed like one of these was added if I touched a page then visited it, but not every time. When generating the above list of files, it happened about 1 out of every 4 times. After the garbage collector ran, they all disappeared. Any ideas on why these files are being left open? I'm using jre version 1.5.0 and tomcat 5.5.9. Thanks for any help. Steven __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
set JSESSION PATH - any change to do this?
Hi, Current the jsession cookie path is set at the application context like: PATH=/myApp Is there any chance at all to change this? to PATH=/ As to may reason it's simple: I want to use rewrite rules like: http://domain/nicelink/page Thus without the /MyApp context in place the cookie cannot be read and the session is lost. Any possible solution to this problem? Thanks, Steve. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
war deployment problem
Hi, Sometimes when I update the war file on my tomcat 5.5.7 application, tomcat attempts to deploy the application before it has finished being transferred to the server resulting in the follow error. Can I do anything about this?? ERROR ContainerBackgroundProcessor[StandardEngine[Catalina]] org.apache.catalina.startup.HostConfig - Error deployin g web application archive web.war java.lang.InternalError: jzentry == 0, jzfile = 7513064, total = 241, name = /www/webapps/web.war, i = 74, message = invalid LOC header (bad signature) at java.util.zip.ZipFile$3.nextElement(ZipFile.java:430) at java.util.zip.ZipFile$3.nextElement(ZipFile.java:416) at java.util.jar.JarFile$1.nextElement(JarFile.java:214) at java.util.jar.JarFile$1.nextElement(JarFile.java:213) at org.apache.catalina.startup.ExpandWar.expand(ExpandWar.java:139) at org.apache.catalina.startup.ContextConfig.fixDocBase(ContextConfig.java:793) at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:905) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java: 255) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:119) at org.apache.catalina.core.StandardContext.init(StandardContext.java:5035) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3852) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:7 59) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:800) at at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC hildren(ContainerBase.java:15 thx. Steve. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Running Tomcat on multiple processors on Windows 2003
Hi, All, A client of mine is having trouble getting Tomcat 4.1.27 to make use of multiple processors on his quad processor system under Windows 2003. My questions: 1. What can he do to enable Tomcat to make use of all 4 processors? 2. If a single instance of Tomcat can't make use of multiple processors, is it possible to set up multiple Tomcat services, each tied to a processor [I understand completely how to set up multiple Tomcat services, I just don't know how to tie them to a specific processor]? Here are my client's answers to my questions regarding his configuration: * Which version of Windows are you running? Windows 2003 * Which specific version of Tomcat are you running? Tomcat 4.1.27 with the -server flag set * Which version of the J2SE SDK are you running Tomcat on top of? JRE is 1.3.1 * Are other applications successfully using the multiple processors? Yes, Cognos is spawning processes that recognize the multiple processors * How are you determining that Tomcat is running on only one processor? When I look in Task Manager, I always see one processor running at 100%. When I look at the running processes, the java.exe, is running at 13%. This server has 4 processors, and is using HyperThreading, so Windows sees 8 processors. Does anyone have any suggestions? Thanks so much for your help. Best regards, Steve Steve Heckler Accelebrate http://www.accelebrate.com
remove comments from jsp via tomcat
Hi, Is there anyway to configure tomcat to strip out the comment tags from the jsp files before streaming them as html to the client browsers??? with some other application servers this is possible. thx. Steve. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Compiling JK under Solaris
Hi, Has anyone ever managed to get the JK sources to compile with Solaris 7?? I have tried many times using every version from 1.2.5 - 1.2.10 any always get compile errors of one sort or another. Just like to know if anyone ever managed this awful task?? cheers, steve. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Clustering question
Hi, I have setup two tomcat 5.5.7 servers which are clustered. Everything is working and the basic session is replication. However, when I add my own custom java object to the session this is not replicated. I have made it Serializable but this object also contains other java objects which are not serializable. Is this a problem? Is there anything special I need to consider to get my custom session objects to replicate?? Thanks, Steve. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cache issue
Hi, When using tomcat 5.5.7 with apache 1.3.x I have problem that pages I have visited before are cached in the browser -so changes cannot be seen. I don't have this problem when I just use tomcat as the web-server, only once I started using apache. Clearly this is a problem because the url is the same and that's just they way browsers work. Is there any solution to this problem. Is there some way I change add a random parameter to each url request (built with c:url for example http://domain/mypage.jsp?random=tr445e) - that would fix it or is there some config property in apache/tomcat to resolve this? Thanks, Steve. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk2 and LocationMatch regexps
Hi, I'm trying to adjust the mod_jk2 JkUriSet entries for my server (apache 2.0, mod_jk2, tomcat 4.x). Specifically, I'm trying to set up some static files to be served by apache, not by tomcat. However, it seems the LocationMatch is very greedy and tends to intercept *all* requests that contain the path string. For example, assume I have the static file under apache htdocs: /var/www/htdocs/stuff/foo_bar.html And I have a webapp under tomcat: /opt/tomcat4/webapps/foo/ I have this mod_jk2 entry: LocationMatch /foo JkUriSet worker ajp13:localhost:8009 /LocationMatch This URL is properly forwarded to the tomcat foo webapp: http://www.example.com/foo However, it *also* forwards: http://www.example.com/stuff/foo/bar.html And even: http://www.example.com/stuff/foo_bar.html According to the docs, LocationMatch is supposed to support a regexp for the URL, but I can't seem to figure out how to get it to only forward foo at the beginning of the path. I tried: LocationMatch ^/foo This caused: [error] uriEnv.init() context must start with '/' in ^/foo I also tried: LocationMatch /^foo Which simply didn't forward http://www.example.com/foo to the webapp. I also tried simply changing LocationMatch to Location, in the hopes that Location's simpler specification might naturally Do The Right Thing. But it didn't foward http://www.example.com/foo to the webapp. -- Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - http://darksleep.com/notablog - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can servlet mappings be done somewhere other than web.xml?
I'm currently working on a legacy Tomcat 3.3 project that was developed (not by me) a couple of years ago, and I am having a heck of a time understanding how servlets are getting mapped properly. A typical URL in the application is of the form CONTEXT/servlet/servletName - nothing fancy there. However, the webapp's web.xml file contains no servlet-mapping tags, but just the servlet-name and servlet-class tags. Is there another way in Tomcat to map URL's to servlets, either through a server configuration setting or some other global information contained in a conf/xml file that I'm not aware of? My problem isn't that the servlets aren't being accessed - they display content fine. I'm for now just trying to understand how Tomcat is associating the URL string with the actual servlet class since there is no servlet mapping being done in the web.xml file. The servlets themselves reside in jar files under CONTEXT/WEB-INF/lib. Thank you. Steve Beckle Computer Associates tel: +1 (630) 505 6855 fax: +1 (630) 505 6983 [EMAIL PROTECTED]
LD_ASSUME_KERNEL with tanuki wrapper?
Hi, We're running: fedora tomcat 4.1.30 tanukisoftware.com wrapper # rpm -q fedora-release fedora-release-1-3 # uname -a Linux example.com 2.4.20-021stab022.5.777-enterprise #1 SMP Fri Sep 3 12:45:02 MSD 2004 i686 i686 i386 GNU/Linux We're seeing tomcat crash and occasionally hang (and refuse to let go of port 8080 without a kill -9). Everything I've found seems to point to this being a classic LD_ASSUME_KERNEL issue. The gotcha here is that I can't seem to find the right way to set the LD_ASSUME_KERNEL environment variable so that it will get through the service script. It seems that service is using /etc/init.d/tomcat4, which in turn is a link to /opt/tomcat4/bin/tomcat4. I've tried adding LD_ASSUME_KERNEL in there. I've also tried adding it in /opt/tomcat4/bin/setclasspath.sh. I've tried setting up a .bash_profile in /opt/tomcat4 (which is the home directory for the tomcat user). One caveat is that I may not be using the right technique to check on things. I've been assuming that if I do ps -fu tomcat and then cat /proc/pid/environ I should see LD_ASSUME_KERNEL show up in the environment variables for the tomcat process. Is this a valid test? -- Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - http://darksleep.com/notablog - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
configure a jndi resource
Hi, I would like to configure my jms router resource directly in tomcat and perform a jndi lookup to get this resource. But I am not sure how this is working. For example in the code I have this: Hashtable env = new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY, com.swiftmq.jndi.InitialContextFactoryImpl); env.put(Context.PROVIDER_URL, smqp://192.168.10.54:4001/timeout=1); Context jndiContext = new InitialContext(env); Queue q1 = (Queue)jndiContext.lookup(myQueue); What I would like to do is configure the router in tomcat so I can do this in the code: Context initContext = new InitialContext(); Context envContext = (Context)initContext.lookup(java:/comp/env); Queue ds = (Queue)initContext.lookup(myQueue); Does anyone know how I can do this?? Thanks for listening, Steve. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Random: Can't find resource for bundle
Hi, I'm using tomcat 5.5.7 under windows (although I had this problem also with 5.0.28). I have a page with locale resources. The page works fine. Refresh it 10 times say and every so often during the refresh I get this error. org.apache.jasper.JasperException: Can't find resource for bundle com.zooplus.resources.WebMessages, key general.title org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3 73) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause java.util.MissingResourceException: Can't find resource for bundle com.zooplus.resources.WebMessages, key general.title java.util.ResourceBundle.getObject(ResourceBundle.java:326) java.util.ResourceBundle.getObject(ResourceBundle.java:323) java.util.ResourceBundle.getString(ResourceBundle.java:286) It's seems to be random. The page refreshes half-a-dozen times without problems and then I get this random message. Press refresh again and it works - finding the resource. Anyone have a clue on this? Thanks, Steve. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Advertising website
an option to click on something and buy it, if they really want to do business. Most commercial sites, I'm going to guess, if people show up there, it's with a mission in mind. They may be exploring their options and trying to figure out what to buy, or they may have already decided what and are trying to figure out where. Either way, they have a goal. Stop trying to control them -- get out of the way and help them achieve their goal. -- Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - http://darksleep.com/notablog - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Virtual Hosts and SSL
Mike, On Fri, Dec 17, 2004 at 02:04:43PM -0800, Mike Kennedy wrote: I can't find anything specific to my question in the FAQs but I'm trying to set up a tomcat server with virtual hosts using https. I have two ips, each with its own SSL cert as I understand is necessary for https. What I want is to have each ip use port 443 with its own document tree (virtual host) but I cannot seem to get this to work. When I set up an additional ip to use port 443 I get an error 400 (bad request). I'm not sure what you mean by virtual host. AFAIK there are generally two uses of the phrase. The first is to refer to a single web server answering to more than one domain name _without_ using one IP address per domain name. The second is to offer a customer seemingly full access to a server to run their website, without having one separate physical box per customer. Some solutions go all the way and try to make the customer feel like they have root on the box. Some solutions just provide the customer a greater-than-end-user level of access to tweaking the configuration of their webserver, cgi scripts and database. If you're asking the first, I don't know if my recent learning experience with Apache Virtual hosting will be relevant, but it may be give you some insight into what you're doing. It may only go for tomcat used in an apache/modjk/tomcat setup. Or it may not be at all relevant to tomcat, whether stand-alone or with apache. I recently re-installed my apache server, and in the process set up apache virtual hosting. I learned that it's almost impossible to set up SSL with virtual hosts with apache, you need to use IP-based hosting if you want to serve multiple domains from one apache installation via SSL, without any hitches. That said, if all you really care about is encrypting the connection, non-IP based (i.e. virtual) multiple domain hosting is still tolerable. Basically the SSL cert that's served by the server will match the default virtual host (the first one defined in the configuration). Requests to the other domains on the SSL port will hit the same SSL server and get served the SSL cert for the default domain. The browser will squawk because the Cert doesn't match the domain. If you're *really* security-conscious, this is a problem, since there's an opportunity for a man-in-the-middle attack. Somebody could slip the browser a bogus Cert and proxy requests to your server, eavesdropping on them all the while. But if you're just providing some encrypted web-access to an application, you may not mind. Security is all about trade-offs. -- Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - http://darksleep.com/notablog - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JNDI object not shared among TC instances
On Tue, Dec 14, 2004 at 08:52:17AM -0500, Shapira, Yoav wrote: Thanks Joav and for the other people stumbling on the same rock You're welcome -- and it's Yoav with a Y ;) and by the way why don't they use a search box at http://jakarta.apache.org/tomcat/faq/ ? Because we'll all Googleheads who routinely do inurl: searches. The search box is a decent idea, thanks for bringing it up. It's fairly straightforward (and I've seen it in use several other sites) to just put a form in the page that submits to google with an inurl: parameter. Probably the quickest easiest way to add search to the page. Ah... a little poking around shows it's documented at: See http://news.google.com/searchcode.html However, they don't explain how to do an inurl: search. A little experimenting shows you can submit both a q and as_q parameter, and put the inurl: in a q input. I just whipped up a quick example, it's at http://darksleep.com/notablog/google.html -- Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - http://darksleep.com/notablog - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: log4j and tomcat 5.5
On Thu, Dec 09, 2004 at 04:33:33PM -0600, Jacob Kjome wrote: For your own app, do you use actually use the commons-logging api or just the Log4j api? If the latter, don't bother with commons-logging. In fact, try to avoid it like the plague. Could you expand on this? I've wondered in the past about this very question (whether I should code my app to use commons-logging for logging, or directly use log4j) and I'm interested in hearing what the downsides are. I've said it before, I'll say it again, I wish there was some sort of tomcat production hosting best practices repository. Maybe a wiki page or something. Or maybe I'll just invite people to send me suggestions for such a page. -- Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - http://darksleep.com/notablog - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] HTTP Sniffers
of tcpflow's output to a single file. I had some thoughts about writing some sort of specialized display to line up the individual tcpflow output files in sequential order, but I never really got around to it. In between tcpdump and tcpflow, I used a pretty simple little logging portforwarder, coded in java, that a friend whipped up for me when I mentioned the problem. He's got a copy on his web page at darksleep.com/player, at the bottom of the page. Zaval, the monitoring proxy server which another poster recommended, looks kind of neat: http://www.zaval.org/products/proxy/ It's not clear from the page but it looks free. They're also talking about porting it to java. And in closing, here's a webpage with an interesting list of the top 75 network security tools: http://www.insecure.org/tools.html -- Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - http://darksleep.com/notablog - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Commercial Tomcat Support?
Hi guys, Does anybody have recommendations of providers for commercial tomcat support contracts? Not that I'm not fairly impressed with tomcat-users, but sometimes you're dealing with a problem at 4am and it'd be nice to have somebody to call. -- Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - http://darksleep.com/notablog - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat/apace
Just a quick question. Does apache2 need to be restarted if connected using mod_jk2 to tomcat5? I know that I was told that under 4.1 tomcat mod_jk and tomcat 4 you had to do it in x order, is that still true. -- ___ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat/apace
So just as long as apache is started tomcat should find it - Original Message - From: Phillip Qin To: 'Tomcat Users List' Subject: RE: tomcat/apace Date: Wed, 17 Nov 2004 09:37:28 -0500 Not true in tc5. -Original Message- From: Steven Lister [mailto:[EMAIL PROTECTED] Sent: November 17, 2004 9:33 AM To: Tomcat Users List Subject: tomcat/apace Just a quick question. Does apache2 need to be restarted if connected using mod_jk2 to tomcat5? I know that I was told that under 4.1 tomcat mod_jk and tomcat 4 you had to do it in x order, is that still true. -- ___ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:419b612d314961930315303! -- ___ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat/apace
Thanks for the help and information. BTW I always try and schedule site downtime from 9am - 12pm .. much better then those annoying 3am jobers. ;) - Original Message - From: Didier McGillis To: [EMAIL PROTECTED] Subject: RE: tomcat/apace Date: Wed, 17 Nov 2004 16:03:18 + I did some testing a couple of weeks ago, with apache started and shut down two of the four tomcat environments that I have running and I was able to access them, so I dont think that order matters as it once did. Steve, you can test as well even if you have only one environment, of course as long as its not the production environment :) From: Phillip Qin Reply-To: Tomcat Users List To: 'Tomcat Users List' Subject: RE: tomcat/apace Date: Wed, 17 Nov 2004 10:25:05 -0500 Ypav, correct me if I were wrong - order doesn't matter. -Original Message- From: Steven Lister [mailto:[EMAIL PROTECTED] Sent: November 17, 2004 9:43 AM To: Tomcat Users List Subject: RE: tomcat/apace So just as long as apache is started tomcat should find it - Original Message - From: Phillip Qin To: 'Tomcat Users List' Subject: RE: tomcat/apace Date: Wed, 17 Nov 2004 09:37:28 -0500 Not true in tc5. -Original Message- From: Steven Lister [mailto:[EMAIL PROTECTED] Sent: November 17, 2004 9:33 AM To: Tomcat Users List Subject: tomcat/apace Just a quick question. Does apache2 need to be restarted if connected using mod_jk2 to tomcat5? I know that I was told that under 4.1 tomcat mod_jk and tomcat 4 you had to do it in x order, is that still true. -- ___ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ___ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:419b63b8315661278313514! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ___ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat crashing
On Wed, Nov 17, 2004 at 08:30:14AM -0500, Shapira, Yoav wrote: This exception is first of all not fatal, and secondly usually indicates a client closed the browser (and therefore the output sink, from Tomcat's perspective) while Tomcat is still writing output to it. You can STFA for more details if you'd like. On a related note, I've run into some really tricky situations where client was hitting the tomcat server via a proxy server. The client timeout was set shorter than the proxy server timeout, which resulted in a mysterious situation where both sides had contradictory errors: client asks proxy server for page proxy server asks tomcat for page client gives up, doesn't tell proxy server proxy server finally gets a response proxy server starts to write back to client, notices connection is closed proxy server closes connection to tomcat The result is a timeout error at the client, and a connection reset exception in the tomcat log. -- Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - http://darksleep.com/notablog - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Understanding origin of Unexpected exception ... outside the VM
On Wed, Nov 17, 2004 at 05:54:58AM -0600, QM wrote: On Wed, Nov 17, 2004 at 09:26:32AM +0100, Chris Kaido wrote: : I'm running solaris on Sparc hardware. : How could I verify the validity of my RAM without ... changing it :) ? Ehh, this may be a Google. ;) I'm pretty sure there are some Solaris memory test tools out there. As far as testing the memory itself, there's no way (AFAIK) to exercise individual chips unless you open the box and shuffle them in/out yourself. If you have a Sun support contract, now's the time to put it to use. ;) You might find this mailing list and/or its archives useful: http://isp-lists.isp-planet.com/isp-solaris/ -- Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - http://darksleep.com/notablog - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat crashing
On Wed, Nov 17, 2004 at 08:30:14AM -0500, Shapira, Yoav wrote: This exception is first of all not fatal, and secondly usually indicates a client closed the browser (and therefore the output sink, from Tomcat's perspective) while Tomcat is still writing output to it. You can STFA for more details if you'd like. Steven J. Owens [EMAIL PROTECTED] wrote: On a related note, I've run into some really tricky situations where client was hitting the tomcat server via a proxy server. The client timeout was set shorter than the proxy server timeout, which resulted in a mysterious situation where both sides had contradictory errors: [...] The result is a timeout error at the client, and a connection reset exception in the tomcat log. On Wed, Nov 17, 2004 at 12:36:11PM -0500, Peter O'Reilly wrote: Where are my responses going? Nowhere, it gets discarded. First, it's not _certain_ that what I described above is happening to your app. Just a possibility you should bear in mind while investigating (it took me several days of frutration to figure out that was what was going on in my case). Second, what's happening in general here is that when the client closes the connection, there's no way for it to proactively notify the tomcat server about that fact. All it does is close *its* side (the client machine's side) of the connection. Tomcat won't notice that the connection closed until it tries to send some packets back on it. At that point, tomcat will see the connection is closed and throw a connection-reset-by-peer exception. This exception interrupts the servlet or jsp code, and the data that *was* going to be sent back to the client gets discarded. -- Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - http://darksleep.com/notablog - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Virtual Hosting Questions
you can see it in the logs too .. INFO | jvm 1 | 2004/11/17 15:09:03 | Nov 17, 2004 3:09:03 PM org.apache.jk.common.ChannelSocket init INFO | jvm 1 | 2004/11/17 15:09:03 | INFO: JK2: ajp13 listening on /0.0.0.0:9009 I seem to recall seeing code in some component of Tomcat that explicitly treated the string localhost as 0.0.0.0 (rather than the normal value of 127.0.0.1), just for this one configuration entry. This allows listening on all IP addresses configured for the TCP/IP stack. -- ___ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JAVA_OPTS
First time caller, long time listener. :) Have a couple of questions about JAVA_OPT settings in catalina.sh. First one is I was looking at -server cached and tested that out and got nothing, tomcat didnt start a process. Next is -Xms128 -Xmx384 gives me an error of Error occurred during initialization of VM Too small initial heap Tomcat wont start with either of these flags set in JAVA_OPTS. -- ___ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JAVA_OPTS
Thanks for the quick reply. the sound you probably heard a couple of minutes ago was my head repeatedly hitting my desk. the Xms and Xms was a mispelling. :( export JAVA_OPTS='-server -Xms128m -Xmx384m -Djava.awt.headless=true' Does anyone know -server cached if that is mispelled or wrong tense? - Original Message - From: Shapira, Yoav To: Tomcat Users List Subject: RE: JAVA_OPTS Date: Mon, 15 Nov 2004 12:23:36 -0500 Hi, First one is I was looking at -server cached and tested that out and got nothing, tomcat didnt start a process. You probably mistyped the JAVA_OPTS setting. Next is -Xms128 -Xmx384 gives me an error of Error occurred during initialization of VM Too small initial heap Tomcat wont start with either of these flags set in JAVA_OPTS. Definitely mistyped the JAVA_OPTS setting there: add m after 128 and 384 to make it megabytes. Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ___ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JAVA_OPTS
Sun's JVM on Debian OS. One question about JAVA_OPTS is there a setting that I should have if I am serving content that is image intensive and database intensive. I understand that one app differes from another, just trying to get an idea on if I missing soemthing. JAVA_OPTS='-server -Xms128m -Xmx384m -Djava.awt.headless=true' - Original Message - From: Mufaddal Khumri To: Tomcat Users List Subject: Re: JAVA_OPTS Date: Mon, 15 Nov 2004 11:11:37 -0700 I do not know what VM you are using. If you are using Windows and have tomcat as a service on there you will have to specify the -server option in the registry. If you are using Mac OS X you can specify it in the JAVA_OPTS As far as what the -server option will do for you , that depends on your VM vendor. On Nov 15, 2004, at 10:35 AM, Steven Lister wrote: Thanks for the quick reply. the sound you probably heard a couple of minutes ago was my head repeatedly hitting my desk. the Xms and Xms was a mispelling. :( export JAVA_OPTS='-server -Xms128m -Xmx384m -Djava.awt.headless=true' Does anyone know -server cached if that is mispelled or wrong tense? - Original Message - From: Shapira, Yoav To: Tomcat Users List Subject: RE: JAVA_OPTS Date: Mon, 15 Nov 2004 12:23:36 -0500 Hi, First one is I was looking at -server cached and tested that out and got nothing, tomcat didnt start a process. You probably mistyped the JAVA_OPTS setting. Next is -Xms128 -Xmx384 gives me an error of Error occurred during initialization of VM Too small initial heap Tomcat wont start with either of these flags set in JAVA_OPTS. Definitely mistyped the JAVA_OPTS setting there: add m after 128 and 384 to make it megabytes. Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ___ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Mufaddal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ___ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RES: [java] RE: http-https url rewrite bug TC 5.0.28?
On Mon, Nov 15, 2004 at 05:13:21PM -0300, Paulo Alvim wrote: I have a similar problem: I'd like to use https only with the login.jsp page and come back to http after that. Could you explain why it isn't possible? It's not possible because it's not _proper_ from a security perspective, so they built tomcat to not enable it. I can sorta understand why people want to do it, myself, but you should understand that it's not secure, and be very much aware of the risks you're taking. Still, I can understand some of the motivation behind the request, and I think there's a solution. The key is to realize you're trying to solve the wrong problem. See my explanation at the end for what the right problem is, and how to solve it. To illustrate this properly, imagine that your account has two usernames and two passwords that you can use to access it, the permanent username/password and a temporary username/password. When you login, you first have to send the permanent username and first password over the net. At that point, the server then sets your temporary username and second password to some random value, temporarily, and then sends those back to you. The temporary username/password will last until your user session times out, or until you explicitly log out. Your browser then sends a copy of that temporary username and temporary password along with _every_ _single_ _request_ to the server. Just because you make sure the first communication, where you sent the permanent username/password, is secure, doesn't keep somebody from sniffing the temporary username and password and using those to do all sorts of damage to your account during that window of opportunity. To bring this back to reality, the JSESSIONID cookie is the temporary username/password. This explains why it is not secure to use the same session for both HTTP and HTTPS connections. Thinking about it, I can certainly see why people would want some happy medium between the two. SSL consumes resources* and often you're not worried about securing the entire series of user interactions, just a critical subset. For example, you don't need to SSL-protect the user browsing your catalog, but you do need to SSL-protect the payment authorization. (* Last I heard, the SSL server takes up about 40% extra resources, though that info is years old and may be way out of date.) However, the important point is _not_ that you want to share the session data across secure and unsecure apps, but that you want to avoid making the user log in twice. Here's how I'd approach this. You need two distinct sets of security credentials, serious and trivial. The serious credential is necessary for the SSL-protected portion, the trivial credential is necessary for the non-SSL portion. Then, when the user logs in via SSL, it also creates a trivial security credential, and sets that on a _different_ cookie than JSESSIONID. It's been ages since I've worked with cookies, but you can mark a cookie as Secure, meaning it only gets sent back to the secure server, or not. The tomcat SSL-created JSESSIONID is set secure, for example. Here's what one looks like: Set-Cookie: JSESSIONID=202E506FAD4A9ADB5F062DB3A3310E89; Path=/xyzzy; Secure This is further documented at: http://www.ietf.org/rfc/rfc2109.txt However, you can also set a second cookie, _without_ the secure option, from the SSL response. The browser will then include that cookie value in further requests to the non-secure site at the same domain. You would have to customize the non-secure site's security so that it checks for this cookie and automatically logs the user in to the non-secure site without prompting. One thing you'll have to watch out for is the timeout of the SSL session, since it might get left alone for many hours. You have two choices there: 1) either include an SSL-protected icon on every page, which will keep your SSL session from timing out. This can have some slight complications, since most browsers use some visual cue to indicated SSL traffic. 2) or just set the SSL app's session timeout to a fairly long time. -- Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - http://darksleep.com/notablog - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: More apps = More load ?
On Fri, Nov 12, 2004 at 08:47:59AM -0500, Shapira, Yoav wrote: No. I was being general and covering cases where apps launch their own threads which do stuff irrespective of whether any users are hitting the app or not. This is a fairly common case, for better or worse. I was discussing this very topic with somebody last night. This sort of begs the question, if the webapp isn't supposed to start threads of its own in general, what is the right way to handle these situations (the most typical being some sort of cron thread, or any need to kick of an asynchronous action)? -- Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - http://darksleep.com/notablog - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Buffering and redirection to the errorPage
On Thu, Nov 11, 2004 at 11:28:21AM +1100, Derek Clarkson wrote: This sounds like something I have encountered. The basic question is that how do you redirect to an error page if youa re writing to the output stream rather than going to another JSP, and have an exception ? I thought I posted a reply to this earlier, but I don't see it in my inbox, so maybe I should repost. In a nutshell, this topic makes a lot more sense if you understand what an HTTP request and an HTTP response really look like. My number one recommendation to folks doing web applications is to get a packet sniffer, or a logging proxy, and take a look at what the browser and server are actually sending back and forth. Each HTTP request and response look a lot like an ordinary email: a series of header lines, a blank line, and a message body. The header lines are all name: value. In an HTTP response the body is the HTML of the page, or the binary data of an image. In some cases there is no body at all (a client-side redirect, for example). Any logical operation is handled with a header - setting a cookie, redirecting the browser, etc. Once the blank line separating the header from the body has been sent, you can't go back and send another header line. So you _must_ do any sort of redirect before the server starts to flush output back to the client. If you try to set a header after the server has already sent the blank lnie separating the headers from the body, you'll get a java.lang.IllegalStateException. One way to make this easier to do is to set your buffer larger, so the server will wait longer before flushing output to the browser. Another way is to use an MVC architecture. Have the submit from the browser go to a servlet that does any logical processing you need, but doesn't send any output back to the user. Instead, the controller servlet sets request attributes and user session attributes containing the results of the logic, then redirects the request off to the right view page. The view page looks for the request attributes and user session attributes and generates HTML tags for the display. The controller doesn't muck with display stuff, the view page doesn't muck with the headers. -- Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - http://darksleep.com/notablog - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Speed of jsp:useBean tags.
for sanity-checking this, I'll post it if he comes up with something). -- Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - http://darksleep.com/notablog - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: hide source of a page
On Tue, Nov 09, 2004 at 04:18:37PM +1100, Peter Johnson wrote: So are you saying that I could run ActiveX on my Linux FireFox browser? I doubt he meant that, but I also doubt his bosses gave a damn about Linux users :-). A java serialised object should be secure enough, the next step would be to add some sort of encryption. It's all a matter of degrees, like Frank said... security is a scalar, not a boolean. But still, in the end, you're running on somebody else's hardware, and they can, with enough work, get at the innards of whatever you send them (see some of the MMORPG hacks for good examples). If anybody ever figures out a truly effective safeguard against this (which would be at least equivalent, in terms of mathematical creativity, to public/private key encryption), we'll see some really radical changes. -- Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - http://darksleep.com/notablog - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: comparison of Type 4 JDBC drivers
On Wed, Nov 10, 2004 at 01:29:34AM +0200, Tuncay Baskan wrote: On Wed, 10 Nov 2004 12:18:20 +1300, Craig Collings [EMAIL PROTECTED] wrote: I'm using com.microsoft.jdbc.sqlserver.SQLServerDriver which is a type 4 driver and I am also getting ex VM errors: any ideas? I don't know if it's helps.. We tried to use Microsoft JDBC drivers in our applications but because of its troubles we decided to use jTds, which is a but rock-solid free driver.. You can get it from http://jtds.sourceforge.net/. I don't do SQLServer at all, but a friend who has a J2EE app using SQLServer (JBoss using tomcat, I believe) told me the other day that they're using some third-party JDBC drivers, DataDirect I think. It's apparently pricey as hell (enterprise licensing) but it cut their server load in half. -- Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - http://darksleep.com/notablog - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Counting Page Hits
On Tue, Nov 09, 2004 at 05:55:07PM -0800, Justin Jaynes wrote: What is the easiest way to monitor hits to resources (files or pages) on my tomcat 5 server? Do I write my own ticker into each page I want to monitor and store the incremented value to a database? Or is there a much simpler solution already implimented in some tomcat management software AFAIK there isn't any sort of built-in monitoring. The general answer I've seen in the past is that you should use log analysis tools on the logs, which are in a fairly standard format. This probably makes a ton of sense, considering that adding special monitoring would involve adding overhead to every page request, while log analysis could be done to the logs on a separate machine. An alternative would be to code a servlet filter to log the requested URLs. In some ways a servlet filter is much like a servlet; you request a URL, based on an entry in web.xml the servlet engine hands the request to the appropriate servlet filter instance (or if the servlet filter hasn't be instantiated yet, instantiates it and then hands the request to the instance). The way it's *not* like a servlet is that the servlet filter's doFilter() method gets request, response AND chain. Besides messing with the request and response object all it likes (subject to the standard limitations, like you can't write headers once you've started flushing body content back to the client), the filter can call chain.doFilter(request, response), which forwards the request to the original servlet it was intended for. So in this case, you'd set up a servlet filter, define the URL mappings to filter all the servlets and JSPs you care about monitoring, and have it print a log message to a special log file (or to a special logging channel). http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-filters.html http://www.onjava.com/pub/a/onjava/2003/11/19/filters.html http://www.onjava.com/pub/a/onjava/2004/03/03/filters.html -- Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - http://darksleep.com/notablog - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Multi-Site Clustering? (hot failover)
Hi, I've heard tomcat supports clustering, but I'm thinking about a similar, but different situation: having a duplicate server at a distant hosting center, set up to take over if the first server or the first hosting center encounter problems. This isn't about load, so much as reliability. I don't *think* there are any special things I need to do at the tomcat level, but I figure it can't hurt to ask if I'm missing something. My basic configuration is apache/tomcat/mysql. I think I just need to keep the tomcat webapps on the same version of my application, and that's about it for apache and tomcat. I especially have to make sure the application code is using the same database schema, so I don't get inconsistent data being written to the database. The main trick isn't gonig to be tomcat but all, but rather making sure the mysql database on the second server is set up to mirror the first database, with frequent updates to minimize the window of lost data. The main worry is going to be if the second machine has to take over, and some new data is created in the first machine after that point (i.e. the data gets out of sync). I'm guessing the short answer is to either count that data as lost (i.e. Doctor, my arm hurts when I do this. Don't do that.), or selectively copy the new data over to the second machine, then drop the first database and copy the second database over to the first server. -- Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - http://darksleep.com/notablog - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Accessing resource in WEB-INF outside servlet
methods, and in fact at some points in the app where I have some tricky SQL I do just that. For example, I have to join tables and I don't want to do one big select of the main table and then a zillion small selects for individual joined rows. I do the SQL query in a separate method, and then use the mapper to convert each row to a bean. This lets me get the benefit of efficient SQL queries in some crucial spots, but still keep a clean O/R sort of feel. I'm still not *entirely* sure whether I want to take it further and just have the CRUD methods live on a generic database class, and pass in a bean and a mapper: List invoices = GenericDB.selectMany(InvoiceBean, InvoiceMapper); I thought about something like: List invoices = GenericDB.selectMany(InvoiceMapper.getSelectQuery(InvoiceBean)) ; But this is really insufficient, since I have to pass the mapper in anyway, to map the ResultSet back to beans. So GenericDB might as well know about using a Mapper to generate the query as well. Overall, I kind of like this refactoring, because it makes the beans and the DBMappers shallower. The bean just knows about data. The DBMapper just knows how to produce an SQL statement from a bean, and a bean from an SQL statement. The GenericDB just knows about beans and mappers: how to apply a mapper to a bean to get SQL, and how to apply a mapper to a ResultSet to get beans. -- Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - http://darksleep.com/notablog - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to fix: Tomcat responce time gets to 10-200 seconds once a day
Roman Zhovtulya [mailto:[EMAIL PROTECTED] asked: Normally the performance is really good, but about once a day it gets really slow (around 1-5 minutes to display the page). It also recovers autocatically to normal response time when you simply wait 5-10 minutes. On Mon, Nov 08, 2004 at 11:16:55PM -, Steve Kirk wrote: My favourite answer to any query about a server being painfully slow: does the slowdown coincide with a slowdown or outage of your DNS service? This can have suprisingly big impact if TC is doing reverse lookups of the IP of every request. At the risk of asking the obvious, are you sure that some other heavy process is not kicking off at that time, either on one of the machines you mention, or some other machine on the network? If it's not external load (as SteveK suggests), nor internal load, it might be resource contention. 1) how many apache processes do you have? I had a problem on a redhat box, apparently the default apache install was 10 processes. Needless to say, as soon as the traffic went up a bit, all 10 processes were busy and subsequent requests had to wait for a free process - and wait, and wait, and wait... Does each page load actually load, or does the browser time out while trying to get a connection? If the page takes 5 minutes but actually does load (and if the delay is not because it's trying to shove a lot of data into the page), then it's probably *not* a lack of apache processes. But it's easy enough to check on, so check on it anyway. 2) If it's not contention for apache processes, it might be some sort of contention inside tomcat - either a thread locking issue somewhere, or getting at the database, or some other resource. 3) It may not be actual load, but more time delays. For example, anything in your system that hits an outsid server (message queue, email) may take a couple of seconds to complete. All of those secodns add up. They may also lead to resource contention. One of my earlier servlet projects, the super high reliability message queue (MQ Series - this was pre-JMS) performed as advertised... but the super high reliability big iron it was connecting to was shut down for a couple hours of scheduled maintenance every sunday morning at 1am (which, of course, I found out about one sunday morning at 2am). The message queue's default timeout was kind of high (25 seconds), so the thread just sat there waiting for the answer, holding open one of the apache processes all the while. Soon enough, all the apache processes were busy waiting for answers from the tomcat threads, which were waiting for answers from their message queue requests... The right way to resolve this sort of problem depends a lot on the circumstances, so look into that and post here with further questions. 4) Just a wild idea, but check on garbage-collection. Maybe put a couple of logging calls in the pages, so you can see the memory usage in the log: Runtime.getRuntime().maxMemory() // maximum memory allocation Runtime.getRuntime().totalMemory() // memory actually allocated by JVM Runtime.getRuntime().freeMemory() // allocated but not in use by objects The gotcha to watch out for is that the system will quite happily allocate memory without doing garbage-collection, until it hits maxMemory(). Then it'll do garbage collection, but it may take a while. You can't really eliminate the delay, but you can move it around and/or spread it out. There are command-line arguments to tweak how garbage collection is done. At the time I learned this lesson, I don't think those command-line arguments were available, so I used a call to System.gc() instead. But I'd strongly suggest looking into them before you go mucking with System.gc(). System.gc() isn't guaranteed to do anything. Whether it does anything or not depends on your platform, but it's supposed to sort of nudge the garbage collector and say now might be a good time to clean up. If you have any sort of consistent spot in your app where a bunch of objects become superfluous (in the one where I learned this lesson, it was an object cache that expired objects every minute), putting in a call to System.gc() might really even out the memory usage. 5) Do some very rough thumbnail profiling; print in System.currentTimeInMillis() to the log at a number of strategic points. Then after a slowdown, look at the log, try to trace a single request through the process and see where the big delay was, then take a microscope to that portion of the application. -- Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - http://darksleep.com/notablog - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands
Re: Configuration Management, JSP Recompiles, War Files
Peter, Yoav, Thanks for the advice. Now if I could just ask for a letle more... :-) On Mon, Nov 08, 2004 at 01:14:22PM -, Peter Crowther wrote: From: Shapira, Yoav [mailto:[EMAIL PROTECTED] One great way to approach production setups for Tomcat is one webapp per Tomcat instance. Restarts are then quick and easy, and no matter what this one webapp does (OutOfMemoryErrors, malicious code, etc.) it can't affect others you have running around because they're in a different JVM. The ease of setting up Tomcat standalone makes this not just feasible, but probably recommended over a many webapps per Tomcat instance setup. This does sound like a really good argument for using separate tomcat instances. My main qualm is what other server infrastructure I might need to think about (*do* I need to think of any other server infrastructure)? This approach works well if: - the webapps have a memory footprint that is large enough to make the JVM overhead irrelevant; Any idea what the memory overhead of JVM tomcat is? I'm going to guess that the answer is not insignificant, but not problematic for my current load of a dozen webapps on a 2GB machine (and that RAM can be fairly easily bumped up - it's only money :-)). - the webapps do not have to be run on the same port. If you are running hundreds of tiny webapps it might be a bit of overkill, and if many of those webapps need to be on (for example) port 80 or 8080 then it simply doesn't work. This said, I agree with Yoav - it makes management a whole lot easier and reduces interactions between webapps. I use it wherever I'm principally running services that don't need to be exposed via our firewall. I'm certainly leaning in this direction. I'm using apache to front-end the apps. Can apache/modjk cope with different ports for different tomcats for different webapps? Thinking about it, I have: - apache -- modjk - tomcat -- jdbc driver DBCP pool - mysql If I'm going to have multiple tomcat processes, the main things I would think to worry about (besides sheer disk and memory consumption) are connections between apache and tomcat, and between tomcat and mysql. Apache and Mysql are already handling the current load, nothing should really change about the database tables or the http requests. For modjk, I have no idea what the concerns might be, except to start with, can modjk even do this, using multiple tomcat servers on different ports? For the jdbc driver and connection pool, the only thing I can think of is resource consumption of the database connections, mainly on the mysql server side of the equation. I should look into how many database connections mysql is configured to provide, and how using multiple tomcat instances might affect that. I'm not sure what the answers are, but two questions I can think of: - The multiple connection pools will definitely mean that there will be more database connections kept in overall machine memory (whatever the lower bound is on the DBCP times the number of tomcat servers) at any one time. How will this affect mysql? - The multiple connection pools mean that the collection of tomcat servers will have a much higher upper bound of open connections (normal upper bound times number of tomcat servers). Is there more of a risk of swamping the mysql server? Should I configure mysql to handle more connections, or should I configure the tomcat DBCP pools to allow fewer connections? These are the kinds of topics that I would love to find covered in a best practices for tomcat hosting guide. Any recommendations? -- Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - http://darksleep.com/notablog - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: hide source of a page
On Mon, Nov 08, 2004 at 09:37:09PM -0500, Dov Rosenberg wrote: The only thing I can think of to hide the source of the page is to create your own private label browser or perhaps load the source of the page in a hidden frame and use some javascript to display the text you want. Not sure why you would want to go thru the hassle - there are lots of ways to defeat any measure. You're right, this is futile, because it's trivial to get the source of the page, no matter what you do at the browser level. The browser has to see the source to render it, therefore the server is providing the source, upon request, to anything that knocks at port 80 and asks for it. Getting the source is as simple as telnetting to the webserver on port 80 and faking the commands. Or run a packet sniffer in the network you're browsing from. Or run a logging http proxy on your own machine and point your browser at it. You can't show something to people and keep it secret at the same time. -- Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - http://darksleep.com/notablog - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Configuration Management, JSP Recompiles, War Files
Peter, On Tue, Nov 09, 2004 at 08:42:34AM +1100, Peter Johnson wrote: We run 5 Tomcat servers (still on 4.1.x so not clustered) and use CVS with two tags: 'stage' and 'prod'. I'm a little unclear on what this means - do you mean branches? Or do you mean that you effectively do some sort of script to get the latest stage tag vs get the latest prod tag? That's something I hadn't considered, but it sounds like it might be easier than branches (which I haven't really messed with, but seem to be notoriously tricky). When a push script is executed the server pulls the appropriate version from cvs and then performs an ant task to deploy the app, compiling any changed classes. We find that this works just fine and haven't really had any issues. Okay, so ant task to build war file and push it to the tomcat server. Sounds fairly standard (though still unexplored territory for me). Check that you are using jsp:include ... (include on execute) rather than @ include ... (include on compile) as this *may* be causing the issue. Yup, we're using jsp:include. Just out of curiousity why are you are deploying individual apps if they are so similar? Why don't you just implement a branding infrastructure and run a single app with multiple brandings? Honestly, I've considered it several times. We're really, really close to that point already. All it would take would be to switch the various logo.gif and CSS imports to use a property instead of copying a template file. Then I'd set up the property singleton to use a different property file database depending on which URL mapping the user requested. The real reason I haven't is that it just doesn't buy me anything significant to run them all off the same webapp, while it increases (instead of decreases) the interdependency, and makes testing much more white-knuckle. I keep thinking, well, it wouldn't be that hard..., but there's no real concrete advantage to do this, except to save a little bit of disk and memory. And if I ever *do* have a serious need do something custom for one instance or another, I'm screwed. -- Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - http://darksleep.com/notablog - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Configuration Management, JSP Recompiles, War Files
On Mon, Oct 25, 2004 at 09:15:41AM -0400, Shapira, Yoav wrote: If I understand correctly, WAR file is just a glorified JAR file, which in turn is just a glorified tar file. So unless you're unjarring it, editing the config file and rejarring it, you can't really muck with the config settings inside it. How/where do people normally keep the configuration variables for the webapp? You might want to read up the Servlet Spec's section on resource-ref and env-entry refs. These provide a way for you to keep one WAR and edit server.xml (or another server-specific, outside-your-WAR configuration file) to modify configuration information. Your understanding above is incomplete. So the standard practice is to put all of your configuration variables in server.xml and reboot the server if you need to change the configuration? -- Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - http://darksleep.com/notablog - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Configuration Management, JSP Recompiles, War Files
On Sat, Nov 06, 2004 at 03:20:46AM -0500, Steven J. Owens wrote: On Mon, Oct 25, 2004 at 09:15:41AM -0400, Shapira, Yoav wrote: If I understand correctly, WAR file is just a glorified JAR file, which in turn is just a glorified tar file. So unless you're unjarring it, editing the config file and rejarring it, you can't really muck with the config settings inside it. How/where do people normally keep the configuration variables for the webapp? You might want to read up the Servlet Spec's section on resource-ref and env-entry refs. These provide a way for you to keep one WAR and edit server.xml (or another server-specific, outside-your-WAR configuration file) to modify configuration information. Your understanding above is incomplete. So the standard practice is to put all of your configuration variables in server.xml and reboot the server if you need to change the configuration? Ah, your further comments in RE: discussion on webapp reload in production indicates that restarting tomcat for changes is indeed standard practice. Okay. Is there a HOWTO or tutorial anywhere on running an ASP style setup (er, that's application service provider, not the other ASP) with multiple apps, using tomcat? More of a standard practices sort of thing, though how-to/tutorials for specific aspects would also be cool. -- Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - http://darksleep.com/notablog - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DataSource and initialContext.lookup(java:comp/env)
On Sat, Nov 06, 2004 at 07:05:12PM -0800, Eric Wulff wrote: I just returned from working on a tutorial at sun which I was inspired to go over based on my lack of understanding of the code snippet below. I'm trying to fully understand what's going on. Docs state that the code... initialContext.lookup(java:comp/env) returns a named object. Best I can tell is that this is a reference to a starting point in my directory... or something like that. Is anyone willing to explain what initialContext.lookup() fundamentally takes care of when called? When I first read your question above, it seemed that you had a profound lack of understanding. Then on a second read it looks like maybe you might have a vague idea - it depends on what _you_ mean when you use the word directory in that question :-). Read up on JNDI (Java Naming and Directory Interface). Basically it's sort of like DNS, except that it's in the java world and the results of a lookup are a java object. Other examples of the concept are LDAP, COS, NIS, in fact,the JNDI API is meant to act as a proxy to such services, so you might be doing a JNDI lookup that's actually hitting an LDAP server, or a your file system, or a database. http://en.wikipedia.org/wiki/JNDI http://java.sun.com/products/jndi/overview.html http://java.sun.com/products/jndi/tutorial/ http://www.javaworld.com/javaworld/jw-01-2000/jw-01-howto.html RMI uses JNDI. J2EE APIs use JNDI. Tomcat comes with a database connection pool from Jakarta Commons, the DBCP. The following URLS document it a bit more, but you don't *really* need to know that much about either JNDI or DBCP just to use it (this is not to be construed as suggesting it's good to *not* know and understand everything you're using :-). http://jakarta.apache.org/commons/dbcp/ http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-resources-howto.html http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples-howto.html -- Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - http://darksleep.com/notablog - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Configuration Management, JSP Recompiles, War Files
Hi folks, I'm interested in hearing how people are dealing with configuration management issues. We've been running into some problems with JSP recompiles, particularly when the changed JSP is an included JSP. Tomcat seems to sort of get stuck on the old version, even if we restart tomcat it doesn't reload. Manually deleting the foo_jsp.java and foo_jsp.class files from the tomcat/working/etc directory and *then* restarting seems to do the trick. Somebody I talked to suggested that using a WAR file and redeploying would make tomcat more reliably recompile the JSPs. I've been meaning to move to using WAR files sooner or later, but one question has always bugged me - how do you save your deployment-specific configuration info? If I understand correctly, WAR file is just a glorified JAR file, which in turn is just a glorified tar file. So unless you're unjarring it, editing the config file and rejarring it, you can't really muck with the config settings inside it. How/where do people normally keep the configuration variables for the webapp? We have a single tomcat installation with a dozen almost-identical webapps, one webapp for each customer. When we do our jobs right, each app is in fact identical, except for: - two colors in the app-wide CSS stylesheet - the customer's logo image - the CONTEXT tags in server.xml - a few details of the web.xml file (webapp name, database resource name) - a properties file with a couple dozen configuration properties - a separate database in the mysql server We extend and refine the application constantly, so we're changing the code every month or two. So far we've been using cvs to manage this. Each webapp is a cvs checkout ; the specific files mentioned above exist in template form in the checkout (e.g. web_template.xml, styles_template.css) that we copy into the right name for deployment and then edit, so they don't get overwritten by cvs. Using cvs worked pretty well for a while, but it's gotten unwieldly, especially when we run into the JSP recompiling problem, because then we have to restart the entire server to try to get it to recompile the jsp. This reminds me of another question; I'm beginning to wonder if we wouldn't be wiser to use a dozen separate tomcat installations. I know that in theory using the same tomcat installation for multiple webapps is supposed to be standard, but any time we have to tweak the server.xml-level configuration of a single webapp, we have to restart all of them. How do people normally deal with this? Is it at all common to run multiple tomcat servers behind apache for this sort of purpose? -- Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - http://darksleep.com/notablog - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
New User needing urgent help
Hello, I am new to using Tomcat and am having difficulty getting an application to work. Any help would be greatly appreciated. I have a web app that is giving me the following errors and can't seem to find why. Thanks in advance for your help. org.apache.jasper.JasperException: Unable to compile class for JSP Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:6: '.' expected import Account; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:7: '.' expected import Banner; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:8: '.' expected import CalDate; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:9: '.' expected import Campaign; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:10: '.' expected import Dates; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:11: '.' expected import DB; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:12: '.' expected import DetectOSBrowser; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:13: '.' expected import Environment; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:14: '.' expected import GetAdServlet; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:15: '.' expected import GetLinkServlet; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:16: '.' expected import Javamail; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:17: '.' expected import Keys; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:18: '.' expected import LicenseCheck; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:19: '.' expected import LogError; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:20: '.' expected import LogonValidation; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:21: '.' expected import LogsCutover; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:22: '.' expected import Msgsend; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:23: '.' expected import Popwindow; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:24: '.' expected import Region; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:25: '.' expected import Sendmail; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:26: '.' expected import servletUpload; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:27: '.' expected import SmartHello; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:28: '.' expected import Stats; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:29: '.' expected import Subscriber; ^ Generated servlet error: D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:30: '.' expected import Zone; ^ 25 errors org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332)
RE: New User needing urgent help
From this I gathered that the import code isn't required and it looks like that fixed the problem. One thing I should have said was sun-java newbie as well so I am vastly ignorant on how all of this works. Only been trying to use it the last day or two. Appreciate the expert advice and very fast response everyone have given on this. You guys ROCK! Hopefully I will be able to get this operational without bothering everyone again. Thanks, Steve From: Steffen Heil [mailto:[EMAIL PROTECTED] Sent: Sat 10/23/2004 12:52 PM To: 'Tomcat Users List' Subject: AW: New User needing urgent help Hi import Account; No. No. No. Import is used to make classes of foreign packages available. Classes in the same package are always available. And you should never have any package-less class, hence no problems. Regards, Steffen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: New User needing urgent help
Originally this app was setup to be located outside of the webapp directory in it's own directory. I had it working for the Tomcat 3.3.2 by setting the context on it with no problems. I wanted to make sure I had the latest Tomcat install to ensure that I wouldn't have to upgrade too soon so I did that but couldn't find where I could get it deployed on an absolute path instead of the relative so I set it up in the webapp to make things simpler but then ran into this problem. The support for this software is pretty meager so I am working through it so I can support it myself. From what I see in the software the mapping servlets and such look like they are all in place. Just the location of the whole thing has been beating me up. Perhaps someone knows a way I can leave it outside the root and save me some extra work? Thanks for the help. From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Sat 10/23/2004 1:06 PM To: Tomcat Users List Subject: RE: New User needing urgent help You'll probably have other problems later if you don't get your classes into packages (mapping servlets etc..). On Sat, 2004-10-23 at 14:01, Steven R. Christensen wrote: From this I gathered that the import code isn't required and it looks like that fixed the problem. One thing I should have said was sun-java newbie as well so I am vastly ignorant on how all of this works. Only been trying to use it the last day or two. Appreciate the expert advice and very fast response everyone have given on this. You guys ROCK! Hopefully I will be able to get this operational without bothering everyone again. Thanks, Steve From: Steffen Heil [mailto:[EMAIL PROTECTED] Sent: Sat 10/23/2004 12:52 PM To: 'Tomcat Users List' Subject: AW: New User needing urgent help Hi import Account; No. No. No. Import is used to make classes of foreign packages available. Classes in the same package are always available. And you should never have any package-less class, hence no problems. Regards, Steffen __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: adding HTTP headers for all responses in web application
On Wed, Oct 20, 2004 at 11:07:58AM -0400, Ben Souther wrote: Search the archives, I believe Tim Funk has actually written and published one Not sure though. It's pretty straight-forward. This is the first filter I ever coded, it was a snap. I make no guarantees that the particular headers are exactly what you need (browser caching is annoyingly difficult to disable). -config- filter filter-nameNoCacheFilter/filter-name filter-classclass.path.to.NoCacheFilter/filter-class /filter filter-mapping filter-nameNoCacheFilter/filter-name url-pattern/*/url-pattern /filter-mapping -source- import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletRequest; import java.io.IOException; import javax.servlet.ServletException; public class NoCacheFilter implements Filter { public void init(FilterConfig config) throws ServletException { this.filterConfig = config; } private FilterConfig filterConfig; public FilterConfig getFilterConfig() { return this.filterConfig; } public void setFilterConfig (FilterConfig filterConfig) { this.filterConfig = filterConfig; } public void destroy() { this.filterConfig = null; } public void doFilter (ServletRequest request, ServletResponse response, FilterChain chain) { try { if (response instanceof HttpServletResponse) { HttpServletResponse httpresponse = (HttpServletResponse)response ; // Set the Cache-Control and Expires header httpresponse.setHeader(Cache-Control, no-cache) ; httpresponse.setHeader(Expires, 0) ; } chain.doFilter (request, response); } catch (IOException e) { System.out.println (IOException in NoCacheFilter); e.printStackTrace() ; } catch (ServletException e) { System.out.println (ServletException in NoCacheFilter); e.printStackTrace() ; } } } -- -- Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - http://darksleep.com/notablog - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JDBC realm question answered
Argh... don't you hate it when you finally give up on the docs and post a question, then look at the docs and see the answer? Not sure how I missed it, but in: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/realm-howto.html Under the heading Configuring a Realm, it says that where you insert the REALM tag in server.xml determines what scope it covers: inside ENGINE for server-wide inside HOST for for all webapps on that virtual host inside CONTEXT for only a specifi web application -- Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - me, at http://darksleep.com/notablog - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JDBC Realms for specific webapps?
Hi all, We're trying to get JDBC realms working with tomcat. We followed the tutorials and examples, but that ended up overriding *all* of the webapps, so they all authenticated against the same JDBC realm. We need to set up one specific realm per webapp. What are we missing? -- Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - me, at http://darksleep.com/notablog - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 4.1 and LD_ASSUME_KERNEL=2.4.1
Hi all, I am having problem where Tomcat 4.1.27 just stops after some random period of time. I am on RH9 and JDK 1.4.2. This seems to be the same problem reported earlier and a recommended fix was to set an environment variable LD_ASSUME_KERNEL=2.4.1. Can I simply put an export LD_ASSUME_KERNEL=2.4.1 in my setenv.sh file? Also, I have heard other recommended values, such as LD_ASSUME_KERNEL=2.2.5; how would I find out which one to use? - Steve Hello. Is this the same problem I also asked yesterday about in thread All threads are busy ... servlet status 75 Somewhere I read about setting the LD_ASSUME_KERNEL to 2.2.5 But I also read somewhere that this didn't help (www.junlu.com/msg/14450.html) QM wrote: On Thu, Jun 17, 2004 at 03:54:08PM -0400, Bradley Glonka wrote: : Tomcat installaion on Red Hat Version 9 intermitnently stops : Responding. :Kernel 2.4.20-9 RedHat's custom kernels have backported the NPTL (Native Posix Thread Library) routines from 2.5/2.6. Set the env var LD_KERNEL_ASSUME to 2.4 to make non-NPTL code (such as your JDK) behave. That var may also be called LD_ASSUME_KERNEL, I forget which. ;) : Can someone suggest how I can troubleshoot the problem. Other than the above: are there differences between the development env and production env, other than the OS? Differences in RAM or JVM heap settings can cause different GC behavior between the two. Furthermore, what sort of load-testing was done on the app before it went live? -QM -- -- Steven Peterson, President Frontier Productions, Inc. 310 Wesley Drive Chapel Hill, NC 27516 Tel: 919-942-1386 Fax: 919-933-2677 Creators of List Pilot Easier email broadcasting to your many different customers http://www.listpilot.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DBCP with JDBC driver in WEB-INF/lib
Hi all, I'm using tomcat with DBCP for connection pooling, on a hosted server. My hosting provider is using an older driver that doesn't support some JDBC 3.0 features I'd like. When I asked them about upgrading, they told me I could just stick the jar file for the more up-to-date driver in WEB-INF/lib and use that. What I'm wondering is, how do I tell DBCP to use the WEB-INF/lib jar file? -- Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - Me at http://darksleep.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] JSP/Servlet Hosting
On Mon, Jun 07, 2004 at 10:27:33AM +0200, Schalk wrote: I am getting a little concerned about Java's position as far as a development language for the web. The reason I say this is because trying to find good, reliable hosting at a competitive price, by competitive I mean against the price of hosting PHP based sites, is almost impossible. You either have a situation where the company claims to support Tomcat but then only allows JSP's or they allow both JSP's and Servlets but not servlet-mappings via web.xml. We've been using eapps.com and we've been pretty happy with the service. Essentially we get our own installation of tomcat, with an apache front-end that they manage. -- Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - Me at http://darksleep.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Best Scheduler/Cron for Tomcat?
Hi all, What's the best scheduler or cron for use with tomcat? I've been googling and Quartz and Jcrontab seem to turn up often. The Quartz website says it's used by some Jakarta projects, and I see some references to Quarts in commons-beanutils documents in google. What we're doing specifically: scheduling out-going phone calls from a VoiceXML system to automatically call users at their preferred time. I suspect we're going to see calls cluster at certain points (e.g. 6:00, 6:30, 7:00) so the method that starts the call will have to be multi-threaded, or queued. If I can get some support for that from the scheduler, so much the better. We're on tomcat 4.x at the moment. I plan to move up to 5, but I have a ton of things to do, and I've seen a few posts here that suggest that moving to 5 might involve non-trivial time and frustration. Our app is pretty vanilla, so I'm not especially worried, but I have twenty-seven priority-1 tasks on my plate, so... Quartz- http://www.quartzscheduler.org/quartz/ Jcrontab - http://jcrontab.sourceforge.net/index.shtml SuperLite - http://www.acelet.com/super/SuperScheduler/index.html -- Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - Me at http://darksleep.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat5 server stalling
Hi, I'm running tomcat5 on a Redhat9 box. It looks like its accepting connections for a while, which is good. But then it hits a limit and there are alot of TIME_WAIT connections in the netstat output. Below are the server.xml portions where we configure tomcat to listen and accept connections on port 80. If you need any more info, please let me know. Thanks, Steve !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 80 -- Connector port=80 maxThreads=1 minSpareThreads=25 maxSpareThreads=2000 enableLookups=false redirectPort=8443 acceptCount=1 debug=0 connectionTimeout=2000 disableUploadTimeout=true / !-- Note : To disable connection timeouts, set connectionTimeout value to -1 -- !-- Note : To use gzip compression you could set the following properties : compression=on compressionMinSize=2048 noCompressionUserAgents=gozilla, traviata compressableMimeType=text/html,text/xml -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Disabling Drowser Cache of UID / PW
On Fri, May 14, 2004 at 04:13:03PM -0400, Ben Souther wrote: I am under a mandate to disable this caching on a global basis, but I have no idea how. Any ideas out there? It's interesting that someone would mandate functionality before finding out if it's possible. While they were at it they should mandate that Outlook be made secure. Hm... no problem, just do a servlet filter that detects IE and redirects it to a you must install a secure browser to use this website page :-). -- Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - Me at http://darksleep.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: error starting tomcat5
Thanks that seems to work out. Now I have one last error that I can't seem to figure out: Where should the commons-digester.jar reside? currently it is in the /usr/share/java directory (with all the other jars), but tomcat can't seem to find it. I have it in the classpath as well as the ${CATALINA_HOME}/server/lib directory, is this the right place? Thanks, Steve -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 12, 2004 2:50 AM To: [EMAIL PROTECTED] Subject: Re: error starting tomcat5 Steven Garrett [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, Thanks to those of you who helped me with my previous server.xml include file issue, that worked out like a charmeventually :) Anyways, we're testing out tomcat5 on a RedHat 9 box and I keep getting this error message. java.lang.NoClassDefFoundError: org/apache/commons/modeler/BaseModelMBean All I've been able to find so far is that this is supposedly part of the catalina.jar (not very helpful I know). all I'm trying to do is to get tomcat to start at this point. Any suggestions on how to debug this or if anyone knows what's wrong that would be great. Please let me know if you need any further information. Actually, it is supposed to be part of commons-modeler.jar which should be living in $CATALINA_HOME/server/lib. Thanks, Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: error starting tomcat5
Here's the exact error: java version 1.4.2 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28) Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode) java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:1610) at java.lang.Class.getConstructor0(Class.java:1922) at java.lang.Class.newInstance0(Class.java:278) at java.lang.Class.newInstance(Class.java:261) at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:218) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:375) Thanks, Steve -Original Message- From: Steven Garrett [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 12, 2004 11:31 AM To: 'Tomcat Users List' Subject: RE: error starting tomcat5 Thanks that seems to work out. Now I have one last error that I can't seem to figure out: Where should the commons-digester.jar reside? currently it is in the /usr/share/java directory (with all the other jars), but tomcat can't seem to find it. I have it in the classpath as well as the ${CATALINA_HOME}/server/lib directory, is this the right place? Thanks, Steve -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 12, 2004 2:50 AM To: [EMAIL PROTECTED] Subject: Re: error starting tomcat5 Steven Garrett [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, Thanks to those of you who helped me with my previous server.xml include file issue, that worked out like a charmeventually :) Anyways, we're testing out tomcat5 on a RedHat 9 box and I keep getting this error message. java.lang.NoClassDefFoundError: org/apache/commons/modeler/BaseModelMBean All I've been able to find so far is that this is supposedly part of the catalina.jar (not very helpful I know). all I'm trying to do is to get tomcat to start at this point. Any suggestions on how to debug this or if anyone knows what's wrong that would be great. Please let me know if you need any further information. Actually, it is supposed to be part of commons-modeler.jar which should be living in $CATALINA_HOME/server/lib. Thanks, Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
error starting tomcat5
Hi, Thanks to those of you who helped me with my previous server.xml include file issue, that worked out like a charmeventually :) Anyways, we're testing out tomcat5 on a RedHat 9 box and I keep getting this error message. java.lang.NoClassDefFoundError: org/apache/commons/modeler/BaseModelMBean All I've been able to find so far is that this is supposedly part of the catalina.jar (not very helpful I know). all I'm trying to do is to get tomcat to start at this point. Any suggestions on how to debug this or if anyone knows what's wrong that would be great. Please let me know if you need any further information. Thanks, Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Include file?
ok, since I know nothing about adding xml entites to the server.xml, I'm sure there has to be examples out there. I'll take a look and hopefully I'll be able to come back with something. Thanks, Steve -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 8:21 PM To: Tomcat Users List Subject: Re: Include file? You have to do it via XML entities. (A non-intuitive process - YMMV) -Tim Steven Garrett wrote: Hi, I was wondering if you can use include in the server.xml. What I want to do is to define a bunch of different virtual hosts within my tomcat instance, but don't want to have to constantly change the server.xml. Is this possible. I've searched the archives and the web and I don't see anything telling me on way or the other. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Include file?
ok, so I put this into my server.xml underneath the last Host entry !ENTITY virtualhosts = SYSTEM /etc/tomcat4/virtualhosts.xml / virtualhosts; And I get the following error The entity Virtualhost was referenced, but not declared When I put the entity any other way I get errors about the entity. What am I missing? Please let me know what other info you might need. Am running tomcat 4.1.24 on RedHat9 box. Thanks, Steve -Original Message- From: Hassan Schroeder [mailto:[EMAIL PROTECTED] Sent: Friday, May 07, 2004 1:36 PM To: Tomcat Users List Subject: Re: Include file? Steven Garrett wrote: ok, since I know nothing about adding xml entites to the server.xml, I'm sure there has to be examples out there. I'll take a look and hopefully I'll be able to come back with something. Uh, there's an example in the Ant FAQ that was (somewhat obliquely) pointed to yesterday; adapted, you just need something like: !DOCTYPE Server [ !ENTITY vhosts SYSTEM file:/usr/local/tomcat/conf/virtual.xml ] !-- and within your Engine section, in this case -- vhosts; The only difference I found from the Ant example was that it needed the full path or produced a FileNotFoundException. No big deal... Tested in W2K/TC4 and OSX/TC5. FWIW! -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Include file?
Hi, I was wondering if you can use include in the server.xml. What I want to do is to define a bunch of different virtual hosts within my tomcat instance, but don't want to have to constantly change the server.xml. Is this possible. I've searched the archives and the web and I don't see anything telling me on way or the other. Thanks, Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Include file?
cool, hope it works out. Thanks!! -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 5:40 PM To: Tomcat Users List Subject: Re: Include file? Look on the Ant-user list for entity includes. should work for what you need. Jake Quoting Steven Garrett [EMAIL PROTECTED]: Hi, I was wondering if you can use include in the server.xml. What I want to do is to define a bunch of different virtual hosts within my tomcat instance, but don't want to have to constantly change the server.xml. Is this possible. I've searched the archives and the web and I don't see anything telling me on way or the other. Thanks, Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Include file?
thanks again, but that didn't have what I was looking for. Seems to be more for doing builds and it isn't really what I'm searching for. My question is can I use include in the tomcat server.xml in the same fashion that I can in the httpd.conf file? And if so what's the correct syntax for doing this? Thanks, Steve -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 5:40 PM To: Tomcat Users List Subject: Re: Include file? Look on the Ant-user list for entity includes. should work for what you need. Jake Quoting Steven Garrett [EMAIL PROTECTED]: Hi, I was wondering if you can use include in the server.xml. What I want to do is to define a bunch of different virtual hosts within my tomcat instance, but don't want to have to constantly change the server.xml. Is this possible. I've searched the archives and the web and I don't see anything telling me on way or the other. Thanks, Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Incomplete HTML
On Fri, Apr 16, 2004 at 11:33:54AM -0300, Leonardo Ribas wrote: My tomcat is returning incomplete html pages when the html to be returned is too big. For example, when i want to create a combo box with all cities from my country, tomcat return a incomplete html like this: ... select optioncity 1/option optioncity 2/option optioncity 3/option ... optioncity 300/option optioncity 301/option HERE TOMCAT ENDS THE HTML FOR EXAMPLE. As another poster mentioned, normally that indicates a programming error in the servlet or JSP. I've run into this sort of error frequently. What's almost certainly happening is that somewhere in your code an exception is being thrown. The exception is being swallowed by the tomcat logger. If it's not showing up in catalina.out, it's probably showing up in the localhost_foo_etc log for that web application. If my experience is any guide, most likely the exception's in an included JSP. -- Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - Me at http://darksleep.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache Tomcat JK - Connection Problem.
Hey EC The packets are reaching the other computer, I can ping to it succesfully. Also Tomcat is running and listening to 8009. The listener definitions have not been commented out. --Steven Maybe the packets from one computer can't reach the other. Some firewall settings, maybe. Also, make sure Tomcat is running and listening on 8009 port (connector not commented out and so on) EC -Original Message- From: Steven Perry [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 9:26 AM To: [EMAIL PROTECTED] Subject: Apache Tomcat JK - Connection Problem. Hello All, I am running Apache 2 and Tomcat 5. Both are running on 2 different Win-2k machines. I've configured the httpd.conf / workers.properties and server.xml and below. My problem is :: I cannot seem to connect to Tomcat, below is the mod_jk.log too. -- httpd.conf -- LoadModule jk_module E:/Apache2/modules/mod_jk.dll JkWorkersFile E:/Apache2/conf/workers.properties JkLogFile E:/Apache2/logs/mod_jk.log JkLogLevel debug JkMount / tomcat1 JkMount /* tomcat1 -- workers.properties -- workers.apache_log= E:\Apache2\httpd workers.tomcat_home= C:\Tomcat workers.java_home= C:\j2sdk1.4.1_06 ps=\ worker.list= tomcat1 worker.tomcat1.type=ajp13 worker.tomcat1.host= 192.168.100.10 worker.tomcat1.port=8009 worker.tomcat1.cachesize=10 worker.tomcat1.cache_timeout=600 worker.tomcat1.socket_keepalive=1 worker.tomcat1.socket_timeout=300 -- server.xml -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ -- mod_jk.log -- [Thu Mar 25 12:42:25 2004] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [Thu Mar 25 12:42:25 2004] [jk_uri_worker_map.c (477)]: Attempting to map URI '/' [Thu Mar 25 12:42:25 2004] [jk_uri_worker_map.c (491)]: jk_uri_worker_map_t::map_uri_to_worker, Found an exact match tomcat1 - / [Thu Mar 25 12:42:25 2004] [mod_jk.c (1708)]: Into handler r-proxyreq=0 r-handler=jakarta-servlet r-notes=4670648 worker=tomcat1 [Thu Mar 25 12:42:25 2004] [jk_worker.c (132)]: Into wc_get_worker_for_name tomcat1 [Thu Mar 25 12:42:25 2004] [jk_worker.c (136)]: wc_get_worker_for_name, done found a worker [Thu Mar 25 12:42:25 2004] [mod_jk.c (497)]: agsp=80 agsn=localhost hostn=localhost shostn=server.ebizrusserver.com cbsport=80 sport=80 [Thu Mar 25 12:42:25 2004] [jk_ajp_common.c (1546)]: Into jk_worker_t::get_endpoint [Thu Mar 25 12:42:25 2004] [jk_ajp_common.c (1208)]: Into jk_endpoint_t::service [Thu Mar 25 12:42:25 2004] [jk_ajp_common.c (295)]: Into ajp_marshal_into_msgb [Thu Mar 25 12:42:25 2004] [jk_ajp_common.c (463)]: ajp_marshal_into_msgb - Done [Thu Mar 25 12:42:25 2004] [jk_connect.c (158)]: Into jk_open_socket [Thu Mar 25 12:42:25 2004] [jk_connect.c (165)]: jk_open_socket, try to connect socket = 1408 [Thu Mar 25 12:42:25 2004] [jk_connect.c (174)]: jk_open_socket, after connect ret = -1 [Thu Mar 25 12:42:25 2004] [jk_connect.c (203)]: jk_open_socket, connect() failed errno = 49 [Thu Mar 25 12:42:25 2004] [jk_ajp_common.c (676)]: Error connecting to tomcat. Tomcat is probably not started or is listenning on the wrong port. Failed errno = 49 [Thu Mar 25 12:42:25 2004] [jk_ajp_common.c (955)]: Error connecting to the Tomcat process. [Thu Mar 25 12:42:25 2004] [jk_ajp_common.c (1309)]: sending request to tomcat failed in send loop. err=0 Any help is appreciated. Thank you, Steve. __ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache Tomcat JK - Connection Problem.
Hello All, I am running Apache 2 and Tomcat 5. Both are running on 2 different Win-2k machines. I've configured the httpd.conf / workers.properties and server.xml and below. My problem is :: I cannot seem to connect to Tomcat, below is the mod_jk.log too. -- httpd.conf -- LoadModule jk_module E:/Apache2/modules/mod_jk.dll JkWorkersFile E:/Apache2/conf/workers.properties JkLogFile E:/Apache2/logs/mod_jk.log JkLogLevel debug JkMount / tomcat1 JkMount /* tomcat1 -- workers.properties -- workers.apache_log= E:\Apache2\httpd workers.tomcat_home= C:\Tomcat workers.java_home= C:\j2sdk1.4.1_06 ps=\ worker.list= tomcat1 worker.tomcat1.type=ajp13 worker.tomcat1.host= 192.168.100.10 worker.tomcat1.port=8009 worker.tomcat1.cachesize=10 worker.tomcat1.cache_timeout=600 worker.tomcat1.socket_keepalive=1 worker.tomcat1.socket_timeout=300 -- server.xml -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ -- mod_jk.log -- [Thu Mar 25 12:42:25 2004] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [Thu Mar 25 12:42:25 2004] [jk_uri_worker_map.c (477)]: Attempting to map URI '/' [Thu Mar 25 12:42:25 2004] [jk_uri_worker_map.c (491)]: jk_uri_worker_map_t::map_uri_to_worker, Found an exact match tomcat1 - / [Thu Mar 25 12:42:25 2004] [mod_jk.c (1708)]: Into handler r-proxyreq=0 r-handler=jakarta-servlet r-notes=4670648 worker=tomcat1 [Thu Mar 25 12:42:25 2004] [jk_worker.c (132)]: Into wc_get_worker_for_name tomcat1 [Thu Mar 25 12:42:25 2004] [jk_worker.c (136)]: wc_get_worker_for_name, done found a worker [Thu Mar 25 12:42:25 2004] [mod_jk.c (497)]: agsp=80 agsn=localhost hostn=localhost shostn=server.ebizrusserver.com cbsport=80 sport=80 [Thu Mar 25 12:42:25 2004] [jk_ajp_common.c (1546)]: Into jk_worker_t::get_endpoint [Thu Mar 25 12:42:25 2004] [jk_ajp_common.c (1208)]: Into jk_endpoint_t::service [Thu Mar 25 12:42:25 2004] [jk_ajp_common.c (295)]: Into ajp_marshal_into_msgb [Thu Mar 25 12:42:25 2004] [jk_ajp_common.c (463)]: ajp_marshal_into_msgb - Done [Thu Mar 25 12:42:25 2004] [jk_connect.c (158)]: Into jk_open_socket [Thu Mar 25 12:42:25 2004] [jk_connect.c (165)]: jk_open_socket, try to connect socket = 1408 [Thu Mar 25 12:42:25 2004] [jk_connect.c (174)]: jk_open_socket, after connect ret = -1 [Thu Mar 25 12:42:25 2004] [jk_connect.c (203)]: jk_open_socket, connect() failed errno = 49 [Thu Mar 25 12:42:25 2004] [jk_ajp_common.c (676)]: Error connecting to tomcat. Tomcat is probably not started or is listenning on the wrong port. Failed errno = 49 [Thu Mar 25 12:42:25 2004] [jk_ajp_common.c (955)]: Error connecting to the Tomcat process. [Thu Mar 25 12:42:25 2004] [jk_ajp_common.c (1309)]: sending request to tomcat failed in send loop. err=0 Any help is appreciated. Thank you, Steve. __ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat and Apache on diff m/c's
Sorry, forgot to mention the connector I was using. I to connect using JK. --Steven --- Dale, Matt [EMAIL PROTECTED] wrote: Are you trying to perhaps use JNI to connect them? Thats the only thing I can think of. -Original Message- From: Steven Perry [mailto:[EMAIL PROTECTED] Sent: 23 March 2004 06:16 To: [EMAIL PROTECTED] Subject: Tomcat and Apache on diff m/c's Hello all, I've successfully configured and run Apache 2.x and Tomcat 5.x on the same machine numerous times without any hitch. But, I'm having problems configuring them on different machines. I tried to use load-balancing but it seems not to be working. I would appareciate any help. Thank you, Steven. __ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat and Apache on diff m/c's
Hello all, I've successfully configured and run Apache 2.x and Tomcat 5.x on the same machine numerous times without any hitch. But, I'm having problems configuring them on different machines. I tried to use load-balancing but it seems not to be working. I would appareciate any help. Thank you, Steven. __ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: catalina logs
Daryl, On Thu, Mar 18, 2004 at 02:40:44PM -0500, Daryl Stultz wrote: Tomcat Users List [EMAIL PROTECTED] writes: How can catalina logs be redirected to another location? thanks, Yes, what OS are you running? Are you running as a service or from the console? I'll bite. I'm interested in this question as well. I'm using tomcat 4 on redhat linux. I understand that Tomcat has a logging API, I understand that it's a wrapper around some other log package (log4j?). I understand that using System.out.println() for logging statements is my first mistake. I haven't really had time to do much research, but I do notice that each of my webapps has its own log file. Is there a simple change I can make, maybe switching my System.out.println() invocations to invoke some logger class? -- Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - Me at http://darksleep.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat and css
On Fri, Mar 19, 2004 at 07:42:53PM -0500, Christopher Molnar wrote: Probably off topic - but I will ask anyways - how does tomcat work with css? Any tips on how to implement? Work with in what sense? If you're talking about normal web pages that use CSS, then whether they're being served by tomcat or by some other server is completely irrelevant. Tomcat serves CSS files, the same way it serves jpegs or gifs or text files or zip files, etc. -- Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - Me at http://darksleep.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Alternatives to J2EE Authentication
Hi folks, The most common (and frustrating) bookmarked login page gotcha with J2EE authentication has been oft-discussed (broken as designed) on this list. What are people's favorite alternatives to J2EE authentication? And why? Something I'm particularly interested is alternatives that don't require me to rebuild the application from scratch. I'm looking at tearing out the old login process and putting in a new one and I don't really want to start the whole thing over. If I had to build it from scratch myself, I'd do it as a simple Servlet filter that checks for a Principal object stored in the user's HttpSession. -- Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - Me at http://darksleep.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Session Persistance
Ok, I don't know what is wrong. I thought I had this working before. Yet when I stop and restart Tomcat I loose my session. Even though I see the file being saved. Context path= docBase=ROOT debug=0 Manager className=org.apache.catalina.session.PersistentManager debug=0 saveOnRestart=true maxActiveSessions=-1 minIdleSwap=-1 maxIdleSwap=-1 maxIdleBackup=-1 Store className=org.apache.catalina.session.FileStore directory=/root/sessions / /Manager /Context Can someone shed some light on this and let me know what is wrong with my configuration? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Connector Error
Hi there, I know there is a link/page that will tell me what this error is: [error] mod_jk child init 1 -2 [error] jk2_init() Can't find child 2529 in scoreboard I just can't find it. Could someone please point me to it. Thanks in advance, Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problem with doc root
I have Apache and Tomcat setup so that I can call upon the /examples directory of Tomcat. However, when I try to drill into the jsp directory I get get a 404 error from apache. The error_log indicates that it could not find the /usr/local/apache2/htdocs/examples, which indicates is pull against the DocumentRoot. My workers2.properties is as follows: [logger.apache2] level=DEBUG [shm] file=/usr/local/apache2/logs/shm.file size=1048576 channel.socket:localhost:8009] port=8009 host=localhost [ajp13:localhost:8009] channel=channel.socket:localhost:8009 [uri:/examples/*] worker=ajp13:localhost:8009 Any suggestions as to how I can get this properly configured?? Thanks, Steve
Please help me in my problem...
Hello, I need some help in configurating tomcat server. I'm doing a JSP project, I have read some documentation about tomcat and it states that i need to add some line in %CATALINA_HOME%/conf/server.xml Context path=/thesis docbase=thesis debug=0 reloadable=true crossContext=true/ but after i save the server.xml and run start tomcat, i got some error message in console. I don;t know why. And also http://localhost:8080/thesis/hello.jsp returns and error message. here are my source code of hello.jsp html boby HI /body /html here are my software and hardware information WINDOWS XP JAVA SDK 1.4.2 TOMCAT 4.1.24 Pentium III 1G 128MB 20 GB Hard Drive Please help me Thanks
Re: ant deploy
Thank you! It works! - Original Message - From: Phillip Qin [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Saturday, November 08, 2003 12:01 AM Subject: RE: ant deploy Win32 requires an extra /, so your war should be file:///${dist.home}/${app.name}-${app.version}.war or file:/${dist.home}/${app.name}-${app.version}.war -Original Message- From: Steven Woody [mailto:[EMAIL PROTECTED] Sent: November 7, 2003 10:51 AM To: Tomcat Users List Subject: Re: ant deploy deploy url=${manager.url} username=${manager.username} password=${manager.password} path=${app.path} war=file://${dist.home}/${app.name}-${app.version}.war/ When the configuration run on a Linux host, it can deploy onto the local Linux server and remove W2K server. When the same configuration run on a W2K host, it can *NOT* deploy onto either local Tomcat server nor the remove Linux server! What's the problem? - Original Message - From: Phillip Qin [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, November 07, 2003 10:36 PM Subject: RE: ant deploy Can you show us your build.xml? Mine is deploy url=http://remotehost/manager; username=${username} password=${password} path=/${your.app.name} war=${war.url}/ username: manager your.app.name: context name linux host: file:${war.dir}/${war.file} win32 host: file:/${war.dir}/${war.file} -Original Message- From: Steven Woody [mailto:[EMAIL PROTECTED] Sent: November 6, 2003 8:39 PM To: Tomcat Users List Subject: Re: ant deploy I heard the 'install' task can only communicate to local server :-( but I want to deploy to a remove tomcat. - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, November 06, 2003 9:52 PM Subject: RE: ant deploy Howdy, You want to use the install task instead of deploy most likely. Needless to say, the host name should be a valid one that you can ping/lookup ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Steven Woody [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 12:47 AM To: [EMAIL PROTECTED] Subject: ant deploy Hi, I wanna use ant deploy task to deploy a war onto Tomcat, but always got a UnknownHostName exception. What's wrong here? Did anyone used the deploy task with sucessful? Regards. -- Steven Woody This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Equipt a DBMS to Tomcat
Hi, folks MySQL and PostgreSQL, which one is the better choice for tomcat ? -- Steven Woody [EMAIL PROTECTED]
Re: ant deploy
deploy url=${manager.url} username=${manager.username} password=${manager.password} path=${app.path} war=file://${dist.home}/${app.name}-${app.version}.war/ When the configuration run on a Linux host, it can deploy onto the local Linux server and remove W2K server. When the same configuration run on a W2K host, it can *NOT* deploy onto either local Tomcat server nor the remove Linux server! What's the problem? - Original Message - From: Phillip Qin [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, November 07, 2003 10:36 PM Subject: RE: ant deploy Can you show us your build.xml? Mine is deploy url=http://remotehost/manager; username=${username} password=${password} path=/${your.app.name} war=${war.url}/ username: manager your.app.name: context name linux host: file:${war.dir}/${war.file} win32 host: file:/${war.dir}/${war.file} -Original Message- From: Steven Woody [mailto:[EMAIL PROTECTED] Sent: November 6, 2003 8:39 PM To: Tomcat Users List Subject: Re: ant deploy I heard the 'install' task can only communicate to local server :-( but I want to deploy to a remove tomcat. - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, November 06, 2003 9:52 PM Subject: RE: ant deploy Howdy, You want to use the install task instead of deploy most likely. Needless to say, the host name should be a valid one that you can ping/lookup ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Steven Woody [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 12:47 AM To: [EMAIL PROTECTED] Subject: ant deploy Hi, I wanna use ant deploy task to deploy a war onto Tomcat, but always got a UnknownHostName exception. What's wrong here? Did anyone used the deploy task with sucessful? Regards. -- Steven Woody This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ant deploy
I heard the 'install' task can only communicate to local server :-( but I want to deploy to a remove tomcat. - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, November 06, 2003 9:52 PM Subject: RE: ant deploy Howdy, You want to use the install task instead of deploy most likely. Needless to say, the host name should be a valid one that you can ping/lookup ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Steven Woody [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 12:47 AM To: [EMAIL PROTECTED] Subject: ant deploy Hi, I wanna use ant deploy task to deploy a war onto Tomcat, but always got a UnknownHostName exception. What's wrong here? Did anyone used the deploy task with sucessful? Regards. -- Steven Woody This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Bean Generation Tool?
Hi all, I have this tool I cobbled together for building vanilla java web applications. You feed it an XML config file that defines tables and columns. It generates: 1) source for simple databeans to hold those rows 2) source for simple database access classes (mapping a result set to a databean, composing an INSERT, UPDATE, or SELECT clause) 3) basic JSP forms to edit the beans. I find this tool somewhat useful, I'd like to continue to refactor it and make it more generally useful. I've done some looking at various tools out there. I'm not going to worry about the JSP side much, for the foreseeable future. JSP code is simple enough by itself, and the JSP side always ends up getting massaged extensively, so I'm not sure I really like generating it like this. (I keep meaning to read up on JSF and get a solid idea of what it brings into this but I can't seem to find a simple, concise definition of what JSF is/does.) Hiberate looks very, very cool and I want to move as much as possible to using it for the database side. I don't see anything in Hibernate - or anywhere else for that matter, though I may not be using the right google search terms - for generating the simple databeans. My immediate plans, however, are to: 1) move from using print() to using a more sophisticated code generation tool (velocity?) 2) refactor a lot of the boilerplate that gets wrapped around each databean instance variable into a set of standard input classes. E.g. instead of using a Date class and having a lot of boilerplate generated for each bean for parsing the date on input and formatting it on output, I'd have a DateInput class that would have that, and use a DateInput for the bean's instance variable. This second, in particular, it seems like there should be an existing package for already, but I haven't managed to find it. I'm thinking each input class will have: 1) getters/setters for String inputs from forms 2) getters for producing Strings appropriate to use in an SQL query. 3) an isDirty flag for determining what values where changed from the original values loaded. 4) a collection of InputTest classes that can be run against the value to make sure it's safe to enter. each TestInput would have a isValid() and getErrorMessage() Ultimately/eventually I can see that the forms and the beans and the tables should be more separated. Ideally I'd generate databeans that the forms populate, and have a separate bean-to-database-mapping mechanism. But for now I'm just trying to build a tool to build a simple solution to a specific problem. -- Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - Me at http://darksleep.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ant deploy
Hi, I wanna use ant deploy task to deploy a war onto Tomcat, but always got a UnknownHostName exception. What's wrong here? Did anyone used the deploy task with sucessful? Regards. -- Steven Woody
Can use Ant to deploy to localhost
I'v not managed to deploy an application to Tomcat using Ant's deploy task. It always reports a UnknownHostNameException. I'v checked the 'url' property, that is 'http://localhost:8080/manager', and be sure that is right. What do I do? -- Steven Woody [EMAIL PROTECTED]
RE: Tomcat, Jonas and Valves.
I figured out the problem. I had installed the valve, in my org.apache.catalina.valves, in catalina.jar in tomcat. I expected that jonas would also run the tomcat scripts, when starting up tomcat. But, instead, jonas runs its version of server.xml and web.xml (in preference to the ones defined in %tomcat_home%\conf) during startup. So, it was when i updated server.xml, in jonas\conf, it was looking for the file in its directory structure, i.e. org.apache.catalina.valves, in jonas, defined in web_catalina.jar. Once I updated this jar to include my file, its working fine with Jonas and Tomcat. The valve I made is a modified version of the RequestDumperValve. Steve. Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, What seems to be happening with the Valve? (And should I just throw away my hopes of getting people to write portable applications? Is the appeal of container-specific features really that great? Ignore these questions, I'm just asking myself ;)) Yoav Shapira Millennium ChemInformatics -Original Message- From: Steven Perry [mailto:[EMAIL PROTECTED] Sent: Monday, October 06, 2003 6:34 AM To: Tomcat Users List Subject: Tomcat, Jonas and Valves. I have implemented a Valve, and configured it in %tomcat_home%\conf\server.xml . When I run catalina start, this valve work perfectly. I have integrated tomcat and jonas, since Jonas is my preferred ejb-container. But, when i use jonas start, my valve doesn't seem to be functioning. I even configured server.xml in %jonas_base%\conf, but to no avail. If anyone has any idea how to go about this, I'd be grateful to hear from you. --Steve __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? The New Yahoo! Shopping - with improved product search
Tomcat, Jonas and Valves.
I have implemented a Valve, and configured it in %tomcat_home%\conf\server.xml . When I run catalina start, this valve work perfectly. I have integrated tomcat and jonas, since Jonas is my preferred ejb-container. But, when i use jonas start, my valve doesn't seem to be functioning. I even configured server.xml in %jonas_base%\conf, but to no avail. If anyone has any idea how to go about this, I'd be grateful to hear from you. --Steve __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help :- Filters .
Thanks a lot Jacob. I'll take a look at the docs right away. --Steve --- Jacob Kjome [EMAIL PROTECTED] wrote: You might want to look into Tomcat-specific Valve's. Valve's are essentially filters, but act at the level of Tomcat instead of at the level of each webapp and can be more powerful than filters. The Tomcat docs describe existing valves. I'd just take a look at one of those valves to get an idea of how to write your own... http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/valve.html Jake At 10:45 PM 10/3/2003 -0700, you wrote: I have configured a filter to do some preService processing (i,e, before the request is passed onto the webapp). I, initially, configured it for a single webapp (modified the relevant web.xml) and it worked fine. Now, I want to configure it such that ALL webapps use this filter. I tried to declare the filter in %tomcat_home%\conf\web.xml, but this doesn't seem to work. Pls help me. How do I go about setting this filter so that all webapps use it. (without modifying the web.xml for each and every webapp). Tahnk you very much. --Steve. __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help :- Filters .
I have configured a filter to do some preService processing (i,e, before the request is passed onto the webapp). I, initially, configured it for a single webapp (modified the relevant web.xml) and it worked fine. Now, I want to configure it such that ALL webapps use this filter. I tried to declare the filter in %tomcat_home%\conf\web.xml, but this doesn't seem to work. Pls help me. How do I go about setting this filter so that all webapps use it. (without modifying the web.xml for each and every webapp). Tahnk you very much. --Steve. __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Classes not recompiling - Have to restart Tomcat
So which would be quicker/easier? Restarting tomcat (which is handled by Eclipse, so 1 button press) or compiling the classes myself and hope tomcat picks them up? Steven Cunningham Aspiring J-Developer -Original Message- From: Seth Rubin [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 4:39 PM To: Tomcat Users List Subject: RE: Classes not recompiling - Have to restart Tomcat I wouldn't think so, but I don't know firsthand. I started with v4.1.24, where Tomcat would automatically pick up my recompiled classes. Then I went to 4.1.27 where I experienced the aforementioned problem. -- Seth Rubin ThoughtProcess Technology LLC -Original Message- From: Cunningham, Steven [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 4:25 PM To: Tomcat Users List Subject: RE: Classes not recompiling - Have to restart Tomcat Well, I'm running 4.1.12 Would that apply or has anyone had problems with that version? Steven Cunningham Database Management Group Liberty Mutual -Original Message- From: Seth Rubin [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 4:23 PM To: Tomcat Users List Subject: RE: Classes not recompiling - Have to restart Tomcat In my experience, you do have to recompile your own classes... As for class reloading, Tomcat would automatically pick up my recompiled classes until 4.1.27, which would spit out all sorts of errors instead, and I'd have to restart. I recently perused http://www.apache.org/dist/jakarta/tomcat-4/binaries/, and saw they added a hotfix which solved the problem. Get 4.1.27-hotfix-22096 from there or a mirror site, and uncompress it into your tomcat directory. -- Seth -Original Message- From: David Rees [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 3:56 PM To: Tomcat Users List Subject: RE: Classes not recompiling - Have to restart Tomcat On Wed, October 1, 2003 1at 2:49 pm, Shapira, Yoav sent the following From: Cunningham, Steven [mailto:[EMAIL PROTECTED] Hi, I'm fairly new to tomcat, and though I'm not sure why, but tomcat won't recompile my classes while I'm working. I have to manually restart tomcat each time I want it to compile. Now a couple notes: Reloadable is set to true. JSP's recompile just fine when saved. Anyone have any ideas? Are there any errors in the tomcat log? I didn't know that Tomcat would compile classes for you... I always compile classes myself and then let the automatic class reloading pick up the changes. In practice, however, I have had problems with Tomcat noticing the changed classes as well, so I usually set reloadable to false and then manually reload the context using the manager webapp when I want to reload classes. -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Classes not recompiling - Have to restart Tomcat
Anyone? :( Steven Cunningham Aspiring J-Developer -Original Message- From: Cunningham, Steven Sent: Thursday, October 02, 2003 9:06 AM To: Tomcat Users List Subject: RE: Classes not recompiling - Have to restart Tomcat So which would be quicker/easier? Restarting tomcat (which is handled by Eclipse, so 1 button press) or compiling the classes myself and hope tomcat picks them up? Steven Cunningham Aspiring J-Developer -Original Message- From: Seth Rubin [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 4:39 PM To: Tomcat Users List Subject: RE: Classes not recompiling - Have to restart Tomcat I wouldn't think so, but I don't know firsthand. I started with v4.1.24, where Tomcat would automatically pick up my recompiled classes. Then I went to 4.1.27 where I experienced the aforementioned problem. -- Seth Rubin ThoughtProcess Technology LLC -Original Message- From: Cunningham, Steven [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 4:25 PM To: Tomcat Users List Subject: RE: Classes not recompiling - Have to restart Tomcat Well, I'm running 4.1.12 Would that apply or has anyone had problems with that version? Steven Cunningham Database Management Group Liberty Mutual -Original Message- From: Seth Rubin [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 4:23 PM To: Tomcat Users List Subject: RE: Classes not recompiling - Have to restart Tomcat In my experience, you do have to recompile your own classes... As for class reloading, Tomcat would automatically pick up my recompiled classes until 4.1.27, which would spit out all sorts of errors instead, and I'd have to restart. I recently perused http://www.apache.org/dist/jakarta/tomcat-4/binaries/, and saw they added a hotfix which solved the problem. Get 4.1.27-hotfix-22096 from there or a mirror site, and uncompress it into your tomcat directory. -- Seth -Original Message- From: David Rees [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 3:56 PM To: Tomcat Users List Subject: RE: Classes not recompiling - Have to restart Tomcat On Wed, October 1, 2003 1at 2:49 pm, Shapira, Yoav sent the following From: Cunningham, Steven [mailto:[EMAIL PROTECTED] Hi, I'm fairly new to tomcat, and though I'm not sure why, but tomcat won't recompile my classes while I'm working. I have to manually restart tomcat each time I want it to compile. Now a couple notes: Reloadable is set to true. JSP's recompile just fine when saved. Anyone have any ideas? Are there any errors in the tomcat log? I didn't know that Tomcat would compile classes for you... I always compile classes myself and then let the automatic class reloading pick up the changes. In practice, however, I have had problems with Tomcat noticing the changed classes as well, so I usually set reloadable to false and then manually reload the context using the manager webapp when I want to reload classes. -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Classes not recompiling - Have to restart Tomcat
Ok, thanks. Steven Cunningham Database Management Group Liberty Mutual -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 12:08 PM To: Tomcat Users List Subject: RE: Classes not recompiling - Have to restart Tomcat Howdy, There's the same ease IMHO. If you have to pick, restart tomcat I suppose, as it's better to test from a clean start of the server than a reload, especially if you have reloading problems. Yoav Shapira Millennium ChemInformatics -Original Message- From: Cunningham, Steven [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 12:05 PM To: Tomcat Users List Subject: RE: Classes not recompiling - Have to restart Tomcat Anyone? :( Steven Cunningham Aspiring J-Developer -Original Message- From: Cunningham, Steven Sent: Thursday, October 02, 2003 9:06 AM To: Tomcat Users List Subject: RE: Classes not recompiling - Have to restart Tomcat So which would be quicker/easier? Restarting tomcat (which is handled by Eclipse, so 1 button press) or compiling the classes myself and hope tomcat picks them up? Steven Cunningham Aspiring J-Developer -Original Message- From: Seth Rubin [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 4:39 PM To: Tomcat Users List Subject: RE: Classes not recompiling - Have to restart Tomcat I wouldn't think so, but I don't know firsthand. I started with v4.1.24, where Tomcat would automatically pick up my recompiled classes. Then I went to 4.1.27 where I experienced the aforementioned problem. -- Seth Rubin ThoughtProcess Technology LLC -Original Message- From: Cunningham, Steven [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 4:25 PM To: Tomcat Users List Subject: RE: Classes not recompiling - Have to restart Tomcat Well, I'm running 4.1.12 Would that apply or has anyone had problems with that version? Steven Cunningham Database Management Group Liberty Mutual -Original Message- From: Seth Rubin [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 4:23 PM To: Tomcat Users List Subject: RE: Classes not recompiling - Have to restart Tomcat In my experience, you do have to recompile your own classes... As for class reloading, Tomcat would automatically pick up my recompiled classes until 4.1.27, which would spit out all sorts of errors instead, and I'd have to restart. I recently perused http://www.apache.org/dist/jakarta/tomcat-4/binaries/, and saw they added a hotfix which solved the problem. Get 4.1.27-hotfix-22096 from there or a mirror site, and uncompress it into your tomcat directory. -- Seth -Original Message- From: David Rees [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 3:56 PM To: Tomcat Users List Subject: RE: Classes not recompiling - Have to restart Tomcat On Wed, October 1, 2003 1at 2:49 pm, Shapira, Yoav sent the following From: Cunningham, Steven [mailto:[EMAIL PROTECTED] Hi, I'm fairly new to tomcat, and though I'm not sure why, but tomcat won't recompile my classes while I'm working. I have to manually restart tomcat each time I want it to compile. Now a couple notes: Reloadable is set to true. JSP's recompile just fine when saved. Anyone have any ideas? Are there any errors in the tomcat log? I didn't know that Tomcat would compile classes for you... I always compile classes myself and then let the automatic class reloading pick up the changes. In practice, however, I have had problems with Tomcat noticing the changed classes as well, so I usually set reloadable to false and then manually reload the context using the manager webapp when I want to reload classes. -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone
Classes not recompiling - Have to restart Tomcat
Hi, I'm fairly new to tomcat, and though I'm not sure why, but tomcat won't recompile my classes while I'm working. I have to manually restart tomcat each time I want it to compile. Now a couple notes: Reloadable is set to true. JSP's recompile just fine when saved. Anyone have any ideas? Thanks in advance Steven Cunningham Aspiring J-Developer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Classes not recompiling - Have to restart Tomcat
I don't see any errors at all. In the logs or otherwise. Steven Cunningham Aspiring J-Developer -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 3:50 PM To: Tomcat Users List Subject: RE: Classes not recompiling - Have to restart Tomcat Howdy, Are there any errors in the tomcat log? Yoav Shapira Millennium ChemInformatics -Original Message- From: Cunningham, Steven [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 3:41 PM To: [EMAIL PROTECTED] Subject: Classes not recompiling - Have to restart Tomcat Hi, I'm fairly new to tomcat, and though I'm not sure why, but tomcat won't recompile my classes while I'm working. I have to manually restart tomcat each time I want it to compile. Now a couple notes: Reloadable is set to true. JSP's recompile just fine when saved. Anyone have any ideas? Thanks in advance Steven Cunningham Aspiring J-Developer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Classes not recompiling - Have to restart Tomcat
Only things like this: 2003-10-01 15:53:40 StandardContext[/redi]: Mapping contextPath='/redi' with requestURI='/redi/modules/drone/Tools/Administration/AdministrationMain. jsp' and relativeURI='/modules/drone/Tools/Administration/AdministrationMain.jsp' 2003-10-01 15:53:40 StandardContext[/redi]: Trying exact match 2003-10-01 15:53:40 StandardContext[/redi]: Trying prefix match 2003-10-01 15:53:40 StandardContext[/redi]: Trying extension match 2003-10-01 15:53:40 StandardContext[/redi]: Mapped to servlet 'jsp' with servlet path '/modules/drone/Tools/Administration/AdministrationMain.jsp' and path info 'null' and update=true 2003-10-01 15:53:40 StandardContext[/redi]: Mapping contextPath='/redi' with requestURI='/redi/inc/style/redi.css' and relativeURI='/inc/style/redi.css' 2003-10-01 15:53:40 StandardContext[/redi]: Trying exact match 2003-10-01 15:53:40 StandardContext[/redi]: Trying prefix match 2003-10-01 15:53:40 StandardContext[/redi]: Trying extension match 2003-10-01 15:53:40 StandardContext[/redi]: Trying default match 2003-10-01 15:53:40 StandardContext[/redi]: Mapped to servlet 'default' with servlet path '/inc/style/redi.css' and path info 'null' and update=true 2003-10-01 15:53:40 StandardContext[/redi]: Mapping contextPath='/redi' with requestURI='/redi/inc/img/loading/p.gif' and relativeURI='/inc/img/loading/p.gif' 2003-10-01 15:53:40 StandardContext[/redi]: Trying exact match 2003-10-01 15:53:40 StandardContext[/redi]: Trying prefix match 2003-10-01 15:53:40 StandardContext[/redi]: Trying extension match 2003-10-01 15:53:40 StandardContext[/redi]: Trying default match 2003-10-01 15:53:40 StandardContext[/redi]: Mapped to servlet 'default' with servlet path '/inc/img/loading/p.gif' and path info 'null' and update=true Steven Cunningham Aspiring J-Developer -Original Message- From: Cunningham, Steven Sent: Wednesday, October 01, 2003 3:53 PM To: Tomcat Users List Subject: RE: Classes not recompiling - Have to restart Tomcat I don't see any errors at all. In the logs or otherwise. Steven Cunningham Aspiring J-Developer -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 3:50 PM To: Tomcat Users List Subject: RE: Classes not recompiling - Have to restart Tomcat Howdy, Are there any errors in the tomcat log? Yoav Shapira Millennium ChemInformatics -Original Message- From: Cunningham, Steven [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 3:41 PM To: [EMAIL PROTECTED] Subject: Classes not recompiling - Have to restart Tomcat Hi, I'm fairly new to tomcat, and though I'm not sure why, but tomcat won't recompile my classes while I'm working. I have to manually restart tomcat each time I want it to compile. Now a couple notes: Reloadable is set to true. JSP's recompile just fine when saved. Anyone have any ideas? Thanks in advance Steven Cunningham Aspiring J-Developer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Classes not recompiling - Have to restart Tomcat
Well, I'm running 4.1.12 Would that apply or has anyone had problems with that version? Steven Cunningham Database Management Group Liberty Mutual -Original Message- From: Seth Rubin [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 4:23 PM To: Tomcat Users List Subject: RE: Classes not recompiling - Have to restart Tomcat In my experience, you do have to recompile your own classes... As for class reloading, Tomcat would automatically pick up my recompiled classes until 4.1.27, which would spit out all sorts of errors instead, and I'd have to restart. I recently perused http://www.apache.org/dist/jakarta/tomcat-4/binaries/, and saw they added a hotfix which solved the problem. Get 4.1.27-hotfix-22096 from there or a mirror site, and uncompress it into your tomcat directory. -- Seth -Original Message- From: David Rees [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 3:56 PM To: Tomcat Users List Subject: RE: Classes not recompiling - Have to restart Tomcat On Wed, October 1, 2003 1at 2:49 pm, Shapira, Yoav sent the following From: Cunningham, Steven [mailto:[EMAIL PROTECTED] Hi, I'm fairly new to tomcat, and though I'm not sure why, but tomcat won't recompile my classes while I'm working. I have to manually restart tomcat each time I want it to compile. Now a couple notes: Reloadable is set to true. JSP's recompile just fine when saved. Anyone have any ideas? Are there any errors in the tomcat log? I didn't know that Tomcat would compile classes for you... I always compile classes myself and then let the automatic class reloading pick up the changes. In practice, however, I have had problems with Tomcat noticing the changed classes as well, so I usually set reloadable to false and then manually reload the context using the manager webapp when I want to reload classes. -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Modifying Requests; Interceptors ?
Thanks a lot Adam. I hadn't noticed that in the server.xml. It kind of satisfies my current needs. I would also require to modify the requests or create responses based on the requests before they are processed by the webapp. How should I go about this ? Interceptors ? If so, can someone please direct me to how I can procure their API, since I do not seem to have that on my tomcat 4.x Thank you in advance --Steven. --- Adam Hardy [EMAIL PROTECTED] wrote: Hi Steven, check out the AccessLogValve in your server.xml Adam On 09/29/2003 11:35 AM Steven Perry wrote: Hello All, I have got Tomcat 4.1. I would like to read all the requests that are passed onto Tomcat from all the different applications, and print them either onto the screen or a file. I could be wrong, but I so far I understand that Interceptors can be used for such a job. The thing is, I cannot find the API for Interceptors in Tomcat 4.1. a) How would I be able to get the API for Interceptors ? b) Are Interceptors the right way to go about it in the first place ? c) If not, is there any other suitable method ? --Steven. __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Modifying Requests; Interceptors ?
I notice that the BaseInterceptor is there in tomcat 3.3.1. How come it is not included in 4.1.27 and 5.0.12 ? Or prolly it is, and I cannot seem to locate it ?? --Steven --- Steven Perry [EMAIL PROTECTED] wrote: Thanks a lot Adam. I hadn't noticed that in the server.xml. It kind of satisfies my current needs. I would also require to modify the requests or create responses based on the requests before they are processed by the webapp. How should I go about this ? Interceptors ? If so, can someone please direct me to how I can procure their API, since I do not seem to have that on my tomcat 4.x Thank you in advance --Steven. --- Adam Hardy [EMAIL PROTECTED] wrote: Hi Steven, check out the AccessLogValve in your server.xml Adam On 09/29/2003 11:35 AM Steven Perry wrote: Hello All, I have got Tomcat 4.1. I would like to read all the requests that are passed onto Tomcat from all the different applications, and print them either onto the screen or a file. I could be wrong, but I so far I understand that Interceptors can be used for such a job. The thing is, I cannot find the API for Interceptors in Tomcat 4.1. a) How would I be able to get the API for Interceptors ? b) Are Interceptors the right way to go about it in the first place ? c) If not, is there any other suitable method ? --Steven. __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Capturing all Requests to Tomcat.
Hello All, I have got Tomcat 4.1. I would like to read all the requests that are passed onto Tomcat from all the different applications, and print them either onto the screen or a file. I could be wrong, but I so far I understand that Interceptors can be used for such a job. The thing is, I cannot find the API for Interceptors in Tomcat 4.1. a) How would I be able to get the API for Interceptors ? b) Are Interceptors the right way to go about it in the first place ? c) If not, is there any other suitable method ? --Steven. __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
channel.apr values
Hi, I'm a bit confused. I want to set the timeout value to 1. I was looking through the documentation and it seems like channel.apr keepalive set to 1 is what I want. And it looks like it should be in the workers2.properties file and the format should be channel.apr:keepalive=1 is the format. Is this correct, the documentation is kind of confusing on these points. Thanks, Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]