[OT] Re: linux : Limit of file descriptor
Quoting Randy Watler <[EMAIL PROTECTED]>: > Francois, > > This may be a Red Herring, but I have to wonder if the usage of Posix > threads in the RedHat enterprise servers is causing problems somehow? > Are your other servers RedHat enterprise boxen or different in other > ways? What JVM are you using? > > Randy Watler > Finali Corporation > > > Francois, If you've solved this problem, please disregard this message. I've marked this issue as off topic because it relates to Linux and not Tomcat. lsof won't properly report the total number of opened file descriptors. I was doing the same thing for a client who ran into this issue with file-max set to 16384. I was using lsof and wc to count the lines, however it reported something like 80,000. You sound pretty knowledgeable, so you may have seen this, however the best way to handle this is using the proc file system. An explaination is available at http://www.ussg.iu.edu/hypermail/linux/kernel/0208.2/0145.html Can you post the contents of the following files: /proc/sys/fs/file-max /proc/sys/fs/file-nr /proc/sys/fs/inode-nr /proc/sys/fs/inode-state Once you've pasted this information, we'll see if we can figure this out. Sincerely, Justin L. Spies - This mail sent through IMP: http://horde.org/imp/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: MY ATTITUDE
I know I'm now contributing, but I can't help but sit here with this big ol' grin on my face wondering what it will take to make this stop. Probably the sooner we all stop responding to these types of threads, the sooner the individual threads will stop. (I uses threads because I doubt these posts will every truly stop.) --Justin -Original Message- From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 5:44 PM To: Tomcat Users List Subject: Re: MY ATTITUDE You lied...you said your previous post was the last on this topic. Please just stop. Kenny - Original Message - From: "Steve Burrus" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Thursday, February 13, 2003 4:44 PM Subject: Re: MY ATTITUDE > Lemme clarify my earlier post for you "Barley"!! I only meant that > there should be some kind of a nice combination of BOTH "RTFMing" AND getting/receiving useful advice from others in our newsgroup who have vastly more experience and knowledge with using Tomcat than i do, so far. Can you somehow understand that or not? :) - 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 server crash
Gert-Jan, You may have already checked this, however I'll post it just in case. You can easily check the open files situation on the server by doing the following: cd /proc/sys/fs cat file-nr On my system, I get: [root@venus fs]# cat file-nr 1495703 36038 The first number is the total allocated file handles ever allocated, the second is the numer currently in use and the third is the maximum available. By default on RedHat 7.3 the third number is 8192. I'm not sure about Debian. If the first number equals the third number, then you need to change the maximum number of available file handles by doing the following: echo "33565" > /proc/sys/fs/file-max The "33565" is the total maximum that you would want to have open at any given time. All of this assumes, however, that you are running the proc file system. Otherwise you have to edit an include file and recompile the kernel. Sincerely, Pantek Incorporated Justin L. Spies URL: http://www.pantek.com Ph 440.519.1802 Fax 440.248.5274 Cell 440.336.3317 -Original Message- From: Gert-Jan [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 9:41 AM To: [EMAIL PROTECTED] Subject: Tomcat server crash We have a web-application that runs under Tomcat 4.0.3 on a Debian system with JRE 1.4.1. Our application has worked fine for a couple of months but after a recent upgrade of the webapp we have had several crashes of the application. We are unable to find the cause of the crashes but this is what we can figure out from the log-files: The application runs without problems for some time but then suddenly it starts giving 404 (Not found) responses, it does this for a while (less than a minute) and then gives 500 responses (Server error). A couple of minutes later we find the following error in the catalina_log: 2003-02-12 18:53:07 HttpConnector[8180] accept: java.net.SocketException: Too many open files at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353) at java.net.ServerSocket.implAccept(ServerSocket.java:439) at java.net.ServerSocket.accept(ServerSocket.java:410) at org.apache.catalina.connector.http.HttpConnector.run(HttpConnector.java: 993) at java.lang.Thread.run(Thread.java:536) It seems that there are too many open filehandles but it's unclear whether this is the cause or a consequense of the crash. Has anyone ever had this problem before? Thanks, Gert-Jan - 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: Name jdbc:comp is not bound in this context
Nicole, Not sure if this was answered, but I'll give it a try. When I had this problem, I found that I needed to add useNaming="true" to both the entry and to the entry. Sincerely, Pantek Incorporated Justin L. Spies URL: http://www.pantek.com Ph 440.519.1802 Fax 440.248.5274 Cell 440.336.3317 -Original Message- From: Nicole Hibbard [mailto:[EMAIL PROTECTED]] Sent: Monday, January 13, 2003 3:11 PM To: [EMAIL PROTECTED] Subject: Name jdbc:comp is not bound in this context I've gone through every resource I have in trying to test a connection to MySql database. I am using Tomcat 4.1.18-LE and MySql 3.23.53 and java 1.4.1_01. I set priveleges on MySql, put the mm.sql driver's jar in common/lib. I set my Classpath Variable .;C:\ServletDev;C:\jakarta-tomcat-4.1.18-LE-jdk14\common\lib\servlet.jar ;C:\ mysql-connector-java-2.0.14\mysql-connector-java-2.0.14-bin.jar I added the following to my server.xml factory org.apache.commons.dbcp.BasicDataSourceFactory maxActive 100 password javadude driverClassName com.mysql.jdbc.Driver url jdbc:mysql://localhost/javatest?user=javauser I created a web.xml in DBTest/WEB-INF http://java.sun.com/dtd/web-app_2_3.dtd";> MySQL Test App DB Connection jdbc/TestDB javax.sql.DataSource Container I have a jsp in web-apps/DBTest DB Test <% foo.DBTest tst = new foo.DBTest(); tst.init(); %> Results Foo <%= tst.getFoo() %> Bar <%= tst.getBar() %> I have a DBTest.class in Webapps/DBtest/foo package foo; import javax.naming.*; import javax.sql.*; import java.sql.*; public class DBTest { String foo = "Not Connected"; int bar = -1; public void init() { try{ Context ctx = new InitialContext(); if(ctx == null ) throw new Exception("Boom - No Context"); DataSource ds = (DataSource)ctx.lookup( "java:comp/env/jdbc/TestDB"); if (ds == null) foo= "Datasource is null"; if (ds != null) { Connection conn = ds.getConnection(); if (conn == null) foo="got datasource, no connection"; if(conn != null) { foo = "Got Connection "+conn.toString(); Statement stmt = conn.createStatement(); ResultSet rst = stmt.executeQuery( "select id, foo, bar from testdata"); if(rst.next()) { foo=rst.getString(2); bar=rst.getInt(3); } conn.close(); } } }catch(Exception e) { e.printStackTrace(); } } public String getFoo() { return foo; } public int getBar() { return bar;} } AND I GET THE FOLLOWING ERROR ON TOMCAT javax.naming.NameNotFoundException: Name jdbc:comp is not bound in this Context My test.jsp outputs Results Foo Not Connected Bar -1 I have to get this working ASAP!! Please help! Nicole -- 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: reducing tomcat & jasper memory footprint
Julian, I would have to agree that creating a JSP per article is a bit much. How did you or your group arrive at using this solution? The other possible solutions I have seen would include a single JSP that pulls the data from a database or creating XML files that are formatted with XSLT instead of JSP's Is the system doing some processing that requires one page or article or requires JSP capabilities that aren't found in XML/XSLT files? 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: Paul Yunusov [mailto:[EMAIL PROTECTED]] Sent: Monday, December 30, 2002 3:31 PM To: Tomcat Users List Subject: Re: reducing tomcat & jasper memory footprint On Monday 30 December 2002 02:37 pm, Julian Löffelhardt wrote: > Hi, > > I'm using Apache 1.3.26 and 3 tomcat 4.0.4 instances with AJP13 & > loadbalancing . Our application is a CMS where all the published > articles are generated offline as JSP-Files, one jsp per article. > > We had hige problems with the memory footprint. Due to the fact that > every jsp is generated as a class and there are about 200 new artices > per day the permanent segment of the JVM heap gets filled with all the > classes, and I get an OutOfMemoryError. My workaround for now is > setting -XX:PermSize and --XX:MapPermSize to higher values, but this > just delays application hang-up. > > With 64 megs of permSize our Server had an approx. uptime of 1 day now > it's about 3-4 days. > > Is there any way to unload jsp-Files (unload the class) ? > > llap, > julian JAVAC leaks memory every time a JSP class is compiled. The more JSPs are compiled or the more often JSP classes are compiled, the more memory is leaked. You exacerbate this problem by generating a JSP per article often. IMHO, generating a JSP per article is misusing the technology. JSP is a templating solution whereas one JSP describes a layout of any number of end documents. I suggest you change your software to generate an HTML file per artcile rather than a JSP. Paul -- 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: Yes!!! It works!!! (was: Re: mod_jk---still trying, getting closer)
Denise, I'm not sure what the difference is between the two systems. I'm going to try this again at home and see what I can come up with. I'll let you know. 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: Denise Mangano [mailto:[EMAIL PROTECTED]] Sent: Friday, December 27, 2002 10:09 AM To: 'Tomcat Users List' Subject: RE: Yes!!! It works!!! (was: Re: mod_jk---still trying, getting closer) Justin - Any thoughts on why that did the trick? As I mentioned, those directives are not commented out on my config, but it works?? Just curious is all... Thanks! Denise -Original Message----- From: Justin L. Spies [mailto:[EMAIL PROTECTED]] Sent: Friday, December 27, 2002 10:01 AM To: 'Tomcat Users List' Subject: RE: Yes!!! It works!!! (was: Re: mod_jk---still trying, getting closer) This was a message I thought I had sent to the list, but I somehow managed to send it to Jerry directly... Congratulations Jerry! Glad to hear that you've got a working system now! Just for the benefit of the other list members out there, the pieces we commented out were the following: --- AND --- Has anyone else out there had good experience setting up the Apache auto configuration? 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: Thursday, December 26, 2002 5:31 PM To: Justin L. Spies Cc: 'Tomcat Users List'; [EMAIL PROTECTED] Subject: Yes!!! It works!!! (was: Re: mod_jk---still trying, getting closer) Justin, I owe you a beer... I removed the two listener statements that you commented out in my server.xml file and now servlets work from Apache without a port setting. Thank you thank you thank you. (And thanks to everyone else who put up with my whining over the past few days and offered help---especially Denise, John, and Jeff :) (BTW, it's academic now, but, yes, on my box tomcat is a symbolic link to jakarta-tomcat-4.1.12-LE-jdk14.) Jerry Justin L. Spies wrote: >Jerry, >I've updated and simplified the configuration files that you supplied >previously. Any changes I made are denoted by the following: > NOTE NOTE NOTE NOTE > >These changes cause your system to have the same config that I first >used to get my system working. I'm not sure about your directory >structure and whether or not you have symlinks setup, however I did >notice that in some of the configuration files you were using two >different directories that should point to the same directories. Here >is an example from httpd.conf: > >You had the following for the JkWorkersFile: >JkWorkersFile >"/usr/local/webserver/jakarta-tomcat-4.1.12-LE-jdk14/conf/jk/workers.pr >o >perties" > >But just below that you had the following apache directive: > > >These should be the same directory above the /conf directory and above >the /webapps directory. On my system, I have tomcat installed in >/var/tomcat4, so I have the following directives: > >JkWorkersFile "/var/tomcat4/conf/jk/workers.properties" > -- and -- > > > >See how they are the same first two? /conf and /webapps should be a >subdirectory of /tomcat4 (in my case) or /tomcat (in your case), unless >you have a symlink (in your case) from >/usr/local/webserver/jakarta-tomcat-4.1.12-LE-jdk14 to >/usr/local/webserver/tomcat. Does that make sense, or did I just >completely confuse everyone? > >Jerry, when you restart Apache and Tomcat, could you send us copies of >the apache error log and the tomcat catalina.out files? Also, if you >could confirm the directory structure, that would be a big help. > >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: Thursday, December 26, 2002 2:00 PM >To: Tomcat Users List >Subject: Re: mod_jk---still trying, getting closer > > >I use the mod_jk binary obtained from John Turner's how-to page, and >the > >httpd.conf and server.xml statements are the same as the statements in >the configurations several other people here have provided as examples, >I think. I have also tried to follow John Turner's suggested >confuguration statements. > >I've tried just about every combination of configurations that have >been > >suggested. It's possible that by now I have mixed up different people's >advice, but I don't know what ne
RE: Yes!!! It works!!! (was: Re: mod_jk---still trying, getting closer)
This was a message I thought I had sent to the list, but I somehow managed to send it to Jerry directly... Congratulations Jerry! Glad to hear that you've got a working system now! Just for the benefit of the other list members out there, the pieces we commented out were the following: --- AND --- Has anyone else out there had good experience setting up the Apache auto configuration? 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: Thursday, December 26, 2002 5:31 PM To: Justin L. Spies Cc: 'Tomcat Users List'; [EMAIL PROTECTED] Subject: Yes!!! It works!!! (was: Re: mod_jk---still trying, getting closer) Justin, I owe you a beer... I removed the two listener statements that you commented out in my server.xml file and now servlets work from Apache without a port setting. Thank you thank you thank you. (And thanks to everyone else who put up with my whining over the past few days and offered help---especially Denise, John, and Jeff :) (BTW, it's academic now, but, yes, on my box tomcat is a symbolic link to jakarta-tomcat-4.1.12-LE-jdk14.) Jerry Justin L. Spies wrote: >Jerry, >I've updated and simplified the configuration files that you supplied >previously. Any changes I made are denoted by the following: > NOTE NOTE NOTE NOTE > >These changes cause your system to have the same config that I first >used to get my system working. I'm not sure about your directory >structure and whether or not you have symlinks setup, however I did >notice that in some of the configuration files you were using two >different directories that should point to the same directories. Here >is an example from httpd.conf: > >You had the following for the JkWorkersFile: >JkWorkersFile >"/usr/local/webserver/jakarta-tomcat-4.1.12-LE-jdk14/conf/jk/workers.pr >o >perties" > >But just below that you had the following apache directive: > > >These should be the same directory above the /conf directory and above >the /webapps directory. On my system, I have tomcat installed in >/var/tomcat4, so I have the following directives: > >JkWorkersFile "/var/tomcat4/conf/jk/workers.properties" > -- and -- > > > >See how they are the same first two? /conf and /webapps should be a >subdirectory of /tomcat4 (in my case) or /tomcat (in your case), unless >you have a symlink (in your case) from >/usr/local/webserver/jakarta-tomcat-4.1.12-LE-jdk14 to >/usr/local/webserver/tomcat. Does that make sense, or did I just >completely confuse everyone? > >Jerry, when you restart Apache and Tomcat, could you send us copies of >the apache error log and the tomcat catalina.out files? Also, if you >could confirm the directory structure, that would be a big help. > >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: Thursday, December 26, 2002 2:00 PM >To: Tomcat Users List >Subject: Re: mod_jk---still trying, getting closer > > >I use the mod_jk binary obtained from John Turner's how-to page, and >the > >httpd.conf and server.xml statements are the same as the statements in >the configurations several other people here have provided as examples, >I think. I have also tried to follow John Turner's suggested >confuguration statements. > >I've tried just about every combination of configurations that have >been > >suggested. It's possible that by now I have mixed up different people's >advice, but I don't know what needs to be changed. > >I don't know why JK2 is in there, other than the coyote packages that >are referenced in sever.xml. But if I don't use those, what do I use? > >I'm beginning to think mod_webapp.so is looking like my only hope of >getting Tomcat and Apache to work together. > >Jerry > >Jerry > >Milt Epstein wrote: > > > >>On Wed, 25 Dec 2002, Jerry Ford wrote: >> >> >> >> >> >>>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. >>> >>> >>> >>> >>One things I don't understand, it seems like you have JK2 run
RE: mod_jk---still trying, getting closer
Jerry, Once upon a time, I think you asked where I got the mod_jk binaries from. Here is the link: RPM's: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1 .2.2/rpms/ (Because I am running Apache 1.3, I grabbed version 1.3 in the file mod_jk-ap13-1.2.2-1jpp.i386.rpm) Binaries: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1 .2.2/bin/linux/i386/ If you are running Apache compiled with SSL support (even if SSL is disabled), you will need the file: mod_jk-1.3.eapi.so If you are running Apache compiled without SSL support (i.e., not using RedHat RPMS), you will need the file: mod_jk-1.3-noeapi.so Again, both of those files are for Apache 1.3 only. 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: Thursday, December 26, 2002 2:00 PM To: Tomcat Users List Subject: Re: mod_jk---still trying, getting closer I use the mod_jk binary obtained from John Turner's how-to page, and the httpd.conf and server.xml statements are the same as the statements in the configurations several other people here have provided as examples, I think. I have also tried to follow John Turner's suggested confuguration statements. I've tried just about every combination of configurations that have been suggested. It's possible that by now I have mixed up different people's advice, but I don't know what needs to be changed. I don't know why JK2 is in there, other than the coyote packages that are referenced in sever.xml. But if I don't use those, what do I use? I'm beginning to think mod_webapp.so is looking like my only hope of getting Tomcat and Apache to work together. Jerry Jerry Milt Epstein wrote: >On Wed, 25 Dec 2002, Jerry Ford wrote: > > > >>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. >> >> > >One things I don't understand, it seems like you have JK2 running on >the Tomcat side, but you refer to workers.properties, which is a JK >file, JK2 doesn't use it, I don't believe. Could that be related to >the problem? > > > > >>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.pr >>operties >>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.pr operties >> >>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 >> >&
RE: Apache Tomcat configuration Issue
Myles, Sorry to say, but Jeffrey is correct--Tomcat will not service the PHP requests. That is link asking Micros... ASP to service Tomcat requests, it just doesn't work. I haven't configured Apache 2.0.x yet so I can't help with that other than to say this--don't try to get everything running all at the same time. Just work on getting the examples going in a most minimalist way. I know when I tried to first setup Apache / Tomcat / mod_jk, I tried to setup all the bells and whistles, but I ended up just spinning my wheels. It wasn't until I tried a piece at a time that I got it working. Hope that this helps. 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: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 2:52 PM To: 'Tomcat Users List' 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> 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 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 directive in the server.xml file directly below the 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 k
RE: mod_jk---still trying, getting closer
Jerry, I've updated and simplified the configuration files that you supplied previously. Any changes I made are denoted by the following: NOTE NOTE NOTE NOTE These changes cause your system to have the same config that I first used to get my system working. I'm not sure about your directory structure and whether or not you have symlinks setup, however I did notice that in some of the configuration files you were using two different directories that should point to the same directories. Here is an example from httpd.conf: You had the following for the JkWorkersFile: JkWorkersFile "/usr/local/webserver/jakarta-tomcat-4.1.12-LE-jdk14/conf/jk/workers.pro perties" But just below that you had the following apache directive: These should be the same directory above the /conf directory and above the /webapps directory. On my system, I have tomcat installed in /var/tomcat4, so I have the following directives: JkWorkersFile "/var/tomcat4/conf/jk/workers.properties" -- and -- See how they are the same first two? /conf and /webapps should be a subdirectory of /tomcat4 (in my case) or /tomcat (in your case), unless you have a symlink (in your case) from /usr/local/webserver/jakarta-tomcat-4.1.12-LE-jdk14 to /usr/local/webserver/tomcat. Does that make sense, or did I just completely confuse everyone? Jerry, when you restart Apache and Tomcat, could you send us copies of the apache error log and the tomcat catalina.out files? Also, if you could confirm the directory structure, that would be a big help. 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: Thursday, December 26, 2002 2:00 PM To: Tomcat Users List Subject: Re: mod_jk---still trying, getting closer I use the mod_jk binary obtained from John Turner's how-to page, and the httpd.conf and server.xml statements are the same as the statements in the configurations several other people here have provided as examples, I think. I have also tried to follow John Turner's suggested confuguration statements. I've tried just about every combination of configurations that have been suggested. It's possible that by now I have mixed up different people's advice, but I don't know what needs to be changed. I don't know why JK2 is in there, other than the coyote packages that are referenced in sever.xml. But if I don't use those, what do I use? I'm beginning to think mod_webapp.so is looking like my only hope of getting Tomcat and Apache to work together. Jerry Jerry Milt Epstein wrote: >On Wed, 25 Dec 2002, Jerry Ford wrote: > > > >>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. >> >> > >One things I don't understand, it seems like you have JK2 running on >the Tomcat side, but you refer to workers.properties, which is a JK >file, JK2 doesn't use it, I don't believe. Could that be related to >the problem? > > > > >>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.pr >>operties >>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
RE: mod_jk---still trying, getting closer
Jerry, Just to clarify, are you using the mod_jk.so or mod_jk2.so? 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: Thursday, December 26, 2002 2:00 PM To: Tomcat Users List Subject: Re: mod_jk---still trying, getting closer I use the mod_jk binary obtained from John Turner's how-to page, and the httpd.conf and server.xml statements are the same as the statements in the configurations several other people here have provided as examples, I think. I have also tried to follow John Turner's suggested confuguration statements. I've tried just about every combination of configurations that have been suggested. It's possible that by now I have mixed up different people's advice, but I don't know what needs to be changed. I don't know why JK2 is in there, other than the coyote packages that are referenced in sever.xml. But if I don't use those, what do I use? I'm beginning to think mod_webapp.so is looking like my only hope of getting Tomcat and Apache to work together. Jerry Jerry Milt Epstein wrote: >On Wed, 25 Dec 2002, Jerry Ford wrote: > > > >>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. >> >> > >One things I don't understand, it seems like you have JK2 running on >the Tomcat side, but you refer to workers.properties, which is a JK >file, JK2 doesn't use it, I don't believe. Could that be related to >the problem? > > > > >>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.pr >>operties >>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.pr operties >> >>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) >> >> >[ ... ] > >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]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
RE: mod_jk---still trying, getting closer
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/ 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: mod_jk...again
Jerry, I've never tried building mod_jk from source as the files always existed on the Jakarta website. Although I don't see it here, are you looking to perform a "customized" compile? If not, is there another reason to compile from source instead of using the binaries? I've never had any problems getting mod_jk to work--just DBCP and that was because of a stupid typo on my part. 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: Friday, December 20, 2002 8:57 PM To: Tomcat Users List Subject: mod_jk...again When I try to build mod_jk from the source contained in jakarta-tomcat-connectors-4.1.12-src.tar, the process breaks before it gets started. I am following the instructions on John Turner's how-to page, but when I run the configure script, it breaks at ltconfig---I get an error message that says a host type must be specified when the --no-verify flag is used. But running ltconfig --help shows no parameter for specifying host type, and the command is run from the configure script anyway. Can anyone tell me what's going on, and more importantly how do I correct it? Here's the output when I run configure; the path to apxs is correct, and JAVA_HOME points to a valid Java 1.4 JDK: [jford@gizmo native]$ ./configure --with-apxs=../../../apache_1.3.27/bin/apxs --with-java-home=$JAVA_HOME checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking whether make sets $(MAKE)... yes checking for working aclocal... found checking for working autoconf... found checking for working automake... found checking for working autoheader... found checking for working makeinfo... found checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for ranlib... ranlib checking for gcc... gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for ld used by GCC... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes ltconfig: you must specify a host type if you use `--no-verify' Try `ltconfig --help' for more information. configure: error: libtool configure failed [jford@gizmo native]$ -- 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: Configuring mod_jk - Again!
Milt, Thanks for the comments -- I was hoping someone would do so. 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: Milt Epstein [mailto:[EMAIL PROTECTED]] Sent: Friday, December 20, 2002 6:30 PM To: Tomcat Users List; Justin L. Spies Subject: RE: Configuring mod_jk - Again! On Fri, 20 Dec 2002, Justin L. Spies wrote: > Denise, > That's a good question. The indented pieces where what I copied from > my live httpd.conf file and are contained inside of a > directive. The LoadModule was from your file. As far as keeping them > together, that is what I do simply because I like to group similar > items. I'm not to keen on the Apache startup process, so you may need > to put the LoadModule near/below the other LoadModule lines. Perhaps > a more experienced Apache user could comment on this. I then put the > JkMount directives near the rest of the directives > because, in my mind, they are similar and belong together. FWIW, I don't think it matters how the directives are grouped other than whether they are in different VirtualHost sections. > -Original Message- > From: Denise Mangano [mailto:[EMAIL PROTECTED]] > Sent: Friday, December 20, 2002 5:25 PM > To: 'Tomcat Users List' > Subject: RE: Configuring mod_jk - Again! > > > Silly question - does the LoadModule statement stay grouped with the > JkMoutn directives, or does that have to be placed with the other > LoadModule directives... > > Thanks... (Thanks for piecing that together - I am going to give that > a whirl)... > > Denise Mangano > Help Desk Analyst > Complus Data Innovations, Inc. > > > -Original Message- > From: Justin L. Spies [mailto:[EMAIL PROTECTED]] > Sent: Friday, December 20, 2002 5:11 PM > To: 'Tomcat Users List' > Subject: RE: Configuring mod_jk - Again! > > > Denise, > Let me see if this helps you... > > In httpd.conf, try (I've cut up your example from below): > > LoadModule jk_module modules/mod_jk.so > JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties > JkLogFile /usr/local/tomcat/logs/mod_jk.log > JkLogLevel info > JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " > JkRequestLogFormat "%w %r %s %T" > > > # Send servlet for context /examples to worker named worker1 > JkMount /servlet/* ajp13 > JkMount /examples/jsp/*.jsp ajp13 > JkMount /examples/servlet/* ajp13 > > # Send JSPs for context /examples to worker named worker1 > JkMount /*.jsp ajp13 > JkMount /admin/* ajp13 > JkMount /manager/* ajp13 > > # Static files in the examples webapp are served by apache > JkAutoAlias /var/tomcat4/webapps/dev.jscs-inc.com > > # This will fix the missing images for you... > Alias /examples /var/tomcat4/webapps/dev.mydomain.com/examples > Alias /tomcat-docs > /var/tomcat4/webapps/dev.mydomain.com/tomcat-docs > > # The following line prohibits users from directly access WEB-INF > > AllowOverride None > deny from all > > > > > 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: Denise Mangano [mailto:[EMAIL PROTECTED]] > Sent: Friday, December 20, 2002 5:03 PM > To: 'Tomcat Users List' > Subject: RE: Configuring mod_jk - Again! > > > Ok, now I added the JkMount /examples/* worker1 and nothing works. > Everything hangs indefinitely. I had all this placed at the end of my > httpd.conf file so it would apply to all virtual hosts. I'm completely > at > a loss, and quite frustrated actually : ( At this point I do not care > if the examples work, I just want to get my app that was working > before back up... > > What on earth could possibly be going wrong? > > Denise Mangano > Help Desk Analyst > Complus Data Innovations, Inc. > > > -Original Message- > From: Milt Epstein [mailto:[EMAIL PROTECTED]] > Sent: Friday, December 20, 2002 3:56 PM > To: Tomcat Users List > Subject: RE: Configuring mod_jk - Again! > > > On Fri, 20 Dec 2002, Denise Mangano wrote: > > > Well I tried it. And I added additional JkMount statements: > > > > LoadModule jk_module modules/mod_jk.so > > JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties > > JkLogFile /usr/local/tomcat/logs/mod_jk.log > > JkLogLevel info > > JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " JkRequestLogFormat "%w %r > > %s %T" JkMount /*.jsp wor
RE: Configuring mod_jk - Again!
Denise, One problem I just noticed. The workers.properties file on my system is setup so that the worker is called ajp13. If yours is called worker1, then you will want to change any of the text below from ajp13 to worker1. From what I recall about your workers.properties file, the worker is called worker1, not ajp13. 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: Denise Mangano [mailto:[EMAIL PROTECTED]] Sent: Friday, December 20, 2002 5:25 PM To: 'Tomcat Users List' Subject: RE: Configuring mod_jk - Again! Silly question - does the LoadModule statement stay grouped with the JkMoutn directives, or does that have to be placed with the other LoadModule directives... Thanks... (Thanks for piecing that together - I am going to give that a whirl)... Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -Original Message----- From: Justin L. Spies [mailto:[EMAIL PROTECTED]] Sent: Friday, December 20, 2002 5:11 PM To: 'Tomcat Users List' Subject: RE: Configuring mod_jk - Again! Denise, Let me see if this helps you... In httpd.conf, try (I've cut up your example from below): LoadModule jk_module modules/mod_jk.so JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties JkLogFile /usr/local/tomcat/logs/mod_jk.log JkLogLevel info JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " JkRequestLogFormat "%w %r %s %T" # Send servlet for context /examples to worker named worker1 JkMount /servlet/* ajp13 JkMount /examples/jsp/*.jsp ajp13 JkMount /examples/servlet/* ajp13 # Send JSPs for context /examples to worker named worker1 JkMount /*.jsp ajp13 JkMount /admin/* ajp13 JkMount /manager/* ajp13 # Static files in the examples webapp are served by apache JkAutoAlias /var/tomcat4/webapps/dev.jscs-inc.com # This will fix the missing images for you... Alias /examples /var/tomcat4/webapps/dev.mydomain.com/examples Alias /tomcat-docs /var/tomcat4/webapps/dev.mydomain.com/tomcat-docs # The following line prohibits users from directly access WEB-INF AllowOverride None deny from all 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: Denise Mangano [mailto:[EMAIL PROTECTED]] Sent: Friday, December 20, 2002 5:03 PM To: 'Tomcat Users List' Subject: RE: Configuring mod_jk - Again! Ok, now I added the JkMount /examples/* worker1 and nothing works. Everything hangs indefinitely. I had all this placed at the end of my httpd.conf file so it would apply to all virtual hosts. I'm completely at a loss, and quite frustrated actually : ( At this point I do not care if the examples work, I just want to get my app that was working before back up... What on earth could possibly be going wrong? Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -Original Message- From: Milt Epstein [mailto:[EMAIL PROTECTED]] Sent: Friday, December 20, 2002 3:56 PM To: Tomcat Users List Subject: RE: Configuring mod_jk - Again! On Fri, 20 Dec 2002, Denise Mangano wrote: > Well I tried it. And I added additional JkMount statements: > > LoadModule jk_module modules/mod_jk.so > JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties > JkLogFile /usr/local/tomcat/logs/mod_jk.log > JkLogLevel info > JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " > JkRequestLogFormat "%w %r %s %T" > JkMount /*.jsp worker1 > JkMount /tomcat-docs/*.jsp worker1 > JkMount /admin/j_security_check worker1 > JkMount /admin/*.do worker1 > JkMount /admin/*.jsp worker1 > JkMount /webdav/*.jsp worker1 > 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 > JkMount /manager/html/* worker1 > JkMount /manager/* worker1 > JkMount /manager/*.jsp worker1 > > For workers.properties I first tried: > worker.list=worker1 > worker.worker1.type=ajp13 > worker.worker1.host=localhost > worker.worker1.port=8009 > > > Now when I go to http://localhost/index.jsp it displays the tomcat > home page, but the images are missing (looks like the path is not > right)... You don't really give enough information to tell what's going on with this, but sometimes there are problems with images that are unrelated to other problems (e.g. the other problems you're having here). These have to do with where your images are (e.g. under the webapp, or under some images directory off the Apache DocumentRoot), and
RE: Configuring mod_jk - Again!
Denise, That's a good question. The indented pieces where what I copied from my live httpd.conf file and are contained inside of a directive. The LoadModule was from your file. As far as keeping them together, that is what I do simply because I like to group similar items. I'm not to keen on the Apache startup process, so you may need to put the LoadModule near/below the other LoadModule lines. Perhaps a more experienced Apache user could comment on this. I then put the JkMount directives near the rest of the directives because, in my mind, they are similar and belong together. 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: Denise Mangano [mailto:[EMAIL PROTECTED]] Sent: Friday, December 20, 2002 5:25 PM To: 'Tomcat Users List' Subject: RE: Configuring mod_jk - Again! Silly question - does the LoadModule statement stay grouped with the JkMoutn directives, or does that have to be placed with the other LoadModule directives... Thanks... (Thanks for piecing that together - I am going to give that a whirl)... Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -Original Message----- From: Justin L. Spies [mailto:[EMAIL PROTECTED]] Sent: Friday, December 20, 2002 5:11 PM To: 'Tomcat Users List' Subject: RE: Configuring mod_jk - Again! Denise, Let me see if this helps you... In httpd.conf, try (I've cut up your example from below): LoadModule jk_module modules/mod_jk.so JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties JkLogFile /usr/local/tomcat/logs/mod_jk.log JkLogLevel info JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " JkRequestLogFormat "%w %r %s %T" # Send servlet for context /examples to worker named worker1 JkMount /servlet/* ajp13 JkMount /examples/jsp/*.jsp ajp13 JkMount /examples/servlet/* ajp13 # Send JSPs for context /examples to worker named worker1 JkMount /*.jsp ajp13 JkMount /admin/* ajp13 JkMount /manager/* ajp13 # Static files in the examples webapp are served by apache JkAutoAlias /var/tomcat4/webapps/dev.jscs-inc.com # This will fix the missing images for you... Alias /examples /var/tomcat4/webapps/dev.mydomain.com/examples Alias /tomcat-docs /var/tomcat4/webapps/dev.mydomain.com/tomcat-docs # The following line prohibits users from directly access WEB-INF AllowOverride None deny from all 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: Denise Mangano [mailto:[EMAIL PROTECTED]] Sent: Friday, December 20, 2002 5:03 PM To: 'Tomcat Users List' Subject: RE: Configuring mod_jk - Again! Ok, now I added the JkMount /examples/* worker1 and nothing works. Everything hangs indefinitely. I had all this placed at the end of my httpd.conf file so it would apply to all virtual hosts. I'm completely at a loss, and quite frustrated actually : ( At this point I do not care if the examples work, I just want to get my app that was working before back up... What on earth could possibly be going wrong? Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -Original Message- From: Milt Epstein [mailto:[EMAIL PROTECTED]] Sent: Friday, December 20, 2002 3:56 PM To: Tomcat Users List Subject: RE: Configuring mod_jk - Again! On Fri, 20 Dec 2002, Denise Mangano wrote: > Well I tried it. And I added additional JkMount statements: > > LoadModule jk_module modules/mod_jk.so > JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties > JkLogFile /usr/local/tomcat/logs/mod_jk.log > JkLogLevel info > JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " > JkRequestLogFormat "%w %r %s %T" > JkMount /*.jsp worker1 > JkMount /tomcat-docs/*.jsp worker1 > JkMount /admin/j_security_check worker1 > JkMount /admin/*.do worker1 > JkMount /admin/*.jsp worker1 > JkMount /webdav/*.jsp worker1 > 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 > JkMount /manager/html/* worker1 > JkMount /manager/* worker1 > JkMount /manager/*.jsp worker1 > > For workers.properties I first tried: > worker.list=worker1 > worker.worker1.type=ajp13 > worker.worker1.host=localhost > worker.worker1.port=8009 > > > Now when I go to http://localhost/index.jsp it displays the tomcat > home page, but the images are missing (looks like the path is not > right)... You don't really give enough information to tell what's going
RE: Configuring mod_jk - Again!
Denise, Let me see if this helps you... In httpd.conf, try (I've cut up your example from below): LoadModule jk_module modules/mod_jk.so JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties JkLogFile /usr/local/tomcat/logs/mod_jk.log JkLogLevel info JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " JkRequestLogFormat "%w %r %s %T" # Send servlet for context /examples to worker named worker1 JkMount /servlet/* ajp13 JkMount /examples/jsp/*.jsp ajp13 JkMount /examples/servlet/* ajp13 # Send JSPs for context /examples to worker named worker1 JkMount /*.jsp ajp13 JkMount /admin/* ajp13 JkMount /manager/* ajp13 # Static files in the examples webapp are served by apache JkAutoAlias /var/tomcat4/webapps/dev.jscs-inc.com # This will fix the missing images for you... Alias /examples /var/tomcat4/webapps/dev.mydomain.com/examples Alias /tomcat-docs /var/tomcat4/webapps/dev.mydomain.com/tomcat-docs # The following line prohibits users from directly access WEB-INF AllowOverride None deny from all 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: Denise Mangano [mailto:[EMAIL PROTECTED]] Sent: Friday, December 20, 2002 5:03 PM To: 'Tomcat Users List' Subject: RE: Configuring mod_jk - Again! Ok, now I added the JkMount /examples/* worker1 and nothing works. Everything hangs indefinitely. I had all this placed at the end of my httpd.conf file so it would apply to all virtual hosts. I'm completely at a loss, and quite frustrated actually : ( At this point I do not care if the examples work, I just want to get my app that was working before back up... What on earth could possibly be going wrong? Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -Original Message- From: Milt Epstein [mailto:[EMAIL PROTECTED]] Sent: Friday, December 20, 2002 3:56 PM To: Tomcat Users List Subject: RE: Configuring mod_jk - Again! On Fri, 20 Dec 2002, Denise Mangano wrote: > Well I tried it. And I added additional JkMount statements: > > LoadModule jk_module modules/mod_jk.so > JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties > JkLogFile /usr/local/tomcat/logs/mod_jk.log > JkLogLevel info > JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " > JkRequestLogFormat "%w %r %s %T" > JkMount /*.jsp worker1 > JkMount /tomcat-docs/*.jsp worker1 > JkMount /admin/j_security_check worker1 > JkMount /admin/*.do worker1 > JkMount /admin/*.jsp worker1 > JkMount /webdav/*.jsp worker1 > 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 > JkMount /manager/html/* worker1 > JkMount /manager/* worker1 > JkMount /manager/*.jsp worker1 > > For workers.properties I first tried: > worker.list=worker1 > worker.worker1.type=ajp13 > worker.worker1.host=localhost > worker.worker1.port=8009 > > > Now when I go to http://localhost/index.jsp it displays the tomcat > home page, but the images are missing (looks like the path is not > right)... You don't really give enough information to tell what's going on with this, but sometimes there are problems with images that are unrelated to other problems (e.g. the other problems you're having here). These have to do with where your images are (e.g. under the webapp, or under some images directory off the Apache DocumentRoot), and how you reference them (e.g. relatively or absolutely). > Also, I can't get to any other page. For example. I try going to > http://localhost/examples/servlets/ and I get a HTTP 404 Page not > found error. Any further suggestions? You have nothing, that is, no JkMount directive, that would forward that URL to tomcat. (BTW, that's often the first step in figuring out the problem with a page, especially if it's a 404, seeing whether it's Tomcat or Apache that's returning the 404. You can do that by looking at the returned page or seeing what's in the logs.) I think you need something like: JkMount /examples/* worker1 Also, this will allow you to get rid of several of the JkMount directives you've shown above. > I tried changing workers.properties to: > worker.list=worker1 > worker.worker1.type=ajp13 worker.worker1.host=www.mydomainname.com > worker.worker1.port=8009 > > But the same situation... Thanks though - this is definitely a start! > > Denise Mangano > Help Desk Analyst > Complus Data Innovations, Inc. > > > -Original Mes
RE: BDCP to postgres confgiuration
Did you try http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples -howto.html ? 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: Dionisio Ruiz de Zarate [mailto:[EMAIL PROTECTED]] Sent: Friday, December 20, 2002 3:48 PM To: [EMAIL PROTECTED] Subject: BDCP to postgres confgiuration Anybody knows if there is one howto or faq o documentation for configuring DBCP with postgresql, in tomcat? how i must to configure the server.xml and web.xml files, and if there are other configurations. thanks -- 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: Still can't get JNDI DataSource
Iran, Did you try changing To When I first setup naming, I was trying to use the default context. What I found is that I had to define The value soley for the purpose of the <... naming="true"> to enable JNDI. I haven't followed the thread, so perhaps you've already tried this. 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: Iran Marcius [mailto:[EMAIL PROTECTED]] Sent: Friday, December 20, 2002 2:32 PM To: [EMAIL PROTECTED] Subject: Still can't get JNDI DataSource Well, I apologize for the insistence but didn't get any answer that could help me. Lets remember: I'm trying to get a DataSource in my webapp which is configured as a GlobalResource, as the following: factory org.apache.commons.dbcp.BasicDataSourceFactory driverClassName org.postgresql.Driver url jdbc:postgresql://localhost/global validationQuery select 1 username global password password My context is like this: My webapp has the following lines: Context ic = new InitialContext(); DataSource ds = (DataSource)ic.lookup("java:comp/env/db"); <-- here is where the exception occurs The DataSource is there (I saw it in Administration app), and the ResourceLink is there too. So what am I missing here? iran -- 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 SSL Setup
Ken, Thanks for the hints. Since they (Apache/Tomcat) are running on the same system at this point, that won't be an issue. Could you point me the direction of some documentation that would help me get this setup? I've setup mod_jk with standard Apache before and it has been straight forward. I am assuming that Apache handles the encryption/decryption and passes the requests off to Tomcat via the connector AFTER it decrypts the request--is this correct? 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: Ken Anderson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 18, 2002 4:51 PM To: Tomcat Users List Subject: Re: Tomcat SSL Setup Have you considered the advantages of using one of the apache connectors instead of tomcat standalone for SSL support? I fought with Tomcat ssl support a couple years ago, and was unable to get it to work. I'm sure the support is there now, but ssl support is transparent if you use mod_jk or mod_webapp with Apache, and it's easier, since you already have all the cerificates in place. The downside is that the connection between apache and tomcat is NOT encrypted, so if you are running TC and Apache on different servers, this might be an issue. Ken A. Justin L. Spies wrote: > One piece of information I forgot to mention: > O/S: Red Hat Linux 7.2 > Apache: Custom Compiled 1.3.26 > Tomcat: 4.0.4 RPM installation > JSDK: j2sdk1.4.0_01 > > Thanks again. > > Justin L. Spies > > > -Original Message- > From: Justin L. Spies [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, December 18, 2002 2:43 PM > To: [EMAIL PROTECTED] > Subject: Tomcat SSL Setup > > > Hello all, > I've been working on getting SSL configured for Tomcat and seem to be > having a small problem. I must be mistyping something because the > only thing I get back from Netscape 7.0 is: > "Netscape 7.0 and www.mydomain.com cannot communicate securely > because they have no common encryption algorithms." > > Here is what I have done so far: > > 1.I changed /etc/tomcat4/server.xml and uncommented the following: > > className="org.apache.catalina.connector.http.HttpConnector" >port="8443" minProcessors="5" maxProcessors="75" >enableLookups="true" >acceptCount="10" debug="0" scheme="https" secure="true"> >className="org.apache.catalina.net.SSLServerSocketFactory" >clientAuth="false" > keystoreFile="keystores/mydomain.keystore" keystorePass="" > protocol="TLS"/> > > > 2.I ran the following commands to import the Verisign key: > /usr/java/j2sdk1.4.0_01/bin/keytool -import -alias root \ > -keystore /var/tomcat4/keystores/mydomain.keystore \ > -trustcacerts -file /etc/verisign.key > > 3.I ran the following commands to import a previously created SSL > certificate > /usr/java/j2sdk1.4.0_01/bin/keytool -import -alias tomcat \ > -keystore /var/tomcat4/keystores/mydomain.keystore \ > -trustcacerts -file /home/httpd/ssl/www.mydomain.com.cer > > 4.In /etc/tomcat4/server.xml, I noticed the following: > * Download and install JSSE 1.0.2 or later, and put the JAR > files >into "$JAVA_HOME/jre/lib/ext". > > I found jsse.jar in $JAVA_HOME/jre/lib so I ran the following: > ln -s $JAVA_HOME/jre/lib/jsse.jar $JAVA_HOME/jre/lib/ext/jsse.jar > > 5.I then restarted Tomcat and tried the following URL: > http://www.mydomain.com:8080/examples/servlets/index.hml > > This was a test simply to make sure Tomcat started properly. In this > it worked fine. > > 6.I then restarted Tomcat and tried the following URL: > https://www.mydomain.com:8443/examples/servlets/index.html > > This test failed with the above error message. > > > Does anyone have any ideas? Oh, and BTW, I can visit > https://www.mydomain.com/index.html and the home page for the site > comes up in SSL mode without a problem, so I know that the SSL > certificate, under Apache, is working fine. > > Thanks, > Justin L. Spies > > > > -- > 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 SSL Setup
One piece of information I forgot to mention: O/S: Red Hat Linux 7.2 Apache: Custom Compiled 1.3.26 Tomcat: 4.0.4 RPM installation JSDK: j2sdk1.4.0_01 Thanks again. Justin L. Spies -Original Message- From: Justin L. Spies [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 18, 2002 2:43 PM To: [EMAIL PROTECTED] Subject: Tomcat SSL Setup Hello all, I've been working on getting SSL configured for Tomcat and seem to be having a small problem. I must be mistyping something because the only thing I get back from Netscape 7.0 is: "Netscape 7.0 and www.mydomain.com cannot communicate securely because they have no common encryption algorithms." Here is what I have done so far: 1. I changed /etc/tomcat4/server.xml and uncommented the following: 2. I ran the following commands to import the Verisign key: /usr/java/j2sdk1.4.0_01/bin/keytool -import -alias root \ -keystore /var/tomcat4/keystores/mydomain.keystore \ -trustcacerts -file /etc/verisign.key 3. I ran the following commands to import a previously created SSL certificate /usr/java/j2sdk1.4.0_01/bin/keytool -import -alias tomcat \ -keystore /var/tomcat4/keystores/mydomain.keystore \ -trustcacerts -file /home/httpd/ssl/www.mydomain.com.cer 4. In /etc/tomcat4/server.xml, I noticed the following: * Download and install JSSE 1.0.2 or later, and put the JAR files into "$JAVA_HOME/jre/lib/ext". I found jsse.jar in $JAVA_HOME/jre/lib so I ran the following: ln -s $JAVA_HOME/jre/lib/jsse.jar $JAVA_HOME/jre/lib/ext/jsse.jar 5. I then restarted Tomcat and tried the following URL: http://www.mydomain.com:8080/examples/servlets/index.hml This was a test simply to make sure Tomcat started properly. In this it worked fine. 6. I then restarted Tomcat and tried the following URL: https://www.mydomain.com:8443/examples/servlets/index.html This test failed with the above error message. Does anyone have any ideas? Oh, and BTW, I can visit https://www.mydomain.com/index.html and the home page for the site comes up in SSL mode without a problem, so I know that the SSL certificate, under Apache, is working fine. Thanks, Justin L. Spies -- 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]>
Tomcat SSL Setup
Hello all, I've been working on getting SSL configured for Tomcat and seem to be having a small problem. I must be mistyping something because the only thing I get back from Netscape 7.0 is: "Netscape 7.0 and www.mydomain.com cannot communicate securely because they have no common encryption algorithms." Here is what I have done so far: 1. I changed /etc/tomcat4/server.xml and uncommented the following: 2. I ran the following commands to import the Verisign key: /usr/java/j2sdk1.4.0_01/bin/keytool -import -alias root \ -keystore /var/tomcat4/keystores/mydomain.keystore \ -trustcacerts -file /etc/verisign.key 3. I ran the following commands to import a previously created SSL certificate /usr/java/j2sdk1.4.0_01/bin/keytool -import -alias tomcat \ -keystore /var/tomcat4/keystores/mydomain.keystore \ -trustcacerts -file /home/httpd/ssl/www.mydomain.com.cer 4. In /etc/tomcat4/server.xml, I noticed the following: * Download and install JSSE 1.0.2 or later, and put the JAR files into "$JAVA_HOME/jre/lib/ext". I found jsse.jar in $JAVA_HOME/jre/lib so I ran the following: ln -s $JAVA_HOME/jre/lib/jsse.jar $JAVA_HOME/jre/lib/ext/jsse.jar 5. I then restarted Tomcat and tried the following URL: http://www.mydomain.com:8080/examples/servlets/index.hml This was a test simply to make sure Tomcat started properly. In this it worked fine. 6. I then restarted Tomcat and tried the following URL: https://www.mydomain.com:8443/examples/servlets/index.html This test failed with the above error message. Does anyone have any ideas? Oh, and BTW, I can visit https://www.mydomain.com/index.html and the home page for the site comes up in SSL mode without a problem, so I know that the SSL certificate, under Apache, is working fine. Thanks, Justin L. Spies -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>