hot redeploy now work. locked jsf-impl.jar
I deploy xsoft.war in webapps directory. It creates a diretory xsoft and deploy works. NEXT, I drop xsoft.war in the webapps directory again. Tomcat starts deleting all files from previous deployment but can't delete jsf-impl.jar. Because of this, tomcat does not deploy xsoft.war and the xsoft directory is left empty except this one file. This was hard to figure out as tomcat logs say nothing about what happened. They don't tell you that redeploy failed because tomcat did not succeed in deleting the first deployment. It took me forever to figure out what was going on. Anyone know why jsf-impl.jar would be locked. I try to manually delete it and can't until I shutdown tomcat. Is tomcat not unlocking the file correctly after it reads it into the classloader for this app? thanks for any help on this, Temporarily I just created an ant script that stops tomcat, deletes previous xsoft directory, redeploys app and restarts tomcat but this takes forever. dean - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: hot redeploy now work. locked jsf-impl.jar
I am confused. It looks like they found a way to make tomcat so if the jars had that problem, tomcat could still handle it, but only put this in 4.x. It is not in 5.0(ie. the last post in the message). The weird thing is a friend had the same version but not the same problem. I upgraded my jvm to match his also. Could not figure out what was wrong? thanks, dean Take a look at http://issues.apache.org/bugzilla/show_bug.cgi?id=10026. It may be related. Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Saturday, October 08, 2005 5:20 PM To: tomcat-user@jakarta.apache.org Subject: hot redeploy now work. locked jsf-impl.jar I deploy xsoft.war in webapps directory. It creates a diretory xsoft and deploy works. NEXT, I drop xsoft.war in the webapps directory again. Tomcat starts deleting all files from previous deployment but can't delete jsf-impl.jar. Because of this, tomcat does not deploy xsoft.war and the xsoft directory is left empty except this one file. This was hard to figure out as tomcat logs say nothing about what happened. They don't tell you that redeploy failed because tomcat did not succeed in deleting the first deployment. It took me forever to figure out what was going on. Anyone know why jsf-impl.jar would be locked. I try to manually delete it and can't until I shutdown tomcat. Is tomcat not unlocking the file correctly after it reads it into the classloader for this app? thanks for any help on this, Temporarily I just created an ant script that stops tomcat, deletes previous xsoft directory, redeploys app and restarts tomcat but this takes forever. dean - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.11.13/124 - Release Date: 07/10/2005 - 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]
SessionListener invoked sometimes and not others
So after a restart of tomcat, I login and it appears the session is still valid, so it does not go through my session listener. I need to be aware of the web application lifecycle and want to grab a resource when the webapp starts and release when the web app goes away. How do I do that? I was doing this in the SessionListener upon creation of the first session and releasing when the last session went away. But since tomcat may be saving session, I am getting a request and getting a nullpointerexception now since the resource had not been allocated in web app startup. How does one deal with this kind of problem? thanks, dean - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SessionListener invoked sometimes and not others
My web app has two servlets. One JSF Faces servlet and another servlet for processing AJAX requests from javascript. I want to know when the app starts and when the app is done. Is the only way to do this is to have a ServletContextListener listening to both those servlets? On the first one, I get resources and on the last one being cleaned up, I destroy the resources. I guess this works. I just wish I had access to the app lifecycle. thanks, dean Mark Thomas wrote: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] So after a restart of tomcat, I login and it appears the session is still valid, so it does not go through my session listener. I need to be aware of the web application lifecycle and want to grab a resource when the webapp starts and release when the web app goes away. How do I do that? Use a ServletContextListener. Mark - 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: SessionListener invoked sometimes and not others
whoops, nevermind. stupid question I found out after poking around. dean Dean Hiller wrote: My web app has two servlets. One JSF Faces servlet and another servlet for processing AJAX requests from javascript. I want to know when the app starts and when the app is done. Is the only way to do this is to have a ServletContextListener listening to both those servlets? On the first one, I get resources and on the last one being cleaned up, I destroy the resources. I guess this works. I just wish I had access to the app lifecycle. thanks, dean Mark Thomas wrote: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] So after a restart of tomcat, I login and it appears the session is still valid, so it does not go through my session listener. I need to be aware of the web application lifecycle and want to grab a resource when the webapp starts and release when the web app goes away. How do I do that? Use a ServletContextListener. Mark - 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]
Problem with PNG files and security-constraint
Hello Everyone, Hope everyone is having a great weekend. I'm new at posting to the group but have been watching the serv list for a few years now. I usually can find my answers by googling or searching the archive, but I think I might have run upon something that I have not been able to find yet. I have a welcome page that has 4 .png images on it. I know that IE 5.5 and higher have an issue with displaying .png files if they have transparency enabled, the transparency turns grey. To make IE work correctly there is a JavaScript you can run in your web page and it makes it work. How ever, when I turned on security-constraint,my images would show up for a split second then they would disappear. The spots where they should be would not even work as a link like they are setup to be. If you use Firefox it works fine. It works fine being served up on a windows XP pc with tomcat 5.0.30 and java version 1.5.0_02. I'm using FreeBSD Release 4.10-p2 and tomcat 5.0.30 and have used java 1.5.0-p1 and java 1.4.2-p7 I also noticed in the tomcat log file that during startup there were some error with my servlet that I am using, but have no errors when used in windows. Page two of the PDF starts the error message. All the code and errors can be found at this link http://computingoasis.com/apache/errorlog.pdf If there is anything more that you require I would be more than happy to post what you need. Thank you for your help in advance, Dean Searle - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: filesystem independent tomcat [OT]
Dear Sir or Madam: I am Judge Dean M. Trafelet and your emails are erroronesouly and improperly being sent to my email address. Notice is hereby given that you are to immediately remove me from your emailing. DMT - Original Message - From: George Sexton [EMAIL PROTECTED] To: 'Tomcat Users List' tomcat-user@jakarta.apache.org Sent: Monday, May 02, 2005 10:08 AM Subject: RE: filesystem independent tomcat [OT] You could probably do it, but at the end you wouldn't have a servlet engine. The spec EXPLICITLY states that java.io.tmpdir must be writable. Are you allowing file uploads? Commons-fileupload uses that area for disk file upload. Are you creating PDF output? Some packages use the area for temporary file space. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: sandy kumar [mailto:[EMAIL PROTECTED] Sent: Friday, April 29, 2005 2:56 AM To: Tomcat Users List Subject: filesystem independent tomcat [OT] Hi, I am doing some exploratory work on tomcat and was wondering If anyone has felt the need for tomcat which can be loaded across the network and doesnt rely on the underlying filesystem in anyway including the temporary work directory, logging, catalina_home, catalina_base etc ? Is there any such version already out there? If not, then does it break any servlet/jsp specs ? Thanks for your replies. cheers, sandie Send instant messages to your online friends http://uk.messenger.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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat-user Digest 30 Apr 2005 13:34:46 -0000 Issue 5590
Dear Sir or Madam: I am Judge Dean M. Trafelet and your emails are erroronesouly and improperly being sent to my email address. Notice is hereby given that you are to immediately remove me from your emailing. DMT - Original Message - From: J. W. Ballantine [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Cc: [EMAIL PROTECTED] Sent: Monday, May 02, 2005 10:09 AM Subject: Re: tomcat-user Digest 30 Apr 2005 13:34:46 - Issue 5590 Thanks for that piece of information, but you missed the part of my message that said it also failed the same way if I just configured for mod_jk. Here is the tail of the build with: ./configure --with-apxs=/local/APACHE/Apache2/bin/apxs /bin/bash /local/APACHE/Apache2/build/libtool --silent --mode=compile gcc -I/local/APACHE/Apache2/include -g -O2 -DUSE_APACHE_MD5 -I ../common -I /a2/JAVA/java/include -I /a2/JAVA/java/include/unix -DSOLARIS2=8 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -g -O2 -pthreads -DHAVE_APR -I/a4/APACHE/httpd-2.0.54/srclib/apr/include -g -O2 -g -O2 -pthreads -DSOLARIS2=8 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -c mod_jk.c /bin/bash /local/APACHE/Apache2/build/libtool --silent --mode=link gcc -I/local/APACHE/Apache2/include -g -O2 -DUSE_APACHE_MD5 -I ../common -I /a2/JAVA/java/include -I /a2/JAVA/java/include/unix -DSOLARIS2=8 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -g -O2 -pthreads -DHAVE_APR -I/a4/APACHE/httpd-2.0.54/srclib/apr/include -g -O2 -g -O2 -pthreads -DSOLARIS2=8 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT `/local/APACHE/Apache2/bin/apxs -q LDFLAGS` -o mod_jk.la -module -rpath /local/APACHE/Apache2/modules -avoid-version mod_jk.lo ../common/jk_ajp12_worker.lo ../common/jk_connect.lo ../common/jk_msg_buff.lo ../common/jk_util.lo ../common/jk_ajp13.lo ../common/jk_pool.lo ../common/jk_worker.lo ../common/jk_ajp13_worker.lo ../common/jk_lb_worker.lo ../common/jk_sockbuf.lo ../common/jk_map.lo ../common/jk_uri_worker_map.lo ../common/jk_ajp14.lo ../common/jk_ajp14_worker.lo ../common/jk_md5.lo ../common/jk_shm.lo ../common/jk_ajp_common.lo ../common/jk_context.lo ../common/jk_status.lo /bin/bash /local/APACHE/Apache2/build/libtool --silent --mode=install cp `pwd`/mod_jk.so libtool: install: you must specify a destination Try `libtool --help --mode=install' for more information. *** Error code 1 make: Fatal error: Command failed for target `mod_jk.so' Current working directory /a4/TOMCAT/jakarta-tomcat-connectors-1.2.11-src/jk/n ative/apache-2.0 *** Error code 1 make: Fatal error: Command failed for target `all-recursive' Message-ID: [EMAIL PROTECTED] Date: Fri, 29 Apr 2005 21:00:50 +0200 From: Mladen Turk [EMAIL PROTECTED] MIME-Version: 1.0 To: Tomcat Users List tomcat-user@jakarta.apache.org Subject: Re: mod_jk 1.2.11 build failure on solaris 2.8 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit J. W. Ballantine wrote: I'm trying to build mod_jk 1.2.11 on a solaris 2.8 system and it fails with: The configuration command is: ./configure --with-apxs=/local/APACHE/Apache2/bin/apxs --enable-jni --with-java-home=/a2/JAVA/java --with-java-platform=2 jni will not work anyhow on any unix system. It can work in theory only for WIN32 on Netware, so just use: ./configure --with-apxs=/local/APACHE/Apache2/bin/apxs Regards, Mladen. - 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: Digester / vector usage
Dear Sir or Madam: I am Judge Dean M. Trafelet. Your emails are improperly being sent to my email address. Please remove me from you list immediately. DMT - Original Message - From: Henrique, Manuel [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Monday, May 02, 2005 10:12 AM Subject: Digester / vector usage Hello all, It made now 2 weeks that I have a little issue with the XML parsing. I use examples founds in the net. My question is very simple, if I have for example an XML file like that: catalog library=somewhere book authorAuthor 1/author titleTitle 1/title /book book authorAuthor 2/author titleHis One Book/title /book magazine nameMag Title 1/name article page=5 headlineSome Headline/headline /article article page=9 headlineAnother Headline/headline /article /magazine book authorAuthor 2/author titleHis Other Book/title /book magazine nameMag Title 2/name article page=17 headlineSecond Headline/headline /article /magazine /catalog I have the catalog.class: package com.erdv.logicacmg.control; import java.util.Vector; public class Catalog { private Vector books; private Vector magazines; //constructeur de catalog public Catalog() { books = new Vector(); magazines = new Vector(); } //gestion des livres public void addBook(Book newBook) { books.addElement(newBook); } public void setBooks(Vector books){ this.books = books; } public Vector getBooks(){ return books; } //gestion des magazines public void addMagazine(Magazine newMagazine) { magazines.addElement(newMagazine); } public void setMagazines(Vector magazines){ this.magazines = magazines; } public Vector getMagazines(){ return magazines; } } book class: package com.erdv.logicacmg.control; public class Book { private String author; private String title; public Book() {} public void setAuthor(String newAuthor) {author = newAuthor;} public void setTitle(String newTitle) {title = newTitle;} public String getAuthor(){ return author; } public string getTitle(){ return title; } } the magazine class: package com.erdv.logicacmg.control; import java.util.Vector; public class Magazine { private String name; private Vector articles; public Magazine() { articles = new Vector(); } public void setName(String newName) {name = newName;} public String getName(){ return name; } public void addArticle(Article a) { articles.addElement(a); } public void setArticles(Vector articles){ this.articles = articles; } public Vector getArticles(){ return articles; } } and so on... I have also a digester class that create the rules and parse the file as I want. All is ok into the log file. It indicates no issue. Now what I what is to get my values from my java code. I dont know how to do. I search help with the vector usage but nothing helps me to get my values. For example: in a java code how can I get the Headline value for the magazine called Mag 1 for the article page 5. I tried in my java code to create a c as new catalog and after? How can I do. In all examples they uses Vectors but nobody explains how to do after. What it seems is that everybody talks about parsing, about digester but nobody gives how to get the wanted value from the XML. Each time I ask to someone always the same answers digest.parse(), now catch your object and it's finished. Yes, it's exactly what I want but how can I do?? Could somebody help me please? Regards, Manuel PS: I know I am a newbee in Tomcat/Java so no need to mock at me. This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform 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: Apache access log timestamp issue
Dear Sir or Madam: I am Judge Dean M. Trafelet. Your emails are improperly being sent to my email address. Please remove me from you list immediately. DMT - Original Message - From: Simon Zeng [EMAIL PROTECTED] To: 'Tomcat Users List' tomcat-user@jakarta.apache.org Sent: Monday, May 02, 2005 10:18 AM Subject: Apache access log timestamp issue Hi all, I have a question about what timestamp means in access.log files. It says it's the time when apache server finish process the request from the client in the online document. However I found the following entries in the access.log: xxx.xxx.xxx.xxx [01/May/2005:11:41:45 -0400] GET ... xxx.xxx.xxx.xxx [01/May/2005:11:41:52 -0400] POST ... xxx.xxx.xxx.xxx [01/May/2005:11:41:52 -0400] GET ... xxx.xxx.xxx.xxx [01/May/2005:11:41:52 -0400] GET /javascript/xxx.js HTTP/1.1 200 1283 http://www.xxx.com; Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; Win 9x 4.90; FunWebProducts; Hotbar 4.6.1) xxx.xxx.xxx.xxx [01/May/2005:11:37:34 -0400] POST /bin-java/appletProcessingServlet HTTP/1.1 200 87 - Java1.3.1 The last timestamp is about 4-5 mins later than its previous one. And wheneverI find this kind of delay entry, there is a EOFException thrown from the servlet that is trying to read data from the from Applet. Here is the web server settings. OS: Windows NT Apache 2.0.47 mod_jk 1.2.6 Tomcat 4.1 http.conf Timeout 300 KeepAlive on KeepAliveTimeout 15 server.xml Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=1234 minProcessors=5 maxProcessors=75 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler connectionTimeout=0 acceptCount=10 debug=0/ Server JRE version 1.4.1 Client JRE version 1.3.1 Does anyone know what may cause this problem? Thanks, Michael - 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: Client Authentication
Dear Sir or Madam: I am Judge Dean M. Trafelet. Your emails are improperly being sent to my email address. Please remove me from you list immediately. DMT - Original Message - From: lercoli [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Monday, May 02, 2005 10:31 AM Subject: Re: Client Authentication You should import only client.p12 certificate in IE browser and when IE asks you in which folder you want to put it select Personal Folder. I hope it helps you. Luca Ercoli - Original Message - From: Mahesh S Kudva [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Monday, May 02, 2005 5:08 PM Subject: Client Authentication Dear All I've been able to setup Tomcat 5.0.30 successfully on port 8443. I want to use client authentication. Hence i've enabled clientAuth=true in server.xml Running on Mac OS X these were the commands to create a CA and sign a certificate using this CA. Creating a new CA: 1) perl CA.pl -newca Certificate request using openssl: 1) perl CA.pl -newreq 2) perl CA.pl -sign 3) mv newreq.pem client_req.pem 4) mv newcert.pem client_cert.pem 5) openssl rsa client_req.pem client_key.pem 6) openssl pkcs12 -export -in client_cert.pem -inkey client_key.pem -out client.p12 For Tomcat using Java keytool to request certificate: 1) openssl x509 -in server_cert.pem -out server.x509 2) openssl pkcs12 -export -in server_cert.pem -inkey server_key.pem -out server.p12 3) keytool -genkey -alias meAsClient -storepass changeit 4) keytool -certreq -alias measclient -file client.csr -storepass changeit 5) openssl x509 -req -CA demoCA/cacert.pem -CAkey demoCA/private/cakey.pem -extensions v3_ca -in client.csr -inform DER -out client_cert.x509 -CAcreateserial 6) keytool -import -alias butterflyCA -keystore /Syst.. ..urity/cacerts -file ../CA/demoCA/cacert.pem 7) keytool -import -alias measclient -keystore clientstore -trustcacerts -file client_cert.x509 Following these commands I dont get any errors. I then import the cacert.pem, the ROOT CA certificate and the client.p12 and client_cert.x509 to the browser I.E 6.0. But still there is a popup requesting for the clients identity and it asks me to select a certificate and no certificates are displayed. How can I go about this? All suggestion and ideas are welcome. Regards Thanks Mahesh S Kudva --- Robosoft Technologies - Partners in Product Development - 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 j2sdk and image
Dear Sir or Madam: I am Judge Dean M. Trafelet. Your emails are improperly being sent to my email address. Please remove me from you list immediately. DMT - Original Message - From: [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Monday, May 02, 2005 10:33 AM Subject: Tomcat j2sdk and image Hi, I have a java application who generate image. On Sun Solaris 8, It works fine with Tomcat-4.0.4 and jdk-1.3.1 It was the same with Tomcat-4.1.18 and jdk-1.4.1 But when I use Tomcat-4.1.30 with jdk-1.4.2 or Tomcat-5.0.28 with jdk-1.4.1 or jdk-1.4.2, the image make a long time to be generating. What is the problem ? Can somebody help me ? AL - 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 access log timestamp issue
This is Judge Dean M. Trafelet. Your emails are improperly being sent to my email address. Remove immediately. DMT - Original Message - From: Simon Zeng [EMAIL PROTECTED] To: 'Tomcat Users List' tomcat-user@jakarta.apache.org Sent: Monday, May 02, 2005 10:18 AM Subject: Apache access log timestamp issue Hi all, I have a question about what timestamp means in access.log files. It says it's the time when apache server finish process the request from the client in the online document. However I found the following entries in the access.log: xxx.xxx.xxx.xxx [01/May/2005:11:41:45 -0400] GET ... xxx.xxx.xxx.xxx [01/May/2005:11:41:52 -0400] POST ... xxx.xxx.xxx.xxx [01/May/2005:11:41:52 -0400] GET ... xxx.xxx.xxx.xxx [01/May/2005:11:41:52 -0400] GET /javascript/xxx.js HTTP/1.1 200 1283 http://www.xxx.com; Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; Win 9x 4.90; FunWebProducts; Hotbar 4.6.1) xxx.xxx.xxx.xxx [01/May/2005:11:37:34 -0400] POST /bin-java/appletProcessingServlet HTTP/1.1 200 87 - Java1.3.1 The last timestamp is about 4-5 mins later than its previous one. And wheneverI find this kind of delay entry, there is a EOFException thrown from the servlet that is trying to read data from the from Applet. Here is the web server settings. OS: Windows NT Apache 2.0.47 mod_jk 1.2.6 Tomcat 4.1 http.conf Timeout 300 KeepAlive on KeepAliveTimeout 15 server.xml Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=1234 minProcessors=5 maxProcessors=75 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler connectionTimeout=0 acceptCount=10 debug=0/ Server JRE version 1.4.1 Client JRE version 1.3.1 Does anyone know what may cause this problem? Thanks, Michael - 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 j2sdk and image
This is Judge Dean M. Trafelet. Your emails are incorrectly and improperly being sent to my email address. Remove and correct immediately. DMT - Original Message - From: Dale, Matt [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Monday, May 02, 2005 10:57 AM Subject: RE: Tomcat j2sdk and image I'd be surprised if anyone could with the scant information you have provided. You haven't even mentioned the image library that you are using. I would suggest that you get a profiler or debugger in order to work out what your code is doing at the time that it is generating the image and which methods are taking all the time. Ta Matt -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 02 May 2005 16:33 To: tomcat-user@jakarta.apache.org Subject: Tomcat j2sdk and image Hi, I have a java application who generate image. On Sun Solaris 8, It works fine with Tomcat-4.0.4 and jdk-1.3.1 It was the same with Tomcat-4.1.18 and jdk-1.4.1 But when I use Tomcat-4.1.30 with jdk-1.4.2 or Tomcat-5.0.28 with jdk-1.4.1 or jdk-1.4.2, the image make a long time to be generating. What is the problem ? Can somebody help me ? AL - 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 crashes with no trace?
This is Judge Dean M. Trafelet. Your emails are improperly and incorrectly being send to my email address. Remove my address immediately. DMT - Original Message - From: Guy Katz [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Monday, May 02, 2005 11:11 AM Subject: tomcat crashes with no trace? hi; i have been getting very wierd behavior from tomcat 5.0.30 lately. i have 3 applications deployed on it. the OS is freeBSD. tomcat just crashes with no trace, log or proper shutdown - its like someone pulled the power plug. i am desperate and dont know how to attack this issue. any suggestions would be great. - 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 j2sdk and image
You have reached Judge Dean M. Trafelet without authority. Remove me from you email address. DMT - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Monday, May 02, 2005 12:09 PM Subject: Re: Tomcat j2sdk and image Hi, The program java use : java.awt.Frame; java.awt.Graphics; java.awt.Image; and Acme.JPM.encoders.GifEncoders who encode image in Gif. N.B. : the application works fine on W2K with Tomcat-4.0.4 using jdk-1.3.1, and Tomcat-4.1.30 and Tomcat-5.0.28 with jdk-1.4.2 Dale, Matt a écrit : I'd be surprised if anyone could with the scant information you have provided. You haven't even mentioned the image library that you are using. I would suggest that you get a profiler or debugger in order to work out what your code is doing at the time that it is generating the image and which methods are taking all the time. Ta Matt -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 02 May 2005 16:33 To: tomcat-user@jakarta.apache.org Subject: Tomcat j2sdk and image Hi, I have a java application who generate image. On Sun Solaris 8, It works fine with Tomcat-4.0.4 and jdk-1.3.1 It was the same with Tomcat-4.1.18 and jdk-1.4.1 But when I use Tomcat-4.1.30 with jdk-1.4.2 or Tomcat-5.0.28 with jdk-1.4.1 or jdk-1.4.2, the image make a long time to be generating. What is the problem ? Can somebody help me ? AL - 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: Client Authentication
You have reached Judge Dean M. Trafelet without authorization. Remove me from your email list immediately. - Original Message - From: Mahesh S Kudva [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Monday, May 02, 2005 12:34 PM Subject: Re: Client Authentication Hi I tried with client.p12 first, when i failed I went on with client_cert.x509. I placed it in the personal folder ... Regards Thanks Mahesh S Kudva -Original Message- From: lercoli [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Date: Mon, 2 May 2005 17:31:54 +0200 Subject: Re: Client Authentication You should import only client.p12 certificate in IE browser and when IE asks you in which folder you want to put it select Personal Folder. I hope it helps you. Luca Ercoli - Original Message - From: Mahesh S Kudva [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Monday, May 02, 2005 5:08 PM Subject: Client Authentication Dear All I've been able to setup Tomcat 5.0.30 successfully on port 8443. I want to use client authentication. Hence i've enabled clientAuth=true in server.xml Running on Mac OS X these were the commands to create a CA and sign a certificate using this CA. Creating a new CA: 1) perl CA.pl -newca Certificate request using openssl: 1) perl CA.pl -newreq 2) perl CA.pl -sign 3) mv newreq.pem client_req.pem 4) mv newcert.pem client_cert.pem 5) openssl rsa client_req.pem client_key.pem 6) openssl pkcs12 -export -in client_cert.pem -inkey client_key.pem -out client.p12 For Tomcat using Java keytool to request certificate: 1) openssl x509 -in server_cert.pem -out server.x509 2) openssl pkcs12 -export -in server_cert.pem -inkey server_key.pem -out server.p12 3) keytool -genkey -alias meAsClient -storepass changeit 4) keytool -certreq -alias measclient -file client.csr -storepass changeit 5) openssl x509 -req -CA demoCA/cacert.pem -CAkey demoCA/private/cakey.pem -extensions v3_ca -in client.csr -inform DER -out client_cert.x509 -CAcreateserial 6) keytool -import -alias butterflyCA -keystore /Syst.. ..urity/cacerts -file ../CA/demoCA/cacert.pem 7) keytool -import -alias measclient -keystore clientstore -trustcacerts -file client_cert.x509 Following these commands I dont get any errors. I then import the cacert.pem, the ROOT CA certificate and the client.p12 and client_cert.x509 to the browser I.E 6.0. But still there is a popup requesting for the clients identity and it asks me to select a certificate and no certificates are displayed. How can I go about this? All suggestion and ideas are welcome. Regards Thanks Mahesh S Kudva --- Robosoft Technologies - Partners in Product Development - 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] --- Robosoft Technologies - Partners in Product Development - 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: Removal from List
Thanks. DMT - Original Message - From: Parsons Technical Services [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Monday, May 02, 2005 1:41 PM Subject: Removal from List Dear Sir, I am a user of the Tomcat List and noticed a large number of emails from you. It appears that someone subscribed you to the list and you inadvertently confirmed the subscription or someone has access to your email. As an IT person who deals with security I recommend you have someone check your security and that you scan your system and that you change all of your passwords. As for the List subscription, if you will look at the bottom of the emails you will see a link where you can send an email to unsubscribe yourself. As this list is staffed by volunteers and the person with the access needed to remove you may not get you request for several days, this would be your best course of action. If after attempting this you are unable to unsubscribe, please post to the list explaining you have tried to unsubscribe and have been unsuccessful. At that point as soon as a person with the needed access gets your message they can assist you in removing your email from the list. As a user of this list it is always a concern when someone wants off the list and is unable to do so. As this reflects poorly on the List even though it is out of the lists control that you were subscribed in the first place. Doug Parsons Tomcat User - 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, Java 1.4.2_06, SSL randonmly crashing
If anyone can help on this, it'd be hugely appreciated. I'm unable to find much through Google, although am planning to spend the day looking. Previously, I had hardware doing https:// security, and then passing to Tomcat, which handles http:// requests quite nicely. Now, I have Tomcat handing https:// directly. https:// seems to stall/lock occasionally under reasonable load. Hitting the same exact page in http:// seems to work fine. This is in a production environment, and it has crashed every few hours since moving to https://. Help? Any suggestions as to what I'm doing wrong? Thanks! Dean Jackson j2sdk1.4.2_06 jakarta-tomcat-4.1.18 Server.xml exerpt: Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=80 minProcessors=5 maxProcessors=150 enableLookups=true redirectPort=443 acceptCount=100 debug=0 connectionTimeout=12 useURIValidationHack=false disableUploadTimeout=true compression=4096 / Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=443 minProcessors=5 maxProcessors=150 enableLookups=true connectionTimeout=18 acceptCount=100 debug=0 scheme=https secure=true useURIValidationHack=false disableUploadTimeout=true compression=4096 Factory className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory clientAuth=false protocol=TLS / /Connector - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: bug in 4.1.30?? PageContextImpl hides exception cause
never mind. This is fixed in tomcat 5. thanks, dean - Original Message - From: Dean Hiller [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, October 09, 2004 11:07 PM Subject: bug in 4.1.30?? PageContextImpl hides exception cause In 4.1.30, In PageContextImpl, I see this code (should I post this on the dev list instead) 525 if (t instanceof IOException) throw (IOException)t; 526 if (t instanceof ServletException) throw (ServletException)t; 527if (t instanceof RuntimeException) throw (RuntimeException)t; 528if (t instanceof JspException) { 529Throwable rootCause = ((JspException)t).getRootCause(); 530if (rootCause != null) { 531throw new ServletException(t.getMessage(), rootCause); 532} else { 533throw new ServletException(t); 534} 535} 536 throw new ServletException(t); 537 } 538} Notice on line 533, the root cause is correctly chained. Unfortunately, when the exceptions print out, t is not printed and I don't know what really happened. This is quite annoying. It takes 27 steps to build tomcat 4.1.30 so I wasn't quite interested in investigating further. If it took 3, I would probably be posting a fix because I would know more by now. thanks for any help here, The full exception chain is shown below. It is obvious there is an exception missing from this stack trace from looking at the code of JspServletWrapper and PageContextImpl dean org.apache.jasper.JasperException: Cannot find message resources under key org.apache.struts.action.MESSAGE at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 54) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) 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:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:700) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:683) at java.lang.Thread.run(Thread.java:534) root cause(well, tomcat claims it is, but there really is one more exception that caused this one)javax.servlet.ServletException: Cannot find message resources under key org.apache.struts.action.MESSAGE at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp l.java:533) at org.apache.jsp.index_jsp._jspService(index_jsp.java:95) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853
bug in 4.1.30?? PageContextImpl hides exception cause
In 4.1.30, In PageContextImpl, I see this code (should I post this on the dev list instead) 525 if (t instanceof IOException) throw (IOException)t; 526 if (t instanceof ServletException) throw (ServletException)t; 527if (t instanceof RuntimeException) throw (RuntimeException)t; 528if (t instanceof JspException) { 529Throwable rootCause = ((JspException)t).getRootCause(); 530if (rootCause != null) { 531throw new ServletException(t.getMessage(), rootCause); 532} else { 533throw new ServletException(t); 534} 535} 536 throw new ServletException(t); 537 } 538} Notice on line 533, the root cause is correctly chained. Unfortunately, when the exceptions print out, t is not printed and I don't know what really happened. This is quite annoying. It takes 27 steps to build tomcat 4.1.30 so I wasn't quite interested in investigating further. If it took 3, I would probably be posting a fix because I would know more by now. thanks for any help here, The full exception chain is shown below. It is obvious there is an exception missing from this stack trace from looking at the code of JspServletWrapper and PageContextImpl dean org.apache.jasper.JasperException: Cannot find message resources under key org.apache.struts.action.MESSAGE at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534) root cause(well, tomcat claims it is, but there really is one more exception that caused this one)javax.servlet.ServletException: Cannot find message resources under key org.apache.struts.action.MESSAGE at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:533) at org.apache.jsp.index_jsp._jspService(index_jsp.java:95) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137
Re: displaying JSP output through servlet
David, I'm not sure what you are trying to do but if you're just trying to do MVC then you might want to use struts and tiles. It works well for me. I also occasionally have a need for custom jsp tags, so I learned how to do that too. Hope this helps. Dean Hoover David Aleksanyan wrote: I'm trying to design an app in a way that all requests will have to go through a servlet. e.g. http://localhost:8080/myservlet?somestring But I want to make use of the JSP technology. So I'm thinking that I'll have to somehow include the JSP compiled classes into the servlet. and somehow put the output of the JSP into the response of the servlet. My question is - is this possible? and how do I do it? Any examples would help. Thanks, David Aleksanyan P.S. This is my first post, I hope it is to the point and it hasn't been answered before, otherwise - please tell me so. - 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]
deploying via ant, mutiple virtual hosts apache/tomcat
I have a named virtual host in apache that uses mod_jk to communicate with tomcat. I use ant/manager to deploy from my development area, and everything works great. Now I've added another named virtual host to apache and a new worker for the tomcat connection. This works great too, but not for deployment. How can I get tomcat manager to differentiate between these applications, since both of them are ROOT under different directories. When I run manager through HTML, I just see /. I can deploy my war by hand and restart tomcat, but that is a pain. Any ideas? Dean Hoover - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
multiple virtual apache hosts
I have a website I have been working on for quite some time now. I use apache as the front end, and to serve static stuff. I use mod_jk to connect to tomcat 5. I develop in one area and use ant to deploy the entire app. On disk the /home/foo/ROOT directory is mapped to / for foo.com. This all works nicely. Now I want to set up a virtual host in apache to do the same thing (map /home/bar/ROOT to / for bar.com). The apache setup is done and works. What I don't understand is how to get tomcat manager to be able to deploy (via ant) / for 2 different domains. Can someone point me to an example? Thanks. Dean Hoover - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HTTP header for dynamic pdf and IE6
Mark Lowe wrote: I've seen this before ;o) Try appending .pdf to the actual request. /myapp/pdfgen.do;iehack=.pdf That's not what seems to matter. If I change Content-Type from attachment to inline, the document opens OK in Acrobat Reader but the Open/Save dialog does not come up. As I stated in my email, the developers of Yahoo mail have somehow pulled off a hack that works as expected, I just can't seem to figure out how to replicate it. I've seen this used in teh xplanner project. Mark On 5 Jun 2004, at 11:52, Dean A. Hoover wrote: I have a java web application that allows an end-user in their browser to download a file, which happens to be bytes stored in a database. In experimenting with how to do this, I have this snippet of code in my servlet: AttachmentListItem attachment = EmailSQL.getAttachmentListItem(connection, 3, 1); response.setContentType(attachment.getContentType()); byte[] data = EmailSQL.getAttachmentBytes(connection, 3, 1); response.setContentLength(data.length); response.setHeader(Content-Disposition, attachment; filename=\ + attachment.getFileName() + \); ServletOutputStream out = response.getOutputStream(); out.write(data); out.flush(); out.close(); To test this out, I hit the link in my IE browser which brings up a dialog box allowing me to Open or Save the file. If I save the file, it does the right thing. If I press the open button, Acrobat Reader opens up and then errors out with an alert box: There was an error opening the document. The file does not exist. I have a yahoo email account that I tried a test on. I sent an email message with the same pdf file attached to that account. I wanted to see if yahoo figured out how to make this work. They did! (but I can't figure out how to replicate) Their header looks like this: Date: Thu, 03 Jun 2004 15:37:58 GMT P3P: policyref=http://p3p.yahoo.com/w3c/p3p.xml;, CP=CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE GOV Content-Disposition: attachment; filename=reference.pdf Connection: close Transfer-Encoding: chunked Content-Type: application/pdf; filename=foo.bar .s4g--v=1 There is also some other stuff I am seeing just after the header: .s4g-v=1 which looks something like a query string, but I'm not sure. My header looks like this: HTTP/1.1 200 OK Date: Thu, 03 Jun 2004 15:35:15 GMT Server: Apache/2.0.40 (Red Hat Linux) mod_perl/1.99_07-dev Perl/v5.8.0 mod_jk/1.2.5 PHP/4.2.2 mod_python/3.0.1 Python/2.2.2 mod_ssl/2.0.40 OpenSSL/0.9.7a Set-Cookie: JSESSIONID=DD3D0938B780EEBEBDC1B558CCBAD095; Path=/ Pragma: No-cache Cache-Control: no-cache Expires: Thu, 01 Jan 1970 00:00:00 GMT Content-Disposition: attachment; filename=reference.pdf Content-Length: 214982 Keep-Alive: timeout=15, max=100 Connection: Keep-Alive Content-Type: application/pdf;charset=UTF-8 Does anyone know how to work around this problem? I suppose there are actually 2 parts to this: 1) What is the magic in the HTTP header that allows this to work? 2) How can one create such a header in java? Thanks. Dean Hoover - 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]
HTTP header for dynamic pdf and IE6
I have a java web application that allows an end-user in their browser to download a file, which happens to be bytes stored in a database. In experimenting with how to do this, I have this snippet of code in my servlet: AttachmentListItem attachment = EmailSQL.getAttachmentListItem(connection, 3, 1); response.setContentType(attachment.getContentType()); byte[] data = EmailSQL.getAttachmentBytes(connection, 3, 1); response.setContentLength(data.length); response.setHeader(Content-Disposition, attachment; filename=\ + attachment.getFileName() + \); ServletOutputStream out = response.getOutputStream(); out.write(data); out.flush(); out.close(); To test this out, I hit the link in my IE browser which brings up a dialog box allowing me to Open or Save the file. If I save the file, it does the right thing. If I press the open button, Acrobat Reader opens up and then errors out with an alert box: There was an error opening the document. The file does not exist. I have a yahoo email account that I tried a test on. I sent an email message with the same pdf file attached to that account. I wanted to see if yahoo figured out how to make this work. They did! (but I can't figure out how to replicate) Their header looks like this: Date: Thu, 03 Jun 2004 15:37:58 GMT P3P: policyref=http://p3p.yahoo.com/w3c/p3p.xml;, CP=CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE GOV Content-Disposition: attachment; filename=reference.pdf Connection: close Transfer-Encoding: chunked Content-Type: application/pdf; filename=foo.bar .s4g--v=1 There is also some other stuff I am seeing just after the header: .s4g-v=1 which looks something like a query string, but I'm not sure. My header looks like this: HTTP/1.1 200 OK Date: Thu, 03 Jun 2004 15:35:15 GMT Server: Apache/2.0.40 (Red Hat Linux) mod_perl/1.99_07-dev Perl/v5.8.0 mod_jk/1.2.5 PHP/4.2.2 mod_python/3.0.1 Python/2.2.2 mod_ssl/2.0.40 OpenSSL/0.9.7a Set-Cookie: JSESSIONID=DD3D0938B780EEBEBDC1B558CCBAD095; Path=/ Pragma: No-cache Cache-Control: no-cache Expires: Thu, 01 Jan 1970 00:00:00 GMT Content-Disposition: attachment; filename=reference.pdf Content-Length: 214982 Keep-Alive: timeout=15, max=100 Connection: Keep-Alive Content-Type: application/pdf;charset=UTF-8 Does anyone know how to work around this problem? I suppose there are actually 2 parts to this: 1) What is the magic in the HTTP header that allows this to work? 2) How can one create such a header in java? Thanks. Dean Hoover - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Virtual Host, Locations and Mod_JK2
I have found that if you do the following it works for me: Location /*.jsp JkUriSet worker ajp13:localhost:28009 /Location Hope that this helps, I have found that by doing this I can redirect any file type to be handled by Tomcat. Dean -Original Message- From: Alexander F. Hartner [mailto:[EMAIL PROTECTED] Sent: Tue 4/13/2004 4:23 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Virtual Host, Locations and Mod_JK2 I host several websites on my apache2 (2.0.49) using virtual hosts. One of the hosts I would like to forward fully to a web application deployed on tomat via Mod_JK. What I have done is the following: Installed the webapplication in tomcat's root / context Configured a worker in workers2.properties Configured a virutal host on apache2 VirtualHost 196.22.194.227 ServerAdmin [EMAIL PROTECTED] DocumentRoot /home/www/solms.co.za/ ServerName www.solms.co.za ServerAlias solms.co.za *.solms.co.za solmstraining.co.za *.solmstraining.co.za ErrorLog logs/solms.co.za-error_log CustomLog logs/solms.co.za-access_log combined Location / JkUriSet worker ajp13:localhost:28009 /Location /VirtualHost Everything is working, except the Location directive spans all my other virtual hosts as well. A request to any of the virtual hosts is redirected to /index.jsp, which I guess comes from my web application's deployment descriptor. Direct requests to otherhost.com/index.html are still processed by apache correctly, but general request to otherhost.com are redirected to otherhost.com/index.jsp. Ugly solution: What I have done in the mean time is to either -create index.jsp files which are typically copies of the index.html -modify the webapplication to redirect to index.html I should not have to do this as the location should only work for the virtual host in which it is configured. Any suggestions welcome Alex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Securing a folder
Hello Everyone, Not to sure how to phrase this but here I go anyways. I am attempting to secure a folder that is located within my application. This folder contains pdf's that only need to be accessible by tomcat, the site requires a password to enter. At first if I did www.domain.com/pdfs/somefile.pdf it would open up somefile.pdf. So I tried this in my http.conf file for the website: Location /pdfs order deny,allow deny from all allow from 127.0.0.1 /Location But now tomcat cannot even retrieve the pdf's. Am I doing this right. Could you please point me to some doc's that might explain this more. Not sure if this helps or not: Windows 2000 Server SP4 Tomcat 4.1.24 LE Apache 2.0.46 JDK 1.4.1_02 Thank you for time Dean - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat configuration
If you want Tomcat to start as a service in Windows 2k you can use this program by Davis Boyer called Tomcat Service Manager at http://web.bvu.edu/staff/david/index.jsp?section=softwaresubsection=tcservcfgpage=overview I use this for both Tomcat 4.1 and Tomcat 5. This utility also let you set the heap size also. Hope this helps. Dean -Original Message- From: Adam Brundrett [mailto:[EMAIL PROTECTED] Sent: Wed 3/24/2004 9:59 AM To: Tomcat Users List Subject: Re: Tomcat configuration Hmm...not sure on Windows but on unix you set an environment variable called CATALINA_OPTS. Set the Xmx and Xms parameters to the amount of memory you want to dedicate to the heap. On our web server where we have 2GB ram I have: CATALINA_OPTS=-Xms=750m -Xmx=750m Tomcat then picks up this memory option when it fires up. Reis, Tom wrote: I am running Tomcat 4.03 on a windows 2K server with JDK1.3.1. I am confused on configuration and was hoping someone could clarify or point to documentation on it. I am confused on memory configuration do I change the memory configuration for java or for Tomcat. I am also not sure how to change the heap size. Do I put a statement in the server.xml or is it something else. Is there documentation that tells you how to configure Tomcat. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- *** Adam Brundrett DBA/Software Engineer MLC Development Medical Research Council Harwell Oxon. OX11 0RD Email: [EMAIL PROTECTED] Tel: +44(0)1235 841253 *** - 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]
No error message when welcome page is not present
Hello Group, I am running Apache 2.0.48 and Tomcat 4.1.30 with mod_jk2 connector 2.0.2 all on windows xp. The problem I have is this. I have virtual hosts setup to go to their own folder for their documentroot=/theirfolder. But if I do not have a valid welcome file there, either an index.(htm,jsp) It takes me to tomcat manager page. Without restarting anything I can put a valid file in the folder and site works fine. Where can I shut this off at? I would like to get an error page, since I have directory listing shut off. Would it be in web.xml or server.xml? Thanks in advance, Dean - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Multiple Host (no apache or iis)
What port is tomcat listening to? If you have not changed this then it would be 8080 (I believe) so you would type in a browser http://www.test1-domain.com:8080 and it should bring up your site. To keep from having to enter the port every time, change your server.xml to listen to port 80 instead. 80 is the default http port. Best regards, Dean -Original Message- From: Roland Carlsson [mailto:[EMAIL PROTECTED] Sent: Friday, March 12, 2004 2:24 PM To: Tomcat Users List Subject: Multiple Host (no apache or iis) Hi! I have tried to search for this but all hits seems to be about getting tomcat to work together with apache or iis. I can't figure out why my test1-domain doesn't answer at all. All I gets is a 400-error. What bother me the most is that there is nothing in the catalina.out log that indicats that there are something wrong so I don't even know where to start look. I post the Host-part of my server.xml below. Thanks in advance Roland Carlsson Host name=test1.mydomain.com debug=0 appBase=webapps: unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=test1_access_log. suffix=.txt pattern=combined resolveHosts=false/ Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=test1.log. suffix=.txt timestamp=true/ /Host Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=combined resolveHosts=false/ Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ /Host - 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]
apache 2, tomcat 5, and ROOT application
Tomcat 5 uses ROOT for the root application, and whatever for other applications. For example, I am keeping my content in its own hierarchy: /home/tomcat/mywebsite/webapps/ROOT /home/tomcat/mywebsite/webapps/myapp I want apache to handle static content and tomcat to handle servlet related stuff (jsp, etc). I am wondering how to specify that in httpd.conf. If I set DocumentRoot to /home/mywebsite/webapps/ROOT/ that will work for http://mywebsite.com/ but it will not find myapp. If I set it to /home/mywebsite/webapps/ it can find http://mywebsite.com/myapp, but then I don't know how it can find the ROOT directory. Here's an httpd.conf snippet: #== VirtualHost *:80 ServerAdmin [EMAIL PROTECTED] ServerName www.mywebsite.com ServerAlias mywebsite.com DocumentRoot /home/tomcat/mywebsite.com/webapps/ROOT/ ErrorLog /home/tomcat/mywebsite.com/logs/error_log CustomLog /home/tomcat/mywebsite.com/logs/access_log common # Deny direct access to WEB-INF and META-INF # Location /WEB-INF AllowOverride None deny from all /Location # Location /META-INF AllowOverride None deny from all /Location JkMount /*.jsp mywebsite /VirtualHost #= Any ideas? Dean Hoover - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ant emulation of Upload a WAR file to install
I am using ant 1.6 and tomcat 4.1.29. I have set my webapps directory to someplace other than the usual place. When I use the /manager/html/list application through my browser, I can use the Upload a WAR file to install form to put my war file in the webapps directory, unpack it and run it. This is exactly the behavior I would like to emulate in ant, but I do not see how. I have played around with the install and deploy tasks, but they do not operate the same as the upload form does. How can I do what the form does using ant? Thanks. Dean Hoover - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ant emulation of Upload a WAR file to install
Thanks. I'll give that a try... when does tomcat notice the war file? Adam Hardy wrote: On 02/23/2004 03:04 PM Dean A. Hoover wrote: I am using ant 1.6 and tomcat 4.1.29. I have set my webapps directory to someplace other than the usual place. When I use the /manager/html/list application through my browser, I can use the Upload a WAR file to install form to put my war file in the webapps directory, unpack it and run it. This is exactly the behavior I would like to emulate in ant, but I do not see how. I have played around with the install and deploy tasks, but they do not operate the same as the upload form does. How can I do what the form does using ant? You just need ant to copy the war into your APPBASE directory. Then tomcat will do the rest, assuming that your host (in server.xml) is configured to autoDeploy=true and unpackWARs=true. Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ant emulation of Upload a WAR file to install
Shapira, Yoav wrote: Howdy, This says everything...Excerpt from http://www.devx.com/Java/Article/17908/0/page/4 Tomcat does not detect changes to the WAR archive, so it does not automatically deploy new versions of an application when new WAR files are copied over old ones in the Tomcat deploy directory (except in the case of statically specified Tomcat applications in the server.xml configuration file). Note that: - The DevX article writer would have done well to tell people about the Ant tasks tomcat supplies in order to deploy/undeploy/restart webapps, instead of encouraging people to write their own (possibly buggy, likely incompatible with future tomcat versions) tasks. - The article was written prior to the release of tomcat 5 stable, which contains behavioral changes in this area. Like what? I am using 4.1.29 and ant 1.6. All I want to do is emulate the behavior of the upload war file form in the browser manager. I do not seem to be able to do that with the ant manager tasks that come with 4.1.29. Are there more in 5.0? Yoav Shapira 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]
Apache Tomcat/5.0.19 manager app
I just upgraded from 4.1.29 to 5.0.19. How does tomcat find the manager and admin apps? In the older versions, they used context fragments in the standard webapps directory that effectively pointed to ../server/webapps. I don't see this mechanism in 5.0.19 and want to know how it works. I need this because I am changing Host appBase to another location so that I can keep my apps separate from tomcats home. When I did this under 4.1.x, I simply put a manager.xml file in my webapps directory that pointed to the standard app, with an absolute path. That worked like a charm. I do not know how to do the same thing in 5.x. Any help? Thanks. Dean Hoover - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
deploy with ant over https
I have used ant and tomcat 4.1 manager to deploy to my localhost, and it works just great. On a remote host, I have an apache/tomcat setup with manager only accessible over https. In a browser, I can get to the manager functions without any problem. However, when I try it through ant I get: build.xml:158: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Couldn't find trusted certificate I assume I have to perform some magic on the client side. Does anyone know what that magic is? Regards. Dean Hoover - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
server.xml versioning
I have tomcat 4.1.x running on 2 different machines. I am using the manager application. On one machine, the server.xml file is versioned, such as: server.xml.2004-02-22.09-13-01 on the other server it is not. What enables versioning? Dean Hoover - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
URL Redirect
Hello All, I have a simple, yet allusive question. In Apache and Tomcat you can create Virtual Hosts. Within the Virtual Hosts you can specify different parameters. In Apache httpd.conf I can have the following: VirtualHost 192.168.1.1 ServerName www.domain1.com Redirect permanent / http://www.domain2.com/domain2 /VirtualHost Is there a feature like that in Tomcat, either in the server.xml or web.xml, I'm probably guessing server.xml. Any help is greatly appreciated. Thank you in advanced, Dean - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: workers2.properties syntax
What aspects are you wanting to change and I'll see if I can help explain them. I'm somewhat new to this also, but have spent almost a year decipering and figuring things out. Dean -Original Message- From: Alvaro Seixas [mailto:[EMAIL PROTECTED] Sent: Tue 2/3/2004 3:15 PM To: Tomcat Users List Subject: workers2.properties syntax Hello, I'd like to know if someone knows where I can find any document describing the syntax for workers2.properties different from the one that comes with Tomcat 5. Cause the one that I'm using I copied from this list (and it's working) and there's some aspects I want to change that I have no idea how to do it. Thanks, Alvaro - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: HTTPS with Apache 2.0.48 and Tomcat 5.0.16
Here is part of my httpd.conf for and Apache2, Tomcat 4.1.29 and mod_jk2 setup. This is only for the Virtual host part. Assuming you have everyhting else loading correctly it should work. NameVirtualHost 127.0.0.1:443 NameVirtualHost 127.0.0.1:80 VirtualHost 127.0.0.1:80 ServerName www.domain.com ServerAlias domain.com Redirect permanent / https://www.domain.com /VirtualHost VirtualHost 127.0.0.1:443 ServerName www.domain.com ServerAlias domain.com DocumentRoot z:/tomcattest/webapps ErrorLog z:/tomcattest/logs/domain_error.log CustomLog z:/tomcattest/logs/domain_access.log common SSLEngine On SSLCertificateFile conf/ssl/domain.crt SSLCertificateKeyFile conf/ssl/domain.key.unsecure SSLCACertificateFileconf/ssl/intermediate.crt Location /rvdc SSLRequireSSL /Location Location /domain/WEB-INF/* AllowOverride None deny from all /Location Location /webapps/*.jsp JkUriSet group ajp13:localhost:8109 /Location /VirtualHost The JkMount directives only work for mod_jk. Mod_jk2 requires a whole new set of directives to work. Following is my server.xml and workers2.properties that should help. ***workers2.properties*** # only at beginnin. In production uncomment it out [logger.apache2] level=DEBUG [shm] file=z:/tomcat/logs/jk2.shm size=1048576 # Example socket channel, override port and host. [channel.socket:localhost:8109] port=8109 host=127.0.0.1 [channel.socket:localhost:8110] port=8110 host=127.0.0.1 [channel.socket:localhost:8111] port=8111 host=127.0.0.1 #[channel.jni:jni] #info=The jni channel, used if tomcat is started inprocess [status:] info=Status worker, displays runtime information #[vm:] #info=Parameters used to load a JVM in the server process #JVM=C:\jdk\jre\bin\hotspot\jvm.dll #OPT=-Djava.class.path=Z:/Tomcat/bin/tomcat-jni.jar;Z:/Tomcat/server/lib/commons-logging.jar #OPT=-Dtomcat.home=${TOMCAT_HOME} #OPT=-Dcatalina.home=${TOMCAT_HOME} #OPT=-Xmx128M #OPT=-Djava.compiler=NONE #disabled=0 #[worker1.jni:onStartup] #info=Command to be executed by the VM on startup. This one will start tomcat. #class=org/apache/jk/apr/TomcatStarter #ARG=start #disabled=0 #stdout=Z:/tomcat/logs/stdout.log #stderr=Z:/tomcat/logs/stderr.log #[worker1.jni:onShutdown] #info=Command to be executed by the VM on shutdown. This one will stop tomcat. #class=org/apache/jk/apr/TomcatStarter #ARG=stop #disabled=0 # Define the worker # First Web Application Worker [ajp13:localhost:8109] channel=channel.socket:localhost:8109 # Second Web Application Worker [ajp13:localhost:8110] channel=channel.socket:localhost:8110 # Third Web Application Worker [ajp13:localhost:8111] channel=channel.socket:localhost:8111 Uri mapping [uri:127.0.0.1/*.jsp] worker=ajp13:localhost:8109 [uri:/jkstatus/*] info=Display status information and checks the config file for changes. worker=status:status [uri:www.domain.com/*.jsp] group=ajp13:localhost:8109 ***server.xml*** ***This is the only section you need to make sure is enabled. Leave everything else alone. Note: the port designated here might be different than yours. You can use any port you want here as long as you use the same port in the httpd.conf and the workers2.properties file. !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8109 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ ***I hope that this helps you out.*** Dean -Original Message- From: Oscar Carrillo [mailto:[EMAIL PROTECTED] Sent: Mon 2/2/2004 4:04 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: HTTPS with Apache 2.0.48 and Tomcat 5.0.16 Hi, The JkMount directives tell Apache to pass these request thru the Connector to Tomcat. I do this very same thing for jWebMail, cause I don't want it accessible thru http, only https. Here's my ssl.conf config section for it: -- VirtualHost _default_:443 #Other stuff about your ssl host #Webmail # Static files Alias /webmail /usr/local/tomcat/webapps/webmail Directory /usr/local/tomcat/webapps/webmail Options Indexes FollowSymLinks DirectoryIndex index.jsp /Directory Location /webmail/META-INF/* AllowOverride None deny from all /Location Location /webmail/WEB-INF/* AllowOverride None deny from all /Location JkMount /webmail/do/* ajp13 JkMount /webmail/*.jsp ajp13 JkMount /webmail/WebMail ajp13 JkMount /webmail/WebMail
Re: apache + tomcat virtual hostnames
OK, I am answering my own question here... The trick is to set: UseCanonicalName on in httpd.conf Dean A. Hoover wrote: I am using apache 2 and tomcat 4.1 connected with mod_jk. I have multiple virtual named hosts in the httpd.conf file, such as: VirtualHost *:80 ServerName www.myserver.com ServerAlias myserver.com ... set up so that apache serves up the static content, and tomcat will handle the servlet stuff. In my server.xml file I set the attribute name to www.myserver.com in the Host tagset. This works fine if I hit http://www.myserver.com but not for http://myserver.com. Apache handles both the same, but not tomcat. Is there something like ServerAlias in tomcat? Dean - 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]
apache + tomcat virtual hostnames
I am using apache 2 and tomcat 4.1 connected with mod_jk. I have multiple virtual named hosts in the httpd.conf file, such as: VirtualHost *:80 ServerName www.myserver.com ServerAlias myserver.com ... set up so that apache serves up the static content, and tomcat will handle the servlet stuff. In my server.xml file I set the attribute name to www.myserver.com in the Host tagset. This works fine if I hit http://www.myserver.com but not for http://myserver.com. Apache handles both the same, but not tomcat. Is there something like ServerAlias in tomcat? Dean - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Requiring SSL for web sites
Hello to Everyone. I am trying to get SSL to run on a standalone version of Tomcat 4.1. I can import certificate into the keystore and I can get to https:\\localhost with no problems (I specified port 443 for the SSL config). But what I was wondering is how do I set a requirement that certain folders use SSL only. Because I can get to http:\\localhost (as an example) also with no problem. Any help would be greatly appreciated. Dean Searle - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Requiring SSL for web sites
Sorry for the bother I found the answer I was looking for further down in previous posts, but thanks anyways. Dean -Original Message- From: Dean Searle [mailto:[EMAIL PROTECTED] Sent: Thu 1/29/2004 1:13 PM To: Tomcat Users List Subject: Requiring SSL for web sites Hello to Everyone. I am trying to get SSL to run on a standalone version of Tomcat 4.1. I can import certificate into the keystore and I can get to https:\\localhost with no problems (I specified port 443 for the SSL config). But what I was wondering is how do I set a requirement that certain folders use SSL only. Because I can get to http:\\localhost (as an example) also with no problem. Any help would be greatly appreciated. Dean Searle - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
http, https, shared, and deployment
Suppose I want to create a website that has some dynamic content (served by tomcat) and some static content (served by apache). Also suppose that some of the pages on my website need to be https and some of the pages need to be http. Some stuff is shared (both http and https), like the logo GIF and css files. I have figured a way to do this by hand, and am interested in comments on this approach. I am also interested in how one would go about deploying such a website, using ant. Maybe some more ideas on directory layout, if you have any. Thanks. Dean Hoover Here's what I am currently doing by hand (foo.com is obviously fictituous): httpd.conf: ... #-- VirtualHost *:80 ServerAdmin [EMAIL PROTECTED] ServerName www.foo.com ServerAlias foo.com DocumentRoot /home/tomcat/foo.com/http ErrorLog /home/tomcat/foo.com/logs/error_log CustomLog /home/tomcat/foo.com/logs/access_log common IfModule mod_jk.c JkMount /*.jsp foo-http /IfModule Alias /images/ /home/tomcat/foo.com/images/ Location /*/WEBINF/* AllowOverride None Deny from all /Location /VirtualHost #-- VirtualHost *:443 ServerAdmin [EMAIL PROTECTED] ServerName www.foo.com ServerAlias foo.com DocumentRoot /home/tomcat/foo.com/https ErrorLog /home/tomcat/foo.com/logs/error_log CustomLog /home/tomcat/foo.com/logs/access_log common IfModule mod_jk.c JkMount /*.jsp foo-https /IfModule Alias /images/ /home/tomcat/foo.com/images/ IfModule mod_ssl.c SSLEngine on SSLCertificateFile /home/tomcat/foo.com/foo.com.pem /IfModule /VirtualHost ... workers.properties: ps=/ workers.tomcat_home=/usr/jakarta-tomcat workers.java_home=/usr/java/j2sdk1.4.2 worker.list=foo-http,foo-https worker.foo-http.port=8009 worker.foo-http.host=localhost worker.foo-http.type=ajp13 worker.foo-https.port=8010 worker.foo-https.host=localhost worker.foo-https.type=ajp13 server.xml: Server port=8005 shutdown=SHUTDOWN debug=0 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/usr/lib/httpd/modules/mod_jk.so workersConfig=/usr/local/jakarta-tomcat/conf/jk/workers.properties jkLog=/usr/local/jakarta-tomcat/logs/mod_jk.log jkDebug=info/ Service name=foo-http Connector className=org.apache.ajp.tomcat4.Ajp13Connector address=127.0.0.1 port=8009 minProcessors=5 maxProcessors=75 enableLookups=false acceptCount=10 debug=0/ Engine name=standalone debug=0 defaultHost=foo.com Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true/ Host name=foo.com debug=0 unpackWARs=true Context path= docBase=/home/tomcat/foo.com/http debug=0 reloadable=true / /Host /Engine /Service Service name=foo-https Connector className=org.apache.ajp.tomcat4.Ajp13Connector address=127.0.0.1 port=8010 minProcessors=5 maxProcessors=75 enableLookups=false acceptCount=10 debug=0/ Engine name=standalone debug=0 defaultHost=foo.com Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true/ Host name=foo.com debug=0 unpackWARs=true Context path= docBase=/home/tomcat/foo.com/https debug=0 reloadable=true / /Host /Engine /Service /Server - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Creating Database realm problem...
Hi, I am tearing my hair out at this one! I am attempting to set up JDBCRealm for my tomcat installation (vers 4.1) and I keep getting the: Catalina.start: LifecycleException: Exception Opening Database Connection: Java.sql.SQLException: Com.ibm.db2.jdbc.app.DB2Driver when I try and start tomcat. My server.xml looks like: Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=COM.ibm.db2.jdbc.app.DB2Driver connectionURL=jdbc:db2:antech connectionName = ausername connectionPassword =apassword userTable=user userNameCol=userid userCredCol=pwd userRoleTable=user_roles roleNameCol=user_role / Things I have done include: Put db2java.jar in : %CATALINA_HOME%/lib/ , /server/lib/, /common/lib/, ../web-inf/lib Set JDBC_HOME to point to /server/lib/db2java.jar (also tried pointing db2java.jar in sqllib/java directory for DB2) Connecting to the database using the above driverName and connectionURL from a java app - works no problem Sacrificed an old mobile phone to the code gods! This covers every other answer I have found to this problem on the internet, if anyone can come up with any other solutions I would be a happy chappy! Cheers Richard
Unclear about JDBC resource def in Tomcat 4.1
I'm using Tomcat 4.1... I have the O'Reilly after-market book for reference AWA the Jakarta info... I'm unclear about JDBC config issues... * Any JDBC client webapp can instantiate a driver and get a Connection WITHOUT ANY DEFINITION TO THE server.xml or the web.xml as long as the driver jars are in /shared/lib or /application/WEB-INF/lib...True or False? * For convenience, JDBC resources may be be defined to Tomcat as JNDI Data Sources to the default JNDI context provided by Tomcat,otherwise no config required...True or false? Best Regards, Michael Dean Sun Certified Programmer for the Java 2 Platform Washington State Department of Corrections ph: 360-664-8802 fx: 360-664-3985 mailto:[EMAIL PROTECTED] I'm a sailor, of the waters and the sun, I can fight the waves but have no weapons for the calm... - The Ship Best Regards, Michael Dean Sun Certified Programmer for the Java 2 Platform Washington State Department of Corrections ph: 360-664-8802 fx: 360-664-3985 mailto:[EMAIL PROTECTED] I'm a sailor, of the waters and the sun, I can fight the waves but have no weapons for the calm... - The Ship - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Recall: Unclear about JDBC resource def in Tomcat 4.1
Dean, Michael D. would like to recall the message, Unclear about JDBC resource def in Tomcat 4.1. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Unclear about JDBC resource def in Tomcat 4.1
I'm using Tomcat 4.1... I have the O'Reilly after-market book for reference AWA the Jakarta info... I'm unclear about JDBC config issues... * Any JDBC client webapp can instantiate a driver and get a Connection WITHOUT ANY DEFINITION TO THE server.xml or the web.xml as long as the driver jars are in /shared/lib or /application/WEB-INF/lib...True or False? * For convenience, JDBC resources may be be defined to Tomcat as JNDI Data Sources to the default JNDI context provided by Tomcat,otherwise no config required...True or false? Best Regards, Michael Dean Sun Certified Programmer for the Java 2 Platform Washington State Department of Corrections ph: 360-664-8802 fx: 360-664-3985 mailto:[EMAIL PROTECTED] I'm a sailor, of the waters and the sun, I can fight the waves but have no weapons for the calm... - The Ship Best Regards, Michael Dean Sun Certified Programmer for the Java 2 Platform Washington State Department of Corrections ph: 360-664-8802 fx: 360-664-3985 mailto:[EMAIL PROTECTED] I'm a sailor, of the waters and the sun, I can fight the waves but have no weapons for the calm... - The Ship - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: LDAP connection problem through JSP
This is the simple jsp I used to test my JNDI Connection with: % String id = request.getRemoteUser(); out.write(User: + id); % See if that helps any. Dean -Original Message- From: Damien Pacaud [mailto:[EMAIL PROTECTED] Sent: Mon 12/1/2003 06:00 To: [EMAIL PROTECTED] Cc: Subject:LDAP connection problem through JSP hi list, I am trying to get the login for the user authentificated through LDAP in a JSP... I tryed : request.getRemoteUser(); but that returns always null... I am sure it can be done but am unable to find how... Any help would be greatly appreciated ;) Thanks in advance Damien Pacaud --- le prsent message (ainsi que ses ventuelles pices jointes) peut contenir des informations confidentielles. Etant tabli l'intention de ses destinataires, son utilisation ou diffusion non autorise est interdite. Tout message lectronique tant susceptible d'altration, Prisma Presse dcline toute responsabilit au titre dudit message en cas de falsification. Ce message a t trait par un anti virus et aucun virus connu n'a t dtect. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Unique error message when starting Tomcat 4.1.27
ok, sorry I didn't see that in the error message until I reread it. I'll use the flag -Djava.net.preferIPv4Stack=true and see if that helps. Thank you again, Dean -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Mon 11/17/2003 09:02 To: Tomcat Users List Cc: Subject:RE: Unique error message when starting Tomcat 4.1.27 Howdy, Not a tomcat problem: it's your OS configuration. Either make sure your OS has an IPv6 stack installed or add the IPv4 preference flag to JAVA_OPTS as the error message suggests. Yoav Shapira Millennium ChemInformatics -Original Message- From: Dean Searle [mailto:[EMAIL PROTECTED] Sent: Friday, November 14, 2003 10:54 PM To: Tomcat Users List Subject: Unique error message when starting Tomcat 4.1.27 I have just installed tomcat 4.1.27 from the FreeBSD Ports for FreeBSD 5.0-RELEASE-p11. Here is the JDK I am using: Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-p5-dean_13_nov_2003_15_51) Java HotSpot(TM) Client VM (build 1.4.2-p5-dean_13_nov_2003_15_51, mixed mode) Here is the message I get when I start tomcat: snip ./catalina.sh run Using CATALINA_BASE: /usr/local/jakarta-tomcat4.1 Using CATALINA_HOME: /usr/local/jakarta-tomcat4.1 Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat4.1/temp Using JAVA_HOME: /usr/local/jdk1.4.2 Nov 14, 2003 9:55:06 PM org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information Nov 14, 2003 9:55:06 PM org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance Nov 14, 2003 9:55:07 PM org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer Nov 14, 2003 9:55:08 PM org.apache.coyote.http11.Http11Protocol init SEVERE: Error initializing endpoint java.net.SocketException: IPv4 mapped addresses usage is turned off. Set net.inet6.ip6.v6only=0 or use '-Djava.net.preferIPv4Stack=true' to disable java IPv6 support at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:331) at java.net.ServerSocket.bind(ServerSocket.java:318) at java.net.ServerSocket.init(ServerSocket.java:185) at java.net.ServerSocket.init(ServerSocket.java:141) at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(Defa u ltServerSocketFactory.java:96) at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint . java:275) at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:150) at org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.ja v a:1156) at org.apache.catalina.core.StandardService.initialize(StandardService.jav a :579) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java: 2 246) at org.apache.catalina.startup.Catalina.start(Catalina.java:511) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja v a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso r Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Catalina.start: LifecycleException: Protocol handler initialization failed: java.net.SocketException: IPv4 mapped addresses usage is turned off. Set net.inet6.ip6.v6only=0 or use '-Djava.net.preferIPv4Stack=true' to disable java IPv6 support LifecycleException: Protocol handler initialization failed: java.net.SocketException: IPv4 mapped addresses usage is turned off. Set net.inet6.ip6.v6only=0 or use '-Djava.net.preferIPv4Stack=true' to disable java IPv6 support at org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.ja v a:1158) at org.apache.catalina.core.StandardService.initialize(StandardService.jav a :579) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java: 2 246) at org.apache.catalina.startup.Catalina.start(Catalina.java:511) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja v a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso r Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Catalina.stop: LifecycleException: This server has not yet been started LifecycleException: This server has not yet been started at org.apache.catalina.core.StandardServer.stop
RE: Unique error message when starting Tomcat 4.1.27
Yoav, That worked. I put JAVA_OPTS=-Djava.net.preferIPv4Stack=true for run,start and stop in my catalina.sh and now it starts. Thank you very much Dean -Original Message- From: Dean Searle Sent: Mon 11/17/2003 10:04 To: Tomcat Users List Cc: Subject:RE: Unique error message when starting Tomcat 4.1.27 ok, sorry I didn't see that in the error message until I reread it. I'll use the flag -Djava.net.preferIPv4Stack=true and see if that helps. Thank you again, Dean -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Mon 11/17/2003 09:02 To: Tomcat Users List Cc: Subject:RE: Unique error message when starting Tomcat 4.1.27 Howdy, Not a tomcat problem: it's your OS configuration. Either make sure your OS has an IPv6 stack installed or add the IPv4 preference flag to JAVA_OPTS as the error message suggests. Yoav Shapira Millennium ChemInformatics -Original Message- From: Dean Searle [mailto:[EMAIL PROTECTED] Sent: Friday, November 14, 2003 10:54 PM To: Tomcat Users List Subject: Unique error message when starting Tomcat 4.1.27 I have just installed tomcat 4.1.27 from the FreeBSD Ports for FreeBSD 5.0-RELEASE-p11. Here is the JDK I am using: Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-p5-dean_13_nov_2003_15_51) Java HotSpot(TM) Client VM (build 1.4.2-p5-dean_13_nov_2003_15_51, mixed mode) Here is the message I get when I start tomcat: snip ./catalina.sh run Using CATALINA_BASE: /usr/local/jakarta-tomcat4.1 Using CATALINA_HOME: /usr/local/jakarta-tomcat4.1 Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat4.1/temp Using JAVA_HOME: /usr/local/jdk1.4.2 Nov 14, 2003 9:55:06 PM org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information Nov 14, 2003 9:55:06 PM org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance Nov 14, 2003 9:55:07 PM org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer Nov 14, 2003 9:55:08 PM org.apache.coyote.http11.Http11Protocol init SEVERE: Error initializing endpoint java.net.SocketException: IPv4 mapped addresses usage is turned off. Set net.inet6.ip6.v6only=0 or use '-Djava.net.preferIPv4Stack=true' to disable java IPv6 support at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:331) at java.net.ServerSocket.bind(ServerSocket.java:318) at java.net.ServerSocket.init(ServerSocket.java:185) at java.net.ServerSocket.init(ServerSocket.java:141) at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(Defa u ltServerSocketFactory.java:96) at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint . java:275) at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:150) at org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.ja v a:1156) at org.apache.catalina.core.StandardService.initialize(StandardService.jav a :579) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java: 2 246) at org.apache.catalina.startup.Catalina.start(Catalina.java:511) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja v a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso r Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Catalina.start: LifecycleException: Protocol handler initialization failed: java.net.SocketException: IPv4 mapped addresses usage is turned off. Set net.inet6.ip6.v6only=0 or use '-Djava.net.preferIPv4Stack=true' to disable java IPv6 support LifecycleException: Protocol handler initialization failed: java.net.SocketException: IPv4 mapped addresses usage is turned off. Set net.inet6.ip6.v6only=0 or use '-Djava.net.preferIPv4Stack=true' to disable java IPv6 support at org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.ja v a:1158) at org.apache.catalina.core.StandardService.initialize(StandardService.jav a :579) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java: 2 246) at org.apache.catalina.startup.Catalina.start(Catalina.java:511) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja v a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso r
Unique error message when starting Tomcat 4.1.27
I cvsup'd on Nov 14 at 16:30 EDT. Thanks in advance, Dean - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Load balancing a standalone Tomcat 4.1
I have searched around to find this and have found nothing, but is it possible to load balance a complete standalone Tomcat server or cluster standalone Tomcat's doing HTTP and Application requests? Thank you everyone in advance Dean - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Load balancing a standalone Tomcat 4.1
I knew you could do that with apache and tomcat, but I'm looking at only Tomcat itself and nothing else. -Original Message- From: Asif Chowdhary [mailto:[EMAIL PROTECTED] Sent: Tue 11/11/2003 14:37 To: Tomcat Users List Cc: Subject:RE: Load balancing a standalone Tomcat 4.1 Yes you can cluster and load balance tomcat using mod-jk2 Connector -Original Message- From: Dean Searle [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 11, 2003 2:27 PM To: Tomcat Users List Subject: Load balancing a standalone Tomcat 4.1 I have searched around to find this and have found nothing, but is it possible to load balance a complete standalone Tomcat server or cluster standalone Tomcat's doing HTTP and Application requests? Thank you everyone in advance Dean - 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: Load balancing a standalone Tomcat 4.1
Thank you very much, Yoav. Reading through it looks like I would need the assistance of Apache anyways, or can I have an instance of Tomcat listening on port 80 and do the load balancing? Dean -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tue 11/11/2003 14:44 To: Tomcat Users List Cc: Subject:RE: Load balancing a standalone Tomcat 4.1 Howdy, Yes, you can do with tomcat standalone. See http://www.filip.net/tomcat/tomcat-javagroups.html Yoav Shapira Millennium ChemInformatics -Original Message- From: Dean Searle [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 11, 2003 2:43 PM To: Tomcat Users List Subject: RE: Load balancing a standalone Tomcat 4.1 I knew you could do that with apache and tomcat, but I'm looking at only Tomcat itself and nothing else. -Original Message- From: Asif Chowdhary [mailto:[EMAIL PROTECTED] Sent: Tue 11/11/2003 14:37 To:Tomcat Users List Cc: Subject: RE: Load balancing a standalone Tomcat 4.1 Yes you can cluster and load balance tomcat using mod-jk2 Connector -Original Message- From: Dean Searle [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 11, 2003 2:27 PM To: Tomcat Users List Subject: Load balancing a standalone Tomcat 4.1 I have searched around to find this and have found nothing, but is it possible to load balance a complete standalone Tomcat server or cluster standalone Tomcat's doing HTTP and Application requests? Thank you everyone in advance Dean - 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: Load balancing a standalone Tomcat 4.1
Again thank you, I'll take some time and read this and if I have any questions I'll make a new posting here. Thanks, Dean -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tue 11/11/2003 14:58 To: Tomcat Users List Cc: Subject:RE: Load balancing a standalone Tomcat 4.1 Howdy, You don't have to have Apache in front. Any load-balancer will do. Let me redirect you to the tomcat 5 clustering page, as it's more recent, and I think easier to follow: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cluster-howto.html Tomcat 5's clustering support is more built-in than tomcat 4's. Filip and others will answer questions if you actually set up an environment and run into problems. Yoav Shapira Millennium ChemInformatics -Original Message- From: Dean Searle [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 11, 2003 2:53 PM To: Tomcat Users List Subject: RE: Load balancing a standalone Tomcat 4.1 Thank you very much, Yoav. Reading through it looks like I would need the assistance of Apache anyways, or can I have an instance of Tomcat listening on port 80 and do the load balancing? Dean -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tue 11/11/2003 14:44 To:Tomcat Users List Cc: Subject: RE: Load balancing a standalone Tomcat 4.1 Howdy, Yes, you can do with tomcat standalone. See http://www.filip.net/tomcat/tomcat-javagroups.html Yoav Shapira Millennium ChemInformatics -Original Message- From: Dean Searle [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 11, 2003 2:43 PM To: Tomcat Users List Subject: RE: Load balancing a standalone Tomcat 4.1 I knew you could do that with apache and tomcat, but I'm looking at only Tomcat itself and nothing else. -Original Message- From: Asif Chowdhary [mailto:[EMAIL PROTECTED] Sent: Tue 11/11/2003 14:37 To: Tomcat Users List Cc: Subject: RE: Load balancing a standalone Tomcat 4.1 Yes you can cluster and load balance tomcat using mod-jk2 Connector -Original Message- From: Dean Searle [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 11, 2003 2:27 PM To: Tomcat Users List Subject: Load balancing a standalone Tomcat 4.1 I have searched around to find this and have found nothing, but is it possible to load balance a complete standalone Tomcat server or cluster standalone Tomcat's doing HTTP and Application requests? Thank you everyone in advance Dean - 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] 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: Tomcat + jk2 connector configuration
workers2.properties # only at beginning. In production uncomment it out [logger.apache2] level=DEBUG [shm] file=z:/tomcat/logs/jk2.shm size=1048576 # Example socket channel, override port and host. [channel.socket:localhost:8109] port=8109 host=127.0.0.1 [channel.socket:localhost:8110] port=8110 host=127.0.0.1 [channel.socket:localhost:8111] port=8111 host=127.0.0.1 #[channel.jni:jni] #info=The jni channel, used if tomcat is started inprocess [status:] info=Status worker, displays runtime informations # Define the worker # First Web Application Worker [ajp13:localhost:8109] channel=channel.socket:localhost:8109 # Second Web Application Worker [ajp13:localhost:8110] channel=channel.socket:localhost:8110 # Third Web Application Worker [ajp13:localhost:8111] channel=channel.socket:localhost:8111 Uri mapping [uri:127.0.0.1/*.jsp] worker=ajp13:localhost:8109 [uri:/jkstatus/*] info=Display status information and checks the config file for changes. worker=status:status [uri:www.session1.com/*.jsp] worker=ajp13:localhost:8109 [uri:www.session2.com/*.jsp] worker=ajp13:localhost:8110 [uri:www.session3.com/*.jsp] worker=ajp13:localhost:8111 Here is my properties file. I hope that this helps you out. I am currently running with three seperate instances from one binary install of tomcat. This allows me the flexibility to start and stop each instance without afecting the the other two. Dean -Original Message- From: Tatu Vanhanen [mailto:[EMAIL PROTECTED] Sent: Fri 11/7/2003 02:17 To: User Tomcat Cc: Subject:Tomcat + jk2 connector configuration Hello, We have a development environment where each developer has a separate Tomcat instance to play with. Each Tomcat should listen in it's port for requests coming from the Apache front-end. The mappings for each user's Tomcat should be based on the request uri, i.e. http://www.somehost.com/user1/ means that Apache should forward the requests having 'user1' to user1's running Tomcat instance. We have this working with the ancient Warp- connector but we should move to jk2 because of some issues with warp. Could someone please include some example of workers2.properties/jk2.properties that would give us some hint of how to make things work. Yes, we have tried to configure things but apparently something has been missing and we are still stuck with warp :( Below is our workers2.properties (with user names replaced with more publishable names). Is there something missing there? Thanks a lot! workers2.properties: [logger.apache2] level=DEBUG [shm] file=/www/logs/shm.file size=1048576 # First Tomcat serving a product under tests [channel.socket:localhost:9025] port=9025 maxPort=9025 host=127.0.0.1 [ajp13:localhost:9025] channel=channel.socket:localhost:9025 [uri:/product1/*] worker1=ajp13:localhost:9025 # user1 [channel.socket:localhost:9031] port=9031 maxPort=9031 host=127.0.0.1 [ajp13:localhost:9031] channel=channel.socket:localhost:9031 [uri:/user1/*] worker1=ajp13:localhost:9031 # user2 [channel.socket:localhost:9029] port=9029 maxPort=9029 host=127.0.0.1 [ajp13:localhost:9029] channel=channel.socket:localhost:9029 [uri:/user2/*] worker1=ajp13:localhost:9029 # user3 [channel.socket:localhost:9027] port=9027 maxPort=9027 host=127.0.0.1 [ajp13:localhost:9027] channel=channel.socket:localhost:9027 [uri:/user3/*] worker1=ajp13:localhost:9027 # user4 [channel.socket:localhost:9021] port=9021 maxPort=9021 host=127.0.0.1 [ajp13:localhost:9021] channel=channel.socket:localhost:9021 [uri:/user4/*] worker1=ajp13:localhost:9021 - 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: JNDIRealm...more
getRemoteUser(), if your familiar with jsp's then you'll know how to use it. Unfortunately I don't, but I guess that is why we have web application developers on staff. :-) Dean Searle Computing Oasis 989.245.7369 (p) 989.921.3904 (f) -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 5:00 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Thanks for the pointer, I'll see about pointing to one of our 2 mail servers. I wonder if they talk back and forth. Also, Do you know how I can extract the sign-ed on user's user-id once they've authenticated? robyne -Original Message- From: Dean Searle [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 2:06 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Great to hear that information worked for you. I included the alternateURL in the event our primary AD went down for one reason or another and our users could still access the password protected sites. Without an alternate AD active or specified you will not have access to your web applications. -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Wed 11/5/2003 13:46 To: Tomcat Users List Cc: Subject:RE: JNDIRealm...more Dean! Mine works! A thousand thanks! I hope I can return the favor some time. Your nice explanation helped. I did not need the alternatURL in mine. I found out that we have 2 mail servers, well the server.xml only allows for 1 alternate. I decided to try it without any and it worked. Much appreciation, Robyne Vaughn -Original Message- From: Dean Searle [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 9:48 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Hello, I hope that I am not to late to post here. I have just returned to the land of the living and have started to catch up on my reading. I noticed that Robyne you were trying to find the collective all for your users. I have just recently figured this out after working on it for two days. Here is my working server.xml: Realm className=org.apache.catalina.realm.JNDIRealm debug=99 connectionURL=ldap://your.AD.com; alternateURL=ldap://other.AD.com; connectionName=cn=USER DISPLAY NAME,ou=FIRST SUB-GROUP,dc=AD,dc=com connectionPassword=XX referrals=follow userBase=dc=AD,dc=com userSearch=(amp;(sAMAccountName={0})(objectClass=user)) userSubtree=true roleBase=dc=AD,dc=com roleSearch=(uniqueMember={0}) roleName=cn / KEY: cn = common name ou = organizational unit dc = domain controller your.AD.comwww.yahoo.com other.AD.com mail.yahoo.com USER DISPLAY NAME This is the full name that shows up in your AD, ie user might be johnd but full name is John Doe. For the connection name and password, it must be user that has authority to access AD. This part is necessary to connect. FIRST SUB-GROUP This depends on how your organization is built in AD. You might have departments like: Accounting, Human Resources, Information Technologies. In an AD structure it might look something like this: COM | |_Yahoo | | |_Accounting | |_John Doe | |_Information Technologies ||_Jack Daniels | |_Human Resources |_Mary Jane sAMAccountName is the account name you most commonly login into your computers with objectClass=user this should be user, as defined in AD unless your sys admin or someone has tampered the AD. referrals=follow this is necessary to traverse the full AD without knowing the user's base location. I hope that this clears up some issues for you. Please let me know if I can help you more. Dean E. Searle Computing Oasis 989.245.7369 (P) 989.921.3904 (F) -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 1:25 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Thanks. -Original Message- From: Hart, Justin [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 12:10 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Good luck. -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 1:07 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Thanks, Justin, You've given me some good pointers. I guess I'll do some more hammering and snooping. Our AD is on a server and the administrators gave me an administrator type password to try hitting it with, but they don't want me snooping around too much. I don't actually have direct access to it. Like I said, I have hit it with some JNDI, but that is new to me also, and I still couldn't discover the tree structure adequately. Anyway, I guess I'll try
RE: mod_jk2, virtual hosts
From looking at your information for the www.domain.com/org you would need to define a new virtual host or try www.doamin.com/org/demo/sample.jsp and make sure you have /home/www/htdocs/www/demo/sample.jsp, as far as I can see you do not have a demo directory in your /home/www/htdocs/www. Hope this helps, Dean -Original Message- From: Frank Epistone [mailto:[EMAIL PROTECTED] Sent: Tue 11/4/2003 14:28 To: [EMAIL PROTECTED] Cc: Subject:mod_jk2, virtual hosts Hi everybody, I'm experiencing some strange problems with mod_jk2 and Apache Tomcat 4.1.27 with Apache 2.0.47 as web server. I have serveral virtual hosts defined, each one with a diferent JSP directory: demo.domain.com/org - /home/www/htdocs/demo www.domain.com/org - /home/www/htdocs/www I've also configured server.xml file with one Engine, and two Hosts with a Context for each one. appBase for each Host is /home/www/htdocs and docBase for each Context is the corresponding directory (demo or www). Each Host has the name attribute set as one of the domain names and an Alias entry for the other TLD (com/org) Everything works great, Apache serves the non-JSP content and Tomcat sends JSP and Servlet results fine. But requesting www.domain.com/demo/sample.jsp returns a 404 as Tomcat tries to serve /home/www/htdocs/demo/sample.jsp, which does not exist. Has anybody found this issue and solved it? I'm afraid there is something wrong with my config files, but I've double checked workers2.properties, httpd.conf and server.xml and everything is fine. All configuration is mostly based on jk2 virtual host HOWTO (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhosthowto.html) Regards, Ivan Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://mail.messenger.yahoo.co.uk - 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: JNDIRealm...more
Great to hear that information worked for you. I included the alternateURL in the event our primary AD went down for one reason or another and our users could still access the password protected sites. Without an alternate AD active or specified you will not have access to your web applications. -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Wed 11/5/2003 13:46 To: Tomcat Users List Cc: Subject:RE: JNDIRealm...more Dean! Mine works! A thousand thanks! I hope I can return the favor some time. Your nice explanation helped. I did not need the alternatURL in mine. I found out that we have 2 mail servers, well the server.xml only allows for 1 alternate. I decided to try it without any and it worked. Much appreciation, Robyne Vaughn -Original Message- From: Dean Searle [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 9:48 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Hello, I hope that I am not to late to post here. I have just returned to the land of the living and have started to catch up on my reading. I noticed that Robyne you were trying to find the collective all for your users. I have just recently figured this out after working on it for two days. Here is my working server.xml: Realm className=org.apache.catalina.realm.JNDIRealm debug=99 connectionURL=ldap://your.AD.com; alternateURL=ldap://other.AD.com; connectionName=cn=USER DISPLAY NAME,ou=FIRST SUB-GROUP,dc=AD,dc=com connectionPassword=XX referrals=follow userBase=dc=AD,dc=com userSearch=(amp;(sAMAccountName={0})(objectClass=user)) userSubtree=true roleBase=dc=AD,dc=com roleSearch=(uniqueMember={0}) roleName=cn / KEY: cn = common name ou = organizational unit dc = domain controller your.AD.comwww.yahoo.com other.AD.com mail.yahoo.com USER DISPLAY NAME This is the full name that shows up in your AD, ie user might be johnd but full name is John Doe. For the connection name and password, it must be user that has authority to access AD. This part is necessary to connect. FIRST SUB-GROUP This depends on how your organization is built in AD. You might have departments like: Accounting, Human Resources, Information Technologies. In an AD structure it might look something like this: COM | |_Yahoo | | |_Accounting | |_John Doe | |_Information Technologies ||_Jack Daniels | |_Human Resources |_Mary Jane sAMAccountName is the account name you most commonly login into your computers with objectClass=user this should be user, as defined in AD unless your sys admin or someone has tampered the AD. referrals=follow this is necessary to traverse the full AD without knowing the user's base location. I hope that this clears up some issues for you. Please let me know if I can help you more. Dean E. Searle Computing Oasis 989.245.7369 (P) 989.921.3904 (F) -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 1:25 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Thanks. -Original Message- From: Hart, Justin [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 12:10 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Good luck. -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 1:07 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Thanks, Justin, You've given me some good pointers. I guess I'll do some more hammering and snooping. Our AD is on a server and the administrators gave me an administrator type password to try hitting it with, but they don't want me snooping around too much. I don't actually have direct access to it. Like I said, I have hit it with some JNDI, but that is new to me also, and I still couldn't discover the tree structure adequately. Anyway, I guess I'll try to pull things out of the loading script and my LDAP books. It's so frustrating. I can't find and the administrators don't know where the collective all of our users are located. They found an example script, used it, and don't really know what they have yet. I really appreciate your time. Thanks, Rob Ps I expect I'll have more questions later. Right now, I'm still stuck just figuring out where all users are. -Original Message- From: Hart, Justin [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 11:40 AM To: Tomcat Users List Subject: RE: JNDIRealm...more Oh, for the AD LDAP, I've been using the programs that came with Active Directory. There is also an ldp.exe, I dunno where that came from, but that's pretty useful. -Original Message- From: Hart
RE: JNDIRealm...more
Hello, I hope that I am not to late to post here. I have just returned to the land of the living and have started to catch up on my reading. I noticed that Robyne you were trying to find the collective all for your users. I have just recently figured this out after working on it for two days. Here is my working server.xml: Realm className=org.apache.catalina.realm.JNDIRealm debug=99 connectionURL=ldap://your.AD.com; alternateURL=ldap://other.AD.com; connectionName=cn=USER DISPLAY NAME,ou=FIRST SUB-GROUP,dc=AD,dc=com connectionPassword=XX referrals=follow userBase=dc=AD,dc=com userSearch=(amp;(sAMAccountName={0})(objectClass=user)) userSubtree=true roleBase=dc=AD,dc=com roleSearch=(uniqueMember={0}) roleName=cn / KEY: cn = common name ou = organizational unit dc = domain controller your.AD.comwww.yahoo.com other.AD.com mail.yahoo.com USER DISPLAY NAME This is the full name that shows up in your AD, ie user might be johnd but full name is John Doe. For the connection name and password, it must be user that has authority to access AD. This part is necessary to connect. FIRST SUB-GROUP This depends on how your organization is built in AD. You might have departments like: Accounting, Human Resources, Information Technologies. In an AD structure it might look something like this: COM | |_Yahoo | | |_Accounting | |_John Doe | |_Information Technologies ||_Jack Daniels | |_Human Resources |_Mary Jane sAMAccountName is the account name you most commonly login into your computers with objectClass=user this should be user, as defined in AD unless your sys admin or someone has tampered the AD. referrals=follow this is necessary to traverse the full AD without knowing the user's base location. I hope that this clears up some issues for you. Please let me know if I can help you more. Dean E. Searle Computing Oasis 989.245.7369 (P) 989.921.3904 (F) -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 1:25 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Thanks. -Original Message- From: Hart, Justin [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 12:10 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Good luck. -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 1:07 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Thanks, Justin, You've given me some good pointers. I guess I'll do some more hammering and snooping. Our AD is on a server and the administrators gave me an administrator type password to try hitting it with, but they don't want me snooping around too much. I don't actually have direct access to it. Like I said, I have hit it with some JNDI, but that is new to me also, and I still couldn't discover the tree structure adequately. Anyway, I guess I'll try to pull things out of the loading script and my LDAP books. It's so frustrating. I can't find and the administrators don't know where the collective all of our users are located. They found an example script, used it, and don't really know what they have yet. I really appreciate your time. Thanks, Rob Ps I expect I'll have more questions later. Right now, I'm still stuck just figuring out where all users are. -Original Message- From: Hart, Justin [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 11:40 AM To: Tomcat Users List Subject: RE: JNDIRealm...more Oh, for the AD LDAP, I've been using the programs that came with Active Directory. There is also an ldp.exe, I dunno where that came from, but that's pretty useful. -Original Message- From: Hart, Justin Sent: Tuesday, November 04, 2003 12:39 PM To: Tomcat Users List Subject: RE: JNDIRealm...more I used * as my role-name. Justin -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 12:38 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Justin, I REALLY appreciate your help. I've been stuck for a while. I believe that Users is a CN . (scanning thru the script, I don't see Users ever set as an OU, but I do see it as a CN.) How are you browsing around in AD's LDAP? I have a jndi jsp that I've tried finding things with. One bit of info: The AD I am trying to authenticate to is on a different box than the one I work on. I do know to hit AD with a connection name and password, then I've tried to use the sAMAccountname but have been unsuccessful. I can't quite get my path worked out. I will look thru the DN, to see if I can find where all the users are a member. In my web.xml, I
RE: jk or jk2
Florian, From my latest experience with my reconfiguration of Tomcat, Apache2 and mod_jk2 I have somewhat figured things out. I think the bracketed items are a type:attribute sort of like tags in XLM or HTML. They are necessary to identify the individual pieces within the properties file. They are neccesary for when you have mulitple Web applications running on either one instance of tomcat or multiple instances of Tomcat. I am including my newly revised workers2.properties file. As you can see I have defined 3 ports that tomcat will listen on, i.e. [channel.socket:localhost:8###] these need to be unique. Then further down you can see where I have assigned the workers to the individual listen ports, i.e [uri:www.session1.com/*jsp] worker=ajp13:localhost:8109 Now if you are only running one instance of Tomcat you only need one port and one worker. But in my case I have each web application running on a seperate instance of tomcat that I can turn on/off without affecting the other instances. I hope that this helps clarify some thing for you. Dean BEGIN CODE # only in the beginning. In production uncomment it out [logger.apache2] level=DEBUG [shm] file=z:/tomcat/logs/jk2.shm size=1048576 # Example socket channel, override port and host. [channel.socket:localhost:8109] port=8109 host=127.0.0.1 [channel.socket:localhost:8110] port=8110 host=127.0.0.1 [channel.socket:localhost:8111] port=8111 host=127.0.0.1 #[channel.jni:jni] #info=The jni channel, used if tomcat is started inprocess [status:] info=Status worker, displays runtime informations #[vm:] #info=Parameters used to load a JVM in the server process #JVM=C:\jdk\jre\bin\hotspot\jvm.dll #OPT=-Djava.class.path=Z:/Tomcat/bin/tomcat-jni.jar;Z:/Tomcat/server/lib/commons-logging.jar #OPT=-Dtomcat.home=${TOMCAT_HOME} #OPT=-Dcatalina.home=${TOMCAT_HOME} #OPT=-Xmx128M #OPT=-Djava.compiler=NONE #disabled=0 #[worker1.jni:onStartup] #info=Command to be executed by the VM on startup. This one will start tomcat. #class=org/apache/jk/apr/TomcatStarter #ARG=start #disabled=0 #stdout=Z:/tomcat/logs/stdout.log #stderr=Z:/tomcat/logs/stderr.log #[worker1.jni:onShutdown] #info=Command to be executed by the VM on shutdown. This one will stop tomcat. #class=org/apache/jk/apr/TomcatStarter #ARG=stop #disabled=0 # Define the worker # First Web Application Worker [ajp13:localhost:8109] channel=channel.socket:localhost:8109 # Second Web Application Worker [ajp13:localhost:8110] channel=channel.socket:localhost:8110 # Third Web Application Worker [ajp13:localhost:8111] channel=channel.socket:localhost:8111 Uri mapping [uri:127.0.0.1/*.jsp] worker=ajp13:localhost:8109 [uri:/jkstatus/*] info=Display status information and checks the config file for changes. worker=status:status [uri:www.session1.com/*.jsp] worker=ajp13:localhost:8109 [uri:www.session2.com/*.jsp] worker=ajp13:localhost:8110 [uri:www.session3.com/*.jsp] worker=ajp13:localhost:8111 END CODE -Original Message- From: Florian Ebeling [mailto:[EMAIL PROTECTED] Sent: Fri 10/31/2003 05:40 To: Tomcat Users List Cc: Subject:Re: jk or jk2 Dean- thanks for sharing your material on your tested setup here. I wonder if you've got a distinct idea of how the syntax workers2.properties works. This is actually my single most pressing problem. There is this section like thing: [foo:bar] What does it mean? Is it a [type:instance] - eg. [uri:/context/*] scheme, perhaps? This might make sense. Then this [type:] - eg. [config:] could be a class or singleton-like thing. And then, the properties. Do they always refer to the preceding square-bracketed item? [type:obj] property1=value1 property2=value2 What is the group syntax like? Is a group something I define with the [lb:some_lb_name] statement? Do I need a shared memory file under all circumstances, or is it neccessary only when I have several tomcats? -Florian Dean Searle wrote: The Oreilly book is only for Tomcat and Tomcat as a Standalone web/application server. I have spent six months trying to figure out how everything works together and how to get things implemented. Both from FreeBSD and Windows. I do have documentation on how to get Apache2, Tomcat 4.1 and mod_jk2 to work together. Please keep in mind that this is old documentation that I have out there, some things are not optimized yet. I have just reconfigured my Apache2, Tomcat 4.1 and mod_jk2 installation. I currently have a test environment where I am running two instances of Apache2 from one binary install and three instances of Tomcat from one binary install. Each one running different configuration from straight static site to jsp site and jsp with SSL or Realm security with AD LDAP. But all using mod_jk2 when needed. I will provide a link to my old documentation to get you started. I will try and answer any other questions also. I am not an expert here though, just some things I have figured
RE: jk or jk2
The Oreilly book is only for Tomcat and Tomcat as a Standalone web/application server. I have spent six months trying to figure out how everything works together and how to get things implemented. Both from FreeBSD and Windows. I do have documentation on how to get Apache2, Tomcat 4.1 and mod_jk2 to work together. Please keep in mind that this is old documentation that I have out there, some things are not optimized yet. I have just reconfigured my Apache2, Tomcat 4.1 and mod_jk2 installation. I currently have a test environment where I am running two instances of Apache2 from one binary install and three instances of Tomcat from one binary install. Each one running different configuration from straight static site to jsp site and jsp with SSL or Realm security with AD LDAP. But all using mod_jk2 when needed. I will provide a link to my old documentation to get you started. I will try and answer any other questions also. I am not an expert here though, just some things I have figured out from reading numerous posts here and from other sites. I will repost an updated documentation as soon as all my testing is done. http://www.computingoasis.com/apache download the PDF please. -Dean -Original Message- From: Florian Ebeling [mailto:[EMAIL PROTECTED] Sent: Thu 10/30/2003 09:42 To: Tomcat Users List Cc: Subject:Re: jk or jk2 Hi Bernhard, Here's a great book including mod_jk2: http://www.oreilly.de/catalog/tomcat/index.html I got this book right next to my laptop, and I also like it quite much. But I can't find it useful when it comes to using mod_jk2. It don't really understand the contents of workers2.perperties. And they show only an example of this file in their book. To give you an example: [config:] File=/usr/local/apache2/config/workers2.properties debug=0 debugEnv=0 I guess here they define some config instance. Ok. But where is the point in giving the path to a config file *in exactly this config file*?! No idea. Or, another example: [uri:/examples] info=Examples ... context=/examples worker=ajp13:localhost:8009 debug=0 This yields a deprecation warning in my apache2 error.log: [Thu Oct 30 13:13:48 2003] [notice] uriEnv.setAttribute() the worker directive is deprecated. Use 'group' instead. What is a group? I guess this could be a node group for load balancing purposes. But I don't know. And the books won't say, neither the ORA nor the Wrox one. I'm pretty stuck. Sorry, I'm upset. Thanks for your hint, anyway. -Florian - 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 cannot load jk2
just a shot, Julien but, if your file config is EXACTLY as shown, your LoadModule directive is commented out... IfModule !mod_jk2.c # LoadModule jk2_module modules/mod_jk2-1.3.27.dll /IfModule Best Regards, Michael Dean Sun Certified Programmer for the Java 2 Platform Washington State Department of Corrections ph: 360-664-8802 fx: 360-664-3985 mailto:[EMAIL PROTECTED] This is the neurotic mystery of climbing stone; Some bit of experience, large air under one's feet Now abides the immutable question, companion forever, Nay Can I?, but WILL I?... - Michael Dean -Original Message- From: Julien Oix [mailto:[EMAIL PROTECTED] Sent: Thursday, October 23, 2003 6:42 AM To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: Apache cannot load jk2 hi, try to rename the mod_jk2-x.dll into mod_jk2.dll ... Julien OIX Service Informatique de Gestion - Université de Nantes Tel: 02 40 99 83 65 / abroad + (33) 240 99 83 65 Web: http://www.univ-nantes.fr mailto:[EMAIL PROTECTED] -Message d'origine- De : Jean-Max Estay [mailto:[EMAIL PROTECTED] Envoyé : jeudi 23 octobre 2003 15:37 À : [EMAIL PROTECTED] Objet : Apache cannot load jk2 Hello, I use the ${Apache2} in this mail for the path of my apache install. Using mod_jk2-1.3.27.dll to connect Apache2 (2.0.47 win 32) on Windows XP Pro and Tomcat 4.1.27 on the same host, The file mod_jk2-1.3.27.dll is in ${Apache2}/modules After creating the files stdout.log, stderr.log, jk2.shm,workers2.properties Apache is running OK on port 80, Tomcat OK on 8080 When adding at the end of the Apache config file httpd.conf the lines IfModule !mod_jk2.c # LoadModule jk2_module modules/mod_jk2-1.3.27.dll /IfModule I have, when testing the apache config, the error message JK2 : Cannot load ${Apache2}/modules/mod_jk2-1.3.27.dll into server: Le module spécifié est introuvable. (the required module was not found) After reading many and many Howto, news and html pages, I don't find the solution Who can help me ? Dr Jean-Max Estay [EMAIL PROTECTED] http://www.ima.uco.fr/personnes/estay Institut de Mathématiques Appliquées Université Catholique de l'Ouest 44,46 rue Rabelais BP 808 49008 ANGERS Cedex 01 France tel +33 2 41 81 67 05 fax +33 2 41 81 67 00 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
redirect?
I have Apache 2.0.47, Tomcat 5.0 and mod_jk2/2.0.2 running http://127.0.0.1:8009/jsp-examples/ http://127.0.0.1:8009/servlets-examples/ So how/what do I modify such that: http://127.0.0.1/jsp-examples/ http://127.0.0.1/servlet-examples return the same pages when the port number isn't specified in the URL... I'm trying to set it so the user doesn't have to remember the ports Best Regards, Michael Dean Sun Certified Programmer for the Java 2 Platform Washington State Department of Corrections ph: 360-664-8802 fx: 360-664-3985 mailto:[EMAIL PROTECTED] I'm a sailor, of the waters and the sun, I can fight the waves but have no weapons for the calm... - The Ship - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat4.1.24 + apache_2.0.47 + connectors-jk2.0.2
Try LoadModule jk2_module modules/mod_jk2-2.0.43.dll you current have LoadModule jk_module. That should work for you. Also if you need more information I have write a document on what you are setting up at http://www.computingoasis.com/apache just download the pdf from there. There are also numerous posts in the archives about this also. Cheers --Dean -Original Message- From: Srinivasu Gandu [mailto:[EMAIL PROTECTED] Sent: Fri 10/17/2003 09:34 To: 'Tomcat Users List' Cc: Subject:tomcat4.1.24 + apache_2.0.47 + connectors-jk2.0.2 Hi, I have a win2k machine trying to configure these. I am able to work apache and tomcat individually. When I try to connect these using jk2 getting into problems.. I have followed the John Turner win2k instructions. When ever I add -- LoadModule jk_module modules/mod_jk2-2.0.43.dll -- Include C:/Tomcat4.1/conf/auto/mod_jk.conf in httpd.con of apache and try to test using c:\apache\apache2\bin\apache.exe -t I am getting Syntax error on line 174 of C:/Apache/Apache2/conf/httpd.conf: Can't locate API module structure `jk_module' in file C:/Apache/Apache2/modules/ mod_jk2-2.0.43.dll: No error I can't find the same versions of apache and jk connector. Any solution will be appreciated. Thanks - srini. - 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: Installing Tomcat 4.1.24 as a service on Win 2000 - won't start
I have found this to occur if JDK is not installed correctly. Try going to C:\Program Files\Java\j2re1.4.2_01\bin\client and see if there is a jvm.dll file there. If there is not then uninstall the JDK, delete the Java folder and reinstall. If the jvm.dll is there then uninstall the JDK and remove the Java folder and reinstall. Sometimes the dll's do not get registered correctly. Also in your Environment Variables make sure your path has this included: C:\j2sdk1.4.2_01\bin, well before any Tomcat path statements. Also make sure that the JAVA_HOME, TOMCAT_HOME and CATALINA_HOME are all under the system variables and not the user variables. Keep in mind that your vesion of JDK will determine the correct syntax. Dean -Original Message- From: Seth Rubin [mailto:[EMAIL PROTECTED] Sent: Thu 10/2/2003 12:06 AM To: Tomcat Users List Cc: Subject:RE: Installing Tomcat 4.1.24 as a service on Win 2000 - won't start Am having the same problem myself on a WinXP Home box installing 4.1.27 . I can start tomcat manually or from Start menu, but I get this in the event log when I start it as a service: The LoadLibrary function failed for the following reason: The specified module could not be found. Could not load the Java Virtual Machine. I don't know why this is happening. JAVA_HOME and CATALINA_HOME are set correctly. I'm using the service as configured by the installer. Just to be sure, I did chmod 777 on the j2sdk and jre java trees. I'm stumped. My only guess is that there must be something funky with the local system account that runs services, but I can't see what. -- Seth - 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: mod_jk2 hangs?!
You're missing the jk2.shm file. This file should be created using notepad or vi (depending on your OS)and placed in a folder. That folder can be determined by looking into jk2.properties in the {TOMCAT_HOME}/conf and workers2.properties in {APACHE_HOME}/conf. Or you can specify where it needs to go. Just make sure that both files point to the same place. Dean -Original Message- From: Christian Traber [mailto:[EMAIL PROTECTED] Sent: Thu 10/2/2003 3:43 AM To: Tomcat Users List Cc: Subject:mod_jk2 hangs?! Hi, I use apache 2.0.46, mod_jk2, tomcat4.1.18 (the standard versions shipped with Suse 8.2). Sometimes the apache-tomcat connection seems to hang. After restarting apache (or I think waiting for a few minutes) everything works again. There are a lot of such messages in my apache errorlog: ... [Wed Oct 01 20:38:11 2003] [error] mod_jk child init 1 -2 [Wed Oct 01 20:38:11 2003] [error] jk2_init() Can't find child 14357 in scoreboard [Wed Oct 01 20:38:11 2003] [notice] workerEnv.init() ok /srv/www/conf/workers2.properties [Wed Oct 01 20:38:11 2003] [error] mod_jk child init 1 -2 [Wed Oct 01 20:38:11 2003] [error] jk2_init() Can't find child 14358 in scoreboard [Wed Oct 01 20:38:11 2003] [notice] workerEnv.init() ok /srv/www/conf/workers2.properties [Wed Oct 01 20:38:11 2003] [error] mod_jk child init 1 -2 [Wed Oct 01 20:38:27 2003] [notice] mod_jk2 Shutting down [Wed Oct 01 20:38:28 2003] [notice] mod_jk2 Shutting down [Wed Oct 01 20:38:29 2003] [notice] mod_jk2 Shutting down [Wed Oct 01 20:38:30 2003] [notice] mod_jk2 Shutting down Whar means [error] mod_jk child init 1 -2 ? Please tell me if you need further information about my configuration. Thanks, Christian - 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: mod_jk2 hangs?!
I'm not to sure of the purpose of the jk2.shm file except that it is a scoreboard file. Its main purpose is to collect stats on the JK2 connector. I'm not too sure how to read the stats just yet. I'm not sure if by having two separate jk2.shm files will cause any problems. I would guess no since it only collects information and has no bearing on performance. So I suppose you could create two and try that. Let me know if that works for you. Dean Searle Computing Oasis 989.245.7369 (p) 989.921.3904 (f) -Original Message- From: Christian Traber [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 3:16 PM To: Tomcat Users List Cc: Dean Searle Subject: Re: mod_jk2 hangs?! Dean Searle wrote: You're missing the jk2.shm file. This file should be created using notepad or vi (depending on your OS)and placed in a folder. That folder can be determined by looking into jk2.properties in the {TOMCAT_HOME}/conf and workers2.properties in {APACHE_HOME}/conf. Or you can specify where it needs to go. Just make sure that both files point to the same place. Dean I have a shm file for mod_jk2 but didn't change the tomcat jk2.properties. Does this mean I have to use the same shm file for tomcat and mod_jk2? I thought they will just use socket for communication!? However, I can't use the same file, because apache is in the DMZ and tomcat in another net segment and I can't share a disk... Thanks, Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JSP Compilation Issues
I have a JSP page that is large (contains a large series of tables for displaying lots of data). It is about 2000 lines of HTML. When trying to run this on Tomcat 4.1.27 I get the following error: [ServletException in:/schedule/operational/view.month.jsp] Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file C:\dean\dev-tools\Tomcat 4.1\work\Standalone\localhost\_\schedule\operational\view_month_jsp.java:116 12: code too large for try statement } catch (Throwable t) { ^ C:\dean\dev-tools\Tomcat 4.1\work\Standalone\localhost\_\schedule\operational\view_month_jsp.java:30: code too large for try statement try { ^ C:\dean\dev-tools\Tomcat 4.1\work\Standalone\localhost\_\schedule\operational\view_month_jsp.java:17: code too large public void _jspService(HttpServletRequest request, HttpServletResponse response) ^ 3 errors ' I reviewed the jsp_*.java file that was created (I am assuming by Jasper) and saw that evert individual HTML taq is outputted to the new line, e.g. table width=80trtd align=center colspan=5nbsp;/td/trtrtd align=center colspan=5RDO/td/tr trtdnbsp;/tdtdnbsp;/tdtdnbsp;/tdtdnbsp;/tdtdnbsp;/ td/tr/table Which is two lines in my JSP, becomes the following in the servlet/java file: out.write(table width=\80\); out.write(tr); out.write(td align=\center\ colspan=\5\nbsp;); out.write(/td); out.write(/tr); out.write(tr); out.write(td align=\center\ colspan=\5\RDO); out.write(/td); out.write(/tr\r\n\t\t\t\t\t\t\t\t\t\t); out.write(tr); out.write(tdnbsp;); out.write(/td); out.write(tdnbsp;); out.write(/td); out.write(tdnbsp;); out.write(/td); out.write(tdnbsp;); out.write(/td); out.write(tdnbsp;); out.write(/td); out.write(/tr); out.write(/table\r\n\t\t\t\t\t); i.e. it is blowing out the individual tags to individual lines (including end tags), and thus making my 2000 line html become 11,000 lines in the servlet and causing the above error (I believe that the there is a 10,000 line limit for a try statement). Is there options to force jasper to compile and not parse out any tag to a new line?? Or is there a way around this??? Dean - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat connector for Apache 2.0.47 ... Please Help
My documentation contains how to setup Apache 2, Tomcat 4.1, JDK 1.4 and SSL. I will post this document later today. If all the members here could review this document and give me your honest opinion it would be appreciated. Please keep in mind that the document is compiled from many posts from marc.theaimsgroup.com, groups.google.com and from Apache.org. I am not intentionally delaying this document, but I need to change some of the settings as to not reveal our internal workings. Thank you for your patience and allowing me to post this information. Dean Searle Computing Oasis 989.245.7369 (p) 989.921.3904 (f) -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2003 4:32 PM To: Tomcat Users List Subject: Re: Tomcat connector for Apache 2.0.47 ... Please Help 20 pages? What else is in there besides connector configuration? Just curious John Bhaskar Marthi wrote: dean, As said by lot of members, it would be great if you can post your document in the mailing list. BTW, did anyone try resin? How does it compare to tomcat? Thanks, Bhaskar The information contained in this communication may be confidential or legally privileged and is intended only for the recipient named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication or its contents is strictly prohibited. If you have received this communication in error, please immediately advise the sender and delete the original and any copies from your computer system. - 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 connector for Apache 2.0.47 ... Please Help
Ok, Sorry for the delay but here is the documentation to help install Apache 2, Tomcat 4.1 and SSL. It is 23 pages long with illustrations. Just to let everyone know, I do not endorse or recommend anything in this documentation. All I know is I followed a lot of mail list trails and pieced everything together. As usual make a back up of your server or workstation before diving into this endeavor. Do not attempt this o your production server first, use a beta environment first to get comfortable with this doc and how everything fits together. Please read the documentation thoroughly before attempting to do the install. Make sure you have all files downloaded first. This should work for most versions pending the SSL versions. If you see a security hole anywhere in this doc please let me know immediately and I will change this doc. I appreciate it if you could email me first before calling me. I usually check email 6 times a day. I really need a life. But anyways here goes! I have to use a link to the document since there is a size limit on email of 10 bytes. www.computingoasis.com/apache please download this document to your computer. P.S. I am currently working on documenting on how to use IP based virtual hosts with Apache2 and Tomcat 4.1. This should be complete hopefully in the next week or two. I am also documenting the same steps for A FreeBSD 5.0 release install if there is anyone interested. Dean Searle Computing Oasis 989.245.7369 (p) 989.921.3904 (f) -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2003 4:32 PM To: Tomcat Users List Subject: Re: Tomcat connector for Apache 2.0.47 ... Please Help 20 pages? What else is in there besides connector configuration? Just curious John Bhaskar Marthi wrote: dean, As said by lot of members, it would be great if you can post your document in the mailing list. BTW, did anyone try resin? How does it compare to tomcat? Thanks, Bhaskar The information contained in this communication may be confidential or legally privileged and is intended only for the recipient named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication or its contents is strictly prohibited. If you have received this communication in error, please immediately advise the sender and delete the original and any copies from your computer system. - 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 connector for Apache 2.0.47 ... Please Help
Joe, You place the mod_jk2 file in the correct folder, however you have set up the parameters in your httpd.conf file incorrectly. The parameters you have are for the mod_jk module. For the mod_jk2 module you would need a workers2.properties file and a jk2.shm file. I have documented a full install of Apache 2.0.46 and Tomcat 4.1.26. on Windows 2000, but I have used the same instructions on my WinXP Pro with out any problems. If this mail list would not mind me sending this document please let me know. This is information I have compiled from numerous mail lists and debugged for many months. The document is about 20 pages long give or take. I don't have it in front of me at this time. I can post it as a pdf or RTF. Let me know which version is more acceptable. Dean -Original Message- From: Joe Mihalich [mailto:[EMAIL PROTECTED] Sent: Thu 9/25/2003 7:29 PM To: [EMAIL PROTECTED] Cc: Subject: Tomcat connector for Apache 2.0.47 ... Please Help Hi, I've installed Apache version 2.0.47, and tomcat version 4.1.27 on a windows xp box. I've downloaded the mod_jk2-2.0.43.dll connector, and put it in the modules directory Under apache. I configured tomcat to auto generate the mod_jk.conf file. All that is working ok.so it seems. I then modified the httpd.conf file as follows: LoadModule jk_module modules/mod_jk2-2.0.43.dll AddModule mod_jk.c JkWorkersFile \Program Files\Apache Group\jakarta-tomcat-4.1.27\conf\jk\workers.properties JkLogFile logs\mod_jk.log JkLogLevel debug And added this include, at the end of the file Include \Program Files\Apache Group\jakarta-tomcat-4.1.27\conf\auto\mod_jk.conf Now, when I try to start up apache, I'm getting this error: Syntax error on line 173 of C:/Program Files/Apache Group/Apache2/conf/httpd.conf: Can't locate API module structure `jk_module' in file C:/Program Files/Apache Gr oup/Apache2/modules/mod_jk2.dll: No error Line 173 is the LoadModule line above. Can someone please tell me why I'm getting this error? In the download Directory for mod_jk2-2.0.43.dll, it says that this file is only for Apache 2.0.43. I assume that it will work for 2.0.47.or is that the problem here? I can't Find 2.0.43 to download anymore. Also, I'm confused as to why all the other modules in the modules sub directory Have the .so extension. Aren't those unix shared library objects? Can they work On windows? Anyway, any help would be appreciated. Thanks, Joe
RE: jk2_init() Can't find child
Wouldn't that change be put in the workers2.properties file, since their using mod_jk2? -Original Message- From: Vikram Goyal [mailto:[EMAIL PROTECTED] Sent: Wed 9/17/2003 3:00 AM To: Tomcat Users List; Johan Louwers Cc: Subject: Re: jk2_init() Can't find child In your workers.properties under Apache conf put the following line: [shm] file=path-to-a-writeable-log-file-usually-under-apache-logs size=1048576 Restart Tomcat, wait 10 seconds and then restart Apache. If this does not work, then create the file as specified under the path and touch it. Try restarting again. HTH Vikram - Original Message - From: Johan Louwers [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 4:44 PM Subject: jk2_init() Can't find child Build JK2 now on solaris 9. Placed mod_jk2.so in the Apache module dir. Also added: LoadModule jk2_module modules/mod_jk2.so at the end of my httpd.conf file. Stop and start apache and try to open http://10.99.1.115/examples Nothing!! http://10.99.1.115 is giving me the basic apache site http://10.99.1.115:8080 is giving me the basic tomact site. So the connector is not working correctly Opend error_log and found the following: [error] jk2_init() Can't find child 1157 in scoreboard [error] shm.init(): No file [error] mod_jk child init 1 -2 I found the folowing hint on the internet related to this problem. I do not know how to work with this.. Reading true the posts this is the solution. What do they mean by this? You don't have a shared memory file configured in your properties files, or if you do, it isn't accessible or writable. Any clue how to make it work anybody? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: error during make JK2
I find that using gmake instead allows the comile to complete. I think that gmake is GNU's make. I have seen this problem in other postings and found one that recommended using gmake instead. I hope that this helps you. Dean -Original Message- From: Johan Louwers [mailto:[EMAIL PROTECTED] Sent: Tue 9/16/2003 7:37 AM To: Tomcat Users List Cc: Subject: error during make JK2 I am trying to build a JK2 connector on a solaris 9 box. I do: ./configure --with-apxs2=/usr/local/apache/bin/apxs \ --with-tomcat41=/usr/local/jakarta-tomcat-4.1.27 \ --with-java-home=/usr/local/j2sdk1.4.1_05 \ --with-jni \ --with-pcre All is fine, after that i do make and then the problem starts I get the following: #make list=' server/apache2'; \ for i in $list; do \ echo Making $target in $i; \ if test $i !=.; then \ (cd $i make) || exit 1; \ fi; \ done; Making in server/apache2 make: Fatal error in eader: Makefile, lin19: Unexpected end of line seen Current working directory /export/home/suntac/jakarta-tomcat-connectros-jk2-2.0.2-src/jk/native2/serve r/apache2 *** error code 1 Make fatak errir: command failed for target 'jk2-build' # Anybody any clue what the problem is? Regards, Johan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcate and Windows XP Question
Is Tomcat running on port 8080 or is it 8180 like in TC4.1.27. It's tough to tell because your log message is partially cut off where it tells you which ports it's listening to. If I remember correctly the [INFO] Http11Protocol line should tell you which port it is listening to. snip [INFO] Http11Protocol - -Starting Coyote HTTP/1 [INFO] ChannelSocket - -JK2: ajp13 listening on [INFO] JkMain - -Jk running ID=0 time=0/31 con jk2.properties [INFO] Catalina - -Server startup in 5218 ms /snip Dean Searle Computing Oasis 989.245.7369 (p) 989.921.3904 (f) -Original Message- From: Yann Cébron [mailto:[EMAIL PROTECTED] Sent: Sunday, September 07, 2003 3:15 PM To: [EMAIL PROTECTED] Subject: Re: Tomcate and Windows XP Question I installed Tomcate 5.0.9 on Windows XP Home edition. It seems the Tomcate starts sucessfully, but when I browse to http://127.0.0.1:8080, I get error message saying The page cannot be displayed There is a problem with the page you are trying to reach and it cannot be displayed. Here is what I did: snip/ This looks allright Seems like you're having a network/proxy configuration problem. From RUNNING.txt in your TOMCAT installation directory: * 3) The 'localhost' machine isn't found. This could happen if you're behind a proxy. If that's the case, make sure the proxy configuration for your browser knows that you shouldn't be going through the proxy to access the localhost. In Netscape, this is under Edit/Preferences - Advanced/Proxies, and in Internet Explorer, Tools - Internet Options - Connections - LAN Settings. * Yann - 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]
Problem building mod_jk2 on Freebsd 4.8-RELEASE
-D_REENTRANT -DCHUNK_SIZE=4096 -DREUSE_WORKER -DUSE_APACHE_MD5 /usr/ports/distfiles/jakarta-tomcat-connectors-4.1.27-src/jk/native/comm on/jk_md5.c [so] Output: [so] cc -c -I/usr/ports/distfiles/jakarta-tomcat-connectors-4.1.27-src/jk/native/co mmon -I/usr/local/include -I/usr/local/jdk1.4.1/jre/../include -g -W -D_REENTRANT -DCHUNK_SIZE=4096 -DREUSE_WORKER -DUSE_APACHE_MD5 /usr/ports/distfiles/jakarta-tomcat-connectors-4.1.27-src/jk/native/comm on/jk_md5.c -fPIC -DPIC -o /usr/ports/distfiles/jakarta-tomcat-connectors-4.1.27-src/jk/build/jk/ap ache2/common/.libs/jk_md5.o [so] StdErr: [so] /usr/ports/distfiles/jakarta-tomcat-connectors-4.1.27-src/jk/native/comm on/jk_md5.c:477: httpd.h: No such file or directory [so] /usr/ports/distfiles/jakarta-tomcat-connectors-4.1.27-src/jk/native/comm on/jk_md5.c:478: http_config.h: No such file or directory [so] /usr/ports/distfiles/jakarta-tomcat-connectors-4.1.27-src/jk/native/comm on/jk_md5.c:490: ap_md5.h: No such file or directory BUILD FAILED file:/usr/ports/distfiles/jakarta-tomcat-connectors-4.1.27-src/jk/native /build.xml:134: Compile failed /usr/ports/distfiles/jakarta-tomcat-connectors-4.1.27-src/jk/native/comm on/jk_md5.c Total time: 7 seconds ---END SNIPPET--- Am I missing something here or have I done something completely wrong? I apologize for the length of this email. Any help is appreciated. If you require more information please let me know. Thank you in advance. Dean Searle Computing Oasis 989.245.7369 (p) 989.921.3904 (f) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat fails to start under win2k-pro
Hi, I'm not a Windows person but have been asked to start a standalone Tomcat 4.1.24 server on a Win2k-pro machine. I did a very basic install on a linux box once before and it worked right out of the box. The windows install and startup is not playing nice. I did the install and *think* I have configured it to run on port 80 [this is necessary for our needs]. I set the JAVA_HOME variable and then ran the startup.bat file. I get a report that -Djava.endorsed.dirs= can not be found or is not understood -- sorry for the imprecise message but the machine is half a building away and I was distracted on the way back. I do know this is coming from the catalina.bat script though. I ran: catalina.bat start and received the same message. Dean...K... -- Dean Karres / [EMAIL PROTECTED] / itg.uiuc.edu Imaging Technology Group / Beckman Institute / University of Illinois 405 North Mathews / Urbana, IL 61801 USA - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat and log4j
OK, so I changed the file to /tmp/xxx.log and it still does not show up. Any other suggestions? Dean Shapira, Yoav wrote: Howdy, You're not going to have file write access to xxx.log from inside a war. Ensure the File parameter for your appender in log4j.properties points to a writeable location. Yoav Shapira Millennium ChemInformatics -Original Message- From: Dean A. Hoover [mailto:[EMAIL PROTECTED] Sent: Monday, June 30, 2003 8:03 PM To: Tomcat Users List Subject: Re: tomcat and log4j Thanks for responding. I'm just going by what it says in the log4j manual: The default log4j initialization is particularly useful in web-server environments. Under Tomcat 3.x and 4.x, you should place the |log4j.properties| under the |WEB-INF/classes| directory of your web-applications. Log4j will find the properties file and initialize itself. This is easy to do and it works. I am running jakarta-tomcat-4.1.24 on RH 9 using j2sdk1.4.1_02. I just did a jar tvf on my war file, which shows: [EMAIL PROTECTED] vendor]$ jar tvf build/vendor.war 0 Mon Jun 30 03:52:20 EDT 2003 META-INF/ 110 Mon Jun 30 03:52:20 EDT 2003 META-INF/MANIFEST.MF 0 Wed May 14 01:06:28 EDT 2003 images/ 0 Mon Jun 30 01:48:54 EDT 2003 include/ 0 Mon Jun 30 13:26:16 EDT 2003 css/ 1210 Wed May 14 01:06:28 EDT 2003 login.jsp 485 Fri Jun 27 15:32:30 EDT 2003 welcome.jsp 3008 Wed May 14 01:06:28 EDT 2003 images/email2.png 15284 Wed May 14 01:06:28 EDT 2003 images/email.jpg 1678 Mon Jun 30 02:16:40 EDT 2003 register2.jsp 6861 Mon Jun 30 01:48:54 EDT 2003 include/contactinfo.jspf 2287 Wed May 14 01:06:28 EDT 2003 contact.html 435 Fri Jun 27 15:38:58 EDT 2003 index.html 856 Mon Jun 30 13:25:12 EDT 2003 css/default.css 1729 Mon Jun 30 01:55:04 EDT 2003 register1.jsp 1181 Mon Jun 30 01:54:14 EDT 2003 register3.jsp 0 Mon Jun 30 03:52:22 EDT 2003 WEB-INF/ 0 Mon Jun 30 03:52:22 EDT 2003 WEB-INF/classes/ 3526 Mon Jun 30 02:58:14 EDT 2003 WEB-INF/classes/Login.class 7268 Mon Jun 30 03:03:26 EDT 2003 WEB-INF/classes/Register.class 333 Mon Jun 30 03:00:06 EDT 2003 WEB-INF/classes/log4j.properties 0 Mon Jun 30 03:52:22 EDT 2003 WEB-INF/lib/ 45386 Wed May 14 15:43:32 EDT 2003 WEB-INF/lib/activation.jar 305434 Wed May 14 15:43:32 EDT 2003 WEB-INF/lib/mail.jar 352668 Wed Jun 25 14:53:02 EDT 2003 WEB-INF/lib/log4j-1.2.8.jar 97589 Fri May 16 01:45:42 EDT 2003 WEB-INF/lib/universal-common.jar 12844 Fri Jun 27 03:06:54 EDT 2003 WEB-INF/lib/xxx.jar 352668 Mon Jun 30 03:52:06 EDT 2003 WEB-INF/lib/log4j-1.2.8.jar 1800 Wed May 21 09:53:30 EDT 2003 META-INF/context.xml 496 Wed May 14 02:08:08 EDT 2003 WEB-INF/web.xml This is what my log4j.properties file looks like: log4j.rootLogger=DEBUG, roll log4j.appender.roll=org.apache.log4j.RollingFileAppender log4j.appender.roll.File=xxx.log log4j.appender.roll.MaxFileSize=100KB log4j.appender.roll.MaxBackupIndex=1 log4j.appender.roll.layout=org.apache.log4j.PatternLayout log4j.appender.roll.layout.ConversionPattern=%d [%t] %-5p %F:%L - %m%n Everything compiles. I've used log4j in non-web apps. I have log statements in my servlet, and I cannot find a log file anywhere. What's up with that??? Yoav Shapira wrote: Howdy, It does work if you place logj4.properties in WEB-INF/classes and log4j.jar in WEB-INF/lib. If you could please be a bit more explicity when you say This does not seem to be working perhaps I could help more. Yoav Shapira --- Dean A. Hoover [EMAIL PROTECTED] wrote: I want to use log4j inside a tomcat application. According to the log4j short manual, all I have to do is drop my log4j.properties file into WEB-INF/classes and then I can just use it. This does not seem to be working. Can someone help? Thanks. Dean Hoover - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Yoav Shapira [EMAIL PROTECTED] __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.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] 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
Re: tomcat and log4j
Did that, don't see any errors. How exactly does log4j know to configure itself under tomcat, just by dropping the log4j.properties file in the right place??? Shapira, Yoav wrote: Howdy, Add -Dlog4j.debug=true to your JAVA_OPTS and check the tomcat logs. If log4j runs into errors you'll see them there. Yoav Shapira Millennium ChemInformatics -Original Message- From: Dean A. Hoover [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 02, 2003 2:34 PM To: Tomcat Users List Subject: Re: tomcat and log4j OK, so I changed the file to /tmp/xxx.log and it still does not show up. Any other suggestions? Dean Shapira, Yoav wrote: Howdy, You're not going to have file write access to xxx.log from inside a war. Ensure the File parameter for your appender in log4j.properties points to a writeable location. Yoav Shapira Millennium ChemInformatics -Original Message- From: Dean A. Hoover [mailto:[EMAIL PROTECTED] Sent: Monday, June 30, 2003 8:03 PM To: Tomcat Users List Subject: Re: tomcat and log4j Thanks for responding. I'm just going by what it says in the log4j manual: The default log4j initialization is particularly useful in web-server environments. Under Tomcat 3.x and 4.x, you should place the |log4j.properties| under the |WEB-INF/classes| directory of your web-applications. Log4j will find the properties file and initialize itself. This is easy to do and it works. I am running jakarta-tomcat-4.1.24 on RH 9 using j2sdk1.4.1_02. I just did a jar tvf on my war file, which shows: [EMAIL PROTECTED] vendor]$ jar tvf build/vendor.war 0 Mon Jun 30 03:52:20 EDT 2003 META-INF/ 110 Mon Jun 30 03:52:20 EDT 2003 META-INF/MANIFEST.MF 0 Wed May 14 01:06:28 EDT 2003 images/ 0 Mon Jun 30 01:48:54 EDT 2003 include/ 0 Mon Jun 30 13:26:16 EDT 2003 css/ 1210 Wed May 14 01:06:28 EDT 2003 login.jsp 485 Fri Jun 27 15:32:30 EDT 2003 welcome.jsp 3008 Wed May 14 01:06:28 EDT 2003 images/email2.png 15284 Wed May 14 01:06:28 EDT 2003 images/email.jpg 1678 Mon Jun 30 02:16:40 EDT 2003 register2.jsp 6861 Mon Jun 30 01:48:54 EDT 2003 include/contactinfo.jspf 2287 Wed May 14 01:06:28 EDT 2003 contact.html 435 Fri Jun 27 15:38:58 EDT 2003 index.html 856 Mon Jun 30 13:25:12 EDT 2003 css/default.css 1729 Mon Jun 30 01:55:04 EDT 2003 register1.jsp 1181 Mon Jun 30 01:54:14 EDT 2003 register3.jsp 0 Mon Jun 30 03:52:22 EDT 2003 WEB-INF/ 0 Mon Jun 30 03:52:22 EDT 2003 WEB-INF/classes/ 3526 Mon Jun 30 02:58:14 EDT 2003 WEB-INF/classes/Login.class 7268 Mon Jun 30 03:03:26 EDT 2003 WEB-INF/classes/Register.class 333 Mon Jun 30 03:00:06 EDT 2003 WEB-INF/classes/log4j.properties 0 Mon Jun 30 03:52:22 EDT 2003 WEB-INF/lib/ 45386 Wed May 14 15:43:32 EDT 2003 WEB-INF/lib/activation.jar 305434 Wed May 14 15:43:32 EDT 2003 WEB-INF/lib/mail.jar 352668 Wed Jun 25 14:53:02 EDT 2003 WEB-INF/lib/log4j-1.2.8.jar 97589 Fri May 16 01:45:42 EDT 2003 WEB-INF/lib/universal-common.jar 12844 Fri Jun 27 03:06:54 EDT 2003 WEB-INF/lib/xxx.jar 352668 Mon Jun 30 03:52:06 EDT 2003 WEB-INF/lib/log4j-1.2.8.jar 1800 Wed May 21 09:53:30 EDT 2003 META-INF/context.xml 496 Wed May 14 02:08:08 EDT 2003 WEB-INF/web.xml This is what my log4j.properties file looks like: log4j.rootLogger=DEBUG, roll log4j.appender.roll=org.apache.log4j.RollingFileAppender log4j.appender.roll.File=xxx.log log4j.appender.roll.MaxFileSize=100KB log4j.appender.roll.MaxBackupIndex=1 log4j.appender.roll.layout=org.apache.log4j.PatternLayout log4j.appender.roll.layout.ConversionPattern=%d [%t] %-5p %F:%L - %m%n Everything compiles. I've used log4j in non-web apps. I have log statements in my servlet, and I cannot find a log file anywhere. What's up with that??? Yoav Shapira wrote: Howdy, It does work if you place logj4.properties in WEB-INF/classes and log4j.jar in WEB-INF/lib. If you could please be a bit more explicity when you say This does not seem to be working perhaps I could help more. Yoav Shapira --- Dean A. Hoover [EMAIL PROTECTED] wrote: I want to use log4j inside a tomcat application. According to the log4j short manual, all I have to do is drop my log4j.properties file into WEB-INF/classes and then I can just use it. This does not seem to be working. Can someone help? Thanks. Dean Hoover --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Yoav Shapira [EMAIL PROTECTED] __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED
tomcat and log4j
I want to use log4j inside a tomcat application. According to the log4j short manual, all I have to do is drop my log4j.properties file into WEB-INF/classes and then I can just use it. This does not seem to be working. Can someone help? Thanks. Dean Hoover - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat and log4j
Thanks for responding. I'm just going by what it says in the log4j manual: The default log4j initialization is particularly useful in web-server environments. Under Tomcat 3.x and 4.x, you should place the |log4j.properties| under the |WEB-INF/classes| directory of your web-applications. Log4j will find the properties file and initialize itself. This is easy to do and it works. I am running jakarta-tomcat-4.1.24 on RH 9 using j2sdk1.4.1_02. I just did a jar tvf on my war file, which shows: [EMAIL PROTECTED] vendor]$ jar tvf build/vendor.war 0 Mon Jun 30 03:52:20 EDT 2003 META-INF/ 110 Mon Jun 30 03:52:20 EDT 2003 META-INF/MANIFEST.MF 0 Wed May 14 01:06:28 EDT 2003 images/ 0 Mon Jun 30 01:48:54 EDT 2003 include/ 0 Mon Jun 30 13:26:16 EDT 2003 css/ 1210 Wed May 14 01:06:28 EDT 2003 login.jsp 485 Fri Jun 27 15:32:30 EDT 2003 welcome.jsp 3008 Wed May 14 01:06:28 EDT 2003 images/email2.png 15284 Wed May 14 01:06:28 EDT 2003 images/email.jpg 1678 Mon Jun 30 02:16:40 EDT 2003 register2.jsp 6861 Mon Jun 30 01:48:54 EDT 2003 include/contactinfo.jspf 2287 Wed May 14 01:06:28 EDT 2003 contact.html 435 Fri Jun 27 15:38:58 EDT 2003 index.html 856 Mon Jun 30 13:25:12 EDT 2003 css/default.css 1729 Mon Jun 30 01:55:04 EDT 2003 register1.jsp 1181 Mon Jun 30 01:54:14 EDT 2003 register3.jsp 0 Mon Jun 30 03:52:22 EDT 2003 WEB-INF/ 0 Mon Jun 30 03:52:22 EDT 2003 WEB-INF/classes/ 3526 Mon Jun 30 02:58:14 EDT 2003 WEB-INF/classes/Login.class 7268 Mon Jun 30 03:03:26 EDT 2003 WEB-INF/classes/Register.class 333 Mon Jun 30 03:00:06 EDT 2003 WEB-INF/classes/log4j.properties 0 Mon Jun 30 03:52:22 EDT 2003 WEB-INF/lib/ 45386 Wed May 14 15:43:32 EDT 2003 WEB-INF/lib/activation.jar 305434 Wed May 14 15:43:32 EDT 2003 WEB-INF/lib/mail.jar 352668 Wed Jun 25 14:53:02 EDT 2003 WEB-INF/lib/log4j-1.2.8.jar 97589 Fri May 16 01:45:42 EDT 2003 WEB-INF/lib/universal-common.jar 12844 Fri Jun 27 03:06:54 EDT 2003 WEB-INF/lib/xxx.jar 352668 Mon Jun 30 03:52:06 EDT 2003 WEB-INF/lib/log4j-1.2.8.jar 1800 Wed May 21 09:53:30 EDT 2003 META-INF/context.xml 496 Wed May 14 02:08:08 EDT 2003 WEB-INF/web.xml This is what my log4j.properties file looks like: log4j.rootLogger=DEBUG, roll log4j.appender.roll=org.apache.log4j.RollingFileAppender log4j.appender.roll.File=xxx.log log4j.appender.roll.MaxFileSize=100KB log4j.appender.roll.MaxBackupIndex=1 log4j.appender.roll.layout=org.apache.log4j.PatternLayout log4j.appender.roll.layout.ConversionPattern=%d [%t] %-5p %F:%L - %m%n Everything compiles. I've used log4j in non-web apps. I have log statements in my servlet, and I cannot find a log file anywhere. What's up with that??? Yoav Shapira wrote: Howdy, It does work if you place logj4.properties in WEB-INF/classes and log4j.jar in WEB-INF/lib. If you could please be a bit more explicity when you say This does not seem to be working perhaps I could help more. Yoav Shapira --- Dean A. Hoover [EMAIL PROTECTED] wrote: I want to use log4j inside a tomcat application. According to the log4j short manual, all I have to do is drop my log4j.properties file into WEB-INF/classes and then I can just use it. This does not seem to be working. Can someone help? Thanks. Dean Hoover - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Yoav Shapira [EMAIL PROTECTED] __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.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: Client Certificates Authentication in Tomcat v4.1.24
Hi Bill Everyone else, For JSSE, you need to have the signer in cacerts at the moment for Tomcat to include it in the list of signers it wants. PureTLS allows you to configure the list (without being root), but other problems mean that you can only use it in TC 5 HEAD at the moment. Of course, the Tomcat support for CLIENT-CERT is pretty minimal at the moment. Only the (deprecated) MemoryRealm supports it (unless you write your own Realm). Thanks for the information regarding the cacerts file and JSSE. After checking the configuration, I discovered that I was missing the cacerts file and have installed it into the proper directory under the $JAVA_HOME/lib/security directory hierarchy. Unfortunately, this didn't change anything, as IE is still popping up a blank box for me to select my certificate. Does the CA certificate have to belong to any particular alias for JSSE to work. I have tried installing it as -trustcacerts and a normal import into the alias root and tomcat without any success. You don't need to do anything special to get the root CA into the keystore do you ?, I am simply taking the CA certificate as a .pem along with the key, converting them to .der and then doing an import. Do you happen to have any more ideas as to what is happening here or how I might be able to resolve it ?, I am quite happy to send a copy of the commands I am using off the list so that you can see the process that I am going through. Thanks in advance. Dean Thompson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Client Certificates Authentication in Tomcat v4.1.24
Hi!, I was wondering whether somebody might be able to explain what I am doing wrong with regards to the introduction of client certificates being used as a means for authentication under Tomcat v4.1.24 under Solaris 8, JDK 1.4.1_02. I have established my own little CA using OpenSSL 0.9.7b and have generated my own self-signed certificate as well as signing a certificate for my WWW server. I have imported the WWW certificate into the java keystore with a little import key program by Joachim Karrer Jens Carlberg. So far, everything is fine, I can download the CA certificate to my PC running Internet Explorer 6 and install it as a .p12 file. This allows me to access my WWW site via https without any problems. Problems start to appear when I generate a client certificate. Using the same CA, I generate and sign a certificate for a user. I then convert this certificate to a .p12 file using a command such as the following: openssl pkcs12 -export -in mycert.crt -in mykey.key -out mycert.p12 This can be loaded into the IE certificate manager as a personal certificate. IE will even confirm that the certificate is part of the chain belonging to the CA and that the certificate is trusted. Problems arise when I get tomcat to request a client certificate using the CLIENT-CERT authentication method. When tomcat hits this point it instructs IE to pop up a list of certificates that I can choose from. The problem is that the list is empty, there are no certificates to choose from. According to the reading that I have done, tomcat should send IE the WWW certificate issuer information, and IE should scan its database and present the certificates which came from the issuer. This doesn't happen. Can anyone possibly suggest a reason as to why this behaviour is happening and what the solution is to it? I would be interested to hear from anyone who has actually implemented client authentication with Tomcat, especially the generation of the CA and client certificates. Thanks in advance. Dean Thompson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Urgent : Can we restrict access to a directory in tomcat
There is no guaranteed way to stop someone directly access a gif image via a browser url, because this is how an image is accessed by the browser itself anyways. The browser just makes a HTTP get request to the web-server (in this case tomcat) requesting the URL of the image to be included in the web page. i.e. in a standard jsp/servlet response to a web request the image request is embedded in a img src=.../somedir/some-img.gif. This is going to cause a browser request directory to the directory containing the image, which can also be duplicated in the browser. The only potential method that can catch most (but not all) of these would be to create a separate image handling jsp/servlet, say imageHandler. When imageHanlder servlet recieves an image request it can check the http-referrer header and ensure that the referrer is the url of the page to which the images are supposed to load, i.e. is the page containing the images in /servlet/somepage then the http-referrer that imageHandler see should be able to checked that it is /servlet/somepage. Someone can circumvent this control by the Internet, but just manually setting this header themselves (via a program or the like) and then having access directly to the images You would then have to update all image referrences on the somepage servelt/jsp however to something like img src=/servlet/imagehandler?gif=somerefernce. On Mon, 2003-06-09 at 18:32, Syed Nayyer Kamran wrote: hi there, I want to restrict the user to access the images directly through the web. They should be able to access these images through web pages developed as jsp/servlet but should not be able to access these images displayed on page by copying the image url to the address bar. Is tomcat directly support this functionality. or any other solution. Thanks in advance for any solution of the problem. Nayyer Kamran
tomcat4-4.1.24-full.2jpp.noarch.rpm
I downloaded tomcat4-4.1.24-full.2jpp.noarch.rpm and installed. I do not find startup.sh anywhere in the installation. Has the way to start completely changed and there is no documentation telling us how to run it? Dean Hoover - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat4-4.1.24-full.2jpp.noarch.rpm
Thanks Brian, that got me a bit closer. I became root user and ran # /etc/rc.d/init.d/tomcat4 start Starting tomcat4: [ OK ] as you explained. When I went to check it out with my browser at http://localhost:8080 got connection refused. HTTP Status 500 - No Context configured to process this request Note: I have previously installed and used tomcat 4.0 from binary (not rpm) and was able to make progress. I wanted to go to 4.1 and use rpm. But it seems that documentation is nonexistent. Or am I missing something? brian janaszek wrote: I downloaded tomcat4-4.1.24-full.2jpp.noarch.rpm and installed. I do not find startup.sh anywhere in the installation. Has the way to start completely changed and there is no documentation telling us how to run it? I'm assuming this is on linux? Check your /etc/rc.d/init.d directory for tomcat4. If it's there, you should just run: bash$ /etc/rc.d/init.d/tomcat4 start The RPM should have also installed in the startup scripts in /usr/bin or /usr/sbin. b - 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: tomcat4-4.1.24-full.2jpp.noarch.rpm
Thanks anyway... I fell back to the tar.gz installation and everything went well. I would like to use rpm, but it does not seem quite ready for prime time to me. Dean brian janaszek wrote: Thanks Brian, that got me a bit closer. I became root user and ran # /etc/rc.d/init.d/tomcat4 start Starting tomcat4: [ OK ] as you explained. When I went to check it out with my browser at http://localhost:8080 got connection refused. HTTP Status 500 - No Context configured to process this request Obviously, Tomcat is up and running...you'll need to make some changes to your server.xml and web.xml files. Note: I have previously installed and used tomcat 4.0 from binary (not rpm) and was able to make progress. I wanted to go to 4.1 and use rpm. But it seems that documentation is nonexistent. Or am I missing something? Online docs are here: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/index.html It's been awhile since I installed 4.1 via RPM, but I did have to tweak a couple things to get the default web app up and running. b - 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: why has tomcat just crashed
Is localhost somehow removed from the host file?? (windows/systems32/drivers/etc/hosts)? It should be aliased to 127.0.0.1 with: 127.0.0.1 localhost Dean -Original Message- From: JS [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 10:57 AM To: [EMAIL PROTECTED] Subject: RE: why has tomcat just crashed They all work fine, google, bbc, msn. I am connected to my network at uni at the moment, but tomcat still doesnt start at home. I just read on a Java Developer forum to try using http://127.0.0.1:8080 It worked fine??? How come it doesn't work with localhost:8080?? Thanks Howdy, The error you posted seems to be network-related, not specific to tomcat. What happens when you try to do nslookup www.cnn.com (or whatever other site you like)? Yoav Shapira Millennium ChemInformatics -Original Message- From: JS [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 1:28 PM To: [EMAIL PROTECTED] Subject: why has tomcat just crashed Hi All, I recently began using the Java Web Services Devloper Pack (JWSDP) installation of tomcat, which had been running fine up until now.I changed the server.xml file briefly to try and install a new context for my app, but later replaced my changes with the original backup of the server.xml file. Now tomcat is refusing to start up, any idea why this is the case? Heres the error The requested URL could not be retrieved --- - While trying to retrieve the URL: http://localhost:8080/ The following error was encountered: Unable to determine IP address from host name for localhost The dnsserver returned: Name Error: The domain name does not exist. This means that: The cache was not able to resolve the hostname presented in the URL. Check if the address is correct. Your cache administrator is webmaster. Regards JS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Configuring Tomcat to use a JDBC Realm
Isn't mysql a client program? If so, I can connect with the user/pw. Tarun Ramakrishna Elankath wrote: Seems like an access problem to me. Dean, did you try connecting to the server from a mysql client with the given username/password to check whether you are able to connect ? On Sat, 2003-03-29 at 07:50, Dean A. Hoover wrote: Can you be a little more specific? I'm not a mysql expert. - 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]
Configuring Tomcat to use a JDBC Realm
I am attempting to use JDBC Realm as described in the Apress book by James Goodwill. My os is RH 8.0. I'm using MySQL 4.0.12 and Connector/J 3.06. I am using Tomcat 4.0.6. I set up a tomcatusers database and a test user as per the book. I dropped mysql-connector-java-3.0.6-stable-bin.jar into $TOMCAT_HOME/common/lib I modified the server.xml file as follows: !-- Realm className=org.apache.catalina.realm.MemoryRealm / -- !-- Replace the above Realm with one of the following to get a Realm stored in a database and accessed via JDBC -- Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=com.mysql.jdbc.Driver connectionURL=jdbc:mysql://localhost/tomcatusers?user=test;password=test userTable=users userNameCol=user_name userCredCol=user_pass userRoleTable=user_roles roleNameCol=role_name I then attempt to go to http://localhost:8080/apress/login.jsp in my mozilla browser. Nothing happens. I go to check for a clue in the logs. This is what I get: - Root Cause - java.sql.SQLException: Server configuration denies access to data source at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:392) at com.mysql.jdbc.Connection.createNewIO(Connection.java:1511) at com.mysql.jdbc.Connection.init(Connection.java:485) at com.mysql.jdbc.Driver.connect(Driver.java:341) at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:548) at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:613) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343) at org.apache.catalina.core.StandardService.start(StandardService.java:388) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) Anyone got any ideas how I can fix this? Thanks. Dean Hoover - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Configuring Tomcat to use a JDBC Realm
Can you be a little more specific? I'm not a mysql expert. Galbayar Dorjgotov wrote: check mysql port -Original Message- From: Dean A. Hoover [mailto:[EMAIL PROTECTED] Sent: Saturday, March 29, 2003 9:20 AM To: [EMAIL PROTECTED] Subject: Configuring Tomcat to use a JDBC Realm I am attempting to use JDBC Realm as described in the Apress book by James Goodwill. My os is RH 8.0. I'm using MySQL 4.0.12 and Connector/J 3.06. I am using Tomcat 4.0.6. I set up a tomcatusers database and a test user as per the book. I dropped mysql-connector-java-3.0.6-stable-bin.jar into $TOMCAT_HOME/common/lib I modified the server.xml file as follows: !-- Realm className=org.apache.catalina.realm.MemoryRealm / -- !-- Replace the above Realm with one of the following to get a Realm stored in a database and accessed via JDBC -- Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=com.mysql.jdbc.Driver connectionURL=jdbc:mysql://localhost/tomcatusers?user=test;password=test userTable=users userNameCol=user_name userCredCol=user_pass userRoleTable=user_roles roleNameCol=role_name I then attempt to go to http://localhost:8080/apress/login.jsp in my mozilla browser. Nothing happens. I go to check for a clue in the logs. This is what I get: - Root Cause - java.sql.SQLException: Server configuration denies access to data source at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:392) at com.mysql.jdbc.Connection.createNewIO(Connection.java:1511) at com.mysql.jdbc.Connection.init(Connection.java:485) at com.mysql.jdbc.Driver.connect(Driver.java:341) at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:548) at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:613) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343) at org.apache.catalina.core.StandardService.start(StandardService.java:388) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) Anyone got any ideas how I can fix this? Thanks. Dean Hoover - 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]
Tomcat 4.1.18 not finding JAR's under WEB_INF/lib directory
I am trying to upgrade from 4.0.6 to 4.1.18. I can get the existing webapp to run correctly, when run it with both CATALINA_HOME and CATALINA_BASE set to the same directory, however if I try and start tomcat with CATALINA_HOME and CATALINA_BASE being set differently, I get The system cannot find the path Specified error (see below). The root cause indicates that it is a missing JAR file, but that file exists under the CATALINA_BASE/edgile/WEB-INF/lib directory, but for some reason is not being found. It is found and correctly started when I move the edgile webapp to the webapps directory under CATALINA_HOME. It is not an option to run it with CATALINA_HOME and CATALINA_BASE set the same. Thanks, Dean Errors reported in Tomcat Logs: 2003-03-26 07:41:56 HostConfig[localhost]: Deploying web application directory edgile 2003-03-26 07:41:56 StandardHost[localhost]: Installing web application at context path /edgile from URL file:C:\dean\dev\edgile\admin\webapps\edgile 2003-03-26 07:41:56 WebappLoader[/edgile]: Deploying class repositories to work directory C:\dean\dev\edgile\admin\work\Standalone\localhost\edgile 2003-03-26 07:41:56 WebappLoader[/edgile]: Deploy class files /WEB-INF/classes to C:\dean\dev\edgile\admin\webapps\edgile\WEB-INF\classes 2003-03-26 07:41:56 WebappLoader[/edgile]: Deploy JAR /WEB-INF/lib/batik-awt-util.jar to C:\dean\dev\edgile\admin\webapps\edgile\WEB-INF\lib\batik-awt-util.jar 2003-03-26 07:41:56 WebappLoader[/edgile]: Deploy JAR /WEB-INF/lib/batik-dom.jar to C:\dean\dev\edgile\admin\webapps\edgile\WEB-INF\lib\batik-dom.jar 2003-03-26 07:41:56 WebappLoader[/edgile]: Deploy JAR /WEB-INF/lib/batik-svggen.jar to C:\dean\dev\edgile\admin\webapps\edgile\WEB-INF\lib\batik-svggen.jar 2003-03-26 07:41:56 WebappLoader[/edgile]: Deploy JAR /WEB-INF/lib/batik-util.jar to C:\dean\dev\edgile\admin\webapps\edgile\WEB-INF\lib\batik-util.jar 2003-03-26 07:41:56 WebappLoader[/edgile]: Deploy JAR /WEB-INF/lib/batik-xml.jar to C:\dean\dev\edgile\admin\webapps\edgile\WEB-INF\lib\batik-xml.jar 2003-03-26 07:41:56 WebappLoader[/edgile]: Deploy JAR /WEB-INF/lib/cewolf.jar to C:\dean\dev\edgile\admin\webapps\edgile\WEB-INF\lib\cewolf.jar 2003-03-26 07:41:56 WebappLoader[/edgile]: Deploy JAR /WEB-INF/lib/jcommon-0.7.1.jar to C:\dean\dev\edgile\admin\webapps\edgile\WEB-INF\lib\jcommon-0.7.1.jar 2003-03-26 07:41:56 WebappLoader[/edgile]: Deploy JAR /WEB-INF/lib/jfreechart-0.9.4.jar to C:\dean\dev\edgile\admin\webapps\edgile\WEB-INF\lib\jfreechart-0.9.4.jar 2003-03-26 07:41:56 ContextConfig[/edgile] Exception processing JAR at resource path /WEB-INF/lib/batik-util.jar javax.servlet.ServletException: Exception processing JAR at resource path /WEB-INF/lib/batik-util.jar at org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:930) at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java: 243) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:166) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3567) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8 21) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j ava:257) at org.apache.catalina.core.StandardHost.install(StandardHost.java:772) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:569 ) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:411) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:879) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:368) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:166) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main
RE: Can Tomcat 4 be configured to listen on two ports simultaneously
Are you starting tomcat as root? You will need to start as root in order to be able to bind to port 80 on Linux (any port under 1024). Dean -Original Message- From: Marina McGale [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2003 9:43 AM To: [EMAIL PROTECTED] Subject: Can Tomcat 4 be configured to listen on two ports simultaneously Hi. I am using Tomcat 4.1.12 and would like it to listen on both port 80 and 8080 because I have already sent out URLs with 8080 in them but want to remove the 8080 for the future (and still want everyone to be able to access my apps). I had tried adding another Connector for port 80 for Tomcat running stand-alone in the server.xml file (so there are two Connectors - one each for port 80 and 8080) and it worked on my localhost (Windows) machine but not when I tried the same thing on Redhat 8. I do not have Apache running so there is no conflict between it and Tomcat trying to listen on the same port. Thanks for any help. M. - 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: DTD problem starting tomcat 4
That helped. But that was the DOCTYPE since August. Why did it work before? Has something changed at Sun? --Dean On Thu, 9 Jan 2003, Turner, John wrote: I'm pretty sure it's you, not Tomcat. My web.xml is different: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; Note Sun Microsystems, Inc., not Sun Micro as it is in yours. Or is that an edit/typo? John -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DTD problem starting tomcat 4
Since about the 4th of January, I've been getting an Invalid PUBLIC ID error on the following web.xml file: This app has been working for quite a while, and hasn't been changed. Likewise, tomcat4 hasn't been changed. When I try the java.sun.com url, it works. Whats up? Also, I couldn't figure out how to make it load a local dtd file. It seems unwise to depend on remote links for critical services... (it seems unwise to use tomcat, if it will break without modification... I am somewhat alarmed.) ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Micro//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app /web-app Tomcat was restarted several times in december, without complaints. vxml.av8.net_log.2003-01-04.txt:2003-01-04 19:40:13 Invalid PUBLIC ID: -//Sun Micro//DTD Web Application 2.3//EN vxml.av8.net_log.2003-01-09.txt:2003-01-09 19:50:26 Invalid PUBLIC ID: -//Sun Micro//DTD Web Application 2.3//EN vxml.av8.net_log.2003-01-09.txt:2003-01-09 19:55:57 Invalid PUBLIC ID: -//Sun Micro//DTD Web Application 2.3//EN vxml.av8.net_log.2003-01-09.txt:2003-01-09 20:39:17 Invalid PUBLIC ID: -//Sun Micro//DTD Web Application 2.3//EN -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
passing environment variables to Tomcat
Hi, I'm using Tomcat 4.0.3, we need to pass an environment variable to Tomcat. In essence, we are trying to define the environment variable, i.e.: DEV, QA, PROD, etc. Currently, we do this by modifying the catalina.sh and add this to the runtime command -Dweb.env=$WEB_ENV \ However, can this be done by modifying the server.xml instead? I don't believe we will have write access to catalina.sh in the future. Thanks, Dean -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Environment Variable
Hi, I have a quick question. I would like my application to know what kind of environment (DEV, QA, PROD) it's in by looking at Tomcat. Does anyone know how to do that? Thanks, Dean Chen -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]