Worker errors in mod_jk.log
Hi all, We recently upgraded our apache to 1.3.31 and our connector to 1.2.6 (tomcat is 4.0.6, JDK is 1.3.1_04), since then we have had q few entries in the mod_jk.log as follows ; [Wed Sep 15 12:43:44 2004] [jk_ajp_common.c (1462)]: ERROR: Client connection aborted or network problems Prior to the updated mod_jk being installed we had messages along the lines of ; [Tue Sep 14 16:49:47 2004] [jk_ajp13_worker.c (381)]: Error ajp13_process_callback - write failed We have had no users complain of any errors whatsoever... Any ideas on what causes this error ? Cheers all - Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: address is already in use
Hi, If your running on Solaris install a utility called lsof and use the command, lsof -i :8080 This will list all processes using that port. I have had instances where 8080 has got 'stolen' by another process that started up and used that port. Once you've identified the process then you can decide what to do. Cheers - Steve On Mon, 19 Jul 2004, Damien July wrote: Hi, i'm under sun solaris 8 sparc and i had been restart the server. and there is no one that listen on port 80 or 8080 Damien Le lun 19/07/2004 18:56, Aman Raheja a crit : Are you on Windows platform ? Are you restarting it? Check your process list and End Task if you find it there. Also try netstat and see who's using the 8080 port (if that's what you have in server.xml). Aman Raheja http://www.techquotes.com On Mon, 19 Jul 2004 18:45:41 +0200, Damien July [EMAIL PROTECTED] securite.org wrote : Hello, i try to start tomcat 4.1.24 and when i start it , i have the address already in use error message. the is , i don't have some webserver or other thant listen on port 8 or 8080. I don't why i have this error. If someone could help Me. thx. Damien - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ajp13 errors
Hi all, Has anyone encountered errors similar to the following in the catalina_log file ? If so - any ideas as to the cause. Cheers - Steve = He didn't administer a reign of terror, just the occasional light shower. -Terry Pratchett, Sourcery = 2004-01-06 07:33:33 Ajp13Processor[8009][2] process: invoke java.io.IOException: Broken pipe at java.net.SocketOutputStream.socketWrite(Native Method) at java.net.SocketOutputStream.write(SocketOutputStream.java:91) at org.apache.ajp.Ajp13.send(Ajp13.java:525) at org.apache.ajp.RequestHandler.finish(RequestHandler.java:501) at org.apache.ajp.Ajp13.finish(Ajp13.java:395) at org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.java:196) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:464) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551) at java.lang.Thread.run(Thread.java:479) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat relative path in .jsp
Hi, I'm managing a tomcat application server that has an application with a .jsp that has the path hard coded, e.g. ; /opt/local/jakarta/jakarta-tomcat-4.0.6/webapps/els/upload The path is used to upload files to. I'd like to recommend to the developer a change that could be made to make this path relative rather than absolute - any ideas ? Cheers - Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
symbolic links and applications
Hi, I have an application running under tomcat that stores a bunch of files in a directory. In the normal everyday use of the application users login to the app and then can get at these files. However if a user figures out the URL then they can browse directly to the location of the files without logging into the application. BTW the path to the files is a symbolic link in the ./webapps/app/ directory, pointing to the real location of the data. Does anyone have aview whether this is a problem with the application itself or with the tomcat config. Cheers all - Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: symbolic links and applications
Thanks for the info. While the developers are looking at the app I've added a simple url-mapping that redirects the users to a login servlet that keeps them out of that directory. Cheers - Steve On Thu, 6 Nov 2003, Shapira, Yoav wrote: Howdy, It's a problem with your directory structure or your security configuration in web.xml, or both. Perhaps moving the symlink so that it's under WEB-INF is enough for your needs. Yoav Shapira Millennium ChemInformatics -Original Message- From: Steve Harris [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 4:04 PM To: [EMAIL PROTECTED] Subject: symbolic links and applications Hi, I have an application running under tomcat that stores a bunch of files in a directory. In the normal everyday use of the application users login to the app and then can get at these files. However if a user figures out the URL then they can browse directly to the location of the files without logging into the application. BTW the path to the files is a symbolic link in the ./webapps/app/ directory, pointing to the real location of the data. Does anyone have aview whether this is a problem with the application itself or with the tomcat config. Cheers all - Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jetty
Hi all, I'm canvassing opinions - perhaps here is the wrong place to do it but here goes - regarding the jetty apps server. Anyone had any experience of it or compared it to tomcat ? Cheers - Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JDBC/classes12.jar
Hi all, I have a set of applications that work with the Oracle 8.1.6 classes12.jar which is in .../common/lib/classes/. I have one application that needs the classes2.jar from an Oracle 9.2 release. I guess my question is can I drop the 9.2 classes12.jar file into a local location for the application - like .../app/WEB-INF/classes and will the application then look there for the .jar first ? Cheers all - Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JDBC/classes12.jar
Thanks - just done this, re-installed the app and all is well. Thanks a lot. Cheers - Steve On Thu, 23 Oct 2003, Shapira, Yoav wrote: Howdy, Jars files go in lib directories, not classes directories. Yes, you can drop a copy of X.jar in WEB-INF/lib and it will be picked up by the webapp before the copy in common/lib. You can read the Classloader HOW-TO in the tomcat docs for more information. Yoav Shapira Millennium ChemInformatics -Original Message- From: Steve Harris [mailto:[EMAIL PROTECTED] Sent: Thursday, October 23, 2003 1:52 PM To: [EMAIL PROTECTED] Subject: JDBC/classes12.jar Hi all, I have a set of applications that work with the Oracle 8.1.6 classes12.jar which is in .../common/lib/classes/. I have one application that needs the classes2.jar from an Oracle 9.2 release. I guess my question is can I drop the 9.2 classes12.jar file into a local location for the application - like .../app/WEB-INF/classes and will the application then look there for the .jar first ? Cheers all - Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JRun - maybe off topic
Thanks - that's great - explains everything I need to know. Cheers - Steve On Fri, 26 Sep 2003, Kok Wei, Koh wrote: Hi Steve, Yes you can. Say you have machine A and B, with A running Apache (w/ mod_jrun) and B with JRun. You have to first configure JRun to disable the JRun web server (in this case you dont want to use it because it's always better to have Apache in front shielding JRun), and then configure the external webserver which will then open up the jcp (JRun connector port). This is the port on machine B that's opened up for mod_jrun on machine A to connect to. On machine A, you need to have the local.properties file of the JRun server running on machine B, so that mod_jrun is able to look up the jcp to connect to. I'm bad at illustrating this with words ... forgive me if the above is kinda misleading. I've done this kinda setup before and it works. I however, just got experience with JRun 3.0, and not 4.0. Good luck! ;-) and happy trying. Steve Harris wrote: So can jrun be split off and run on a sperate box from apache like I can with tomcat ? Cheers - Steve On Thu, 25 Sep 2003, Shapira, Yoav wrote: Howdy, JRun is a complete J2EE server. It can replace just your tomcat piece or whole apache-tomcat setup. If you really need Apache, it probably because your traffic is high enough that tomcat standalone can't handle it. In that case, you'll still need Apache in front o JRun. Yoav Shapira Millennium ChemInformatics -Original Message- From: Steve Harris [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2003 3:07 PM To: [EMAIL PROTECTED] Subject: JRun - maybe off topic Hi all, I'm trying to get to grips with the architecture for an application we are going to be deploying. I have no problem with the apache/tomcat set-up but this app uses apache and JRun. Am I reading this wrong or does JRun simply take the place of tomcat but runs the apps locally as opposed to being able to be deployed under an apps server like tomcat on some other server somewhere ? Cheers - Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JRun - maybe off topic
Hi all, I'm trying to get to grips with the architecture for an application we are going to be deploying. I have no problem with the apache/tomcat set-up but this app uses apache and JRun. Am I reading this wrong or does JRun simply take the place of tomcat but runs the apps locally as opposed to being able to be deployed under an apps server like tomcat on some other server somewhere ? Cheers - Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JRun - maybe off topic
So can jrun be split off and run on a sperate box from apache like I can with tomcat ? Cheers - Steve On Thu, 25 Sep 2003, Shapira, Yoav wrote: Howdy, JRun is a complete J2EE server. It can replace just your tomcat piece or whole apache-tomcat setup. If you really need Apache, it probably because your traffic is high enough that tomcat standalone can't handle it. In that case, you'll still need Apache in front o JRun. Yoav Shapira Millennium ChemInformatics -Original Message- From: Steve Harris [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2003 3:07 PM To: [EMAIL PROTECTED] Subject: JRun - maybe off topic Hi all, I'm trying to get to grips with the architecture for an application we are going to be deploying. I have no problem with the apache/tomcat set-up but this app uses apache and JRun. Am I reading this wrong or does JRun simply take the place of tomcat but runs the apps locally as opposed to being able to be deployed under an apps server like tomcat on some other server somewhere ? Cheers - Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
NullPointerException
Hi all, I'm getting the following error appearing quite a lot in one of my tomcat log files - does anyone have an opinion whether it's a coding problem or a config problem ? I always get the java.lang.NullPointerException but the rest of the message can vary. java.lang.NullPointerException at org.apache.jsp.EditPosition$jsp._jspService(EditPosition$jsp.java:114) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) Cheers - Steve Harris = Steve Harris Technical Analyst MYRA Systems Corp. Phone : 952-6361 Pager : 413-5043 = - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
monitoring web apps
Hi all, I run a few apps under tomcat 4 and I'm wondering if there are any tools for monitoring what each app is doing - memory usage, cpu utilization etc ? I use the manager for monitoring numbers of users, stopping/starting etc but I'm looking for something that geives me more insight. Cheers - Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: monitoring web apps
Have you looked at using the -Xincgc On Thu, 3 Apr 2003 [EMAIL PROTECTED] wrote: Hi there, I usually track the memory consumption of each request using a debug info which prints the free memory available. Runtime r = Runtime.getRuntime(); long freeMem = r.freeMemory(); System.out.println(free memory: + freeMem); I think packaging this into a memory tracking module for all requests served could be quite informative for a developer. Personally I think it's a fundamental weakness of Java that you don't have a String.getMemoryConsumption() method or something like that. That would make it much easier to track memory consumption. However, the garbage collector seems to run at quite undetermined intervals, because after ten requests in a row the free memory goes up again. Does anybody know how to configure the garbage collector for Tomcat? Cheers, Johannes Shapira, Yoav [EMAIL PROTECTED] 03.04.2003 21:39 Please respond to Tomcat Users List [EMAIL PROTECTED] To Tomcat Users List [EMAIL PROTECTED] cc Subject RE: monitoring web apps Howdy, The JVM itself (so tomcat as well) can't track memory usage or CPU usage per webapp as webapp is not a unit of execution in the JVM. Using a profiler and some load/stress tests, you can profile one application at a time to discern its resource consumption and behavior under stress. But getting this information at runtime, without a profiler, is difficult at best and basically intractable in common setups. Part of the problem is it all comes down to the basic java data types, e.g. String and int. You can see that there are 1 Strings in the heap, and with a profiler you can tell where those Strings were created, but you can't tell how much total memory they take. Yoav Shapira Millennium ChemInformatics -Original Message- From: Steve Harris [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03, 2003 2:35 PM To: [EMAIL PROTECTED] Subject: monitoring web apps Hi all, I run a few apps under tomcat 4 and I'm wondering if there are any tools for monitoring what each app is doing - memory usage, cpu utilization etc ? I use the manager for monitoring numbers of users, stopping/starting etc but I'm looking for something that geives me more insight. Cheers - Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: work dir
I agree with that - I've had one instance where we experienced problems beacuse of not clearing our work directories. It's now part of our release to test and production procedures to clear out the work directories for the webapp being installed. Cheers - Steve On Wed, 2 Apr 2003, John Turner wrote: Agreed, but there are all sorts of posts on the list about JSPs not getting updated after they are changed, and I've seen the behavior myself on occasion, especially with older Tomcat versions. Consider it a failsafe. Since best practice is that Tomcat is rarely restarted, it really isn't going to hurt much, if at all. Maybe I'm too old school, but I feel better being able to guarantee that I am starting from scratch when needed instead of crossing my fingers and hoping someone, somewhere, coded something correctly that, if incorrect, might cause me to spend an hour or two tracking it down. John On Wed, 2 Apr 2003 15:44:44 -0500, Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, Don't rush into this clearing out the work directory thing. Tomcat is responsible for its use of the work directory. It will copy files, e.g. jsp's, there as needed. It will compile them there as needed. It is responsible for noting that you've deployed a new JSP and re-compiling it, overwriting the older version in the work directory. If you clear the work directory every time you stop the server, you will lose the compiled JSPs, resulting in a performance loss next time you start the server, even if the JSPs have not been modified. You should clear the work directory if: - You really need to free up disk space and have tons of contents in the work directory - You frequently discard JSPs altogether, so you don't need their compiled versions at all Otherwise, it's pretty much a don't worry about it aspect of tomcat. Consider it kind of like the windows temporary directory. Yoav Shapira Millennium ChemInformatics -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 02, 2003 3:40 PM To: Tomcat Users List Subject: Re: work dir John Turner wrote: I wouldn't delete work itself...that will probably break things. My scripts just have: rm -rf /usr/local/tomcat/work/* on stop. That way, a startup is clean. Tomcat will rebuild anything it needs to build under work. That will slow things down the first time through, however, as the cache is rebuilt. If you have to stop/start Tomcat often, there's probably something else wrong that should be investigated and resolved. Thanks John. We have only had to restart Tomcat when adding a JAR to $CATALINA_HOME/common/lib and when we created my webapp. I will suggest to my admin that the stop script be modified thusly. Erik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - 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]
Seperate tomcats - one apache
Hi all, I'm having some fun with some applications supplied to us that may be casuing a problem wiht each other, i.e. one application may be causing the whole tocat environment to fail - thus affecting the others. I'm toying with the idea of trying to run a signle apache but with multiple tomcats - one per application. Does anyone have any views on this ? Cheers - Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Out of memory errors
Hi all, I'me sure this one has been done to death but does anyone have any guidelines on the settings of -Xms and -Xmx ($CATLINA_OPTS), or how to derive the optimal setting for these ? Cheers - Steve Harris = Steve Harris Technical Analyst MYRA Systems Corp. Phone : 952-6361 Pager : 413-5043 = -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]