RE: [OFFTOPIC] MySQL Exception - Need Suggestions
Probably something in the JDBC driver, or in the chain of code is setting AutoCommit and this is causing it error out. -Original Message- From: Geoff Peters [mailto:[EMAIL PROTECTED]] Sent: 03 February, 2003 8:58 AM To: [EMAIL PROTECTED] Subject: [OFFTOPIC] MySQL Exception - Need Suggestions Somewhat offtopic, I apologize if it is completely, I know there are some SMART people on this list (ass kissing always helps :) Tomcat 4.1.18 MySQL 3.22.32 MySQL Connector J 2.0.14 Trying to establish a connection from client to server, getting a MySQL Versions Older than 3.23.15 do not support transactions exception. Fine - I really don't care as I just need to build a 2 table form input application, really simple, I don't really care about transactions, so why am I getting this error through Tomcat when I try to start? Is there something I need to configure somewhere before I try to download and update MySQL? Thanks, Geoff Geoff Peters, BScFE, AIT Phone : (441) 296-9640 Applications DeveloperFax: (441) 292-1509 Logic Communications E-mail : [EMAIL PROTECTED] 12 Par-La-Ville Road WWW: http://www.logic.bm Hamilton, Bermuda HM JX - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: performance
Download something like Jakarta JMeter, write a test case that mimic normal usage of your application, and run it against each server. -Original Message- From: Lindomar [mailto:[EMAIL PROTECTED]] Sent: 16 December, 2002 10:01 AM To: Tomcat Users List Subject: performance First, i would like to say thanks for all the people that help in this user list. Thanks Michael for your help on e-mail: session timeout. Well, i have more one question... :-) How can i compare the performance of tomcat with another containers jsp? For example tomcat and resin, tomcat and Blazix, etc.. Who has a good comments about this? What think...so a critical analisys. Thanks again. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Simultaneous request from same IP
Let us apply Occam's Razor here. You probably haven't heard of it so I will repeat it here and show the application to your situation. Quite simply, it says that when you have two competing theories to explain something, the simplest theory is usually the correct one. So, let's apply this: Theory 1 proposed by you: Tomcat is horribly broken, and unthread safe. It has major problems processing more than one simultaneous request to a servlet and no one but you has noticed this. Hundreds or thousands of developers and applications have not heretofore brought this to light, but you have. Theory 2 (proposed by several people on the list): Your application is not thread safe, and is broken. Occam's Razor says that your program is broken, and you need to fix it. George Sexton MH Software, Inc. Voice: 303 438 9585 http://www.mhsoftware.com -Original Message- From: Chris Bick [mailto:[EMAIL PROTECTED]] Sent: 16 December, 2002 11:26 AM To: Tomcat Users List Subject: RE: Simultaneous request from same IP TrafficCop is thread safe because add() is synchronized. Regardless if trafficcop is thread safe or not the values that I get from HttpServletRequest should not be the same. If I were to take TrafficCop out of the servlet, I would get the same results in my servlet. I guess what I am saying is that TrafficCop should have nothing to do with the behavior that I am seeing inside the servlet. Right? -cb -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 1:05 PM To: Tomcat Users List Subject: Re: Simultaneous request from same IP But the same trafficCop instance is being used at the same time for 2 differnt requests. The trafficCop object has a method called add() which (seems to) acts on instance variables inside of the trafficCop object. This makes the trafficCop object not thread safe. -Tim Chris Bick wrote: Why does that effect the HttpServletRequest object? If you look at the code it evaluates the header and query string values before I access the trafficcop object. I will give it a try. -cb -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 12:40 PM To: Tomcat Users List Subject: Re: Simultaneous request from same IP Is TrafficCop.java thread safe? If not - that is your problem. Both requests are using the same trafficCop instance. -Tim Chris Bick wrote: No offense taken. I still can't believe that this problem may exist. If you can find a problem with my code, that would be much easy then getting a fix into tomcat. Thanks, -cb import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.util.*; import java.net.*; /** * pTitle: /p * pDescription: /p * pCopyright: Copyright (c) 2002/p * pCompany: /p * @author not attributable * @version 1.0 */ public class TrafficCopServlet extends HttpServlet { private static final String CONTENT_TYPE_XML = text/xml; private static final String CONTENT_TYPE_HTML = text/html; /**@todo set DTD*/ private static final String DOC_TYPE = null; //Initialize global variables private TrafficCop trafficCop; public void init() throws ServletException { trafficCop = new TrafficCop(false); } //Process the HTTP Get request public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { PrintWriter out = response.getWriter(); try { if (request.getRequestURI().endsWith(/insert)) { response.setContentType(CONTENT_TYPE_XML); out.println(?xml version=\1.0\?); String pcpVersion = request.getHeader(PCP-Client-Version); String clientId = request.getHeader(PCP-Client-ID); String listenIP = request.getHeader(Listen-IP); String behindFirewall = request.getHeader(Behind-Firewall); String urn = request.getQueryString(); synchronized(System.out) { System.out.println(URN: + request.getQueryString()); System.out.println(request.getHeader(Listen-IP)); } //System.out.println(Listen-IP: + listenIP); if (pcpVersion == null || clientId == null || listenIP == null || behindFirewall == null || urn == null) { String error = errorBad Headers/error; out.println(error); return; } String xml = trafficCop.add(urn,new URL(null,pcp://+listenIP,new Handler()), new Boolean(behindFirewall).booleanValue(), 0); System.out.println(xml); out.println(xml); } else if (request.getRequestURI().endsWith(/delete)) { response.setContentType(CONTENT_TYPE_XML); out.println(?xml version=\1.0\?); String clientId = request.getHeader(PCP-Client-ID); String sessionId = request.getHeader(My-Session-ID); String deleteSessionId = request.getHeader(Delete-Session-ID); String listenIP
RE: Request/Connection Timeout
As others have said, you need to re-design your app. Personally, I would initiate the computation in a background thread and mail the results to the user as a PDF document. Further, I would use a queue design so that only one computation is running at a time. What will your app do if the user hits back, and keeps re-submitting? What will your app do if Monday morning, 40 managers come in and request a big report? George Sexton MH Software, Inc. Home of Connect Daily Web Calendar Software http://www.mhsoftware.com/connectdaily.htm Voice: 303 438 9585 -Original Message- From: GUNTURU, SRINIVAS [AG-Contractor/1000] [mailto:[EMAIL PROTECTED]] Sent: 11 December, 2002 8:28 AM To: '[EMAIL PROTECTED]' Subject: Request/Connection Timeout Hi, We are using Tomcat 4.0.4 on Apache. Right now when we have a request that takes longer than 300 seconds(5 minutes), connections are timing out and we are getting various errors. How do we go about increasing this timeout so that the request does not timeout. Unfortunately, The analysis that runs on the server is very computational intensive and we have done a lot of tuning and most of the times it does run under 5 minutes however depending on server load and database load we do run over 5 minutes frequently and error out. Ideally, we would like to not have this restriction. I have searched in the archives and Tomcat documentation and have not found anything. Thanks for your help. Srinivas -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Y or N Q re: WEB-INF/lib
I don't think you answer is quite right. Classes will not be automatically served under 4.0.6 unless the default invoker is configured in server.xml. Classes must be explicitly named in the application deployment descriptor to be served otherwise. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: 09 December, 2002 10:51 AM To: Tomcat Users List Subject: RE: Y or N Q re: WEB-INF/lib Hi, You have to restart the webapp. And for WEB-INF/classes, they'll only be automatically picked up if your context has reloadable=true in its configuration. Yoav Shapira Millennium ChemInformatics -Original Message- From: Price, Erik [mailto:[EMAIL PROTECTED]] Sent: Monday, December 09, 2002 12:24 PM To: [EMAIL PROTECTED] Subject: Y or N Q re: WEB-INF/lib Sorry to trouble you with this simple yes or no question (Tomcat 4.0.6): Classes placed in $CATALINA_HOME/myWebApp/WEB-INF/classes will be automatically picked up by Tomcat and served. Is the same true for JAR'd classes placed in $CATALINA_HOME/myWebApp/WEB-INF/lib ? or do I have to restart the webapp Thank you, Erik -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Y or N Q re: WEB-INF/lib
You need to re-read the original message. You are reading more into the message than the person wrote. Classes placed in $CATALINA_HOME/myWebApp/WEB-INF/classes will be automatically picked up by Tomcat and served. Is the same true for -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: 09 December, 2002 11:23 AM To: Tomcat Users List Subject: RE: Y or N Q re: WEB-INF/lib Howdy, He wasn't talking about serving anything to the user ;) Not about servlets specifically, which is where the invoker comes in. Just the class loader reloading modified classes. Yoav Shapira Millennium ChemInformatics -Original Message- From: Sexton, George [mailto:[EMAIL PROTECTED]] Sent: Monday, December 09, 2002 1:17 PM To: Tomcat Users List Subject: RE: Y or N Q re: WEB-INF/lib I don't think you answer is quite right. Classes will not be automatically served under 4.0.6 unless the default invoker is configured in server.xml. Classes must be explicitly named in the application deployment descriptor to be served otherwise. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: 09 December, 2002 10:51 AM To: Tomcat Users List Subject: RE: Y or N Q re: WEB-INF/lib Hi, You have to restart the webapp. And for WEB-INF/classes, they'll only be automatically picked up if your context has reloadable=true in its configuration. Yoav Shapira Millennium ChemInformatics -Original Message- From: Price, Erik [mailto:[EMAIL PROTECTED]] Sent: Monday, December 09, 2002 12:24 PM To: [EMAIL PROTECTED] Subject: Y or N Q re: WEB-INF/lib Sorry to trouble you with this simple yes or no question (Tomcat 4.0.6): Classes placed in $CATALINA_HOME/myWebApp/WEB-INF/classes will be automatically picked up by Tomcat and served. Is the same true for JAR'd classes placed in $CATALINA_HOME/myWebApp/WEB-INF/lib ? or do I have to restart the webapp Thank you, Erik -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: DNS NAMES
Let me really cut right down to the chase here: Valid characters in a domain name are: a-z 0-9 (digits) - (Hyphen) . (Period) Look at the RFC, and read the BNF definition for an identifier. -Original Message- From: micael [mailto:[EMAIL PROTECTED]] Sent: 04 December, 2002 4:22 PM To: Tomcat Users List Subject: RE: DNS NAMES But don't be misled. Noel is giving you direct answer to the way you put the question, and I suspect, as others before me have, that you don't mean the question the way you are expressing it. You would be better served saying why you want to do this, because you are really going to a lot of this and that over something that seems to be really unimportant. What you want to do probably can be done, if you state what the real objective is. Of course, making whatever into a DNS name is not your goal, we can surmise. Micael At 06:03 PM 12/4/2002 -0500, you wrote: I want to create a DNS name itself like thatis it possible. As I said, the DNS name is www.test.com. The /final is not part of the DNS. If you want the short answer, it is: NO, by definition. If you want to know WHY: DNS is DOMAIN Naming System. The /final is a local resource, not the domain. --- Noel -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Micael --- This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Install Tomcat 4.1.12 on WinXP
You hit the nail on the head. By default, the hosts file in Windows doesn't exist, so localhost isn't resolvable. I had to take this into account when I wrote the installer for my software. -Original Message- From: Turner, John [mailto:JTurner;AAS.com] Sent: 14 November, 2002 9:59 AM To: 'Tomcat Users List' Subject: RE: Install Tomcat 4.1.12 on WinXP Can your computer resolve localhost to 127.0.0.1? John -Original Message- From: T S [mailto:ts52722;yahoo.com] Sent: Thursday, November 14, 2002 11:16 AM To: Tomcat User Subject: Install Tomcat 4.1.12 on WinXP I have installed Tomcat 4.1.12 on WinXP following the directions in JavaServer Pages by Hans Bergsten - pages 31-37. The startup appears to be correct but when I attempt to use IE I get errors. Here are the Command Prompt Window output messages from the startup command: C:\Program Files\Jakarta\jakarta-tomcat-4.1.12\binstartup Using CATALINA_BASE: C:\Program Files\Jakarta\jakarta-tomcat-4.1.12 Using CATALINA_HOME: C:\Program Files\Jakarta\jakarta-tomcat-4.1.12 Using CATALINA_TMPDIR: C:\Program Files\Jakarta\jakarta-tomcat-4.1.12\temp Using JAVA_HOME: C:\Program Files\j2sdk1.4.1 C:\Program Files\Jakarta\jakarta-tomcat-4.1.12\bin Here are the Tomcat Window output messages from the startup command: Nov 14, 2002 6:09:20 AM org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information Nov 14, 2002 6:09:20 AM org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance Nov 14, 2002 6:09:21 AM org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer Nov 14, 2002 6:09:21 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Starting service Tomcat-Standalone Apache Tomcat/4.1.12 Nov 14, 2002 6:09:26 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 Nov 14, 2002 6:09:26 AM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on tcp port 8009 Nov 14, 2002 6:09:26 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/78 config=C:\Program Files\Jakarta\jakarta-tomcat- 4.1.12\conf\jk2.properties When I go to Internet Explorer version: 6.00.2600..xpclient.010817-1148 and enter the following: Address: http://localhost:8080/ I get an IE page stating This computer does not have an Internet connection My computer is not connected to the internet when I perform this test, so the message is correct, but it appears that it is not looking at port 8080. What do I need to change to get this to work? Thanks for your answers. Tim - Do you Yahoo!? Yahoo! Web Hosting - Let the expert host your site -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Tomcat 4 JNI Help
Pretty obvious isn't it? The JVM can't find the library. Since you didn't tell anyone what OS you are using, research how native libraries are loaded for your OS, put your native code there, and try again. -Original Message- From: St. Louis, Thomas (Research) [mailto:stlouis;crd.ge.com] Sent: 13 November, 2002 3:09 PM To: '[EMAIL PROTECTED]' Subject: Tomcat 4 JNI Help I don't understand why I'm getting the following UnsatisfiedLinkError. The static initializer is finding and loading my library but when I then try to my method which calls native Method throws exception. Any thoughts please! Apache Tomcat/4.0.4 Starting service Tomcat-Apache Apache Tomcat/4.0.4 JMatBean constructor JMatLink library loaded! JMatLink constructor JMatBean: jmat instance: Thread[Thread-2,5,main] Number of Java-Threads: 24 Name of active Java-Threads: Thread-3 active Java-Thread is Daemon: true JMatLink run method switch status: 0null Number of Java-Threads: 24 Name of active Java-Threads: Thread-3 active Java-Thread is Daemon: true JMatLink run method switch status: 13 /automation java.lang.UnsatisfiedLinkError: engOpenSingleUseNATIVE at com.gefa.JMatLink.engOpenSingleUseNATIVE(Compiled Code) at com.gefa.JMatLink.run(Compiled Code) at java.lang.Thread.run(Compiled Code) g GE Global Research Center _ __ Tom St.Louis Computer Scientist Advanced Computing Technologies One Research Circle, K1-5B32 Niskayuna, NY 12309 8*833-4900 [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Java returns bunk date!?
If you don't need the time portion, I once wrote a replacement for the calendar that handles just dates. Unlike all of the bizarre manipulations required by a calendar, with mine you can just call object.add(7) to add 7 days to a date. It uses an internal Julian date field. Checking for elapsed number of days is a straight integer subtraction. It pretty closely mimics the date capabilities of xBase variants. Personally, I never use calendars. They are just too obtuse and error prone. If you are interested you can view the Javadocs at: http://www.mhsoftware.com/resources/jar/doc/ The class name is SaneDate. Right now, it's GPLd but I plan on changing the license to LGPL. George Sexton MH Software, Inc. Home of Connect Daily Web Calendar Software http://www.mhsoftware.com/connectdaily.htm Voice: 303 438 9585 -Original Message- From: Andreas Probst [mailto:andpro77;gmx.net] Sent: 11 November, 2002 12:43 AM To: Tomcat Users List Subject: Re: Java returns bunk date!? Hi Josh, yes it is, but in my opinion it's a bit hidden. As starting January with 0 isn't what one would expect, it should be stressed more in the docs. in java.util.Calendar: public static final int MONTH Field number for get and set indicating the month. This is a calendar-specific value. The first month of the year is JANUARY which is 0; the last depends on the number of months in a year. in java.util.GregorianCalendar public GregorianCalendar(int year, int month, int date) Constructs a GregorianCalendar with the given date set in the default time zone with the default locale. Parameters: year - the value used to set the YEAR time field in the calendar. month - the value used to set the MONTH time field in the calendar. Month value is 0-based. e.g., 0 for January. date - the value used to set the DATE time field in the calendar. Andreas On 11 Nov 2002 at 10:15, Josh G wrote: Ah thanks. Is this covered in the docs and I just missed it? -Josh -- And can you tell me doctor why I still can't get to sleep? And why the channel 7 chopper chills me to my feet? And what's this rash that comes and goes, can you tell me what it means? God help me, I was only 19 - Original Message - From: Chakradhar Tallam [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, November 11, 2002 9:44 AM Subject: RE: Java returns bunk date!? because java's month index starts from 0 ends at 11. 0 - JAN 1 - FEB ... 11 - DEC -Original Message- From: Josh G [mailto:josh;gfunk007.com] Sent: Monday, 11 November 2002 10:41 AM To: Tomcat Users List Subject: Java returns bunk date!? I'm having a weird problem with tomcat, java is giving me last month's date! It's 11 nov on this machine, but java is returning 11 oct :( I don't see how this could happen? -Josh -- And can you tell me doctor why I still can't get to sleep? And why the channel 7 chopper chills me to my feet? And what's this rash that comes and goes, can you tell me what it means? God help me, I was only 19 -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: JDBC Error, cannot establish socket - Tomcat 4.0.6/SQL Server 2000
Change jdbc:inetdae7:10.10.0.84:1433?database=TibcoClearHouse to jdbc:microsoft:sqlserver://10.10.0.84:1433;DatabaseName=TibcoClearHouse George Sexton MH Software, Inc. Home of Connect Daily Web Calendar Software http://www.mhsoftware.com/connectdaily.htm Voice: 303 438 9585 -Original Message- From: John Mattos [mailto:mattosj;yahoo.com] Sent: 12 November, 2002 12:55 PM To: Tomcat Users List Subject: RE: JDBC Error, cannot establish socket - Tomcat 4.0.6/SQL Server 2000 Hmm. I have the app specified in my server.xml as follows. dows anything jump out at you? I even used the IP instead of the DNS entry for the DB machine !-- iN DEMAND Clearinghouse Context -- Context docBase=indemand path=/indemand reloadable=true source=indemand Resource name=jdbc/indemand auth=SERVLET type=javax.sql.DataSource/ ResourceParams name=jdbc/indemand parameter nameuser/name valuetibco_user/value /parameter parameter namepassword/name valuetibco_user/value /parameter parameter namedriverClassName/name valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value /parameter parameter namedriverName/name valuejdbc:inetdae7:10.10.0.84:1433?database=TibcoClearHouse/value /parameter /ResourceParams /Context Turner, John [EMAIL PROTECTED] wrote: Yup. It's network related. Probably the name of the database server can't be resolved into an IP address, or a connection request is being made on the wrong port. SQL Server's default port is 1433, I believe. John -Original Message- From: John Mattos [mailto:mattosj;yahoo.com] Sent: Tuesday, November 12, 2002 2:48 PM To: [EMAIL PROTECTED] Subject: JDBC Error, cannot establish socket - Tomcat 4.0.6/SQL Server 2000 I'm getting the following error trying to connect to my SQL Server Database java.sql.SQLException: [Microsoft][SQLServer JDBC Driver]Error establishing socket. I'm using the driver com.microsoft.jdbc.sqlserver.SQLServerDriver, and the 3 necessary jar files are in C:\Tomcat4.0.6\lib (msbase.jar, msutil.jar and mssqlserver.jar) Any thoughts on this? Has anyone seen this before? John - Do you Yahoo!? U2 on LAUNCH - Exclusive medley videos from Greatest Hits CD -- To unsubscribe, e-mail: For additional commands, e-mail: - Do you Yahoo!? U2 on LAUNCH - Exclusive medley videos from Greatest Hits CD -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: windows iis machine + linux tomcat machine
Get the ISAPI redirector module and install it on IIS, configure it to point to the linux server. -Original Message- From: Jose Antonio Martinez [mailto:lfbbes;yahoo.es] Sent: 12 November, 2002 4:22 AM To: [EMAIL PROTECTED] Subject: windows iis machine + linux tomcat machine what do you think is the best way to make work together this configuration: windows iis machine + linux tomcat machine NFS? ___ Yahoo! Messenger Nueva versión: Webcam, voz, y mucho más ¡Gratis! Descárgalo ya desde http://messenger.yahoo.es -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Rare request delay of 100 seconds
At this point, my only recommendation would be to upgrade the kernel to the current RedHat 7.2 patch release of 2.4.18-7.x There have been a ton of things fixed in 9 kernel releases and this could be related to one of them. -Original Message- From: Randy Watler [mailto:rwatler;finali.com] Sent: 11 November, 2002 10:34 AM To: Tomcat Users List Subject: Re: Rare request delay of 100 seconds Jeff, Thanks for the response. I did want to clarify... we are seeing very rare requests that are delayed by 100 seconds, (not 100ms). Anything measured in seconds seems to be very slow for protocol issues like these, no? Randy Watler Finali Corporation Jeff Tulley wrote: Could it simply be the Nagle problem? There are two algorithms commonly used with TCP/IP, trying to make things more efficient, delayed ack, and Nagle's algorithm. Unfortunately they don't work well together. You can turn off Nagle's algorithm, but that could cause a lot of tinygrams on the wire. Same thing with delayed acks (there the tinygram is the extra acks). I don't know if RedHat has implemented a fix for the problem, but there are a few proposed fixes, one of them called the Doupnik algorithm. I'm not sure if this would be your problem, but it sure sounds like it. Anytime that I've seen somebodies requests coming in at such a regular interval (200 ms is typical, but 100 ms is common also), it has almost always turned out to be this problem. Here are some links from a colleague on the problem and a potential solution: Look here for sample source code. http://netlab1.usu.edu/pub/misc/newpolicy.sources/ Look here for the explanation of the problem and the solution http://netlab1.usu.edu/pub/misc/draft-doupnik-tcpimpl-nagle-mode-00.txt Jeff Tulley ([EMAIL PROTECTED]) (801)861-5322 Novell, Inc., the leading provider of Net business solutions http://www.novell.com [EMAIL PROTECTED] 11/9/02 9:25:53 AM George, Oops! I was off by one on the RedHat version. Here is the whole story: RedHat 7.2 Linux version: 2.4.9-31smp gcc version: 2.96 Sorry I forgot to include this information up front! Randy Watler Finali Corporation Sexton, George wrote: What kernel version are you running? -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: windows iis machine + linux tomcat machine
You could use SMB to mount the files from the Windows machine to the Linux machine. If you need high performance, this will have a hit. Alternatively, you could write a shell script that will sync the files on Windows over to the Linux machine using ftp. ncftpget is pretty nice for an ftp program that could keep them in synch. If you have to have immediate updates, then SMB is the way to go. If you can live with a delay of a few minutes, then an FTP program is the way to go. -Original Message- From: Jose Antonio Martinez [mailto:lfbbes;yahoo.es] Sent: 12 November, 2002 1:55 PM To: Tomcat Users List Subject: Re: windows iis machine + linux tomcat machine i know. The question here is that it is needed that jsp files be on the tomcat machine (linux). People have an ftp account in the windows machine but some files must go to the linux machine (jsp ones) - Original Message - From: Sexton, George [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, November 12, 2002 9:31 PM Subject: RE: windows iis machine + linux tomcat machine Get the ISAPI redirector module and install it on IIS, configure it to point to the linux server. -Original Message- From: Jose Antonio Martinez [mailto:lfbbes;yahoo.es] Sent: 12 November, 2002 4:22 AM To: [EMAIL PROTECTED] Subject: windows iis machine + linux tomcat machine what do you think is the best way to make work together this configuration: windows iis machine + linux tomcat machine NFS? ___ Yahoo! Messenger Nueva versión: Webcam, voz, y mucho más ¡Gratis! Descárgalo ya desde http://messenger.yahoo.es -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org ___ Copa del Mundo de la FIFA 2002 El único lugar de Internet con vídeos de los 64 partidos. ¡Apúntante ya! en http://fifaworldcup.yahoo.com/fc/es/ -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Rare request delay of 100 seconds
What kernel version are you running? -Original Message- From: Randy Watler [mailto:rwatler;finali.com] Sent: 08 November, 2002 5:08 PM To: Tomcat Users List Subject: Re: Rare request delay of 100 seconds George, This is a non-SSL secure connector that is fronted by an SSL hardware. This means that Tomcat is seeing the traffic as plain HTTP. The packet data we traced was to the Tomcat server itself, so the SSL hardware seems to have been eliminated from the equation. The connector is set to https and secure so that Tomcat servlets know they are served in a secure context. Randy Watler Finali Corporation Sexton, George wrote: If you don't use SSL do you have the same problem? -Original Message- From: Randy Watler [mailto:rwatler;finali.com] Sent: 08 November, 2002 4:41 PM To: Tomcat Users List Subject: Re: Rare request delay of 100 seconds George, Thanks for the query. Here is the connector configuration: Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8543 minProcessors=8 maxProcessors=128 enableLookups=false acceptCount=64 debug=0 connectionTimeout=30 scheme=https secure=true useURIValidationHack=false/ So, I think we have it setup right, no? Randy Watler Finali Corporation Sexton, George wrote: Do you have the connector doing reverse DNS resolution of hosts? -Original Message- From: Randy Watler [mailto:rwatler;finali.com] Sent: 08 November, 2002 4:22 PM To: [EMAIL PROTECTED] Subject: Rare request delay of 100 seconds We are using 4.1.12 standalone on RedHat Linux 7.3 servers and having rare HTTP requests delayed on their way into the Coyote HTTP/1.1 connectors. We have packet traces that indicate the request is delayed by exactly 100 seconds, but otherwise is received and responded to as one would expect. Other requests immediately before and after the problematic ones are handled without any significant delay. We are wondering if others have noticed this problem or similar ones that sound like it? In the coyote connector code, it appears that the request sockets are set by default to have 100 second SO_LINGER timeouts for socket close() calls. Of course, this looks suspicious given our problem, but we have not been able to identify any way the blocked close() operation could affect incoming accept() requests. It is clear that running out of processor threads in the thread pool could cause such a delay, but we are not running under loads where this would happen, especially for 100 seconds. Any ideas out there? Randy Watler Finali Corporation -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: sending SMS messages
Usually, you just send an Email to a magic address. For example, with Verizon you send a message to: [EMAIL PROTECTED] where 8885551212 is the phone number of the hand set. The message will be truncated to 160 characters for my service. You can do SMS/TAP using a modem, but it's a lot more work. George Sexton MH Software, Inc. Home of Connect Daily Web Calendar Software http://www.mhsoftware.com/connectdaily.htm Voice: 303 438 9585 -Original Message- From: neal [mailto:nealcabage;yahoo.com] Sent: 08 November, 2002 1:03 AM To: Tomcat Users List Subject: sending SMS messages Does anyone know how to send an SMS message from a java website? I want my site to send a txt msg to my cell phone whenever a major error occurs. The only cods I've found thus far discuss sending an SMS using a class in the J2ME. Is there a class in std JDK or J2EE that can do this? Or, is it possible to install J2ME on a webserver, as a compliment to JDK? Thanks. Neal -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: sending SMS messages
You'll have to go to Sprint's web site and poke around. It took me a while to figure out verizon, and then they change it around every now and again. -Original Message- From: micael [mailto:caraunltd;harbornet.com] Sent: 08 November, 2002 2:40 PM To: Tomcat Users List Subject: RE: sending SMS messages Does this work the same with Sprint, etc.? At 12:29 AM 11/8/2002 -0800, you wrote: Really? That simple huh? Cool! Thanks. Neal -Original Message- From: Turner, John [mailto:JTurner;AAS.com] Sent: Friday, November 08, 2002 12:12 PM To: 'Tomcat Users List' Subject: RE: sending SMS messages That's exactly how it works for me, as well. Alternatives might be something like the SimpleWire Java SDK, but I think you have to pay for the service: http://www.simplewire.com/developers/sdk/java/ John -Original Message- From: Sexton, George [mailto:gsexton;mhsoftware.com] Sent: Friday, November 08, 2002 3:09 PM To: Tomcat Users List Subject: RE: sending SMS messages Usually, you just send an Email to a magic address. For example, with Verizon you send a message to: [EMAIL PROTECTED] where 8885551212 is the phone number of the hand set. The message will be truncated to 160 characters for my service. You can do SMS/TAP using a modem, but it's a lot more work. George Sexton MH Software, Inc. Home of Connect Daily Web Calendar Software http://www.mhsoftware.com/connectdaily.htm Voice: 303 438 9585 -Original Message- From: neal [mailto:nealcabage;yahoo.com] Sent: 08 November, 2002 1:03 AM To: Tomcat Users List Subject: sending SMS messages Does anyone know how to send an SMS message from a java website? I want my site to send a txt msg to my cell phone whenever a major error occurs. The only cods I've found thus far discuss sending an SMS using a class in the J2ME. Is there a class in std JDK or J2EE that can do this? Or, is it possible to install J2ME on a webserver, as a compliment to JDK? Thanks. Neal -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org Micael --- This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Rare request delay of 100 seconds
Do you have the connector doing reverse DNS resolution of hosts? -Original Message- From: Randy Watler [mailto:rwatler;finali.com] Sent: 08 November, 2002 4:22 PM To: [EMAIL PROTECTED] Subject: Rare request delay of 100 seconds We are using 4.1.12 standalone on RedHat Linux 7.3 servers and having rare HTTP requests delayed on their way into the Coyote HTTP/1.1 connectors. We have packet traces that indicate the request is delayed by exactly 100 seconds, but otherwise is received and responded to as one would expect. Other requests immediately before and after the problematic ones are handled without any significant delay. We are wondering if others have noticed this problem or similar ones that sound like it? In the coyote connector code, it appears that the request sockets are set by default to have 100 second SO_LINGER timeouts for socket close() calls. Of course, this looks suspicious given our problem, but we have not been able to identify any way the blocked close() operation could affect incoming accept() requests. It is clear that running out of processor threads in the thread pool could cause such a delay, but we are not running under loads where this would happen, especially for 100 seconds. Any ideas out there? Randy Watler Finali Corporation -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Rare request delay of 100 seconds
If you don't use SSL do you have the same problem? -Original Message- From: Randy Watler [mailto:rwatler;finali.com] Sent: 08 November, 2002 4:41 PM To: Tomcat Users List Subject: Re: Rare request delay of 100 seconds George, Thanks for the query. Here is the connector configuration: Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8543 minProcessors=8 maxProcessors=128 enableLookups=false acceptCount=64 debug=0 connectionTimeout=30 scheme=https secure=true useURIValidationHack=false/ So, I think we have it setup right, no? Randy Watler Finali Corporation Sexton, George wrote: Do you have the connector doing reverse DNS resolution of hosts? -Original Message- From: Randy Watler [mailto:rwatler;finali.com] Sent: 08 November, 2002 4:22 PM To: [EMAIL PROTECTED] Subject: Rare request delay of 100 seconds We are using 4.1.12 standalone on RedHat Linux 7.3 servers and having rare HTTP requests delayed on their way into the Coyote HTTP/1.1 connectors. We have packet traces that indicate the request is delayed by exactly 100 seconds, but otherwise is received and responded to as one would expect. Other requests immediately before and after the problematic ones are handled without any significant delay. We are wondering if others have noticed this problem or similar ones that sound like it? In the coyote connector code, it appears that the request sockets are set by default to have 100 second SO_LINGER timeouts for socket close() calls. Of course, this looks suspicious given our problem, but we have not been able to identify any way the blocked close() operation could affect incoming accept() requests. It is clear that running out of processor threads in the thread pool could cause such a delay, but we are not running under loads where this would happen, especially for 100 seconds. Any ideas out there? Randy Watler Finali Corporation -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Only one user at a time can connect thru Tomcat?
You might want to read this FAQ and re-post your question. There is absolutely no way anyone can help you given the insufficient amount of information provided. http://www.tuxedo.org/~esr/faqs/smart-questions.html George Sexton MH Software, Inc. Home of Connect Daily Web Calendar Software http://www.mhsoftware.com/connectdaily.htm Voice: 303 438 9585 -Original Message- From: [EMAIL PROTECTED] [mailto:arthur;westnet.com]On Behalf Of [EMAIL PROTECTED] Sent: 04 November, 2002 10:59 PM To: [EMAIL PROTECTED] Subject: Only one user at a time can connect thru Tomcat? Hi. I am trying to find out why only one user at a time can connect thru Tomcat. Other connection attempts fail ??? -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Tomcat on Thru64 Unix (OSF1)
What JDK are you using? The LE version requires 1.4 or 1.3+xerces.jar. -Original Message- From: [EMAIL PROTECTED] [mailto:sene;cptec.inpe.br] Sent: 30 October, 2002 10:51 AM To: [EMAIL PROTECTED] Subject: Tomcat on Thru64 Unix (OSF1) Hi, I'm having some troubles while running Tomcat 4.1.12-LE under Digital Unix (OSF1). The server are running ok, but the /examples dir with the servlets are returning the error : HTTP Status 404 - /examples/servlets/ type Status report message /examples/servlets/ description The requested resource (/examples/servlets/) is not available. I'm working with the default config files. Under linux, I have no problems. Thank you. -- _ \_ \ Denys Sene dos Santos - [EMAIL PROTECTED] o/\_ http://www1.cptec.inpe.br/~sene/ - ICQ #31845401 \__,\ Meteorological Products Group - Phone: +55 12 560-8458 . | Center for Weather Forecasts and Climate Studies - CPTEC ` .-| National Institute for Space Research - MCT/INPE . \ A happy Linux User #71117 . \ .-| -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: tomcat 4.1.12 not starting- exception
The LE distribution requires JDK 1.4 -Original Message- From: Nalini [mailto:nalinisp;yahoo.com] Sent: 28 October, 2002 11:54 AM To: Tomcat Users List Subject: tomcat 4.1.12 not starting- exception Hi, I have installed jdk1.3.1_04 and made JAVA_HOME point to the jdk home = directory. Then I have down loaded the release version of tomcat 4.1.12 and unzipped = it. When I tried to start tomcat from the tomcathome\bin directory using = the startup command , I get the following error. Using CATALINA_BASE: C:\jakarta-tomcat-4.1.12-LE-jdk14 Using CATALINA_HOME: C:\jakarta-tomcat-4.1.12-LE-jdk14 Using CATALINA_TMPDIR: C:\jakarta-tomcat-4.1.12-LE-jdk14\temp Using JAVA_HOME: C:\jdk1.3.1_04 Exception in thread main java.lang.NoClassDefFoundError: org/xml/sax/Inpu= tSour ce at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:232) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:179) Could someone help me fix this error. --- Robert L Sowders [EMAIL PROTECTED] wrote: Here is a nice article that might help with clustering. http://www2.theserverside.com/resources/article.jsp?l=Tomcat rls Bernd Koecke [EMAIL PROTECTED] 10/28/2002 01:45 AM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:Re: load balancing with routing with mod_jk in cluster Hi, it seems that you want to use mod_jk on the nodes as balancer. We don't use it in that way. We have a load balancer in front of our nodes, which has a standby balancer, if the first one goes down. If we want to get your requested behavior, we had to configure this on our load balancer, not on the nodes. This balancer knows nothing about apache, tomcat and mod_jk. So I don't know how to manage it with mod_jk. I don't know how your config should work. Because if N1 routes to all other nodes and N1 goes down, how should your client know, that he had to connect to N2? You need some logic in front of your cluster, that the clients see your cluster as one big server. If you want something like standby or hot standby you must implement this in the front logic, not on the nodes. And I don't know if this is possible with jk1. Why do you limit the balancing to N1? Most of the work is done in your servlets. The balancing is not so hard, that it will bring your node down. If all nodes do balancing its no problem, if one node goes down. But may be I don't understand your scenario. Bernd Alexander Piavka wrote: Bernd thanks for your reply. There is one more question i have. I have 3 nodes N1,N2,N3 each runs apache and tomcat. On node N1 i want to run lb_worker1 which will route all requests between all nodes. All apache servers will send requests to this lb_worker1. On node N2 i want to run lb_worker2 which will start routing all requests between all nodes ONLY then lb_worker1 goes down. I don't know if it is possible to make this configuration in workers.properties file. As i see i on each node workers.proprerties file should have bl_worker which will route requests between bl_worker1 bl_worker2. And bl_worker1 should have very high lbfactor and bl_worker2 very low: worker.bl_worker.type=lb worker.bl_worker.balanced_workers=bl_worker1,bl_worker2 but this is probably illegal as load balancers don't have lbfactor, and balancers can't have other balancers in their balanced_workers property. Please tell me if i can make the above scenario work. [...] -- Dipl.-Inform. Bernd Koecke UNIX-Entwicklung Schlund+Partner AG Fon: +49-721-91374-0 E-Mail: [EMAIL PROTECTED] ATTACHMENT part 2 application/octet-stream name=attbf0fo.dat -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org __ Do you Yahoo!? Y! Web Hosting - Let the expert host your web site http://webhosting.yahoo.com/ -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Question regarding long running web applications
You need to take an off-line approach where the servlet places a job request into a job queue, and another application (or perhaps a servicing thread inside tomcat) services the request and mails it to the user. There's no way users are going to leave their browser running for an hour to get a report. George Sexton MH Software, Inc. Home of Connect Daily Web Calendar Software http://www.mhsoftware.com/connectdaily.htm Voice: 303 438 9585 -Original Message- From: Dick, Andrea [mailto:Andrea.Dick;ca.com] Sent: 28 October, 2002 1:20 PM To: [EMAIL PROTECTED] Subject: Question regarding long running web applications Hi, I am in the process of designing a web application (servlet based) that will get data from a mainframe application. At times one or more end-user's request may take several minutes possibly up to an hour to complete.I am attempting to plan for a worst case scenario that has all end-users making requests that take up to an hour to complete. From my understanding of Tomcat it is possible to configure how many requests can be processed at one time and how many can be on a queue waiting. In my scenario, it is possible that all requests processing could be waiting on data from the mainframe, yet Tomcat and the Web server itself would have cycles to process requests queued waiting. I'm wondering whether there is a way with Tomcat/Servlets that I might set up my own worker queue and thread pool to process requests; keep the connection with the end user (client) active and free up tomcat requests for additional processing? (Apparently it is possible with Microsoft IIS and its Isapi interface.) I've been searching for an answer to my question and haven't been able to find it. I'm hoping someone might have the answer or a recommendation for me. Thanks, Andrea Dick -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Apache 1.3/2 mod_jk connect Tomcat 4.1.12 on redhat7.3 - poor perf
As a guess, is Apache resolving host names for the logs? -Original Message- From: David Tildesley [mailto:datil;paradise.net.nz] Sent: 25 October, 2002 8:06 PM To: [EMAIL PROTECTED] Subject: Apache 1.3/2 mod_jk connect Tomcat 4.1.12 on redhat7.3 - poor perf Has anybody any tips for performance tuning Apache 1.3 or 2 connected to Tomcat 4.1.x via mod_jk (couldn't get mod_jk2 working)? We had a throughput for our servlet/jsp app of 500 rps (requests per second) on tomcat http connector. As soon as we connected Apache to Tomcat, the rate dropped to 150 rps for no apparent reason. Any advice on how to improve this performance? Thanks, DT. -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Help to me !! !! !! !! - DON'T ATTACH FILES!!
I have to disagree. Sometimes it is the only way to troubleshoot issues, particularly with server.xml and web.xml. -Original Message- From: Burt Johnson [mailto:burt;mindstorm-inc.com] Sent: 25 October, 2002 12:40 PM To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: Re: Help to me !! !! !! !! - DON'T ATTACH FILES!! PLEASE DON'T attach files to this list!! -- - Burt Johnson MindStorm, Inc. [EMAIL PROTECTED] http://www.mindstorm-inc.com -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Tomcat Scalability - Long
If your kernel is not in the 2.4.18-2.4.19 range, you should update the kernel. 7.1 is pretty old. It shipped with a very early 2.4 series kernel. -Original Message- From: Brandon Cruz [mailto:bcruz;norvax.com] Sent: 24 October, 2002 1:36 PM To: Tomcat Users List Subject: Tomcat Scalability - Long Does anyone have any solid information about the scalability of Tomcat? It seems very limiting to me, but that is hopefully due to improper configuration. Here is our situation and what seems to be happening under a small amount of stress. ---About our Environment--- PIII 1.0Ghz 512 Meg Ram Linux RedHat 7.1 MySQL Database Apache 1.3.x mod_jk - logging turned all the way down Tomcat 3.2.4 - contexts *are* reloadable right now SUN JDK 1.3.1_01 -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Java Logger problem with Tomcat4 web apps on Unix platforms...
Sounds like a permissions problem to me. -Original Message- From: Vijay KN [mailto:KNVIJAY;novell.com] Sent: Thursday, October 24, 2002 00:46 To: [EMAIL PROTECTED] Subject: Java Logger problem with Tomcat4 web apps on Unix platforms... Hi, We are using JVM1.4 Logger APIs in our servlet application deployed in Tomcat4.0 container to log messages into a file. On Unix platforms, the log file doesn't get created, though the application using Logger objects does not throw any exceptions. However, the same code works on other platforms like WinXP. Appreciate an early response. thanks vijay -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Tomcat Scalability - Long
The consensus in the Linux community is the 2.4 series didn't start to really stabilize until 2.4.18. I won't even mention the dozen plus security issues that have been found in the kernel since that version. -Original Message- From: [EMAIL PROTECTED] [mailto:arthur;westnet.com]On Behalf Of [EMAIL PROTECTED] Sent: 24 October, 2002 2:06 AM To: Tomcat Users List Subject: Re: Tomcat Scalability - Long Hi. I am still on kernel 2.4.2 and it seems okay. May I ask why we need to upgrade to 2.4.19 ? Sexton, George wrote: If your kernel is not in the 2.4.18-2.4.19 range, you should update the kernel. 7.1 is pretty old. It shipped with a very early 2.4 series kernel. -Original Message- From: Brandon Cruz [mailto:bcruz;norvax.com] Sent: 24 October, 2002 1:36 PM To: Tomcat Users List Subject: Tomcat Scalability - Long Does anyone have any solid information about the scalability of Tomcat? It seems very limiting to me, but that is hopefully due to improper configuration. Here is our situation and what seems to be happening under a small amount of stress. ---About our Environment--- PIII 1.0Ghz 512 Meg Ram Linux RedHat 7.1 MySQL Database Apache 1.3.x mod_jk - logging turned all the way down Tomcat 3.2.4 - contexts *are* reloadable right now SUN JDK 1.3.1_01 -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: how to give all users access to start and stop tomcat service in Win XP
This isn't really a Tomcat question. I suspect you will have to make all users administrators. You might ask around on the XP forums or Win2K news groups and see what you can find. I would also search groups.google.com. -Original Message- From: Administrator [mailto:Administrator;interresearch.dk] Sent: 23 October, 2002 4:55 AM To: [EMAIL PROTECTED] Subject: how to give all users access to start and stop tomcat service in Win XP Hi, I have tomcat 3.2.3 installed as a windows service (using jk_nt_service.exe) on a laptop running Windows XP. I want to give all authorized windows users of that laptop the possibility to start and stop the tomcat service. When they try the following message appears: System error 5 Access is denied It's possible for the administrator account to start and stop it - probably because the service was installed using that account. Can anybody help? Many regards from [ Ole Engele Nielsen ] E-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Database Issues
Change: database.default.url=jdbc:postgresql://localhost/jetspeed to database.default.url=jdbc:postgresql://localhost:5432/jetspeed Also, make sure that PostgreSQL is accepting TCP connections. Check the postgresql.conf (on RedHat this is /var/lib/pgsql/data). If you have connection problems, set 127.0.0.1 to be trusted in pg_hba.conf. -Original Message- From: [EMAIL PROTECTED] [mailto:brendan.richards;draftlondon.com] Sent: 22 October, 2002 9:12 AM To: [EMAIL PROTECTED] Subject: Database Issues Apologies in advance for posting a repeat of earlier messages but I've yet to come across a solution to my problem... I'm attempting to get jetspeed working with PostgreSQL. Following initial abortive attempts, I've installed the latest versions of both Tomcat (4.1.12) and Postgresql(7.2.3) to ensure I have clean builds but the issue remains. The error when starting jetspeed is: Horrible Exception: java.lang.Error: Error in BasePeer.initTableSchema(TURBINE_USER): Connection object is null! at org.apache.jetspeed.om.security.turbine.BaseTurbineUserPeer.initClass(BaseTu rbineUserPeer.java:145) at org.apache.jetspeed.om.security.turbine.BaseTurbineUserPeer.clinit(BaseTur bineUserPeer.java:124) ..etc... my torque.properties file looks like this: database.default=jetspeed database.default.driver=org.postgresql.Driver database.default.url=jdbc:postgresql://localhost/jetspeed database.default.username=jetspeed database.default.password= with a jetspeed database setup from the scripts provided and pjdbc2.jar intsalled in the lib directory from jdbc.postgresql.org I've seen people with similar errors using both postgreSQL and mySQL. I've also tried removing hsql.jar from the lib directory to make sure there is no classname clash between the hsql and postgres jdbc jars. Any Ideas?? Brendan Richards -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: expression ALWAYS evaluates to if... NEVER to else
You need to learn how java compares objects and strings. The short story is: if(!paramPassword.equals(secretCode)) { } else { } -Original Message- From: Z.BEAT [mailto:zackbeatty;yahoo.com] Sent: 17 October, 2002 11:58 AM To: Tomcat Users List Subject: expression ALWAYS evaluates to if... NEVER to else In the following code snippet, the expression ALWAYS evaluates to the if statement block: String paramPassword = request.getParameter(paramPassword); String secretCode = secret; if(paramPassword != secretCode) { } else { } However, my debugging flags that I send in an HTML comment CLEARLY show that the two variables have the same value: !-- DEBUG FLAGS paramPassword: secret secretCode: secret -- What is going on? Am I missing something obvious? Thanks! __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Ok people
It's not a guide for idiots and it's not supposed to be an insult. It is supposed to help you get your questions answered by teaching you how to ask the right questions. George Sexton MH Software, Inc. Voice: 303 438 9585 http://www.mhsoftware.com -Original Message- From: Lior Shliechkorn [mailto:liorshliech;yahoo.com] Sent: 17 October, 2002 1:22 PM To: Tomcat Subject: Ok people Listen, I admit that I may have asked questions that some may not have understood ( I did get help and I'm not overlooking that). I'm here for the same reason we all are. I need help with some things, and maybe when I gain enough experience and knowledge I will be able to return the favor. Limited knowledge, and often confusion, doesn't attribute to questions being asked in the same way that you, who have that knowledge, would like things phrased. I don't need people to gang up on me and tell me that I'm being rude and arrogant in the way I ask things (and been riding me every chance that specific person got), or refer me to idiots guide to asking questions. It's not fair and I'm not going to be discouraged by that kind of initimidation. You have my apologies, Lior - Do you Yahoo!? Faith Hill - Exclusive Performances, Videos, more faith.yahoo.com -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: How come no one's is replying
You might want to refer to this URL and try reposting your questions. http://www.tuxedo.org/~esr/faqs/smart-questions.html George Sexton MH Software, Inc. Home of Connect Daily Web Calendar Software http://www.mhsoftware.com/connectdaily.htm Voice: 303 438 9585 -Original Message- From: Eddie Liang [mailto:eliang;edge.com] Sent: 17 October, 2002 12:46 PM To: 'Tomcat Users List' Subject: RE: How come no one's is replying I have the same feeling too. Eddie Liang Database Architect Phone: 630-810-9669 x253 -Original Message- From: Lior Shliechkorn [mailto:liorshliech;yahoo.com] Sent: Thursday, October 17, 2002 1:38 PM To: Tomcat Subject: How come no one's is replying I've been posting messages and I see other people picking up other people's requests for help and no one pays any attention to mine. - Do you Yahoo!? Faith Hill - Exclusive Performances, Videos, more faith.yahoo.com -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: WHY DOES TOMCAT SUSPEND ITSELF?
Can you please repost your message with some information like: specific version of tomcat operating system, including patch levels JVM Version Whether you looked in the relevant log files for information. The URL below provides information on how to post questions to a list. You may want to take a few minutes to read it. The better the question, the faster and more accurate the help will be. http://www.tuxedo.org/~esr/faqs/smart-questions.html George Sexton MH Software, Inc. Voice: 303 438 9585 http://www.mhsoftware.com -Original Message- From: Luca Ventura [mailto:ventluca;tiscali.it] Sent: 18 October, 2002 2:01 AM To: tomcat-user Subject: WHY DOES TOMCAT SUSPEND ITSELF? Hello everybody! I have Tomcat 4.x as Servlet Container and I have seen that sometimes the following strange thing happens When Tomcat doesn't receive requests for a period of time (that can take minutes or hours) it suspends itself and I must restart the service manually because Tomcat doesn't answer to the users' requests any more. In fact when this happens and then a user tries to connect to Tomcat he waits for an answer forever without success until the connection is closed by the Web Browser because it is timed out. Is there some setting in Tomcat to avois this? Has someone already had such problem? If yes, how did he solve it? I hope someone can help me Thanks in advance. Luca -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Servlets: Differences between Linux and Windows?
There was a big change in 4.1.12. The default invoker is no longer mapped. Servlets must be explicitly declared in the application web.xml. You can override this by editing the conf/web.xml. -Original Message- From: Mauro Daniel Ardolino [mailto:[EMAIL PROTECTED]] Sent: 16 October, 2002 8:24 AM To: [EMAIL PROTECTED] Subject: Servlets: Differences between Linux and Windows? Hi! I'm having some problems running servlets in Tomcat 4.1.12 under Linux RedHat 7.3 I've done a simple servlet and I was running it in Tomcat 4.0.4 under Win98 without problems. If I copy the folder mySimpleServlet from windows tomcat webapps folder to linux tomcat webapps folder and start linux tomcat, then the application works, but the servlet does not. It says: the requested resource (.) not available Are there any differences in configuration under linux? (in the web.xml or the server.xml). Thanks in advance. -- Mauro -- Ing.Mauro Daniel Ardolino Departamento de Desarrollo y Servicios Altersoft Billinghurst 1599 - Piso 9 C1425DTE - Capital Federal Tel/Fax: 4821-3376 / 4822-8759 mailto: [EMAIL PROTECTED] website: http://www.altersoft.com.ar -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Losing session in Internet Explorer 5x
There is a bug in IE dealing with re-directs and SSL. I forget how it works but it went something like this: Login page invalidates session. User enters user ID and password. Login page re-directs to target page IE Generates spurious additional request to login page which again invalidates the session. If you have pages that invalidate the session, you might want to take a look at them. Also, if you have a network protocol analyzer like Ethereal on Linux watching the packet flow can help you sort it out. George Sexton MH Software, Inc. Home of Connect Daily Web Calendar Software http://www.mhsoftware.com/connectdaily.htm Voice: 303 438 9585 -Original Message- From: bob knob [mailto:[EMAIL PROTECTED]] Sent: 16 October, 2002 9:36 AM To: [EMAIL PROTECTED] Subject: Losing session in Internet Explorer 5x Hi, Am using Tomcat 4.1.1.2. My web application uses javascript to open new windows for certain activities, and on random occasions I seem to be losing the user session, so that I have to re-login (we're using our own authentication system that simply stores a userid in HttpSession). Has anybody else seen this, and is there anything I can do about it? It's also been happening with Tomcat 4.0. thanx __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat 4.1X seems broken on Linux
I run 4.1.12 on Linux with no problems. You need to post the complete exception you are getting. -Original Message- From: John Byrd [mailto:[EMAIL PROTECTED]] Sent: 15 October, 2002 8:24 PM To: [EMAIL PROTECTED] Subject: Tomcat 4.1X seems broken on Linux Good evening all. Excuse me if you've seen this issue before, but my cursory search of the archives did not turn it up. I have been using Tomcat for several years. Currently on my Linux box I have versions 3.3.1, 4.0.4, 4.0.5, 4.0.6, 4.1.3, 4.1.6 and 4.1.12. They all work superbly except for the 4.1.x versions. I cannot get any of those to start. They write to catalina.out a complaint that they're experiencing a ClassNotFoundException w/r/t org.catalina.core.StandardServer I'm certain that this is one of those annoying JVM messages that leads you down the wrong path. The catalina.jar, which contains StandardServer, is most definitely on the classpath. My guess is that the error occurs in parsing some configuration file, because the exception line is preceded by this line: org.apache.commons.digester.Digester startElement SEVERE: Begin event threw exception If anyone has a clue as to the fix to this situation please let me know. I'd like to move up from the 4.0.x level. -- John Byrd [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Pre compile of jsp
Look at the jspc.sh script in the bin directory. -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]] Sent: 14 October, 2002 8:56 AM To: Tomcat Users List Subject: Pre compile of jsp Hi, when ever i modify a jsp, it is compiled first time when it is accessed from web, and this process takes a long time, if i have to precompile this jsp to use in tomcat4.0.4 so even the first time access will be fast how can i do it, can any one provide any info on doing this Ashish __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: unable to start tomcat
Listening means an application is bound to that port and is listening for connections. George Sexton MH Software, Inc. Voice: 303 438 9585 http://www.mhsoftware.com -Original Message- From: Rahul Sood [mailto:[EMAIL PROTECTED]] Sent: 12 October, 2002 3:42 PM To: [EMAIL PROTECTED] Subject: Re: unable to start tomcat Hello Ashish, Thanx a lot for this, it has really helped, when I typed netstat -an it showed me a list of ports and for 8080 it said listening, which made me think that the port was free, but anyeway i changed to a different port(1026) and tomcat started Ok this time. Could you please explain the meaning of listening for port 8080. Also I would mention here that, I have run tomcat 3.2.1 and that starts Ok on the same machine , but this version of tomcat which is a part of the WSDP didnt start. Thanx very much once again Rahul [EMAIL PROTECTED] 10/12/02 07:19pm Hi are u running any other process which is using port 8081 on your machine, to check this go to command prompt, and type command netstat -an and see which are the ports used in your machine( i assume u are on windows platform) or else find the relevant command on unix, or u can change the port in tomcat(conf/server.xml) to other port not used Ashish --- Rahul Sood [EMAIL PROTECTED] wrote: I have installed tomcat using Web services developers pack. When trying = =3D to start tomcat according to the instructions given ( which is running the startup.bat file from the command prompt or clicking on start tomcat in = =3D the start menuitems ) a blank window comes up and vanishes in seconds and = =3D tomcat is not started. Looking at the log file this is the error message recorded java.net.BindException: Address in use: JVM_Bind:8081 at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpE= =3D ndpoint.java:268) at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java= =3D :150) at org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConne= =3D ctor.java:999) at org.apache.catalina.core.StandardService.initialize(StandardServ= =3D ice.java:582) at org.apache.catalina.core.StandardServer.initialize(StandardServe= =3D r.java:2244) at org.apache.catalina.startup.Catalina.start(Catalina.java:503) at org.apache.catalina.startup.Catalina.execute(Catalina.java:399) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) at java.lang.reflect.Method.invoke(Native Method) at com.sun.launcher.Launcher.main(Launcher.java:208) [ERROR] Http11Protocol - -Error initializing endpoint java.net.BindExcepti= =3D on: Address in use: JVM_Bind:8081 Catalina.start: LifecycleException: Protocol handler initialization =3D failed: java.net.BindException: Address in use: JVM_Bind:8081 LifecycleException: Protocol handler initialization failed: java.net.BindE= =3D xception: Address in use: JVM_Bind:8081 at org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConne= =3D ctor.java:1001) at org.apache.catalina.core.StandardService.initialize(StandardServ= =3Dtar [EMAIL PROTECTED] ice.java:582) at org.apache.catalina.core.StandardServer.initialize(StandardServe= =3D r.java:2244) at org.apache.catalina.startup.Catalina.start(Catalina.java:503) at org.apache.catalina.startup.Catalina.execute(Catalina.java:399) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) at java.lang.reflect.Method.invoke(Native Method) at com.sun.launcher.Launcher.main(Launcher.java:208) Catalina.stop: LifecycleException: This server has not yet been started LifecycleException: This server has not yet been started at org.apache.catalina.core.StandardServer.stop(StandardServer.java= =3D :2211) at org.apache.catalina.startup.Catalina.start(Catalina.java:535) at org.apache.catalina.startup.Catalina.execute(Catalina.java:399) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) at java.lang.reflect.Method.invoke(Native Method) at com.sun.launcher.Launcher.main(Launcher.java:208) A prompt reply and help will be greatly apreciated. Rahul Sood -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands,
RE: unable to start tomcat
Read the message: java.net.BindException: Address in use: JVM_Bind:8081 at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpE= Some other program is bound to the port. George Sexton MH Software, Inc. Voice: 303 438 9585 http://www.mhsoftware.com -Original Message- From: Rahul Sood [mailto:[EMAIL PROTECTED]] Sent: 12 October, 2002 7:34 AM To: [EMAIL PROTECTED] Subject: unable to start tomcat I have installed tomcat using Web services developers pack. When trying = =3D to start tomcat according to the instructions given ( which is running the startup.bat file from the command prompt or clicking on start tomcat in = =3D the start menuitems ) a blank window comes up and vanishes in seconds and = =3D tomcat is not started. Looking at the log file this is the error message recorded java.net.BindException: Address in use: JVM_Bind:8081 at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpE= =3D ndpoint.java:268) at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java= =3D :150) at org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConne= =3D ctor.java:999) at org.apache.catalina.core.StandardService.initialize(StandardServ= =3D ice.java:582) at org.apache.catalina.core.StandardServer.initialize(StandardServe= =3D r.java:2244) at org.apache.catalina.startup.Catalina.start(Catalina.java:503) at org.apache.catalina.startup.Catalina.execute(Catalina.java:399) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) at java.lang.reflect.Method.invoke(Native Method) at com.sun.launcher.Launcher.main(Launcher.java:208) [ERROR] Http11Protocol - -Error initializing endpoint java.net.BindExcepti= =3D on: Address in use: JVM_Bind:8081 Catalina.start: LifecycleException: Protocol handler initialization =3D failed: java.net.BindException: Address in use: JVM_Bind:8081 LifecycleException: Protocol handler initialization failed: java.net.BindE= =3D xception: Address in use: JVM_Bind:8081 at org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConne= =3D ctor.java:1001) at org.apache.catalina.core.StandardService.initialize(StandardServ= =3Dtar [EMAIL PROTECTED] ice.java:582) at org.apache.catalina.core.StandardServer.initialize(StandardServe= =3D r.java:2244) at org.apache.catalina.startup.Catalina.start(Catalina.java:503) at org.apache.catalina.startup.Catalina.execute(Catalina.java:399) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) at java.lang.reflect.Method.invoke(Native Method) at com.sun.launcher.Launcher.main(Launcher.java:208) Catalina.stop: LifecycleException: This server has not yet been started LifecycleException: This server has not yet been started at org.apache.catalina.core.StandardServer.stop(StandardServer.java= =3D :2211) at org.apache.catalina.startup.Catalina.start(Catalina.java:535) at org.apache.catalina.startup.Catalina.execute(Catalina.java:399) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) at java.lang.reflect.Method.invoke(Native Method) at com.sun.launcher.Launcher.main(Launcher.java:208) A prompt reply and help will be greatly apreciated. Rahul Sood -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Unspecified NoClassDefFoundError
Are you setting the option to run AWT headless? export CATALINA_OPTS=-Djava.awt.headless=true bin/catalina.sh start -Original Message- From: Ben Monnahan [mailto:[EMAIL PROTECTED]] Sent: 11 October, 2002 4:12 PM To: Tomcat Users List Subject: Re: Unspecified NoClassDefFoundError I'm using VisAD to do some visualizations. What I'm doing is taking a snapshot of the current display and writing it to an image. Since this is in a servlet, there isn't any real display. According to the VisAD list for the case when you don't need a real display you can use and offscreen renderer. So I think it is painting the component to some sort of virtual screen and then it is going to grab that image and save it to disk. Unfortunately there isn't an exception to go with it. I just found a post about java 1.3 on linux having problems with offscreen rendering. I'm using java 1.4 so this shouldn't be a problem right? If the VisAD code was written for java 1.3 would I still have problems even though I'm using 1.4? Thanks Ben On Fri, 11 Oct 2002, Padhu Vinirs wrote: Just curious, why is a servlet calling paintComponent ? Is there any accompanying exception ? -- padhu Ben Monnahan wrote: Hi all, I am getting NoClassDefFoundError in my servlet, but it doesn't tell me which one it couldn't find. I'm guessing its a problem with GraphicsEnvironment.getLocalGraphicsEnvironment(). I tried a search on google, but it didn't turn up anything. Does anyone know what might be wrong? Here is a stack trace: java.lang.NoClassDefFoundError at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:130) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironmen t.java:62) at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1053) at visad.java2d.VisADCanvasJ2D.paintComponent(Unknown Source) at visad.java2d.VisADCanvasJ2D.run(Unknown Source) at java.lang.Thread.run(Thread.java:536) System Info: Redhat 7.2 Tomcat 4.1.10 (invoker servlet disabled) (no apache) Java 1.4.0_01 Thanks for your time, Ben Monnahan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: How to limit the number of connections per user?
Step 1: Register a session context listener. Step 2: When each session starts, store an Integer in a Hashtable. The key would be the user name. The Integer value is the number of currently active sessions. Step 3: In the session destroy, decrement the Integer count, and if it is 0, remove it from the Hashtable. George Sexton MH Software, Inc. Home of Connect Daily Web Calendar Software http://www.mhsoftware.com/connectdaily.htm Voice: 303 438 9585 -Original Message- From: Rodrigo Ruiz [mailto:[EMAIL PROTECTED]] Sent: 11 October, 2002 2:17 AM To: Tomcat Users List Subject: How to limit the number of connections per user? Hi, is there any way to do this? I would like to be able to limit the number of connections per user for production environment. -- GRIDSYSTEMSRodrigo Ruiz Aguayo Parc Bit - Son EspanyolAnalista Programador 07120 Palma de Mallorca[EMAIL PROTECTED] Baleares - España Tel:+34-971435085 www.gridsystems.comFax:+34-971435082 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: HTTP Response appears at top : Tomcat 3.2.1 IIS 5 IE 6 SP1
Does the JSP code that sends the redirect write anything prior to the re-direct, and does it have a return statement immediately following the send redirect? -Original Message- From: Michael Finney [mailto:[EMAIL PROTECTED]] Sent: 10 October, 2002 11:15 AM To: Tomcat Users List Subject: RE: HTTP Response appears at top : Tomcat 3.2.1 IIS 5 IE 6 SP1 I will add the skip intro to the list. ;) I believe that JSP code telling the page to redirect may be triggering the problem. I tried to narrow it down in the code, but I ended up with a file included with 4 blank lines and a redirect causing the problem. The problem happens in other parts too. The problem of the header showing up needs to be fixed. Has anyone seen header information showing up when it is not supposed to in the web pages when tomcat and IIS is integrated? What was the fix? --- Richard Haber [EMAIL PROTECTED] wrote: I notice that the header does not appear if you go to the welcome.jsp directly. I am using IE 6 SP1, cleared the cache and tried several times. On an [OT] other note, Macromedia best practices recommends a 'skip intro' button on the splash page to allow users returning to the site quicker access to the site's content ;- Otherwise, a nice animation! Richard -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] = Michael Finney Sun Certified Programmer for the Java 2 Platform Sun Certified Developer for the Java 2 Platform Sun Certified Web Component Developer for J2EE Platform Cofounder of PPJDG Cofounder of cosAgile - Colorado Springs XP Users Group If replying to this email address fails, try [EMAIL PROTECTED] __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Using Non-Servlet Timers (Was - I need to run a servlet periodically)
Register a context listener and free the timer in it. -Original Message- From: gautam [mailto:[EMAIL PROTECTED]] Sent: 09 October, 2002 9:53 PM To: Tomcat Users List Subject: Using Non-Servlet Timers (Was - I need to run a servlet periodically) Hello, We are using java.util.Timer objects to periodically run through a few object caches and get rid of stale items. Everything works fine. However, I can no longer stop Tomcat using the Catalina.bat stop command. I suspect that the Timer objects are still alive and are the cause of the problem. Any ideas on how to fix this ? The objects we schedule via the timers are not Servlets. They are plain vanilla Java classes. Regards, Gautam Satpathy -Original Message- From: Rick Fincher [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 10, 2002 12:01 AM To: Tomcat Users List Subject: Re: I need to run a servlet periodically Hi Filip, Your servlet can call a class (doesn't have to be a servlet) that sets up a java.util.timer to run your code as a timerTask. The servlet can get parameters from the web.xml file (like how often to execute) and pass that to your class that controls the timer. The servlet can pass your class the connection pool info and other needed session info. Rick - Original Message - From: Cato, Christopher [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 09, 2002 9:04 AM Subject: SV: I need to run a servlet periodically What you really need to do is to design your periodical servlet to implement Runnable. Add another servlet that starts the periodical servlet and load that servlet during startup. The periodical then does its thing and sleeps for x amount of time. Then wakes up and so on... /Christopher -Ursprungligt meddelande- Fran: Raj Saini Till: Tomcat Users List Skickat: 2002-10-07 23:24 Amne: Re: I need to run a servlet periodically To need the servlet run periodically you need a client calling the servlet periodically. Make your client to run periodically and it will cause the servlet to run. We can suggest you a solution if you let us know what exactly you want your servlet to do. Raj Saini Filip Rachunek wrote: Hello, is it possible to have a servlet in Tomcat container which is invoked automatically each gived time period? [e.g. each 10 minutes] And I would also need this special servlet to access other resources of my web application [connection pool, ...]. Thanks. Filip Rachunek -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Setting classpath..Kindly help...???
You might want to post a more complete message that shows the JSP Compile error. If the JSP is unable to included classes in your WEB-INF/classes directory you should take a look at bug # 10036 in the Tomcat bug database. -Original Message- From: sathya [mailto:[EMAIL PROTECTED]] Sent: 09 October, 2002 11:22 PM To: Tomcat Users List Subject: Setting classpath..Kindly help...??? Hello, I am having a problem compiling my jsp files..it says Unable to Compile Class for JSP..How do I set the classpath for my application in WEB-INF.I am using Tomcat 4.1.10 and jdk 1.4.01. Kindly help Thanks in advance Sathya -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Forwarding in servlets.
Please remember that in both forward and send re-direct, execution of the current servlet will resume unless you put a return statement after the forward or re-direct statement. if (dispatcher!=null) { dispatcher.forward(request, response) ; return; } -Original Message- From: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]] Sent: 08 October, 2002 12:42 AM To: [EMAIL PROTECTED] Subject: Forwarding in servlets. Is there any way besides the following : request.setAttribute(selectedScreen, request.getServletPath()) ; RequestDispatcher dispatcher = request.getRequestDispatcher(/test.jsp) ; if (dispatcher!=null) { dispatcher.forward(request, response) ; } to forward a request to a jsp page. Is it possible to use response.sendRedirect like in jsp ? Any suggestions will be great. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: DBMS access denied with Jakarta NT Service
Don't you think the name and version number of the DBMS would be of the least bit help in solving your issue? -Original Message- From: Cinzia S [mailto:[EMAIL PROTECTED]] Sent: 08 October, 2002 2:10 AM To: [EMAIL PROTECTED] Subject: DBMS access denied with Jakarta NT Service Hi all, I'm having database access denied when running Jakarta as an NT Service, while no db access problems when running as a standalone program. This is the spec: Jakarta-Tomcat 3.3.1, servicing servlets and jsp requested by IIS through isapi_redirect.dll, Windows 2000 Server. Thanks for any suggestion -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: DBMS access denied with Jakarta NT Service
I'll be specific again: What database are you using? -Original Message- From: Cinzia S [mailto:[EMAIL PROTECTED]] Sent: 08 October, 2002 8:11 AM To: Tomcat Users List Subject: Re: DBMS access denied with Jakarta NT Service just through a System DSN. The java application uses jdbc:odbc bridge. Nothing specific in server.xml or web.xm Thanks - Original Message - From: CLAIRE Celine [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, October 08, 2002 9:09 AM Subject: RE: DBMS access denied with Jakarta NT Service excuse me but I would like to know how do you do to access a database with tomcat 3.3.1 server.xml? web.xml? lookup? Can you give me a complete exemple? thanks for your help -Message d'origine- De: Cinzia S [SMTP:[EMAIL PROTECTED]] Date: mardi 8 octobre 2002 10:10 À: [EMAIL PROTECTED] Objet: DBMS access denied with Jakarta NT Service Hi all, I'm having database access denied when running Jakarta as an NT Service, while no db access problems when running as a standalone program. This is the spec: Jakarta-Tomcat 3.3.1, servicing servlets and jsp requested by IIS through isapi_redirect.dll, Windows 2000 Server. Thanks for any suggestion -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: tomcat 4.0.1 X Connection
It sounds like you are trying to invoke AWT or Swing calls, and tomcat was started via SSH session. You need to export a valid X11 DISPLAY= variable, or use JDK 1.4.0 or higher and specify -Djava.awt.headless=true in your startup options for Tomcat. George Sexton MH Software, Inc. Home of Connect Daily Web Calendar Software http://www.mhsoftware.com/connectdaily.htm Voice: 303 438 9585 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 08 October, 2002 7:18 AM To: [EMAIL PROTECTED] Subject: tomcat 4.0.1 X Connection Hi I an having tomcat 4.0.1 running in Redhat 7.2 with apache 1.3.22(Mod_JK) and AS400 as database(DB2 400) server. The static pages are served by apache properly, but when it comes to servlets and database connection i am getting the following error: X connection to BPLA_TEST:10.0 broken (explicit kill or server shutdown). and the tomcat is shutting down automatically. Pls. help me in this regards. Thanks Regards Perumal. __ The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Some more forwarding questions.
Are the paths to the image specified in relative format? Is the relative format still valid from the path the server is making the request from? -Original Message- From: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]] Sent: 08 October, 2002 8:16 PM To: Tomcat Users List Subject: Some more forwarding questions. I'm trying to come to grips with the include and forward methods, but I'm having problems. Why doesn't the following : RequestDispatcher dispatcher = request.getRequestDispatcher(url) ; if (dispatcher!=null) { dispatcher.include(request, response) ; } include any images that the url might have ? Might there be another way to ensure that images are retreived ? Thanks. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Configuring Tomcat to start with different verisons of a Web App
Why not have 3 different web apps context1, context2, context3 and run them all in the same container? -Original Message- From: Scott Goldstein [mailto:[EMAIL PROTECTED]] Sent: 07 October, 2002 12:52 PM To: [EMAIL PROTECTED] Subject: Configuring Tomcat to start with different verisons of a Web App At any one time, I have multiple versions of a product that I'm working on on my development box. In other words, I'm usually fixing bugs in the previos one or two releases while moving forward on the next release. This leaves me with three web applications in three seperate directory structures. I would like to start Tomcat through an icon on my desktop. To be able to handle all three versions of the web app that I'm working on, I would like to have three seperate icons, one for each web app version. Unfortunately, I haven't figured out how to do this with Tomcat. It seems that I have to manually edit conf/server.xml in order to start and stop with different web apps installed. Can anyone provide suggestions on how to start and stop Tomcat with different web apps installed without having to edit conf/server.xml? Thanks. Scott Just a mirror for the sun... My smiling eyes are just a mirror for the sun. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: About WARP, HELP
Edit the server.xml file. search the text file for: org.apache.catalina.connector. warp.WarpConnector change it to: org.apache.catalina.connector.warp.WarpConnector -Original Message- From: Uma Maheswar [mailto:[EMAIL PROTECTED]] Sent: 05 October, 2002 7:47 AM To: Tomcat Users List Subject: About WARP, HELP Can any one tell me about WARP? Please help me. My problem is listed below. Thanks Uma C:\PROGRA~1\Apache Tomcat 4.0\bincatalina run Using CATALINA_BASE: .. Using CATALINA_HOME: .. Using CLASSPATH: ..\bin\bootstrap.jar;c:/j2sdk1.4.0/bin;\lib\tools.jar Using JAVA_HOME: c:/j2sdk1.4.0/bin; The system cannot find the path specified. C:\PROGRA~1\Apache Tomcat 4.0\binset JAVA_HOME=C:\j2sdk1.4.0 C:\PROGRA~1\Apache Tomcat 4.0\bincatalina run Using CATALINA_BASE: .. Using CATALINA_HOME: .. Using CLASSPATH: ..\bin\bootstrap.jar;C:\j2sdk1.4.0\lib\tools.jar Using JAVA_HOME: C:\j2sdk1.4.0 ERROR reading ..\conf\server.xml At Line 319 /Server/Service/Connector/ className=org.apache.catalina.connector.w arp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0 Catalina.start: java.lang.ClassNotFoundException: org.apache.catalina.connector. warp.WarpConnector java.lang.ClassNotFoundException: org.apache.catalina.connector.warp.WarpConnect or at java.net.URLClassLoader$1.run(URLClassLoader.java:198) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:186) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:262) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:130) at org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:616) at org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:412) at org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java:91 ) at org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.ja va:329) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1490) at org.apache.crimson.parser.Parser2.content(Parser2.java:1779) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507) at org.apache.crimson.parser.Parser2.content(Parser2.java:1779) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223) at javax.xml.parsers.SAXParser.parse(SAXParser.java:314) at javax.xml.parsers.SAXParser.parse(SAXParser.java:253) at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228) at org.apache.catalina.startup.Catalina.start(Catalina.java:725) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) C:\PROGRA~1\Apache Tomcat 4.0\bin -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: About WARP, HELP
This server.xml did not cause the exception you gave in your initial email. -Original Message- From: Uma Maheswar [mailto:[EMAIL PROTECTED]] Sent: 05 October, 2002 8:26 AM To: Tomcat Users List Subject: Re: About WARP, HELP Hi, Its already same in the server.xml file. I am attaching the file for your review. Please check it Uma -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Sharing an object between servlets
I have done what you are attempting. The problem with decoupling as suggested by others is that you end up duplicating the logic to create the image, and the image map. My solution was to have the servlet generate the graphic and save it on the session. The HTML servlet wrote out an image tag to another servlet that did nothing but retrieve the generated session from the image. Perhaps a more scalable approach would be to write the image out as a file, and have a servlet that reads the file. A reference could be saved on the session. George Sexton MH Software, Inc. Home of Connect Daily Web Calendar Software http://www.mhsoftware.com/connectdaily.htm Voice: 303 438 9585 -Original Message- From: Vijay Kandy [mailto:[EMAIL PROTECTED]] Sent: 04 October, 2002 8:28 AM To: 'Tomcat Users List' Subject: Sharing an object between servlets Dear All, We are building a map tool - to draw maps and show some data on them. Now, I have this situation. I have a servlet that gets coordinates from the database and draws the map on its OutputStream (the content type is set to png image). There is another servlet (content type is text/html) that embeds the URL of the first servlet. This servlet also gets coordinates from the database, and populates them over the image so I can do some image map or mouseOver() tricks using javascript. I was wondering if there was a way to make just one call to the database and share the coordinates between the servlets. Right now, I will try any thing! Thank you, Vijay -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Sharing an object between servlets
Go to: http://www.mhsoftware.com/caldemo/servlet/login Once you are logged in, choose Edit | Resource Types and click on the right most icon by the word facility. This shows what I was speaking of. You might want to change the date to 09/13/2002 and click on the Go button. The ViewGantt servlet generates the HTML, and the PNG image. It saves the PNG image on the user session. The graphic servlet just retrieves the image from the session. It sets the mime type to image/png and sends it to the client. George Sexton MH Software, Inc. Home of Connect Daily Web Calendar Software http://www.mhsoftware.com/connectdaily.htm Voice: 303 438 9585 -Original Message- From: Vijay Kandy [mailto:[EMAIL PROTECTED]] Sent: 04 October, 2002 9:17 AM To: 'Tomcat Users List' Subject: RE: Sharing an object between servlets Hmmm. I see what you are saying. But how does the HTML servlet write out the image map data? Thank you. -Vijay -Original Message- From: Sexton, George [mailto:[EMAIL PROTECTED]] Sent: Friday, October 04, 2002 9:48 AM To: Tomcat Users List Subject:RE: Sharing an object between servlets I have done what you are attempting. The problem with decoupling as suggested by others is that you end up duplicating the logic to create the image, and the image map. My solution was to have the servlet generate the graphic and save it on the session. The HTML servlet wrote out an image tag to another servlet that did nothing but retrieve the generated session from the image. Perhaps a more scalable approach would be to write the image out as a file, and have a servlet that reads the file. A reference could be saved on the session. George Sexton MH Software, Inc. Home of Connect Daily Web Calendar Software http://www.mhsoftware.com/connectdaily.htm Voice: 303 438 9585 -Original Message- From: Vijay Kandy [mailto:[EMAIL PROTECTED]] Sent: 04 October, 2002 8:28 AM To: 'Tomcat Users List' Subject: Sharing an object between servlets Dear All, We are building a map tool - to draw maps and show some data on them. Now, I have this situation. I have a servlet that gets coordinates from the database and draws the map on its OutputStream (the content type is set to png image). There is another servlet (content type is text/html) that embeds the URL of the first servlet. This servlet also gets coordinates from the database, and populates them over the image so I can do some image map or mouseOver() tricks using javascript. I was wondering if there was a way to make just one call to the database and share the coordinates between the servlets. Right now, I will try any thing! Thank you, Vijay -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Error Compiling JSP under 4.1.12
Never mind. I found this described in Bug #10036. -Original Message- From: Sexton, George [mailto:[EMAIL PROTECTED]] Sent: 28 September, 2002 9:52 AM To: [EMAIL PROTECTED] Subject: Error Compiling JSP under 4.1.12 I am getting these errors when I try to compile a JSP page under 4.1.12 /usr/local/jakarta-tomcat-4.1.12/work/Standalone/localhost/caldev/index_jsp. java:7: '.' expected import WebApp; ^ /usr/local/jakarta-tomcat-4.1.12/work/Standalone/localhost/caldev/index_jsp. java:8: '.' expected import CalServlet; ^ /usr/local/jakarta-tomcat-4.1.12/work/Standalone/localhost/caldev/index_jsp. java:48: cannot resolve symbol symbol : variable WebApp location: class org.apache.jsp.index_jsp out.print(WebApp.PRODUCT_NAME); The WebApp, and CalServlet classes exist in my context/WEB-INF/classes directory. I enabled debug for the JSP compiler and can see that the classpath is correct. This JSP page works fine under 4.0.4 and most other Servlet containers. Any ideas on where I am going wrong would be appreciated. George Sexton MH Software, Inc. Home of Connect Daily Web Calendar Software http://www.mhsoftware.com/connectdaily.htm Voice: 303 438 9585 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Help - why is tomcat so slow in displaying each page?
So, shooting in the dark, do you have log hosts names turned on for tomcat? If so, is your host name resolvable? -Original Message- From: andrew mercer [mailto:[EMAIL PROTECTED]] Sent: 01 October, 2002 7:47 AM To: [EMAIL PROTECTED] Subject: Help - why is tomcat so slow in displaying each page? Hi, I have recently had to convert from Jetty to tomcat for one of our customers. The application is run from a war file that has in it among other things java classes and webmacro templates. The main browser views are currently created using frames. When I run the war file using jetty everything runs perfectly and fast. However when I run using tomcat the frames take about 40 - 50 seconds to load. The first frame loads fast but then I am waiting for the rest. Once open if I then click a link that loads one template (with no frames) via a servlet into one of the visible frames then this can also take between 30 - 45 seconds. Is there a way round this? Is it someting to do with the configuaration.? I could not see anything obvoius in the xml files nor could I see a similar question in the old mailing lists. Thnks for your help in advance Andrew Mercer Software Developer -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: URGENT lost modifications for the web.xml file
Please read this FAQ: http://www.tuxedo.org/~esr/faqs/smart-questions.html Specifically read the topic: Don't flag your question as Urgent... Once you have read this, please repost your inquiry. George Sexton MH Software, Inc. Voice: 303 438 9585 http://www.mhsoftware.com -Original Message- From: Heligon Sandra [mailto:[EMAIL PROTECTED]] Sent: 01 October, 2002 10:31 AM To: '[EMAIL PROTECTED]' Subject: URGENT lost modifications for the web.xml file Importance: High Hi, I added the following element in my web.xml file: !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app listener listener-class com.entreprise.My_ServletContextListener /listener-class /listener I saved the file. I compile my application, I close the web.xml file and open it again the file is updated. But when I run the application, the web.xml is modified and I lost the listener entrie why ? If I added the following entrie error-page exception-typeorg.omg.CORBA.UserException.Toto/exception-type location/pages/errorPage.jsp/location /error-page When I run my application the entrie is yet available. why it is not the case for listener element ? I use Tomcat4.0.4. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: (OT) Cannot see Localhost on Apache
Let me elaborate: HOSTS.SAM==SAMPLE HOSTS FILE HOSTS.SAM is not read by the operating system. It is a sample hosts file for you to use as a basis for creating your own HOSTS file. -Original Message- From: Geoffrey Khan [mailto:[EMAIL PROTECTED]] Sent: 30 September, 2002 8:58 AM To: 'Tomcat Users List' Subject: RE: (OT) Cannot see Localhost on Apache The HOSTS file (without .sam) lists an IP address of: 142.179.202.248 www.paramagnus.com I checked this URL out and it appears to be the URL of a software manufacturer (who specifically make SpeedNet - which I had installed on my PC some time ago). Why that is there I have no idea? And that is the only IP address in that file. The HOSTS.sam file has the 127.0.0.1 localhost listed and nothing else. -Original Message- From: Miguel Angel Mulero Martinez [mailto:[EMAIL PROTECTED]] Sent: 30 September 2002 15:44 To: Tomcat Users List Subject: RE: (OT) Cannot see Localhost on Apache The file is only hosts without .sam -Mensaje original- De: Geoffrey Khan [mailto:[EMAIL PROTECTED]] Enviado el: lunes, 30 de septiembre de 2002 16:25 Para: 'Tomcat Users List' Asunto: RE: (OT) Cannot see Localhost on Apache Raj, I checked the HOSTS.sam file in the Windows directory and 127.0.0.1 Localhost is listed and nothing else. I do not have any Proxy server settings set-up (and didn't previously when Apache was working fine). I have a LAN card installed on this PC - the computer name is JK and the Workgroup is MSHOME. This is obviously where Apache got the jk.mshome.net configuration from. Geoff -Original Message- From: Raj Saini [mailto:[EMAIL PROTECTED]] Sent: 30 September 2002 14:59 To: Tomcat Users List Subject: Re: (OT) Cannot see Localhost on Apache There is nothing wrong with the the apache Installation. telnet to port 80 shows that apache is configured properly and working. Few things to check are:- Check the hosts file int he window directory. See if you have setup any hosts in the host files. Check proxy setting of your browser. Do you have a LAN card installed on your PC? If yest what is the host name you have set in your LAN settings? There is a problem with network settings. Browser is not sending the correct hostname to the server and therefore you dont see any thing. THe telnet shows that it got the index.html and other image files. Raj Your browser proxy setting. Geoffrey Khan wrote: Well, that is what I'll do - reinstall Apache. However, as I said previously, this whole situation arose due to Apache not showing the Localhost directory. It was working fine for over a year on this PC and I didn't change ANY of the settings or add any hardware prior to it's not working. -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: 30 September 2002 14:36 To: 'Tomcat Users List' Subject: RE: (OT) Cannot see Localhost on Apache OK, we're going around in circles. There are a couple of issues here. - if ServerName in httpd.conf is 127.0.0.1, then that is what you put in the URL - 127.0.0.1 = localhost, on every computer in the world, it's a standard - do you have a hosts file or some other DNS setting that is resolving jk.mshome.net to 127.0.0.1? Basically, things have to match. If jk.mshome.net = 127.0.0.1, then jk.mshome.net should be your ServerName in httpd.conf. My advice is to reinstall Apache, and don't answer _anything_ when asked for hostname, IP address, or anything else. Let the installer figure that stuff out on its own. You can't just type hostnames willy-nilly, they have to resolve correctly for services that are looking for them to work correctly. Since jk.mshome.net does not resolve publicly, either set up DNS on your LAN or a local hosts file on your PC to resolve the name. Otherwise, don't use it anywhere, in any configuration, because it won't work. Typing ping localhost should return an IP address of 127.0.0.1. Typing ping jk.mshome.net should return nothing. Apache should be set to defaults, across the board (localhost). John -Original Message- From: Geoffrey Khan [mailto:[EMAIL PROTECTED]] Sent: Monday, September 30, 2002 9:23 AM To: 'Tomcat Users List' Subject: RE: (OT) Cannot see Localhost on Apache I've checked the config file and the Server Name is 127.0.0.1, so I don't know why it says jk.mshome.net when I try to ping Localhost. I've attache my config file again. -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: 30 September 2002 14:15 To: 'Tomcat Users List' Subject: RE: (OT) Cannot see Localhost on Apache OK, that's a problem. I don't have your httpd.conf any more, but there shouldn't be any hostnames in there whatsoever if all you are doing is accessing localhost. Instead of hostnames, it should say localhost. John -Original Message- From: Geoffrey Khan [mailto:[EMAIL PROTECTED]] Sent: Monday, September 30, 2002 9:07 AM To: 'Tomcat Users
RE: Servlets not found after upgrade to Tomcat 4.1.12
Did you read the change log? -Original Message- From: Hanasaki JiJi [mailto:[EMAIL PROTECTED]] Sent: 30 September, 2002 11:23 AM To: [EMAIL PROTECTED] Subject: Servlets not found after upgrade to Tomcat 4.1.12 I have just autodeployed a WAR file that worked fine in Tomcat 4.0.5. Undeer 4.1.12 none of the servlets are being found. Tomcat reports requested resource not available Also, under 4.1.12 there is no logs/**access log -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Servlets not found after upgrade to Tomcat 4.1.12
http://jakarta.apache.org/site/news.html#0924.1 -Original Message- From: Hanasaki JiJi [mailto:[EMAIL PROTECTED]] Sent: 30 September, 2002 1:03 PM To: Tomcat Users List Subject: Re: Servlets not found after upgrade to Tomcat 4.1.12 Yes ... I read every txt file that was in the dowload. Does the below excerpt have anything to do with this? What is the invoker and why is it now disabled by default? Thanks. Enabling invoker servlet: Starting with Tomcat 4.1.12, the invoker servlet is no longer available by default in all webapp. Enabling it for all webapps is possible by editing $CATALINA_HOME/conf/web.xml to uncomment the /servlet/* servlet-mapping definition. Sexton, George wrote: Did you read the change log? -Original Message- From: Hanasaki JiJi [mailto:[EMAIL PROTECTED]] Sent: 30 September, 2002 11:23 AM To: [EMAIL PROTECTED] Subject: Servlets not found after upgrade to Tomcat 4.1.12 I have just autodeployed a WAR file that worked fine in Tomcat 4.0.5. Undeer 4.1.12 none of the servlets are being found. Tomcat reports requested resource not available Also, under 4.1.12 there is no logs/**access log -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Error Compiling JSP under 4.1.12
I am getting these errors when I try to compile a JSP page under 4.1.12 /usr/local/jakarta-tomcat-4.1.12/work/Standalone/localhost/caldev/index_jsp. java:7: '.' expected import WebApp; ^ /usr/local/jakarta-tomcat-4.1.12/work/Standalone/localhost/caldev/index_jsp. java:8: '.' expected import CalServlet; ^ /usr/local/jakarta-tomcat-4.1.12/work/Standalone/localhost/caldev/index_jsp. java:48: cannot resolve symbol symbol : variable WebApp location: class org.apache.jsp.index_jsp out.print(WebApp.PRODUCT_NAME); The WebApp, and CalServlet classes exist in my context/WEB-INF/classes directory. I enabled debug for the JSP compiler and can see that the classpath is correct. This JSP page works fine under 4.0.4 and most other Servlet containers. Any ideas on where I am going wrong would be appreciated. George Sexton MH Software, Inc. Home of Connect Daily Web Calendar Software http://www.mhsoftware.com/connectdaily.htm Voice: 303 438 9585 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Symlinks
cd your tomcat dir find . -type f -exec grep -Hie symlink {} \; -Original Message- From: Denny Chambers [mailto:[EMAIL PROTECTED]] Sent: 26 September, 2002 10:40 AM To: Tomcat Users List Subject: Re: Symlinks Where is this turned off at? The server I tested against was 4.1.10, but I did change the server.xml file, so if it is in there I guess I could have messed it up. Also, I did not start the server with a -security option, does that matter? Thanks, Denny Turner, John wrote: Symlinks are off by default in 4.1.10 and higher. Check the online release notes for more information. John -Original Message- From: Denny Chambers [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 26, 2002 12:30 PM To: Tomcat Users List Subject: Symlinks Hi All, Is there any way to tell Tomcat to not follow symlinks? If not how can I protect my server against malicious symlinks? Is the java.io.FilePermissions smart enough to figure these out? For example if I give read access only to directory foo through the java.io.FilePermissions, but inside of foo, there is a symlink that points to a file bar, which really exists outside of the directory foo. Is the Security Manager smart enough to catch this. I have also found that while I can't see a WEB-INF directory from the browser using a URL like so: http://myserver:8080/myapp/WEB-INF/, I can create a symlink in $CATALINA_HOME/webapp/myapp/ which points to a WEB-INF directory, then I can see that directory as plane as day. How can you protect your server from these sort of things. Thanks, Denny -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: tomcat start up errors
Look around for files named hs_err_pidN.log. This is the crash log the JVM will write when it falls over. -Original Message- From: Kathleen Flores [mailto:[EMAIL PROTECTED]] Sent: 20 September, 2002 1:29 PM To: Tomcat Users List Subject: RE: tomcat start up errors Thank you for your reply... When this happens, the java process is not running tomcat. And I just verified that the only connector in server.xml is the AJPconnector. Thanks again, Kat ::: Ahh, but you didn't say what JVM... Seriously, the more complete the initial message is the more likely you are to get a quick, accurate answer. It looks to me like these errors are coming from mod_jk trying to connect to Tomcat, so they appear to be a symptom of another problem. Is the Java process still running Tomcat when this happens? Does Tomcat accept connections on another connector like the HTTP 1.0 connector? If the JVM is crashing, you need to find the crash logs and troubleshoot it. ERG Group -- The contents of this email and any attachments are confidential and may only be read by the intended recipient. - -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: JSP Help
No, you don't want another print writer, you want to flush the implicitly created printwriter named out that jsp creates under the hood. If this doesn't help, I'm afraid I can't suggest anything more. I avoid JSP like the plague. George Sexton MH Software, Inc. Home of Connect Daily Web Calendar Software http://www.mhsoftware.com/connectdaily.htm Voice: 303 438 9585 -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED]] Sent: 20 September, 2002 1:21 AM To: [EMAIL PROTECTED] Subject: JSP Help Hi, Thanks for your response to my question. I hope you don't mind if i take this question off of the mailing list. It will be easier to talk directly. Unfortunatly - i couldn't get it to work any better. Here is what i did: In the included servlet i added the following lines after the /HTML tag HTML Included tags /HTML try { java.io.PrintWriter pw = response.getWriter ( ); pw.flush ( ); } catch ( ... ) { } The result turned out the same. I am using: java 1.4 and tomcat 4.0.4 Is this what you had in mind? Again - thanks for your response. Ray Madigan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: tomcat start up errors
In order for you to get the help you would really like, it would be helpful if you could read this article and repost your question. http://www.tuxedo.org/~esr/faqs/smart-questions.html George Sexton MH Software, Inc. Voice: 303 438 9585 http://www.mhsoftware.com -Original Message- From: Kathleen Flores [mailto:[EMAIL PROTECTED]] Sent: 20 September, 2002 10:42 AM To: Tomcat Users List Subject: tomcat start up errors Hi All, When I startup tomcat, I receive the following error multiple times...until what seems to be within 3 hours, tomcat stops running. Hence, I need to restart tomcat every 3 hours - what a pai! =) Does anyone know what these error messages mean and how I can prevent this from happening ? [jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close, NULL par ameter [jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL p arameters [jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close, NULL par ameter [jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close, NULL par ameter [jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL p arameters [jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close, NULL par ameter [jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL p arameters [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1 [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1 [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1 [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1 [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1 [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1 [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1 Thanks, Kat ERG Group -- The contents of this email and any attachments are confidential and may only be read by the intended recipient. - -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: tomcat start up errors
Ahh, but you didn't say what JVM... Seriously, the more complete the initial message is the more likely you are to get a quick, accurate answer. It looks to me like these errors are coming from mod_jk trying to connect to Tomcat, so they appear to be a symptom of another problem. Is the Java process still running Tomcat when this happens? Does Tomcat accept connections on another connector like the HTTP 1.0 connector? If the JVM is crashing, you need to find the crash logs and troubleshoot it. George Sexton MH Software, Inc. Voice: 303 438 9585 http://www.mhsoftware.com -Original Message- From: Kathleen Flores [mailto:[EMAIL PROTECTED]] Sent: 20 September, 2002 11:35 AM To: Tomcat Users List Subject: RE: tomcat start up errors Okay, so to append to my original email - my system environment is... tomcat v3.2.3 and apache v.1.3.26 both running on one server - a sun box with solaris 9 os. I hope that's better...sorry! Best Regards, Kat ERG Group -- The contents of this email and any attachments are confidential and may only be read by the intended recipient. - -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: How to block listings on a SPECIFIC directory
Hmmm... Why don't you put a file like index.html in the directory? Assuming you have a welcome files list in your web.xml file, this will be displayed. You can then put up a message, and re-direct to where you want them to be. George Sexton MH Software, Inc. Home of Connect Daily Web Calendar Software http://www.mhsoftware.com/connectdaily.htm Voice: 303 438 9585 -Original Message- From: adi [mailto:[EMAIL PROTECTED]] Sent: 19 September, 2002 6:49 AM To: [EMAIL PROTECTED] Subject: How to block listings on a SPECIFIC directory Hello, I am trying to enable listing on one directory ( and its children) only. the listings parameter set to false or true will affect everything. is it possible in any way to define listings to individual directories in my webapp? Adi --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat4.0.3 - What is written in these log files ?
I'm sure the nature of what is logged there would be self evident if you examined the files in question. George Sexton MH Software, Inc. Voice: 303 438 9585 http://www.mhsoftware.com -Original Message- From: Santosh Kulkarni [mailto:[EMAIL PROTECTED]] Sent: 19 September, 2002 4:46 AM To: [EMAIL PROTECTED] Subject: Tomcat4.0.3 - What is written in these log files ? In Tomcat4.0.3, there are these log files created. 1) catalina_log 2) localhost_access_log 3) localhost_log 4) apache_log It wud be great if someone can return me a description of a line or two for each of these log files. I searched in Apache site, but cudn't get more information on this. TIA Santosh __ Do you Yahoo!? New DSL Internet Access from SBC Yahoo! http://sbc.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: How to block listings on a SPECIFIC directory
Do you put static content in these directories? -Original Message- From: adi [mailto:[EMAIL PROTECTED]] Sent: 19 September, 2002 7:26 AM To: Tomcat Users List Subject: RE: How to block listings on a SPECIFIC directory new directories are being created dynamically and they should be browsable. all the rest shouldnt be thats why I can not put index.htm file in every directory Any suggestions? Adi -Original Message- From: Sexton, George [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 2:21 PM To: Tomcat Users List Subject: RE: How to block listings on a SPECIFIC directory Hmmm... Why don't you put a file like index.html in the directory? Assuming you have a welcome files list in your web.xml file, this will be displayed. You can then put up a message, and re-direct to where you want them to be. George Sexton MH Software, Inc. Home of Connect Daily Web Calendar Software http://www.mhsoftware.com/connectdaily.htm Voice: 303 438 9585 -Original Message- From: adi [mailto:[EMAIL PROTECTED]] Sent: 19 September, 2002 6:49 AM To: [EMAIL PROTECTED] Subject: How to block listings on a SPECIFIC directory Hello, I am trying to enable listing on one directory ( and its children) only. the listings parameter set to false or true will affect everything. is it possible in any way to define listings to individual directories in my webapp? Adi --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: JSP Help
The solution I found was to flush() the print writer on the included servlet but not close it. -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED]] Sent: 19 September, 2002 5:50 PM To: Tomcat Users List Subject: JSP Help This might not be the correct forum - but I am porting my application from Tomcat 3 to Tomcat 4 and I am having trouble with the requestDispatch.include ( r, r ) method. What happens is thet the includedjsp file gets included above the output from the parent jsp page. The parent jsp creates the HTML form ... with a servlet action handler and the include directive inserts the HTML controls that are appropriate for the situation into the surrounding HTML form. As the page is rendered by Tomcat 4, the HTML controls are not within the scope of the HTML form and the application no longer works. Any help would be appreciated. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Possible Memory Leak in Apache Tomcat/4.1.10-LE-jdk14
Why don't you call it tens of thousands of times using something like Jakarta-JMeter and see if memory usage levels out at some point. -Original Message- From: Billy Ng [mailto:[EMAIL PROTECTED]] Sent: 11 September, 2002 7:37 PM To: Tomcat Users List Subject: Possible Memory Leak in Apache Tomcat/4.1.10-LE-jdk14 I ran the Hello World page on the Tomcat's Servlet Examples, then kept refreshing it. The free memory is continuously going down on my Linux box and never came back up. Is it memory leak? I am running the Apache Tomcat/4.1.10-LE-jdk14. Billy Ng. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Managing a Listener
Why not create a singleton class to hold the information? -Original Message- From: Craig Longman [mailto:[EMAIL PROTECTED]] Sent: 10 September, 2002 11:56 AM To: tomcat-user Subject: Managing a Listener i have a need for some data that is needed by every page. Ideally, this would simply be a class that is shared by everything else in one webapp subdirectory, and available in the page context or session. the only way i can see to do this (based on the docs at least) is to configure a Listener to look for new session evens, and store an object in the session that can be used to access the information. however, i would definitely want this listener to be able to read init information and find the preferred logger, etc. how is this accomplished? the listener, although configurable from the server.xml file, seems to receive no config information. it needs to have things like a configuration file name passed to it. the other way i guess would be to split up the thing into two (conceptually at least), one listener and something else that gets initialized by the container. would that have to be a servlet then? is there any way of just initializing 'objects' in server.xml? -- CraigL-Thx(); Be Developer ID: 5852 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Managing a Listener
This has already been said, but use a properties file. If you ever have more than one instance, dealing with the XML files is very painful. -Original Message- From: Craig Longman [mailto:[EMAIL PROTECTED]] Sent: 10 September, 2002 12:57 PM To: Tomcat Users List Subject: RE: Managing a Listener On Tue, 2002-09-10 at 14:53, Sexton, George wrote: Why not create a singleton class to hold the information? this is, in effect, what it would be (i imagine there is only one filter/listener created, but i'm not sure). but INITIALIZING that information is what i'm trying to figure out, i want it to be configured from the server.xml file as much as possible, hard-coding things always seems to cause problems at some point. -Original Message- From: Craig Longman [mailto:[EMAIL PROTECTED]] Sent: 10 September, 2002 11:56 AM To: tomcat-user Subject: Managing a Listener i have a need for some data that is needed by every page. Ideally, this would simply be a class that is shared by everything else in one webapp subdirectory, and available in the page context or session. the only way i can see to do this (based on the docs at least) is to configure a Listener to look for new session evens, and store an object in the session that can be used to access the information. however, i would definitely want this listener to be able to read init information and find the preferred logger, etc. how is this accomplished? the listener, although configurable from the server.xml file, seems to receive no config information. it needs to have things like a configuration file name passed to it. the other way i guess would be to split up the thing into two (conceptually at least), one listener and something else that gets initialized by the container. would that have to be a servlet then? is there any way of just initializing 'objects' in server.xml? -- CraigL-Thx(); Be Developer ID: 5852 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- CraigL-Thx(); Be Developer ID: 5852 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Starting and stopping Tomcat as non-root
Lately, I have been thinking of writing a JNI library to call setuid() and setgid() to change the effective user ID and group ID of the process after it starts. I'm not sure how this would affect the various startup and shutdown scripts, but it would be interesting from a security standpoint. -Original Message- From: Joe Tomcat [mailto:[EMAIL PROTECTED]] Sent: 05 September, 2002 11:39 PM To: Tomcat Users List Subject: Starting and stopping Tomcat as non-root I am running Tomcat on port 80 (not using Apache) on Redhat 7.3. Obviously, Tomcat needs to be root to listen on port 80. Therefore, to start it or stop it, I need to do that as root. The problem is that I want to use ant tasks to start and stop it. I can easily have ant tasks which execute startup.sh and shutdown.sh, but then I have a to run ant, and therefore do all my development, as root, something which I definitely do not want to do. Unfortunately Linux doesn't let me make shell scripts setuid, so how do I do this? I realize that setuid scripts are a security hole, but there are no untrusted users on this machine (I'm the only user) so it doesn't matter. Alternatively, is there a way to make Linux so that it lets any user bind to any port? This must be root to bind to low ports is the most idiotic security measure in all of Unix land and has resulted in more breakins over the years than any other single thing. Can I turn it off? Thanks! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: problem using sendRedirect() in a servlet jsp:include'd into a jsp page
A couple of things: 1) Generally, you cannot do a send redirect if you have already written something to the output stream. 2) Unlike ASP, sendRedirect() does not terminate processing of the current servlet, or JSP Page. You need to explicitly put a RETURN statement in. In your case, since you are doing the send re-direct from the servlet, what you should do is set an attribute on the request, and have the JSP page check for the attribute. If the attribute is present, signalling a redirect, the JSP page should similarly execute a return statement. George Sexton MH Software, Inc. Home of Connect Daily Web Calendar Software http://www.mhsoftware.com/connectdaily.htm Voice: 303 438 9585 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 03 September, 2002 12:04 PM To: [EMAIL PROTECTED] Subject: problem using sendRedirect() in a servlet jsp:include'd into a jsp page Hi all, I'm having a little problem... I have a jsp page, lookup.jsp, that jsp:include's a servlet, LookupServlet. The jsp page is mainly just to jsp:include the static html content, and the servlet does all the processing involved in the application... the problem is, I want to move to a page called confirm.jsp after the lookup finishes... My first thought was to use sendRedirect() in the servlet... but this doesn't appear to work, and I'm not sure why. sendRedirect does not throw any exception, but by the same token, the redirect doesn't happen. It doesn't appear to be a browser issue, as this happens with Mozilla 1.1 and Internet Explorer 6.0... It also doesn't seem to be a manifestation of the old bug with sendRedirect () not working with mod_jk, as I wrote a seperate test servlet that does nothing but a redirect, and it works fine ( not being included inside a jsp page though ). My gut feeling is that my problem is mainly caused by the fact that my servlet is not called directly, but is included in that jsp page... can anybody confirm or deny this, or offer any other insight as to what might be happening? This is using Apache 1.3 + Tomcat 4.0.4 + mod_jk on Windows NT 4.0 Thanks, Phillip Rhodes Application Designer Voice Data Solutions 919-571-4300 x225 [EMAIL PROTECTED] Those who are willing to sacrifice essential liberties for a little order, will lose both and deserve neither. - Benjamin Franklin This country, with its institutions, belongs to the people who inhabit it. Whenever they shall grow weary of the existing government, they can exercise their constitutional right of amending it, or exercise their revolutionary right to overthrow it. - Abraham Lincoln No citizen shall be denied the right to bear arms, if as a last resort, to protect themselves from tyranny in Government. - Thomas Jefferson -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Database write delay?!?!?!?
Um... ... ... What database are you using? Do you have autocommit() turned on in your jdbc connection? -Original Message- From: Josh G [mailto:[EMAIL PROTECTED]] Sent: 28 August, 2002 11:47 PM To: Tomcat Users List Subject: Database write delay?!?!?!? Hi, After banging my head against it all day, I've discovered that _somewhere_ between my servlet code and the filesystem, writes to the database are being cached. However, reads are not coming from the cache. I'm getting around the problem at the moment with a simple window.setTimeout in JS instead of response.sendRedirect(), but this is inelegant and I'd like to lose it. Has anybody else come across this problem? Is it something I'm doing wrong? Please tell me it's something I'm doing wrong :-) Baffled, -Josh -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: DOS Error Msg.
Using the instructions previously given, edit the setting for the JAVA_HOME variable and remove the trailing semi-colon. -Original Message- From: STEVE R BURRUS [mailto:[EMAIL PROTECTED]] Sent: 29 August, 2002 2:05 PM To: Tomcat Users List Subject: DOS Error Msg. Hello all, I need some degree of immediate help/assistance w. installing the Tomcat server! After I THINK that I have gotten all of the various components in place needed for the installation, and set the environment variables correctly, when I try to activate Tomcat, I seem to always get a DOS error message saying that the JAVA_HOME variable wasn't set properly!! Here is a dump from the entire message for your inspection. Please help! C:\jakarta-tomcat-4.0.4\binstartup The JAVA_HOME environment variable is not defined correctly This environment variable is needed to run this program The system cannot find the batch label specified - end Using CATALINA_BASE: .. Using CATALINA_HOME: .. Using CATALINA_TMPDIR: ..\temp Using JAVA_HOME: C:\j2sdk1.4.1_01; Incidentally, I am using the Win XP Home platform. __ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Where should i put dynamically generated graphics
It depends. One way I have done it is to have the generator servlet save it on the session, and have the page the generator servlet writes make a request to a simple servlet that returns the graphic, and then deletes it from the session. Another way would be to write it to the temp dir. From the Servlet API Spec: SRV.3.7.1 Temporary Working Directories A temporary storage directory is required for each servlet context. Servlet containers must provide a private temporary directory per servlet context, and make it available via the javax.servlet.context.tempdir context attribute. The objects associated with the attribute must be of type java.io.File. Then, using a servlet mapping request the generated image and have the servlet retrieve the temporary image. I guess that you could make another dir writable to the server, and store the image in their natively. George Sexton MH Software, Inc. Home of Connect Daily Web Calendar Software http://www.mhsoftware.com/connectdaily.htm Voice: 303 438 9585 -Original Message- From: Andy Wagg [mailto:[EMAIL PROTECTED]] Sent: 29 August, 2002 4:01 PM To: [EMAIL PROTECTED] Subject: Where should i put dynamically generated graphics Hello I have a web application that generates a gif file that is then subsequently displayed. It expects to find the gif file in the context of the web application. The web app is deployed as a war so obviously the generated files cant be put there. Any suggestions as to where these files could be copied that would be accesible by the browser. Thanks in advance. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Cannot run my first servlet
try: form method=post action=/context/servlet/Form1 -Original Message- From: Jim Marnell [mailto:[EMAIL PROTECTED]] Sent: 28 August, 2002 7:14 AM To: [EMAIL PROTECTED] Subject: Cannot run my first servlet I give up - I hope someone can look over the setup and tell me what's wrong. I'm getting the 404 resource not available when I try to invoke the servlet from action statement of form. I'm concerned that I don't have the servlet URI correct on the action statement. [root@redfish jmarnell]# pwd /usr/local/src/jakarta-tomcat-4.0.4/webapps/jmarnell [root@redfish jmarnell]# ls -F form1.html WEB-INF/ [root@redfish jmarnell]# ls -F WEB-INF classes/ src/ web.xml [root@redfish jmarnell]# more WEB-INF/web.xml !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app display-nameForm1 application/display-name descriptionprocess a form's input/description servlet servlet-nameForm1/servlet-name servlet-classForm1/servlet-class /servlet servlet-mapping servlet-nameForm1/servlet-name url-pattern/Form1/url-pattern /servlet-mapping /web-app [root@redfish jmarnell]# ls WEB-INF/classes Form1.class [root@redfish jmarnell]# more form1.html htmltitleform1/titlebody form method=post action=/Form1 Enter your message below.brbr textarea name=message/textareabrbr input type=submit value=Send it/form /html [root@redfish jmarnell]# Let me know if you need more info and thanks. - Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Cannot run my first servlet
You are trying to use mod_webapp, and you don't have the warp connector enabled properly. -Original Message- From: Jim Marnell [mailto:[EMAIL PROTECTED]] Sent: 28 August, 2002 8:15 AM To: Tomcat Users List Subject: RE: Cannot run my first servlet A thousand thanks - it's working. On another note - I noticed the following. I wonder if it's a real problem or maybe just complaining that I don't have mod_jk installed - any ideas? [root@redfish logs]# more apache_log.2002-08-26.txt 2002-08-26 12:12:52 [org.apache.catalina.connector.warp.WarpConnector] Error acc epting requests java.net.SocketException: Socket closed at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:343) at java.net.ServerSocket.implAccept(ServerSocket.java:438) at java.net.ServerSocket.accept(ServerSocket.java:409) at org.apache.catalina.connector.warp.WarpConnector.run(WarpConnector.ja va:590) at java.lang.Thread.run(Thread.java:536) Thanks again..jim Sexton, George wrote:try: /servlet/Form1 method=post -Original Message- From: Jim Marnell [mailto:[EMAIL PROTECTED]] Sent: 28 August, 2002 7:14 AM To: [EMAIL PROTECTED] Subject: Cannot run my first servlet I give up - I hope someone can look over the setup and tell me what's wrong. I'm getting the 404 resource not available when I try to invoke the servlet from action statement of form. I'm concerned that I don't have the servlet URI correct on the action statement. [root@redfish jmarnell]# pwd /usr/local/src/jakarta-tomcat-4.0.4/webapps/jmarnell [root@redfish jmarnell]# ls -F form1.html WEB-INF/ [root@redfish jmarnell]# ls -F WEB-INF classes/ src/ web.xml [root@redfish jmarnell]# more WEB-INF/web.xml PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; Form1 application process a form's input Form1 Form1 Form1 /Form1 [root@redfish jmarnell]# ls WEB-INF/classes Form1.class [root@redfish jmarnell]# more form1.html Enter your message below. [input] [root@redfish jmarnell]# Let me know if you need more info and thanks. - Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes -- To unsubscribe, e-mail: For additional commands, e-mail: - Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: STILL need help w. Tomcat installation!!
Go back and read the messages that I and everyone else sent to help you. If you don't read the messages that we respond with, we can't help you here. I, on the other hand, am a consultant and will be happy to fly to your location and assist you in your configuration issue. -Original Message- From: STEVE R BURRUS [mailto:[EMAIL PROTECTED]] Sent: 28 August, 2002 11:04 AM To: [EMAIL PROTECTED] Subject: STILL need help w. Tomcat installation!! I STILL find myself in some degree of need from someone in this newsgroup concerning the Tomcat install!!! I THINK that I got everything alright with setting the environment variables in the System applet, but alas, when I tried again to activate Tomcat, I STILL received the error msg. saying something about the JAVA_HOME variable was not properly set or missing!! Should I type into the DOS command line set JAVA_HOME=j2sdk* or not to maybe correct this? __ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: problems with Connections
Do your objects persist across requests from the user? -Original Message- From: Christian J. Dechery [mailto:[EMAIL PROTECTED]] Sent: 22 August, 2002 5:58 AM To: [EMAIL PROTECTED] Subject: Re: problems with Connections I wish it was that simple to just DO-IT-ALL-OVER-AGAIN but we're already in production, I don't have the time to go trough all the classes again an rewrite code... I have a lot of other things to do along with providing maintenance to all these 100 classes... Isn't there a way a class can have a connection and properly close it after it has made use of it? Cuz that's the main problem here... the connections don't close... only if I call con.close() in the same method that opens it... but that makes it too slow... And what about that maximum cursors open thing?? I call rs.close() and stmt.close() in the finally block of EVERY query... how come I get maxium cursors??? .:| Christian J. Dechery .:| FINEP - Depto. de Sistemas .:| [EMAIL PROTECTED] .:| (21) 2555-0332 [EMAIL PROTECTED] 22/08/02 00:58 On Wed, 21 Aug 2002, Christian J. Dechery wrote: Date: Wed, 21 Aug 2002 16:56:05 -0300 From: Christian J. Dechery [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: problems with Connections That's exactly the problem... we dont't have any servlets (I wish we had, but I didn't design, I only code)... only JSPs and classes... I'll give u an example of how are things here... let's say we have a class called BusinessObject, and a class called DAOBusinessObject... so I'd have a JSP like that % BusinessObject bo = new BusinessObject(); // at this point, DAOBusinessObject requested a connection bo.method1(); // this method calls a method in DAO which runs a query bo.method2(); // this on too... and every other method as well... % so, as long as the DAOBusinessObject object lives the Connection is there... how am I supposed to close it, since every query needs it? Now I see, I should have a method to close the used conn or something... but we have up to 50 DAO* classes and more then 200 JSPs... I agree with what u said about the finalize()... but what should I do then? Give up and start over. Seriously. This application design is totally hopeless from a scalability or reliability viewpoint, because it requires a connection for every business object, on every page that uses that BO class. To say nothing of the fact that JDBC drivers are not required to be thread safe, so you're undoubtedly causing yourself tremendous grief when the same page is accessed by more than one user. If you follow my advice, please follow one other piece -- get a book on design patterns (Core J2EE Design Patterns by Alur/Crupi/Malks is one of my most well-thumbed resources) and follow the prescribed patterns for doing this right. .:| Christian J. Dechery .:| FINEP - Depto. de Sistemas .:| [EMAIL PROTECTED] .:| (21) 2555-0332 Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Programmatically remove an application?
Why not open a socket and send an HTTP request to the manager application? -Original Message- From: Mark O'Driscoll [mailto:[EMAIL PROTECTED]] Sent: 22 August, 2002 7:26 AM To: Tomcat Users List Subject: Programmatically remove an application? Is there a way to programmatically remove or stop the installation of a web application? i.e. call a function that does the same as http:/:8080/manager?remove=/app TIA -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: STILL Need Help w. Tomcat Install
This is nothing personal. I really would like to see you get the help you need. However, you didn't even tell anyone what operating system you are using. I would strongly recommend you read this FAQ about how to seek help on lists. http://www.tuxedo.org/~esr/faqs/smart-questions.html George Sexton MH Software, Inc. Voice: 303 438 9585 http://www.mhsoftware.com -Original Message- From: STEVE R BURRUS [mailto:[EMAIL PROTECTED]] Sent: 21 August, 2002 1:50 PM To: [EMAIL PROTECTED] Subject: STILL Need Help w. Tomcat Install This is Steve Burrus again, and I am damned sorry to have to post my plea for help/assistance again, but everyday when I first access my email there are literally 100's of postings from other members of the Tomcat newsgroup, and my original post--and any response--is VERY DIFFICULT to locate, so here it is again: How exactly does one go about installing the Tomcat 4.0.* correctly??? I have racked my brain in trying to figure out how to do this, but I simply cannot do it myself, I am afraid to say! Thanx in advance to anyone who can help me! __ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Help plzz
JAVA_HOME is not set correctly. -Original Message- From: raghav [mailto:[EMAIL PROTECTED]] Sent: 19 August, 2002 11:06 PM To: Tomcat Users List Subject: Help plzz Hi All, I have downloaded Jakarta-tomcat 4.0.2 and am using Win XP OS. I have st up JAVA_HOME variable and Catalina-Home variable and tried to run the server. But the error displayed is, Windows cannot find '-Djava.endorsed.dirs='. Make sure you typed the name correctly and then try again. Kindly help me to solve it. Raghava -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: manager
It would be helpful to know the version number of Tomcat you are using... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 20 August, 2002 4:13 PM To: Tomcat User List Subject: manager I have not been able to reload webapps with the tomcat manager module. I am able to connect to the manager and it shows the application is running, and appears to accept commands without complaint. But the app does not get reloaded. The Context is marked as reloadable in the server.xml file. Context path=/cinema docBase=cinema debug=0 reloadable=true /Context Is there something else required for reloading to work? Thanks, Glen Jackson [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: servlet-jdbc-SQL server
As long as you run a second query to retrieve the @@IDENTITY value using the same connection handle, then you are guaranteed to receive the correct value. If you would like to verify that you are using the same connection handle, run the profiler application, and watch your app run. driver itself or just my bad undestanding of the insert process? Is it possible to configure the Statement so that the Insert row in the Result Set gets updated when the insert takes place and the 'id' gets generated? There are two ways of doing this. The first one is to use a stored procedure to do the insert/update and have it return the value. The second , and I haven't tried this would be to pass a compound statement insert into ...; select @@IDENTITY. I will give you one final warning about @@IDENTITY. If your statement invokes another statement (trigger, etc) that performs an insert into a table that contains an identity, you will receive the value of the last created identity, which probably is not the one you expect. George Sexton MH Software, Inc. Home of Connect Daily Web Calendar Software http://www.mhsoftware.com/connectdaily.htm -Original Message- From: Matt Brennan [mailto:[EMAIL PROTECTED]] Sent: 19 August, 2002 9:36 AM To: [EMAIL PROTECTED] Subject: servlet-jdbc-SQL server Just taking some stumbling first steps talking to SQL server from a servlet using the Microsoft JDBC driver. Servlet container is tomcat 4.0.4. Quick question if I may: I need to insert a row into an SQL Server table and have the servlet generate a page that includes an automatically generated IDENTITY from the newly created row. How after the insert can I find the generated ID without conducting a subsequent query (which would have no guarantee of returning uniquely the newly inserted record)? // 'con' is a connection to MS-SQLserver with SelectMethod=cursor Statement state = con.createStatement( ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE); // Generate an empty result set ResultSet content = state.executeQuery(sqlQuery); content.moveToInsertRow(); // Column 1 is id int IDENTITY NOT NULL PRIMARY KEY // Column 2 is name VARCHAR(20) content.updateString (2, something); content.insertRow(); // If I then query the inserted row, to find the newly generated // IDENTITY value I get MIN_INT instead of '1' (the default first // identity generated by SQL server if no seed is given) int id = content.getInt (1); Is this some peculiarity of the servlet interface to the driver, to the driver itself or just my bad undestanding of the insert process? Is it possible to configure the Statement so that the Insert row in the Result Set gets updated when the insert takes place and the 'id' gets generated? Please excuse the fact that this query starts to look more like a JDBC query than a tomcat query - not quite sure where the problem lies - tomcat+driver? driver? my understanding (most likely!). I am hoping that other servlet developers have crossed this bridge before. matt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Arabic content
I have done Hebrew before, and it's pretty much the same problem. The major issue is that you have content that is Right to left, and content that is left to right. Since it is a single-byte language, you don't have to use Unicode, you just have to set the code-page to the right value. RTL support is getting better. Last I checked (a few months ago), IE was the only one that supported it fully. Mozilla does support it, but when you have LTR text embedded inside the page (Company names, English Names, Numerals, etc), the rendering engine doesn't handle it. So, you are pretty much going to be limited to IE as a client. If you are using graphics, particularly things like pointy arrows, they will be pointing the wrong way when you set the DIR=RTL attribute for the body. Plan on this being difficult and taking a long time... -Original Message- From: Laurent Féral-Pierssens [mailto:[EMAIL PROTECTED]] Sent: 19 August, 2002 1:26 PM To: [EMAIL PROTECTED] Subject: Arabic content Hi, We have been realizing web applications for the last 2 years using Tomcat. Last week, one of our clients asked us if we could provide a multilingual application that would contain English, French and Arabic content. My questions are vague for now. Did anyone actually produced an application with Arabic content? What should we have to take in consideration in our design and development? What are the risks and traps to avoid while coding such webapp? Is there a problem with displaying such information under Tomcat? storing it in MySQL? Those questions may actually be out of context for Tomcat. But your opinion would be much appreciated. Regards, Laurent -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: How iss Tomcat's performance?
Every application has it's own performance bottlenecks and parameters. You might want to download JMeter and test your specific application. http://jakarta.apache.org/jmeter/index.html Personally, I got more than enough throughput to swamp a T1 on a pretty database intensive application. The server was only a Dual 500 PIII. George Sexton MH Software, Inc. Voice: 303 438 9585 http://www.mhsoftware.com -Original Message- From: Serdar BOZDAG [mailto:[EMAIL PROTECTED]] Sent: 17 August, 2002 4:14 PM To: Tomcat Users List Subject: How iss Tomcat's performance? Hi, I have two web site running on Apache Tomcat 4.0.4 I am quite suspicious of the performance of Tomcat. (I use Tomcat-standalone) At this time the visit count of these sites are not so much (100-200 people each day) I want to know how powerful Tomcat is? Bye the way what would be your choice for a web server for a NT machine. (I need JSP and Servlet support) Thanks in advance, Serdar -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Checking Tomcat's Memory
So, did you get past to your 200 TPS limit goal? -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: 15 August, 2002 10:49 AM To: Tomcat Users List Subject: Checking Tomcat's Memory Greetings! I'm running Tomcat 4.0.4 (w/ JDK 1.4, WinNT/2K) and would like to know how to check Tomcat's memory settings. I've defined an environment variable (in Windows) like so: CATALINA_OPTS=-server -Xms1g -Xmx3g and from reading previous e-mails on this list, this should set the JVM min and max heap size, yet how can I verify this? I'm currently testing a program that takes a considerable amount of memory, and after getting so many thousand requests (and storing a considerable amount of data in memory), the performance becomes horrible (3 to 4 times CPU usage, possibly due to gc looking for more memory?). I suspect the memory settings because when the CPU usage starts to spike, the memory usage tops off and does not appear to go up at all (when it most likely should continue to go up). Suggestions appreciated! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Checking Tomcat's Memory
g doesn't seem to be a valid memory increment. From the sun web site: -Xmsn Specify the initial size, in bytes, of the memory allocation pool. This value must be a multiple of 1024 greater than 1MB. Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes. The default value is 2MB. Examples: -Xms6291456 -Xms6144k -Xms6m -Xmxn Specify the maximum size, in bytes, of the memory allocation pool. This value must a multiple of 1024 greater than 2MB. Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes. The default value is 64MB. Examples: -Xmx83886080 -Xmx81920k -Xmx80m -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: 15 August, 2002 11:44 AM To: 'Tomcat Users List' Subject: RE: Checking Tomcat's Memory Heh, the answer to that is kind of. I can actually do roughly 250 TPS (at least according to a tool I'm using) for about 10-20 thousand requests, but I think this memory problem is giving me trouble after that. I thought it was a connections problem (I was getting connection errors from the tool), then I thought I had screwed something up in my code (and I've tried different versions, nothing seems to affect performance), then I noticed the memory never went above ~154 MB, so now I'm examining memory issues. My problem is still the same, after so many requests (and thus some amount of information stored in memory), Tomcat starts to use up a whole lot of CPU time. I think I hit the memory limit (as I get out of memory errors), so I'm trying to increase the memory Tomcat has, without much luck. I set the environment variable (as I mentioned before), but it does not appear to be working. I stopped and restarted Tomcat after doing this (although I have not restarted Windows) and the results were the same, no change in memory I'm still working on it though, still have a couple more things to try, if anyone has a good suggestions, feel free to chime in! Thanks! -Original Message- From: Sexton, George [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 10:34 AM To: Tomcat Users List Subject: RE: Checking Tomcat's Memory So, did you get past to your 200 TPS limit goal? -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: 15 August, 2002 10:49 AM To: Tomcat Users List Subject: Checking Tomcat's Memory Greetings! I'm running Tomcat 4.0.4 (w/ JDK 1.4, WinNT/2K) and would like to know how to check Tomcat's memory settings. I've defined an environment variable (in Windows) like so: CATALINA_OPTS=-server -Xms1g -Xmx3g and from reading previous e-mails on this list, this should set the JVM min and max heap size, yet how can I verify this? I'm currently testing a program that takes a considerable amount of memory, and after getting so many thousand requests (and storing a considerable amount of data in memory), the performance becomes horrible (3 to 4 times CPU usage, possibly due to gc looking for more memory?). I suspect the memory settings because when the CPU usage starts to spike, the memory usage tops off and does not appear to go up at all (when it most likely should continue to go up). Suggestions appreciated! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Checking Tomcat's Memory
You might also want to try the -Xincgc Enable the incremental garbage collector. The incremental garbage collector, which is off by default, will eliminate occasional garbage-collection pauses during program execution. However, it can lead to a roughly 10% decrease in overall GC performance. switch. The complete docs for the non-standared switches are at: http://java.sun.com/j2se/1.4/docs/tooldocs/windows/java.html -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: 15 August, 2002 10:49 AM To: Tomcat Users List Subject: Checking Tomcat's Memory Greetings! I'm running Tomcat 4.0.4 (w/ JDK 1.4, WinNT/2K) and would like to know how to check Tomcat's memory settings. I've defined an environment variable (in Windows) like so: CATALINA_OPTS=-server -Xms1g -Xmx3g and from reading previous e-mails on this list, this should set the JVM min and max heap size, yet how can I verify this? I'm currently testing a program that takes a considerable amount of memory, and after getting so many thousand requests (and storing a considerable amount of data in memory), the performance becomes horrible (3 to 4 times CPU usage, possibly due to gc looking for more memory?). I suspect the memory settings because when the CPU usage starts to spike, the memory usage tops off and does not appear to go up at all (when it most likely should continue to go up). Suggestions appreciated! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Checking Tomcat's Memory
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ServiceName\Parameter s -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: 15 August, 2002 1:59 PM To: 'Tomcat Users List' Subject: RE: Checking Tomcat's Memory Thanks for the idea, but there isn't a key/directory for HKEY_LOCAL_MACHINE\Service in either WinNT4 or Win2K registry. Not sure what the guy was talking about given the registry path does not exist... -Original Message- From: Hardt, Shannon [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 12:48 PM To: Tomcat Users List Subject: RE: Checking Tomcat's Memory Disclaimer: I am not running Tomcat as a service, so I can't confirm that this works. From the mailing list archive at: http://mikal.org/interests/java/tomcat/archive/view?mesg=57410 quote For Tomcat on NT as a service, you can set the -Xms and -Xmx in the registry. Its HKEY_LOCAL_MACHINE\Service\CurrentControlSet\Name of Service\Configuration. You can add new JVM Option Number X (and make sure to increment the JVM Option Count key) to contain the additional parameters. /quote Hope this helps. Shannon Hardt -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 2:40 PM To: 'Tomcat Users List' Subject: RE: Checking Tomcat's Memory I'm not using jk_nt_service, although maybe I should if the service Tomcat installs cannot be configured. -Original Message- From: Etienne, Ingo (Goetzfried AG) [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 12:30 PM To: 'Tomcat Users List' Subject: RE: Checking Tomcat's Memory Hi, if you are using jk_nt_service.exe try to modify this property in %CATALINA_HOME%\conf\jk\wrapper.properties: wrapper.cmd_line=$(wrapper.javabin) -Xrs -Djava.security.policy==$(wrapper.tomcat_policy) -Dtomcat.home=$(wrapper.tomcat_home) -classpath $(wrapper.class_path) $(wrapper.startup_class) -config $(wrapper.server_xml) start Then you have to restart the service... HTH Ingo -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 15. August 2002 21:08 To: 'Tomcat Users List' Subject: RE: Checking Tomcat's Memory I'm running Tomcat as a service. I've done echo %CATALINA_OPTS% and set just to make sure the variable is showing up. I'll try putting it in catalina.bat. Not sure why defining it as an environment variable does not work... -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 11:57 AM To: Tomcat Users List Subject: RE: Checking Tomcat's Memory Hi, On unix, we put our CATALINA_OPTS settings in $CATALINA_HOME/bin/catalina.sh. Are you running tomcat as a service on NT or from the command line? If you're running from the command line, can you do echo %CATALINA_OPTS% before starting tomcat and verify the values are set correctly? Regardless of the above, I would try putting CATALINA_OPTS in catalina.bat. Can't hurt ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 2:49 PM To: 'Tomcat Users List' Subject: RE: Checking Tomcat's Memory Alright, new environment variable... CATALINA_OPTS=-server -Xms1024m -Xmx3072m Should give me a range of 1-3 gigs. When I restart Tomcat, however, this doesn't appear to affect anything. I'm running a simple memory servlet, as suggested by Yoav Shapira, to simply create a whole bunch of memory, but it still caps out as if it were using the defaults. Couple questions: 1) Must I restart the machine for the CATALINA_OPTS to take effect (or, what is wrong with my environment variable)? In my experience this has not been necessary, only restart the application/process. (Maybe this is a WinNT4 quirk or something similar). 2) Tomcat's configuration files most likely support what I'm trying to do. Is there an appropriate/recommended place I define this envirnoment variable? Quick config rundown: JDK 1.4, WinNT4 (or 2K), Tomcat 4.0.4. Thanks! -Original Message- From: Sexton, George [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 10:51 AM To: Tomcat Users List Subject: RE: Checking Tomcat's Memory g doesn't seem to be a valid memory increment. From the sun web site: -Xmsn Specify the initial size, in bytes, of the memory allocation pool. This value must be a multiple of 1024 greater than 1MB. Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes. The default value is 2MB. Examples: -Xms6291456 -Xms6144k -Xms6m -Xmxn Specify the maximum size, in bytes, of the memory allocation pool. This value must a multiple of 1024 greater than 2MB. Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes. The default value is 64MB. Examples: -Xmx83886080 -Xmx81920k -Xmx80m -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: 15
RE: Checking Tomcat's Memory
I really doubt it. I seem to recall that for Windows 32 bit applications the maximum address space of an application is 2GB. I would try reducing the second parameter to below 2GB and see what happens. I'm sure Sun has some boxes that could do this... -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: 15 August, 2002 3:28 PM To: 'Tomcat Users List' Subject: RE: Checking Tomcat's Memory Ah, there it is! So I would add additional JVM Option Number X with the -server, -Xms, -Xmx parameters and change JVM Option Count to account for this. I've managed to change the VM heap size through editing the catalina.bat script, however I get the following: Error occurred during initialization of VM Could not reserve enough space for object heap when I try to set my parameters at -Xms1024m -Xmx3072m (currently running at 128m and 1024m). Are there any VMs out there that can handle this kind of memory (1+ gigs to start)? Thanks! -Original Message- From: Sexton, George [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 1:20 PM To: Tomcat Users List Subject: RE: Checking Tomcat's Memory HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ServiceName\Parameter s -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Resend: Tomcat Connection Management/Performance
Just out of curiosity, does your test bed do HTTP 1.0 requests, or HTTP 1.1 requests? Does it explicitly set a Connection: close header in the request if you are doing http 1.1 requests? -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: 14 August, 2002 3:41 PM To: 'Tomcat Users List (E-mail)' Subject: Resend: Tomcat Connection Management/Performance Greetings! I've been running some performance tests and have run into a slight problem. Connections are not being properly closed/timed out, and this causes a great deal of processing by Tomcat and incoming connections to be refused (as the connections reach acceptCount in server.xml). I am using a simple tool to do transactions per second (TPS), and for the most part Tomcat and my underlying servlet are performing very well (underlying servlet does not create any connections). However, after running for a while (several thousand requests), I get numerous connection refused errors. When I do a netstat -a on WinNT 4 or Win2K, I can see numerous connections between the test program/box and Tomcat sitting in a TIME_WAIT status. These connections persist even after I stop the test, and even after the connectionTimeout value I specified in server.xml. The numerous connections eventually go away, but not nearly quickly enough. Any advice on how to remedy this problem? Some details: Tomcat 4.0.4, WinNT/2K, JDK 1.3.1 and 1.4 (happens on both). In server.xml: Connector className=org.apache.catalina.connector.http.HttpConnector port=8080 minProcessors=100 maxProcessors=100 enableLookups=false redirectPort=8443 bufferSize=8192 acceptCount=2000 debug=0 connectionTimeout=5000/ If I'm interpreting the docs right, the connectionTimeout should be 5 seconds. Typically, the connections that are the problem don't go away for 30+ seconds, far longer than I can afford. Any suggestions would be great! Jeff -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Resend: Tomcat Connection Management/Performance
This would be worth verifying. I just used telnet to play with the HTTP connector. HTTP 1.0 requests are closed immediately after the data is sent. HTTP 1.1 requests are not closed until 60 seconds have elapsed. The HTTP connector also seems to ignore the Connection: Close directive. You can verify this behavior by using telnet to connect to the specified port and doing some manual requests: GET /your_servlet_URL HTTP/1.1 Host: yourhostname.com and press enter twice. -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: 14 August, 2002 3:57 PM To: 'Tomcat Users List' Subject: RE: Resend: Tomcat Connection Management/Performance I'm fairly certain they are 1.0 requests. -Original Message- From: Sexton, George [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 14, 2002 2:49 PM To: Tomcat Users List Subject: RE: Resend: Tomcat Connection Management/Performance Just out of curiosity, does your test bed do HTTP 1.0 requests, or HTTP 1.1 requests? Does it explicitly set a Connection: close header in the request if you are doing http 1.1 requests? -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: 14 August, 2002 3:41 PM To: 'Tomcat Users List (E-mail)' Subject: Resend: Tomcat Connection Management/Performance Greetings! I've been running some performance tests and have run into a slight problem. Connections are not being properly closed/timed out, and this causes a great deal of processing by Tomcat and incoming connections to be refused (as the connections reach acceptCount in server.xml). I am using a simple tool to do transactions per second (TPS), and for the most part Tomcat and my underlying servlet are performing very well (underlying servlet does not create any connections). However, after running for a while (several thousand requests), I get numerous connection refused errors. When I do a netstat -a on WinNT 4 or Win2K, I can see numerous connections between the test program/box and Tomcat sitting in a TIME_WAIT status. These connections persist even after I stop the test, and even after the connectionTimeout value I specified in server.xml. The numerous connections eventually go away, but not nearly quickly enough. Any advice on how to remedy this problem? Some details: Tomcat 4.0.4, WinNT/2K, JDK 1.3.1 and 1.4 (happens on both). In server.xml: Connector className=org.apache.catalina.connector.http.HttpConnector port=8080 minProcessors=100 maxProcessors=100 enableLookups=false redirectPort=8443 bufferSize=8192 acceptCount=2000 debug=0 connectionTimeout=5000/ If I'm interpreting the docs right, the connectionTimeout should be 5 seconds. Typically, the connections that are the problem don't go away for 30+ seconds, far longer than I can afford. Any suggestions would be great! Jeff -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Resend: Tomcat Connection Management/Performance
My personal theory is that you are making 1.1 requests, and the background thread isn't getting around to closing the connections. You could specify: Connection: close as a header so that tomcat will immediately close the connections. The lower case version does seem to be honored. -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: 14 August, 2002 4:29 PM To: 'Tomcat Users List' Subject: RE: Resend: Tomcat Connection Management/Performance I've verified the behavior. The connection is closed roughly 5 seconds after I request it (my timeout is set to 5 seconds, so that makes sense). Although that makes sense, since we specified a 1.1 request... I tried it using HTTP/1.0 and the connection closed immediately. I don't see any problems with this behavior. -Original Message- From: Sexton, George [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 14, 2002 3:05 PM To: Tomcat Users List Subject: RE: Resend: Tomcat Connection Management/Performance This would be worth verifying. I just used telnet to play with the HTTP connector. HTTP 1.0 requests are closed immediately after the data is sent. HTTP 1.1 requests are not closed until 60 seconds have elapsed. The HTTP connector also seems to ignore the Connection: Close directive. You can verify this behavior by using telnet to connect to the specified port and doing some manual requests: GET /your_servlet_URL HTTP/1.1 Host: yourhostname.com and press enter twice. -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: 14 August, 2002 3:57 PM To: 'Tomcat Users List' Subject: RE: Resend: Tomcat Connection Management/Performance I'm fairly certain they are 1.0 requests. -Original Message- From: Sexton, George [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 14, 2002 2:49 PM To: Tomcat Users List Subject: RE: Resend: Tomcat Connection Management/Performance Just out of curiosity, does your test bed do HTTP 1.0 requests, or HTTP 1.1 requests? Does it explicitly set a Connection: close header in the request if you are doing http 1.1 requests? -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: 14 August, 2002 3:41 PM To: 'Tomcat Users List (E-mail)' Subject: Resend: Tomcat Connection Management/Performance Greetings! I've been running some performance tests and have run into a slight problem. Connections are not being properly closed/timed out, and this causes a great deal of processing by Tomcat and incoming connections to be refused (as the connections reach acceptCount in server.xml). I am using a simple tool to do transactions per second (TPS), and for the most part Tomcat and my underlying servlet are performing very well (underlying servlet does not create any connections). However, after running for a while (several thousand requests), I get numerous connection refused errors. When I do a netstat -a on WinNT 4 or Win2K, I can see numerous connections between the test program/box and Tomcat sitting in a TIME_WAIT status. These connections persist even after I stop the test, and even after the connectionTimeout value I specified in server.xml. The numerous connections eventually go away, but not nearly quickly enough. Any advice on how to remedy this problem? Some details: Tomcat 4.0.4, WinNT/2K, JDK 1.3.1 and 1.4 (happens on both). In server.xml: Connector className=org.apache.catalina.connector.http.HttpConnector port=8080 minProcessors=100 maxProcessors=100 enableLookups=false redirectPort=8443 bufferSize=8192 acceptCount=2000 debug=0 connectionTimeout=5000/ If I'm interpreting the docs right, the connectionTimeout should be 5 seconds. Typically, the connections that are the problem don't go away for 30+ seconds, far longer than I can afford. Any suggestions would be great! Jeff -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Writing files from a class
From the servlet 2.3 Specification: SRV.3.7.1 Temporary Working Directories A temporary storage directory is required for each servlet context. Servlet containers must provide a private temporary directory per servlet context, and make it available via the javax.servlet.context.tempdir context attribute. The objects associated with the attribute must be of type java.io.File. -Original Message- From: Stephen Bacon [mailto:[EMAIL PROTECTED]] Sent: 13 August, 2002 5:20 PM To: [EMAIL PROTECTED] Subject: Writing files from a class Hello, I'm trying to migrate from Tomcat 3 to Catalina (under Linux) and I've hit a snag. Several of my custom classes which I use from JSPs (e.g. ConnectionPool) print messages to debug files which I access via: snip pwDebug = new PrintWriter(new FileOutputStream(m_sDebugFileName, true)); pwDebug.println(m_sdf.format(new java.util.Date()) + + sparMsg); snip Previously, it would create / append to the file in the location that Tomcat was started from (so I had made sure it was always done from a logs directory - a kludge yes, but it worked) Well, Tomcat 4 seems to have added security which is blocking this. I made a modification to pull the debug file name from the web.xml file and made sure the target directory specified (/var/tomcat4/webapps/appname/logs) was owned by the user tomcat4, and had the write flags turned on. No go - still no debug file (it writes an init message so there should be something) This of course is a big problem because my classes have now all become black boxes and I'm unable to debug problems. Is this something to do with security under T4? Is there a proper means by which messages should be logged? Have I configured something wrong? The app seems to be running OK, but I have no way to be sure without the ability to print debug messages. Any ideas? thanks, -Steve -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: ADMINS: Ban a user?
While we are doing this, why don't we put a filter on subject and exclude the following key words: URGENT REQUIRE DESPERATE HELP!! -Original Message- From: Tiago Nodari [mailto:[EMAIL PROTECTED]] Sent: 11 August, 2001 4:55 PM To: Tomcat Users List Subject: Re: ADMINS: Ban a user? Thats a good one, he sends us spam and we are the ones filling his inbox unsubscribing is so easy... that is what I like about yahoogroups you can ban a user from posting, but he still receives the messages, that is the right punishment from spam... we should add you to a few more mailing lists, websites and etc :) tiago At 11:39 PM 8/11/2002 +, you wrote: Thank you, I've been trying to unsubscribe for quite a while now, but the system doesn't seem to be responding. Please ban me, and stop filling my computer with these messages. Kind Regards - Original Message - From: Stuart Stephen To: [EMAIL PROTECTED] Sent: Sunday, August 11, 2002 10:33 PM Subject: ADMINS: Ban a user? Hello Admins? Can we please get [EMAIL PROTECTED] banned from this list please? This is the second time I have recieved his 'advertising questionnaire' that I still have absolutely no intention of looking at. It's completely off topic and of no interest to all the parties subscribed to this TOMCAT USERS list. It's just plain and simple SPAM. Thank you, SS. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]