Re: Problems with mod_jk2
On Tue, 2003-06-24 at 14:38, Nikola Milutinovic wrote: mod_jk2 is bugging me properly. It is not working right now and it never did. I could have made a number of mistakes, so if someone could point at them, I'd be grateful. This are the relevant files: I second this motion! Is the best idea to go back to mod_jk as mod_webapp is depreciated? Cheers Tony Grant -- www.tgds.net Library management software toolkit, redhat linux on Sony Vaio C1XD, Dreamweaver MX with Tomcat and PostgreSQL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: installing a servlet
On Tue, 2003-06-24 at 14:42, John Turner wrote: Donwgrading and using mod_webapp is the WORST thing you could do, for all sorts of reasons. Security, for one. Performance, for another. Future extensibility and growth, for another. My question was: downgrade to mod_jk? (I have read that mod_webapp is depreciated) Mod_jk and mod_jk2 work. This is a fact. I believe you and they do even on my server! But only for JSP and I can't see what _I_ am doing wrong. So John please, all the fault is mine! I took the time to learn how to install Tomcat a few years back. I moved up through the versions. I documented how I got it working and published my HOWTO which got 3500 hits the day it appeared in Apache week (so I guess I gave a little bit back to the comunity...). What went wrong was moving up to Apache2 and Tomcat 4.1.24. I am at the bottom of the learning curve again. Should I drop mod_jk2 and try mod_jk? Cheers Tony Grant -- www.tgds.net Library management software toolkit, redhat linux on Sony Vaio C1XD, Dreamweaver MX with Tomcat and PostgreSQL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: installing a servlet
On Tue, 2003-06-24 at 15:37, John Turner wrote: Sorry, it wasn't my intent to criticize anyone, I apologize if that was the way it came across. That's OK - I am slow at re-integrating newbie mode... - the actual URL you are typing into the browser's address bar (or the value of your Form's ACTION parameter if you are having problems posting from a form to a servlet) This is my problem I am guessing (cause all the config files are to spec...) Reading further down in RE: App Developer's Guide Example I have finally gotten an error message that I understand! I have managed at last to connect by putting URL:8009/path to servlet and gotten a NullPointer exception! Now that I know how to sort out myself! =:-D Looks like I'll be back to writing some more docs RSN Cheers Tony Grant -- www.tgds.net Library management software toolkit, redhat linux on Sony Vaio C1XD, Dreamweaver MX with Tomcat and PostgreSQL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: installing a servlet
On Fri, 2003-06-20 at 14:33, John Turner wrote: Please post: - workers2.properties # Define the communication channel [shm] file=/var/log/shm.file size=1048576 # Example socket channel, override port and host. [channel.socket:localhost:8009] port=8009 host=127.0.0.1 # define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 # Uri mapping [uri:212.100.232.223/*.jsp] worker=ajp13:localhost:8009 [uri:www.tgds.net/*.jsp] worker=ajp13:localhost:8009 - relevant Host section from server.xml Host name=www.tgds.net debug=0 appBase=/var/tomcat4/webapps unpackWARs=true autoDeploy=true Aliaslocalhost/Alias Aliaswww/Alias Alias212.100.232.223/Alias Context path= docBase= debug=1/ Context path=/lmstk docBase=/var/tomcat4/webapps/lmstk debug=0/ Context path=/jFormMail docBase=/var/tomcat4/webapps/jformmail debug=1/ Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=tgds_access_log. suffix=.txt pattern=common resolveHosts=false/ /Host - relevant Context section from server.xml - servlet and servlet-mapping tags for this servlet from web.xml servlet servlet-namejFormMail/servlet-name servlet-classFormMail/servlet-class /servlet servlet-mapping servlet-namejFormMail/servlet-name url-pattern/jFormMail/url-pattern /servlet-mapping As I said the webapps work just fine. This servlet will only work if Tomcat is running standalone. Cheers Tony Grant -- www.tgds.net Library management software toolkit, redhat linux on Sony Vaio C1XD, Dreamweaver MX with Tomcat and PostgreSQL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: installing a servlet
On Mon, 2003-06-23 at 14:49, John Turner wrote: thanks for your kind patience John! Reading through the FAQs this seems to be a common problem and others seem to have fixed it much more easily... There's no URL mapping in workers2.properties that would send your servlet request to Tomcat. The only requests for www.tgds.net that will ever get to Tomcat are those URLs that end in *.jsp because of this mapping: [uri:www.tgds.net/*.jsp] If you want to map another URI, such as www.tgds.net/servlet/* you have to add it. OK Done. Which gives on startup: 2003-06-23 18:22:33 HostConfig[www.tgds.net]: Deploying web application directory jformmail 2003-06-23 18:22:33 StandardHost[www.tgds.net]: Installing web application at context path /jformmail from URL file:/var/tomcat4/webapps/jformmail 2003-06-23 18:22:33 WebappLoader[/jformmail]: Deploying class repositories to work directory /var/tomcat4/work/Apache/www.tgds.net/jformmail 2003-06-23 18:22:33 WebappLoader[/jformmail]: Deploy class files /WEB-INF/classes to /var/tomcat4/webapps/jformmail/WEB-INF/classes 2003-06-23 18:22:33 StandardManager[/jformmail]: Seeding random number generator class java.security.SecureRandom 2003-06-23 18:22:33 StandardManager[/jformmail]: Seeding of random number generator has been completed 2003-06-23 18:22:33 StandardWrapper[/jformmail:default]: Loading container servlet default 2003-06-23 18:22:33 StandardWrapper[/jformmail:invoker]: Loading container servlet invoker Cheers Tony Grant -- www.tgds.net Library management software toolkit, redhat linux on Sony Vaio C1XD, Dreamweaver MX with Tomcat and PostgreSQL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: installing a servlet
From my work of yesterday it seems that the easiest way to get a servlet to run is to downgrade to Tomcat 4.0.x and use mod_webapp... This isn't a very encouraging experience. Cheers Tony Grant -- www.tgds.net Library management software toolkit, redhat linux on Sony Vaio C1XD, Dreamweaver MX with Tomcat and PostgreSQL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
installing a servlet
Hello again, Yesterdays question was asked because I am unable to install and run a servlet (form mail servlet) from an apache Jk-Coyote enabled Tomcat 4.1.24. I have tried all the possible and imaginable paths and it always returns 404. If I run Tomcat standalone the servlet works just fine. I have been running Tomcat on my public servers for over two years. What got me was the upgrade to apache 2.0.x and Tomcat 4.1.x I am doing something wrong but despite my 2 years experience I can't find what and where. The logs aren't telling me anything useful. Once I get this sorted and working I will be releasing the form mail servlet under the GPL. Thanks for your time Tony Grant -- www.tgds.net Library management software toolkit, redhat linux on Sony Vaio C1XD, Dreamweaver MX with Tomcat and PostgreSQL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
running two services in a server
Hello, I would like to run both standalone and apache services on my server. For the moment I can run one _or_ the other. After reading through the doc I have come to the conclusion that I have a typo in my server.xml but for the life of me I can't see where I'm going wrong. Cheers Tony Grant -- www.tgds.net Library management software toolkit, redhat linux on Sony Vaio C1XD, Dreamweaver MX with Tomcat and PostgreSQL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: running two services in a server
On Thu, 2003-06-19 at 16:29, Shapira, Yoav wrote: Perhaps posting the server.xml would be good ;) I was a bit worried about posting the server.xml for a live public server to a public mailing list... Alternatively, start again from the original server.xml that comes with your installation. I'm using http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhosthowto.html and the standalone service from my 4.0.24 tree Cheers Tony Grant -- www.tgds.net Library management software toolkit, redhat linux on Sony Vaio C1XD, Dreamweaver MX with Tomcat and PostgreSQL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: running two services in a server
On Thu, 2003-06-19 at 17:00, Tim Funk wrote: The java web services developer pack (from sun) has multiple services if you need a reference server.xml (i think) Looks a lot like mine =:-( Cheers Tony Grant -- www.tgds.net Library management software toolkit, redhat linux on Sony Vaio C1XD, Dreamweaver MX with Tomcat and PostgreSQL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]