RE: Creating mod_jk.so from src for HP-UX
the official HP-UX apache 1.3.27 with mod_jk can be download from http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo .pl?productNumber=B9415AA132702 While this come with tomcat 3.3 you can just rm it if you so choose or http://www.hp.com/products1/unix/webservers/apache/downloads/index.html or you could just use the mod_jk with your current installation. If you would still like to install from scratch you can find the files you are missing at: http://hpux.cs.utah.edu/, search on gnu or the file you are missing the main software site is: http://www.software.hp.com/ Jeff -Original Message- From: Insley, Simon (Contractor) (DSIO) [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2003 12:25 PM To: '[EMAIL PROTECTED]' Subject: Creating mod_jk.so from src for HP-UX My goal is to have a working version of Apache 1.3.27 that invokes Tomcat 4.1.24 using mod_jk, so that the application's JSP files are invoked correctly from the Apache server. At this point, I have Apache installed and working, Tomcat installed and working, independently, but not the mod_jk. I can't get a mod_jk.so file compiled from the source file, jakarta-tomcat-connectors-jk-1.2.4-src.tar.gz, provided on the Tomcat web site. I have tried to read all available documentation on the installation of mod_jk for Tomcat 4.1.24 and Apache 1.3.27 and earlier releases of both. I understand that mod_jk is now in the connectors download. I am working on HP-UX, so don't believe any of the binaries with work for me. So I am trying to build mod_jk.so from source. I have searched the information in the mail archive, read the John Turner's Howto, and all of the howto's provided by Apache and Jakarta projects. The instructions don't apply because the files aren't in the distribution that I can find. The instructions state that I should run configure. However, there is no configure. Other information indicates that I should make buildconf.sh executable and run it. I have tried that. I have libtools installed from apr-0.9.3, but it can't find libtoolize in that. I have put this path to libtool on both the path and the classpath, still no luck. I error on each statement in the buildconf.sh script. Exact error: $ ./buildconf.sh libtoolize --force --automake --copy ./buildconf.sh[4]: libtoolize: not found. aclocal ./buildconf.sh[8]: aclocal: not found. automake -a --foreign -i --copy ./buildconf.sh[10]: automake: not found. autoconf ./buildconf.sh[12]: autoconf: not found. Other instructions state that I should run ant on the entire connector directory. After correcting the file names on many files (java or properties was cut off because of length), I was able to successfully run ant. However, this does not yield a mod_jk.so, nor does it yield a working configure file anywhere in the jakarta-tomcat-connectors-4.1.24-src directory. Just so that you know I am not a complete idiot, I was able to follow the instructions to create the mod_jk.so file using Tomcat 3.3.1a final. Since mod_jk is now separated and there is no configure file among the source, those instructions and experience don't apply. What next? What are working instructions for building the mod_jk.so library on HP -UX that use the available software in the source bundle? Simon - 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: Rotating catalina.out.
Something I have always wanted to try was to modify this line of the catalina.sh $JAVA_HOME/bin/java $CATALINA_OPTS -classpath $CP \ -Djava.security.manager \ -Djava.security.policy==$CATALINA_BASE/conf/catalina.policy \ -Dcatalina.base=$CATALINA_BASE \ -Dcatalina.home=$CATALINA_HOME \ org.apache.catalina.startup.Bootstrap $@ start \ $CATALINA_BASE/logs/catalina.out to use the rotatelogs progran from apache, see for example http://httpd.apache.org/docs-2.0/logs.html#piped or simply catalina.sh do the rotation here using mv of course you have to remeber to update the script when you install a new tomcat -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2003 11:00 AM To: Tomcat Users List Subject: Re: Rotating catalina.out. In windows - your screwed. In unix: (YMMV) cp -f catalina.out catalina.out-old cat /dev/null catalina.out In a nutshell - wacky every developer upside the head which uses System.out, System.err. Then make them use a logging package such as log4j, commons-logging, ... And catalina.out becomes unused -Tim Eric J. Pinnell wrote: Hi, Our catalina.out gets rather large. We would like to keep the data. Does anybody have a good solution for rotating it w/o restarting the application? Or can that even be done? I was thinking of renaming the file and then touching catalina.out to create a new file but I have some concerns that tomcat won't write to the file once it sees it move. Anybody have any thoughts? -e - 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: Rotating catalina.out.
Will do. I have to do a new test server install over the next week anyway, so I will work through the various permutations and post the results. Jeff -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2003 11:40 AM To: Tomcat Users List Subject: RE: Rotating catalina.out. Howdy, Can you submit your proposed modification to the script, and what it would require (e.g. downloading rotatelogs and placing it somewhere)? I think catalina.out rotation is a generically useful enough feature to make its way into the tomcat distribution eventually... Yoav Shapira Millennium ChemInformatics -Original Message- From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2003 1:28 PM To: 'Tomcat Users List' Subject: RE: Rotating catalina.out. Something I have always wanted to try was to modify this line of the catalina.sh $JAVA_HOME/bin/java $CATALINA_OPTS -classpath $CP \ -Djava.security.manager \ -Djava.security.policy==$CATALINA_BASE/conf/catalina.policy \ -Dcatalina.base=$CATALINA_BASE \ -Dcatalina.home=$CATALINA_HOME \ org.apache.catalina.startup.Bootstrap $@ start \ $CATALINA_BASE/logs/catalina.out to use the rotatelogs progran from apache, see for example http://httpd.apache.org/docs-2.0/logs.html#piped or simply catalina.sh do the rotation here using mv of course you have to remeber to update the script when you install a new tomcat -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2003 11:00 AM To: Tomcat Users List Subject: Re: Rotating catalina.out. In windows - your screwed. In unix: (YMMV) cp -f catalina.out catalina.out-old cat /dev/null catalina.out In a nutshell - wacky every developer upside the head which uses System.out, System.err. Then make them use a logging package such as log4j, commons-logging, ... And catalina.out becomes unused -Tim Eric J. Pinnell wrote: Hi, Our catalina.out gets rather large. We would like to keep the data. Does anybody have a good solution for rotating it w/o restarting the application? Or can that even be done? I was thinking of renaming the file and then touching catalina.out to create a new file but I have some concerns that tomcat won't write to the file once it sees it move. Anybody have any thoughts? -e - 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 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: Stability under HP-UX
We have not had any problems with Tomcat on HP-UX. What JVM are you using? Also, here are some recommeded kernel parameters maxusers512 nproc 2068 max_thread_proc 3000 nkthread6000 nfile 3 maxfiles2048 maxfiles_lim2048 ncallout6000 maxdsiz 2063835136 Until we made our params, similar to these values, we had severe JAVA hotspot instability. Granted we were using JRUN 2.3.3 at the time. Jeff -Original Message- From: Allen Byington [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2003 1:27 PM To: Tomcat Users List Subject: Stability under HP-UX Tomcat freezes after an indeterminate amount of time. It just stops responding to requests. Doesn't time out and the process doesn't stop. I've done everything that I can think of to stabilize this and was hoping someone had had a similar problem with stability under hp-ux. I've altered the amount of memory that java is starting with up to 256MB and there was no change. When the process hangs, it is truly hosed and can't be killed with anything other than a kill -9. The kill -3 to force a coredump doesn't seem to do anything at all and it stops writing to the logs long before I get to kill it so there isn't an error message of any kind. I'm desperate and looking for ideas. Any help that anyone could give would be greatly appreciated. Thanks Allen Byington [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: GET SOME MANNERS!!!!! Re: TO SIMONE LEIGH
That does not always work. I have been trying for six months to change the email to which Tomcat sends. Followed all instructions in all emails sent back to me by the automated listserve program. I even wrote a quick and dirty mail program to pretend to be my old address. I have written directly to [EMAIL PROTECTED] half a dozen times, all to no avail. I figure once the old alias gets deleted from the corporate MX records, enough email will bounce that the ezmlm program will simply remove me from the distribution list and I will register under my current email address. -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 5:34 PM To: Tomcat Users List Subject: RE: GET SOME MANNERS! Re: TO SIMONE LEIGH send an email to [EMAIL PROTECTED] from the account you are receiving emails on Filip -Original Message- From: Simone Leigh [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 4:27 PM To: Tomcat Users List Subject: GET SOME MANNERS! Re: TO SIMONE LEIGH it's not working, that's why i asked! you people are driving me nuts From: Angus Mezick [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] Date: Tue, 3 Jun 2003 13:24:37 -0400 To: Tomcat Users List [EMAIL PROTECTED] Subject: TO SIMONE LEIGH Please read the whole message(especially the last couple of lines detailing UNSUBSCRIBE instructions) and do it yourself. -Original Message- From: Simone Leigh [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 1:10 PM To: Tomcat Users List Subject: Re: Forms and JSPs PLEASE TAKE ME OFF THIS LIST!!! From: Jason Bainbridge [EMAIL PROTECTED] Organization: KDE Web Team Reply-To: Tomcat Users List [EMAIL PROTECTED] Date: Sat, 31 May 2003 08:43:29 +0800 To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Forms and JSPs On Sat, 31 May 2003 08:30, Jeff Knox wrote: Has anybody ever seen JSP pages that work with forms using the POST method and not the GET method? I am using Apache 1.3.22 and Tomcat 4.1.24. Yup I am using it in work's intranet application but with Apache 2.0.44 Tomcat 4.1.24, I also use GET on a few forms without any problems. :) -- Jason Bainbridge KDE Web Team - http://kde.org [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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: security of server.xml
We have the people who deploy to our servers use the AES routines from http://www.bouncycastle.org/ and create encrypted username and passwords to place in the server.xml or web.xml and then decrypt in the java. Have not kept up to date on what routines sun provides in its packages these days. Of course you have to store the keys some place, keystore I guess would be the best, and if someone is capable of spending enough time on your server to track down all the file locations needed to crack the code, you have other worries. This does not solve any insecure transmission to and from the database but with luck you have that behind a firewall. Jeff -Original Message- From: Mohamed Tagari [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 9:05 AM To: Tomcat Users List Subject: Re: security of server.xml HI, the database contains sensitive information and so the password and username should not be available even as a read only.. Due to the sensitivity of the data it could be seen viable to recompile the code, and redeploy your application. mo On Thu, 5 Jun 2003, John Turner wrote: Well, if you put in code, then every time it changes you need to recompile your code, and redeploy your application. If you put it in server.xml, you don't ever have to do that. The security on server.xml is easy: chmod 700 TOMCAT_USER TOMCAT_USER = whatever user Tomcat runs as John On Thu, 5 Jun 2003 10:40:21 +0100 (BST), Mohamed Tagari [EMAIL PROTECTED] wrote: Hi, Is there any way of taking the password and username for connecting to a database out of the server.xml, and placing it in code before the lookup is done on this?? As having the username and password as plain text is not very secure.. // java code Context init = new InitialContext(); Context ctx = (Context) init.lookup(java:comp/env); DataSource ds = (DataSource) ctx.lookup(jdbc/myoracle); // extract from server.xml Resource name=jdbc/myoracle auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/myoracle . . . parameter nameusername/name valuescott/value /parameter parameter namepassword/name valuetiger/value /parameter . . /ResourceParams mo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - 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: newbie question: mod_jk not working Win 2000
I would suggest your answer to another user a few minutes ago. Make sure you start tomcat before apache. I usaully wait 30 secs bewteen tomcat and apache Also after you start tomcat try telnet localhost 8009 to truly determine if the ajp connector is working. If you get connection refused, there is no listener Jeff -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 1:40 PM To: Tomcat Users List Subject: Re: newbie question: mod_jk not working Win 2000 Sorry, I'm stumped. Things look OK to me. Anyone else? John On Fri, 6 Jun 2003 15:35:27 -0400, Keith Adams [EMAIL PROTECTED] wrote: John You're correct in the first point. I fixed that (using the correct name mod_jk-2.0.43.dll). Yes, it's loading the mod_jk.conf, because if I run apache.exe -t from the command line and deliberately introduce an error into the mod_jk.conf, Apache reports the syntax error. When I remove the deliberate error, I get Syntax Ok. Thanks, Keith - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - 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: newbie question: mod_jk not working Win 2000
You might try setting debug=99 in the connector tag so as to generate a good deal of logging in catalina.out when the server starts up You might also want to try the non-coyote connector right below the one you are using. !-- Define an AJP 1.3 Connector on port 8009 -- !-- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ -- -Original Message- From: Jason Bainbridge [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 2:28 PM To: Tomcat Users List Subject: Re: newbie question: mod_jk not working Win 2000 On Sat, 7 Jun 2003 03:09, Keith Adams wrote: Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ Possibly connectionTimeout=0 is causing a problem, I notice mine from 4.1.18 was set to 2 and I re-used that for 4.1.24 but 4.1.24 has it set to 0 by default. I'm running mod_jk2 and tried to see what would happen setting it to 0 but it had no effect, so I don't think this is it but it can't hurt to try. Also are there any cannot bind to port related errors in your log files when starting up, either CATALINA_HOME\logs\localhost_date.txt or APACHE_HOME\logs\stderr.log? For some reason it seems like the listener on port 8009 isn't starting up. Regards, -- Jason Bainbridge http://jblinux.org - 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: Taglib declaration - illegal character \64 (FAQ)
If I do % @taglib uri=fred.jar prefix=fred % I get an illegal character error similar to yours. Have you tried completly retyping the line from scratch(you may have whitespace and not realize it) to have it match Jason's suggestion of %@ taglib prefix='c' uri='http://java.sun.com/jstl/core' % , with double or single quotes which from other taglib examples I have seen you need the space after %@ -Original Message- From: Schwartz, David (CHR) [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 12:20 PM To: 'Tomcat Users List' Subject: RE: Taglib declaration - illegal character \64 (FAQ) yes. I have the temp folder already. -Original Message- From: Jason Bainbridge [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 2:12 PM To: Tomcat Users List Subject: Re: Taglib declaration - illegal character \64 (FAQ) Can you try creating a temp directory in your CATALINA_HOME and then try again? Seems it is a common cause of similar errors as I just read here: http://www.thejspbook.com/faq/details.jsp?id=1023 Not exactly the kind of thing that one would look for with such an error but hopefully it works. :) Regards, -- Jason Bainbridge http://jblinux.org On Thu, 5 Jun 2003 02:06, Schwartz, David (CHR) wrote: Jason, When I do... %@ taglib prefix='c' uri='http://java.sun.com/jstl/core' % I get... org.apache.jasper.JasperException: This absolute uri (http://java.sun.com/jstl/core) cannot be resolved in either web.xml or the jar files deployed with this application - 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: Strange mod_jk error
Denise, I could not see in the email trail if it ever was determined that you truly have a listener on the ajp13 port for the problem domain if you do telnet test.mysite.com 8009 or whatever the correct domain/port for your current configuration do you get a valid telnet response? also if you are on linux, you can do a netstat -a | grep LISTEN to see what is addresses and port have listeners Jeff -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 10:58 AM To: 'Tomcat Users List' Subject: RE: Strange mod_jk error Well it throws me two warnings: [Tue Jun 3 11:16:23 2003] [warn] VirtualHost www.ptp.com:80 overlaps with VirtualHost test.ptp.com:80, the first has precedence, perhaps you need a NameVirtualHost directive [Tue Jun 3 11:16:23 2003] [warn] VirtualHost www.ptp.com:443 overlaps with VirtualHost test.ptp.com:443, the first has precedence, perhaps you need a NameVirtualHost directive I'm in the process of trying to get this problem worked out. Other than this, the syntax is OK. Denise -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 12:45 PM To: Tomcat Users List Subject: Re: Strange mod_jk error A configtest of Apache returns Syntax OK? John On Tue, 3 Jun 2003 12:50:25 -0400, Denise Mangano [EMAIL PROTECTED] wrote: Those lines are at the top of my mod_jk.conf (the one I edited) and my Include statement points to my version of the mod_jk.conf. This is a strange problem, I've searched the archives but can't seem to find a fix. Whats worse is that it doesn't give more detail on the error, for example what file and line the error occurs on... Denise -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 12:18 PM To: Tomcat Users List Subject: Re: Strange mod_jk error The mod_jk.conf file isn't getting used unless there is an Include directive in httpd.conf to include it. Make sure you have these lines somewhere, either hard-coded in httpd.conf, or at the top of your mod_jk.conf file: JkWorkersFile /path/to/workers.properties JkLogFile /path/to/mod_jk.log JkLogLevel emerg John On Tue, 3 Jun 2003 12:05:09 -0400, Denise Mangano [EMAIL PROTECTED] wrote: I noticed that having the worker named worker wasn't the smartest thing, so I changed it to worker1 and still got the same problem. Now the strange thing is, I did not have an include statement in my httpd.conf. I had originally set this up a while ago, so to be honest I am not sure why I didn't have it there, because I remember putting it in when I followed your how-to. So this means that I have been using the auto generated mod_jk.conf (is that right?). I tried to 1) change the worker name to ajp13 and 2) include the edited mod_jk.conf. I am still getting the error message when I start up apache stating that there was an error opening the workers and jk will not work. When I try to access a jsp page I still get the same error message in my mod_jk.log stating that it is looking for worker ajp13, but the worker is not found. It appears that the actual problem is opening the workers.properties... The system finds it, sets the rules, attempts the matches the URI request, and eventually finds a context match for the worker. The problem is when looking for the worker it does not see it. It would make sense that this would happen since Apache is having trouble opening the workers.properties file. The strange thing is that Apache is also stating there is No such file or directory but the file is in fact there, and all the paths pointing to it are correct. Any other suggestions? Should I maybe post my files? Thanks, Denise -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 9:59 AM To: Tomcat Users List Subject: Re: Strange mod_jk error On Tue, 3 Jun 2003 09:51:14 -0400, Denise Mangano [EMAIL PROTECTED] wrote: 1) It is possible that I am still using the auto generated mod_jk.conf file - which would have worked previously when I had one default host set up, but will not work now that I have added in the virtual hosts? How can I check this to make sure that I am using my version of mod_jk.conf found in /tomcat/conf and not the auto generated one in /tomcat/conf/auto? The problem with this possibility is that I get this error message when trying either Virtual Host (even the one that is in the generated mod_jk.conf) . There's no way to check, as far as I know. It would be based on the Include statement in httpd.conf. Is it possible that your Apache restart didn't actually happen? Sometimes the restart option doesn't behave...I have more luck actually shutting Apache down, then starting it back up. 2) The permissions are wrong on the workers.properties file: permissions are read everyone, write owner I doubt
RE: Strange mod_jk error
You might check in your /etc/services file to see if 8009 corresponds to one of the names listed in your net stat you might try the netstat and change the grep to 8009 and see if there is any mention of it at all. Given the fact that your original error report was In jk_endpoint_t::service, Error sd = -1 I would hazard a guess that everything was working originally except that you had the ajp13 port worngly specified in your workers.properties or in your server.xml. From my own tests I can only get anjk_endpoint_t::service error if apache is able to find the worker but the i/port are wrong in worker.properties. You current problem of not being able to find a worker is most likely an artifact of trying changing things in your configuration files one too many times. Suggestion: 1) Stop all instances of apache 2) Stop all instances of tomcat use kill -9 if need be to ensure no JVMs are left (Unless of course this is a production server and you cannot be that indiscrimate) 3)Start tomcat 4) telnet tomcat-ajp13-domain tomcat-ajp13-port (as specified in server.xml for the ajp13 connector tag) 5) netstat -a | grep LISTEN one of these tests should demonstrate the existence of your listener. If not check catalina.out for ajp13 error messages 6) once you are confident that your listener is correct recreate your workers.property to have the correct tomcat-ajp13-domain tomcat-ajp13-port information entered. 7) check that your virtual host is loading this file or place the JkWorkersFile command outside all virtual host to make sure everyone uses it. 8) restart apache and watch the mod_jk logs and see that it load your workers file correctly 9) hit webpage and hopefully it will work. -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 11:51 AM To: 'Tomcat Users List' Subject: RE: Strange mod_jk error Ok, dumb question. Does port 8009 have to be open on my firewall then? If so then how was it possibly working before? I can only telnet on port 80 and port 443 (These are the only ports open on my firewall). The results of the netstat are: tcp0 0 *:32768 *:* LISTEN tcp0 0 *:login *:* LISTEN tcp0 0 *:vboxd *:* LISTEN tcp0 0 *:sunrpc*:* LISTEN tcp0 0 *:ssh *:* LISTEN tcp0 0 cdiserv:smtp*:* LISTEN unix 2 [ ACC ] STREAM LISTENING 1257 /dev/gpmctl unix 2 [ ACC ] STREAM LISTENING 1324 /tmp/.font-unix/fs7100 I am getting the feeling something is not right... But it did work at one point with the single virtual host... In httpd.conf Port 80 BindAddress * NameVirtualHost * If HAVE_SSL Listen 80 Listen 443 /IfDefine ServerName www (overwritten within Vhosts) Thanks, Denise -Original Message- From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 1:06 PM To: 'Tomcat Users List' Subject: RE: Strange mod_jk error Denise, I could not see in the email trail if it ever was determined that you truly have a listener on the ajp13 port for the problem domain if you do telnet test.mysite.com 8009 or whatever the correct domain/port for your current configuration do you get a valid telnet response? also if you are on linux, you can do a netstat -a | grep LISTEN to see what is addresses and port have listeners Jeff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tar.tar binary
Patricia, Be carefull with the HP tar for unpacking files for tomcat. It works well with some of the tarballs but for others some file corruption occurs. The corruption appears to affect specifically the ajp13 connectors. We burnt out a new IT specialist trying to integrate to apache because of this problem. We now untar on a linux machine and then use jar to repackage the files. Since you appear to have GNU tar on your system you should not have a problem. And to give the mandatory plug for the company for whom I work, HP does have official downloads of tomcat available at http://www.hp.com/products1/unix/webservers/apache/downloads/index.html Jeff -Original Message- From: Moss, Patricia [mailto:[EMAIL PROTECTED] Sent: Friday, May 30, 2003 8:24 AM To: Tomcat Users List Subject: RE: tar.tar binary Thank you Guru!! Pati Moss Unix Systems Administrator First Consulting Group, Inc. http://www.fcg.com Phone: (610) 989-7105 Fax: (610) 989-3207 [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, May 30, 2003 10:20 AM To: [EMAIL PROTECTED] Subject: RE: tar.tar binary afer the download rename is to jakarta-tomcat-4.0.3.tar.gz and the usin gunzip to unzip it and then untar ( tar -xvf ) Regard Guru -Original Message- From: Moss, Patricia [mailto:[EMAIL PROTECTED] Sent: 30 May 2003 15:19 To: Tomcat Users List Subject: tar.tar binary Good Morning - I attempted to download the jakarta tomcat 4.0.3 binary (for HP), from the jakarta website. On the binary site it listed the file as jakarta-tomcat-4.0.3.tar.gz; however, when the download completed the file was jakarta-tomcat-4.0.3.tar.tar. I tried using the regular HP tar as well as GNU tar. I received checksum errors with the HP tar. I received a message stating that the file was not in tar format from the GNU tar. Have I done something wrong? Is there another site where I can attempt the download of this file again? Thank you, for any assistance in this matter. Pati Moss Unix Systems Administrator First Consulting Group, Inc. http://www.fcg.com Phone: (610) 989-7105 Fax: (610) 989-3207 [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: tar.tar binary
That does work but we have found that it leaves all files with windows linefeeds. In some cases this causes the #!/bin/sh to not be recognized by the shell. Plus it annoys me for no good reason having to see all those ^M's when I use vi. We have even had problems with some of the xml files that come with tomcat that when we convert the linefeeds to unix linefeeds all the problems go away. The most interesting aspect of all this is that it is heavily dependent on the version of tomcat. I had very little problem in the 4.0 series but significant problems with the 4.1 series. Jeff -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Friday, May 30, 2003 9:59 AM To: 'Tomcat Users List' Subject: RE: tar.tar binary Jeff wrote: Be carefull with the HP tar for unpacking files for tomcat. It works well with some of the tarballs but for others some file corruption occurs. The corruption appears to affect specifically the ajp13 connectors. Don't quote me on this as I was in a panic when I couldn't get the .tar file to work, but I think I used the .zip version and used jar -xvf to unpack it on HP-UX 11. -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University PA Information Resources Management - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_jk2 / Apache 2 / mod_rewrite virtual hosts
If you are not using ssl you may wish to consider name based virtual hosting VirtualHost * ServerName domain.com /VirtualHost VirtualHost * ServerName domain.net mod_jk stuff /VirtualHost the apache documentation goes into this more fully -Original Message- From: Marc Boorshtein [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 10:40 AM To: Tomcat Users List Subject: mod_jk2 / Apache 2 / mod_rewrite virtual hosts Hello, I am trying to setup tomcat running on a machine that uses mod_rewrite seperate requests between two domains, domain.com and domain.net. I want to setup domain.net to integrate with tomcat, but only that domain. I am not using the VirtualHost directive at all, as I only have 1 IP. Is there a straight forward way to configure mod_jk2 to use just that one domain, or do I need to use some creative re-writing for that as well? Thanks Marc Boorshtein -- Marc Boorshtein [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_jk2 / Apache 2 / mod_rewrite virtual hosts
hmmm, that would usuaully mean that the domain name entered into the browser did not match any of the domain names listed in the virtual host. To the best of my knowledge, www.domain.net is distinct from domain.net with respect to apache domain name based virtual hosting. could that have been an issue. there should be a Serveralias directive to specify alternative form for the domain -Original Message- From: Marc Boorshtein [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 10:55 AM To: Tomcat Users List Subject: RE: mod_jk2 / Apache 2 / mod_rewrite virtual hosts I tried that, but it would all ways default to the first VirtualHost. Marc On Fri, 2003-04-04 at 12:36, PELOQUIN,JEFFREY (HP-Boise,ex1) wrote: If you are not using ssl you may wish to consider name based virtual hosting VirtualHost * ServerName domain.com /VirtualHost VirtualHost * ServerName domain.net mod_jk stuff /VirtualHost the apache documentation goes into this more fully -Original Message- From: Marc Boorshtein [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 10:40 AM To: Tomcat Users List Subject: mod_jk2 / Apache 2 / mod_rewrite virtual hosts Hello, I am trying to setup tomcat running on a machine that uses mod_rewrite seperate requests between two domains, domain.com and domain.net. I want to setup domain.net to integrate with tomcat, but only that domain. I am not using the VirtualHost directive at all, as I only have 1 IP. Is there a straight forward way to configure mod_jk2 to use just that one domain, or do I need to use some creative re-writing for that as well? Thanks Marc Boorshtein -- Marc Boorshtein [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Not seeing new classes
Is you classes in a package? such as com.frank.yada It was my understanding from other posts I have seen on this list, that Tomcat will not pick up classes not in a package -Original Message- From: Frank Garber [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 1:21 PM To: Tomcat Users List Subject: RE: Not seeing new classes Yes, I did a 'Reload' and a Stop/Start but neither helped. This seems like a no brainer but the heck if I can get it to work. Can you try doing the same on your sytem? Thanks, Frank --- Jan Behrens [EMAIL PROTECTED] wrote: -Original Message- From: Frank Garber [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 10:06 PM To: [EMAIL PROTECTED] Subject: Not seeing new classes I'm playing with the Tomcat example jsp files, specifically the date.jsp file. I can add a statement like: %= new java.util.Date() % br / to kick out the current date as a string, but when I try to access a java class I've written, I get a 'cannot resolve symbol'. The error happens as the jsp is being compiled. Here's the offending statement: %= Yada.getString() % br / Here's the class definition: public class Yada { public static String getString() { return Hello from Yada.getString(); } } The Yada.java and Yada.class file lives in the WEB-INF\classes directory. The WEB-INF\classes directory is in the classpath as per the screen dump I'm getting. Frank = Hi Frank, just asking a maybe stupid question... but have you reloaded the examples webapp through the webapp-manager? regards, Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = __ My full time permanent email address is always: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.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]
RE: Seperate tomcats - one apache
if you remove the vhost for host1 completely from apache to which tomcat do you get mapped? -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 11:10 AM To: Tomcat Users List Subject: Re: Seperate tomcats - one apache It doesn't work at all. Believe me, I've now spent 14 hours trying to make it work. I posted yesterday exactly what I have done so far (Help with one Apache, mod_jk, two Tomcats, no load balancing). http://host1.com:8080 - Tomcat 1 works great http://host2.com:8081 - Tomcat 2 works great Apache Virtual Host host1 (http://host1.com) - Tomcat 1 Apache Virtual Host host2 (http://host2.com) - ALSO Tomcat 1 I've tried many variations of workers.properties, even setting up load- balanced workers as suggesting in http://www.ubeans.com/tomcat (private JVM section) even though I don't want load-balancing at all. mod_jk.log: [Mon Mar 31 16:48:59 2003] [mod_jk.c (471)]: agsp=80 agsn=host2.com hostn=host2.com shostn=host1.com cbsport=0 sport=0 [Mon Mar 31 16:48:59 2003] [jk_ajp_common.c (1391)]: Into jk_worker_t::get_endpoint ... ... [Mon Mar 31 16:48:59 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [Mon Mar 31 16:48:59 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/images/A2_incent.jpg' [Mon Mar 31 16:48:59 2003] [jk_uri_worker_map.c (502)]: jk_uri_worker_map_t::map_uri_to_worker, Found a context match tomcat1 - / [Mon Mar 31 16:48:59 2003] [mod_jk.c (1277)]: Into handler r-proxyreq=0 r-handler=jakarta-servlet r-notes=1578240 worker=tomcat1 [Mon Mar 31 16:48:59 2003] [jk_worker.c (132)]: Into wc_get_worker_for_name tomcat1 [Mon Mar 31 16:48:59 2003] [jk_worker.c (136)]: wc_get_worker_for_name, done found a worker I don't know about you, but line number one there looks pretty fishy to me...I have no idea what shostn means (shared host name?), but it shouldn't be host1, it should be host2, and the worker found should be tomcat2, not tomcat1. I am definitely open to suggestions on how to make this work, but I can tell you that I am no stranger to setting up mod_jk (different port numbers, etc), and at this time this DOES NOT work for me with Apache .43, Tomcat 4.1.18, Solaris 8, and built-from-source mod_jk. John On Tue, 1 Apr 2003 10:46:38 -0700, George Sexton [EMAIL PROTECTED] wrote: I routinely run via the CATALINA_BASE method for multiple instances and have no problems. Using mod_jk, all you have to do is define the connectors to be on different ports, and then configure each servlet engine to run mod_jk on a different port. -Original Message- From: Steve Harris [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 9:46 AM To: [EMAIL PROTECTED] Subject: Seperate tomcats - one apache Hi all, I'm having some fun with some applications supplied to us that may be casuing a problem wiht each other, i.e. one application may be causing the whole tocat environment to fail - thus affecting the others. I'm toying with the idea of trying to run a signle apache but with multiple tomcats - one per application. Does anyone have any views on this ? Cheers - 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] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - 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: JDBC-ODBC bridge error
I get errors like that with coldfusion pages connecting to access if the variable type does not match the database field or if the value is null. if the database field is a string you I need to use single quotes around the value in the sql statement String sqlString = SELECT card_type.str_card_fields FROM card_type WHERE (((card_type.str_card_type='cardType'));; Also, how are you getting the value of cardtype into the select string if everything is within the double quotes? what about String sqlString = SELECT card_type.str_card_fields FROM card_type WHERE (((card_type.str_card_type='+cardType+'));; -Original Message- From: Sandra Patricia Hunter [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 2:54 PM To: 'Tomcat Users List' Subject: JDBC-ODBC bridge error I am using the JDBC-ODBC bridge driver during development because I don't want to load Oracle on my system here and am using Access for now, and will be using Oracle in the final production. I know I know: it isn't good but I don't think it is the heart of the problem. I don't know if that is the source of the problem but I am getting this error message: [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1. only on one page while the others using the same driver don't produce that error. It may just be an SQL error. Here is the code snippet: String cardType = manageData.getCardType();% P cardType: %=cardType%/p //this is just a debug line and produces the required value % String sqlString = SELECT card_type.str_card_fields FROM card_type WHERE (((card_type.str_card_type=cardType));; ResultSet rs = statement.executeQuery (sqlString); - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help with one Apache, mod_jk, two Tomcats, no load balancing
John, One of our new admins did just that with apache 2.0.43 and three versions of tomcat 4.1.18, 4.1.24 and 5.0. your http.conf and workers.properties look like his. I noticed that he listed each tomcat worker in the loadbalancer section and commented out the location of tomcat (see below). I know you state no load balancing but we have not noticed any problems with the wrong tomcat being served up. I will need to need what happens if I have him remove the load balancing references. # Note: # lbfactor must be 0 # Low lbfactor means less work done by the worker. worker.tcat418.lbfactor=1 worker.tcat5.lbfactor=1 worker.tcat424.lbfactor=1 # # Specify the size of the open connection cache. #worker.ajp13.cachesize # #-- DEFAULT LOAD BALANCER WORKER DEFINITION -- #- # # # The loadbalancer (type lb) worker perform weighted round-robin # load balancing with sticky sessions. # Note: # If a worker dies, the load balancer will check its state #once in a while. Until then all work is redirected to peer #worker. worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=tcat418, tcat5, tcat424 # # worker.tomcat_home should point to the location where you # installed tomcat. This is where you have your conf, webapps and lib # directories. # # worker.tomcat_home=/jakarta/tomcat-4.1.18 -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 2:17 PM To: [EMAIL PROTECTED] Subject: Help with one Apache, mod_jk, two Tomcats, no load balancing Hi - I have been tweaking on this all day, with no luck. I am hoping someone here can help me out. Solaris 8 Apache 2.0.44 Mod_jk Tomcat 4.1.18 I would like to assign a Tomcat instance to each Apache virtual host. http://www.host1.com - Tomcat 1 http://www.host2.com - Tomcat 2 I have two Tomcat instances setup and working great using CATALINA_HOME and CATALINA_BASE. I have verified this with: http://www.host1.com:8080 - Tomcat 1 (works great!) http://www.host2.com:8081 - Tomcat 2 (works great!) So, I proceeded to setup my Apache virtual hosts with mod_jk, and thought everything was fine until I realized that both Apache hosts were using the same Tomcat instance. It's the same webapp, just distinct hostnames. I want separate Tomcat instances so that I can administer (stop/start, etc) them without effecting the other. I believe the problem is workers.properties. I setup two workers, tomcat1 and tomcat2, but no matter what, only tomcat1 gets used. My workers.properties file looks like this: worker.list=tomcat1, tomcat2 worker.tomcat1.port=8009 worker.tomcat1.host=127.0.0.1 worker.tomcat1.type=ajp13 worker.tomcat2.port=9009 worker.tomcat2.host=127.0.0.1 worker.tomcat2.type=ajp13 I've tried various iterations of workers.properties, including removing worker.list, using localhost instead of 127.0.0.1, using the FQDN instead of localhost, using two workers.properties files instead of one, etc. The only results so far are either a 500 Internal Server Error or both Apache virtual hosts end up using the same Tomcat instance. The JkMounts are appropriate: VirtualHost host1 JkMount /*.do tomcat1 /VirtualHost VirtualHost host2 JkMount /*.do tomcat2 /VirtualHost Can anyone help me out? What am I missing? This must be possible...I have 22 Tomcat 3.x instances operating behind one Apache with 22 virtual hosts, but that is using mod_jserv. A version of the same configuration but with mod_jk instead has me totally stumped. Do I need to setup load-balancing but somehow restrict one worker to each Tomcat instance? Thanks in advance for any help. John - 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: Tomcat and IIS
Apache also comes in handy if you need to have multiple tomcats serve a single IP address. this is particualy important if you host legacy applications that cannot handle upgrading JVM's or need specific JVM configurations incompatible with other application needs. Then there is load balancing. True security freaks will argue that only your webserver should be outside the firewall while tomcat should be hidden inside with only the mod_jk port open for communication. -Original Message- From: Jeremy Whitlock [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2003 4:23 PM To: 'Tomcat Users List' Subject: RE: Tomcat and IIS That's possible BUT performance will suffer. Tomcat isn't as powerful as Apache. If you are running a small website, intranet and such, Tomcat would probably work fine but it's not Commercially fit as a Web Server. Apache on the other hand is. Later, J -Original Message- From: jsp [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2003 4:25 PM To: 'Tomcat Users List'; [EMAIL PROTECTED] Subject: RE: Tomcat and IIS If you can use TOMCAT as a web server also a container for jsp and servlets, then I don't understand why you even need Apache Web server? Can someone fill me in? I'm running IIS with tomcat right now but I would like to turn IIS off and just use tomcat like someone here suggested. -wiley -Original Message- From: Quinton McCombs [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2003 1:29 PM To: 'John Turner'; [EMAIL PROTECTED] Subject: RE: Tomcat and IIS -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2003 3:22 PM To: [EMAIL PROTECTED] Subject: Re: Tomcat and IIS Really? Can you post your config files? I'd be interested in seeing them...I haven't been able to make this work, though I don't use JK2. John Httpd.conf: VirtualHost * DocumentRoot /usr/local/www/default ServerName neo03.nequalsone.com DirectoryIndex index.html Wiki.jsp Alias /wiki /opt/jakarta/webapps/wiki Directory /opt/jakarta/webapps/wiki Options -Indexes +FollowSymLinks +Includes MultiViews /Directory Location /data AllowOverride None deny from all /Location Location /WEB-INF AllowOverride None deny from all /Location /VirtualHost Workers2.properties: [channel.socket:localhost:8009] [ajp13:localhost:8009] channel=channel.socket:localhost:8009 [uri:/wiki/*.jsp] worker=ajp13:localhost:8009 On Thu, 27 Mar 2003 15:15:02 -0600, Quinton McCombs [EMAIL PROTECTED] wrote: Well, I am doing this on apache 2.0.44. My DirectoryIndex has index.html and index.jsp. I am directing *.jsp to tomcat. Requesting the directory without a filename causes index.jsp to be processed by tomcat and the result returned. I am also using mod_jk2 if that makes a difference. Quinton McCombs NequalsOne - HealthCare marketing tools mailto:[EMAIL PROTECTED] http://www.NequalsOne.com -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2003 3:11 PM To: Tomcat Users List Subject: Re: Tomcat and IIS Switching to Apache wouldn't solve it unless you wanted to use mod_rewrite. Check the archives for last fall...there were bunches of threads on this topic for quite awhile. AFAIK, nothing's changed, though I was off this list for several weeks recently and its very possible someone came up with a workaround that I missed. John On Thu, 27 Mar 2003 13:10:14 -0800, jsp [EMAIL PROTECTED] wrote: Yea, I thought about that( or even an asp redirect, defeats the purpose of using jsp) but I'm trying to get the referrer from the browser into a database and I don't want index.html as my only referrer :) I'll try just using tomcat, I would just switch to apache I guess but I paid about 1200 bucks for w2k server 2 years ago and STILL paying on it. Oh well. Thanks -wiley -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2003 12:57 PM To: Tomcat Users List Subject: Re: Tomcat and IIS AFAIK, the only way to do this when using Tomcat in conjunction with a web server is a kludge. I do it by making index.html my default home page, and having index.html be nothing but a meta refresh page with a time of 0 to http://www.foo.com/index.jsp. There are other ways...some Apache folks use mod_rewrite. This means index.jsp will show up in the address bar of the browser. If you don't want that, I'm not sure you can do it. I don't know enough about IIS to know if there is a more elegant way to do it. If you want to use Tomcat alone, you setup a welcome-file tag/element in your application's web.xml file that has index.jsp as a
RE: mod_webapp to connect Apache-Tomcat
Have you tried changing WebAppConnection warp warp magiccubedesa:38008 to WebAppConnection warp warp 172.16.1.102:38008 Also, sometimes but not always it is usefull to explicity provide the address=172.16.1.102 attrubute in the Tomcat connector tag. While the connector is suppose to bind to all interfaces if the address is not provided, for sometimes it is useful to give it a nudge. This also ensures that you truly know what IP addressed you are binding to. All this assumes of coure that tomcat in on the same machine as apache. To state the obvious but always useful advice, it never hurts to shutdown tomcat and apache, wait 30 seconds and then start tomcat, wait 30 secs and then start apache. -Original Message- From: JACA Hugo (Personal Externo) [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 26, 2003 7:00 AM To: '[EMAIL PROTECTED]' Subject: mod_webapp to connect Apache-Tomcat Hi, I need to connect Oracle Apache with Tomcat using mod_webapp and it doesn't work! We have other Apaches running with Tomcat using mod_jk and it works! I have Oracle9iAS running Oracle Portal with an intranet app http://intranet , and now we want to add an app running on Tomcat 4.0 using the same Apache 3.1.19. Oracle Apache needs mod_jserv for intranet app, so I can't use mod_jk. I follow the instructions on howto configure mod_webapp, it seems to be ok, but the jsp request are handled by Oracle Jserv, not Tomcat... If someone is working with the same scenario, please help me. Sun Solaris 2.8 Oracle9iAS with Apache 3.1.19 Tomcat 4.0 Config. files: server.xml Server port=38005 shutdown=SHUTDOWN debug=0 Service name=Tomcat-Standalone Connector className=org.apache.catalina.connector.http.HttpConnector port=38080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=38443 acceptCount=10 debug=9 connectionTimeout=6/ Connector className=org.apache.catalina.connector.http10.HttpConnector port=38082 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=38443 acceptCount=10 debug=9/ Engine name=Standalone defaultHost=magiccubedesa debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true/ Realm className=org.apache.catalina.realm.MemoryRealm / Host name=magicCubedesa debug=1 appBase=webapps unpackWARs=true autoDeploy=true Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=magicCube_access_log. suffix=.txt pattern=common/ Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=magicCube_log. suffix=.txt timestamp=true/ Context path=/manager docBase=manager debug=0 privileged=true/ /Host /Engine /Service Service name=Tomcat-Apache Connector className=org.apache.catalina.connector.warp.WarpConnector port=38008 minProcessors=5 maxProcessors=75 acceptCount=10 debug=9/ Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache debug=9 appBase=webapps Realm className=org.apache.catalina.realm.MemoryRealm / Logger className=org.apache.catalina.logger.FileLogger prefix=apache_log. suffix=.txt timestamp=true/ Valve className=org.apache.catalina.valves.AccessLogValve prefix=apache_access. suffix=.txt pattern=common/ /Engine /Service /Server httpd.conf: # end of original file... # Include the configuration files needed for jserv include /soft/oracle9ias/Apache/Jserv/etc/jserv.conf # Include the Oracle configuration file for custom settings include /soft/oracle9ias/Apache/Apache/conf/oracle_apache.conf # start of Apache-Tomcat config NameVirtualHost 172.16.1.102: VirtualHost 172.16.1.102: ServerName intranet DocumentRoot /soft/oracle9ias/Apache/Apache/htdocs /VirtualHost VirtualHost 172.16.1.102: ServerName magiccubedesa DocumentRoot /opt/tomcat/jakarta-tomcat-4.0-c1/dist/webapps WebAppConnection warp warp magiccubedesa:38008 WebAppDeploy examples warp /examples/ WebAppDeploy magicCube warp /magicCube/ /VirtualHost Thanks, Hugo. http://www.portalsociete.com Visítenos, lo estamos esperando. La información aquí contenida es confidencial y está dirigida solamente a las personas direccionadas en el mail. No debe ser considerada como recomendación de compra o venta de valores. Todo acceso no autorizado, uso, reproducción, o divulgación está prohibido. Ni SOCIETE GENERALE ni ninguna de sus subsidiarias o filiales asumirán responsabilidad ni obligación legal alguna por cualquier información incorrecta o alterada contenida en este mensaje. The information contained herein is confidential and is
RE: webapp
I had a similar issue when I built mod_webapp for HP-UX what I did was the following in the Makefile Basically I removed the $(MFLG) parameter. As far as I could tell, it picked the value for this variable from the apache/bin/apxs file variable my $CFG_LDFLAGS_SHLIB. Change template: @ { $(ECHO) ; $(MECHO) Entering directory \$(MDIR)\ ; cd $(MDIR) ; $(MECHO) Invoking \$(MAKE) $(MFLG) $(MTGT)\ ; $(MAKE) $(MFLG) $(MTGT); RET=$$? ; $(MECHO) Exiting directory \$(MDIR)\ ; cd $(SRCDIR) ; if test $${RET} != 0 ; then exit $${RET} ; fi ; } to template: @ { $(ECHO) ; $(MECHO) Entering directory \$(MDIR)\ ; cd $(MDIR) ; $(MECHO) Invoking \$(MAKE) $(MTGT)\ ; $(MAKE) $(MTGT); RET=$$? ; $(MECHO) Exiting directory \$(MDIR)\ ; cd $(SRCDIR) ; if test $${RET} != 0 ; then exit $${RET} ; fi ; } -Original Message- From: Allan Campos de Moraes [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 26, 2003 12:45 PM To: 'Tomcat Users List' Subject: webapp Hi All ! I´m trying to generate the mod_webapp.so file but after all the steps when I try to run make I receive the message below... some Ideas ? I had no error on the steps before make... Help ! ___ /home/amoraes/jakarta/jakarta-tomcat-connectors-4.1.18-src/webapp make make[1]: Entering directory /export/home/amoraes/jakarta/jakarta-tomcat-connect ors-4.1.18-src/webapp/apr-0.9.1 Usage : make [ -f makefile ][ -K statefile ]... [ -d ][ -dd ][ -D ][ -DD ] [ -e ][ -i ][ -k ][ -n ][ -p ][ -P ][ -q ][ -r ][ -s ][ -S ][ -t ] [ -u ][ -w ][ -V ][ target... ][ macro=value... ][ macro +=value. .. ] make: Fatal error: Unknown option `-C' *** Error code 1 make: Fatal error: Command failed for target `subdir' Current working directory /export/home/amoraes/jakarta/jakarta-tomcat-connectors -4.1.18-src/webapp *** Error code 1 make: Fatal error: Command failed for target `apr-build' /home/amoraes/jakarta/jakarta-tomcat-connectors-4.1.18-src/webapp Thanks ! --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.463 / Virus Database: 262 - Release Date: 17/3/2003 Esta mensagem, incluindo seus anexos, pode conter informações privilegiadas e/ou de caráter confidencial, não podendo ser retransmitida sem autorização do remetente. Se você não é o destinatário ou pessoa autorizada a recebê-la, informamos que o seu uso, divulgação, cópia ou arquivamento são proibidos. Portanto, se você recebeu esta mensagem por engano, por favor, nos informe respondendo imediatamente a este e-mail e em seguida apague-a. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: HPUX and tomcat help!
Allen, What do you set for your memory parameters in catalina opts? an example from out setup is if [ -z $CATALINA_OPTS ] ; then CATALINA_OPTS=-XdoCloseWithReadPending -Xms256m -Xmn100m -Xmx256m -Xverbosegc:file=/tomca t/logs/gc.out export CATALINA_OPTS echo start: CATALINA_OPTS set to $CATALINA_OPTS fi I have seen tomcat stop because of garbage collection issues if -Xms256m and -Xmx256m are not equal. This usually occurs for webapps that very quickly create large temporary objects. The new generation heap just cannot expand fast enough and tomcat will stop. without -XdoCloseWithReadPending, tomcat will not shutdown. As far as I can tell it is due to a connector still binding to a port in some manner. Also, are your patches up to date? I list some recommended kernal paramters that we try to adhere to for our servers, maxdsiz we have found is very important. If set too small you will get hotspot errors and the JVM will crash. maxusers512 nproc 2068 max_thread_proc 3000 nkthread6000 nfile 3 maxfiles2048 maxfiles_lim2048 ncallout6000 maxdsiz 2063835136 Jeff -Original Message- From: Byington, Allen [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 25, 2003 7:43 AM To: '[EMAIL PROTECTED]' Subject: HPUX and tomcat help! I'm having a problem keeping tomcat running on my hpux11 systems. The server just stops responding and no log entries are made. To get things going again, I have to do a kill on the tomcat process and start it back up. The configration of the server looks like this: HP-UX 11/64 bit java 1.4 tomcat 4.1.18 (standalone) apache 2.0.43 Any help would be appreciated. Thanks Allen - 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: HPUX and tomcat help!
Allen, I was referring to the HP patches found at http://www.hp.com/products1/unix/java/patches/index.html Also, make sure you are using the latest version of HP Java 1.4 found at http://www.hp.com/products1/unix/java/java2/sdkrte14/infolibrary/index.html I have not personally used 1.4 as I am still trying to migrate our apps to 1.3. Jeff -Original Message- From: Byington, Allen [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 25, 2003 8:59 AM To: 'Tomcat Users List' Subject: RE: HPUX and tomcat help! Thanks for the help! I went ahead and added in the catalina opts (just one more thing I didn't know about) and restarted the server. I have my SA looking into the kernel params for me. I'll let you all know if that fixes the problem. As far as the patches are concerned, I'm using the 4.1.18 binary version from the jakarta download site. Thanks Again! Allen -Original Message- From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 25, 2003 9:28 AM To: 'Tomcat Users List' Subject: RE: HPUX and tomcat help! Allen, What do you set for your memory parameters in catalina opts? an example from out setup is if [ -z $CATALINA_OPTS ] ; then CATALINA_OPTS=-XdoCloseWithReadPending -Xms256m -Xmn100m -Xmx256m -Xverbosegc:file=/tomca t/logs/gc.out export CATALINA_OPTS echo start: CATALINA_OPTS set to $CATALINA_OPTS fi I have seen tomcat stop because of garbage collection issues if -Xms256m and -Xmx256m are not equal. This usually occurs for webapps that very quickly create large temporary objects. The new generation heap just cannot expand fast enough and tomcat will stop. without -XdoCloseWithReadPending, tomcat will not shutdown. As far as I can tell it is due to a connector still binding to a port in some manner. Also, are your patches up to date? I list some recommended kernal paramters that we try to adhere to for our servers, maxdsiz we have found is very important. If set too small you will get hotspot errors and the JVM will crash. maxusers512 nproc 2068 max_thread_proc 3000 nkthread6000 nfile 3 maxfiles2048 maxfiles_lim2048 ncallout6000 maxdsiz 2063835136 Jeff -Original Message- From: Byington, Allen [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 25, 2003 7:43 AM To: '[EMAIL PROTECTED]' Subject: HPUX and tomcat help! I'm having a problem keeping tomcat running on my hpux11 systems. The server just stops responding and no log entries are made. To get things going again, I have to do a kill on the tomcat process and start it back up. The configration of the server looks like this: HP-UX 11/64 bit java 1.4 tomcat 4.1.18 (standalone) apache 2.0.43 Any help would be appreciated. Thanks Allen - 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: Server.xml
You need the /Context closing tags whenever you need to nest others tags inside the context tags. Such as Realm or Logger or Valve Context path=/foo docBase=foo debug=0 Logger className=org.apache.catalina.logger.FileLogger directory=logs/foo prefix=foo. suffix=.log verbosity=4 timestamp=true/ /Context If you have no nested tags you can just us Context path=/foo docBase=foo debug=0/ where / ends the tags -Original Message- From: Geoff Peters [mailto:[EMAIL PROTECTED] Sent: Monday, March 17, 2003 3:01 PM To: Tomcat Users List Subject: RE: Server.xml Sandra - I have had similar experiences with similar frustrating results, and it always seems to be placement of the Context /Context tags - for some reason sometimes you need closing /Context tags, other times you don't, I can't seem to figure out when to use them and when not to, so I end up fiddling around with various combinations until Tomcat starts! (that was a really dumb answer but it works for me) Geoff -Original Message- From: Hunter, Sandra [mailto:[EMAIL PROTECTED] Sent: Monday, March 17, 2003 5:00 PM To: 'Tomcat Users List' Subject: Server.xml Frustration abounds: I am plodding through a tomcat tutorial and it suggests modifying the Server.xml file to include a new context path line to allow for playing with a sample file. Everything works tickety boo until I do that, then Tomcat won't startup at all. When I enter the startup command I just get a really brief flash of screen and poof! It's gone again. When I take the new line out of the server.xml file the problem persists: poof! Gone. That is the only change I make. Any thoughts? - 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: Apache-Tomcat-HPUX Problems
Eric, We have been using apache/tomcat on HP-UX for over a year and have not had any problems compiling any version of apache. Because of compilation issues with mod_jk we used mod_webapp instead of mod_jk but now that HP has released their version of Apache with mod_jk13 bundled in, we are in the process of migrating. The latest download can be found at http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo .pl?productNumber=HPUXWSSUITE I have not as yet installed this update but I have used the previous release and integration with tomcat went smooth. Note they have tomcat 4.1.12 as part of this package but you can use you can use any version of tomcat. Just modify the provided mod_jk files accordingly. Using the HP-UX version provided by HP may solve your problems Jeff -Original Message- From: Roberts, Eric [mailto:[EMAIL PROTECTED]] Sent: Monday, February 10, 2003 7:49 AM To: Tomcat Users List Subject: Apache-Tomcat-HPUX Problems Hi, Does anybody on the list run under HPUX? We are running: HP-UX B.11.00 U 9000/800 (tb) Tomcat 4.1.18 Apache 1.3.24 Oracle 8.1.7 Tomcat and Apache communicate via mod_jk. We use DBCP to provide a global Db connection pool. Everything works fine. We are running Apache only because we wish to use it for loadbalancing to multiple Tomcat instances. Here is the problem: At first we tried installing Apache 2.0.44 - but we got compiler warnings and when we try to start it we get core dumps. We can build and run Apache 1.3.24. The mod_jk.so was compiled from the Tomcat 3.3.1a source, as this had some specific HPUX build instructions. As I say, in normal operation, everything is fine, but with loadbalancing enabled, if I drop the first instance of Tomcat, Apache coredumps as soon as a browser request is received. The Apache error log shows that the child process (mod_jk) caused the fault. I believe this is all to do with the DSO support of HPUX (we compiled with GNU compiler). Anybody out there on HPUX who can shed some light? Thanks Eric Roberts - 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]
Tomcat 4.1.12 available on HP-UX
For those of you using Tomcat on an HP-UX machine HP appears to have finally bundled Tomcat 4.1.12 into its Apache/Tomcat depot file for more info see http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo .pl?productNumber=HPUXWSSUITE Jeff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: CGI environment vars
the file /etc/profile should contain the default profile and environment variables for the ksh, if I recall. -Original Message- From: Jim Urban [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 05, 2003 12:40 PM To: 'Tomcat Users List' Subject: RE: CGI environment vars It's been years since I worked with unix (ok, aix). However I do recall a file .profile (I think it was in your home directory) which is where we set our environment vars. It was executed by the shell when you logged on. Have you tried this? If this is way off, please ignore it, I don't need to be flamed (having a rough day). Jim -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 05, 2003 1:28 PM To: Tomcat Users List Subject: Re: CGI environment vars I haven;t seen this discussed yet, you are exporting your variables in setenv.sh AND setenv.sh is located in $CATALINA_HOME/bin? Example: export WACKY=very or ANSWER=42 export ANSWER -Tim Madere, Colin wrote: Already tried this and it didn't work. Both in the setenv.sh (checked for and read by catalina.sh) and startup.sh. It seems that's for the Tomcat running environment but is not transferred to the CGIServlet's exec environment. -Original Message- From: Sean Dockery [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, February 05, 2003 11:44 AM To: Tomcat Users List Subject: RE: CGI environment vars What about setting the variable yourself in the catalina.sh script? If that doesn't work, make sure that the variable is exported (so that it remains in the super shell when the sub shell exits). Example: LD_LIBRARY_PATH=.../.../ld.so; export LD_LIBRARY_PATH; At 11:23 2003-02-05 -0600, you wrote: no no.. I'm using the CGI facility in Tomcat (see Tomcat docs). There's a servlet set up to handle it already, and the CGI is getting executed but the logs show that it's getting an error loading ld.so because it can't find it (which is also the case when trying to run it in a shell without having LD_LIBRARY_PATH set appropriately). -Original Message- From: Filip Hanik [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, February 05, 2003 11:21 AM To: Tomcat Users List Subject: RE: CGI environment vars how about you do it yourself, I assume that you launch your CGI script using Runtime.exec in that case, use the method that http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Runtime.html take a look at Runtime.exec(java.lang.String,java.lang.String[],java.io.File) -Original Message- From: Madere, Colin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 05, 2003 8:44 AM To: [EMAIL PROTECTED] Subject: CGI environment vars Tomcat 4.1.18 : UMN Mapserver CGI I have a CGI which needs to see the LD_LIBRARY_PATH to get to shared libraries to run. However, I can't seem to get whatever shell that Tomcat uses to run CGIs seeded with that variable. I tried putting it in the setenv.sh which is checked for and used in catalina.sh, but that doesn't seem to have any effect on CGIs. Anyone have an idea? Colin - 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] Sean Dockery [EMAIL PROTECTED] Certified Java Web Component Developer Certified Delphi Programmer SBD Consultants http://www.sbdconsultants.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] - 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: PageContextImpl.handlePageException
What were you expecting pageContext.handlePageException(t) to do? I had always thought it purpose was to throw a servlet exception. In which case it it working the way it should. Also what is the definition of t? -Original Message- From: jsp [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 04, 2003 3:47 PM To: 'Tomcat Users List' Subject: RE: PageContextImpl.handlePageException Hi thanks for the reply, this is the cause. if (pageContext != null) pageContext.handlePageException(t); Im just trying to find out whats causing this thought maybe someone Would have an idea besides my own incompetence. Thanks -Original Message- From: Sean Dockery [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 04, 2003 2:34 PM To: Tomcat Users List Subject: Re: PageContextImpl.handlePageException Look at line 251 in $TOMCAT_HOME/_work/appname/org/apache/jsp/index_jsp.java to see what caused the exception. At 14:22 2003-02-04, you wrote: root cause javax.servlet.ServletException at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageConte x tImpl.java:533) at org.apache.jsp.index_jsp._jspService(index_jsp.java:251) Sean Dockery [EMAIL PROTECTED] Certified Java Web Component Developer Certified Delphi Programmer SBD Consultants http://www.sbdconsultants.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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache2+SSL w/ Tomcat 4.1.18 - problem building mod_jk connec tor
you should be able to get m4 and autoconf from http://freeware.sgi.com/ you most likely need libtool, at least I did for hp-ux Jeff -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Friday, January 31, 2003 1:05 PM To: 'Tomcat Users List' Subject: RE: Apache2+SSL w/ Tomcat 4.1.18 - problem building mod_jk connec tor Ugh. Sorry, wish I could help, but I'm not very familiar with how autoconf and m4 work. John -Original Message- From: Trevor Hurst [mailto:[EMAIL PROTECTED]] Sent: Friday, January 31, 2003 3:03 PM To: Tomcat Users List Subject: Re: Apache2+SSL w/ Tomcat 4.1.18 - problem building mod_jk connector Yes, I get the same undefined macro errors because it's (again) calling autoconf: eskimo [534] ./buildconf.sh libtoolize --force --automake --copy ./buildconf.sh[4]: libtoolize: not found aclocal aclocal: configure.in: 22: macro `AM_PROG_LIBTOOL' not found in library automake -a --foreign -i --copy configure.in:14: no proper implementation of AM_INIT_AUTOMAKE was found, configure.in:14: probably because aclocal.m4 is missing... configure.in:14: You should run aclocal to create this file, then configure.in:14: run automake again. configure.in:22: required file `scripts/build/unix/ltmain.sh' not found autoconf configure.in:14: error: possibly undefined macro: AM_INIT_AUTOMAKE If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. configure.in:18: error: possibly undefined macro: AC_LIBTOOL_DLOPEN configure.in:20: error: possibly undefined macro: AM_PROG_LIBTOOL configure.in:26: error: possibly undefined macro: AC_PROG_LD configure.in:430: error: possibly undefined macro: AM_CONDITIONAL Turner, John wrote: Did you run buildconf.sh prior to running configure? Sorry, I forgot to mention that previously. John -Original Message- From: Trevor Hurst [mailto:[EMAIL PROTECTED]] Sent: Friday, January 31, 2003 2:47 PM To: Tomcat Users List Subject: Re: Apache2+SSL w/ Tomcat 4.1.18 - problem building mod_jk connector Tried that also, in jakarta-tomcat-connectors-4.1.18-src/jk/native eskimo [515] ./configure --with-apxs=/usr/local/apache2/bin/apxs ./configure[1228]: syntax error at line 1228 : `(' unexpected Line 1228 is the first function call to automake and I see that's part of the problem: AM_INIT_AUTOMAKE(${PACKAGE}, ${VERSION}) AC_LIBTOOL_DLOPEN AM_PROG_LIBTOOL ... ... ..because when I run autoconf in the jk/native directory to create my configure file from the provided configure.in in the same respective dir I get undefined MACRO errors: eskimo [530] autoconf configure.in:14: error: possibly undefined macro: AM_INIT_AUTOMAKE If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. configure.in:18: error: possibly undefined macro: AC_LIBTOOL_DLOPEN configure.in:20: error: possibly undefined macro: AM_PROG_LIBTOOL configure.in:26: error: possibly undefined macro: AC_PROG_LD configure.in:430: error: possibly undefined macro: AM_CONDITIONAL Any clues? Should I try and use m4 patterns? Thanks for the help! Cheers, -- Trev Turner, John wrote: You might get better results with: ./configure --with-apxs=/usr/local/apache2/bin/apxs make make install John -Original Message- From: Trevor Hurst [mailto:[EMAIL PROTECTED]] Sent: Friday, January 31, 2003 2:28 PM To: [EMAIL PROTECTED] Subject: Apache2+SSL w/ Tomcat 4.1.18 - problem building mod_jk connector Greetings, I am having many difficulties building the mod_jk DSO module from the jakarta-tomcat-connectors-4.1.18-src dist. I have successfully built an Apache2.0.44 server with SSL engine static to the server core and it works great in encrypted mode. I've also successfully installed the jakarta-tomcat-4.1.18 bits onto the system and am running the Coyote server and all JSPs were verified and working from the standalone server. I need my Apache2 httpd server to serve up the java apps using Tomcat4.1.18. I've tried everything under the sun to build the mod_jk DSO module to plug into apache2 with no luck: I've tried building from the top level of the tomcat 4.1.18 connectors source and also tried building the jk/native and even the jk/native/apache2 sources by using my ant1.5 install, configure w/ autoconf make/gmake and then went even further to try and compile with my Apache2 apxs.. Everything fails. I'm running IRIX 6.5.19 with: Java2 v1.4.0 Development Environment (Sun Java2 SDK v1.4.0) Java2 v1.4.0 Execution Environment (Sun Java2
RE: Remote Restart Tomcat 4.1.8
We have found that the VNC stability corresponds to the overall stability of the platform on which is hosted. The nice thing about vnc is that it can be accessed from any browser equiped machine on port 5800. You might also look into tightvnc, http://www.tightvnc.com/. Other have told me it is faster over slow connections Jeff -Original Message- From: chris schild [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 12:48 PM To: Tomcat Users List Subject: Re: Remote Restart Tomcat 4.1.8 Henning, How is the stability/scalability of VNC? PC anywhere crashes one of my computers and terminal services goes down with several users signed-on. Thanks - Original Message - From: Henning Heil [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, January 30, 2003 1:28 PM Subject: Re: Remote Restart Tomcat 4.1.8 haytham, it's a question of 'how remote you are' and the OSes you're using, solutions for win: a) install a terminal - server - client constellation (should work for other OSes too) or b) get VNC from ATT Research labs, that's fun ! (http://www.uk.research.att.com/vnc) cheers, henning Haytham Samad wrote: Is it possible to restart or shutdown/start Tomcat remotely? Thanks - 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: tomcat mod_jk issue
try changing worker.ajp13.host=www.mytest.com to worker.ajp13.host=localhost sometimes this helps, sometimes it doesn't -Original Message- From: vivek karkun [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 28, 2003 11:19 AM To: [EMAIL PROTECTED] Subject: tomcat mod_jk issue Hello everyone, I am having a problem with stronghold(apache 1.3) and tomcat 4.1.18 using the mod_jk module on solaris 8. Here are the modification i did to folowing configuration files. Any help would be appreciated. httpd.conf: LoadModulejk_module modules/libexec/mod_jk-1.3-eapi.so AddModule mod_jk.c IfModule mod_jk.c JkWorkersFile /opt/jakarta-tomcat-4.1.18/conf/workers.properties JkLogFile /main/webRoot/stronghold/logs/mod_jk.log JkLogLevelinfo JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkMount /*.jsp ajp13 JkMount /*/servlet/ ajp13 /IfModule workers.properties: workers.tomcat_home=/opt/jakarta-tomcat-4.1.18 workers.java_home=/opt/j2sdk1.4.1_01 ps=/ worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=www.mytest.com worker.ajp13.type=ajp13 Here are the following log files mod_jk.log: [Mon Jan 27 16:57:51 2003] [jk_ajp_common.c (874)]: Error connecting to the Tomcat process. [Mon Jan 27 16:57:51 2003] [jk_ajp_common.c (1190)]: sending request to tomcat failed in send loop. err=2 [Mon Jan 27 16:57:51 2003] [jk_ajp_common.c (1198)]: Error connecting to tomcat. Tomcat is probably not started or is listenning on the wrong port. Failed errno = 145 server.xml: i enabled the the ajp1.3 protocol for mod_jk module, and i changed all localhost settings to www.mytest.com Also when i see the ports, 8009 is running, i dont know why apache wouldnt talk to tomcat. The amazing part is everything works if i access the site thorugh tomcat alone(http://www.mytest.com:8080/index.jsp), but nothing shows up using (http://www.mytest.com/index.jsp) Am i missing anything here. Thanks in advance for any help vic __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: trouble with bean returning boolean
Why not use foo.isValid() or is the format foo.valid something special with respect to taglibs? -Original Message- From: Petter Karlström [mailto:[EMAIL PROTECTED]] Sent: Friday, January 17, 2003 7:30 AM To: [EMAIL PROTECTED] Subject: trouble with bean returning boolean Hello all, I have trouble getting a very simple bean (o'reilly book example) to return boolean values. I call it with: c: choose c:when test=${foo.valid} ... and the validation code in the bean looks like: public boolean isValid(){ return true; } This generates the following error message: org.apache.jasper.JasperException: javax.servlet.jsp.JspException: An error occurred while evaluating custom action attribute test with value ${foo.valid}: Unable to find a value for valid in object of class foobar.FooBarBean using operator . (null) Everything works fine with method getName which returns a String that I can output with c:out. anyone? thanks /Petter Karlström -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Can you set a webapp as Tomcat's default page?
How did it fail? Also you need to use JkMount /* ajp13 otherwise nothing will be mapped to tomcat expect for the root url Jeff -Original Message- From: Bill [mailto:[EMAIL PROTECTED]] Sent: Friday, January 17, 2003 8:22 AM To: tomcat user Subject: Can you set a webapp as Tomcat's default page? I want to set up my server so that all requests take you to the login page of my webapp. I'm pretty sure this can be done fairly easily however I havent yet figured it out. Is there an online resource for this or has somebody here done it? Basically what I've tried thus far is: 1) set the root context in tomcat to my app's docBase. 2) added 'JkMount / ajp13' to webserver config 3) set the default servlet to point to the base servlet of my webapp This of course doesnt work. -b -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat 4.1 takes a long time to start on HP-UX 11
Wendy, Our 4.1 tomcat starts up very quickly on HP-UX. Since the delay occurs during the coyote connector startup have you tried using the non-Coyote Connector? Also, in the connector tag do you specify an address atribute? If you do not it will try to bind to every IP address available on your server Jeff -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED]] Sent: Friday, January 17, 2003 3:10 PM To: 'Tomcat Users List' Subject: Tomcat 4.1 takes a long time to start on HP-UX 11 On HP-UX11, Tomcat 4.1, catalina.out shows this: Jan 17, 2003 2:40:50 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8081 Starting service Tomcat-Standalone Apache Tomcat/4.1 Jan 17, 2003 2:42:27 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8081 Jan 17, 2003 2:42:27 PM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on tcp port 8009 Jan 17, 2003 2:42:27 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=5/210 config=/opt/hpws/tomcat/conf/jk2.properties And yet it was over six minutes later $ date Fri Jan 17 14:48:23 MST 2003 before the main Tomcat page would load. (The one you get at http://servername:8081) Is this normal? It's just long enough to compose an email (Tomcat won't start) and embarrass yourself, (Never mind...). ;) It doesn't take _nearly_ this long on Win2k or Linux-- as soon as I see that final line in the console/catalina.out, the intro page will load. -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University PA Information Resources Management -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Test servlet won't run - help?
As a side note. The reason it may have originally worked in the examples webapp is that the default servlet mapping is explicitly defined. For all other web apps it is disabled. If you place servlet-mapping servlet-nameinvoker/servlet-name url-pattern/servlet/*/url-pattern /servlet-mapping in the web.xml file you should not need to include servlet in every mapping -Original Message- From: Mark [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 16, 2003 10:56 AM To: Tomcat Users List Subject: Re: Test servlet won't run - help? Wow, thanks for the timely response. That was right on the money. I love you guys. Thanks Erik. I will be unsubscribing now. Thanks again. Mark Steere [EMAIL PROTECTED] Try it from http://localhost:8080/myApp/myAppServlet That might work -- your URL-mapping doesn't say to look for servlet/myAppServlet. Erik -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: configure CoyoteConnector with mod_jk in tomcat 4.1.x
If I understand correctly, the CoyoteConnector was specifically written to take advantage of the features that exist within mod_jk2. As a result it loads a file JK2.properties. However since jk2 and jk both use ajp to talk to Tomcat, the default configuration jk2.properties with everything commented out allows the CoyoteConnector to accept request from an apache server using mod_jk. In many respect, the CoyoteConnector's ability to communicate with mod_jk if a bonus feature of the Connector as oppossed to its primary purpose in life which is to accept mod_jk2 requests. This philosophy of use is implied in the documentation located at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/confighowto.html On the other hand the ajp13Connector was written with mod_jk in mind. Jeff -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 16, 2003 12:30 PM To: 'Tomcat Users List' Subject: RE: configure CoyoteConnector with mod_jk in tomcat 4.1.x Sorry, I'm just not clear what you are asking. Mod_jk uses workers.properties for information on how to reach Tomcat. That's all...that file is not used by CoyoteConnector in any way. Regarding mod_jk2, anything I could tell you would be a guess, as I do not use JK2. Unless you have a JkMount directing an image URL like /*.gif to Tomcat, then Apache will serve that content, not Tomcat. Tomcat only knows about URLs that are in JkMount statements. If the content is in a WAR file, Apache has no way to get to that content. If you are going to use a JkMount statement that sends static and dynamic content requests to Tomcat, there's really no reason to use Apache at all, in which case the question is moot. Unless you have some sort of legacy requirement or requirement to use mod_rewrite or some other Apache modules in addition to mod_jk. John -Original Message- From: Pedro Salazar [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 16, 2003 2:20 PM To: Tomcat Users List Subject: RE: configure CoyoteConnector with mod_jk in tomcat 4.1.x 1- About the Apache, I have no doubts that the mod_jk uses the file defined in JkWorkersFile directive. But, is that clear that Tomcat (4.1.x), I mean the CoyoteConnector, uses only and just only the workers.properties inside $TOMCAT_HOME/conf/? Or could it be in another place? I heard something about workers2.properties, another about conf/jk/workers.properties, I don't know if they were specific for apache or if the location can be defined. I would like to clarify this issue, I mean, the correct file name and location of the configuration of the workers to CoyoteConnector that should be the same for Apj13Connector. 2- About the images, they are located inside WAR files in webapps of tomcat. I tried to use JkAutoAlias /opt/tomcat/webapps but apparently it isn't a known directive of mod_jk (probably only to mod_jk2). So, I thought that by default any request of a image inside a JkMount context should be handled by Apache in transparent way. It appears that I should have a two web applications, one with a dynamic content and another with the static, but it isn't like that, is it? thanks, Pedro Salazar. On Thu, 2003-01-16 at 17:50, Turner, John wrote: I can't explain those log messages. I do know that mod_jk uses a single file called workers.properties. I believe, if you use the JkWorkersFile command in httpd.conf, that you can tell mod_jk to use any file you like, like my.properties. So, if you want to use jk2.properties, you probably can. I only use mod_jk, and I can assure you I have no files named jk2.properties. mod_jk2 is a completely different module. It takes different configuration commands, it uses two files instead of one (or can use a single file if you use JkUriSet in httpd.conf). So, the confusion can be clarified by you telling us which module you are using: JK (mod_jk), or JK2 (mod_jk2). Then we can help you figure out your configuration questions, if any. Otherwise we are just going in circles. Regarding your question about the images: where are the images located relative to Apache and Tomcat? Does Tomcat have access to that directory? Does Apache have access to that directory? More information is needed. John -Original Message- From: Pedro Salazar [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 16, 2003 12:29 PM To: Tomcat Users List Subject: RE: configure CoyoteConnector with mod_jk in tomcat 4.1.x Greetings, John, if what you said is right why is that happens: 1)when my tomcat starts, it logs a message saying the configuration is the jk.properties: 25984 [main] INFO http11.Http11Protocol - Starting Coyote HTTP/1.1 on port 8080 26167 [main] INFO common.ChannelSocket - JK2: ajp13 listening on /0.0.0.0:8009 26278 [main] INFO server.JkMain - Jk running ID=0
RE: WARP (Apache-Tomcat)
there is a good chance that the warp module is not Apache2 compatiable. Also if I recall the original author never provided any sort of guarantee that it would work under windows. We have used it successfully on HP-UX for over a year without any problems but for windows you should look into using mod_jk. -Original Message- From: neal [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 3:47 PM To: Tomcat Users List Subject: RE: WARP (Apache-Tomcat) Actually, I found the mod_webApp module for Apache-Tomcat warp connection. But Apache won't restart now! Grrr. Per the instructions I tooks the webApp.so and the dll and put the in the modules dir (I'm on windows) and added the necesary lines to the config. BUT, in the doc that came with the mod_webApp there is a note that It was reported that sometimes Apache under windows doesn't like the AddModule line in the config file. Please, ofg you can't start your Apache service try commenting that line in your httpd.conf file. Well, I did that but all that does is avoid the issue. Any clue what the problem is? A hunch is telling me to run regsvr32 on the dll. Any thoughts? Thanks. Neal -Original Message- From: enLogica [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 1:58 PM To: Tomcat Subject: WARP (Apache-Tomcat) I am attempting to setup Tomcat 4.1 with Apache 2.0.4. Per the instructions in my book I am suppose to download the Web Application Module for Apache in order to allow these two to talk, but it is not listed on http://modules.apache.org/search. With v.2.0 do I still need to download this mod? If so, where can I find it? Thanks. Neal -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: HP-UX 10.20 + Oracle
John, I sent two version of the classes111.jar we have used on our HP-UX 11.0 system to your account in order not to clutter up people boxes with the zip file. I do not know why they are different but I have discovered with the classes12.jar that they come in vastly different vintages. I upgraded a linux system once and got the latest and greatest classes12 from oracle since it was easier than copy it from the old server I had. Some of the functionality of the site ceased to work until I rolled back to the prior version that was three years older. Jeff -Original Message- From: John Clark [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 6:03 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: HP-UX 10.20 + Oracle Hi I am offsite today, so not sure if this will work, anyway. I have tried setting LD_LIBRARY_PATH but it still does not work. I suspect that I have conflicting versions or classes, so my questions are: 1. Where should I get classes12 or classes111 from for HPUX 10.2 and Oracle 8.0.4 (the ones I am using are copied from Linux) 2. I have seen mentioned that an associated DLL is required, which one? and where should it go? Thanks once again John Make sure you have the LD_LIBRARY_PATH environment variable set to $ORACLE_HOME/lib (I think :-\ ) At least you have to on Linux. -Original Message- From: John Clark [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 1:13 PM To: 'Tomcat Users List' Subject: RE: HP-UX 10.20 + Oracle Mark: I tried changing to classes111.jar, but now get this error: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared library path Also I should point out that I am using Oracle 8.0.4 on HP. Thanks for the suggestions though -Original Message- From: p niemandt [mailto:[EMAIL PROTECTED]] Sent: 07 January 2003 18:25 To: Tomcat Users List Subject: RE: HP-UX 10.20 + Oracle As far as I know you should use ojdbc14.jar for Oracle9: Though previous ones should work, the ojdbc14.jar is recommended / needed for Oracle9. {The classnames are different between classes12.jar and the new ojdbc14.jar} On Tue, 2003-01-07 at 17:57, Wagoner, Mark wrote: I think classes12.jar is for JDK 1.2. You want classes111.jar (if you can find it). -Original Message- From: John Clark [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 12:54 PM To: 'Tomcat Users List' Subject: HP-UX 10.20 + Oracle Hi there, The story so far: I have an intranet application that currently runs on a Linux server (with Oracle 9i - built-in Apache) and W2000 server (with Tomcat 4.x connecting to Oracle 8). It is written in JSP and Java, and works fine. I now want to use HP-UX 10.20 as a server, so I got the only available JDK from HP which is version 1.1.8 and this has forced me to use Tomcat 3.3.1. This is all running now (thanks for the help) and I am now testing the application. I have put in the Oracle classes12.jar and DriverManager.registerDriver seems fine, but DriverManager.getConnection gives the following error (only partial list): java.lang.ClassNotFoundException: java.util.Map at org.apache.tomcat.util.compat.SimpleClassLoader.loadClass(Compiled Code) at java.lang.ClassLoader.loadClassInternal(Compiled Code) at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java: 358) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260) at java.sql.DriverManager.getConnection(DriverManager.java:83) at java.sql.DriverManager.getConnection(DriverManager.java:126) at estimating._final.loginvalidate_1._jspService(loginvalidate_1.java:123) Anyone got any ideas? Many thanks as usual. John -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache2 and mod_jk
One potential problem is that you have 8009 in your workers.properties file but have 8008 in the your server.xml -Original Message- From: Bill [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 7:24 AM To: tomcat user Subject: Apache2 and mod_jk I've been holding off on posting on my problem because there have been a wealth of posts on this topic. However, the advice/suggestions I have seen havent led me to a working system. I'm trying to setup Tomcat 4.0.6 and HTTPD Server 2.0 using mod_jk. I've followed instructions for this task from several sources and nothing seems to be working. Here are the steps I followed: 1) Added the following to httpd.conf: LoadModule jk_module modules/mod_jk.so This step also says to add the AddModule directive. This directive does not exist for 2.0 nor was I able to find an analogous directive to replace it. 2) I have the following in /usr/local/tomcat/conf/jk/workers.properties workers.list= ajp13 worker.ajp13.type=ajp13 worker.ajp13.host=192.168.1.250 worker.ajp13.port=8009 worker.ajp13.cachesize=10 worker.ajp13.cache_timeout=600 worker.ajp13.socket_keepalive=1 worker.ajp13.socket_timeout=300 3) I have the following in httpd.conf: JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties JkLogFile /usr/local/apache2/log/mod_jk.log JkLogLevel info JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkRequestLogFormat %w %V %T Include /usr/local/tomcat/conf/auto/mod_jk.conf 4) Here is my server.xml entry: Server port=8005 shutdown=SHUTDOWN debug=0 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig/ Service name=Tomcat-Apache Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0/ Engine name=Apache defaultHost=192.168.1.250 debug=0 appBase=webapps Logger className=org.apache.catalina.logger.FileLogger prefix=apache_log. suffix=.txt timestamp=true/ Realm className=org.apache.catalina.realm.MemoryRealm / Host name=192.168.1.250 debug=0 appBase=webapps unpackWARs=true Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true/ Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=192.168.1.250_access_log. suffix=.txt pattern=common/ /Host /Engine /Service /Server No errors show up in the access log but the following error shows up in the host log ($TOMCAT_HOME/logs/apache_log.2003-01-08.txt): 2003-01-08 13:07:57 Ajp13Processor[8008][4] [Ajp13] incomplete read, waited #-1 got only 0 And this is what I get in catalina.log: Unable to open config file Starting service Tomcat-Apache Apache Tomcat/4.0.6 Unable to open config file BAD packet 18245 In: : [B@45fde0 4/21540 47 45 54 20 00 00 00 00 00 00 00 00 00 00 00 00 | GET. 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | snip This goes on forever so I only included to the first few lines of the first packet... Any ideas what I missed? I did a web search on the error and got a couple of hits but none of them panned out. Thanks -b -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: HP-UX 10.20 + Oracle
If you need classes111.jar I have a copy and it has even been used on an HP-UX machine, albeit 11.0 -Original Message- From: Wagoner, Mark [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 10:57 AM To: 'Tomcat Users List' Subject: RE: HP-UX 10.20 + Oracle I think classes12.jar is for JDK 1.2. You want classes111.jar (if you can find it). -Original Message- From: John Clark [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 12:54 PM To: 'Tomcat Users List' Subject: HP-UX 10.20 + Oracle Hi there, The story so far: I have an intranet application that currently runs on a Linux server (with Oracle 9i - built-in Apache) and W2000 server (with Tomcat 4.x connecting to Oracle 8). It is written in JSP and Java, and works fine. I now want to use HP-UX 10.20 as a server, so I got the only available JDK from HP which is version 1.1.8 and this has forced me to use Tomcat 3.3.1. This is all running now (thanks for the help) and I am now testing the application. I have put in the Oracle classes12.jar and DriverManager.registerDriver seems fine, but DriverManager.getConnection gives the following error (only partial list): java.lang.ClassNotFoundException: java.util.Map at org.apache.tomcat.util.compat.SimpleClassLoader.loadClass(Compiled Code) at java.lang.ClassLoader.loadClassInternal(Compiled Code) at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:358) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260) at java.sql.DriverManager.getConnection(DriverManager.java:83) at java.sql.DriverManager.getConnection(DriverManager.java:126) at estimating._final.loginvalidate_1._jspService(loginvalidate_1.java:123) Anyone got any ideas? Many thanks as usual. John -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: REPOST: Tomcat 4.1.18: Digest authentication not working?
When you switched to Digest mode did you convert the original clear text passwords to the digest format you wish to use? -Original Message- From: KUMAR,PANKAJ (HP-Cupertino,ex1) [mailto:[EMAIL PROTECTED]] Sent: Monday, January 06, 2003 11:13 AM To: '[EMAIL PROTECTED]' Subject: REPOST: Tomcat 4.1.18: Digest authentication not working? Hi, I am resposting this message as I did not get any answer/comment/advice. Has anyone ever got Digest authentication working with Tomcat? -Original Message- From: KUMAR,PANKAJ (HP-Cupertino,ex1) [mailto:[EMAIL PROTECTED]] Subject: Tomcat 4.1.18: Digest authentication not working? Hi, I am a relative newbiw to Tomcat. The manager application works with BASIC authentication (default configuration), after making appropriate user and role entries in conf/tomcat-users.xml file. However, when I change BASIC to DIGEST as shown below: Default web.xml for manager: ... login-config auth-methodBASIC/auth-method realm-nameTomcat Manager Application/realm-name /login-config ... Modified web.xml for manager: ... login-config auth-methodDIGEST/auth-method realm-nameTomcat Manager Application/realm-name /login-config ... It doesn't work. I get the login prompt in my browser ( I tried both IE6.0 and Netscape 7.0 ) with the right realm string, but after entering the user name and the password, the prompt appers again. I am appending the HTTP dump (captured using a home grown interceptor tool ): = [HTTP] C -- S (370 bytes) GET /manager/html HTTP/1.1 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms- powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwav e-flash, */* Accept-Language: en-us Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) Host: localhost:8079 Connection: Keep-Alive [HTTP] C -- S (412 bytes) HTTP/1.1 401 Unauthorized Pragma: No-cache Cache-Control: no-cache Expires: Thu, 01 Jan 1970 00:00:00 GMT WWW-Authenticate: Digest realm=Tomcat Manager Application, qop=auth, nonce= bf3c8fa05f1260f6a9d4299d3b882339, opaque=03758823e3b14892bb4dc34ef834fa13 Content-Type: text/html Content-Language: en-US Transfer-Encoding: chunked Date: Sun, 05 Jan 2003 08:49:24 GMT Server: Apache Coyote/1.0 [HTTP] C -- S (5 bytes) 2ad [HTTP] C -- S (685 bytes) htmlheadtitleApache Tomcat/4.1.18-LE-jdk14 - Error report/titleSTYLE! --H1{font-family : sans-serif,Arial,Tahoma;color : white;background-color : #008 6b2;} H3{font-family : sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;} BODY{font-family : sans-serif,Arial,Tahoma;color : black;background-co lor : white;} B{color : white;background-color : #0086b2;} HR{color : #0086b2;} --/STYLE /headbodyh1HTTP Status 401 - /h1HR size=1 noshadepbt ype/b Status report/ppbmessage/b u/u/ppbdescription/b uT his request requires HTTP authentication ()./u/pHR size=1 noshadeh3Apa che Tomcat/4.1.18-LE-jdk14/h3/body/html [HTTP] C -- S (2 bytes) [HTTP] C -- S (5 bytes) 0 [HTTP] C -- S (683 bytes) GET /manager/html HTTP/1.1 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms- powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwav e-flash, */* Accept-Language: en-us Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) Host: localhost:8079 Connection: Keep-Alive Authorization: Digest username=pankaj, realm=Tomcat Manager Application, qop =auth, algorithm=MD5, uri=/manager/html, nonce=bf3c8fa05f1260f6a9d4299d3b 882339, nc=0001, cnonce=f7710dc1f6683517f0dd8dfd957a50bc, opaque=0375882 3e3b14892bb4dc34ef834fa13, response=8d3c122778ae3d95564f61a2238c8f51 [HTTP] C -- S (412 bytes) HTTP/1.1 401 Unauthorized Pragma: No-cache Cache-Control: no-cache Expires: Thu, 01 Jan 1970 00:00:00 GMT WWW-Authenticate: Digest realm=Tomcat Manager Application, qop=auth, nonce= d13c9c9d094919b14030f3bff72edc6b, opaque=bd29cf774ee39e6a3cc1c396293be208 Content-Type: text/html Content-Language: en-US Transfer-Encoding: chunked Date: Sun, 05 Jan 2003 08:49:34 GMT Server: Apache Coyote/1.0 [HTTP] C -- S (697 bytes) 2ad htmlheadtitleApache Tomcat/4.1.18-LE-jdk14 - Error report/titleSTYLE! --H1{font-family : sans-serif,Arial,Tahoma;color : white;background-color : #008 6b2;} H3{font-family : sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;} BODY{font-family : sans-serif,Arial,Tahoma;color : black;background-co lor : white;} B{color : white;background-color : #0086b2;} HR{color : #0086b2;} --/STYLE /headbodyh1HTTP Status 401 - /h1HR size=1 noshadepbt ype/b Status report/ppbmessage/b u/u/ppbdescription/b uT his request requires HTTP authentication ()./u/pHR size=1 noshadeh3Apa che Tomcat/4.1.18-LE-jdk14/h3/body/html 0 = Any help would be most appreciated. /Pankaj Kumar Home Page: http://www.pankaj-k.net Web Log:
RE: Configuring context docPaths
make docBase=/common/webs -Original Message- From: Myles M [mailto:[EMAIL PROTECTED]] Sent: Friday, December 27, 2002 10:27 AM To: [EMAIL PROTECTED] Subject: Configuring context docPaths I am trying to get Tomcat configured to allow access to pages stored in a location other than the webapps directory path. I am running tomcat 4.0.1-227 under suse 8.0. The location that I am trying to access is /common/webs. Files in this location are displayable from Apache, but, not Tomcat. I added the following context directive within the host directive for local host and directly below the TOMCAT ROOT CONTEXT directive. Context path=/pages docBase=pages debug=0 reloadable=true Logger className=org.apache.catalina.logger.FileLogger prefix=pages_log. suffix=.txt timestamp=true/ /Context I created a symbolic link to the directory within /opt/jakarta/webapps. I have checked the permissions to the directory and all its children, world has read, write and execute. By the way, I didn't really intend on using a link, but, thought that this way would be easier than maybe (???) having to create a new virtual host which I really don't want to do. I am a DB developer not an infrastructure expert. All I want to do is get a working environment with Apache and Tomcat. Please help, I am really frustrated with this stuff. I have been fighting it for months. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Hey Jeffrey
You can try one of two things place the workers and log files in C:\ as maybe there is some path problem. or change the /'s to \'s. usual apache does not care but maybe mod_jk does were you able to run the apachectl configtest from the apache bin directory or see any errors in the error log? -Original Message- From: Gman [mailto:[EMAIL PROTECTED]] Sent: Friday, December 27, 2002 11:22 AM To: 'Tomcat Users List' Subject: Hey Jeffrey I still can't get Apache to run when I add the following lines. # Configure mod_jk # #JkWorkersFile C:/Apache/conf/workers.properties--path to where I placed the workers.properties file. #JkLogFile C:/Apache/apache/logs/mod_jk.log--path to where the log files will and should be created. #JkLogLevel info--? #JkMount /examples/* ajp13--? George Flatman -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Hey Jeffrey
I went and stared at a computer that had an old version of apache on it. there used to be a config test drop down you could access from the start button on windows Start -- Programs -- Apache Http Server -- Configure Apache Server -- Test Configuration That should run a check of your http conf file for you. Without some sort of error message it will be difficult to determine what is wrong with the setup. -Original Message- From: Gman [mailto:[EMAIL PROTECTED]] Sent: Friday, December 27, 2002 12:20 PM To: 'Tomcat Users List' Subject: RE: Hey Jeffrey I was unable to get any of the apachectl configtest from the apache bin directory, There were not any errors in the Apache error log, just the normal startup and shutdown entries. George Flatman -Original Message- From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] Sent: Friday, December 27, 2002 10:38 AM To: 'Tomcat Users List' Subject: RE: Hey Jeffrey You can try one of two things place the workers and log files in C:\ as maybe there is some path problem. or change the /'s to \'s. usual apache does not care but maybe mod_jk does were you able to run the apachectl configtest from the apache bin directory or see any errors in the error log? -Original Message- From: Gman [mailto:[EMAIL PROTECTED]] Sent: Friday, December 27, 2002 11:22 AM To: 'Tomcat Users List' Subject: Hey Jeffrey I still can't get Apache to run when I add the following lines. # Configure mod_jk # #JkWorkersFile C:/Apache/conf/workers.properties--path to where I placed the workers.properties file. #JkLogFile C:/Apache/apache/logs/mod_jk.log--path to where the log files will and should be created. #JkLogLevel info--? #JkMount /examples/* ajp13--? George Flatman -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: mod_jk---still trying, getting closer
statements: (For example JkMount /examples/* worker1) worker.list=worker1 worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=8009 On a side note, my workers.properties has 644 permissions (-rw-r--r--). Would you post your files and error logs? I am sure someone in here would take a look... I can also look just to see any major differences against mine.. Denise -Original Message- From: Jerry Ford [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 24, 2002 4:31 PM To: Tomcat Users List Subject: Re: mod_jk---still trying, getting closer Yes, good idea about the symbolic links. I have done now so---sym links for both apache and tomcat. I have also moved all mod_jk configs into httpd.conf. And I'm still getting the same results---catalina.out says Jk is okay, apache works, tomcat works (with servlets) but the apache error_log says error while opening the workers, jk will not work. And sure enough, no servlets through Apache. Jerry Milt Epstein wrote: On Tue, 24 Dec 2002, Jerry Ford wrote: Ooops, sorry, I was using shorthand in showing the directory gtree; actual name of the directory is the full jakarta-tomcat-4.1.12-LE-jdk14; same for apache, it's acutally apache_1.3.27 (whew, guess I need to change those anyway, that's a lot of typing!!! :) I just untarred them and kept the default names. FWIW, you still might want to create a symbolic link tomcat (under webserver) that points to jakarta-tomcat-4.1.12-LE-jdk14. This might not fix your problem here, but it could save you some hassle if/when you upgrade to new versions. PELOQUIN,JEFFREY (HP-Boise,ex1) wrote: Jerry, The confusion as to the name arises from your printour of your directory structure drwxrwxr-x...usr/ drwxrwxr-x..local/ drwxrwxr-x.webserver/ drwxrwxr-xapache/ drwxrwxr-xtomcat/ drwxrwxr-x...conf/ drwxrwxr-x..jk/ -rw-rw-r-x.workers.properties there is no jakarta-tomcat-4.12.12-LE-jdk14 mentioned which implies there is a mismatch of names -Original Message- From: Jerry Ford [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 24, 2002 12:49 PM To: Tomcat Users List Subject: Re: mod_jk---still trying, getting closer Justin: My bad. I didn't copy and paste, I retyped the JkLogFile reference. In the config, it correctly says mod_jk.log. I don't understand what would be accomplished by changing jakarta-tomcat-4.12.12-LE-jdk14 to simply tomcat. The name of the directory is the full name, as it was created when I untarred Tomcat. If I change the reference in the configs to tomcat and change the name of the directory to tomcat how is that any different? As for auto-conf, you are right. I think I will do as you suggest and move everything into httpd. Jerry Justin L. Spies wrote: Jerry, I've never used the auto/mod_jk stuff, so I can't comment on that. What is weird to me though, is the line that reads: JkLogFile /usr/local/webserver/jakarta-tomcat-4.1.12-LE-jdk14/conf/jk/workers.p r o perties That leads me to believe that mod_jk is configured to overwrite the workers.properties file with the mod_jk log. I would have expected to see the lines: JkWorkersFile /usr/local/webserver/jakarta-tomcat-4.1.12-LE-jdk14/conf/jk/workers.p r o perties JKLogFile /usr/local/webserver/jakarta-tomcat-4.1.12-LE-jdk14/conf/jk/mod_jk.lo g Changing those as suggested by Jeffrey (I agree with him on these changes), they would like this: JkWorkersFile /usr/local/webserver/apache/tomcat/conf/jk/workers.properties JKLogFile /usr/local/webserver/apache/tomcat/conf/jk/mod_jk.log If I were in your shoes, I think that I would try to get mod_jk working without the auto configuration. Once I had that working, I would then focus on the autoconfig. I don't know about you, but in my experience, when I try to get everything working in the first run, I usually miss something and have to take a step back and start with the basics. That's just me though. Sincerely, Pantek Incorporated Justin L. Spies URI: http://www.pantek.com Ph 440.519.1802 Fax 440.248.5274 Cell 440.336.3317 -Original Message- From: Jerry Ford [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 24, 2002 12:42 PM To: tomcat-user Subject: mod_jk---still trying, getting closer Thanks to some examples of working configs provided by several people here, I am making progress in getting Apache 1.3.27 and Tomcat 4.1.12 to work together through mod_jk, but it still isn't working yet. Tomcat and Apache run fine independently: http://localhost opens Apache's index.html http://localhost:8080 opens Tomcat's index and servlet examples work fine. http://localhost/examples/servlets opens the servlets
RE: Tomcat 3.2 versus 4.1
Ronen, The biggest issues I have seen are 1. Tomcat 4 strictly adheres to the DTD for the web.xml for web applications where as some version of Tomcat 3 did not. The DTD for the web.xml is specfied in the Servlet specs available at http://java.sun.com/products/servlet/download.html. I do not remember the actual error returned but it fairly obvious. 2. As specifed in the release notes for Tomcat 4 Starting with Tomcat 4.1.12, the invoker servlet is no longer available by default in all webapp. Enabling it for all webapps is possible by editing $CATALINA_HOME/conf/web.xml to uncomment the /servlet/* servlet-mapping definition. Using the invoker servlet in a production environment is not recommended and is unsupported. 3. As specifed in the release notes for Tomcat 4 Unix symlinks will not work when used in a web application to link resources located outside the web application root directory. This behavior is optional, and the allowLinking flag may be used to disable the check. I include an email from the list specifing the fix athough I have not actually implemented it. 4. For the most CPU intensive webapp I saw a factor of 2 increase (6 secs to 3 to 4 secs) in speed. All others stayed about the same but they had sub second responses to begin with so I was not expecting an increase. 5. Tomcat 4 comes with the Coyote JK connector turned on by default. But the original JK/ajp connector is still available. The coyote connector is technically for use with the JK2 module for apache2 but it appears to work for JK with apache 1.3 and apache 2.0. It does load info from $TOMCAT_HOME/conf/jk2.properties but the default file has everything commented out. It would be good to validate you apps against both connectors and see which works best for you. I am currently doing this on our test server and so far have not noticed any significant difference. Jeff -Original Message- From: Ronen Shenkar [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 6:27 AM To: Tomcat Users List Subject: Tomcat 3.2 versus 4.1 Hi, I'm considering upgrading from Tomcat 3.2 to Tomcat 4.1. I wonder if the performance and other improvements between the two releases are major and if the upgrade itself is painful. Is there a document instructing how to do such an upgrade? Thanks, ronen -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] ---BeginMessage--- -Original Message- From: Bob McCormick [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 12:18 PM To: Tomcat Users List Subject: RE: Status of Symbolic Links on Linux/TC 4.1.12??? OK - thanks. Didn't realize that this version is alpha. Don't wish to play with an alpha version for what we're doing. I was able to get this to work with 4.1.12 by the doing the following: In the server.xml I turned on the context for ROOT and added a Resource as follows: Context path= docBase=ROOT debug=0 Resources className=org.apache.naming.resources.FileDirContext allowLinking=true caseSensitive=false / /Context I would imagine you can add the above Resource to any context and it will follow the symlinks. Thanks...Bob On Thu, 2002-11-21 at 10:58, Turner, John wrote: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.15-alpha/bi n/ John -Original Message- From: Bob McCormick [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 1:50 PM To: Tomcat Users List Subject: Re: Status of Symbolic Links on Linux/TC 4.1.12??? Hi Bill, OK - sounds good. Now, how do I find the 4.1.15? I went to the binaries and see that there is only 4.1.12. I a bit new to Tomcat, so I'm groping a bit here. Thanks..Bob On Wed, 2002-11-20 at 22:41, Bill Barker wrote: It should be pretty much working in 4.1.15 now (as long as you configure the Resources yourself). From 4.1.13, you can also get it to work by setting the caseSensitive=false attribute on the Resources tag. Bob McCormick [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi All, Have checked the archives and see that someone was having a problem with being able to access URL's via Tomcat 4.1.x that contain a symbolic link. I too am having this problem and was hoping to only use TomCat to serve up content. Would anyone be able to tell me whether this is just an overlooked bug, specified setting in the security settings somewhere or flat-out not going to be something that is supported any longer. We'd really like to NOT have to use Apache to have on less thing to worry about, and so any information on this particular would be GREATLY appreciated. Thanks...Bob Bob McCormick IST -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL
RE: I'm lost... connecting Tomcat 4.1.18 to Apache 2.0.43/mod_jk2
Question 1: why is there a $ is the path? $/usr/local/apache2/conf/workers2.properties Question 2. does the file /usr/local/apache2/conf/workers2.properties exist? i.e. is you execute more /usr/local/apache2/conf/workers2.properties at the command prompt does it return the file? Jeff -Original Message- From: WebMaster WebMaster [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 9:46 AM To: [EMAIL PROTECTED] Subject: I'm lost... connecting Tomcat 4.1.18 to Apache 2.0.43/mod_jk2 This is my first post and I've been reasonably successful with apache 1.3.x and tomcat 3.x... I need help with Tomcat 4.1.18 to Apache 2.0.43. I can't get them to communicate, its probably just a config problem with mod_jk2. I think I found the error but am not sure how to ix it... this is in Apache's error log: [Thu Dec 26 10:28:06 2002] [notice] Digest: generating secret for digest authentication ... [Thu Dec 26 10:28:06 2002] [notice] Digest: done [Thu Dec 26 10:28:07 2002] [error] config.update(): Can't find config file $/usr/local/apache2/conf/workers2.properties [Thu Dec 26 10:28:07 2002] [error] shm.init(): No file [Thu Dec 26 10:28:07 2002] [error] shm.init(): No file [Thu Dec 26 10:28:07 2002] [error] jk2_init() Can't find child 13534 in scoreboard [Thu Dec 26 10:28:07 2002] [error] mod_jk child init 1 0 [Thu Dec 26 10:28:07 2002] [error] shm.init(): No file [Thu Dec 26 10:28:07 2002] [error] mod_jk child init 1 -2 [Thu Dec 26 10:28:07 2002] [error] shm.init(): No file [Thu Dec 26 10:28:07 2002] [error] jk2_init() Can't find child 13536 in scoreboard [Thu Dec 26 10:28:07 2002] [error] shm.init(): No file [Thu Dec 26 10:28:07 2002] [error] mod_jk child init 1 -2 [Thu Dec 26 10:28:07 2002] [notice] Apache/2.0.43 (Unix) DAV/2 PHP/4.2.3 FrontPage/5.0.2.2624 mod_jk2/2.0.3-dev configure d -- resuming normal operations [Thu Dec 26 10:28:07 2002] [error] shm.init(): No file [Thu Dec 26 10:31:18 2002] [error] shm.init(): No file Thomas Web Admininistration Team DeVry University Kansas City, Missouri [EMAIL PROTECTED] 816.941.0430 x5900 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: I'm lost... connecting Tomcat 4.1.18 toApache2.0.43/mod_jk2
what was the problem? -Original Message- From: WebMaster WebMaster [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 10:17 AM To: [EMAIL PROTECTED] Subject: RE: I'm lost... connecting Tomcat 4.1.18 toApache2.0.43/mod_jk2 Ok... I fixed that error... Web Admininistration Team DeVry University Kansas City, Missouri [EMAIL PROTECTED] 816.941.0430 x5900 [EMAIL PROTECTED] 12/26/02 11:07AM I think I found the error. Hold 1. Web Admininistration Team DeVry University Kansas City, Missouri [EMAIL PROTECTED] 816.941.0430 x5900 [EMAIL PROTECTED] 12/26/02 11:02AM I don't know where it gets the $. I'm not sure how to get rid of it either? Where is that specified? Yes the file exists. [EMAIL PROTECTED] 12/26/02 10:52AM Question 1: why is there a $ is the path? $/usr/local/apache2/conf/workers2.properties Question 2. does the file /usr/local/apache2/conf/workers2.properties exist? i.e. is you execute more /usr/local/apache2/conf/workers2.properties at the command prompt does it return the file? Jeff -Original Message- From: WebMaster WebMaster [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 9:46 AM To: [EMAIL PROTECTED] Subject: I'm lost... connecting Tomcat 4.1.18 to Apache 2.0.43/mod_jk2 This is my first post and I've been reasonably successful with apache 1.3.x and tomcat 3.x... I need help with Tomcat 4.1.18 to Apache 2.0.43. I can't get them to communicate, its probably just a config problem with mod_jk2. I think I found the error but am not sure how to ix it... this is in Apache's error log: [Thu Dec 26 10:28:06 2002] [notice] Digest: generating secret for digest authentication ... [Thu Dec 26 10:28:06 2002] [notice] Digest: done [Thu Dec 26 10:28:07 2002] [error] config.update(): Can't find config file $/usr/local/apache2/conf/workers2.properties [Thu Dec 26 10:28:07 2002] [error] shm.init(): No file [Thu Dec 26 10:28:07 2002] [error] shm.init(): No file [Thu Dec 26 10:28:07 2002] [error] jk2_init() Can't find child 13534 in scoreboard [Thu Dec 26 10:28:07 2002] [error] mod_jk child init 1 0 [Thu Dec 26 10:28:07 2002] [error] shm.init(): No file [Thu Dec 26 10:28:07 2002] [error] mod_jk child init 1 -2 [Thu Dec 26 10:28:07 2002] [error] shm.init(): No file [Thu Dec 26 10:28:07 2002] [error] jk2_init() Can't find child 13536 in scoreboard [Thu Dec 26 10:28:07 2002] [error] shm.init(): No file [Thu Dec 26 10:28:07 2002] [error] mod_jk child init 1 -2 [Thu Dec 26 10:28:07 2002] [notice] Apache/2.0.43 (Unix) DAV/2 PHP/4.2.3 FrontPage/5.0.2.2624 mod_jk2/2.0.3-dev configure d -- resuming normal operations [Thu Dec 26 10:28:07 2002] [error] shm.init(): No file [Thu Dec 26 10:31:18 2002] [error] shm.init(): No file Thomas Web Admininistration Team DeVry University Kansas City, Missouri [EMAIL PROTECTED] 816.941.0430 x5900 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache Tomcat configuration Issue
List o' links http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/connectors.html http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html http://www.johnturner.com/howto/apache-tomcat-howto.html (this is mainly jk not jk2 if I recall) the dll should go into APACHE_ROOT/libexec the ApacheConfig directive if I recall is for jk in Tomcat 3 and there is a different tag for tomcat 4, see links above. I prefer to hard code the directives. I would suggest trying mod_jk instead of mod_jk2 as there is more documentation available and a larger experience base. John Turner has a collection of downloads. While the online documentation does lag behind the actual code development the information is out there and I have found the info on the jakarta site to be quite helpful for mod_jk in the latest 4.1 release Jeff -Original Message- From: Moutoux, Myles [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 10:14 AM To: [EMAIL PROTECTED] Subject: Apache Tomcat configuration Issue This seems to be a very common issue, however, I have to submit is again because I am unable to get things to work properly. I have read all the documentation that I can find, but, end up more confused than when I started. So, here goes. Everything is running on a Win2K machine with plenty of memory and disk and most of the latest patches. I have successfully installed Apache 2.0.43 and it is running OK. I services my static web pages successfully and also services PHP requests. I have installed Tomcat 4.1.17 with JDK 1.4.0.03. This works fine for serving my JSP pages and JavaBeans. Now, I need to integrate the two so that whenever Apache, listening on port 80, receives a request for a JSP it forwards the request to Tomcat, currently listening in port 8081. I have downloaded the MOD_JK2-2.0.43.dll, but, have no idea where to put it other than in the \winnt\system32 directory. Some of the documentation suggest turning on the Apache auto-config option in Tomcat. It suggest putting the ApacheConfig / directive in the server.xml file directly below the AutoWebApp ... / directive. In my file there is no such place, so, that's a dead end. I tried putting the directive in anyway, to no avail. I tried creating a WORKER2.PROPERTIES file from scratch and also modified the JK2.PROPERTIES file as directed by some of the Jakarta documentation. None of this has accomplished anything. Perhaps the people that put Tomcat and Apache together should consider putting some simple straight forward documentation together that describes exactly how to accomplish this task. At the moment it's way to complicated. If anyone has any come up with a way of making this work, please let me know. I would appreciate any assistance. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: ClassNotFoundException:org.apache.commons.dbcp.BasicDataSourceFactory
Chhaya, see http://jakarta.apache.org/commons/dbcp.html you should have a copy of commons-dbcp.jar (Commons DBCP 1.0) at jakarta-tomcat-4.1.18/common/lib did you get the full version or the LE Jeff -Original Message- From: Coolslife [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 10:55 AM To: [EMAIL PROTECTED] Subject: ClassNotFoundException:org.apache.commons.dbcp.BasicDataSourceFactory Hello, I am using Tomcat 4.1.18. I also have the oracle i(8.1.7) client installed and have the Classes12.zip (renamed to classes12.jar) in my tomcat/common/lib directory. I get the following error while trying to access some of my files. ClassNotFoundException:org.apache.commons.dbcp.BasicDataSourceFactory This seems to be a common problem but I could not find a satisfactory solution for this. I tried doing a search on existing jar/class for this class but could find it. Is there something that I need to include in my path or do I need to install something more? Thanks, Chhaya. - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: So lost and confused
your http.conf has these lines commented out and thus inactive but from what I see in a previous post this is most likley due to apache not starting and I assume you purposefully commented them out. #LoadModule jk2_module modules/mod_jk2-2.0.43.dll #Include /Tomcat 4.1/conf/jk/mod_jk.conf-auto Have your tried downloading mod_jk.dll from http://www.johnturner.com/howto/apache-tomcat-howto.html and using that? also the space you have in the directory path may be an issue. I do not do much apache/tomcat on windows but I have seen spaces in the path beeing listed as a concern. There was even a post earlier today that mentioned it with regard to mod_jk. try renaming Tomcat 4.1 to Tomcat4.1. also what is inside the /Tomcat 4.1/conf/jk/mod_jk.conf-auto file? that looks like something generated for use by mod_jk and not mod_jk2. Jeff -Original Message- From: Gman [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 11:18 AM To: 'Tomcat Users List' Subject: So lost and confused I have tried to add the module mod_jk.so I have even tried mod_jk-2.0.43.dll in my apache http.conf and nothing works. I have been to the following web sites. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/connectors.html http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html http://www.johnturner.com/howto/apache-tomcat-howto.html And now I am even more confused and I can't figure what the hell to do. I have Apache 2.0.43 currently running perfect(no easy task). I have installed Tomcat 4.18 to run the java servlets I want to use. Is there an idiots guide in simple english to get Apache to work with Tomcat? Or is there another way to run Java that is simpler? I have even attached my Apache http.conf file for viewing and laughing purposes. Any help getting this to work would be greatly appreciated. George Flatman -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: mod_jk---still trying, getting closer
Just for chuckles try it without putting quote around the file names this is how I have it my http.conf JkWorkersFile /opt_apps/hpapache2/conf/workers.properties JkLogFile /opt_apps/hpapache2/logs/mod_jk.log JkLogLevel info if that does not work try moving the files local to the apache conf and log directories Jeff -Original Message- From: Jerry Ford [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 11:54 AM To: Tomcat Users List Subject: Re: mod_jk---still trying, getting closer Yes. Same results. PELOQUIN,JEFFREY (HP-Boise,ex1) wrote: Your http.conf shows that apache is running as nobody have you tried changing that so it runs as the owner of the apache and tomcat directory structure? -Original Message- From: Jerry Ford [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 12:32 AM To: Tomcat Users List Subject: Re: mod_jk---still trying, getting closer John: Sorry, I had changed ajp13 to worker1 in trying to emulate Denise's working setup, but that didn't do any good so I changed it back and inadvertently put the dot in. But it doesn't matter, it doesn't work either way. As noted in earlier e-mails, I can get the Tomcat example servlets to work, as well as my own j_tools HelloWorld, when I specify port 8080, but not through Apache: http://localhost opens Apache's index page http://localhost:8080 opens Tomcat's index page, and servlets work http://localhost/examples/servlets opens the servlets index page, but servlets don't work Catalina.out in Tomcat's logs directory says mod_jk is running: Dec 25, 2002 8:50:51 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Starting service Tomcat-Standalone Apache Tomcat/4.1.12-LE-jdk14 Dec 25, 2002 8:50:57 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 Dec 25, 2002 8:50:57 PM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on tcp port 8009 Dec 25, 2002 8:50:57 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=2/121 config=/usr/local/webserver/jakarta-tomcat-4.1.12-LE-jdk14/conf/jk2.propert i es Stopping service Tomcat-Standalone Dec 25, 2002 11:26:13 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Starting service Tomcat-Standalone Apache Tomcat/4.1.12-LE-jdk14 Dec 25, 2002 11:26:18 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 Dec 25, 2002 11:26:18 PM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on tcp port 8009 Dec 25, 2002 11:26:19 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=1/277 config=/usr/local/webserver/jakarta-tomcat-4.1.12-LE-jdk14/conf/jk2.propert i es But the Apache error log says Apache cannot open the workers file, even though the path specified is correct and permissions to the file are -rw-rw-r-- and to all directories drwxrwxr-x: [Wed Dec 25 15:14:36 2002] [error] (2)No such file or directory: Error while opening the workers, jk will not work [Wed Dec 25 15:14:36 2002] [error] (2)No such file or directory: Error while opening the workers, jk will not work [Wed Dec 25 15:14:36 2002] [notice] Apache/1.3.27 (Unix) mod_jk/1.2.0 configured -- resuming normal operations [Wed Dec 25 15:14:36 2002] [notice] Accept mutex: sysvsem (Default: sysvsem) Jerry Turner, John wrote: Whoa, I have NEVER seen a worker called ajp.13 before. I can't imagine that that would work at all, as . is a separator in workers.properties. Is there a reason you are using that instead of ajp13 or something else? Also, what exact URL are you trying to access? What URL is not working? From your httpd.conf, the only possible URL that would work, aside from the examples, the manager app, and the admin app, is: http://localhost/j_tools/servlet/HelloWorld and http://localhost/j_tools/some.jsp Are those what you are trying? John -Original Message- From: Jerry Ford [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 25, 2002 6:22 PM To: Tomcat Users List Subject: Re: mod_jk---still trying, getting closer Denise: Other than path names, the major differences between your set up and mine is that you use SSL, and I don't, and you have a lot more modules loaded than I do (in addition to mod_jk). But I don't see those differences as having anything to do with why yours works and mine doesn't. For one thing, this installation of Apache is on my development workstation, and I just installed it to test the tomcat connection. So, it doesn't need to be a fully functional web server. At least, not yet. Also, I removed the comments from my conf file so I can find things :) I have tried it both ways---with an include statement pointing to mod_jk.conf in tomcat/conf/auto, and with statements inside httpd.conf. Same results. I have also experimented with a variety of permissions on both files and directories. My
RE: So lost and confused
I would grab the one for 4.1.10. The question marks most likely refer to a question as to the version of apache it was compiled against. You will only get Tomcat\conf\jk\mod_jk.conf-auto, if you configure tomcat to generate it for you. Let us not worry about that for the moment so for mod_jk.dll for your http.conf you should have something like this # Load mod_jk # LoadModule jk_module modules/name of downloaded file # Configure mod_jk # JkWorkersFile path/to/apache/conf/workers.properties JkLogFile path/to/apache/logs/mod_jk.log JkLogLevel info JkMount /examples/* ajp13 I like the files local to apache rather than tomcat but they can go anywhere place the attached workers.properties in path/to/apache/conf/ change I set worker.ajp13.port=8009, which is the default and it matches what i have in the server.xml below I commented out my lines for these two but you may need them, they are sometimes optional. If you need them change the path to point to your java and tomcat installations worker.tomcat_home=/opt_apps/jakarta-tomcat-4.1.18 to point to the root of your tomcat install worker.java_home=/opt/java1.3 to where your java is in your server.xml you need Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=false redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ or Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ -Original Message- From: Gman [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 11:51 AM To: 'Tomcat Users List' Subject: RE: So lost and confused Hey Thanks, yes Jeffrey I commented those lines out so Apache would run. I am so confused I went to link you provide and found 3 entries 2 with question marks so I grabbed the one the did not have question marks. And when I downloaded the mod_jk.dll but the file It downloaded from that website was called mod_jk2_4_1_12.dll. Should I rename that file to mo_jk.dll and then update the paths to point to that one? I uninstalled and then reinstalled Tomcat in a folder called C:\Tomcat4.1 like you said. There is no mod_jk.conf-auto file in the Tomcat\conf\jk\mod_jk.conf-auto. There is no \jk directory under Tomcat\conf. -Original Message- From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 10:36 AM To: 'Tomcat Users List' Subject: RE: So lost and confused your http.conf has these lines commented out and thus inactive but from what I see in a previous post this is most likley due to apache not starting and I assume you purposefully commented them out. #LoadModule jk2_module modules/mod_jk2-2.0.43.dll #Include /Tomcat 4.1/conf/jk/mod_jk.conf-auto Have your tried downloading mod_jk.dll from http://www.johnturner.com/howto/apache-tomcat-howto.html and using that? also the space you have in the directory path may be an issue. I do not do much apache/tomcat on windows but I have seen spaces in the path beeing listed as a concern. There was even a post earlier today that mentioned it with regard to mod_jk. try renaming Tomcat 4.1 to Tomcat4.1. also what is inside the /Tomcat 4.1/conf/jk/mod_jk.conf-auto file? that looks like something generated for use by mod_jk and not mod_jk2. Jeff -Original Message- From: Gman [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 11:18 AM To: 'Tomcat Users List' Subject: So lost and confused I have tried to add the module mod_jk.so I have even tried mod_jk-2.0.43.dll in my apache http.conf and nothing works. I have been to the following web sites. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/connectors.html http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html http://www.johnturner.com/howto/apache-tomcat-howto.html And now I am even more confused and I can't figure what the hell to do. I have Apache 2.0.43 currently running perfect(no easy task). I have installed Tomcat 4.18 to run the java servlets I want to use. Is there an idiots guide in simple english to get Apache to work with Tomcat? Or is there another way to run Java that is simpler? I have even attached my Apache http.conf file for viewing and laughing purposes. Any help getting this to work would be greatly appreciated. George Flatman -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] workers.properties Description: Binary data -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache Tomcat configuration Issue
I do not know about tomcat and php, I would guess no. however the www.apache.org http://www.apache.org site lists this as the link for php http://www.php.net/ http://www.php.net/ you might want to try the apache list group as well as any list group list listed on the php site good luck Jeff -Original Message- From: Moutoux, Myles [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 12:49 PM To: Tomcat Users List Subject: RE: Apache Tomcat configuration Issue I've tried everything that I can, based on the references that you sent. All without success. Perhaps there is another way. The only reason that I wanted to have Apache on this particular machine is so that I could use some of the functionality of PHP. Is there a way that I could have Tomcat service PHP requests? -Original Message- From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] Sent: Thu 12/26/2002 12:27 PM To: 'Tomcat Users List' Cc: Subject: RE: Apache Tomcat configuration Issue List o' links http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/connectors.html http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/connectors.html http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html http://www.johnturner.com/howto/apache-tomcat-howto.html http://www.johnturner.com/howto/apache-tomcat-howto.html (this is mainly jk not jk2 if I recall) the dll should go into APACHE_ROOT/libexec the ApacheConfig directive if I recall is for jk in Tomcat 3 and there is a different tag for tomcat 4, see links above. I prefer to hard code the directives. I would suggest trying mod_jk instead of mod_jk2 as there is more documentation available and a larger experience base. John Turner has a collection of downloads. While the online documentation does lag behind the actual code development the information is out there and I have found the info on the jakarta site to be quite helpful for mod_jk in the latest 4.1 release Jeff -Original Message- From: Moutoux, Myles [ mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ] Sent: Thursday, December 26, 2002 10:14 AM To: [EMAIL PROTECTED] Subject: Apache Tomcat configuration Issue This seems to be a very common issue, however, I have to submit is again because I am unable to get things to work properly. I have read all the documentation that I can find, but, end up more confused than when I started. So, here goes. Everything is running on a Win2K machine with plenty of memory and disk and most of the latest patches. I have successfully installed Apache 2.0.43 and it is running OK. I services my static web pages successfully and also services PHP requests. I have installed Tomcat 4.1.17 with JDK 1.4.0.03. This works fine for serving my JSP pages and JavaBeans. Now, I need to integrate the two so that whenever Apache, listening on port 80, receives a request for a JSP it forwards the request to Tomcat, currently listening in port 8081. I have downloaded the MOD_JK2-2.0.43.dll, but, have no idea where to put it other than in the \winnt\system32 directory. Some of the documentation suggest turning on the Apache auto-config option in Tomcat. It suggest putting the ApacheConfig / directive in the server.xml file directly below the AutoWebApp ... / directive. In my file there is no such place, so, that's a dead end. I tried putting the directive in anyway, to no avail. I tried creating a WORKER2.PROPERTIES file from scratch and also modified the JK2.PROPERTIES file as directed by some of the Jakarta documentation. None of this has accomplished anything. Perhaps the people that put Tomcat and Apache together should consider putting some simple straight forward documentation together that describes exactly how to accomplish this task. At the moment it's way to complicated. If anyone has any come up with a way of making this work, please let me know. I would appreciate any assistance. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
RE: Apache Tomcat configuration Issue
to the best of my knowledge tomcat will not perform php requests. But then again I have never used php so I have not needed to ask the question. If all you are interested in is PHP not getting apache/tomcat connected, I would suggest reposting the question monday morning with a different subject heading when more people will be back at work and checking their email. Traffic this week has been at about 10% of its usual. If you need mod_jk to work you might look at a post of mine from earlier today under the subject so lost and confused that advice I gave there may be of use to you Jeff -Original Message- From: Moutoux, Myles [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 12:55 PM To: Tomcat Users List Subject: RE: Apache Tomcat configuration Issue I know that it works with Apache2. I've already had that working. What I was hoping was that there was a way to make a stand-alone Tomcat installation handle the requests. -Original Message- From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] Sent: Thu 12/26/2002 2:52 PM To: 'Tomcat Users List' Cc: Subject: RE: Apache Tomcat configuration Issue I do not know about tomcat and php, I would guess no. however the www.apache.org http://www.apache.org http://www.apache.org site lists this as the link for php http://www.php.net/ http://www.php.net/ http://www.php.net/ http://www.php.net/ you might want to try the apache list group as well as any list group list listed on the php site good luck Jeff -Original Message- From: Moutoux, Myles [ mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ] Sent: Thursday, December 26, 2002 12:49 PM To: Tomcat Users List Subject: RE: Apache Tomcat configuration Issue I've tried everything that I can, based on the references that you sent. All without success. Perhaps there is another way. The only reason that I wanted to have Apache on this particular machine is so that I could use some of the functionality of PHP. Is there a way that I could have Tomcat service PHP requests? -Original Message- From: PELOQUIN,JEFFREY (HP-Boise,ex1) [ mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ] Sent: Thu 12/26/2002 12:27 PM To: 'Tomcat Users List' Cc: Subject: RE: Apache Tomcat configuration Issue List o' links http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/connectors.html http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/connectors.html http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/connectors.html http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/connectors.html http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html http://www.johnturner.com/howto/apache-tomcat-howto.html http://www.johnturner.com/howto/apache-tomcat-howto.html http://www.johnturner.com/howto/apache-tomcat-howto.html http://www.johnturner.com/howto/apache-tomcat-howto.html (this is mainly jk not jk2 if I recall) the dll should go into APACHE_ROOT/libexec the ApacheConfig directive if I recall is for jk in Tomcat 3 and there is a different tag for tomcat 4, see links above. I prefer to hard code the directives. I would suggest trying mod_jk instead of mod_jk2 as there is more documentation available and a larger experience base. John Turner has a collection of downloads. While the online documentation does lag behind the actual code development the information is out there and I have found the info on the jakarta site to be quite helpful for mod_jk in the latest 4.1 release Jeff -Original Message- From: Moutoux, Myles [ mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ] Sent: Thursday, December 26, 2002 10:14 AM To: [EMAIL PROTECTED] Subject: Apache Tomcat configuration Issue This seems to be a very common issue, however, I have to submit is again because I am unable to get things to work properly. I have read all the documentation that I can find, but, end up more confused than when I started. So, here goes. Everything is running on a Win2K machine with plenty of memory and disk and most of the latest patches. I have successfully installed Apache 2.0.43 and it is running OK. I services my static web pages successfully and also services PHP requests. I have installed Tomcat 4.1.17 with JDK 1.4.0.03. This works fine for serving my JSP pages and JavaBeans. Now, I need to integrate the two so that whenever Apache, listening on port 80, receives a request for a JSP it forwards the request to Tomcat, currently listening in port 8081. I have downloaded the MOD_JK2-2.0.43.dll, but, have no idea where to put it other than in the \winnt\system32 directory. Some of the documentation suggest turning on the Apache auto-config option in Tomcat. It suggest putting the ApacheConfig / directive
Apache/Tomcat JK binaries
As I do not use apache/tomcat on windows I cannot give an authorative answer on where to get mod_jk but there are binaries located at http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.0 /bin/win32/ and http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.1 /bin/win32/ that were prepared by the connector team. These should be for the jk protocol and not the jk2 protocol As for the binaries offered by John Turner on his web site he offeres three different binaries for windows but they appear to listed as specific for Apache 2.0 which suggests that they are the jk2 protocol. and from the comment in prior email today, these do indeed appear to be jk2 binaries there should be no reason why you cannot rename them to what ever name you wish but if you keep the name it comes with you will have some idea as to its pedigree Jeff -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache and Tomcat.
This link will give you initial info on the auto generating capabilities http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk.html you can also look at http://www.johnturner.com/howto/apache-tomcat-howto.html There are also numerous emails today and in the archive on the subject You may want to consider hard coding the http.conf first before doing the auto generation. -Original Message- From: Hans Deragon [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 1:08 PM To: [EMAIL PROTECTED] Subject: Apache and Tomcat. Greetings. I want to connect Apache to Tomcat. However, I am stumbling on a few problems: 1) How can I configure Tomcat to generate the mod_jk.conf-auto file? I cannot find any documentation on how to do this, and looking at the CATALINA_HOME/conf/* files did not gave any clue. I want to use the mod_jk but with the auto configuration file if possible. 2) According to the documentation, webapp is better than mod_jk. But I searched the web and www.apache.org, jakarta.apache.org, modules.apache.org but could not find the module! Can someone provide me the link to the home page of this module? Sincerely, Hans Deragon -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: So lost and confused
try one of the files from http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.1 /bin/win32/ like mod_jk-2.0.43.dll This should ensure that you get a jk and not a jk2 file. While jk2 should work I have never configured the tomcat side for jk2 use. -Original Message- From: Gman [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 1:33 PM To: 'Tomcat Users List' Subject: RE: So lost and confused Ok I am doing this in steps so if it does not work I won't be more confused. I have added the following line only to my http.conf LoadModule jk2_module modules/mod_jk2-2.0.43.dll---this is the file I download from http://www.johnturner.com/howto/apache-tomcat-howto.html should I try another one? Or what should I do next? Sorry to be a pain;o George Flatman -Original Message- From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 11:12 AM To: 'Tomcat Users List' Subject: RE: So lost and confused I would grab the one for 4.1.10. The question marks most likely refer to a question as to the version of apache it was compiled against. You will only get Tomcat\conf\jk\mod_jk.conf-auto, if you configure tomcat to generate it for you. Let us not worry about that for the moment so for mod_jk.dll for your http.conf you should have something like this # Load mod_jk # LoadModule jk_module modules/name of downloaded file # Configure mod_jk # JkWorkersFile path/to/apache/conf/workers.properties JkLogFile path/to/apache/logs/mod_jk.log JkLogLevel info JkMount /examples/* ajp13 I like the files local to apache rather than tomcat but they can go anywhere place the attached workers.properties in path/to/apache/conf/ change I set worker.ajp13.port=8009, which is the default and it matches what i have in the server.xml below I commented out my lines for these two but you may need them, they are sometimes optional. If you need them change the path to point to your java and tomcat installations worker.tomcat_home=/opt_apps/jakarta-tomcat-4.1.18 to point to the root of your tomcat install worker.java_home=/opt/java1.3 to where your java is in your server.xml you need Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=false redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ or Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ -Original Message- From: Gman [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 11:51 AM To: 'Tomcat Users List' Subject: RE: So lost and confused Hey Thanks, yes Jeffrey I commented those lines out so Apache would run. I am so confused I went to link you provide and found 3 entries 2 with question marks so I grabbed the one the did not have question marks. And when I downloaded the mod_jk.dll but the file It downloaded from that website was called mod_jk2_4_1_12.dll. Should I rename that file to mo_jk.dll and then update the paths to point to that one? I uninstalled and then reinstalled Tomcat in a folder called C:\Tomcat4.1 like you said. There is no mod_jk.conf-auto file in the Tomcat\conf\jk\mod_jk.conf-auto. There is no \jk directory under Tomcat\conf. -Original Message- From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 10:36 AM To: 'Tomcat Users List' Subject: RE: So lost and confused your http.conf has these lines commented out and thus inactive but from what I see in a previous post this is most likley due to apache not starting and I assume you purposefully commented them out. #LoadModule jk2_module modules/mod_jk2-2.0.43.dll #Include /Tomcat 4.1/conf/jk/mod_jk.conf-auto Have your tried downloading mod_jk.dll from http://www.johnturner.com/howto/apache-tomcat-howto.html and using that? also the space you have in the directory path may be an issue. I do not do much apache/tomcat on windows but I have seen spaces in the path beeing listed as a concern. There was even a post earlier today that mentioned it with regard to mod_jk. try renaming Tomcat 4.1 to Tomcat4.1. also what is inside the /Tomcat 4.1/conf/jk/mod_jk.conf-auto file? that looks like something generated for use by mod_jk and not mod_jk2. Jeff -Original Message- From: Gman [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 11:18 AM To: 'Tomcat Users List' Subject: So lost and confused I have tried to add the module mod_jk.so I have even tried mod_jk-2.0.43.dll in my apache http.conf and nothing works. I have been to the following web sites. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/connectors.html http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html http
RE: So lost and confused
place the attached workers.properties in your conf directory of apache add these lines to your http.conf if they are not there already # Load mod_jk # LoadModule jk_module modules/name of downloaded file # Configure mod_jk # JkWorkersFile path/to/apache/conf/workers.properties JkLogFile path/to/apache/logs/mod_jk.log JkLogLevel info JkMount /examples/* ajp13 make sure you can restart apache after you do that once apache is able to start we will configure tomcat -Original Message- From: Gman [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 2:00 PM To: 'Tomcat Users List' Subject: RE: So lost and confused Ok Jeffrey, No that worked I have Apache up and running now. Whets next sir? George Flatman -Original Message- From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 12:45 PM To: 'Tomcat Users List' Subject: RE: So lost and confused try one of the files from http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1 .2.1 /bin/win32/ like mod_jk-2.0.43.dll This should ensure that you get a jk and not a jk2 file. While jk2 should work I have never configured the tomcat side for jk2 use. -Original Message- From: Gman [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 1:33 PM To: 'Tomcat Users List' Subject: RE: So lost and confused Ok I am doing this in steps so if it does not work I won't be more confused. I have added the following line only to my http.conf LoadModule jk2_module modules/mod_jk2-2.0.43.dll---this is the file I download from http://www.johnturner.com/howto/apache-tomcat-howto.html should I try another one? Or what should I do next? Sorry to be a pain;o George Flatman -Original Message- From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 11:12 AM To: 'Tomcat Users List' Subject: RE: So lost and confused I would grab the one for 4.1.10. The question marks most likely refer to a question as to the version of apache it was compiled against. You will only get Tomcat\conf\jk\mod_jk.conf-auto, if you configure tomcat to generate it for you. Let us not worry about that for the moment so for mod_jk.dll for your http.conf you should have something like this # Load mod_jk # LoadModule jk_module modules/name of downloaded file # Configure mod_jk # JkWorkersFile path/to/apache/conf/workers.properties JkLogFile path/to/apache/logs/mod_jk.log JkLogLevel info JkMount /examples/* ajp13 I like the files local to apache rather than tomcat but they can go anywhere place the attached workers.properties in path/to/apache/conf/ change I set worker.ajp13.port=8009, which is the default and it matches what i have in the server.xml below I commented out my lines for these two but you may need them, they are sometimes optional. If you need them change the path to point to your java and tomcat installations worker.tomcat_home=/opt_apps/jakarta-tomcat-4.1.18 to point to the root of your tomcat install worker.java_home=/opt/java1.3 to where your java is in your server.xml you need Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=false redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ or Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ -Original Message- From: Gman [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 11:51 AM To: 'Tomcat Users List' Subject: RE: So lost and confused Hey Thanks, yes Jeffrey I commented those lines out so Apache would run. I am so confused I went to link you provide and found 3 entries 2 with question marks so I grabbed the one the did not have question marks. And when I downloaded the mod_jk.dll but the file It downloaded from that website was called mod_jk2_4_1_12.dll. Should I rename that file to mo_jk.dll and then update the paths to point to that one? I uninstalled and then reinstalled Tomcat in a folder called C:\Tomcat4.1 like you said. There is no mod_jk.conf-auto file in the Tomcat\conf\jk\mod_jk.conf-auto. There is no \jk directory under Tomcat\conf. -Original Message- From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 10:36 AM To: 'Tomcat Users List' Subject: RE: So lost and confused your http.conf has these lines commented out and thus inactive but from what I see in a previous post this is most likley due to apache not starting and I assume you purposefully commented them out. #LoadModule jk2_module modules/mod_jk2-2.0.43.dll #Include /Tomcat 4.1/conf/jk/mod_jk.conf-auto Have your tried downloading mod_jk.dll from http://www.johnturner.com/howto/apache-tomcat
RE: So lost and confused
the other lines can for the moment go at the end of your http.conf they should eventualy go into the any virtual host you will be using -Original Message- From: Gman [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 2:12 PM To: 'Tomcat Users List' Subject: RE: So lost and confused Ok I have the loadmodule line loaded and Apache is currently up and running where should I put the those other lines you said needed to add? George Flatman -Original Message- From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 1:13 PM To: 'Tomcat Users List' Subject: RE: So lost and confused place the attached workers.properties in your conf directory of apache add these lines to your http.conf if they are not there already # Load mod_jk # LoadModule jk_module modules/name of downloaded file # Configure mod_jk # JkWorkersFile path/to/apache/conf/workers.properties JkLogFile path/to/apache/logs/mod_jk.log JkLogLevel info JkMount /examples/* ajp13 make sure you can restart apache after you do that once apache is able to start we will configure tomcat -Original Message- From: Gman [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 2:00 PM To: 'Tomcat Users List' Subject: RE: So lost and confused Ok Jeffrey, No that worked I have Apache up and running now. Whets next sir? George Flatman -Original Message- From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 12:45 PM To: 'Tomcat Users List' Subject: RE: So lost and confused try one of the files from http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1 .2.1 /bin/win32/ like mod_jk-2.0.43.dll This should ensure that you get a jk and not a jk2 file. While jk2 should work I have never configured the tomcat side for jk2 use. -Original Message- From: Gman [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 1:33 PM To: 'Tomcat Users List' Subject: RE: So lost and confused Ok I am doing this in steps so if it does not work I won't be more confused. I have added the following line only to my http.conf LoadModule jk2_module modules/mod_jk2-2.0.43.dll---this is the file I download from http://www.johnturner.com/howto/apache-tomcat-howto.html should I try another one? Or what should I do next? Sorry to be a pain;o George Flatman -Original Message- From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 11:12 AM To: 'Tomcat Users List' Subject: RE: So lost and confused I would grab the one for 4.1.10. The question marks most likely refer to a question as to the version of apache it was compiled against. You will only get Tomcat\conf\jk\mod_jk.conf-auto, if you configure tomcat to generate it for you. Let us not worry about that for the moment so for mod_jk.dll for your http.conf you should have something like this # Load mod_jk # LoadModule jk_module modules/name of downloaded file # Configure mod_jk # JkWorkersFile path/to/apache/conf/workers.properties JkLogFile path/to/apache/logs/mod_jk.log JkLogLevel info JkMount /examples/* ajp13 I like the files local to apache rather than tomcat but they can go anywhere place the attached workers.properties in path/to/apache/conf/ change I set worker.ajp13.port=8009, which is the default and it matches what i have in the server.xml below I commented out my lines for these two but you may need them, they are sometimes optional. If you need them change the path to point to your java and tomcat installations worker.tomcat_home=/opt_apps/jakarta-tomcat-4.1.18 to point to the root of your tomcat install worker.java_home=/opt/java1.3 to where your java is in your server.xml you need Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=false redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ or Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ -Original Message- From: Gman [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 11:51 AM To: 'Tomcat Users List' Subject: RE: So lost and confused Hey Thanks, yes Jeffrey I commented those lines out so Apache would run. I am so confused I went to link you provide and found 3 entries 2 with question marks so I grabbed the one the did not have question marks. And when I downloaded the mod_jk.dll but the file It downloaded from that website was called mod_jk2_4_1_12.dll. Should I rename that file to mo_jk.dll and then update the paths to point to that one? I uninstalled and then reinstalled Tomcat in a folder called C:\Tomcat4.1 like you said. There is no mod_jk.conf-auto file in the Tomcat\conf
RE: So lost and confused
If you do not have any set up you can just place the lines at the end of the http.conf -Original Message- From: Gman [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 2:17 PM To: 'Tomcat Users List' Subject: RE: So lost and confused Virtual Host? I do not have that setup that I know of. George Flatman -Original Message- From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 1:22 PM To: 'Tomcat Users List' Subject: RE: So lost and confused the other lines can for the moment go at the end of your http.conf they should eventualy go into the any virtual host you will be using -Original Message- From: Gman [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 2:12 PM To: 'Tomcat Users List' Subject: RE: So lost and confused Ok I have the loadmodule line loaded and Apache is currently up and running where should I put the those other lines you said needed to add? George Flatman -Original Message- From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 1:13 PM To: 'Tomcat Users List' Subject: RE: So lost and confused place the attached workers.properties in your conf directory of apache add these lines to your http.conf if they are not there already # Load mod_jk # LoadModule jk_module modules/name of downloaded file # Configure mod_jk # JkWorkersFile path/to/apache/conf/workers.properties JkLogFile path/to/apache/logs/mod_jk.log JkLogLevel info JkMount /examples/* ajp13 make sure you can restart apache after you do that once apache is able to start we will configure tomcat -Original Message- From: Gman [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 2:00 PM To: 'Tomcat Users List' Subject: RE: So lost and confused Ok Jeffrey, No that worked I have Apache up and running now. Whets next sir? George Flatman -Original Message- From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 12:45 PM To: 'Tomcat Users List' Subject: RE: So lost and confused try one of the files from http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1 .2.1 /bin/win32/ like mod_jk-2.0.43.dll This should ensure that you get a jk and not a jk2 file. While jk2 should work I have never configured the tomcat side for jk2 use. -Original Message- From: Gman [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 1:33 PM To: 'Tomcat Users List' Subject: RE: So lost and confused Ok I am doing this in steps so if it does not work I won't be more confused. I have added the following line only to my http.conf LoadModule jk2_module modules/mod_jk2-2.0.43.dll---this is the file I download from http://www.johnturner.com/howto/apache-tomcat-howto.html should I try another one? Or what should I do next? Sorry to be a pain;o George Flatman -Original Message- From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 11:12 AM To: 'Tomcat Users List' Subject: RE: So lost and confused I would grab the one for 4.1.10. The question marks most likely refer to a question as to the version of apache it was compiled against. You will only get Tomcat\conf\jk\mod_jk.conf-auto, if you configure tomcat to generate it for you. Let us not worry about that for the moment so for mod_jk.dll for your http.conf you should have something like this # Load mod_jk # LoadModule jk_module modules/name of downloaded file # Configure mod_jk # JkWorkersFile path/to/apache/conf/workers.properties JkLogFile path/to/apache/logs/mod_jk.log JkLogLevel info JkMount /examples/* ajp13 I like the files local to apache rather than tomcat but they can go anywhere place the attached workers.properties in path/to/apache/conf/ change I set worker.ajp13.port=8009, which is the default and it matches what i have in the server.xml below I commented out my lines for these two but you may need them, they are sometimes optional. If you need them change the path to point to your java and tomcat installations worker.tomcat_home=/opt_apps/jakarta-tomcat-4.1.18 to point to the root of your tomcat install worker.java_home=/opt/java1.3 to where your java is in your server.xml you need Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=false redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ or Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ -Original Message- From: Gman [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 11:51 AM To: 'Tomcat Users List' Subject: RE: So lost and confused Hey Thanks, yes Jeffrey I
RE: So lost and confused
what errors appeared in your error.log file for apache? with them uncommented you might also might want to try running from the command prompt in the directory C:\Apache\bin\apachectl configtest or wherever the bin directory is for your server this will tell also give you the errors in to http.conf -Original Message- From: Gman [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 2:35 PM To: 'Tomcat Users List' Subject: RE: So lost and confused Ok Jeffrey, I placed the lines below and now Apache won't start. # Configure mod_jk # #JkWorkersFile C:/Apache/conf/workers.properties--actual path to where I placed the workers.properties file. #JkLogFile C:/Apache/apache/logs/mod_jk.log--actual path to where the log files will and should be created. #JkLogLevel info--? #JkMount /examples/* ajp13--? I commented them out and Apache runs fine. George Flatman -Original Message- From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 1:13 PM To: 'Tomcat Users List' Subject: RE: So lost and confused place the attached workers.properties in your conf directory of apache add these lines to your http.conf if they are not there already # Load mod_jk # LoadModule jk_module modules/name of downloaded file # Configure mod_jk # JkWorkersFile path/to/apache/conf/workers.properties JkLogFile path/to/apache/logs/mod_jk.log JkLogLevel info JkMount /examples/* ajp13 make sure you can restart apache after you do that once apache is able to start we will configure tomcat -Original Message- From: Gman [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 2:00 PM To: 'Tomcat Users List' Subject: RE: So lost and confused Ok Jeffrey, No that worked I have Apache up and running now. Whets next sir? George Flatman -Original Message- From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 12:45 PM To: 'Tomcat Users List' Subject: RE: So lost and confused try one of the files from http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1 .2.1 /bin/win32/ like mod_jk-2.0.43.dll This should ensure that you get a jk and not a jk2 file. While jk2 should work I have never configured the tomcat side for jk2 use. -Original Message- From: Gman [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 1:33 PM To: 'Tomcat Users List' Subject: RE: So lost and confused Ok I am doing this in steps so if it does not work I won't be more confused. I have added the following line only to my http.conf LoadModule jk2_module modules/mod_jk2-2.0.43.dll---this is the file I download from http://www.johnturner.com/howto/apache-tomcat-howto.html should I try another one? Or what should I do next? Sorry to be a pain;o George Flatman -Original Message- From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 11:12 AM To: 'Tomcat Users List' Subject: RE: So lost and confused I would grab the one for 4.1.10. The question marks most likely refer to a question as to the version of apache it was compiled against. You will only get Tomcat\conf\jk\mod_jk.conf-auto, if you configure tomcat to generate it for you. Let us not worry about that for the moment so for mod_jk.dll for your http.conf you should have something like this # Load mod_jk # LoadModule jk_module modules/name of downloaded file # Configure mod_jk # JkWorkersFile path/to/apache/conf/workers.properties JkLogFile path/to/apache/logs/mod_jk.log JkLogLevel info JkMount /examples/* ajp13 I like the files local to apache rather than tomcat but they can go anywhere place the attached workers.properties in path/to/apache/conf/ change I set worker.ajp13.port=8009, which is the default and it matches what i have in the server.xml below I commented out my lines for these two but you may need them, they are sometimes optional. If you need them change the path to point to your java and tomcat installations worker.tomcat_home=/opt_apps/jakarta-tomcat-4.1.18 to point to the root of your tomcat install worker.java_home=/opt/java1.3 to where your java is in your server.xml you need Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=false redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ or Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ -Original Message- From: Gman [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 11:51 AM To: 'Tomcat Users List' Subject: RE: So lost and confused Hey Thanks, yes Jeffrey I commented those lines out so Apache would run. I am so confused I went to link you provide and found 3
RE: default servlet path?
John, From the release notes Enabling invoker servlet: Starting with Tomcat 4.1.12, the invoker servlet is no longer available by default in all webapp. Enabling it for all webapps is possible by editing $CATALINA_HOME/conf/web.xml to uncomment the /servlet/* servlet-mapping definition. Using the invoker servlet in a production environment is not recommended and is unsupported. You will either need to uncomment these lines in $TOMCAT_HOME/conf/web.xml !-- The mapping for the invoker servlet -- !-- servlet-mapping servlet-nameinvoker/servlet-name url-pattern/servlet/*/url-pattern /servlet-mapping -- or add similar lines to each WebApp's web.xml that you wish to use the default servlet. Reason for change: A security vulnerability has been confirmed to exist in Apache Tomcat 4.0.x releases (including Tomcat 4.0.5), which allows to use a specially crafted URL to return the unprocessed source of a JSP page, or, under special circumstances, a static resource which would otherwise have been protected by security constraint, without the need for being properly authenticated. This is based on a variant of the exploit that was disclosed on 09/24/2002. It was never clear to me if the Tomcat code itself was modifed to limit the impact of this issue, if the invoker servlet was turned on. In either case, their disclaimer says use of the invoker servlet is not supported. Jeff -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 24, 2002 9:10 AM To: [EMAIL PROTECTED] Subject: default servlet path? Hi all, If memory serves me correctly, once upon a time I could put a servlet called SomeServlet under webapps/abc/web-inf/classes/a/b and access it with the url http://localhost:8080/abc/servlet/a.b.SomeServlet. I could do this without explicitly naming the servlet in my web.xml. This doesn't seem to work anymore. I've tried several other combinations that don't work, either. I'm using Tomcat 4.1.18. Am I doing it wrong or has something changed? thanks john gregg Wells Fargo Service Corporation Minneapolis, MN -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Help Apache 1.3.26 + tomcat 4.0.6
Rahul, My first suggestion will be stop apache stop tomcat wait 60 seconds start tomcat wait 60 secs then verify that application works using port 8080 start apache try it through apache If that does not work I enclose an example on how I configure mod_webapp make sure that your path in the WebAppDeploy matched the path in the Context Tag in http.conf WebAppConnection conn warp 11.22.33.44:12345 WebAppDeploycorona conn/corona in server.xml !-- Define an WARP Connector on port 12345 -- Connector className=org.apache.catalina.connector.warp.WarpConnector address=11.22.33.44 port=12345 minProcessors=5 maxProcessors=75 enableLookups=false acceptCount=10 debug=0 connectionTimeout=6/ Context path=/corona docBase=corona debug=0 reloadable=true Logger className=org.apache.catalina.logger.FileLogger directory=logs/corona prefix=corona. suffix=.log verbosity=4 timestamp=true/ /Context Jeff -Original Message- From: Rahul Torvi [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 24, 2002 10:00 AM To: Tomcat Users List Subject: Help Apache 1.3.26 + tomcat 4.0.6 Hi All, I configured apache with tomcat using mod_webapp, The problem is I m now able to access all the example context without giving port 8080. Then I deployed my context on tomcat and tried to access it. I made and entry in apache-tomcat.conf file and included it in apache as per the documentation. But when I check apache error logs I get an error Cannot deploy application project001. But when I try to access the same using port 8080 I can see everything working properly. But the same thing when I try to access it using apache it gives me the above error. Can some body help me out... Thanks and Regards Rahul -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: mod_jk---still trying, getting closer
Jerry, given the directory structure you provide you might try chaging these /usr/local/webserver/jakarta-tomcat-4.1.12-LE-jdk14/conf/jk/workers.propert ies config=/usr/local/webserver/jakarta-tomcat-4.1.12-LE-jdk14/conf/jk2.properti es to /usr/local/webserver/tomcat/conf/jk/workers.properties config=/usr/local/webserver/tomcat/conf/jk2.properties Not sure where those are set in the server.xml as I hard code my http.conf Jeff -Original Message- From: Jerry Ford [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 24, 2002 10:42 AM To: tomcat-user Subject: mod_jk---still trying, getting closer Thanks to some examples of working configs provided by several people here, I am making progress in getting Apache 1.3.27 and Tomcat 4.1.12 to work together through mod_jk, but it still isn't working yet. Tomcat and Apache run fine independently: http://localhost opens Apache's index.html http://localhost:8080 opens Tomcat's index and servlet examples work fine. http://localhost/examples/servlets opens the servlets index, but servlets themselves don't work (generate an Apache port 80 Internal Server error) I see in the catalina.out logfile that Tomcat is now able to start Jk (this is new for me---one key element was specifying an absolute path to mod_jk.so): Starting service Tomcat-Standalone Apache Tomcat/4.1.12-LE-jdk14 Dec 24, 2002 9:13:48 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 Dec 24, 2002 9:13:48 AM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on tcp port 8009 Dec 24, 2002 9:13:48 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=2/179 config=/usr/local/webserver/jakarta-tomcat-4.1.12-LE-jdk14/conf/jk2.properti es But the Apache error_log says Apache can't open the workers.properties file: [Tue Dec 24 09:13:59 2002] [error] (2)No such file or directory: Error while opening the workers, jk will not work [Tue Dec 24 09:13:59 2002] [error] (2)No such file or directory: Error while opening the workers, jk will not work [Tue Dec 24 09:13:59 2002] [notice] Apache/1.3.27 (Unix) mod_jk/1.2.0 configured -- resuming normal operations [Tue Dec 24 09:13:59 2002] [notice] Accept mutex: sysvsem (Default: sysvsem) Worker file is identified as follows, in the auto/mod_jk.conf file: JkLogFile /usr/local/webserver/jakarta-tomcat-4.1.12-LE-jdk14/conf/jk/workers.propert ies I know some have recommended that the contents of mod_jk.conf be hardwired into httpd.conf, but auto/mod_jk.conf seems to be working fine in every other respect, so I am inclined to continue using it. Still, I did put the log file directive in httpd.conf just to see of it would make a difference. It did not. The directory tree is set up as follows: drwxrwxr-x...usr/ drwxrwxr-x..local/ drwxrwxr-x.webserver/ drwxrwxr-xapache/ drwxrwxr-xtomcat/ drwxrwxr-x...conf/ drwxrwxr-x..jk/ -rw-rw-r-x.workers.properties Ownership of the apache tree was changed from root:root to jford:jford; so I changed it back to root:root and tried it, and I still get the errors (so I changed it back to jford:jford). Any suggestions? Thanks. Jerry -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: using regexp in JSPs on Tomcat
Albert, The stack trace you show would imply that your class is indeed throwing the RESyntaxExeception. I would guess you class definition or class method allows the passing of the Exception to the invoking class, in this case Jasper. I would remove any Throws RESyntaxException from the class/method def and wrap a try/catch around the new RE() statement. If that does not seem applicable you may need to post the jsp and class code in question. Does the RE statement depend on any parameters passed to it from the JSP page? If it does you may need check for nulls before creating the RE. Jeff -Original Message- From: Albert Wang [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 24, 2002 11:10 AM To: [EMAIL PROTECTED] Subject: using regexp in JSPs on Tomcat Hi all, I have a Java class which uses the Jakarta regexp package for some string parsing. It works perfectly fine on its own. I'm developing a set of JSPs, one of which instantiates this class and calls some methods. However, Tomcat is throwing me the following exception: javax.servlet.ServletException: org/apache/regexp/RESyntaxException at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp l.java:471) at org.apache.jsp.viewSample$jsp._jspService(viewSample$jsp.java:367) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:201) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 1027) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125 ) at java.lang.Thread.run(Thread.java:484) As you can see, it's a regexp exception, but it's not my class that's throwing it, it's Jasper. When I do not instantiate this class of mine, the JSP displays perfectly. Is there some documented incompatibility with using regexp within JSPs on Tomcat? The only workaround I can think of is to use some other regular expression package that isn't used inherently within Tomcat. Any suggestions? Thanks for any help, -Al -- -- Albert Wang DDED Informatics Bristol-Myers Squibb Pharmaceutical Research Institute -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: using regexp in JSPs on Tomcat
hmmm, do you use RE at all in the init method of your class? also now that I look more carefully at the stack trace, you might try looking at the compiled java for the calling jsp page. From your stack trace the calling jsp page is viewSample.jsp, do you use any RE's in this jsp? the compiled java code will be found within the $TOMCAT/work/servername/path/to/jsp the offending line will be 367, because of the use of a $ in the file name you may have trouble vi'ing or more'ing the file. I usaully ftp such files to a windows machine. javax.servlet.ServletException: org/apache/regexp/RESyntaxException at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp l.java:471) at org.apache.jsp.viewSample$jsp._jspService(viewSample$jsp.java:367) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) Jeff -Original Message- From: Albert Wang [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 24, 2002 11:45 AM To: Tomcat Users List Subject: Re: using regexp in JSPs on Tomcat Hi Jeff, PELOQUIN,JEFFREY (HP-Boise,ex1) wrote: Albert, The stack trace you show would imply that your class is indeed throwing the RESyntaxExeception. I would guess you class definition or class method allows the passing of the Exception to the invoking class, in this case Jasper. I would remove any Throws RESyntaxException from the class/method def and wrap a try/catch around the new RE() statement. I'm pretty sure that's what I'm doing. Here is the particular method that I'm calling, which is contained in a class called InternalLink: public String parseDescription(String phrase) { String linkTypeDescription = getLinkType().getDescription(); String primaryEntityLabel = phrase + + getPrimaryEntity().getId(); String secondaryEntityLabel = phrase + + getSecondaryEntity().getId(); RE ent1Expression = null; RE ent2Expression = null; try { ent1Expression = new RE(_ENT1_); ent2Expression = new RE(_ENT2_); } catch (org.apache.regexp.RESyntaxException e) { throw new TrackerException(regexp problem); } linkTypeDescription = ent1Expression.subst(linkTypeDescription, primaryEntityLabel); linkTypeDescription = ent2Expression.subst(linkTypeDescription, secondaryEntityLabel); return linkTypeDescription; } Here's the offending little snippet of JSP code: % } InternalLink[] sampleIntLinks = sample.getAllInternalLinks(); int numIntLinks = sampleIntLinks.length; if(numIntLinks 0) { % h2Internal Links/h2 table border=1 tr thDescription/th thActions/th /tr % Arrays.sort(sampleIntLinks); for(int i = 0; i numIntLinks; i++) { int linkId = sampleIntLinks[i].getId(); % tr td%= sampleIntLinks[i].parseDescription(Sample) %/td tda href = deleteInternalLink.jsp?sampleId=%= idString %linkId=%= linkId %delete/a/td /tr % } % /table Strangely enough, even if I don't call parseDescription() within the JSP, I still get the exception as long as I just instantiate InternalLink. Any clue what's going on here? Thanks for the help, and happy holidays to all, -Al -- -- Albert Wang DDED Informatics Bristol-Myers Squibb Pharmaceutical Research Institute -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: mod_jk---still trying, getting closer
Jerry, The confusion as to the name arises from your printour of your directory structure drwxrwxr-x...usr/ drwxrwxr-x..local/ drwxrwxr-x.webserver/ drwxrwxr-xapache/ drwxrwxr-xtomcat/ drwxrwxr-x...conf/ drwxrwxr-x..jk/ -rw-rw-r-x.workers.properties there is no jakarta-tomcat-4.12.12-LE-jdk14 mentioned which implies there is a mismatch of names -Original Message- From: Jerry Ford [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 24, 2002 12:49 PM To: Tomcat Users List Subject: Re: mod_jk---still trying, getting closer Justin: My bad. I didn't copy and paste, I retyped the JkLogFile reference. In the config, it correctly says mod_jk.log. I don't understand what would be accomplished by changing jakarta-tomcat-4.12.12-LE-jdk14 to simply tomcat. The name of the directory is the full name, as it was created when I untarred Tomcat. If I change the reference in the configs to tomcat and change the name of the directory to tomcat how is that any different? As for auto-conf, you are right. I think I will do as you suggest and move everything into httpd. Jerry Justin L. Spies wrote: Jerry, I've never used the auto/mod_jk stuff, so I can't comment on that. What is weird to me though, is the line that reads: JkLogFile /usr/local/webserver/jakarta-tomcat-4.1.12-LE-jdk14/conf/jk/workers.pro perties That leads me to believe that mod_jk is configured to overwrite the workers.properties file with the mod_jk log. I would have expected to see the lines: JkWorkersFile /usr/local/webserver/jakarta-tomcat-4.1.12-LE-jdk14/conf/jk/workers.pro perties JKLogFile /usr/local/webserver/jakarta-tomcat-4.1.12-LE-jdk14/conf/jk/mod_jk.log Changing those as suggested by Jeffrey (I agree with him on these changes), they would like this: JkWorkersFile /usr/local/webserver/apache/tomcat/conf/jk/workers.properties JKLogFile /usr/local/webserver/apache/tomcat/conf/jk/mod_jk.log If I were in your shoes, I think that I would try to get mod_jk working without the auto configuration. Once I had that working, I would then focus on the autoconfig. I don't know about you, but in my experience, when I try to get everything working in the first run, I usually miss something and have to take a step back and start with the basics. That's just me though. Sincerely, Pantek Incorporated Justin L. Spies URI: http://www.pantek.com Ph 440.519.1802 Fax 440.248.5274 Cell 440.336.3317 -Original Message- From: Jerry Ford [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 24, 2002 12:42 PM To: tomcat-user Subject: mod_jk---still trying, getting closer Thanks to some examples of working configs provided by several people here, I am making progress in getting Apache 1.3.27 and Tomcat 4.1.12 to work together through mod_jk, but it still isn't working yet. Tomcat and Apache run fine independently: http://localhost opens Apache's index.html http://localhost:8080 opens Tomcat's index and servlet examples work fine. http://localhost/examples/servlets opens the servlets index, but servlets themselves don't work (generate an Apache port 80 Internal Server error) I see in the catalina.out logfile that Tomcat is now able to start Jk (this is new for me---one key element was specifying an absolute path to mod_jk.so): Starting service Tomcat-Standalone Apache Tomcat/4.1.12-LE-jdk14 Dec 24, 2002 9:13:48 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 Dec 24, 2002 9:13:48 AM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on tcp port 8009 Dec 24, 2002 9:13:48 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=2/179 config=/usr/local/webserver/jakarta-tomcat-4.1.12-LE-jdk14/conf/jk2.prop erties But the Apache error_log says Apache can't open the workers.properties file: [Tue Dec 24 09:13:59 2002] [error] (2)No such file or directory: Error while opening the workers, jk will not work [Tue Dec 24 09:13:59 2002] [error] (2)No such file or directory: Error while opening the workers, jk will not work [Tue Dec 24 09:13:59 2002] [notice] Apache/1.3.27 (Unix) mod_jk/1.2.0 configured -- resuming normal operations [Tue Dec 24 09:13:59 2002] [notice] Accept mutex: sysvsem (Default: sysvsem) Worker file is identified as follows, in the auto/mod_jk.conf file: JkLogFile /usr/local/webserver/jakarta-tomcat-4.1.12-LE-jdk14/conf/jk/workers.pro perties I know some have recommended that the contents of mod_jk.conf be hardwired into httpd.conf, but auto/mod_jk.conf seems to be working fine in every other respect, so I am inclined to continue using it. Still, I did put the log file directive in httpd.conf just to see of it would make a difference. It did not. The directory tree is set up as follows: drwxrwxr-x...usr/ drwxrwxr-x..local/ drwxrwxr-x.webserver/ drwxrwxr-xapache/ drwxrwxr-xtomcat/
RE: Mod_jk - won't execute jsp or servlets
You may have posted this already but I could not find it in among all the emails over the weekend but could you post/repost your workers.properties file as well as the connector from your server.xml you setup to accept JK/ajp1.3 connections For the workers.properies you need to make sure that you call the worker thread by the same name you did in the http.conf. You used worker1 in http.conf. However quite often it is called ajp13 in the workers.properties examples available on the web. -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED]] Sent: Monday, December 23, 2002 8:26 AM To: 'Tomcat Users List' Subject: Mod_jk - won't execute jsp or servlets Thanks to all your help, I've gotten over some bumps. As it stands I can access any static pages in the Tomcat directory without having to type port 8080 ( i.e. I can access http://localhost/examples/servlets/index.html. However, whenever I try to execute a servlet or JSP it hangs indefinitely. The only errors appear in my mod_jk.log file: [Mon Dec 23 09:49:31 2002] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [Mon Dec 23 09:49:31 2002] [jk_uri_worker_map.c (477)]: Attempting to map URI '/examples/images/code.gif' [Mon Dec 23 09:49:31 2002] [jk_uri_worker_map.c (599)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Mon Dec 23 09:49:31 2002] [mod_jk.c (1827)]: mod_jk::jk_translate, check alias_dir: /usr/local/tomcat/webapps/ [Mon Dec 23 09:49:31 2002] [mod_jk.c (1850)]: mod_jk::jk_translate, AutoAlias child_dir: images [Mon Dec 23 09:49:31 2002] [mod_jk.c (1876)]: mod_jk::jk_translate, AutoAlias OK for file: /usr/local/tomcat/webapps//examples/images/code.gif [Mon Dec 23 09:49:38 2002] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [Mon Dec 23 09:49:38 2002] [jk_uri_worker_map.c (477)]: Attempting to map URI '/examples/servlet/HelloWorldExample' [Mon Dec 23 09:49:38 2002] [jk_uri_worker_map.c (502)]: jk_uri_worker_map_t::map_uri_to_worker, Found a context match worker1 - /examples/servlet/ [Mon Dec 23 09:49:38 2002] [jk_worker.c (132)]: Into wc_get_worker_for_name worker1 [Mon Dec 23 09:49:38 2002] [jk_worker.c (136)]: wc_get_worker_for_name, done found a worker [Mon Dec 23 09:49:38 2002] [jk_ajp_common.c (1404)]: Into jk_worker_t::get_endpoint [Mon Dec 23 09:49:38 2002] [jk_ajp_common.c (1116)]: Into jk_endpoint_t::service [Mon Dec 23 09:49:38 2002] [jk_ajp_common.c (295)]: Into ajp_marshal_into_msgb [Mon Dec 23 09:49:38 2002] [jk_ajp_common.c (432)]: ajp_marshal_into_msgb - Done [Mon Dec 23 09:49:38 2002] [jk_connect.c (158)]: Into jk_open_socket [Mon Dec 23 09:49:38 2002] [jk_connect.c (165)]: jk_open_socket, try to connect socket = 11 [Mon Dec 23 09:52:47 2002] [jk_connect.c (174)]: jk_open_socket, after connect ret = -1 [Mon Dec 23 09:52:47 2002] [jk_connect.c (203)]: jk_open_socket, connect() failed errno = 110 [Mon Dec 23 09:52:47 2002] [jk_ajp_common.c (626)]: Error connecting to tomcat. Tomcat is probably not started or is listenning on the wrong port. Failed errno = 110 [Mon Dec 23 09:52:47 2002] [jk_ajp_common.c (874)]: Error connecting to the Tomcat process. [Mon Dec 23 09:52:47 2002] [jk_ajp_common.c (1190)]: sending request to tomcat failed in send loop. err=0 [Mon Dec 23 09:52:47 2002] [jk_connect.c (158)]: Into jk_open_socket [Mon Dec 23 09:52:47 2002] [jk_connect.c (165)]: jk_open_socket, try to connect socket = 11 These are the following changes I have made to my httpd.conf file - all on top level: LoadModule jk_module JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties JkLogFile /usr/local/tomcat/logs/mod_jk.log JkLogLevel debug JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkRequestLogFormat %w %r %s %T Alias /examples /usr/local/tomcat/webapps/examples Alias /tomcat-docs /usr/local/tomcat/webapps/tomcat-docs Location /examples/WEB-INF/ AllowOverride None deny from all /Location JkAutoAlias /usr/local/tomcat/webapps/ JkMount /servlet/* worker1 JkMount /examples/jsp/*.jsp worker1 JkMount /examples/servlet/* worker1 JkMount /*.jsp worker1 JkMount /admin/* worker1 JkMount /manager/* worker1 Tomcat is set as default to listen to port 8080. Apache is listening to port 80 and 443. Tomcat and Apache are both started with no errors reported during startup. Any ideas? I know Jerry had a similar problem with static pages being viewed, but unable to execute servlets, but I did not notice any resolution. Thanks. Denise -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Mod_jk - won't execute jsp or servlets
In the attached server.xml, active ajp13 is - !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0 / the one you show below is actually commented out in the file That said, I would suggest you modify your workers.properties file to worker.list=worker1 worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=8009 localhost is the standard domain name for the loopback interface 127.0.0.1, which is usually the default IP address on which TOMCAT listens if I recall. For the two mod_jk implementation I have set up on Linux, I have left this as localhost. this is also how they show it in the sample file found at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk.html and on his how to list, John Turner States the following, http://www.johnturner.com/howto/apache1-tomcat404-howto.html, 5) Create a file in CATALINA_HOME/conf/jk called workers.properties. That file should look like this: # BEGIN workers.properties # # Setup for apache system # # (optional) make this equal to CATALINA_HOME workers.tomcat_home=/usr/local/jakarta-tomcat-4.0.4 # # (optional) make this equal to JAVA_HOME workers.java_home=/usr/java/j2sdk1.4.0_01 # ps=/ worker.list=ajp13 # Definition for Ajp13 worker # worker.ajp13.port=8009 # change this line to match apache ServerName and Host name in server.xml worker.ajp13.host=localhost worker.ajp13.type=ajp13 # # END workers.properties He uses ajp13 where you use worker1 Jeff -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED]] Sent: Monday, December 23, 2002 9:16 AM To: 'Tomcat Users List' Subject: RE: Mod_jk - won't execute jsp or servlets Hello :) Here is the content of my workers.properties file: worker.list=worker1 worker.worker1.type=ajp13 worker.worker1.host=www.ptpweb.com worker.worker1.port=8009 In my server.xml file I have left everything as the defaults. Right now there are only two connectors that are NOT commented out and those are !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 useURIValidationHack=false disableUploadTimeout=true / !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ Could this be my problem? I attached my server.xml file just to be sure if there was anything else to check for... Thanks. Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -Original Message- From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] Sent: Monday, December 23, 2002 10:36 AM To: 'Tomcat Users List' Subject: RE: Mod_jk - won't execute jsp or servlets You may have posted this already but I could not find it in among all the emails over the weekend but could you post/repost your workers.properties file as well as the connector from your server.xml you setup to accept JK/ajp1.3 connections For the workers.properies you need to make sure that you call the worker thread by the same name you did in the http.conf. You used worker1 in http.conf. However quite often it is called ajp13 in the workers.properties examples available on the web. -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED]] Sent: Monday, December 23, 2002 8:26 AM To: 'Tomcat Users List' Subject: Mod_jk - won't execute jsp or servlets Thanks to all your help, I've gotten over some bumps. As it stands I can access any static pages in the Tomcat directory without having to type port 8080 ( i.e. I can access http://localhost/examples/servlets/index.html. However, whenever I try to execute a servlet or JSP it hangs indefinitely. The only errors appear in my mod_jk.log file: [Mon Dec 23 09:49:31 2002] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [Mon Dec 23 09:49:31 2002] [jk_uri_worker_map.c (477)]: Attempting to map URI '/examples/images/code.gif' [Mon Dec 23 09:49:31 2002] [jk_uri_worker_map.c (599)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Mon Dec 23 09:49:31 2002] [mod_jk.c (1827)]: mod_jk::jk_translate, check alias_dir: /usr/local/tomcat/webapps/ [Mon Dec 23 09:49:31 2002] [mod_jk.c (1850)]: mod_jk::jk_translate, AutoAlias child_dir: images [Mon Dec 23 09:49:31 2002] [mod_jk.c (1876)]: mod_jk::jk_translate, AutoAlias OK for file: /usr/local/tomcat/webapps//examples/images/code.gif [Mon Dec 23 09:49:38 2002
RE: Mod_jk - won't execute jsp or servlets
have you tried using the non-coyote ajp onnector that is provided in the server.xml? All the Tomcat Docs say the coyote one is for use with JK2. While i thought I have seen on this list that people use it with JK, you may be in a weird niche. -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED]] Sent: Monday, December 23, 2002 9:53 AM To: 'Tomcat Users List' Subject: RE: Mod_jk - won't execute jsp or servlets My apologies - I sent the updated server.xml right after. I had actually originally followed John's how-to but couldn't even get to the static pages in my webapps directory. So based on someon else's suggestion, I opted not to use the mod_jk.conf file and instead place directives directly into my httpd.conf file. They also suggested the workers.properties file as I have it. I tried to change host=localhost but that did not change anything. It still gets hung up when I try to execute the servlets and jsp's. Thanks. Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -Original Message- From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] Sent: Monday, December 23, 2002 11:28 AM To: 'Tomcat Users List' Subject: RE: Mod_jk - won't execute jsp or servlets In the attached server.xml, active ajp13 is - !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0 / the one you show below is actually commented out in the file That said, I would suggest you modify your workers.properties file to worker.list=worker1 worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=8009 localhost is the standard domain name for the loopback interface 127.0.0.1, which is usually the default IP address on which TOMCAT listens if I recall. For the two mod_jk implementation I have set up on Linux, I have left this as localhost. this is also how they show it in the sample file found at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk.html and on his how to list, John Turner States the following, http://www.johnturner.com/howto/apache1-tomcat404-howto.html, 5) Create a file in CATALINA_HOME/conf/jk called workers.properties. That file should look like this: # BEGIN workers.properties # # Setup for apache system # # (optional) make this equal to CATALINA_HOME workers.tomcat_home=/usr/local/jakarta-tomcat-4.0.4 # # (optional) make this equal to JAVA_HOME workers.java_home=/usr/java/j2sdk1.4.0_01 # ps=/ worker.list=ajp13 # Definition for Ajp13 worker # worker.ajp13.port=8009 # change this line to match apache ServerName and Host name in server.xml worker.ajp13.host=localhost worker.ajp13.type=ajp13 # # END workers.properties He uses ajp13 where you use worker1 Jeff -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED]] Sent: Monday, December 23, 2002 9:16 AM To: 'Tomcat Users List' Subject: RE: Mod_jk - won't execute jsp or servlets Hello :) Here is the content of my workers.properties file: worker.list=worker1 worker.worker1.type=ajp13 worker.worker1.host=www.ptpweb.com worker.worker1.port=8009 In my server.xml file I have left everything as the defaults. Right now there are only two connectors that are NOT commented out and those are !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 useURIValidationHack=false disableUploadTimeout=true / !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ Could this be my problem? I attached my server.xml file just to be sure if there was anything else to check for... Thanks. Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -Original Message- From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] Sent: Monday, December 23, 2002 10:36 AM To: 'Tomcat Users List' Subject: RE: Mod_jk - won't execute jsp or servlets You may have posted this already but I could not find it in among all the emails over the weekend but could you post/repost your workers.properties file as well as the connector from your server.xml you setup to accept JK/ajp1.3 connections For the workers.properies you need to make sure that you call the worker thread by the same name you did in the http.conf. You used worker1 in http.conf. However quite often it is called ajp13 in the workers.properties examples available
RE: Mod_jk - won't execute jsp or servlets
Denise, Since this week I was scheduled to update our HP-UX apache to latest version which does include mod_jk support, I did the install this morning. My installation with tomcat 4.1.18 does work with the default connectionTimeout=0. I would be interested to know if you change it back to 0, if it will still works. Jeff -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED]] Sent: Monday, December 23, 2002 10:19 AM To: 'Tomcat Users List' Subject: RES: Mod_jk - won't execute jsp or servlets I don't know what else to say But YAY! :-P Milt - it looks like the timeout was what was doing it. Weird thing is - I didn't edit that. Unless I did something by mistake that is the way that it was shipped!! Everything is working great!! I can access all static pages as well as execute all servlets and JSP. I better knock on wood and pray nothing goes wrong to make it stop working ;) Thank you SO MUCH to everyone for all of your help!! I definitely would have been pulling my hair out from the roots if it weren't for this list!! Jerry - where do you stand with your set up? Since we have the same set up would you like me to send you my files now that it is working for me?? Denise Mangano -Original Message- From: Milt Epstein [mailto:[EMAIL PROTECTED]] Sent: Monday, December 23, 2002 11:55 AM To: Tomcat Users List Subject: RE: Mod_jk - won't execute jsp or servlets On Mon, 23 Dec 2002, Denise Mangano wrote: Tomcat is up and running - I can view and execute examples by using :8080. OK, that means Tomcat standalone is working (as controlled by the Coyote Http Connector onport 8080) If the port that Tomcat is listening on is set by workers.properties, then that would be port 8009. Where Apache is expecting it to listen on I am not sure. Actually, you've got it backwards. workers.properties is part of the Apache config, and indicates where Apache is expecting to find the (Tomcat side of the) Ajp connector. server.xml is part of the Tomcat config, and tells Tomcat where it should listen for Ajp (and other protocols). The email I sent was correct - the uncommented ports are those that were listed. The only difference between the two is the connection Timeout settings... ( I posted the correct server.xml file - the second email contains the correct one). I responded to that email -- and in fact the connection timeout was the only thing that looked odd to me. So that might be what's causing the problem. -Original Message- From: Milt Epstein [mailto:[EMAIL PROTECTED]] Sent: Monday, December 23, 2002 11:27 AM To: Tomcat Users List Subject: Re: Mod_jk - won't execute jsp or servlets On Mon, 23 Dec 2002, Denise Mangano wrote: Thanks to all your help, I've gotten over some bumps. As it stands I can access any static pages in the Tomcat directory without having to type port 8080 ( i.e. I can access http://localhost/examples/servlets/index.html. However, whenever I try to execute a servlet or JSP it hangs indefinitely. The only errors appear in my mod_jk.log file: [ ... ] [Mon Dec 23 09:52:47 2002] [jk_connect.c (203)]: jk_open_socket, connect() failed errno = 110 [Mon Dec 23 09:52:47 2002] [jk_ajp_common.c (626)]: Error connecting to tomcat. Tomcat is probably not started or is listenning on the wrong port. Failed errno = 110 [ ... ] This seems to be the telling message. So is Tomcat started and running? And what port is it listening on? More completely, what port is Apache expecting it to listen on and what port is it set to listen on? The former is set in workers.properties. The latter is set in server.xml, particularly in the Connector tag for the Ajp connector (because it may be listening on different ports for different things, here we only care about Ajp). The default for that is 8009. It's probably best you post both of those files (i.e. workers.properties and server.xml) so we can see for sure what you have there. You say that Tomcat is listening on port 8080, but that is the default port for Tomcat's Http Connector (i.e. Tomcat standalone). So I suspect that is not the relevant info here. Milt Epstein Research Programmer Integration and Software Engineering (ISE) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Milt Epstein Research Programmer Integration and Software Engineering (ISE) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For
RE: Mod_jk - won't execute jsp or servlets
I am guessing you had it working at some point in the past but tomcat and apache did not get both get restarted in the right order, Tomcat must be fully up before you start apache A restart scenario we use since tomcat does not always shutdown nicely on HP-UX: stop apache stop tomcat execute ps -ef | grep java to check to make sure Tomcat trully does stop start tomcat wait 30 to 60 sec and/or confirm using your 8080 port that Tomcat is started start apache -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED]] Sent: Monday, December 23, 2002 10:42 AM To: 'Tomcat Users List' Subject: RE: Mod_jk - won't execute jsp or servlets Jeff, Wow, this is very strange. You got me curious as well, and I did change it back to 0 (mind you I was very scared to) . Oddly enough, everything still works. I even tried executing some of the examples that I hadn't accessed yet to make sure it wasn't working from classes that were built previously, and it still works like a charm. If it wasn't the connection timeout setting then I haven't a clue what would have made it start working Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -Original Message- From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] Sent: Monday, December 23, 2002 12:24 PM To: 'Tomcat Users List' Subject: RE: Mod_jk - won't execute jsp or servlets Denise, Since this week I was scheduled to update our HP-UX apache to latest version which does include mod_jk support, I did the install this morning. My installation with tomcat 4.1.18 does work with the default connectionTimeout=0. I would be interested to know if you change it back to 0, if it will still works. Jeff -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED]] Sent: Monday, December 23, 2002 10:19 AM To: 'Tomcat Users List' Subject: RES: Mod_jk - won't execute jsp or servlets I don't know what else to say But YAY! :-P Milt - it looks like the timeout was what was doing it. Weird thing is - I didn't edit that. Unless I did something by mistake that is the way that it was shipped!! Everything is working great!! I can access all static pages as well as execute all servlets and JSP. I better knock on wood and pray nothing goes wrong to make it stop working ;) Thank you SO MUCH to everyone for all of your help!! I definitely would have been pulling my hair out from the roots if it weren't for this list!! Jerry - where do you stand with your set up? Since we have the same set up would you like me to send you my files now that it is working for me?? Denise Mangano -Original Message- From: Milt Epstein [mailto:[EMAIL PROTECTED]] Sent: Monday, December 23, 2002 11:55 AM To: Tomcat Users List Subject: RE: Mod_jk - won't execute jsp or servlets On Mon, 23 Dec 2002, Denise Mangano wrote: Tomcat is up and running - I can view and execute examples by using :8080. OK, that means Tomcat standalone is working (as controlled by the Coyote Http Connector onport 8080) If the port that Tomcat is listening on is set by workers.properties, then that would be port 8009. Where Apache is expecting it to listen on I am not sure. Actually, you've got it backwards. workers.properties is part of the Apache config, and indicates where Apache is expecting to find the (Tomcat side of the) Ajp connector. server.xml is part of the Tomcat config, and tells Tomcat where it should listen for Ajp (and other protocols). The email I sent was correct - the uncommented ports are those that were listed. The only difference between the two is the connection Timeout settings... ( I posted the correct server.xml file - the second email contains the correct one). I responded to that email -- and in fact the connection timeout was the only thing that looked odd to me. So that might be what's causing the problem. -Original Message- From: Milt Epstein [mailto:[EMAIL PROTECTED]] Sent: Monday, December 23, 2002 11:27 AM To: Tomcat Users List Subject: Re: Mod_jk - won't execute jsp or servlets On Mon, 23 Dec 2002, Denise Mangano wrote: Thanks to all your help, I've gotten over some bumps. As it stands I can access any static pages in the Tomcat directory without having to type port 8080 ( i.e. I can access http://localhost/examples/servlets/index.html. However, whenever I try to execute a servlet or JSP it hangs indefinitely. The only errors appear in my mod_jk.log file: [ ... ] [Mon Dec 23 09:52:47 2002] [jk_connect.c (203)]: jk_open_socket, connect() failed errno = 110 [Mon Dec 23 09:52:47 2002] [jk_ajp_common.c (626)]: Error connecting to tomcat. Tomcat is probably not started or is listenning on the wrong port. Failed errno = 110 [ ... ] This seems to be the telling message. So is Tomcat started and running? And what port is it listening on? More completely, what port is Apache
RE: RES: Mod_jk - won't execute jsp or servlets
Jerry here are extracts of what I just used, I use 17080 instead of 8009 make sure that the ps is properly defined in the workers.properties for NT ps=\ server.xml !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=17081 minProcessors=5 maxProcessors=75 enableLookups=false redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ workers.properties is attached http.conf # Load mod_jk # LoadModule jk_module modules/mod_jk.so # Configure mod_jk # JkWorkersFile /usr/local/apache/conf/workers.properties JkLogFile /usr/local/apache/logs/mod_jk.log JkLogLevel info JkMount /examples/* ajp13 Jeff -Original Message- From: Jerry Ford [mailto:[EMAIL PROTECTED]] Sent: Monday, December 23, 2002 10:34 AM To: Tomcat Users List Subject: Re: RES: Mod_jk - won't execute jsp or servlets Denise: Yes, please :) I am still in the sinking boat.---Apache works fine by itself, Tomcat works fine by itself (example servlets all work, as well as my own HelloWorld), but Apache-Tomcat through mod_jk does not work. At the moment, I can't even display the HTML pages in the examples. That seems to come and go depending on what is in the config files, not sure what caused it to break this time. I have printed Drew's example files and will compare them to my own, and I will look at the timeout value---I see in my server.xml there is *no* timeout specified at all. And, yes, I would like very much to see your final config files now that you have a working setup. Thanks. Jerry Denise Mangano wrote: I don't know what else to say But YAY! :-P Milt - it looks like the timeout was what was doing it. Weird thing is - I didn't edit that. Unless I did something by mistake that is the way that it was shipped!! Everything is working great!! I can access all static pages as well as execute all servlets and JSP. I better knock on wood and pray nothing goes wrong to make it stop working ;) Thank you SO MUCH to everyone for all of your help!! I definitely would have been pulling my hair out from the roots if it weren't for this list!! Jerry - where do you stand with your set up? Since we have the same set up would you like me to send you my files now that it is working for me?? Denise Mangano -Original Message- From: Milt Epstein [mailto:[EMAIL PROTECTED]] Sent: Monday, December 23, 2002 11:55 AM To: Tomcat Users List Subject: RE: Mod_jk - won't execute jsp or servlets On Mon, 23 Dec 2002, Denise Mangano wrote: Tomcat is up and running - I can view and execute examples by using :8080. OK, that means Tomcat standalone is working (as controlled by the Coyote Http Connector onport 8080) If the port that Tomcat is listening on is set by workers.properties, then that would be port 8009. Where Apache is expecting it to listen on I am not sure. Actually, you've got it backwards. workers.properties is part of the Apache config, and indicates where Apache is expecting to find the (Tomcat side of the) Ajp connector. server.xml is part of the Tomcat config, and tells Tomcat where it should listen for Ajp (and other protocols). The email I sent was correct - the uncommented ports are those that were listed. The only difference between the two is the connection Timeout settings... ( I posted the correct server.xml file - the second email contains the correct one). I responded to that email -- and in fact the connection timeout was the only thing that looked odd to me. So that might be what's causing the problem. -Original Message- From: Milt Epstein [mailto:[EMAIL PROTECTED]] Sent: Monday, December 23, 2002 11:27 AM To: Tomcat Users List Subject: Re: Mod_jk - won't execute jsp or servlets On Mon, 23 Dec 2002, Denise Mangano wrote: Thanks to all your help, I've gotten over some bumps. As it stands I can access any static pages in the Tomcat directory without having to type port 8080 ( i.e. I can access http://localhost/examples/servlets/index.html. However, whenever I try to execute a servlet or JSP it hangs indefinitely. The only errors appear in my mod_jk.log file: [ ... ] [Mon Dec 23 09:52:47 2002] [jk_connect.c (203)]: jk_open_socket, connect() failed errno = 110 [Mon Dec 23 09:52:47 2002] [jk_ajp_common.c (626)]: Error connecting to tomcat. Tomcat is probably not started or is listenning on the wrong port. Failed errno = 110 [ ... ] This seems to be the telling message. So is Tomcat started and running? And what port is it listening on? More completely, what port is Apache expecting it to listen on and what port is it set to listen on? The former is set in workers.properties. The latter is set in
RE: [OT] Mod_jk - won't execute jsp or servlets
My own experience is that if apache comes up before tomcat, you will have an 80% or greater chance of failure and need to do a manual restart of both tomcat and apache. On the flip side, if you have apache and tomcat up and running nicely and do a tomcat restart, I need to restart apache 10% to 15% of the time. An apache restart without a tomcat restart appears to result in a 5% or less failure rate. -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED]] Sent: Monday, December 23, 2002 10:50 AM To: 'Tomcat Users List' Subject: RE: [OT] Mod_jk - won't execute jsp or servlets That is definitely a possibility. On average I waited about 10 seconds or so. I usually do ps -ef to make sure tomcat is running, but don't try to pull it up in the browser to see if it really is running. I will keep this checklist for the future. Curious though. Apache is in my startup - Tomcat is not (YET). Will this cause problems if I boot up then start Tomcat? Is it better to remove httpd from startup so I can be sure to start tomcat first? Thanks. Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -Original Message- From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] Sent: Monday, December 23, 2002 12:43 PM To: 'Tomcat Users List' Subject: RE: Mod_jk - won't execute jsp or servlets I am guessing you had it working at some point in the past but tomcat and apache did not get both get restarted in the right order, Tomcat must be fully up before you start apache A restart scenario we use since tomcat does not always shutdown nicely on HP-UX: stop apache stop tomcat execute ps -ef | grep java to check to make sure Tomcat trully does stop start tomcat wait 30 to 60 sec and/or confirm using your 8080 port that Tomcat is started start apache -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED]] Sent: Monday, December 23, 2002 10:42 AM To: 'Tomcat Users List' Subject: RE: Mod_jk - won't execute jsp or servlets Jeff, Wow, this is very strange. You got me curious as well, and I did change it back to 0 (mind you I was very scared to) . Oddly enough, everything still works. I even tried executing some of the examples that I hadn't accessed yet to make sure it wasn't working from classes that were built previously, and it still works like a charm. If it wasn't the connection timeout setting then I haven't a clue what would have made it start working Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -Original Message- From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] Sent: Monday, December 23, 2002 12:24 PM To: 'Tomcat Users List' Subject: RE: Mod_jk - won't execute jsp or servlets Denise, Since this week I was scheduled to update our HP-UX apache to latest version which does include mod_jk support, I did the install this morning. My installation with tomcat 4.1.18 does work with the default connectionTimeout=0. I would be interested to know if you change it back to 0, if it will still works. Jeff -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED]] Sent: Monday, December 23, 2002 10:19 AM To: 'Tomcat Users List' Subject: RES: Mod_jk - won't execute jsp or servlets I don't know what else to say But YAY! :-P Milt - it looks like the timeout was what was doing it. Weird thing is - I didn't edit that. Unless I did something by mistake that is the way that it was shipped!! Everything is working great!! I can access all static pages as well as execute all servlets and JSP. I better knock on wood and pray nothing goes wrong to make it stop working ;) Thank you SO MUCH to everyone for all of your help!! I definitely would have been pulling my hair out from the roots if it weren't for this list!! Jerry - where do you stand with your set up? Since we have the same set up would you like me to send you my files now that it is working for me?? Denise Mangano -Original Message- From: Milt Epstein [mailto:[EMAIL PROTECTED]] Sent: Monday, December 23, 2002 11:55 AM To: Tomcat Users List Subject: RE: Mod_jk - won't execute jsp or servlets On Mon, 23 Dec 2002, Denise Mangano wrote: Tomcat is up and running - I can view and execute examples by using :8080. OK, that means Tomcat standalone is working (as controlled by the Coyote Http Connector onport 8080) If the port that Tomcat is listening on is set by workers.properties, then that would be port 8009. Where Apache is expecting it to listen on I am not sure. Actually, you've got it backwards. workers.properties is part of the Apache config, and indicates where Apache is expecting to find the (Tomcat side of the) Ajp connector. server.xml is part of the Tomcat config, and tells Tomcat where it should listen for Ajp (and other protocols). The email I sent was correct - the uncommented ports are those that were listed. The only
RE: virtual host problems...
Nick, you may need something like Directory /usr/local/tomcat/webapps/examples Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp Order allow,deny Allow from all /Directory in order tell apache that people our allow into this directory path, it may need to go after you location tags as I do not remember if apache stops at the first match or chooses the most restrictive Jeff -Original Message- From: Nick Stuart [mailto:[EMAIL PROTECTED]] Sent: Monday, December 23, 2002 11:27 AM To: Tomcat Users List Subject: virtual host problems... Ok, I have tomcat and apache running together nicely but am having a problem getting the virtual hosting for it to work. Right now when I go to: VirtualHost vort112 ServerName vort112 Alias /examples /usr/local/tomcat/webapps/examples Directory /usr/local/tomcat/webapps/examples Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp /Directory # Deny direct access to WEB-INF and META-INF # Location /examples/WEB-INF/* AllowOverride None deny from all /Location Location /examples/META-INF/* AllowOverride None deny from all /Location JkMount /examples/jsp/security/protected/j_security_check worker1 JkMount /examples/snoop worker1 JkMount /examples/servlet/* worker1 JkMount /examples/CompressionTest worker1 JkMount /examples/*.jsp worker1 JkMount /examples/servletToJsp worker1 JkMount /examples/SendMailServlet worker1 /VirtualHost /jsp/ it re-directs me to http://ip-address/examples/jsp/ which I dont really want. Now when I had the following for virtual hosting.. VirtualHost vort112 ServerName vort112 Alias /examples /usr/local/tomcat/webapps/examples Directory /usr/local/tomcat/webapps/examples Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp /Directory # Deny direct access to WEB-INF and META-INF # Location /examples/WEB-INF/* AllowOverride None deny from all /Location Location /examples/META-INF/* AllowOverride None deny from all /Location JkMount /examples/jsp/security/protected/j_security_check worker1 JkMount /examples/snoop worker1 JkMount /examples/servlet/* worker1 JkMount /examples/CompressionTest worker1 JkMount /examples/*.jsp worker1 JkMount /examples/servletToJsp worker1 JkMount /examples/SendMailServlet worker1 /VirtualHost I have some odd behavior. What happens is that i can still go to: http://domain/examples and it will display the contents of it in the tomcat format, but when I got to: http://domain/examples/jsp/ it gives an access denied error, even if I just try to go to a normal html page inside that directory. Not sure what to change, I basically copied what was generated in the mod_jk.conf-auto file by tomcat, but didn't want to use it because I don't need/want all the other directories in there. I've look through the archives and couldn't find any thing that resembled this problem, so any advice would be greatly appreciated. Thanks for your time! -- -Nick Stuart USM Computer Science Major Visit us at http://csforum.newtsplace.com (run with LAMP) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: SSL setup Apache - Tomcat
We have a number of Apache/Tomcat webapps that run through SSL with the certificate only on the apache side. However we are using the warp connector and if you are using mod_jk you may have a different behavior. -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED]] Sent: Friday, December 20, 2002 1:02 PM To: 'Tomcat Users List' Subject: SSL setup Apache - Tomcat Ok, I have been reading through the archives of this list and this is not good I have one registered domain for which I purchased a certificate for. Apache is set up to use this certificate, and I can access my Apache app through https://. Now I added some JSP to my site, and I need this JSP to be secure as well. I've seen this mentioned a number of times, and as you guess when I try to access https://mydomain.com/mywebapps the server infinitely hangs. I just finished reading how SSL from Apache to Tomcat is not implemented... Is this true? Is the scenario I want not possible? Can I set up my certificate separately in the Tomcat config files? Will this work? The Apache app processes a server side transaction and on the last page the connection to my backend system is ended as the last page is loaded. This last page has a link that when clicked, only sends 2 non-critical variables to my JSP. But as I mentioned I need this JSP to be secure. ... so even if the SSL connection is broken, then renewed on the Tomcat side, that would be sufficient (both are under same domain name, and on same physical box)... Any suggestions? Thanks! Btw...where is everyone today? Does the whole world besides me get off early on Friday's?? ; ) Denise Mangano -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: SSL setup Apache - Tomcat
I would imagine you do not need to switch to warp and the majority of the list would say not to use warp. I only use it due to the fact it is not currently convenient for me to upgrade the perl on my HP-UX box to 5.05. The only thing I had to do was to place the warp equivalent of JKMount in the virtual host for the 443 port and I was off and running. Do you place the JKMount directive in each virtual host or do place them outside of all virtual hosts so that the directive apply to all hosts? I do know for JRUN 2.3.3, the placement of the mapping directive relative to the virtual hosts makes a diference of operation. -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED]] Sent: Friday, December 20, 2002 1:36 PM To: 'Tomcat Users List' Subject: RE: SSL setup Apache - Tomcat Can you fill me in a little on what you had to do, if anything, to get your webapps to come up with the https:// protocol. Am I going to have to use the warp connector instead? If so, could someone fill me in on how to get started with that? Thanks. Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -Original Message- From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] Sent: Friday, December 20, 2002 3:29 PM To: 'Tomcat Users List' Subject: RE: SSL setup Apache - Tomcat We have a number of Apache/Tomcat webapps that run through SSL with the certificate only on the apache side. However we are using the warp connector and if you are using mod_jk you may have a different behavior. -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED]] Sent: Friday, December 20, 2002 1:02 PM To: 'Tomcat Users List' Subject: SSL setup Apache - Tomcat Ok, I have been reading through the archives of this list and this is not good I have one registered domain for which I purchased a certificate for. Apache is set up to use this certificate, and I can access my Apache app through https://. Now I added some JSP to my site, and I need this JSP to be secure as well. I've seen this mentioned a number of times, and as you guess when I try to access https://mydomain.com/mywebapps the server infinitely hangs. I just finished reading how SSL from Apache to Tomcat is not implemented... Is this true? Is the scenario I want not possible? Can I set up my certificate separately in the Tomcat config files? Will this work? The Apache app processes a server side transaction and on the last page the connection to my backend system is ended as the last page is loaded. This last page has a link that when clicked, only sends 2 non-critical variables to my JSP. But as I mentioned I need this JSP to be secure. ... so even if the SSL connection is broken, then renewed on the Tomcat side, that would be sufficient (both are under same domain name, and on same physical box)... Any suggestions? Thanks! Btw...where is everyone today? Does the whole world besides me get off early on Friday's?? ; ) Denise Mangano -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: SSL setup Apache - Tomcat
The JKmount statement formulation will be the same regardless of protocol so I would try placing the one in which you are interested in the 443 virtual host If you scroll down to the bottom of this doc they show it in a 443 host http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk.html -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED]] Sent: Friday, December 20, 2002 1:53 PM To: 'Tomcat Users List' Subject: RE: SSL setup Apache - Tomcat The other JkMount statements that I have specified have al been placed outside of the Virtual hosts directives, but I do not have one specified for SSL. Everything in the Tomcat documentation seems to discuss setting up SSL on Tomcat acting as a standalone, which is not my situation. I'm trying to find something telling me how to formulate such a JkMount statement, but can't seem to find anything. Any suggestions? Thanks. Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -Original Message- From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] Sent: Friday, December 20, 2002 3:43 PM To: 'Tomcat Users List' Subject: RE: SSL setup Apache - Tomcat I would imagine you do not need to switch to warp and the majority of the list would say not to use warp. I only use it due to the fact it is not currently convenient for me to upgrade the perl on my HP-UX box to 5.05. The only thing I had to do was to place the warp equivalent of JKMount in the virtual host for the 443 port and I was off and running. Do you place the JKMount directive in each virtual host or do place them outside of all virtual hosts so that the directive apply to all hosts? I do know for JRUN 2.3.3, the placement of the mapping directive relative to the virtual hosts makes a diference of operation. -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED]] Sent: Friday, December 20, 2002 1:36 PM To: 'Tomcat Users List' Subject: RE: SSL setup Apache - Tomcat Can you fill me in a little on what you had to do, if anything, to get your webapps to come up with the https:// protocol. Am I going to have to use the warp connector instead? If so, could someone fill me in on how to get started with that? Thanks. Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -Original Message- From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] Sent: Friday, December 20, 2002 3:29 PM To: 'Tomcat Users List' Subject: RE: SSL setup Apache - Tomcat We have a number of Apache/Tomcat webapps that run through SSL with the certificate only on the apache side. However we are using the warp connector and if you are using mod_jk you may have a different behavior. -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED]] Sent: Friday, December 20, 2002 1:02 PM To: 'Tomcat Users List' Subject: SSL setup Apache - Tomcat Ok, I have been reading through the archives of this list and this is not good I have one registered domain for which I purchased a certificate for. Apache is set up to use this certificate, and I can access my Apache app through https://. Now I added some JSP to my site, and I need this JSP to be secure as well. I've seen this mentioned a number of times, and as you guess when I try to access https://mydomain.com/mywebapps the server infinitely hangs. I just finished reading how SSL from Apache to Tomcat is not implemented... Is this true? Is the scenario I want not possible? Can I set up my certificate separately in the Tomcat config files? Will this work? The Apache app processes a server side transaction and on the last page the connection to my backend system is ended as the last page is loaded. This last page has a link that when clicked, only sends 2 non-critical variables to my JSP. But as I mentioned I need this JSP to be secure. ... so even if the SSL connection is broken, then renewed on the Tomcat side, that would be sufficient (both are under same domain name, and on same physical box)... Any suggestions? Thanks! Btw...where is everyone today? Does the whole world besides me get off early on Friday's?? ; ) Denise Mangano -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Work Directory in Tomcat
Here is the link to the jasper doc for jsp compilation http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jasper-howto.html You will need to modify the checkInterval param in the conf/web.xml file of your tomcat server, it defaults to 300 secs. so tomcat only checks every 5 mins for a new doc for a 30 sec this should work init-param param-namecheckInterval/param-name param-value30/param-value /init-param However by default 4.1 is set up to check on every file access, you might try forcing this with init-param param-namedevelopment/param-name param-valuetrue/param-value /init-param These will work for 4.1, I do not know if 4.0 has similar params but I have noticed that 4.0 does seem slow in recognizing new jsp pages. Most of the apps we support run off of servlet so I have not spent much time tunning the jsp servlet Jeff -Original Message- From: Hari Venkatesan [mailto:[EMAIL PROTECTED]] Sent: Friday, December 20, 2002 1:47 PM To: [EMAIL PROTECTED] Subject: Work Directory in Tomcat Can anybody explain the usage of work Directory in Tomcat. I see that the compiled versions of the JSP's are being stored here. Does the JSP get loaded from here upon actual execution? IF so what happens if there is a change in the JSP. One strange problem is every time I change a JSP, I had to go and remove the JSP classes from the work directory before I could get to see the changed version. Any Ideas? Hari -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Should not be this hard
From the release notes Enabling invoker servlet: Starting with Tomcat 4.1.12, the invoker servlet is no longer available by default in all webapp. Enabling it for all webapps is possible by editing $CATALINA_HOME/conf/web.xml to uncomment the /servlet/* servlet-mapping definition. Using the invoker servlet in a production environment is not recommended and is unsupported. -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 19, 2002 8:51 AM To: 'Tomcat Users List' Subject: Should not be this hard Hello, me again This should have been so easy (famous last words) I am upgrading from tomcat jakarta-tomcat-4.0.4 to jakarta-tomcat-4.1.17 4.0.4 was working fine. For some reason I can not find my servlets ARG! In my web.xml I have a load-on-startup/ and in the log file , the servlet Starts ok But if I goto http://bart.mydomain.com:8080/servlet/uServlet I get a 404... Here is some details. I have to be missing something very simple. My static html and jsps work ok when I goto http://bart.mydomain.com:8080/index.html http://bart.mydomain.com:8080/jsp/dirgloblogin.jsp But if I goto http://bart.mydomain.com:8080/servlet/uServlet I get a 404 from the log file I get : 2002-12-19 09:42:13 StandardContext[]: Mapping contextPath='' with requestURI='/servlet/uServlet' and relativeURI='/servlet/uServlet 2002-12-19 09:42:13 StandardContext[]: Trying exact match 2002-12-19 09:42:13 StandardContext[]: Trying prefix match 2002-12-19 09:42:13 StandardContext[]: Trying extension match 2002-12-19 09:42:13 StandardContext[]: Trying default match 2002-12-19 09:42:13 StandardContext[]: Mapped to servlet 'default' with servlet path '/servlet/uServlet' and path info 'null' and update=true 2002-12-19 09:42:13 default: DefaultServlet.serveResource: Serving resource '/servlet/uServlet' headers and data In my server.xml I have Engine name=Standalone defaultHost=localhost debug=9 Host name=localhost debug=0 appBase=/home/unit unpackWARs=true autoDeploy=true Context path= docBase=/home/unit crossContext=true debug=9 reloadable=false /Context #ls -ls /home/unit/WEB-INF/classes total 104 32 -rwxrwxrwx1 apache apache 32734 Dec 18 21:31 bbsServlet.class 4 drwxrwxrwx3 apache apache 4096 Aug 24 22:19 com 36 -rw-rw-r--1 apache apache 33984 Nov 6 15:43 EditjsServlet.class 32 -rwxrwxrwx1 apache apache 31030 Dec 18 21:31 uServlet.class Thanks for any Help!!! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: JDK or is JRE sufficient?
Is there a reason you cannot install the jdk for HP-UX? -Original Message- From: Pfingstl Gernot [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 19, 2002 8:40 AM To: Tomcat User (E-Mail) Subject: JDK or is JRE sufficient? In RUNNING.txt there is the sentence, that I have to install a JDK before running TOMCAT - is there a possibility to run TOMCAT in conjunction with the JRE only? (On our HP-UX, there's only JRE installed). If yes, is there some guideline what to change, because in the startup scripts there will be checked if jdo and javac is present. Thanks, Gernot -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Why run tomcat as root
Has anyone every implemented the non-root user workaround suggested by Jetty at http://jetty.mortbay.org/jetty/doc/User80.html -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 05, 2002 8:05 AM To: 'Tomcat Users List' Subject: RE: Why run tomcat as root Tomcat, in and of itself, is not a web server as you're using the term. By web server I mean the ability to be a web server and bind to privileged port 80. This is not a requirement for a servlet container (servlet spec 2.3 SRV 4.1 says nothing about a servlet container must have the ability to bind to port 80 as root but serve HTTP requests as a non-root user). SRV 4 says only that a servlet container should support HTTP 1.1. Actually, it doesn't even really say that. What it actually says is: The request object encapsulates all information from the client request. In the HTTP protocol, this information is transmitted from the client to the server in the HTTP headers and the message body of the request. In other words, as I understand it, you are welcome to use any sort of request object you like (and by extension, any port you like). If, by chance, you choose to use the HTTP protocol for your request object, then the servlet container should support HTTP 1.1. There's no reason, though, why a servlet container couldn't use a custom protocol and a custom request object. That's the purpose of the various connectors, after all, only one of which is an HTTP connector. You are not forced, either, to run Tomcat as root. You can run Tomcat as any user you like. The restriction of non-root users being unable to bind to privileged ports is a UNIX/Linux security restriction, not a Tomcat (or JVM) security restriction. So, the ability to step down from root to a non-root user is a matter of convenience, not a requirement, from a design point of view. Heck, on a Windows platform, due to a design deficiency in Windows, you can run Tomcat as a service on port 80 all you like, as long as the service is running with SYSTEM level privileges (SYSTEM being equivalent to root). So, from a Windows perspective, the ability to switch to a non-root user would be superfluous. ;) Standard open source development nudge: I'm sure the Tomcat team would welcome code contributions and design input from you if you took it upon yourself to write such a feature into Tomcat. John -Original Message- From: Kristjan Rznarsson [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 05, 2002 9:44 AM To: Tomcat Users List Subject: RE: Why run tomcat as root That is true enough but those sound like workarounds your option #2 suggests that Apache does not have this vulnerability of having to run as root to access privileged ports and I don´t see why Tomcat should be any different. I am still fishing for that simple attribute to be added to tomcat, or perhaps the JVM? that would enable tomcat to somehow reduce its privilege level after accessing privileged resources like any proper standalone server should. I may be simplistic but it seems to me that this would be a pretty fundamental ability for a standalone server and the thougth is just mindblowing that theJVM does not offer something similar. I find that hard to believe. Cheers KR Ralph Einfeldt [EMAIL PROTECTED] 05.12.2002 13:38 Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:RE: Why run tomcat as root As I said there are at least three options: - Use tomcat behind a webserver (Apache, IIS) and connect it with mod_jk* This is the best documented attempt. - Use tomcat behind a proxy (Apache, squid, ...). That means tomcat is still listening on 8080 and the proxy directs the requests from port 80 to 8080 - Use Tomcat behind a port mapper Quite (if you don't look to close) the same solution as the proxy (iptables) -Original Message- From: Kristján Rúnarsson [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 05, 2002 2:17 PM To: Tomcat Users List Subject: RE: Why run tomcat as root But I have not been able to figure out a way to downgrade the privileges of the Tomcat process after it has accessed the privileged resources. I have been told that Apache can donwgrade the privilege level of processes after they have accessed privleged resources but how do I do this to tomcat? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat on HP-UX 11
Wendy, For tomcat 4 on HP-UX I have found very little gets sent to the console window except when you try to start tomcat when it is already running. Also, I just attempted to install the same tarball as you on our server and I got the same error. I would imagine that there is an issue with the way the tar files was created. When you unzipped on your windows machine did you get some filename conflict errors? When I look at the zip file there appears to a large number of duplicate files but none of these files appear to be there when I untar them on a linux machine. If I untar on my linux machine and then jar it up and then unjar on hp-ux it appears to install correctly. While I have seen those longlink error messages before this is the first download I could not install directly onto our servers Jeff -Original Message- From: Wendy Smoak [mailto:Wendy.Smoak;asu.edu] Sent: Wednesday, November 06, 2002 3:41 PM To: 'Tomcat Users List' Subject: RE: Tomcat on HP-UX 11 That's all. Nothing in the log directory, no other messages on the console. Everywhere else I've installed [unzipped!] Tomcat, it has just worked immediately, so I'm not too sure where to go looking for problems. I don't have any error messages to search the archives for, either. Any ideas? I have one... PATIENCE! It took ~3 minutes to start. I happened to hit refresh in the browser and found that it was alive. Still no messages on the console, though... I usually [Win2000 Linux] see things go flying by as Tomcat starts up. Aha! Found it: logs/catalina.out Okay, then, we seem to be in business. Thankfully I'm not the one who has to get the whole Apache/Tomcat/SSL thing to work. ;) -- Wendy Smoak http://sourceforge.net/projects/unidbtags -- 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: How to Capture Error Msgs/Exceptions when Tomcat Die.
you could check the Windows Event Viewer -Original Message- From: CHAO,KENT (HP-Boise,ex1) [mailto:kent_chao;hp.com] Sent: Friday, November 01, 2002 3:57 PM To: 'Tomcat Users List' Subject: Help: How to Capture Error Msgs/Exceptions when Tomcat Die. I am new to this group. I posted this question a few days ago, but didn't get any responses. Maybe I did something wrong. So I re-posted this question. Symptom: I have a Tomcat application, running with Apache (1.3.26) and Tomcat (3.3) in W2k with sp3. I experienced Tomcat died several times (freq: once a week), while Apache remained running. Question 1: Where I can capture the last exception or other error messages before Tomcat died? I need to find out what caused Tomcat to die first, before I can take steps to fix the problem. Does any one experience similar situation? When I said Tomcat died, I mean: In W2k service mode, it simply stopped. In non-service mode and in the same command window, a prompt was displayed and no more log4j messages on display. The application did generate Log4j messages in log files at ~\tomcat\logs. I cannot find any Exceptions at end of file. Any suggestions are welcome. thx in advance. Kent -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: tomcat not working
Do you have an index.html file in your ROOT context/webapp? most likely /opt/jakarta/webapps/ROOT/index.html What do you get if you try http://ip_address:8080/ without specifying a file? Also for your HP-UX machine did you use the apache/tomcat depot provided by HP or did you download the files from apache and jakarta websites? If the latter how much trouble did you have compiling the connector between apache and tomcat? This does not have to do with your problem but I am simply curious as I use HP-UX machines, as well. Jeff -Original Message- From: Vishal Gupta [mailto:vhgupta1;yahoo.com] Sent: Thursday, October 24, 2002 3:57 AM To: [EMAIL PROTECTED] Subject: tomcat not working Hi All, I have installed tomcat/apache on HP-UX machine. Apache is working fine but i can't see the tomcat home page at ://ip_address:8080/index.html error is below. I have checked all the conf files in conf directory.everything seems to be OK please suggest the solution. Regards, Vishal Apache Tomcat/4.0.4 - HTTP Status 404 - /index.html type Status report message /index.html description The requested resource (/index.html) is not available. - Do you Yahoo!? Y! Web Hosting - Let the expert host your web site -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: urgent:::Pls :Tomcat not working
here is the response I sent earlier: Do you have an index.html file in your ROOT context/webapp? most likely /opt/jakarta/webapps/ROOT/index.html What do you get if you try http://ip_address:8080/ without specifying a file? Also for your HP-UX machine did you use the apache/tomcat depot provided by HP or did you download the files from apache and jakarta websites? If the latter how much trouble did you have compiling the connector between apache and tomcat? This does not have to do with your problem but I am simply curious as I use HP-UX machines, as well. Jeff -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -Original Message- From: Vishal Gupta [mailto:vhgupta1;yahoo.com] Sent: Thursday, October 24, 2002 7:21 AM To: Tomcat Users List Subject: urgent:::Pls :Tomcat not working Hi All, I have installed tomcat/apache on HP-UX machine. Apache is working fine but i can't see the tomcat home page at ://ip_address:8080/index.html error is below. I have checked all the conf files in conf directory.everything seems to be OK please suggest the solution. Regards, Vishal Apache Tomcat/4.0.4 - HTTP Status 404 - /index.html type Status report message /index.html description The requested resource (/index.html) is not available. Vishal Gupta Schlumberger Measurement Systems India Ltd 10th Floor, HMG Ambassador Bangalore 560 025 Tel: +91 98451 32104 off: +91 80 2075052-55 Ext: 117 Fax:+91 80 2075056 E-Mail :- [EMAIL PROTECTED] and [EMAIL PROTECTED] - Do you Yahoo!? Y! Web Hosting - Let the expert host your web site -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Tomcat and HP-UX 11
Wendy, We have had very good luck using Apache 1.3.26 with tomcat 4.0.4/4.1.12 (we have begun to test 4.1 and 2.0) using the mod_webapp/warp connector. We built the Apache and the mod_webapp from source. Apache was very easy. The mod_webapp was a problem because of the way the test function works on HP-UX. I can provide you with binary forms of the mod_webapp for Apache with and without SSL. (Keep meaning to send them to John Turner to post with his JK connectors). I can also provide you with how to modify the configure file to allow you to compile it yourself. In order to compile from source you also need to have a number of GNU packages installed such as FLEX, autoconf and M4. I think apache only requires flex. We are able to run Tomcat using the binary install. The only modification we needed to make was to add use the jvm option -XdoCloseWithReadPending. Without this set within the CATALINA_OPTS variable, the connector thread never exists (This is for WARP and the HTTP connectors) and thus tomcat never exits. We have not been able to compile the JK connectors because our version of perl is not compatible with the automake program but I hope to have that corrected soon. Let me know if you have any questions, Jeff -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 16, 2002 12:41 PM To: Tomcat Users List Subject: Tomcat and HP-UX 11 I'm slowly progressing on a webapp using the latest and greatest Struts nightly build along with Tomcat 4.1.12 on my Windows 2000 desktop for development. When it's finally finished, it needs to live on a real webserver. Currently, that's an HP-UX 11 box running HP's version of Apache 2.0/Tomcat 3.3. That's not going to work... I need JSP 1.2 and Servlet 2.3 support. I'm not the sysadmin, but typically we seem to stick to installing things that come directly from HP. I'm not clear on all the reasons, but apparently HP-UX is sufficiently different from other Unixes that things don't transfer well. (??) Does anyone have any words of wisdom for me? Is it out of the question to build Tomcat from the source and then convince the existing Apache webserver to cooperate with it? -- Wendy Smoak http://sourceforge.net/projects/unidbtags -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat and HP-UX 11
Since you have Apache 2 up and running I would suggest getting rid of the Tomcat 3.3 and point your JK connector to a Apache 4 install. you can download the binaries directly from jakarat and they will work out of the box. begin shamless employee pitch While HP-UX does have its inherent problems, if you have a machine or two you really should not let them out of your sight, especially at ASU since U of A gets all the good stuff. As with every platform you always need to ensure you are up to date on patches and JVM's. www.hp.com/go/java will have patch information and kernel settings. I have had Linux and Windows machines spin out of control just as often as HP-UX boxes. end shamless employee pitch Jeff -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 16, 2002 2:35 PM To: 'Tomcat Users List' Subject: RE: Tomcat and HP-UX 11 Greg wrote: Argh! The difficulty with the HP-UX platform (among other things) is that it's most certainly not in the first 'round' of development for things Java. Where Solaris is the 'reference' platform, Linux and Windoze seem to be just about as well-supported. The effort goes where the demand is. So does the support. Guess I should hold out for the Solaris box that's supposed to be coming my way... it's currently serving time as a firewall, but we're getting an appliance for that and then it'll be out of a job. There's really no resistance here to whatever I ask for, as long as it's reasonable. We have another HP-UX box I could use for development-- so far it's just been easier to use my desktop which happens to be running Win2k. At home, it's Redhat 7.3, and I've been able to move things back and forth with no problems. I'm the only Java programmer in the department, and I've been left blissfully alone to play with all the new toys you guys at Jakarta have been producing. (I don't know if this would have happened anywhere but in academia, but they seem content to let me experiment and see what comes of it. Even when the Applet Experiment proved to be a dismal failure...) Thanks for your help and advice! I really don't want to get into building Apache and Tomcat myself-- I have enough to worry about getting my own stuff to compile and run. :) -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University PA Information Resources Management -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache with Tomcat
You may wish to try www.itrc.hp.com, choose search and enter in virtual vault and select manuals or forum's. Jeff -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, October 07, 2002 2:34 PM To: Tomcat Users List Subject: RE: Apache with Tomcat I do that in two HPUX 11, now I need to do that in ohter enviroment. I've HP Virtual Vault with apache 1.3.19 and I've the tomcat in other HPUX. I'm using Tomcat 3.2.3 or Tomcat 3.3. Anybody have idea how can I connect the Virtual Vault to the HPUX? Regards. Alejandro Turner, John [EMAIL PROTECTED] con fecha 07/10/2002 16:31:57 Por favor, responda a Tomcat Users List [EMAIL PROTECTED] Destinatarios: 'Tomcat Users List' [EMAIL PROTECTED] CC:(cci: ALEJANDRO FREIRE/BANELCO/AR) Asunto: RE: Apache with Tomcat Yes. Search the archives, this topic comes up all the time. It's the same setup as putting Apache and Tomcat on the same machine, except that you change the server name in a few places to be the FQDN instead of localhost John -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, October 07, 2002 3:14 PM To: [EMAIL PROTECTED] Subject: Apache with Tomcat Can I integrate Apahce and Tomcat if Apache is running in different machine than Tomcat? Is this it possible, How can I do that? Regards. Alejandro -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: jk on HP-UX
Have not compiled jk on our hp-ux machines, need to upgrade to perl 5.005 in order to use automake It is interesting that configure reports this checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.lo... yes but your gcc does not actualy work You might try finding where in configure it does this check and forcing it to be no. Also, HP-UX has issues with the test command as shown by your /usr/bin/test[7]: test: Specify a parameter with this command. if the variable is truly empty, test throws this error. You might try locating these places and seeing if you can rewrite the if statement so that it works. I had to do this for the mod_web app connector. Jeff -Original Message- From: Dorin Florian Ciuca [mailto:[EMAIL PROTECTED]] Sent: Friday, October 04, 2002 8:03 AM To: Tomcat Users List Subject: jk on HP-UX Hi, I can't build jk connector on HP-UX. Could someone help me or do you have the binaries for this machine ? I have HP - UX B.11.00 U 9000/800. After I ran configure i got something like this : creating cache ./config.cache checking for a BSD compatible install... scripts/build/unix/install-sh -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... yes checking for working aclocal... missing checking for working autoconf... found checking for working automake... missing checking for working autoheader... found checking for working makeinfo... missing checking for Cygwin environment... no checking for mingw32 environment... no checking how to run the C preprocessor... cc -E checking host system type... hppa2.0w-hp-hpux11.00 checking build system type... hppa2.0w-hp-hpux11.00 checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for ld used by GCC... /usr/ccs/bin/ld checking if the linker (/usr/ccs/bin/ld) is GNU ld... no checking for /usr/ccs/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/local/bin/nm -B checking whether ln -s works... yes checking how to recognise dependant libraries... file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library checking for object suffix... o checking for executable suffix... no checking command to parse /usr/local/bin/nm -B output... ok checking for dlfcn.h... yes checking for ranlib... ranlib checking for strip... strip checking for objdir... .libs checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.lo... yes checking if gcc supports -fno-rtti -fno-exceptions... yes checking whether the linker (/usr/ccs/bin/ld) supports shared libraries... yes checking how to hardcode library paths into programs... relink checking whether stripping libraries is possible... no checking dynamic linker characteristics... hpux11.00 dld.sl checking if libtool supports shared libraries... yes checking for dlopen in -ldl... no checking for dlopen... yes checking whether a program can dlopen itself... yes checking whether a statically linked program can dlopen itself... no creating libtool checking for gcc... (cached) gcc checking whether the C compiler (gcc -g -O2 ) works... yes checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking for ld used by GCC... (cached) /usr/ccs/bin/ld checking if the linker (/usr/ccs/bin/ld) is GNU ld... (cached) no checking for test... /usr/bin/test checking for rm... /usr/bin/rm checking for grep... /usr/bin/grep checking for echo... /usr/bin/echo checking for sed... /usr/bin/sed checking for cp... /usr/bin/cp checking for mkdir... /usr/bin/mkdir checking for libtool... /usr/local/bin/libtool need to check for Perl first, apxs depends on it... checking for perl... /usr/local/bin/perl /usr/bin/test[7]: test: Specify a parameter with this command. /usr/bin/test[7]: test: Specify a parameter with this command. apxs:Error: Invalid query string `EXTRA_CFLAGS' apxs:Error: Invalid query string `EXTRA_CPPFLAGS' building connector for apache-2.0 checking for target platform... unix no apache given ...Enabling EAPI Support... /usr/bin/test[7]: test: Specify a parameter with this command. /usr/bin/test[7]: test: Specify a parameter with this command. updating cache ./config.cache creating ./config.status creating Makefile creating apache-1.3/Makefile creating apache-1.3/Makefile.apxs creating apache-2.0/Makefile creating apache-2.0/Makefile.apxs creating common/Makefile creating common/list.mk creating jni/Makefile but when I ran make it crashed: No suffix list. Making all in common /usr/local/bin/libtool --mode=compile gcc