Question about sessions..
Hello All, Why is it that I am getting a session, even though I have set call getSesssion(false) and it is the first time that my browser has accessed it... I'm using Tomcat 3.2.1 under Linux 2.2.17 I have set the following in the web.xml session-config session-timeout 0 /session-timeout /session-config Any help, pointer or ever RTFMs would be appreciated (I hope the URLs are in order though..;-) Thanks in advance. Cheers, John Clark -- /) John Clark Naldoza y Lopez (\ / )Software Design Engineer II ( \ _( (__ Web-Application Development_) )_ (((\ \ /_Cable Modem Network Management System _\ / /))) ( \_/ / NEC Telecom Software Phils., Inc. \ \_/ ) \ / \ / \_/ phone: (+63 32) 233-9142 loc. 3112\_/ / / cellphone: (+63 919) 241-4612 \ \ / / email: [EMAIL PROTECTED]\ \ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Start IIS
Is possible to start-restart IIS from a remote machine? Thanks Angelo
RE: isapi_redirect.dll
My experience with servlets is that usually, there is some method that goes haywire and just chews up the CPU. I think this could sometimes be a problem with Java itself especially when the garbage collector kicks in. The only cure I've found is the reboot button. Anyone else have an opinion on this? Regards, ERICK RAMIREZ ControlServlet Team [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] REEF SA/NV Tour Gallieni II 36, ave du Gen de Gaulle 93006 Bagnolet FRANCE Tel +33 1 5582 9449 www.reef.com http://www.reef.com Business is Dynamic. Take Control. -Original Message- From: Eric Reeves [mailto:[EMAIL PROTECTED]] Sent: 24 January 2001 21:45 To: [EMAIL PROTECTED] Subject: isapi_redirect.dll Right now our site is using the isapi_redirect dll to redirect to Tomcat on NT 4.0 SP 6a IIS 4.0 and are having very erratic inetinfo.exe CPU usage sometimes resulting in the process going to 100% and becoming unresponsive, requiring a reboot. Tomcat and the redirector are the most significant changes we have made to our web servers recently. We are using an older version of the redirector dated 10/17/00, while the version currently available is dated 12/12/00. Does anyone know where I can find a revision history of this piece of software to see what issues the new version addresses? Also, has anyone else had any problems like this? Any help will be greatly appreciated. Thanks, Eric Reeves - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: NT and tomcat
You need to configure Tomcat to work with Apache. The instructions for this is available on the Jakarta website. Regards, ERICK RAMIREZControlServlet Team[EMAIL PROTECTED] REEF SA/NV Tour Gallieni II 36, ave du Gen de Gaulle 93006Bagnolet FRANCE Tel +331 5582 9449 www.reef.com Business is Dynamic. Take Control. -Original Message-From: Affan Alim [mailto:[EMAIL PROTECTED]]Sent: 25 January 2001 10:19To: [EMAIL PROTECTED]Subject: NT and tomcat Hi All, We are ISP and want to setup how i setup the diretoratry structutre and classpath because i don't want to run the jsp and servlet without the 8080 port because we give the services to client. Please do help me. affan
Re: mod_jk load balancing
Your workers.properties file contains the entry worker.list Normally that lists the available workers and the JkMount directives indicate which one to connect to However, If you want to do loadbalancing, the workers.list should only contain the name of your loadbalacing worker and none of the workers the loadbalancer itself is using! So with the configuration you gave, you should have worker.list=loadbalancer (The rest of the config including the JkMount directives looks correct) If you want to switch back to no loadbalancing, change back to worker.list=ajp12,ajp13 and connect to either one using JkMount Luc Vanlerberghe P.s.: I only did something similar using mod_jserv, but I don't see any reason why this should be different for mod_jk P.p.s.: Perhaps consider changing the names of your workers (In the tomcat examples they are confusing as well, I know). ajp12 and ajp13 are names of two different communication protocols between the webserver and tomcat... If you change the names of your workers to worker_1 and worker_2, the configs become worker.list=my_loadbalancer worker.worker_1.port=10101 worker.worker_1.host=localhost worker.worker_1.type=ajp12 worker.worker_1.lbfactor=1 worker.worker_2.port=10103 worker.worker_2.host=localhost worker.worker_2.type=ajp12 worker.worker_2.lbfactor=1 worker.my_loadbalancer.type=lb worker.my_loadbalancer.balanced_workers=worker_1,worker_2 "Royzen, Margaret" wrote: Hi everyone, I am trying to configure the Apache server to balance the load between two independent Tomcat workers using ajp12 protocol. One worker is listening on port 10101, another one on port 10102. I put in my workers.properties file: worker.ajp12.port=10101 worker.ajp12.host=localhost worker.ajp12.type=ajp12 worker.ajp12.lbfactor=1 worker.ajp13.port=10103 worker.ajp13.host=localhost worker.ajp13.type=ajp12 worker.ajp13.lbfactor=1 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=ajp12, ajp13 At first I put in my apache configuration file : JkMount /apps-jsp/servlet/* loadbalancer JkMount /apps-jsp/*.jsp loadbalancer thinking, that this way mod_jk will process requests via loadbalancer worker, but I got "Internal Server Error" After that, I changed it back to: JkMount /apps-jsp/servlet/* ajp12 JkMount /apps-jsp/*.jsp ajp12 Servlets started working, but log files are showing no load balancing, all requests are processes via port 10101. Does anyone know, what should I put into Apache configuration file to achieve load balancing? Thank you very much in advance, Margaret Royzen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
java.exe deadlock
Hi there everyone, I have a problem that drives me nuts. I didn't find anything in the FAQs, nor in the the How-Tos, nor in the newsgroups. I set up Tomcat 3.2.1 (including my own context within the "webapps" directory) in combination with Apache 1.3.14 via mod_jk.dll on Windows NT 4. I set it up according to the Tomcat documentation. Everything works fine until I send a request to Apache pointing at a non-existing *.jsp, which is apped to Tomcat using a "JKMount /*.jsp" statement via an ajp13-worker. This request will result in a constant "java.exe" process which consumes 100% cpu time. The server is locked and takes no more requests. Did I make a mistake within the .conf files? Do I need a special mapping? Any idea what could be the resaon for this? I tried multiple (really, multiple!) configurations. I'm starting to get so very tired... Please help me ... or give me a hint, where help to this special problem could be found. Thanks, Helge Carstensen [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
A standalone Tomcat-installation serving multiple domains
Hi, I quickly browsed the mail archives at http://mikal.org/interests/java/tomcat/index.html, but didn't find anything about this subject and the search function is down for maintenance at the moment. So sorry if this is a allready commonly asked question wich I should have found elswhere. What I wonder is it possible for Tomcat running standalone to server requests for several domains, for example www.foo.com and www.bar.com, redirecting requests for each domain to its own application root. I think you know what I'm thinking about, so the question is how (if possible)? Thanks in advance. Cato Frrisdahl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Basic authentication
I am using Basic authentication with Tomcat v3.2.1 Everything works just fine, but I'd like to know how to grab User and Password during the authentication process to put them in a bean. Any clue? Thanks, Vittorio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Output Without Tomcat and Output With Tomcat
Create Process returns error=3 when it can't find the exe you are trying to run (and possibly one of the dll's, but I'm not sure about this). I've found it always best to put the complete path to the executable when trying to ue exec. Randy -Original Message- From: Choo Yew Beng [mailto:[EMAIL PROTECTED]] Sent: Friday, January 26, 2001 4:15 AM To: [EMAIL PROTECTED] Subject: Output Without Tomcat and Output With Tomcat Hi Gurus from The Apache Jarkata Tomcat Group, I had the following question: 1) We had developed couple of graphical programs in C and had compile it into executable codes. When executed using [without Tomcat i..e on the jre environment]: Runtime runtime = Runtime.getRuntime(); String[] arg = { "X.exe", param }; param = inpath infile outpath outfilea outfileb outfilec Note: outpath and inpath are all as followed before passing into the .exe "e:\\program files\\data\\xx\\022001", "e:\\program files\\data\\out\\022001" it run fine and output the requested graphical result. However, when the above mentioned java program is executed using Tomcat, the following errors were obtained: java.io.IOException: CreateProcess: X.exe "e:\\program files\\data\\xx\\ infile e:\\program files\\data\\out\\ outfilea outfileb outfilec" error=3 Can some gurus out there comment and advice on the above mentioned? Thx n look forward to some favorable replies if any. Choo Yew Beng - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Question...
Diffferent results from standalonethan with IIS Tomcat v 3.2.1 and IIS 4.0 I am using form based authentication for url-pattern "/sales/*". Whenever I try to access files under this protected URL I am prompted with the login page "/security/login.jsp". However, when I try to login I get the following 405 error, and the resulting URL in the location bar is : http://localhost/security/j_security_check. If I run this in standalone Tomcat everything works fine. Why doesn't it work correctly when integrated with IIS? HTTP Error 405 405 Method Not Allowed The method specified in the Request Line is not allowed for the resource identified by the request. Please ensure that you have the proper MIME type set up for the resource you are requesting. Please contact the server's administrator if this problem persists. What do I need to do to get it to work correctly with IIS? Thanks in advance, BobGet your FREE download of MSN Explorer at http://explorer.msn.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Question about sessions..
John, the getSession(false) only returns a session if it is not a new one (ie if request is from another page inside the application). getSession(true) always returns a session. Matt Goss "John Clark L. Naldoza" wrote: Hello All, Why is it that I am getting a session, even though I have set call getSesssion(false) and it is the first time that my browser has accessed it... I'm using Tomcat 3.2.1 under Linux 2.2.17 I have set the following in the web.xml session-config session-timeout 0 /session-timeout /session-config Any help, pointer or ever RTFMs would be appreciated (I hope the URLs are in order though..;-) Thanks in advance. Cheers, John Clark -- /) John Clark Naldoza y Lopez (\ / )Software Design Engineer II ( \ _( (__ Web-Application Development_) )_ (((\ \ /_Cable Modem Network Management System _\ / /))) ( \_/ / NEC Telecom Software Phils., Inc. \ \_/ ) \ / \ / \_/ phone: (+63 32) 233-9142 loc. 3112\_/ / / cellphone: (+63 919) 241-4612 \ \ / / email: [EMAIL PROTECTED]\ \ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] begin:vcard n:Goss;Matt tel;fax:919-657-1501 tel;work:919-657-1432 x-mozilla-html:FALSE url:www.rtci.com org:RTCI;Custom Solutions adr:;;201 Shannon Oaks Circle;Cary;NC;27511;US version:2.1 email;internet:[EMAIL PROTECTED] title:Web Developer fn:Matt end:vcard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Start IIS
Is possible to start-restart IIS from a remote machine? It is possible. There is a MFC API for starting/stop/restarting NT services: SC_HANDLE OpenService( SC_HANDLE mgr,// handle to SCM Database LPCTSTR svc_name,// Name of Service DWORDaccess_mod // access ); // restart svc = OpenService(hSCM, name, SERVICE_START | SERVICE_QUERY_STATUS | SERVICE_STOP); // start svc = OpenService(hSCM, name, SERVICE_START | SERVICE_QUERY_STATUS); And the calling the StartService or ControlService methods on the handler. I've attached the API for these methods in case you don't have access to them. I believe what you'd need to do is write a service that was setup as manual on your service that did the stop/start of IIS and then write an interface that allowed you to run that service over the web. --- Michael Wentzel Software Developer A HREF="http://www.aswethink.com"Software As We Think/A A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A ServiceControls.doc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Start IIS
THANKS A LOT - Original Message - From: "Michael Wentzel" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, January 26, 2001 3:11 PM Subject: RE: Start IIS Is possible to start-restart IIS from a remote machine? It is possible. There is a MFC API for starting/stop/restarting NT services: SC_HANDLE OpenService( SC_HANDLE mgr,// handle to SCM Database LPCTSTR svc_name,// Name of Service DWORDaccess_mod // access ); // restart svc = OpenService(hSCM, name, SERVICE_START | SERVICE_QUERY_STATUS | SERVICE_STOP); // start svc = OpenService(hSCM, name, SERVICE_START | SERVICE_QUERY_STATUS); And the calling the StartService or ControlService methods on the handler. I've attached the API for these methods in case you don't have access to them. I believe what you'd need to do is write a service that was setup as manual on your service that did the stop/start of IIS and then write an interface that allowed you to run that service over the web. --- Michael Wentzel Software Developer A HREF="http://www.aswethink.com"Software As We Think/A A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: API for org.apache.* classes
I find them under $TOMCAT_HOME/webapps/ROOT/javadoc. I am using the source distribution. Not sure if this is true for the binary distribution as well. Bill Ratnadeep Bhattacharjee wrote: Hello, Could someone please tell me where I could find the javadocs for the org.apache.* classes. I downloaded jakarta-tomcat-3.2.1 (binary) but could not find them in the accompanying docs. Thanks. -Deep. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: mod_jk load balancing
Title: RE: mod_jk load balancing Thank you! I added loadbalancer to the workers.list worker.list=worker_1, worker_2, my_loadbalancer (it was not there), and it starts balancing! -Original Message- From: Luc Vanlerberghe [mailto:[EMAIL PROTECTED]] Sent: Friday, January 26, 2001 4:49 AM To: [EMAIL PROTECTED] Subject: Re: mod_jk load balancing Your workers.properties file contains the entry worker.list Normally that lists the available workers and the JkMount directives indicate which one to connect to However, If you want to do loadbalancing, the workers.list should only contain the name of your loadbalacing worker and none of the workers the loadbalancer itself is using! So with the configuration you gave, you should have worker.list=loadbalancer (The rest of the config including the JkMount directives looks correct) If you want to switch back to no loadbalancing, change back to worker.list=ajp12,ajp13 and connect to either one using JkMount Luc Vanlerberghe P.s.: I only did something similar using mod_jserv, but I don't see any reason why this should be different for mod_jk P.p.s.: Perhaps consider changing the names of your workers (In the tomcat examples they are confusing as well, I know). ajp12 and ajp13 are names of two different communication protocols between the webserver and tomcat... If you change the names of your workers to worker_1 and worker_2, the configs become worker.list=my_loadbalancer worker.worker_1.port=10101 worker.worker_1.host=localhost worker.worker_1.type=ajp12 worker.worker_1.lbfactor=1 worker.worker_2.port=10103 worker.worker_2.host=localhost worker.worker_2.type=ajp12 worker.worker_2.lbfactor=1 worker.my_loadbalancer.type=lb worker.my_loadbalancer.balanced_workers=worker_1,worker_2 Royzen, Margaret wrote: Hi everyone, I am trying to configure the Apache server to balance the load between two independent Tomcat workers using ajp12 protocol. One worker is listening on port 10101, another one on port 10102. I put in my workers.properties file: worker.ajp12.port=10101 worker.ajp12.host=localhost worker.ajp12.type=ajp12 worker.ajp12.lbfactor=1 worker.ajp13.port=10103 worker.ajp13.host=localhost worker.ajp13.type=ajp12 worker.ajp13.lbfactor=1 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=ajp12, ajp13 At first I put in my apache configuration file : JkMount /apps-jsp/servlet/* loadbalancer JkMount /apps-jsp/*.jsp loadbalancer thinking, that this way mod_jk will process requests via loadbalancer worker, but I got Internal Server Error After that, I changed it back to: JkMount /apps-jsp/servlet/* ajp12 JkMount /apps-jsp/*.jsp ajp12 Servlets started working, but log files are showing no load balancing, all requests are processes via port 10101. Does anyone know, what should I put into Apache configuration file to achieve load balancing? Thank you very much in advance, Margaret Royzen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
getParameter in Tomcat on IIS
Hi All, I'm new to the list and I'm setting up Tomcat 3.2 + IIS and we get the problem stated in http://znutar.cortexity.com/BugRatViewer/ShowReport/55 and http://w4.metronet.com/~wjm/tomcat/ToFeb11/msg02723.html (getParameter is null when values from a HTML FORM are sent to a JSP). The getParameter works well if the method used is GET, but if POST is used the value returned is null (only detected in MSIE 4.x). Does anyone have any clue about this problem ?? (actual Tomcat bug, MSIE bug), Any workarounds ?? Thanks for all your help. -- Vctor A. Rodrguez ( http://www.bit-man.com.ar) Telefnica de Argentina - http://www.Telefonica.com.ar Tel. (54-11) 4333-7305 - Fax: (54-11) 4303-5586 int. 1680 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
servlet-jdbc question
Hi, Not sure this message got through the first time. I'm new to tomcat/apache and servlets in general. - Installed fine (both tomcat and mysql) - I've been able to add examples servlets. - Ported jdbc application to use mysql and all works fine. - Ported a generic dbexport (jdbc application) to a HttpServlet and no go. - Added the appropriate CLASSPATH's to various scripts. - Nope still doesn't work - Added (and updated) the server.xml file to include mysql stuff. - Nope, not yet. I get this error: "HTTP Status 500 - /examples/servlet/httpdbexport The server encountered an internal error (/examples/servlet/httpdbexport) that prevented it from fulfilling this request. " Any ideas? thanks, Kerry -- Kerry M Finn Sun Microsystems Inc 1 Network Drive Burlington, Ma. 01803 [EMAIL PROTECTED] Work Email 781-442-0408Work Phone [EMAIL PROTECTED] SMS Messaging 781-492-1051Cell Phone - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: JSP outside tomcat causes 404
Title: RE: JSP outside tomcat causes 404 Hi Jakub, If the context for your file is undefined, then tomcat assume, that context is TOMECAT_HOME/webapps/ROOT, and is looking for your file there. You need to give tomcat a glue where to look. Try putting into server.xml Context path=/ docBase=/web/apache debug=0 reloadable=false isWorkDirPersistent=true /Context (If /web/apache is your document root.) -Original Message- From: Jakub Labath [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 25, 2001 9:09 PM To: [EMAIL PROTECTED] Subject: JSP outside tomcat causes 404 Hi, I've read the docu. I'm guessing something but I'm still not sure. Question: Tomcat and apache living together with help of mod_jk I have my web server directory /web/apache/ where i have my html files etc. I have my tomcat directory /web/tomcat/webapps/* Now if i place some jsp like this /web/apache/snoop.jsp the server comes with 404 but the 404 comes from tomcat and not from apache In the jasper.log I can see tomcat complaining that it cannot find the /web/tomcat/webapps/ROOT/snoop.jsp Is it possible to have jsp pages served by tomcat even if they are not in none of its contexts? the reason I'm asking this are these two lines I include in jakarta.conf JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 which make me think that if apache encounters lets say /web/apache/snoop.jsp that it sends it to tomcat and tomcat then makes some cool magic and runs the jsp If that is not possible and i want to have my (html jsp gif .etc) files together in one directory i have to make appropriate context for /web/apache/foo or tell apache that the foo is in /web/tomcat/webapps/ROOT/foo, right? Thanks for any help folks. Maybe I just answered my questions myself, but I'm tired and confused so I decided myself to scream for help. Tomcat: 3.2.1 Apache: 1.3.9 JVM: Sun 1.2.2 OS: Linux 2.2 Thanks jakub - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
WEB-INF/lib Servlet
Hi, When Irun an application inside my tomcat 3.2, if I put some files in the WEB-INF/classes only JSP can access the custom classes and the Servlets can't!!! (NoClassDefFoundException) Don't they share the same classpath/classloader since they are in the same application ? Christophe.
Re: java.exe deadlock
I remember a problem like that being discussed. It occurs if you remove the ROOT webapp. It was reported several times. Check the BugRat reports: http://w4.metronet.com/~wjm/tomcat/2000/Sep/msg00086.html http://w4.metronet.com/~wjm/tomcat/2000/Sep/msg00087.html http://znutar.cortexity.com/BugRatViewer/ShowReport/630 http://znutar.cortexity.com/BugRatViewer/ShowReport/631 And finally: http://znutar.cortexity.com/BugRatViewer/ShowReport/691 A comment on that page says that it has been fixed, but not in what release... (http://znutar.cortexity.com/BugRatViewer/ShowComment/282) There's a workaround on: http://w4.metronet.com/~wjm/tomcat/2000/Sep/msg00088.html Luc Vanlerberghe Helge wrote: Hi there everyone, I have a problem that drives me nuts. I didn't find anything in the FAQs, nor in the the How-Tos, nor in the newsgroups. I set up Tomcat 3.2.1 (including my own context within the "webapps" directory) in combination with Apache 1.3.14 via mod_jk.dll on Windows NT 4. I set it up according to the Tomcat documentation. Everything works fine until I send a request to Apache pointing at a non-existing *.jsp, which is apped to Tomcat using a "JKMount /*.jsp" statement via an ajp13-worker. This request will result in a constant "java.exe" process which consumes 100% cpu time. The server is locked and takes no more requests. Did I make a mistake within the .conf files? Do I need a special mapping? Any idea what could be the resaon for this? I tried multiple (really, multiple!) configurations. I'm starting to get so very tired... Please help me ... or give me a hint, where help to this special problem could be found. Thanks, Helge Carstensen [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: servlet-jdbc question
Randy Layman wrote: Question 1: Does it work in just Tomcat, without Apache? I'm only running Tomcat (catalina 4.0 - needed to support http1.1). Question 2: Do you see anything relevant in your log files? Here is the most relevant message: 2001-01-25 11:42:48 StandardWrapper[/examples:org.apache.catalina.INVOKER.httpdbexport]: Marking servlet org.apache.catalina.INVOKER.httpdbexport as unavailable 2001-01-25 11:42:48 invoker: serveRequest.load javax.servlet.ServletException: Error instantiating servlet class httpdbexport When I've added similar apps (without JDBC) to the examples directory they worked fine. Seems like there's some type of intialization error when loading the class. This app works as stand alone (with main). -Original Message- From: kerry finn [mailto:[EMAIL PROTECTED]] Sent: Friday, January 26, 2001 11:26 AM To: [EMAIL PROTECTED] Subject: servlet-jdbc question Hi, Not sure this message got through the first time. I'm new to tomcat/apache and servlets in general. - Installed fine (both tomcat and mysql) - I've been able to add examples servlets. - Ported jdbc application to use mysql and all works fine. - Ported a generic dbexport (jdbc application) to a HttpServlet and no go. - Added the appropriate CLASSPATH's to various scripts. - Nope still doesn't work - Added (and updated) the server.xml file to include mysql stuff. - Nope, not yet. I get this error: "HTTP Status 500 - /examples/servlet/httpdbexport The server encountered an internal error (/examples/servlet/httpdbexport) that prevented it from fulfilling this request. " Any ideas? thanks, Kerry -- Kerry M Finn Sun Microsystems Inc 1 Network Drive Burlington, Ma. 01803 [EMAIL PROTECTED] Work Email 781-442-0408Work Phone [EMAIL PROTECTED] SMS Messaging 781-492-1051Cell Phone - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Lost 8007 connection
At 08:11 AM 01/26/2001 -0800, David Loy wrote: ... -Original Message- From: David Loy [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 25, 2001 11:38 AM To: [EMAIL PROTECTED] Subject: Lost 8007 connection Mail Query; Is this the same David Loy that once taught here at MIU? Thanks. Gregory Dr. Gregory Guthrie [EMAIL PROTECTED] (641)472-1125Fax: -1103 Computer Science Department School of Computing and Information Science Maharishi University of Management (Maharishi International University 1971-1995) http://www.mum.edu/cs_dept - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Tomcat 3.2.1 JDBCRealm and Digest
Hello all, I am running Tomcat 3.2.1 on an NT box. I am using Tomcat's JDBCRealm security features with BASIC authentication. There doesn't appear to be support for DIGEST auth. Is there still development on 3.2.x that would include support for DIGEST auth? If so, when would that be released? Thanks in advance. Raimee - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: getParameter in Tomcat on IIS
Eric, Hi Are you using by any change this option when doing a post : enctype="multipart/form-data" ? Not at all, I'm using the form (and JSP code) attached to this e-mail. Cheers -- Vctor A. Rodrguez ( http://www.bit-man.com.ar) Telefnica de Argentina - http://www.Telefonica.com.ar Tel. (54-11) 4333-7305 - Fax: (54-11) 4303-5586 int. 1680 Title: Test de Bit-Man Formulario con POST Login Password Formulario con GET Login Password test.jsp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: BIZZAR Caching Problem !!
As I know, it's the matter of JVM which contains the loaded classes. When you restart Tomcat, JVM restarted also. wish be helpful. http://jspstudy.zoa.to (ko) kenu - Original Message - From: "Shahed Ali" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, January 27, 2001 1:44 AM Subject: BIZZAR Caching Problem !! Hi, I am using Tomcat 3.2.1 w/Sun JDK 1.3 on Solaris 8 + Apache 1.3.14 + mod_jk Now here is my problem. I have a jsp page with an include to refer to file a.inc. I change the include to refer to another file (b.inc) I reload the page. I still see the content of a.inc. I touch the jsp file. No change. I go to the work directory and rm * (delete all generated class and java files) I reload the page. No change. I look at the generated .java code for my jsp page. It sill includes the old a.inc file. FINALLY I restart tomcat. Everything back to normal. Can anyone tell me what was going on ? Does mod_jk somehow cache the jsp file ? Thanks Shahed. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: BIZZAR Caching Problem !!
Title: RE: BIZZAR Caching Problem !! I have %@ include file, and I did go into the proper sub directory and do an rm and after reloading, I saw new .java and .class files, so Iwas obviously in the right work directory. I cannot do any further testing though, because I cannot recreat the problem !! Has anyone else seen this problem ? I would have loved to leave things as they were and experiment, but that would stop developers. So I had to restart tomcat. Hopefully, I hope to see the problem again, and then experiment. Also, I am using worker threads. i.e I have 1 JVM and tomcat instance for each app using ajp13 with multiple worker threads. But a common tomcat install directory. Thanks for any further input. Shahed - Original Message - From: Jord Sonneveld To: [EMAIL PROTECTED] Sent: Friday, January 26, 2001 11:50 AM Subject: RE: BIZZAR Caching Problem !! What happens if you rm -rf all directories under tomcat/work? Just to make sure that nothing wacky is going on because of your host tag. Also, do you have a %@ include file= ... % or a jsp: include page= ... / directive? Sounds like you have %@, but just want to make sure. And the content of a.inc and b.inc is distinct, correct? :) j\s -Original Message-From: Shahed Ali [mailto:[EMAIL PROTECTED]]Sent: Friday, January 26, 2001 12:21 PMTo: [EMAIL PROTECTED]Subject: Re: BIZZAR Caching Problem !! Yes, Your sequence of events is correct. The .jsp and work directories are local. And restarting tomcat solved the problem. There are a few things though. The server.xml is configured with my app setup under a host tag. the directory refered to by server.xml as docBase is a symbolic link to aonther dir on the same server. Regards Shahed Now, you are saying that the newly generated .java file refers to a.inc? Perhaps tomcat is de-compiling the .java from the class in memory :) Are your .jsp files mounted over NFS or any other remote file system?
Jsp app file location?
If I have a jsp which reads a file "data.txt", where in the Tomcat directory do I put it? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Jsp app file location?
How do you read the file? As mentioned in several posts before, the generally accepted way of doing this is to use the Classloader getResourceAsStream, in which case the file needs to be in the class loader's classpath (web-inf/classes or in a jar file in web-inf/lib). Randy -Original Message- From: Jim George [mailto:[EMAIL PROTECTED]] Sent: Friday, January 26, 2001 1:24 PM To: Tomcat List Subject: Jsp app file location? If I have a jsp which reads a file "data.txt", where in the Tomcat directory do I put it? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Jsp app file location?
Nael Mohammad Customer Support Analyst Neomar, Inc. 180 Montgomery Street Suite 2000 San Francisco, CA 94104 Tel: 415-403-7300 ext. 274 Fax: 415-403-7373 " Wireless Means Business" -- Sent from my BlackBerry Wireless Handheld (www.BlackBerry.net) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: mod_jk load balancing
Title: RE: mod_jk load balancing You should send requests from the different browsers, otherwise it will be send to the same tomcat process according to the session ID. Apache configuration file should point to: JkMount /*.jsp loadbalancer in server.xml file of the MACHINE1, that have Internet address "A1.B1.C1.D1"you specify: Connector className="org.apache.tomcat.service.PoolTcpConnector" Parameter name="handler"value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/ Parameter name="inet" value="A1.B1.C1.D1" Parameter name="port" value="8080"/ /Connector In servlet.xml file of the MACHINE2, that have Internet address "A2.B2.C2.D2"you specify: Connector className="org.apache.tomcat.service.PoolTcpConnector" Parameter name="handler"value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/ Parameter name="inet" value="A2.B2.C2.D2" Parameter name="port" value="8080"/ /Connector I did not try it, but I think it should work. -Original Message-From: Nair, Nipun [mailto:[EMAIL PROTECTED]]Sent: Friday, January 26, 2001 11:32 AMTo: [EMAIL PROTECTED]Subject: RE: mod_jk load balancing Hi, To get the workers running on different machines/ ports - do i need to do anything apart from specifying the following in my workers.properties :- -- worker.list=loadbalancer worker.wrker_1.port=8080worker.wrker_1.host=MACHINE1worker.wrker_1.type=ajp12worker.wrker_1.lbfactor=1 worker.wrker_2.port=8080worker.wrker_2.host=MACHINE2worker.wrker_2.type=ajp12worker.wrker_2.lbfactor=1 worker.loadbalancer.type=lbworker.loadbalancer.balanced_workers=wrker_2, wrker_1 -- I started tomcat in both the machines, and i dont see, MACHINE2 getting any requests... do i need to specifiy anything special in the server.xml of the tomcat installs ? If i want to start multiple workers in the same machine - do i need to modify the server.xml and change the port numbers from 8080 there ?? Please help, Nipun -Original Message-From: Royzen, Margaret [mailto:[EMAIL PROTECTED]]Sent: Friday, January 26, 2001 7:37 AMTo: '[EMAIL PROTECTED]'Subject: RE: mod_jk load balancing Thank you! I added loadbalancer to the workers.list worker.list=worker_1, worker_2, my_loadbalancer (it was not there), and it starts balancing! -Original Message- From: Luc Vanlerberghe [mailto:[EMAIL PROTECTED]] Sent: Friday, January 26, 2001 4:49 AM To: [EMAIL PROTECTED] Subject: Re: mod_jk load balancing Your workers.properties file contains the entry worker.list Normally that lists the available workers and the JkMount directives indicate which one to connect to However, If you want to do loadbalancing, the workers.list should only contain the name of your loadbalacing worker and none of the workers the loadbalancer itself is using! So with the configuration you gave, you should have worker.list=loadbalancer (The rest of the config including the JkMount directives looks correct) If you want to switch back to no loadbalancing, change back to worker.list=ajp12,ajp13 and connect to either one using JkMount Luc Vanlerberghe P.s.: I only did something similar using mod_jserv, but I don't see any reason why this should be different for mod_jk P.p.s.: Perhaps consider changing the names of your workers (In the tomcat examples they are confusing as well, I know). ajp12 and ajp13 are names of two different communication protocols between the webserver and tomcat... If you change the names of your workers to worker_1 and worker_2, the configs become worker.list=my_loadbalancer worker.worker_1.port=10101 worker.worker_1.host=localhost worker.worker_1.type=ajp12 worker.worker_1.lbfactor=1 worker.worker_2.port=10103 worker.worker_2.host=localhost worker.worker_2.type=ajp12 worker.worker_2.lbfactor=1 worker.my_loadbalancer.type=lb worker.my_loadbalancer.balanced_workers=worker_1,worker_2 "Royzen, Margaret" wrote: Hi everyone, I am trying to configure the Apache server to balance the load between two independent Tomcat workers using ajp12 protocol. One worker is listening on port 10101, another one on port 10102. I put in my workers.properties file: worker.ajp12.port=10101 worker.ajp12.host=localhost worker.ajp12.type=ajp12 worker.ajp12.lbfactor=1 worker.ajp13.port=10103 worker.ajp13.host=localhost worker.ajp13.type=ajp12 worker.ajp13.lbfactor=1 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=ajp12, ajp13 At first I put in my apache configuration file : JkMount
RE: Help!
Hi Desiree, I have Tomcat3.2.1 installed on Win98. All I did was download and unzip binaries to my hard drive c:\apache.org\. It created the appropriate directory structure. I then editted the tomcat.bat file and set TOMCAT_HOME=c:\apache.org\tomcat and JAVA_HOME=c:\jdk1.3. I then ran the tomcat.bat file with an argument of 'start' (without the quotes). Tomcat cranked right up. You should be able to find necessary documentation on under TOMCAT_HOME\doc\uguide\tomcat_ug.html HTH -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 25, 2001 7:23 PM To: [EMAIL PROTECTED] Subject: Help! hi! I've downloaded the binary version of tomcat 3.1.1 build in my computer(Win 98) and I can't seem to run it. I've followed the instructions from a book and from jakarta.apache.com. I've installed the jdk, and edited the tomcat.bat file. The book told me though that the default installation for Tomcat will run under Unix, Windows NT and Windows 2000 and that users with Windows 9X should consult the Tomcat website for configuration information. I explored in the internet the whole afternoon for the configuration but i had no luck. My last resort is you. Pls. tell me how to configure this computer so that i'll be able to run the Tomcat Server. __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Running Tomcat on WindowsNT
Hi - I installed tomcat on a Windows NT workstation. With administrator rights and unsetting classpath in the Environment settings, I get the following error when starting tomcat: D:\tomcat\tomcatset TOMCAT_HOME=D:\tomcat\tomcat D:\tomcat\tomcatcd bin D:\tomcat\tomcat\binstartup Including all jars in D:\tomcat\tomcat\lib in your CLASSPATH. Using CLASSPATH: D:\tomcat\tomcat\classes;D:\tomcat\tomcat\lib\ant.jar;D:\tomcat \tomcat\lib\jasper.jar;D:\tomcat\tomcat\lib\jaxp.jar;D:\tomcat\tomcat\lib\pa rser .jar;D:\tomcat\tomcat\lib\servlet.jar;D:\tomcat\tomcat\lib\webserver.jar;c:\ jdk1 .3;c:\jdk1.3\bin;c:\jdk1.3\bin\lib;c:\tomcat\tomcat\lib;D:\jdk1.3\lib\tools. jar Starting Tomcat in new window The system cannot find the file -Dtomcat.home=D:\tomcat\tomcat. D:\tomcat\tomcat\bin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Running Tomcat on WindowsNT
I didn't have to set TOMCAT_HOME, all I did was to set JAVA_HOME to point to c:\jdk1.3 Filip ~ Namaste - I bow to the divine in you. ~ Filip Hanik Technical Architect [EMAIL PROTECTED] - Original Message - From: "STEPHEN MURPHY" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, January 26, 2001 12:45 PM Subject: Running Tomcat on WindowsNT Hi - I installed tomcat on a Windows NT workstation. With administrator rights and unsetting classpath in the Environment settings, I get the following error when starting tomcat: D:\tomcat\tomcatset TOMCAT_HOME=D:\tomcat\tomcat D:\tomcat\tomcatcd bin D:\tomcat\tomcat\binstartup Including all jars in D:\tomcat\tomcat\lib in your CLASSPATH. Using CLASSPATH: D:\tomcat\tomcat\classes;D:\tomcat\tomcat\lib\ant.jar;D:\tomcat \tomcat\lib\jasper.jar;D:\tomcat\tomcat\lib\jaxp.jar;D:\tomcat\tomcat\lib\pa rser .jar;D:\tomcat\tomcat\lib\servlet.jar;D:\tomcat\tomcat\lib\webserver.jar;c:\ jdk1 .3;c:\jdk1.3\bin;c:\jdk1.3\bin\lib;c:\tomcat\tomcat\lib;D:\jdk1.3\lib\tools. jar Starting Tomcat in new window The system cannot find the file -Dtomcat.home=D:\tomcat\tomcat. D:\tomcat\tomcat\bin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: getParameter in Tomcat on IIS
Eric, thanks for your soon answer !! unfortunately there's no change, even when all text was uppercase. I also played with upper/lower case when getting the parameters in the JSP, but unless the case are exactly the same for each file (HTML and JSP) the obtained result is null (for NetScape, where POST and GET worked). Perhaps I'll take a look to the sources and make some little debugging to get a clue about it. If anyone has the same kind of problem (IIS or not) please let me know. Cheers. -- Vctor A. Rodrguez ( http://www.bit-man.com.ar) Telefnica de Argentina - http://www.Telefonica.com.ar Tel. (54-11) 4333-7305 - Fax: (54-11) 4303-5586 int. 1680 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
using the name TOMCAT
Hi, I am using Jakarta NT Service to run Tomcat as an NT Service. The name I have used for the NT Service is "my-application-name TOMCAT". Is there any licensing issues in using the name "TOMCAT" in the NT Service name? Thanks in advance, Senthil _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: mod_jk load balancing
Title: RE: mod_jk load balancing Hi Margaret, Thank for you help on this - i am able to get a bit further now and I see the mod_jk log setting up the workers... But I am getting the following error in my tomcat log when i try to get to a servlet Parse error, empty line:2001-01-26 12:10:26 - Ctx( ): 404 R( + (Win32) + null) nullParse error, empty line: 30.200.38.22001-01-26 12:14:18 - Ctx( ): 404 R( + (Win32) + null) nullParse error, empty line: el, applica2001-01-26 12:15:31 - Ctx( ): 404 R( + (Win32) + null) null I suspect this is due to a faulty setting in my_mod_jk.conf-auto which is include in my httpd.conf Perhaps I am not giving the JK_Mount commands properly... If you have any idea - let me know.. Thanks - Nipun -Original Message-From: Royzen, Margaret [mailto:[EMAIL PROTECTED]]Sent: Friday, January 26, 2001 11:54 AMTo: '[EMAIL PROTECTED]'Subject: RE: mod_jk load balancing You should send requests from the different browsers, otherwise it will be send to the same tomcat process according to the session ID. Apache configuration file should point to: JkMount /*.jsp loadbalancer in server.xml file of the MACHINE1, that have Internet address "A1.B1.C1.D1"you specify: Connector className="org.apache.tomcat.service.PoolTcpConnector" Parameter name="handler"value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/ Parameter name="inet" value="A1.B1.C1.D1" Parameter name="port" value="8080"/ /Connector In servlet.xml file of the MACHINE2, that have Internet address "A2.B2.C2.D2"you specify: Connector className="org.apache.tomcat.service.PoolTcpConnector" Parameter name="handler"value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/ Parameter name="inet" value="A2.B2.C2.D2" Parameter name="port" value="8080"/ /Connector I did not try it, but I think it should work. -Original Message-From: Nair, Nipun [mailto:[EMAIL PROTECTED]]Sent: Friday, January 26, 2001 11:32 AMTo: [EMAIL PROTECTED]Subject: RE: mod_jk load balancing Hi, To get the workers running on different machines/ ports - do i need to do anything apart from specifying the following in my workers.properties :- -- worker.list=loadbalancer worker.wrker_1.port=8080worker.wrker_1.host=MACHINE1worker.wrker_1.type=ajp12worker.wrker_1.lbfactor=1 worker.wrker_2.port=8080worker.wrker_2.host=MACHINE2worker.wrker_2.type=ajp12worker.wrker_2.lbfactor=1 worker.loadbalancer.type=lbworker.loadbalancer.balanced_workers=wrker_2, wrker_1 -- I started tomcat in both the machines, and i dont see, MACHINE2 getting any requests... do i need to specifiy anything special in the server.xml of the tomcat installs ? If i want to start multiple workers in the same machine - do i need to modify the server.xml and change the port numbers from 8080 there ?? Please help, Nipun -Original Message-From: Royzen, Margaret [mailto:[EMAIL PROTECTED]]Sent: Friday, January 26, 2001 7:37 AMTo: '[EMAIL PROTECTED]'Subject: RE: mod_jk load balancing Thank you! I added loadbalancer to the workers.list worker.list=worker_1, worker_2, my_loadbalancer (it was not there), and it starts balancing! -Original Message- From: Luc Vanlerberghe [mailto:[EMAIL PROTECTED]] Sent: Friday, January 26, 2001 4:49 AM To: [EMAIL PROTECTED] Subject: Re: mod_jk load balancing Your workers.properties file contains the entry worker.list Normally that lists the available workers and the JkMount directives indicate which one to connect to However, If you want to do loadbalancing, the workers.list should only contain the name of your loadbalacing worker and none of the workers the loadbalancer itself is using! So with the configuration you gave, you should have worker.list=loadbalancer (The rest of the config including the JkMount directives looks correct) If you want to switch back to no loadbalancing, change back to worker.list=ajp12,ajp13 and connect to either one using JkMount Luc Vanlerberghe P.s.: I only did something similar using mod_jserv, but I don't see any reason why this should be different for mod_jk P.p.s.: Perhaps consider changing the names of your workers (In the tomcat examples they are confusing as well, I know). ajp12 and ajp13 are names of two different communication protocols between the webserver and tomcat... If you change the names
RE: include in web.xml ?
yep, it's standard xml.. Saludos , Ignacio J. Ortega -Mensaje original- De: GOMEZ Henri [mailto:[EMAIL PROTECTED]] Enviado el: viernes 26 de enero de 2001 23:12 Para: [EMAIL PROTECTED] Asunto: RE: include in web.xml ? Oups the correct was : ?xml version="1.0" encoding="ISO-8859-1"? !DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd" !DOCTYPE web-app [ !ENTITY include_part1 SYSTEM "part1.xml" !ENTITY include_part2 SYSTEM "part2.xml" !ENTITY include_part3 SYSTEM "part3.xml" ] web-app include_part1; include_part2; include_part3; /web-app - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Basic authentication
Marino Vittorio wrote: I am using Basic authentication with Tomcat v3.2.1 Everything works just fine, but I'd like to know how to grab User and Password during the authentication process to put them in a bean. Any clue? Thanks, Vittorio The username is already available, via request.getRemoteUser(). Is there a particular reason you need the password as well? Craig McClanahan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Tomcat 3.2.1 JDBCRealm and Digest
[EMAIL PROTECTED] wrote: Hello all, I am running Tomcat 3.2.1 on an NT box. I am using Tomcat's JDBCRealm security features with BASIC authentication. There doesn't appear to be support for DIGEST auth. Is there still development on 3.2.x that would include support for DIGEST auth? If so, when would that be released? I don't personally know of any plans to support DIGEST mode authentication in Tomcat 3.x, but it is already supported in Tomcat 4.0. Thanks in advance. Raimee Craig McClanahan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Tomcat usage in a high volume cluster configuration?
Does anyone have experience using Tomcat for a high-volume website? If so, how many hits per day? How many tomcat (app) servers were you running? Which os, etc. __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Tomcat Root == Apache Root
I have both apache and tomcat working on the same folder c:\tomcat\webapps\ROOT. I pointed apache's directoryroot to that folder. Works fine for me - apache serves static html content, and passes jsp requests to tomcat, which finds those files in the same folder. Using this you don't need any further app-dirs like servlet or example, since all the files are in the root folder. Hope that helps. -Original Message- From: Martin Burger [mailto:[EMAIL PROTECTED]] Sent: Friday, January 26, 2001 7:22 AM To: [EMAIL PROTECTED] Subject: Tomcat Root == Apache Root Hello, I want that Apache and Tomcat use the same root-directory. I am currently using "Apache/1.3.14 (Win32) mod_jk PHP/4.0.4" and "Tomcat 3.2.1". I tried it for more than five hours, but it does not work properly. Any hints? I searched the web and the mailing-list, but all I found was a thread "Tomcat ROOT == Apache Root" without any solution for this problem. It seems many users try to do this, but they all fail? Is it possible that Apache and Tomcat share the same root-directory? I would prefer if they work together without any "app-dir" like "servlet", "dynamic", "example" or whatever. Thanks Martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: tomcat will not start
Hi, Tomcat attempts to start the Ajp12ConnectionHandler at port 8007 ( by default ) as configured in the server.xml snippet from server.xml :- Connector className="org.apache.tomcat.service.PoolTcpConnector" Parameter name="handler" value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/ Parameter name="port" value="8007"/ /Connector It also starts the HttpConnectionHandler on the port 8080. Make sure that these ports are free ( available for Tomcat ) - b4 you try to start it. Else, change these ports in the server.xml and try again. Hope this helps -- Nipun. -Original Message- From: Christopher Nallo [mailto:[EMAIL PROTECTED]] Sent: Friday, January 26, 2001 4:54 PM To: [EMAIL PROTECTED] Subject: tomcat will not start When I try to start tomcat this is the error I get. Guessing TOMCAT_HOME from tomcat.sh to ./.. Setting TOMCAT_HOME to ./.. Using classpath: ./../lib/ant.jar:./../lib/jasper.jar:./../lib/jaxp.jar:./../lib/parser.jar:./../lib/servlet.jar:./../lib/test:./../lib/webserver.jar [root@elfkingdom bin]# 2001-01-26 01:55:03 - ContextManager: Adding context Ctx( /examples ) 2001-01-26 01:55:03 - ContextManager: Adding context Ctx( /admin ) Starting tomcat. Check logs/tomcat.log for error messages 2001-01-26 01:55:03 - ContextManager: Adding context Ctx( ) 2001-01-26 01:55:03 - ContextManager: Adding context Ctx( /test ) FATAL:java.io.IOException: Address already in use java.io.IOException: Address already in use at java.net.PlainSocketImpl.socketBind(PlainSocketImpl.java:native) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:43) at java.net.ServerSocket.init(ServerSocket.java:53) at java.net.ServerSocket.init(ServerSocket.java:30) at org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:97) at org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java:239) at org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.java:188) at org.apache.tomcat.core.ContextManager.start(ContextManager.java:527) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) If anyone can help I would appreciate it. Thanks Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: tomcat will not start
netstat -a will tell you the ports currently being used. Ajith Unnikrishnan --- "Nair, Nipun" [EMAIL PROTECTED] wrote: Hi, Tomcat attempts to start the Ajp12ConnectionHandler at port 8007 ( by default ) as configured in the server.xml snippet from server.xml :- Connector className="org.apache.tomcat.service.PoolTcpConnector" Parameter name="handler" value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/ Parameter name="port" value="8007"/ /Connector It also starts the HttpConnectionHandler on the port 8080. Make sure that these ports are free ( available for Tomcat ) - b4 you try to start it. Else, change these ports in the server.xml and try again. Hope this helps -- Nipun. -Original Message- From: Christopher Nallo [mailto:[EMAIL PROTECTED]] Sent: Friday, January 26, 2001 4:54 PM To: [EMAIL PROTECTED] Subject: tomcat will not start When I try to start tomcat this is the error I get. Guessing TOMCAT_HOME from tomcat.sh to ./.. Setting TOMCAT_HOME to ./.. Using classpath: ./../lib/ant.jar:./../lib/jasper.jar:./../lib/jaxp.jar:./../lib/parser.jar:./../lib/servlet.jar:./../lib/test:./../lib/webserver.jar [root@elfkingdom bin]# 2001-01-26 01:55:03 - ContextManager: Adding context Ctx( /examples ) 2001-01-26 01:55:03 - ContextManager: Adding context Ctx( /admin ) Starting tomcat. Check logs/tomcat.log for error messages 2001-01-26 01:55:03 - ContextManager: Adding context Ctx( ) 2001-01-26 01:55:03 - ContextManager: Adding context Ctx( /test ) FATAL:java.io.IOException: Address already in use java.io.IOException: Address already in use at java.net.PlainSocketImpl.socketBind(PlainSocketImpl.java:native) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:43) at java.net.ServerSocket.init(ServerSocket.java:53) at java.net.ServerSocket.init(ServerSocket.java:30) at org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:97) at org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java:239) at org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.java:188) at org.apache.tomcat.core.ContextManager.start(ContextManager.java:527) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) If anyone can help I would appreciate it. Thanks Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Question about sessions..
Matt Goss wrote: John, the getSession(false) only returns a session if it is not a new one (ie if request is from another page inside the application). getSession(true) always returns a session. Matt Goss "John Clark L. Naldoza" wrote: Thanks Matt, I am using getSession(false), but I still get a session even when it is my first time accessing the browser... i.e. if( getSession(false) == null ) { System.out.println( No Session ); } else { System.out.println( "Has a session" ); } Mine would print out has a session...;-( are there any extra settings in the server.xml or web.xml that I should know about? Thanks in advance.. -- /) John Clark Naldoza y Lopez (\ / )Software Design Engineer II ( \ _( (__ Web-Application Development_) )_ (((\ \ /_Cable Modem Network Management System _\ / /))) ( \_/ / NEC Telecom Software Phils., Inc. \ \_/ ) \ / \ / \_/ phone: (+63 32) 233-9142 loc. 3112\_/ / / cellphone: (+63 919) 241-4612 \ \ / / email: [EMAIL PROTECTED]\ \ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: java.sql.SQLException: Io exception: Broken pipe
Thanks, but how do you turn off the pool connections ?? It seems to me that all the default connectors in tomcat 3.2 server.xml comes with a pool component as shown below. Thanks for your feedback. !-- Connectors -- !-- Normal HTTP -- Connector className="org.apache.tomcat.service.PoolTcpConnector" Parameter name="handler" value="org.apache.tomcat.service.http.HttpConnectionHandler"/ Parameter name="port" value="8001"/ /Connector !-- Uncomment this for SSL support. You _need_ to set up a server certificate if you want this to work, and you need JSSE. 1. Add JSSE jars to CLASSPATH 2. Edit java.home/jre/lib/security/java.security Add: security.provider.2=com.sun.net.ssl.internal.ssl.Provider 3. Do: keytool -genkey -alias tomcat -keyalg RSA RSA is essential to work with Netscape and IIS. Use "changeit" as password. ( or add keypass attribute ) You don't need to sign the certificate. You can set parameter keystore and keypass if you want to change the default ( user.home/.keystore with changeit ) -- !-- Connector className="org.apache.tomcat.service.PoolTcpConnector" Parameter name="handler" value="org.apache.tomcat.service.http.HttpConnectionHandler"/ Parameter name="port" value="8443"/ Parameter name="socketFactory" value="org.apache.tomcat.net.SSLSocketFactory" / /Connector -- !-- Apache AJP12 support. This is also used to shut down tomcat. -- Connector className="org.apache.tomcat.service.PoolTcpConnector" Parameter name="handler" value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/ Parameter name="port" value="8007"/ /Connector !-- Apache AJP13 support. -- Connector className="org.apache.tomcat.service.PoolTcpConnector" Parameter name="handler" value="org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/ Parameter name="port" value="8009"/ /Connector -Original Message- From: Shahed Ali [mailto:[EMAIL PROTECTED]] Sent: Friday, January 26, 2001 5:04 PM To: [EMAIL PROTECTED] Subject: Re: java.sql.SQLException: Io exception: Broken pipe Yes I have got this error on Solaris 8 TC 3.2.1 JDK 1.3. I was using a connection pool and when I replaced it, things were fine. Regards Shahed. - Original Message - From: "Yin Tse" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, January 26, 2001 5:24 PM Subject: java.sql.SQLException: Io exception: Broken pipe Has anyone ever come across the above problem ? I'm using apache/tomcat combination in a solaris environment to serve html/servlets. When I start it up, everything works fine. If I let it sit and and come back a few hours later, my login servlet stalls and give me the following message : java.sql.SQLException: Io exception: Broken pipe at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:114) at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:156) at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269) at oracle.jdbc.driver.OracleStatement.init(OracleStatement.java:292) at oracle.jdbc.driver.OracleStatement.init(OracleStatement.java:307) at oracle.jdbc.driver.OraclePreparedStatement.init(OraclePreparedStatement.ja va:189) at oracle.jdbc.driver.OraclePreparedStatement.init(OraclePreparedStatement.ja va:172) at oracle.jdbc.driver.OracleConnection.prepareStatement(OracleConnection.java:3 39) at DBPartnerManager.authenticate(DBPartnerManager.java:1298) at LoginServlet.doGet(LoginServlet.java:86) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection (Ajp13ConnectionHandler.java:160) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) Anyone has got any thoughts on this ? Thanks.
RE: java.sql.SQLException: Io exception: Broken pipe
He's talking about a database connection pool. What looks like what is happening is that you open a connection to the DB once at the beginning, then save it for later. When you come back in several hours, the DB has dropped the connection, so when you try to use it, you get that message. If this is the case, than you need to recreate your connection or better monitor your connection to see if it has been dropped. Regards, Paul -Original Message- From: Yin Tse [mailto:[EMAIL PROTECTED]] Sent: Friday, January 26, 2001 9:43 PM To: '[EMAIL PROTECTED]' Subject: RE: java.sql.SQLException: Io exception: Broken pipe Thanks, but how do you turn off the pool connections ?? It seems to me that all the default connectors in tomcat 3.2 server.xml comes with a pool component as shown below. Thanks for your feedback. !-- Connectors -- !-- Normal HTTP -- Connector className="org.apache.tomcat.service.PoolTcpConnector" Parameter name="handler" value="org.apache.tomcat.service.http.HttpConnectionHandler"/ Parameter name="port" value="8001"/ /Connector !-- Uncomment this for SSL support. You _need_ to set up a server certificate if you want this to work, and you need JSSE. 1. Add JSSE jars to CLASSPATH 2. Edit java.home/jre/lib/security/java.security Add: security.provider.2=com.sun.net.ssl.internal.ssl.Provider 3. Do: keytool -genkey -alias tomcat -keyalg RSA RSA is essential to work with Netscape and IIS. Use "changeit" as password. ( or add keypass attribute ) You don't need to sign the certificate. You can set parameter keystore and keypass if you want to change the default ( user.home/.keystore with changeit ) -- !-- Connector className="org.apache.tomcat.service.PoolTcpConnector" Parameter name="handler" value="org.apache.tomcat.service.http.HttpConnectionHandler"/ Parameter name="port" value="8443"/ Parameter name="socketFactory" value="org.apache.tomcat.net.SSLSocketFactory" / /Connector -- !-- Apache AJP12 support. This is also used to shut down tomcat. -- Connector className="org.apache.tomcat.service.PoolTcpConnector" Parameter name="handler" value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/ Parameter name="port" value="8007"/ /Connector !-- Apache AJP13 support. -- Connector className="org.apache.tomcat.service.PoolTcpConnector" Parameter name="handler" value="org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/ Parameter name="port" value="8009"/ /Connector -Original Message- From: Shahed Ali [mailto:[EMAIL PROTECTED]] Sent: Friday, January 26, 2001 5:04 PM To: [EMAIL PROTECTED] Subject: Re: java.sql.SQLException: Io exception: Broken pipe Yes I have got this error on Solaris 8 TC 3.2.1 JDK 1.3. I was using a connection pool and when I replaced it, things were fine. Regards Shahed. - Original Message - From: "Yin Tse" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, January 26, 2001 5:24 PM Subject: java.sql.SQLException: Io exception: Broken pipe Has anyone ever come across the above problem ? I'm using apache/tomcat combination in a solaris environment to serve html/servlets. When I start it up, everything works fine. If I let it sit and and come back a few hours later, my login servlet stalls and give me the following message : java.sql.SQLException: Io exception: Broken pipe at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:114) at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:156) at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269) at oracle.jdbc.driver.OracleStatement.init(OracleStatement.java:292) at oracle.jdbc.driver.OracleStatement.init(OracleStatement.java:307) at oracle.jdbc.driver.OraclePreparedStatement.init(OraclePreparedStatement.ja va:189) at oracle.jdbc.driver.OraclePreparedStatement.init(OraclePreparedStatement.ja va:172) at oracle.jdbc.driver.OracleConnection.prepareStatement(OracleConnection.java:3 39) at DBPartnerManager.authenticate(DBPartnerManager.java:1298) at LoginServlet.doGet(LoginServlet.java:86) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at
RE: java.sql.SQLException: Io exception: Broken pipe
Yes, I was talking about database connection pooling. I am now using the pool manager from javaexchange. Pretty Good !!! (www.javaexchange.com) Regards Shahed. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Odd error
Geoff Lane wrote: Reply to myself. :) So after some more digging, I find out that it's caused by a 'heartbeat' monitor that we have on our servers to check the status. It pings port 80 to check if the webserver is alive. Apache does not log this in it's error logs as a Connection reset, but running Tomcat standalone does. Is this a bug? No request is actually being made, just a ping to port 80 If by "ping" you mean "run the Unix 'ping' utility", you would be right. The only problem with that theory is that you can only ping hosts, not individual ports ... What is happening is that your monitor program is violating the HTTP protocol, because it is establishing a network connection to port 80, but never sending a valid request. Therefore, it's perfectly within Tomcat's rights to complain about it. It is also perfectly within your rights to modify Tomcat to *not* complain about it, since this is specific to your site's approach to network monitoring. However, IMHO it is not a bug. An alternative approach for your particular situation would be to have your monitor process actually perform an HTTP request, instead of just connecting and disconnecting. Besides avoiding these error messages, this is also a more robust test to see if Tomcat is actually up and running (consider: if all the request processing threads were hung for some reason, but the server socket thread was still running, your monitor process would give you a false sense of security that everything is fine when it really was not). Craig McClanahan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
where does one find instructions on configuring IIS with tomcat as aservlet runner?
Hi all -- I'm seeking documentation on configuring IIS with tomcat Betty
Re: Odd error
Oh yeah forgot about ping being ICMP. :) I'm going to look into exactly what the 'heartbeat' is. I think it opens a connection and then doesn't send a request - but that's speculation. I agree that the more robust method would be to actually do a GET and see the results (maybe to a specific file and it can look for a keyword or something). I'll avoid the 'fork' route if at all possible cause I'm lazy and don't want to maintain a patch that won't get included in the main distro. :) Thanks for the thoughts . . . "Craig R. McClanahan" wrote: Geoff Lane wrote: Reply to myself. :) So after some more digging, I find out that it's caused by a 'heartbeat' monitor that we have on our servers to check the status. It pings port 80 to check if the webserver is alive. Apache does not log this in it's error logs as a Connection reset, but running Tomcat standalone does. Is this a bug? No request is actually being made, just a ping to port 80 If by "ping" you mean "run the Unix 'ping' utility", you would be right. The only problem with that theory is that you can only ping hosts, not individual ports ... What is happening is that your monitor program is violating the HTTP protocol, because it is establishing a network connection to port 80, but never sending a valid request. Therefore, it's perfectly within Tomcat's rights to complain about it. It is also perfectly within your rights to modify Tomcat to *not* complain about it, since this is specific to your site's approach to network monitoring. However, IMHO it is not a bug. An alternative approach for your particular situation would be to have your monitor process actually perform an HTTP request, instead of just connecting and disconnecting. Besides avoiding these error messages, this is also a more robust test to see if Tomcat is actually up and running (consider: if all the request processing threads were hung for some reason, but the server socket thread was still running, your monitor process would give you a false sense of security that everything is fine when it really was not). Craig McClanahan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] -- --- Geoff Lane [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: where does one find instructions on configuring IIS with tomcat as a servlet runner?
Microsoft.com Nael Mohammad Customer Support Analyst Neomar, Inc. 180 Montgomery Street Suite 2000 San Francisco, CA 94104 Tel: 415-403-7300 ext. 274 Fax: 415-403-7373 " Wireless Means Business" -- Sent from my BlackBerry Wireless Handheld (www.BlackBerry.net) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: where does one find instructions on configuring IIS with tomcat as aservlet runner?
Are you trying to find out something that isn't in the docs that ship with Tomcat itself? If so, what? - Original Message - From: Betty Chang To: [EMAIL PROTECTED] Sent: Friday, January 26, 2001 10:13 PM Subject: where does one find instructions on configuring IIS with tomcat as aservlet runner? Hi all -- I'm seeking documentation on configuring IIS with tomcat Betty
Re: JSP outside tomcat causes 404
Yes thanks, Now I understand :-). That's what I ended up doing. And it works. Everything is fine JSP, servlets and also xml files are now properly handled by cocoon. Thanks again for help and have a great weekend. jakub On Fri, Jan 26, 2001 at 10:29:18AM -0600, Royzen, Margaret wrote: Hi Jakub, If the context for your file is undefined, then tomcat assume, that context is TOMECAT_HOME/webapps/ROOT, and is looking for your file there. You need to give tomcat a glue where to look. Try putting into server.xml Context path="/" docBase="/web/apache" debug="0" reloadable="false" isWorkDirPersistent="true" /Context (If /web/apache is your document root.) -Original Message- From: Jakub Labath [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 25, 2001 9:09 PM To: [EMAIL PROTECTED] Subject: JSP outside tomcat causes 404 Hi, I've read the docu. I'm guessing something but I'm still not sure. Question: Tomcat and apache living together with help of mod_jk I have my web server directory /web/apache/ where i have my html files etc. I have my tomcat directory /web/tomcat/webapps/* Now if i place some jsp like this /web/apache/snoop.jsp the server comes with 404 but the 404 comes from tomcat and not from apache In the jasper.log I can see tomcat complaining that it cannot find the /web/tomcat/webapps/ROOT/snoop.jsp Is it possible to have jsp pages served by tomcat even if they are not in none of its contexts? the reason I'm asking this are these two lines I include in jakarta.conf JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 which make me think that if apache encounters lets say /web/apache/snoop.jsp that it sends it to tomcat and tomcat then makes some cool magic and runs the jsp If that is not possible and i want to have my (html jsp gif .etc) files together in one directory i have to make appropriate context for /web/apache/foo or tell apache that the foo is in /web/tomcat/webapps/ROOT/foo, right? Thanks for any help folks. Maybe I just answered my questions myself, but I'm tired and confused so I decided myself to scream for help. Tomcat: 3.2.1 Apache: 1.3.9 JVM: Sun 1.2.2 OS: Linux 2.2 Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]