RE: Xvfb and tomcat - how?
I'm bemused to report that my problems were (of course) a result of my own mistakes. The NoClassDefFound error was not the cewolf faq problem of missing X but rather an actual missing jar! On top of that JkMount wasn't configured to properly intercept calls to cewolf*. Things are now working fine with -Djava.awt.headless=true, but for my own amusement (!) I tried but still failed to get xvfb to work (image download just hangs). The input from the list did, however, provide the ever valuable info that it _should_ work, and based on that I finally found the solution. Thanks all for your help, Oliver -Original Message- From: Oliver Meyn [mailto:[EMAIL PROTECTED] Sent: March 27, 2003 16:28 To: Tomcat Users List Subject: RE: Xvfb and tomcat - how? Hi Eric, I'm curious as to what problems you are having with Cewolf and JFreeChart when using the headless=true attribute. I have samples of both CeWolf and JFreeChart running fine on Tomcat 4.1.18 and 4.1.24 with just setting -Djava.awt.headless=true in the Tomcat startup. RH 7.3 and 8.0 JDK 1.4.1_02 Well now that _is_ interesting... Before we get any further I will make a dead simple test app (or perhaps use one of the demo wars) and test a few different possibilities - as it stands I'm either getting a NoClassDefFound exception (which is a symptom of the headless problem according to the CeWolf faq) or the image hangs while loading. Of course everything is fine on my windows machine. I'll report back with my results. Thanks all, Oliver - 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]
Xvfb and tomcat - how?
Hi all, I'm using the cewolf taglib (which incorporates JFreeChart) to draw charts on Linux. It would seem that cewolf requires an x-server to draw its charts (-Djava.awt.headless=true is _not_ good enough) and one possible solution is using Xvfb. The trouble is I can't seem to get Tomcat and the xvfb to communicate - the cewolf img just hangs on an eternal load. Anyone successfully set this combo up can give me a step-by-step? I've tried: Xvfb :1 export DISPLAY=:1 tomcat/bin/startup.sh and variations on that theme but always the same problem. I'm running Tomcat 4.0.6, j2sdk1.4.1_02, Apache 1.3.27 on RH 7.3 (2.4.18). Many thanks in advance, Oliver Oliver Meyn [EMAIL PROTECTED] Things should be made as simple as possible, but no simpler. - Albert Einstein - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Xvfb and tomcat - how?
Hi Paul, hiya: Yip: I've been using JFreeChart with huge success on a headless linux box: You do not need Tomcat and xvfb to communicate as such, xvfb just needs to be running. I start mine with Xvfb :0 -screen 0 1600x1200x32 Did you have to do any special recompiling with those settings in effect? I've read that some are having to do that, but it's not clear to me how/why ie have to recompile code on the production box? Getting closer, Oliver - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Xvfb and tomcat - how?
Hi Paul, Thanks for being precise - I'm very pleased to know that it is possible with my setup - now I just need to figure out what's wrong. I suspect it is the cewolf tags which introduce their own AWT dependencies above and beyond Jfreechart. That's easy enough to test, which I'm doing now :) Cheers, Oliver -Original Message- From: p niemandt [mailto:[EMAIL PROTECTED] Sent: March 27, 2003 15:32 To: Tomcat Users List Subject: RE: Xvfb and tomcat - how? Hi Oliver: Nope: My deployment is extremely simple: I have 2 boxes: One Dev, one Prod: I compile my servlet on my dev box (RedHat 8.0, XFree 4, KDE 3.1, JDK 1.4, Tomcat 4.18), and copy the results to my prod box: (RedHat 7, JDK 1.4, Tomcat 4.18, console only). I just run Xvfb before starting Tomcat / make sure it is running - Just to reiterate, I do not use the headless vm settings at all on my production box, and I have not had any problems. Tomcat Xvfb has been running for a few months non stop now ... hth, Paul On Thu, 2003-03-27 at 20:19, Oliver Meyn wrote: Hi Paul, hiya: Yip: I've been using JFreeChart with huge success on a headless linux box: You do not need Tomcat and xvfb to communicate as such, xvfb just needs to be running. I start mine with Xvfb :0 -screen 0 1600x1200x32 Did you have to do any special recompiling with those settings in effect? I've read that some are having to do that, but it's not clear to me how/why ie have to recompile code on the production box? Getting closer, Oliver - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- p niemandt [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: Xvfb and tomcat - how?
Hi Eric, I'm curious as to what problems you are having with Cewolf and JFreeChart when using the headless=true attribute. I have samples of both CeWolf and JFreeChart running fine on Tomcat 4.1.18 and 4.1.24 with just setting -Djava.awt.headless=true in the Tomcat startup. RH 7.3 and 8.0 JDK 1.4.1_02 Well now that _is_ interesting... Before we get any further I will make a dead simple test app (or perhaps use one of the demo wars) and test a few different possibilities - as it stands I'm either getting a NoClassDefFound exception (which is a symptom of the headless problem according to the CeWolf faq) or the image hangs while loading. Of course everything is fine on my windows machine. I'll report back with my results. Thanks all, Oliver - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Graphics (CEWOLF) using tomcat4.0.3
Not sure if it's relevant to you, but if you move to JDK1.4.1 you can run headless, which means the JFreeChart libraries won't try to call the X11 libraries for drawing (which seems to be what you're trying to get around with the PJA). It's a very annoying problem you're trying to solve - good luck. Oliver -Original Message- From: Iain Downie [mailto:[EMAIL PROTECTED]] Sent: February 4, 2003 06:16 To: Tomcat Users List Subject: Graphics (CEWOLF) using tomcat4.0.3 Deat List, I'm trying to get charts embedded into my web applications using Tomcat 4.0.3 and JDK1.3.1. The graphing and servlet software is CEWOLF (incorporating JFreeChart). I have no bother getting the charts to show on Windows, but I face a problem rendering the images on Linux, which is what I really want. I understand what the problems are, and need to install the Pure Java AWT libraries. However, I'm having a helluva time working out how to set Tomcat up so that no matter what web application I run on Tomcat, these libraries will be available. Has anyone else ever used the PJA Toolkit (http://www.eteks.com/pja/en)? Would really appreciate some help configuring. Iain - 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: Graphics (CEWOLF) using tomcat4.0.3
Umm... http://www.rpmfind.net/linux/rpm2html/search.php?query=xvfbsubmit=Search+.. .system=redhat-7.2arch= Finding and using rpmfind made all the difference for me on the road to linux happiness :) Cheers, Oliver ps sorry for wrap... -Original Message- From: Iain Downie [mailto:[EMAIL PROTECTED]] Sent: February 4, 2003 10:13 To: Tomcat Users List Subject: Re: Graphics (CEWOLF) using tomcat4.0.3 We use the xvfb to achieve that goal. (It's typically part of the linux distribution) Yeh, I have read about this, but I did a 'find' for Xvfb on our RedHat 7.2 installation, and it didn't appear as an executable. As usual (being a bit of a Linux grunt) I could find no obvious documentation on the system to re-install or get it running. This would have been my favoured choice as it means not changing anything to do with Tomcat or Oracle App Server, however my ignorance made me look at alternativeshence the toolkit. Iain With that it works quite transparently without any additional toolkit. The only thing we have to change in the tomcat installation is to set an env var DISPLAY that points to te virtual frame buffer. - 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: Global Resource Def JDBC Pool
Hi Jason, I think you're right that this isn't tomcat - this error has only appeared for me when either the dbase really isn't there (yes, I've forgotten to start it, *sigh*), or more often, port 3306 is closed/filtered. With XP you might be having firewall issues (dunno how configurable it is, although on Home I think it's on/off, *sigh*), or maybe the user tomcat is running as isn't authorized? I'd try running nmap first and if 3306 is closed then you know the problem, and can start figuring out a solution. Cheers, Oliver -Original Message- From: Jason Jonas [mailto:[EMAIL PROTECTED]] Sent: November 22, 2002 12:03 To: [EMAIL PROTECTED] Subject: Global Resource Def JDBC Pool snip Result of getting a connection: java.sql.SQLException: Cannot connect to MySQL server on localhost:3306. Is there a MySQL server running on the machine/port you are trying to connect to? (java.net.BindException) I've tried connecting to a Pointbase DB with the same results. I am able to make a direct connection to any database without any problems whatsoever. I don't think it's a web-app/Tomcat config issue because I'm able to get as far as Tomcat *trying* to connect to the DB. So I'm thinking it's some other config issue. Maybe it's an XP-thing? Any and all info is appreciated. Thanks! Jason /snip -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
JkMount only *jsp but include index.jsp?
Hi all, Running Apache 2 and Tomcat 4.0.4 integrated with Jk on RH 7.3, I would like my virtual hosts to display the index.jsp file instead of the dir listing, but only send *jsp to tomcat, so that other files (most notably a phpBB) are handled normally under apache. In httpd.conf my (snipped) virtual host looks like this: DirectoryIndex index.jsp index.php index.html JkMount /*jsp ajp13 which allows everything to work except when looking into directories eg http://mydomain.com/ which produces a dir listing instead of the rendered index.jsp. If I change the virtual host listing to: DirectoryIndex index.jsp index.php index.html JkMount /* ajp13 then I get index.jsp for my directory instead of a contents listing (good), but then everything is getting passed to tomcat and it doesn't understand php (bad). All help appreciated, and TIA, Oliver Oliver Meyn [EMAIL PROTECTED] Things should be made as simple as possible, but no simpler. - Albert Einstein -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: JkMount only *jsp but include index.jsp?
Thanks, John. Turns out I had the welcome-files set properly, but still no joy. I ended up going with your index.html in every home because it, while inelegant, is good and obvious to me and (more importantly) to Apache. Cheers, Oliver Check out the welcome-file option in web.xml. Set that to index.jsp and you should be OK. If you need Apache to understand that / = index.jsp you'll need to do something like set DirectoryIndex in your virtual host container in httpd.conf, and if that doesn't work, you'll need to either get the sledgehammer out and use mod_rewrite, or just stick a file called index.html in the same directory as index.jsp, and have index.html contain a zero-second META refresh to index.jsp. You could also write a filter that would look at every request and trap requests without a filename and do a redirect to index.jsp. Lots of options, it pretty much depends on what you are comfortable doing, and how much work you want to devote to doing it. My preference is to use the index.html refresh option...my personal rule is to stick an index.html file into _every_ directory reachable by Apache that does a refresh back to the main page. Stops prowlers. John -Original Message- From: Oliver Meyn [mailto:oliver;mineallmeyn.com] Sent: Wednesday, November 06, 2002 12:17 PM To: TOMCAT Subject: JkMount only *jsp but include index.jsp? Hi all, Running Apache 2 and Tomcat 4.0.4 integrated with Jk on RH 7.3, I would like my virtual hosts to display the index.jsp file instead of the dir listing, but only send *jsp to tomcat, so that other files (most notably a phpBB) are handled normally under apache. In httpd.conf my (snipped) virtual host looks like this: DirectoryIndex index.jsp index.php index.html JkMount /*jsp ajp13 which allows everything to work except when looking into directories eg http://mydomain.com/ which produces a dir listing instead of the rendered index.jsp. If I change the virtual host listing to: DirectoryIndex index.jsp index.php index.html JkMount /* ajp13 then I get index.jsp for my directory instead of a contents listing (good), but then everything is getting passed to tomcat and it doesn't understand php (bad). -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Help: map htdocs/mediachex to webapps/mediachex w/ mod_jk almost there
JkMount /mediachex ajp13 JkMount /mediachex/* ajp13 Does JkMount /mediachex/ ajp13 do anything good? I've had many fights trying to get that DirIndex to show up properly, and the trailing slash without * has worked at least once. Hope it helps, Oliver -Original Message- From: Qmail List [mailto:[EMAIL PROTECTED]] Sent: October 16, 2002 17:28 To: Tomcat Users List Subject: Help: map htdocs/mediachex to webapps/mediachex w/ mod_jk almost there snip -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]