AW: How to close a response?
One idea for the magicMethod: (Just PseudoCode has never seen a compiler) synchronized (session) { String mMagicSessionToken = session.get(MagicToken); String mMagicRequestToken = request.getParameter(MagicToken); String mRandom = GetRandomNumber.toString(); if ((mMagicSessionToken != null) (! mMagicSessionToken.equals(mMagicRequestToken))) { // resubmit of the same page // do what ever you want, when this happens return; // throw new SomeException() } session.put(MagicToken, mRandom); } // create links or forms with MagicToken=mRandom That's not the complete solution, but I hope you get the idea. -Ursprungliche Nachricht- Von: Jenya Strokin [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 18. Juli 2002 18:10 An: Tomcat Users List Betreff: RE: How to close a response? Guys.. it works now, but I don't understand why))) I change code to synchronize the sharedSassionBean and didn't put any magic methods for checking, and Servlet never send the same data twice. But process still running two times. So I still need to write this magic method. Thanks for suggestions and help, Jenya -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 18, 2002 11:25 AM To: Tomcat Users List Subject: Re: How to close a response? There is no need to synchronize the request object. It will not be used in multiple threads concurrently. What you really need is synchronization of the session to prevent processing of the double submit. If the user submits twice, then 2 different requests may be executed in different threads. Closing response streams don't help the main goal of preventing the double submit. This may be an alternative: synchronized(sharedSessionBean){ if (magicMethodToCheckForDoubleProcessingYouNeedToWrite()){ abstractBean.setSharedSession(sharedSessionBean); abstractBean.setRequest(request); abstractBean.setResponse(response); abstractBean.setServlet(this); abstractBean.process(); abstractBean.footerProcess(); } else { //goto double submit error page } } -Tim Jenya Strokin wrote: I'm using servlet. But if you know way how to do this from JSP, please share it.)) This is my method wich called from doGet and doPost: public void doGetPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { /*-- If user clicks link twice, browser will get the same screen two times mixed. So, I need synchronized processes. But after that browser will get the same screen one after another. So I need close output after I process first request, and second request can not write to output string. */ synchronized(request){ abstractBean.setSharedSession(sharedSessionBean); abstractBean.setRequest(request); abstractBean.setResponse(response); abstractBean.setServlet(this); abstractBean.process(); abstractBean.footerProcess(); //-- I'm trying to close output here, but second process write its data anyway // out.close(); response.getWriter().close(); } } If this information is not enough, I'll provide more. Thanks for any help. -Original Message- From: Durham David Cntr 805CSS/SCBE [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 18, 2002 10:18 AM To: Tomcat Users List Subject: RE: How to close a response? Need more detail about your problem. Are you having a problem with JSP? -Original Message- From: Jenya Strokin [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 18, 2002 9:17 AM To: [EMAIL PROTECTED] Subject: How to close a response? Hi, I need to close the response completely. In some case I need to avoid any process write to response output. Using response.getOutputStream().close(); response.getWriter().close(); response.reset(); do not help. Thanks for any suggestions. Jenya --- Introducing NetZero Long Distance Unlimited Long Distance only $29.95/ month! Sign Up Today! www.netzerolongdistance.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] --- Introducing NetZero Long Distance Unlimited Long Distance only $29.95/ month! Sign Up Today! www.netzerolongdistance.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL
Custom Tomcat Container Authentication?
Can I create my own custom authentication modules by implementing the Role interface inside tomcat or extending some other classes? Is there any documentation on this subject? There only seem to be a few methods that need to be implemented so that the container can communicate properly. My problem is that I have a web server that sits outside of our firewall, and I don't want it to have any direct connection to the internal company app server or database except through a proxy class which I have defined. I have all the users and their roles set up internally in a database which are retrieved through ejb's returning value objects. Anybody run into this problem? Thanks Nic -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Apache/Tomcat/Mod_jk = setKeepAlive() in Ajp13Connector.run = NoSuchMethodError
Hello, I'm working with nt4, apache2.0.39,tomcat4.04,jdk1.22,mod_jk1.2 and I can start everything up but when browsing to a jsp page gives me the following error: Starting service Tomcat-Standalone Apache Tomcat/4.0.4 Starting service Tomcat-Apache Apache Tomcat/4.0.4 java.lang.NoSuchMethodError: java.net.Socket: method setKeepAlive(Z)V not found at org.apache.ajp.tomcat4.Ajp13Connector.run(Ajp13Connector.java, Compiled Code) at java.lang.Thread.run(Thread.java:479) Below I've placed my httpd.conf, workers.properties, server.xml and mod_jk.log Greetings, Gunter. My httpd.conf: IfModule !mod_jk.c LoadModule jk_module c:/Apache/modules/mod_jk.dll /IfModule JkWorkersFile c:/progra~1/apache~1.0/conf/jk/workers.properties JkLogFile c:/progra~1/apache~1.0/logs/mod_jk.log JkLogLevel debug JkMount /dynapage/* ajp13 JkMount /*.jsp ajp13 JkMount /examples/* ajp13 My workers.properties: workers.catalina_home=c:\progra~1\apache~1.0 workers.tomcat_home=c:\progra~1\apache~1.0 workers.java_home=C:\jdk122 ps=\ worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 #worker.ajp13.lbfactor=1 #worker.ajp14.port=8010 #worker.ajp14.host=localhost #worker.ajp14.type=ajp14 #worker.ajp14.secretkey=secret #worker.ajp14.credentials=myveryrandomentropy #worker.ajp14.lbfactor=1 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=ajp13 worker.inprocess.type=jni worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar worker.inprocess.cmd_line=start worker.inprocess.jvm_lib=C:\jdk122\jre\bin\classic\jvm.dll worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr My server.xml: Server port=8005 shutdown=SHUTDOWN debug=0 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=c:\Apache\modules\ / Service name=Tomcat-Standalone Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ Connector className=org.apache.catalina.connector.http.HttpConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=6/ Engine name=Standalone defaultHost=localhost debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true/ Realm className=org.apache.catalina.realm.MemoryRealm / Host name=localhost debug=0 appBase=webapps unpackWARs=true Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true / Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=common/ Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ Context path=/manager docBase=manager debug=0 privileged=true/ Context path=/examples docBase=examples debug=0 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_examples_log. suffix=.txt timestamp=true/ Ejb name=ejb/EmplRecord type=Entity home=com.wombat.empl.EmployeeRecordHome remote=com.wombat.empl.EmployeeRecord/ Environment name=maxExemptions type=java.lang.Integer value=15/ Parameter name=context.param.name value=context.param.value override=false/ Resource name=jdbc/EmployeeAppDb auth=SERVLET type=javax.sql.DataSource/ ResourceParams name=jdbc/EmployeeAppDb parameternameuser/namevaluesa/value/parameter parameternamepassword/namevalue/value/parameter parameternamedriverClassName/name valueorg.hsql.jdbcDriver/value/parameter parameternamedriverName/name valuejdbc:HypersonicSQL:database/value/parameter /ResourceParams Resource name=mail/Session auth=Container type=javax.mail.Session/ ResourceParams name=mail/Session parameter namemail.smtp.host/name valuelocalhost/value
AW: Apache/Tomcat/Mod_jk = setKeepAlive() in Ajp13Connector.run = NoSuchMethodError
The first thing that puzzles me is that you have org.apache.catalina.connector.warp.WarpConnector in server.xml although you are talking about mod_jk. I don't have an idea how this might cause your error message. -Ursprüngliche Nachricht- Von: Gunter D'Hondt [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 19. Juli 2002 09:09 An: 'Tomcat Users List' Betreff: Apache/Tomcat/Mod_jk = setKeepAlive() in Ajp13Connector.run = NoSuchMethodError I'm working with nt4, apache2.0.39,tomcat4.04,jdk1.22,mod_jk1.2 and I can start everything up but when browsing to a jsp page gives me the following error: snip/ Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true appBase=webapps acceptCount=10 debug=0/ Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=apache_log. suffix=.txt timestamp=true/ Realm className=org.apache.catalina.realm.MemoryRealm / /Engine /Service /Server -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache/Tomcat/Mod_jk = setKeepAlive() in Ajp13Connector.run = NoSuchMethodError
I removed the WarpConnector but still the same error occurs... do I have to place a ajp13 connector in my Service name=Tomcat-Apache? Gunter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ralph Einfeldt Sent: vrijdag 19 juli 2002 09:23 To: Tomcat Users List Subject: AW: Apache/Tomcat/Mod_jk = setKeepAlive() in Ajp13Connector.run = NoSuchMethodError The first thing that puzzles me is that you have org.apache.catalina.connector.warp.WarpConnector in server.xml although you are talking about mod_jk. I don't have an idea how this might cause your error message. -Ursprüngliche Nachricht- Von: Gunter D'Hondt [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 19. Juli 2002 09:09 An: 'Tomcat Users List' Betreff: Apache/Tomcat/Mod_jk = setKeepAlive() in Ajp13Connector.run = NoSuchMethodError I'm working with nt4, apache2.0.39,tomcat4.04,jdk1.22,mod_jk1.2 and I can start everything up but when browsing to a jsp page gives me the following error: snip/ Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true appBase=webapps acceptCount=10 debug=0/ Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=apache_log. suffix=.txt timestamp=true/ Realm className=org.apache.catalina.realm.MemoryRealm / /Engine /Service /Server -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] attachment: winmail.dat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: Apache/Tomcat/Mod_jk = setKeepAlive() in Ajp13Connector.run = NoSuchMethodError
As i'm not a user of mod_jk, I won't burn my mouth. Maybe this link helps to answer your question: http://village.flashnet.it/users/fn048069/files/readme/jakarta.txt -Ursprüngliche Nachricht- Von: Gunter D'Hondt [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 19. Juli 2002 09:30 An: 'Tomcat Users List' Betreff: RE: Apache/Tomcat/Mod_jk = setKeepAlive() in Ajp13Connector.run = NoSuchMethodError I removed the WarpConnector but still the same error occurs... do I have to place a ajp13 connector in my Service name=Tomcat-Apache? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache/Tomcat/Mod_jk = setKeepAlive() in Ajp13Connector.run = NoSuchMethodError
Is there anybody who had the same problem and can help me out coz I'm out of possibilities now... Greetings, Gunter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ralph Einfeldt Sent: vrijdag 19 juli 2002 09:51 To: Tomcat Users List Subject: AW: Apache/Tomcat/Mod_jk = setKeepAlive() in Ajp13Connector.run = NoSuchMethodError As i'm not a user of mod_jk, I won't burn my mouth. Maybe this link helps to answer your question: http://village.flashnet.it/users/fn048069/files/readme/jakarta.txt -Ursprüngliche Nachricht- Von: Gunter D'Hondt [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 19. Juli 2002 09:30 An: 'Tomcat Users List' Betreff: RE: Apache/Tomcat/Mod_jk = setKeepAlive() in Ajp13Connector.run = NoSuchMethodError I removed the WarpConnector but still the same error occurs... do I have to place a ajp13 connector in my Service name=Tomcat-Apache? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] attachment: winmail.dat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
getRemoteHost()/Addr() do always return localhost/127.0.0.1
Hi, can anyone tell me if it^s normal with TC 3.3.x to get localhost/127.0.0.1 instead of the correct remote ip with response.getRemoteHost/Addr() It's the default state of this tc implementation since the first day. Examples in /examples have the same problem. TC 3.3.x Linux RH 7.2 Ihr Support-Team POWER-NETZ® Full-Service-Provider Online-Support: Support: 0190 - 15 11 15 (EUR 0,62/Min) http://Support.Power-Netz.de (kostenlos) http://Support.Power-Netz.com (kostenlos) Vertrieb Tel: 01805 - 57 35 57 (EUR 0,12/Min.) Vertrieb Fax: 01805 - 57 45 57 (EUR 0,12/Min.) Power-Netz Am Plan 1 37581 Bad Gandersheim http://www.Power-Netz.de mailto:[EMAIL PROTECTED] +=+ --I N F O C E N T E R-- + Senden Sie eine leere e-mail an: + Providerwechsel: mailto:[EMAIL PROTECTED] + Daten/Preise Webspace: mailto:[EMAIL PROTECTED] + Reseller-Programm: mailto:[EMAIL PROTECTED] + Dedizierte Server: mailto:[EMAIL PROTECTED] + Adult/Erotikserver: mailto:[EMAIL PROTECTED] + Domainpreise: mailto:[EMAIL PROTECTED] + Domain-Nameserver: mailto:[EMAIL PROTECTED] + SSL-Zertifikate: mailto:[EMAIL PROTECTED] + Geschaeftsbedingungen: mailto:[EMAIL PROTECTED] + =+ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Question about upgrading Tomcat
Hi All, This is my first question post to this mailing list. I'm trying to upgrade the application written for tomcat 3.1.x to 3.2.4 or 3.3.1 But I found that there are codes written specifically for v3.1 and they are deprecated. The following code segment is from a very first servlet called for the web site. . . . import javax.servlet.GenericServlet; import javax.servlet.ServletConfig; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; import javax.servlet.ServletException; import org.apache.tomcat.core.Context; import org.apache.tomcat.core.ServletContextFacade; public class InitServlet extends GenericServlet { private static Hashtable obj_table; private static String CONFIG_NAME = xxx.properties; public InitServlet() { super(); } public void init(ServletConfig conf) throws ServletException { super.init(conf); obj_table = new Hashtable(); // Get the context of this servlet Context context = ((ServletContextFacade) conf.getServletContext()). getRealContext(); obj_table.put(context.getClass().getName(), context); String conf_filename = context.getContextManager().getTomcatHome() + File.separator + conf + File.separator + CONFIG_NAME; if (! new File(conf_filename).exists()) { // Configuration file doesn't exist; tell user log(Configuration file: + conf_filename + does not exist); log(Please make sure file exist for the xxx application); System.err.println(Configuration file: + conf_filename + does not exist); return; } . . . } . . . Since the org.apache.tomcat.core.Context and org.apache.tomcat.core.ServletContextFacade have been deprecated, do you know how should I modify the servlet to make it work in 3.2 or 3.3? Any suggestion, advice, comment, or pointers are greatly appreciated. Thanks, Eric Leung
AW: getRemoteHost()/Addr() do always return localhost/127.0.0.1
Hi, can anyone tell me if it^s normal with TC 3.3.x to get localhost/127.0.0.1 instead of the correct remote ip with response.getRemoteHost/Addr() It's the default state of this tc implementation since the first day. Examples in /examples have the same problem. TC 3.3.x Linux RH 7.2 Bug found in TC 3.3a -- bugzilla Solution: downloading of the TC 3.3.2 nightly build from 8.7.2002 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
How to deploy writeable files?
Folks, We need to deploy some writeable text files in our J2EE app. The normal deployment procedure is via a WAR file. My understanding is that the container (currently Tomcat 4.0.4, but may change) does not guarantee the place where it unpacks the WAR, hence one cannot assume the final location of the files. Is this the case? What is the normal approach to deploying writeable files in a WAR? Thanks in advance Adam Lipscombe -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
unsubscribe does not work
I can't unsubscribe from this mailing list. Please tell me how to do it... Michenaud Laurent - Adeuza - [ Développeur Web - Administrateur Réseau ] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: unsubscribe does not work
Hi you should just send a empty mail to To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] -Original Message- From: Laurent Michenaud [mailto:[EMAIL PROTECTED]] Sent: Friday, July 19, 2002 5:36 PM To: [EMAIL PROTECTED] Subject: unsubscribe does not work I can't unsubscribe from this mailing list. Please tell me how to do it... Michenaud Laurent - Adeuza - [ Développeur Web - Administrateur Réseau ] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: unsubscribe does not work
I receive a message to confirm that i want to unsubscribe. I reply but the reply doesnot work : i receive this mail : Hi. This is the qmail-send program at nagoya.betaversion.org. I'm afraid I wasn't able to deliver your message to the following addresses. This is a permanent error; I've given up. Sorry it didn't work out. [EMAIL PROTECTED]: Sorry, no mailbox here by that name. (#5.1.1) --- Below this line is a copy of the message. Return-Path: [EMAIL PROTECTED] Received: (qmail 10053 invoked by uid 98); 19 Jul 2002 09:48:35 - Delivered-To: [EMAIL PROTECTED] X-Antivirus: nagoya (v4198 created Apr 24 2002) Received: (qmail 10034 invoked from network); 19 Jul 2002 09:48:34 - Received: from daedalus.apache.org (HELO apache.org) (63.251.56.142) by nagoya.betaversion.org with SMTP; 19 Jul 2002 09:48:34 - Received: (qmail 49922 invoked by uid 500); 19 Jul 2002 09:48:05 - Delivered-To: [EMAIL PROTECTED] Received: (qmail 49915 invoked from network); 19 Jul 2002 09:48:05 - Received: from unknown (HELO abraracourcix.adeuza.fr) (80.65.236.42) by daedalus.apache.org with SMTP; 19 Jul 2002 09:48:05 - X-MimeOLE: Produced By Microsoft Exchange V6.0.4712.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Date: Fri, 19 Jul 2002 11:48:16 +0200 Message-ID: [EMAIL PROTECTED] X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Index: AcIvCWgMYk4rAtTLQEOXZtYbm4uvBA== From: Laurent Michenaud [EMAIL PROTECTED] To: tomcat-user-uc.1027072067.lcbonmnbgecebniojnno-lmichenaud= [EMAIL PROTECTED] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N -Message d'origine- De : Eric Leung [mailto:[EMAIL PROTECTED]] Envoyé : vendredi 19 juillet 2002 11:37 À : 'Tomcat Users List' Objet : RE: unsubscribe does not work Hi you should just send a empty mail to To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] -Original Message- From: Laurent Michenaud [mailto:[EMAIL PROTECTED]] Sent: Friday, July 19, 2002 5:36 PM To: [EMAIL PROTECTED] Subject: unsubscribe does not work I can't unsubscribe from this mailing list. Please tell me how to do it... Michenaud Laurent - Adeuza - [ Développeur Web - Administrateur Réseau ] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: unsubscribe does not work
double check the send to address, it's a long one, my outlook seems to cut out the last part also -Original Message- From: Laurent Michenaud [mailto:[EMAIL PROTECTED]] Sent: Friday, July 19, 2002 5:51 PM To: Tomcat Users List Subject: RE: unsubscribe does not work I receive a message to confirm that i want to unsubscribe. I reply but the reply doesnot work : i receive this mail : Hi. This is the qmail-send program at nagoya.betaversion.org. I'm afraid I wasn't able to deliver your message to the following addresses. This is a permanent error; I've given up. Sorry it didn't work out. [EMAIL PROTECTED]: Sorry, no mailbox here by that name. (#5.1.1) --- Below this line is a copy of the message. Return-Path: [EMAIL PROTECTED] Received: (qmail 10053 invoked by uid 98); 19 Jul 2002 09:48:35 - Delivered-To: [EMAIL PROTECTED] X-Antivirus: nagoya (v4198 created Apr 24 2002) Received: (qmail 10034 invoked from network); 19 Jul 2002 09:48:34 - Received: from daedalus.apache.org (HELO apache.org) (63.251.56.142) by nagoya.betaversion.org with SMTP; 19 Jul 2002 09:48:34 - Received: (qmail 49922 invoked by uid 500); 19 Jul 2002 09:48:05 - Delivered-To: [EMAIL PROTECTED] Received: (qmail 49915 invoked from network); 19 Jul 2002 09:48:05 - Received: from unknown (HELO abraracourcix.adeuza.fr) (80.65.236.42) by daedalus.apache.org with SMTP; 19 Jul 2002 09:48:05 - X-MimeOLE: Produced By Microsoft Exchange V6.0.4712.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Date: Fri, 19 Jul 2002 11:48:16 +0200 Message-ID: [EMAIL PROTECTED] X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Index: AcIvCWgMYk4rAtTLQEOXZtYbm4uvBA== From: Laurent Michenaud [EMAIL PROTECTED] To: tomcat-user-uc.1027072067.lcbonmnbgecebniojnno-lmichenaud= [EMAIL PROTECTED] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N -Message d'origine- De : Eric Leung [mailto:[EMAIL PROTECTED]] Envoyé : vendredi 19 juillet 2002 11:37 À : 'Tomcat Users List' Objet : RE: unsubscribe does not work Hi you should just send a empty mail to To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] -Original Message- From: Laurent Michenaud [mailto:[EMAIL PROTECTED]] Sent: Friday, July 19, 2002 5:36 PM To: [EMAIL PROTECTED] Subject: unsubscribe does not work I can't unsubscribe from this mailing list. Please tell me how to do it... Michenaud Laurent - Adeuza - [ Développeur Web - Administrateur Réseau ] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: unsubscribe does not work
Has your mail adress changed or do you now use a different address than in your subscription ? Look at the return path of the mails and you get: Return-Path: tomcat-user-return-26788-your name=your domain@jakarta.apache.org If that doesn't match lmichenaud=adeuza.fr use this address to unsubscribe: tomcat-user-unsubscribe-your name=your domain@jakarta.apache.org If that doesn't help write a mail to [EMAIL PROTECTED] (the more info you provide what you tried and what reactions you observed the better the help will be) -Ursprüngliche Nachricht- Von: Laurent Michenaud [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 19. Juli 2002 11:51 An: Tomcat Users List Betreff: RE: unsubscribe does not work I receive a message to confirm that i want to unsubscribe. I reply but the reply doesnot work : i receive this mail : -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Session timeout mystery
Hi, We are experiencing a strange problem with session timeout. We run a servlet based web application where the main window refreshes itself after 25 minutes (1500 secs) if unchanged. The session timeout in web.xml is set to 30 minutes (1800 secs). The refresh is to keep the session tracking alive, so the user is not logged out as long as the main window is open. In the session we have a single object (params) that implements HttpSessionBindingListener in order to initialize and cleanup the params. Problem: Run locally (JBuilder6, Tomcat 3.2.3, winXP, java1.4.0, servletAPI 2.2) and on internal test server (Tomcat 3.2.3 standalone, win2K, java1.4.0, servletAPI 2.2) sessions are kept alive fine. But when deployed on our production server (Tomcat 3.2.3 standalone, win2K, java1.4.0, servletAPI 2.2) the session is unbound after approx. 3300 seconds and following sessions after 1800 seconds..?? (same window refreshing itself). I have made a simple test Servlet (see below), which behaves the same way. Any input will be much appreciated. Best regards HC Hammerstoft package net.defgo.test; import javax.servlet.http.*; import java.io.PrintWriter; import java.util.Date; import java.text.SimpleDateFormat; public class TestServlet extends HttpServlet { private static final SimpleDateFormat timeFormatter = new SimpleDateFormat(HH:mm:ss); //Service the request public void doGet(HttpServletRequest request, HttpServletResponse response) { try { response.setContentType(text/html); PrintWriter out = response.getWriter(); HttpSession session = request.getSession(); BoundObjectSerializable boSession = (BoundObjectSerializable) session.getAttribute(boSessionDef); if (boSession == null) { boSession = new BoundObjectSerializable(js version); session.setAttribute(boSessionDef, boSession); System.out.println(timeFormatter.format(new Date()) + , boSession = + boSession + created); } System.out.println(timeFormatter.format(new Date()) + , id= + session.getId()); response.setDateHeader(Expires, 0); response.setHeader(Pragma, no-cache); if (request.getProtocol().equals(HTTP/1.1)) { response.setHeader(Cache-Control, no-cache); } out.println(!DOCTYPE HTML PUBLIC \-//W3C//DTD HTML 4.0 Transitional//EN\ \http://www.w3.org/TR/REC-html40/loose.dtd\;); out.println(html); out.println(head); out.println(meta name=\Language\ content=\da,en-us\); out.println(meta http-equiv=\Content-Type\ content=\text/html; charset=iso-8859-1\); out.println(script language=\JavaScript\!--); out.println(var tID = '';\n); out.println(function executeTimer() {); out.println( location.href = ' + response.encodeURL(request.getRequestURI()) + ';); out.println(}); out.println(//--/script\n); out.println(/head); out.println(body onLoad=\tID = setTimeout('executeTimer()',150)); // 1500 secs = 25 min out.println(pmsg = + boSession.getSomething() + /p); out.println(/body); out.println(/html); out.close(); } catch (Exception e) { e.printStackTrace(System.out); } // catch } } package net.defgo.test; import javax.servlet.http.HttpSessionBindingListener; import javax.servlet.http.HttpSessionBindingEvent; import java.text.SimpleDateFormat; import java.util.Date; import java.io.Serializable; public class BoundObjectSerializable implements HttpSessionBindingListener, Serializable { private static final SimpleDateFormat timeFormatter = new SimpleDateFormat(HH:mm:ss); private String something = null; private int counter; private long started; public BoundObjectSerializable(String something) { this.something = something; started = System.currentTimeMillis(); } public String getSomething() { return something + counter= + counter++ + session duration = + (System.currentTimeMillis() - started)/1000 + secs; } public void valueBound (HttpSessionBindingEvent event) { System.out.println (timeFormatter.format(new Date()) + , valueBound: I've been bound to \ + event.getName () + \ for session id: + (event.getSession()).getId ()); } public void valueUnbound (HttpSessionBindingEvent event) { System.out.println (timeFormatter.format(new Date()) + , valueUnbound: I've been unbound from \ + event.getName () + \ for session id: + (event.getSession ()).getId () + session duration = + (System.currentTimeMillis() - started)/1000 + secs ); } } which outputs something like this: 13:43:05, valueBound: I've been bound to boSessionDef for session id: g5atkj09w1 13:43:05, boSession = net.defgo.test.BoundObjectSerializable@d7bd04 created 13:43:05, id=g5atkj09w1 14:08:06, id=g5atkj09w1 14:33:06, id=g5atkj09w1 14:39:00, valueUnbound: I've been unbound from boSessionDef for session id: g5atkj09w1 session duration = 3354 secs 14:58:06, valueBound: I've been bound to boSessionDef for session id:
AW: Session timeout mystery
Have you verified that the reload requests have hit the server ? (access.log or own log in the doGet) Some browser have there own opinion if and when they honor the cache prevention headers (especially some IE versions). -Ursprüngliche Nachricht- Von: HC Hammerstoft, InterResearch A/S [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 19. Juli 2002 12:08 An: Tomcat Users List Betreff: Session timeout mystery We run a servlet based web application where the main window refreshes itself after 25 minutes (1500 secs) if unchanged. The session timeout in web.xml is set to 30 minutes (1800 secs). The refresh is to keep the session tracking alive, so the user is not logged out as long as the main window is open. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Session timeout mystery
Yes the servlet writes sessionId to system out when hit. eg.: 13:43:05, id=g5atkj09w1 14:08:06, id=g5atkj09w1 14:33:06, id=g5atkj09w1 Have you verified that the reload requests have hit the server ? (access.log or own log in the doGet) Some browser have there own opinion if and when they honor the cache prevention headers (especially some IE versions). -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: German character problem
Hi, Andreas. Check the solaris localisation settings. Hiran - Hiran Chaudhuri SAG Systemhaus GmbH Elsenheimerstraße 11 80687 München Germany [EMAIL PROTECTED] Phone +49-89-54742-134 Fax +49-6151-9234-5134 -Original Message- From: Andreas Schlegel [mailto:[EMAIL PROTECTED]] Sent: Friday, July 19, 2002 12:47 AM To: [EMAIL PROTECTED] Subject: German character problem Hi, we have a strange problem and don't know the reason nor how to solve it. May be someone has an idea. A Java application (Tomcat 4.0.3, Postgresql 7.2.1, JDBC: PostgreSQL 7.2 JDBC2) runs well on W2k, also on Linux (Suse 7.2) but on SOLARIS OS (Sparc) we have the following problem: All specific german characters (ä, ö, ü, ß, ...) return to the Client (Browser) only as 'ß'. If we send a native request to the database by psql, we havn't the problem. We only used the defaults installing Tomcat and Postgresql. What could be the problem? Greetings, Andreas -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: German character problem
Hi Andreas, just add -Dfile.encoding=ISO-8859-1 to the JAVA_OPTS --- JAVA_OPTS=-Dfile.encoding=ISO-8859-1 export JAVA_OPTS $CATALINA_HOME/bin/catalina.sh run --- On Fri, 19 Jul 2002, Andreas Schlegel wrote: [...] All specific german characters (ä, ö, ü, ß, ...) return to the Client (Browser) only as 'ß'. If we send a native request to the database by psql, we havn't the problem. [...] ciao, -hen -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Questions about web solution based on Tomcat Apache.
Dear subscribers. I have two questions about using Tomcat 4.x Apache 2.x as a base for web application development: 1) A solution typically consists of html, jsp pages and servlets. Is it possible to store html, jsp and servlets based on the logical structure of the solution and have Tomcat process only based on the file extension or must all jsp and servlet files be collected in the folder pointed out by the WebAppDeploy attribute in httpd.conf? I.e. if I have a solution where I store customer data in a database I'll probably have at least a form page for registering a new customer, a list view where I list all customers and a servlet to store submitted customer data in a database. In a simple case the form page would be a html page and the list view an jsp page. If these files where to be grouped logically, i.e. by task, the form page, the jsp list page and the servlet should be in the same directory on disk but as I understand it Apache/Tomcat integration requires me to have the html pages in one directory structure for access by Apache and jsp/servlets in another structure, pointed out by WebAppDeploy, for access by Tomcat. Is this correct? With a logical grouping of files mentioned above I mean a directory structure like this: Customer Web |-| | customers || new_customer_from.html || list_customers.jsp || store_new_user.class | |-| companies 2) As far as I know there are two connectors for integrating Tomcat and Apache, Warp and AJP. When I experimented I've used the warp connector, but I don't really know the difference between the two besides that they utilize different protocols. If I can get some more information on this matter I'll be grateful. Kind regards, Ola Theander -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat hangs with Apache2
FYIwith mod_webapp, all requests are served by tomcat for that resource, apache doesn't serve the static content. Basically, if you're trying to use mod_webapp, there's no purpose, unless you have other sites (virtual hosts) that don't use tomcat and you want apache to serve the content for those sites. Otherwise, using mod_webapp is identical to running tomcat stand-alone on port 80. As it stands now, the only true working connector, in the spirit of a connector (apache serves static content, tomcat serves servlets and JSPs), is mod_jk and mod_jk2. WARP seems to be a better protocol, but it is anyone's guess if mod_webapp will support a division between static content and dynamic content anytime soon. John Turner [EMAIL PROTECTED] -Original Message- From: Chris McCabe [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 18, 2002 5:13 PM To: Tomcat Users List Subject: Re: Tomcat hangs with Apache2 Yes, getting them installed and working together was actually fairly easy. I can't get the mod_jk connectors to work yet, but the mod_webapp works except for the problem I described, which happens on every request, so it is useless. I have it working on RedHat 7.0 and RedHat 7.2 systems. The only part that took a little time was building the connector modules. It took a couple of tries. Also, you need to make sure that you are specifying the 'ServerName' directive in httpd.conf and that it has a port specification even if it is the default port 80. Otherwise mod_webapp will choke. Should look something like: ServerName www.domain.com:80 or you can put your IP address instead of the name. What else do you need to know? Chris Billingham, Walter 475 wrote: Chris, I'm a newbie, so excuse lack of knowledge, however, you actually got these 2 to install and work together can you share your experience? Are you using mod_jk or the AJP connectors? What's the specs of the system? Thanks. Trask Unix has its weak points but its file system is not one of them. - Chris Torek -Original Message- From: Chris McCabe [SMTP:[EMAIL PROTECTED]] Sent: Thursday, July 18, 2002 4:36 PM To: [EMAIL PROTECTED] Subject: Tomcat hangs with Apache2 I have Tomcat 4.0.4 running with Apache 2.0.39 web server using the webapp connector on Linux, and all requests hang after returning just over 1200 bytes of data. After some searching around on the web, I found a couple of places that complained about the same problem, but no workaround. In those cases they were using the Jk connector, and in at least one case Apache 1.3 instead of version 2. Is anyone else having this problem, or does anyone else have the same configuration that is NOT having this problem? This is a total show stopper at this point. Any ideas about a possible workaround would be great. Thanks, Chris -- Chris P. McCabe - Senior Software Systems Architect Choice Hotels International - Information Technology [EMAIL PROTECTED]602-953-4416 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] --- --- CONFIDENTIALITY NOTICE: If you have received this e-mail in error, please immediately notify the sender by e-mail at the address shown. This e-mail transmission may contain confidential information. This information is intended only for the use of the individual(s) or entity to whom it is intended even if addressed incorrectly. Please delete it from your files if you are not the intended recipient. Thank you for your compliance. Copyright (c) 2002 CIGNA -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Chris P. McCabe - Senior Software Systems Architect Choice Hotels International - Information Technology [EMAIL PROTECTED]602-953-4416 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Datasource JNDI lookup failing
Folks, I am having a problem trying to lookup a Database connection from JNDI with Tomcat 4.0.4 on Debian Linux. My code is: Connection con = null; System.out.println(instantiating database connection ); try { System.out.println(getting InitialContext); Context ctx = new InitialContext(); System.out.println(got InitialContext); // Print out bindings to make sure its there NamingEnumeration e = ctx.list(java:comp/env/jdbc); while(true == e.hasMore()) { System.out.println(enumeration name = + e.next()); } // Get JDBC context System.out.println(getting JDBC context); Context jdbcContext = (Context) ctx.lookup(java:comp/env/jdbc); System.out.println(got jdbcContext); // Look up our data source System.out.println(looking up insuranceAdminTest); DataSource ds = (DataSource) jdbcContext.lookup(insuranceAdminTest); System.out.println(got DataSource); con = ds.getConnection(); System.out.println(got connection); } catch (NamingException ex) { System.err.println(failed to obtain JNDI context); throw new HalvorException(failed to obtain JNDI context, ex); } catch (SQLException ex) { System.err.println(failed to open database connection); throw new HalvorException(failed to open database connection, ex); } The output from the above is: instantiating database connection getting InitialContext got InitialContext enumeration name = insuranceAdminTest: org.apache.naming.ResourceRef getting JDBC context got jdbcContext looking up insuranceAdminTest failed to obtain JNDI context The server.xml snippet is: Resource name=jdbc/insuranceAdminTest auth=CONTAINER type=javax.sql.DataSource/ ResourceParams name=jdbc/insuranceAdminTest parameternameuser/namevaluehalvor/value/parameter parameternamepassword/namevaluehalvor/value/parameter parameternamedriverClassName/namevalueorg.gjt.mm.mysql.Driver/value /parameter parameternamedriverName/namevaluejdbc:mysql:///InsuranceAdminTest/v alue/parameter /ResourceParams the web.xml snippet is: resource-ref res-ref-namejdbc/insuranceAdminTest/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth What I dont understand is that the line that prints enumeration name = find the insuranceAdminTest binding, but the subsequent lookup on the jdbcContext Context fails... Does anyone know what is wrong? Many thanks - Adam Lipscombe -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Datasource JNDI lookup failing
I've had the exact same problem with for the past couple of weeks, only with the Microsoft Type4 SQL Server driver. Everything seems to work great, and the Context is definitely found, but the DataSource is always null. I haven't been able to find a solution, the closest I came was going to 4.1.7, but I can't do that until it is officially released (my client has a no betas restriction for production apps). If anyone knows for sure how to get around this problem using current production versions, I would love to know about it. John Turner [EMAIL PROTECTED] -Original Message- From: Adam Lipscombe [mailto:[EMAIL PROTECTED]] Sent: Friday, July 19, 2002 7:57 AM To: Tomcat Users Mailing List Subject: Datasource JNDI lookup failing Folks, I am having a problem trying to lookup a Database connection from JNDI with Tomcat 4.0.4 on Debian Linux. My code is: Connection con = null; System.out.println(instantiating database connection ); try { System.out.println(getting InitialContext); Context ctx = new InitialContext(); System.out.println(got InitialContext); // Print out bindings to make sure its there NamingEnumeration e = ctx.list(java:comp/env/jdbc); while(true == e.hasMore()) { System.out.println(enumeration name = + e.next()); } // Get JDBC context System.out.println(getting JDBC context); Context jdbcContext = (Context) ctx.lookup(java:comp/env/jdbc); System.out.println(got jdbcContext); // Look up our data source System.out.println(looking up insuranceAdminTest); DataSource ds = (DataSource) jdbcContext.lookup(insuranceAdminTest); System.out.println(got DataSource); con = ds.getConnection(); System.out.println(got connection); } catch (NamingException ex) { System.err.println(failed to obtain JNDI context); throw new HalvorException(failed to obtain JNDI context, ex); } catch (SQLException ex) { System.err.println(failed to open database connection); throw new HalvorException(failed to open database connection, ex); } The output from the above is: instantiating database connection getting InitialContext got InitialContext enumeration name = insuranceAdminTest: org.apache.naming.ResourceRef getting JDBC context got jdbcContext looking up insuranceAdminTest failed to obtain JNDI context The server.xml snippet is: Resource name=jdbc/insuranceAdminTest auth=CONTAINER type=javax.sql.DataSource/ ResourceParams name=jdbc/insuranceAdminTest parameternameuser/namevaluehalvor/value/parameter parameternamepassword/namevaluehalvor/value/parameter parameternamedriverClassName/namevalueorg.gjt.mm.mysql.Driver/value /parameter parameternamedriverName/namevaluejdbc:mysql:///InsuranceAdminTest/v alue/parameter /ResourceParams the web.xml snippet is: resource-ref res-ref-namejdbc/insuranceAdminTest/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth What I dont understand is that the line that prints enumeration name = find the insuranceAdminTest binding, but the subsequent lookup on the jdbcContext Context fails... Does anyone know what is wrong? Many thanks - Adam Lipscombe -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Question about upgrading Tomcat
Hi, Context context = ((ServletContextFacade) conf.getServletContext()). getRealContext(); .. conf.getServletContext().getRealPath(/my/path/to/the/config/file.xyz); resolves names relative to your context. This is part of the servlet spec. ciao, -hen -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Questions about web solution based on Tomcat Apache.
1) Yes. Tomcat can serve images and HTML, that is the purpose of the Coyote HTTP connector, which is installed with tomcat by default. It was on my installations. 2) The difference is #1. If you want to divide static content and dynamic content, you want AJP (mod_jk). The current WARP implementation (mod_webapp) does not differentiate between static and dynamic content. It may in the future. I hope it does, though I've had zero problems with mod_jk on both tomcat 3 and 4. With mod_webapp, all content is served by tomcat, apache is not involved except as a request receiver. John Turner [EMAIL PROTECTED] -Original Message- From: Ola Theander [mailto:[EMAIL PROTECTED]] Sent: Friday, July 19, 2002 7:23 AM To: [EMAIL PROTECTED] Subject: Questions about web solution based on Tomcat Apache. Dear subscribers. I have two questions about using Tomcat 4.x Apache 2.x as a base for web application development: 1) A solution typically consists of html, jsp pages and servlets. Is it possible to store html, jsp and servlets based on the logical structure of the solution and have Tomcat process only based on the file extension or must all jsp and servlet files be collected in the folder pointed out by the WebAppDeploy attribute in httpd.conf? I.e. if I have a solution where I store customer data in a database I'll probably have at least a form page for registering a new customer, a list view where I list all customers and a servlet to store submitted customer data in a database. In a simple case the form page would be a html page and the list view an jsp page. If these files where to be grouped logically, i.e. by task, the form page, the jsp list page and the servlet should be in the same directory on disk but as I understand it Apache/Tomcat integration requires me to have the html pages in one directory structure for access by Apache and jsp/servlets in another structure, pointed out by WebAppDeploy, for access by Tomcat. Is this correct? With a logical grouping of files mentioned above I mean a directory structure like this: Customer Web |-| | customers || new_customer_from.html || list_customers.jsp || store_new_user.class | |-| companies 2) As far as I know there are two connectors for integrating Tomcat and Apache, Warp and AJP. When I experimented I've used the warp connector, but I don't really know the difference between the two besides that they utilize different protocols. If I can get some more information on this matter I'll be grateful. Kind regards, Ola Theander -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Datasource JNDI lookup failing
I had a similar problem, but i was using classes12.zip that is from Oracle. I tried every option, but it didnt seem to work. Then at the end upgraded to tc 4.1.7. TC 4.1.7 had all the included files, and got the DataSource and the connection. My advice, upgrade to TC 4.1.7 (AFAIK) it has much better support for JNDI. Anyways there has been a lot of discussion about this in the past weeks. You could check out the archives also. Check this link also. http://marc.theaimsgroup.com/?l=tomcat-userm=102225547106556w=2 Regards, Vikramjit Singh, Systems Engineer, GTL Ltd. Ph. 7612929-1059 -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Friday, July 19, 2002 5:05 AM To: 'Tomcat Users List' Subject: RE: Datasource JNDI lookup failing I've had the exact same problem with for the past couple of weeks, only with the Microsoft Type4 SQL Server driver. Everything seems to work great, and the Context is definitely found, but the DataSource is always null. I haven't been able to find a solution, the closest I came was going to 4.1.7, but I can't do that until it is officially released (my client has a no betas restriction for production apps). If anyone knows for sure how to get around this problem using current production versions, I would love to know about it. John Turner [EMAIL PROTECTED] -Original Message- From: Adam Lipscombe [mailto:[EMAIL PROTECTED]] Sent: Friday, July 19, 2002 7:57 AM To: Tomcat Users Mailing List Subject: Datasource JNDI lookup failing Folks, I am having a problem trying to lookup a Database connection from JNDI with Tomcat 4.0.4 on Debian Linux. My code is: Connection con = null; System.out.println(instantiating database connection ); try { System.out.println(getting InitialContext); Context ctx = new InitialContext(); System.out.println(got InitialContext); // Print out bindings to make sure its there NamingEnumeration e = ctx.list(java:comp/env/jdbc); while(true == e.hasMore()) { System.out.println(enumeration name = + e.next()); } // Get JDBC context System.out.println(getting JDBC context); Context jdbcContext = (Context) ctx.lookup(java:comp/env/jdbc); System.out.println(got jdbcContext); // Look up our data source System.out.println(looking up insuranceAdminTest); DataSource ds = (DataSource) jdbcContext.lookup(insuranceAdminTest); System.out.println(got DataSource); con = ds.getConnection(); System.out.println(got connection); } catch (NamingException ex) { System.err.println(failed to obtain JNDI context); throw new HalvorException(failed to obtain JNDI context, ex); } catch (SQLException ex) { System.err.println(failed to open database connection); throw new HalvorException(failed to open database connection, ex); } The output from the above is: instantiating database connection getting InitialContext got InitialContext enumeration name = insuranceAdminTest: org.apache.naming.ResourceRef getting JDBC context got jdbcContext looking up insuranceAdminTest failed to obtain JNDI context The server.xml snippet is: Resource name=jdbc/insuranceAdminTest auth=CONTAINER type=javax.sql.DataSource/ ResourceParams name=jdbc/insuranceAdminTest parameternameuser/namevaluehalvor/value/parameter parameternamepassword/namevaluehalvor/value/parameter parameternamedriverClassName/namevalueorg.gjt.mm.mysql.Driver/value /parameter parameternamedriverName/namevaluejdbc:mysql:///InsuranceAdminTest/v alue/parameter /ResourceParams the web.xml snippet is: resource-ref res-ref-namejdbc/insuranceAdminTest/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth What I dont understand is that the line that prints enumeration name = find the insuranceAdminTest binding, but the subsequent lookup on the jdbcContext Context fails... Does anyone know what is wrong? Many thanks - Adam Lipscombe -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Datasource JNDI lookup failing
Thanks for the reply, I've tried the solution in that link. As I said, nothing has worked, and I am unable to use anything past 4.0.4 until it is officially released (not beta). John Turner [EMAIL PROTECTED] -Original Message- From: Vikramjit Singh [mailto:[EMAIL PROTECTED]] Sent: Friday, July 19, 2002 8:16 AM To: 'Tomcat Users List' Subject: RE: Datasource JNDI lookup failing I had a similar problem, but i was using classes12.zip that is from Oracle. I tried every option, but it didnt seem to work. Then at the end upgraded to tc 4.1.7. TC 4.1.7 had all the included files, and got the DataSource and the connection. My advice, upgrade to TC 4.1.7 (AFAIK) it has much better support for JNDI. Anyways there has been a lot of discussion about this in the past weeks. You could check out the archives also. Check this link also. http://marc.theaimsgroup.com/?l=tomcat-userm=102225547106556w=2 Regards, Vikramjit Singh, Systems Engineer, GTL Ltd. Ph. 7612929-1059 -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Friday, July 19, 2002 5:05 AM To: 'Tomcat Users List' Subject: RE: Datasource JNDI lookup failing I've had the exact same problem with for the past couple of weeks, only with the Microsoft Type4 SQL Server driver. Everything seems to work great, and the Context is definitely found, but the DataSource is always null. I haven't been able to find a solution, the closest I came was going to 4.1.7, but I can't do that until it is officially released (my client has a no betas restriction for production apps). If anyone knows for sure how to get around this problem using current production versions, I would love to know about it. John Turner [EMAIL PROTECTED] -Original Message- From: Adam Lipscombe [mailto:[EMAIL PROTECTED]] Sent: Friday, July 19, 2002 7:57 AM To: Tomcat Users Mailing List Subject: Datasource JNDI lookup failing Folks, I am having a problem trying to lookup a Database connection from JNDI with Tomcat 4.0.4 on Debian Linux. My code is: Connection con = null; System.out.println(instantiating database connection ); try { System.out.println(getting InitialContext); Context ctx = new InitialContext(); System.out.println(got InitialContext); // Print out bindings to make sure its there NamingEnumeration e = ctx.list(java:comp/env/jdbc); while(true == e.hasMore()) { System.out.println(enumeration name = + e.next()); } // Get JDBC context System.out.println(getting JDBC context); Context jdbcContext = (Context) ctx.lookup(java:comp/env/jdbc); System.out.println(got jdbcContext); // Look up our data source System.out.println(looking up insuranceAdminTest); DataSource ds = (DataSource) jdbcContext.lookup(insuranceAdminTest); System.out.println(got DataSource); con = ds.getConnection(); System.out.println(got connection); } catch (NamingException ex) { System.err.println(failed to obtain JNDI context); throw new HalvorException(failed to obtain JNDI context, ex); } catch (SQLException ex) { System.err.println(failed to open database connection); throw new HalvorException(failed to open database connection, ex); } The output from the above is: instantiating database connection getting InitialContext got InitialContext enumeration name = insuranceAdminTest: org.apache.naming.ResourceRef getting JDBC context got jdbcContext looking up insuranceAdminTest failed to obtain JNDI context The server.xml snippet is: Resource name=jdbc/insuranceAdminTest auth=CONTAINER type=javax.sql.DataSource/ ResourceParams name=jdbc/insuranceAdminTest parameternameuser/namevaluehalvor/value/parameter parameternamepassword/namevaluehalvor/value/parameter parameternamedriverClassName/namevalueorg.gjt.mm.mysql.Driver/value /parameter parameternamedriverName/namevaluejdbc:mysql:///InsuranceAdminTest/v alue/parameter /ResourceParams the web.xml snippet is: resource-ref res-ref-namejdbc/insuranceAdminTest/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth What I dont understand is that the line that prints enumeration name = find the insuranceAdminTest binding, but the subsequent lookup on the jdbcContext Context fails... Does anyone know what is wrong? Many thanks - Adam Lipscombe -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Datasource JNDI lookup failing
Check that you have Tyrex in your tomcat install, the light edition doesn't include it (from memory). Also have a look through past messages about some Naming* classes being missing from the RPM versions of TomCat Turner, John wrote: Thanks for the reply, I've tried the solution in that link. As I said, nothing has worked, and I am unable to use anything past 4.0.4 until it is officially released (not beta). John Turner [EMAIL PROTECTED] -Original Message- From: Vikramjit Singh [mailto:[EMAIL PROTECTED]] Sent: Friday, July 19, 2002 8:16 AM To: 'Tomcat Users List' Subject: RE: Datasource JNDI lookup failing I had a similar problem, but i was using classes12.zip that is from Oracle. I tried every option, but it didnt seem to work. Then at the end upgraded to tc 4.1.7. TC 4.1.7 had all the included files, and got the DataSource and the connection. My advice, upgrade to TC 4.1.7 (AFAIK) it has much better support for JNDI. Anyways there has been a lot of discussion about this in the past weeks. You could check out the archives also. Check this link also. http://marc.theaimsgroup.com/?l=tomcat-userm=102225547106556w=2 Regards, Vikramjit Singh, Systems Engineer, GTL Ltd. Ph. 7612929-1059 -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Friday, July 19, 2002 5:05 AM To: 'Tomcat Users List' Subject: RE: Datasource JNDI lookup failing I've had the exact same problem with for the past couple of weeks, only with the Microsoft Type4 SQL Server driver. Everything seems to work great, and the Context is definitely found, but the DataSource is always null. I haven't been able to find a solution, the closest I came was going to 4.1.7, but I can't do that until it is officially released (my client has a no betas restriction for production apps). If anyone knows for sure how to get around this problem using current production versions, I would love to know about it. John Turner [EMAIL PROTECTED] -Original Message- From: Adam Lipscombe [mailto:[EMAIL PROTECTED]] Sent: Friday, July 19, 2002 7:57 AM To: Tomcat Users Mailing List Subject: Datasource JNDI lookup failing Folks, I am having a problem trying to lookup a Database connection from JNDI with Tomcat 4.0.4 on Debian Linux. My code is: Connection con = null; System.out.println(instantiating database connection ); try { System.out.println(getting InitialContext); Context ctx = new InitialContext(); System.out.println(got InitialContext); // Print out bindings to make sure its there NamingEnumeration e = ctx.list(java:comp/env/jdbc); while(true == e.hasMore()) { System.out.println(enumeration name = + e.next()); } // Get JDBC context System.out.println(getting JDBC context); Context jdbcContext = (Context) ctx.lookup(java:comp/env/jdbc); System.out.println(got jdbcContext); // Look up our data source System.out.println(looking up insuranceAdminTest); DataSource ds = (DataSource) jdbcContext.lookup(insuranceAdminTest); System.out.println(got DataSource); con = ds.getConnection(); System.out.println(got connection); } catch (NamingException ex) { System.err.println(failed to obtain JNDI context); throw new HalvorException(failed to obtain JNDI context, ex); } catch (SQLException ex) { System.err.println(failed to open database connection); throw new HalvorException(failed to open database connection, ex); } The output from the above is: instantiating database connection getting InitialContext got InitialContext enumeration name = insuranceAdminTest: org.apache.naming.ResourceRef getting JDBC context got jdbcContext looking up insuranceAdminTest failed to obtain JNDI context The server.xml snippet is: Resource name=jdbc/insuranceAdminTest auth=CONTAINER type=javax.sql.DataSource/ ResourceParams name=jdbc/insuranceAdminTest parameternameuser/namevaluehalvor/value/parameter parameternamepassword/namevaluehalvor/value/parameter parameternamedriverClassName/namevalueorg.gjt.mm.mysql.Driver/value /parameter parameternamedriverName/namevaluejdbc:mysql:///InsuranceAdminTest/v alue/parameter /ResourceParams the web.xml snippet is: resource-ref res-ref-namejdbc/insuranceAdminTest/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth What I dont understand is that the line that prints enumeration name = find the insuranceAdminTest binding, but the subsequent lookup on the jdbcContext Context fails... Does anyone know what is wrong? Many thanks - Adam Lipscombe -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL
RE: Questions about web solution based on Tomcat Apache.
Hi John. Thanks for your answer. Unfortunately I'm not sure that I understand you completely. Regarding your answer to question 1, I want Apache to serve html, image and other static content while Tomcat processes the dynamic content such as jsp pages, i.e. I don't want to use Tomcat to serve static content, i.e. that means the use of either the AJP or Warp connector. Does the use of these connectors require that I separate the static content files from the files for dynamic content? Kind regards, Ola -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: den 19 juli 2002 14:09 To: 'Tomcat Users List' Subject: RE: Questions about web solution based on Tomcat Apache. 1) Yes. Tomcat can serve images and HTML, that is the purpose of the Coyote HTTP connector, which is installed with tomcat by default. It was on my installations. 2) The difference is #1. If you want to divide static content and dynamic content, you want AJP (mod_jk). The current WARP implementation (mod_webapp) does not differentiate between static and dynamic content. It may in the future. I hope it does, though I've had zero problems with mod_jk on both tomcat 3 and 4. With mod_webapp, all content is served by tomcat, apache is not involved except as a request receiver. John Turner [EMAIL PROTECTED] -Original Message- From: Ola Theander [mailto:[EMAIL PROTECTED]] Sent: Friday, July 19, 2002 7:23 AM To: [EMAIL PROTECTED] Subject: Questions about web solution based on Tomcat Apache. Dear subscribers. I have two questions about using Tomcat 4.x Apache 2.x as a base for web application development: 1) A solution typically consists of html, jsp pages and servlets. Is it possible to store html, jsp and servlets based on the logical structure of the solution and have Tomcat process only based on the file extension or must all jsp and servlet files be collected in the folder pointed out by the WebAppDeploy attribute in httpd.conf? I.e. if I have a solution where I store customer data in a database I'll probably have at least a form page for registering a new customer, a list view where I list all customers and a servlet to store submitted customer data in a database. In a simple case the form page would be a html page and the list view an jsp page. If these files where to be grouped logically, i.e. by task, the form page, the jsp list page and the servlet should be in the same directory on disk but as I understand it Apache/Tomcat integration requires me to have the html pages in one directory structure for access by Apache and jsp/servlets in another structure, pointed out by WebAppDeploy, for access by Tomcat. Is this correct? With a logical grouping of files mentioned above I mean a directory structure like this: Customer Web |-| | customers || new_customer_from.html || list_customers.jsp || store_new_user.class | |-| companies 2) As far as I know there are two connectors for integrating Tomcat and Apache, Warp and AJP. When I experimented I've used the warp connector, but I don't really know the difference between the two besides that they utilize different protocols. If I can get some more information on this matter I'll be grateful. Kind regards, Ola Theander -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Problem loading jar from common/lib
Dear Peers, I am having problems with a .jar file which is placed in my tomcat's common/lib directory. I cannot seem to find any resources about this, so you know some links please send them to me. Situation: OS Solaris 8 J2SE 1.3.1_03 Tomcat 4 I place four jar files into common/lib, three of which it finds just fine. The fourth (the biggest, about 8.5 megs) it doesn't seem to load. I can use some of the classes from the smaller three jars, but when they call a class in the larger jar I get NoClassDefFound errors. It is like it is not loading the last jar I put in there. Has anyone seen this before, or better yet figured it out? As a side note, it seems to switch gears and have trouble finding another class instead from the same jar if I unjar the problematic guy into the classes directory. (located at same level as common in common/lib). That really threw me off. Why won't it load that jar file? RECAP: 1. Add jars a, b, c and d to common/lib. 2. Start site 3. NoClassDefFound for class A, which IS in jar d. I'm sure, I checked. 4. Unpack jar d into classes directory. 5. NoClassDefFound for Class B instead now, seems to find Class A. 6. Class B IS in classes directory, under package structure. Thanks! -Jason -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Yet another tomcat4+apache1.3+mod_webapp problem
Hello everyone! I use Debian Woody 3.0, Apache 1.3.26, Tomcat 4.0.4. I downloaded ajp and connectors from cvs, which compiled without errors. Everything seems to be well configured; I can even connect to http://localhost/webapp-info/ and it works fine, but I can't get anything when I try to browse the deployed applications. This is what I get: -- apache/error.log: [Fri Jul 19 14:20:04 2002] [notice] Apache/1.3.26 (Unix) Debian GNU/Linux mod_webapp/1.2.0-dev configured -- resuming normal operations [Fri Jul 19 14:20:05 2002] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache/suexec) [Fri Jul 19 14:20:05 2002] [notice] Accept mutex: sysvsem (Default: sysvsem) [Fri Jul 19 14:20:55 2002] [notice] child pid 28368 exit signal Segmentation fault (11) -- tomcat-apache-log: 2002-07-19 14:20:54 [org.apache.catalina.connector.warp.WarpConnection] Exception on socket java.net.SocketException: Connection reset by peer at java.net.SocketInputStream.socketRead(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:86) at java.net.SocketInputStream.read(SocketInputStream.java:102) at org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java:232) at org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHandler.java:112) at org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:194) at java.lang.Thread.run(Thread.java:484) -- And, when I connect to webapp-info: WebApp Library ConfigurationWebApp Library Configuration Host localhost:8808 --- Application Name _INFO_ Root URL Path /webapp-info/ Local Deployment Path No local deployment path Configuration Details No configuration information Connection_INFO_ (details) Deployed TRUE Application Name examples Root URL Path /examples/ Local Deployment Path /usr/local/jakarta-tomcat-4.0.4/webapps/examples Configuration Details Application ID: 0 Connectionconn (details) Deployed TRUE Application Name ROOT Root URL Path /myroot/ Local Deployment Path /usr/local/jakarta-tomcat-4.0.4/webapps/ROOT Configuration Details Application ID: 1 Connectionconn (details) Deployed TRUE Connections --- Connection Name _INFO_ Connection Parameters Provider info Configuration Details No configuration information Connection Name conn Connection Parameters localhost:8008 Provider warp Configuration Details Host: localhost Port:8008 Address:127.0.0.1 Socket Count: 1 Server ID: 650579793 Please, please, help me, I'm absolutely desperate about this! Regards: Daniel Ali -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Questions about web solution based on Tomcat Apache.
With mod_jk, you can also get more specific than just a path (/examples), I think. You can say /examples/*.jsp, for example. So you could say something like /myapp/*.jsp and have those requests go to tomcat, but /myapp/*.html or /myapp/*.gif would still be served by apache. To do this you will need mod_jk, not mod_webapp. It would look something like this in your httpd.conf (using mod_jk): JkMount /myapp/*.jsp ajp13 John Turner [EMAIL PROTECTED] -Original Message- From: Ola Theander [mailto:[EMAIL PROTECTED]] Sent: Friday, July 19, 2002 8:48 AM To: 'Tomcat Users List' Subject: RE: Questions about web solution based on Tomcat Apache. Hi John. Thanks for your answer. Unfortunately I'm not sure that I understand you completely. Regarding your answer to question 1, I want Apache to serve html, image and other static content while Tomcat processes the dynamic content such as jsp pages, i.e. I don't want to use Tomcat to serve static content, i.e. that means the use of either the AJP or Warp connector. Does the use of these connectors require that I separate the static content files from the files for dynamic content? Kind regards, Ola -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: den 19 juli 2002 14:09 To: 'Tomcat Users List' Subject: RE: Questions about web solution based on Tomcat Apache. 1) Yes. Tomcat can serve images and HTML, that is the purpose of the Coyote HTTP connector, which is installed with tomcat by default. It was on my installations. 2) The difference is #1. If you want to divide static content and dynamic content, you want AJP (mod_jk). The current WARP implementation (mod_webapp) does not differentiate between static and dynamic content. It may in the future. I hope it does, though I've had zero problems with mod_jk on both tomcat 3 and 4. With mod_webapp, all content is served by tomcat, apache is not involved except as a request receiver. John Turner [EMAIL PROTECTED] -Original Message- From: Ola Theander [mailto:[EMAIL PROTECTED]] Sent: Friday, July 19, 2002 7:23 AM To: [EMAIL PROTECTED] Subject: Questions about web solution based on Tomcat Apache. Dear subscribers. I have two questions about using Tomcat 4.x Apache 2.x as a base for web application development: 1) A solution typically consists of html, jsp pages and servlets. Is it possible to store html, jsp and servlets based on the logical structure of the solution and have Tomcat process only based on the file extension or must all jsp and servlet files be collected in the folder pointed out by the WebAppDeploy attribute in httpd.conf? I.e. if I have a solution where I store customer data in a database I'll probably have at least a form page for registering a new customer, a list view where I list all customers and a servlet to store submitted customer data in a database. In a simple case the form page would be a html page and the list view an jsp page. If these files where to be grouped logically, i.e. by task, the form page, the jsp list page and the servlet should be in the same directory on disk but as I understand it Apache/Tomcat integration requires me to have the html pages in one directory structure for access by Apache and jsp/servlets in another structure, pointed out by WebAppDeploy, for access by Tomcat. Is this correct? With a logical grouping of files mentioned above I mean a directory structure like this: Customer Web |-| | customers || new_customer_from.html || list_customers.jsp || store_new_user.class | |-| companies 2) As far as I know there are two connectors for integrating Tomcat and Apache, Warp and AJP. When I experimented I've used the warp connector, but I don't really know the difference between the two besides that they utilize different protocols. If I can get some more information on this matter I'll be grateful. Kind regards, Ola Theander -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Yet another tomcat4+apache1.3+mod_webapp problem
You said I downloaded AJP and connectors but the error messages are addressing the WARP connector. Which connector are you using, AJP (mod_jk) or WARP (mod_webapp)? If you have both configured, that might be causing the problem. You only need one of them, not both. John Turner [EMAIL PROTECTED] -Original Message- From: Daniel Ali [mailto:[EMAIL PROTECTED]] Sent: Friday, July 19, 2002 9:12 AM To: [EMAIL PROTECTED] Subject: Yet another tomcat4+apache1.3+mod_webapp problem Hello everyone! I use Debian Woody 3.0, Apache 1.3.26, Tomcat 4.0.4. I downloaded ajp and connectors from cvs, which compiled without errors. Everything seems to be well configured; I can even connect to http://localhost/webapp-info/ and it works fine, but I can't get anything when I try to browse the deployed applications. This is what I get: -- apache/error.log: [Fri Jul 19 14:20:04 2002] [notice] Apache/1.3.26 (Unix) Debian GNU/Linux mod_webapp/1.2.0-dev configured -- resuming normal operations [Fri Jul 19 14:20:05 2002] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache/suexec) [Fri Jul 19 14:20:05 2002] [notice] Accept mutex: sysvsem (Default: sysvsem) [Fri Jul 19 14:20:55 2002] [notice] child pid 28368 exit signal Segmentation fault (11) -- tomcat-apache-log: 2002-07-19 14:20:54 [org.apache.catalina.connector.warp.WarpConnection] Exception on socket java.net.SocketException: Connection reset by peer at java.net.SocketInputStream.socketRead(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:86) at java.net.SocketInputStream.read(SocketInputStream.java:102) at org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java:2 32) at org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand ler.java:112) at org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:19 4) at java.lang.Thread.run(Thread.java:484) -- And, when I connect to webapp-info: WebApp Library ConfigurationWebApp Library Configuration Host localhost:8808 --- Application Name _INFO_ Root URL Path /webapp-info/ Local Deployment Path No local deployment path Configuration Details No configuration information Connection_INFO_ (details) Deployed TRUE Application Name examples Root URL Path /examples/ Local Deployment Path /usr/local/jakarta-tomcat-4.0.4/webapps/examples Configuration Details Application ID: 0 Connectionconn (details) Deployed TRUE Application Name ROOT Root URL Path /myroot/ Local Deployment Path /usr/local/jakarta-tomcat-4.0.4/webapps/ROOT Configuration Details Application ID: 1 Connectionconn (details) Deployed TRUE Connections --- Connection Name _INFO_ Connection Parameters Provider info Configuration Details No configuration information Connection Name conn Connection Parameters localhost:8008 Provider warp Configuration Details Host: localhost Port:8008 Address:127.0.0.1 Socket Count: 1 Server ID: 650579793 Please, please, help me, I'm absolutely desperate about this! Regards: Daniel Ali -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]