Re: Are many people running Tomcat 4 in standalone mode?
I have been running Tomcat 3.2.x standalone on Windows NT for about six months and have never had a problem. Our applications are totally dynamic except for a few image files, so I don't think Apache would help. As far as reliability goes, at least on NT, it seems that using both Apache and Tomcat together is less reliable as there is one more thing to go wrong. We have another server running this combination, and it has had to be restarted at least twice, whereas the standalone just works. (of course it could have been an NT problem ...) As far as ease of use, count how many questions on this list are about configuring Tomcat with Apache :-) Hope this helps, Jim --- Jonathan Eric Miller [EMAIL PROTECTED] wrote: I'm curious to know if there are a lot of people out there running Tomcat in standalone mode versus using it with Apache Web Server or some other Web server? Previously, I've been using it with Apache Web server on Solaris 8 with mod_jk. However, as of version 4, it seems like it's pretty stable and it seems to be getting sufficiently robust. So, I'm planning on running it in standalone mode. Everything seems to be working fine. I'm wondering if using it with Apache Web Server really makes that much difference in terms of performance? My Web application isn't taking a massive amount of hits, so, I think I should be OK. I was just curious what others are doing. Jon __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
Re: Servlet Runs SLow
I agree - it's worth looking at the client. Do you have any large tables? I have had problems in the past with Netscape taking a long time ( 5 min) to load tables with several thousand rows. Jim --- Denis Haskin [EMAIL PROTECTED] wrote: Do you know for sure the difference in 'load' time is at the server, and not at the client? What's the content coming back from the server? I would grab a copy of that, put it in a file, and load that in IE and Netscape to see if there's any difference in load times. I suppose it's possible that IE and Netscape are sending different http headers that are getting handled differently at the server, but this seems unlikely. Are you sending these requests straight to Tomcat, or are they going through a web server first? dwh A.L. wrote: Why WOuld a servlet which runs perfectly normal in Explorer take a long time to load in Netscape? On the Tomcat Console Window I see the request coming in immediately, but for some reason Netscape won't load quickly. -Amos __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
Re: Servlet Runs SLow
I copied the html into a static file and was able to bring it up immediately in Netscape 4.76, so it doesn't appear to be the contents of the form that is the problem. Does it take a long time to display, or does it just not appear to finish loading? I have also noticed that sometimes even after the page has loaded, Netscape still appears to be working. So far, I have just ignored it. Jim --- A.L. [EMAIL PROTECTED] wrote: Below is the code that is returned: It seems that Netscape might have problems with the FORM data. It does seem as if the server is sending the reponse immediately. Or maybe it is having trouble with the javascript functions... Any suggestions (I am only running TOmcat by the way) html head titleCalendar/title /head BODY BGCOLOR=#FDF5E6 FORM METHOD=POST ACTION=/jd/Calendar SELECT NAME=dates MULTIPLE OPTION VALUE=Jan January /OPTION OPTION VALUE=Feb February/OPTION OPTION VALUE=Mar March/OPTION OPTION VALUE=Apr April/OPTION OPTION VALUE=May May/OPTION OPTION VALUE=June June/OPTION /SELECT INPUT TYPE=SUBMIT /FORM March2001form METHOD=GET NAME=date2ACTION=/jd/Calendarinput type=hidden NAME=dscript language=JavaScriptfunction choose(n){document.date2.d.value = n;document.date2.submit();}/scripttabletrtd/tdtd/tdtd/tdtd/tdtda href=javascript:choose(1)1/a/tdtda href=javascript:choose(2)2/a/tdtda href=javascript:choose(3)3/a/td/trtrtda href=javascript:choose(4)4/a/tdtda href=javascript:choose(5)5/a/tdtda href=javascript:choose(6)6/a/tdtda href=javascript:choose(7)7/a/tdtda href=javascript:choose(8)8/a/tdtda href=javascript:choose(9)9/a/tdtda href=javascript:choose(10)10/a/td/trtrtda href=javascript:choose(11)11/a/tdtda href=javascript:choose(12)12/a/tdtda href=javascript:choose(13)13/a/tdtda href=javascript:choose(14)14/a/tdtda href=javascript:choose(15)15/a/tdtda href=javascript:choose(16)16/a/tdtda href=javascript:choose(17)17/a/td/trtrtda href=javascript:choose(18)18/a/tdtda href=javascript:choose(19)19/a/tdtda href=javascript:choose(20)20/a/tdtda href=javascript:choose(21)21/a/tdtda href=javascript:choose(22)22/a/tdtda href=javascript:choose(23)23/a/tdtda href=javascript:choose(24)24/a/td/trtrtda href=javascript:choose(25)25/a/tdtda href=javascript:choose(26)26/a/tdtda href=javascript:choose(27)27/a/tdtda href=javascript:choose(28)28/a/tdtda href=javascript:choose(29)29/a/tdtda href=javascript:choose(30)30/a/tdtda href=javascript:choose(31)31/a/td/tr/FORM/table TABLE TRTHFirst_Name/TR TRTDAmos/TR TRTDJeff/TR TRTDSteve/TR TRTDCathy/TR TRTDPatricia/TR TRTDCary/TR TRTDTom/TR /TABLE /body /html --- Jim Seach [EMAIL PROTECTED] wrote: I agree - it's worth looking at the client. Do you have any large tables? I have had problems in the past with Netscape taking a long time ( 5 min) to load tables with several thousand rows. Jim --- Denis Haskin [EMAIL PROTECTED] wrote: Do you know for sure the difference in 'load' time is at the server, and not at the client? What's the content coming back from the server? I would grab a copy of that, put it in a file, and load that in IE and Netscape to see if there's any difference in load times. I suppose it's possible that IE and Netscape are sending different http headers that are getting handled differently at the server, but this seems unlikely. Are you sending these requests straight to Tomcat, or are they going through a web server first? dwh A.L. wrote: Why WOuld a servlet which runs perfectly normal in Explorer take a long time to load in Netscape? On the Tomcat Console Window I see the request coming in immediately, but for some reason Netscape won't load quickly. -Amos __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
Re: Servlet Runs SLow
Sorry, I'm out of ideas. The servlets I'm working on work fine in both Netscape and IE. You may want to try to collect some more information (log begin/end times in the servlet, use a network monitor to see what is happening, try different Netscape settings) and see if anything unusual is happening. Jim --- A.L. [EMAIL PROTECTED] wrote: The first time I load the page in Netscape everything seems fine, it loads almost instantaneously. However, when I submit the query to change the month calendar, netscape takes a while to reload the page and show the new calendar. I can see that TOmcat receives the request immediately, and I assume that since Netscape appears to be loading it receives the response immediatley. Thanks, -Amos --- Jim Seach [EMAIL PROTECTED] wrote: I copied the html into a static file and was able to bring it up immediately in Netscape 4.76, so it doesn't appear to be the contents of the form that is the problem. Does it take a long time to display, or does it just not appear to finish loading? I have also noticed that sometimes even after the page has loaded, Netscape still appears to be working. So far, I have just ignored it. Jim --- A.L. [EMAIL PROTECTED] wrote: Below is the code that is returned: It seems that Netscape might have problems with the FORM data. It does seem as if the server is sending the reponse immediately. Or maybe it is having trouble with the javascript functions... Any suggestions (I am only running TOmcat by the way) html head titleCalendar/title /head BODY BGCOLOR=#FDF5E6 FORM METHOD=POST ACTION=/jd/Calendar SELECT NAME=dates MULTIPLE OPTION VALUE=Jan January /OPTION OPTION VALUE=Feb February/OPTION OPTION VALUE=Mar March/OPTION OPTION VALUE=Apr April/OPTION OPTION VALUE=May May/OPTION OPTION VALUE=June June/OPTION /SELECT INPUT TYPE=SUBMIT /FORM March2001form METHOD=GET NAME=date2ACTION=/jd/Calendarinput type=hidden NAME=dscript language=JavaScriptfunction choose(n){document.date2.d.value = n;document.date2.submit();}/scripttabletrtd/tdtd/tdtd/tdtd/tdtda href=javascript:choose(1)1/a/tdtda href=javascript:choose(2)2/a/tdtda href=javascript:choose(3)3/a/td/trtrtda href=javascript:choose(4)4/a/tdtda href=javascript:choose(5)5/a/tdtda href=javascript:choose(6)6/a/tdtda href=javascript:choose(7)7/a/tdtda href=javascript:choose(8)8/a/tdtda href=javascript:choose(9)9/a/tdtda href=javascript:choose(10)10/a/td/trtrtda href=javascript:choose(11)11/a/tdtda href=javascript:choose(12)12/a/tdtda href=javascript:choose(13)13/a/tdtda href=javascript:choose(14)14/a/tdtda href=javascript:choose(15)15/a/tdtda href=javascript:choose(16)16/a/tdtda href=javascript:choose(17)17/a/td/trtrtda href=javascript:choose(18)18/a/tdtda href=javascript:choose(19)19/a/tdtda href=javascript:choose(20)20/a/tdtda href=javascript:choose(21)21/a/tdtda href=javascript:choose(22)22/a/tdtda href=javascript:choose(23)23/a/tdtda href=javascript:choose(24)24/a/td/trtrtda href=javascript:choose(25)25/a/tdtda href=javascript:choose(26)26/a/tdtda href=javascript:choose(27)27/a/tdtda href=javascript:choose(28)28/a/tdtda href=javascript:choose(29)29/a/tdtda href=javascript:choose(30)30/a/tdtda href=javascript:choose(31)31/a/td/tr/FORM/table TABLE TRTHFirst_Name/TR TRTDAmos/TR TRTDJeff/TR TRTDSteve/TR TRTDCathy/TR TRTDPatricia/TR TRTDCary/TR TRTDTom/TR /TABLE /body /html --- Jim Seach [EMAIL PROTECTED] wrote: I agree - it's worth looking at the client. Do you have any large tables? I have had problems in the past with Netscape taking a long time ( 5 min) to load tables with several thousand rows. Jim --- Denis Haskin [EMAIL PROTECTED] wrote: Do you know for sure the difference in 'load' time is at the server, and not at the client? What's the content coming back from the server? I would grab a copy of that, put it in a file, and load that in IE and Netscape to see if there's any difference in load times. I suppose it's possible that IE and Netscape are sending different http headers that are getting handled differently at the server, but this seems unlikely. Are you sending these requests straight to Tomcat, or are they going through a web server first? dwh A.L. wrote: Why WOuld a servlet which runs perfectly normal in Explorer take a long time to load in Netscape? On the Tomcat Console Window I see the request coming in immediately, but for some reason Netscape won't load quickly. -Amos
Re: How to execute a dynamic JSP from a Servlet WITHOUT sending it to disk first ?
Fernando, Why do you need to create the JSP page itself dynamically? Couldn't you just create one or several JSP pages, then in your servlet, get the data, put it into request attributes, and call the proper JSP page to display the data? The JSP page would then take the data from the request attributes and display what is needed. Hope this helps, Jim --- L.Fernando [EMAIL PROTECTED] wrote: Hi All, I have the following problem: Based on some database data, one Servlet dynamicly generates an JSP page text inside an string buffer. The question is: How to execute that page without having to write it to disk before dispatching it ? I mean, how to send that string buffer (with my page inside it) directly to the jsp interpreter servlet ? Any help will be welcome ! Thanks in advance, Fernando. __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
RE: Running Tomcat as a Windows service
As Pier said, it is with the TC4 distribution, and I think this may be the most up-to-date, new, official version, as there was some talk about bringing it under the Jakarta umbrella. Here is the original URL in case there is some documentation that has not yet made it into the distribution: http://www.alexandriasc.com/software/JavaService/index.html Jim --- Richard Heintze [EMAIL PROTECTED] wrote: Jim, Ronald and Bryan, Could you folks kindly give me URL for this JavaService? I assume I'll have the same problem -- I'm using a service in the FAQ that runs any old bat file. I looked at the services that exclusively run java programs and then looked at the complexity of tomcat.bat and startup.bat and decided to go with the generic solutions that runs bat files. But this won't work if I log off the server? --- Jim Seach [EMAIL PROTECTED] wrote: I am also using the JavaService. It was easy to configure and has been very stable. No problems at all. Also, the way it solves the logout problem is by intercepting the Windows logoff message so you don't have to use the 1.3.1 jvm's -Xrs parameter. If you use the -Xrs parameter, you loose the ability to automatically run a shutdown hook. I haven't tested it, but I belive JavaService will still pass the Shutdown message to the jvm, so the shutdown hooks should run. Jim --- Ronald G. Louzon [EMAIL PROTECTED] wrote: If I remember correctly, this is due to a bug in the JDK and you can read all about it in the jakarta tomcat-user archives as well as in the bug reports on the Sun site (www.javasoft.com). I used the Alexandria Software companies Java service wrapper JavaService.exe . It is free, distributable and it works well. I am sure there are other service wrappers out there too. -Original Message- From: Bryan Hendricks [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 07, 2001 10:20 AM To: '[EMAIL PROTECTED]' Subject: Running Tomcat as a Windows service Hello, I installed Tomcat as a Windows (NT) service using jk_nt_service and set the service's startup type as automatic, but when I log off, the service shuts down. Is this a bug (in Tomcat, jk_nt_service, or the JRE) and, if so, do you know if the problem is being addressed? If it's not a bug, are there instructions that outline additional steps required to keep the service running? Thank you. __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
RE: Running Tomcat as a Windows service
I am also using the JavaService. It was easy to configure and has been very stable. No problems at all. Also, the way it solves the logout problem is by intercepting the Windows logoff message so you don't have to use the 1.3.1 jvm's -Xrs parameter. If you use the -Xrs parameter, you loose the ability to automatically run a shutdown hook. I haven't tested it, but I belive JavaService will still pass the Shutdown message to the jvm, so the shutdown hooks should run. Jim --- Ronald G. Louzon [EMAIL PROTECTED] wrote: If I remember correctly, this is due to a bug in the JDK and you can read all about it in the jakarta tomcat-user archives as well as in the bug reports on the Sun site (www.javasoft.com). I used the Alexandria Software companies Java service wrapper JavaService.exe . It is free, distributable and it works well. I am sure there are other service wrappers out there too. -Original Message- From: Bryan Hendricks [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 07, 2001 10:20 AM To: '[EMAIL PROTECTED]' Subject: Running Tomcat as a Windows service Hello, I installed Tomcat as a Windows (NT) service using jk_nt_service and set the service's startup type as automatic, but when I log off, the service shuts down. Is this a bug (in Tomcat, jk_nt_service, or the JRE) and, if so, do you know if the problem is being addressed? If it's not a bug, are there instructions that outline additional steps required to keep the service running? Thank you. __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
Re: Is there a way to get the Referrer information from a request?
Sorry if this is too obvious, but is the request the result of a normal browser following a link embedded in a web page to get to your servlet/jsp? If you type the URL in the browser location bar, or use a custom client that doesn't set the header, it won't be there. Jim --- Beth Kelly [EMAIL PROTECTED] wrote: Good points. I printed out all of the headers fields, and values. The header does not contain a Referrer, Referer, referer, or referrer field. Kyle Wayne Kelly (504)391-3985 http://www.cs.uno.edu/~kkelly - Original Message - From: Dan Garcia [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 02, 2001 3:20 PM Subject: Re: Is there a way to get the Referrer information from a request? On Thu, 2 Aug 2001, Beth Kelly wrote: I have read that a million times, but that field is not in the header either. I notice you keep writing it as referrer in your emails, however the proper spelling fr the -header- is referer - one r :) Note: that sometimes there won't be a referer... --Dg Kyle Wayne Kelly (504)391-3985 http://www.cs.uno.edu/~kkelly - Original Message - From: Corey A. Johnson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 02, 2001 3:05 PM Subject: Re: Is there a way to get the Referrer information from a request? this will do it: request.getHeader(referer); purposely misspell referrer. Kyle Wayne Kelly wrote: I printed out the html header, and it did not include the referrer field. Is there another way to get the referrer field? Kyle Wayne Kelly (504)391-3985 http://www.cs.uno.edu/~kkelly -- corey a. johnson cni 1.321.259.1984 1.800.264.5547 __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
Re: Sharing a local setup of Tomcat?
If your organization is using WINS, you should be able to just use http://xxx99x999:8080/ from another computer on your LAN. If not, or if you want connectivity from outside your LAN (if allowed by your firewall), then run winipcfg to find out your ip address, then replace the xxx99x999 with your ip address. Jim --- Hewko, Doug [EMAIL PROTECTED] wrote: Hi! I managed to install Tomcat 4 on my local pc. In organization's LAN, I have a unique computer ID (xxx99x999). What would someone have to type to view the Tomcat default page from another computer? __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
Re: Running Tomcat stanalone without the port number?
If there is not another application listening on port 80 on that machine, you can change the port value for the connector in server.xml from 8080 to 80. That way, the user won't have to type in the port. Jim --- Tsinwah Lee [EMAIL PROTECTED] wrote: Hi, when running Tomcat standalone, the URL will contain the port number, e.g.: www.hostname.com:8080/myApplication/index.jsp. Does anybody know how to get rid of the port number when running the Tomcat in standalone mode? Thank you very much in advance. T. __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
Re: how to connect a remote MS-SQL server?
If you're looking for a commercial solution, we've had good results with the inet Opta 2000 jdbc driver for SQL Server. Licenses start at $399. see http://www.inetsoftware.de/English/Produkte/OPTA/default.htm Jim --- Tim O'Neil [EMAIL PROTECTED] wrote: At 10:59 AM 7/28/2001, you wrote: but, the client is on a linux machine...then How? I came up with this after simply entering mssql linux client in google: http://www.freetds.org/, looks promising after a glance. Want more? Do the same. __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
Re: how to send email from jsp?
Have you looked at the JavaMail API from Sun: http://java.sun.com/products/javamail/index.html Jim --- Jerry QU [EMAIL PROTECTED] wrote: Hi All how to send email from jsp (tomcat on linux)? TIA Jerry __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
Re: jdbc odbc bridge on linux
The jdbc odbc bridge requires an odbc driver on the local machine. The local datasource then points to the remote machine that the server is on, rather than the JDBC URL. The jdbc odbc driver is also not multi-threaded, so not a good choice for using with Tomcat. I'm not aware of any free jdbc drivers that will work with SQL Server, but there are a number of commercial solutions. I use the OPTA 2000 driver from www.inetsoftware.de. Hope this helps, Jim --- Jerry QU [EMAIL PROTECTED] wrote: Hi All, I posted question about how to use Sun's jdbc.odbc bridge from jsp on linux to access SQL server on windows. because all examples I saw were using LOCAL dsn like jdbc:odbc:dsnName. but how to do it if the JSP is on linux and the SQL server is on a remote host. something like jdbc:odbc:@host:port:DB_name(or DSN)??? I am kind of confused!! TIA Jerry __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/