Chirag : SEVERE: Endpoint ServerSocket[addr=/203.192.197.197,port=0,localport=8080] ignored exception: java.net.SocketException: socket closed
I have Internet Connection Initially I start the server and there are no Exception Afterwards I try to surf the Site By typing http://203.197.197.197:8080/ and The Server throws the following Exception There are no other servers running Dec 9, 2004 11:37:44 AM org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket¤ SEVERE: Endpoint ServerSocket[addr=/203.192.197.197,port=0,localport=8080] ignored exception: java.net.SocketException: socket closed java.net.SocketException: socket closed at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384) at java.net.ServerSocket.implAccept(ServerSocket.java:450) at java.net.ServerSocket.accept(ServerSocket.java:421) at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java:60) at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:368) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:548) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) Dec 9, 2004 11:37:45 AM org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket WARNING: Reinitializing ServerSocket Dec 9, 2004 11:37:45 AM org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket SEVERE: Endpoint null ignored exception: java.net.BindException: Address already in use: JVM_Bind:8080 java.net.BindException: Address already in use: JVM_Bind:8080 at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:264) at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:429) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:548) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) Dec 9, 2004 11:37:45 AM org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket WARNING: Restarting endpoint Dec 9, 2004 11:37:45 AM org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket SEVERE: Endpoint null shutdown due to exception: java.net.BindException: Address already in use: JVM_Bind:8080 java.net.BindException: Address already in use: JVM_Bind:8080 at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:264) at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:441) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:548) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) Dec 9, 2004 11:37:45 AM org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run SEVERE: Caught exception (java.lang.ThreadDeath) executing [EMAIL PROTECTED], terminating thread Thanks in advance CSJakharia = Subscribe to bermudaEmail: [input] [input] Browse Archives at groups-beta.google.com __ Do you Yahoo!? Meet the all-new My Yahoo! - Try it today! http://my.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Re: Tomcat mailing list is full of non tomcat topics
What I mean is that since, as somebody reminded, some of the users make confusion about what is tomcat and what is not, why don't we help them ? An idea, seen somewhere else, could be to post on a regular basic a short mailing list faq. Some days ago we had a 20 post about how to convert a char to an intvery legitimate question but very OT. I know that you can't kill a user for writing such questions/answers, but it they were just reminded, from time to time... I think that educating the list users is a duty of the mailing list itself. /roberto -- Roberto Cosenza Infoflex Connect AB, Sweden Tel: +46-(0)8-55576860, Fax: +46-(0)8-55576861 -- Nordic Messaging Technologies is a trademark of Infoflex Connect. Please visit www.nordicmessaging.se for more information about our carrier-grade messaging products. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
xercesImpl.jar xerces.jar TC 5.0.19
Return Receipt Your xercesImpl.jar xerces.jar TC 5.0.19 document : was Erika Schönmoser/CENTRAL/AMComNET/DE received by: at: 09.12.2004 10:07:46 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Chirag : SEVERE: Endpoint ServerSocket[addr=/203.192.197.197,port=0,localport=8080] ignored exception: java.net.SocketException: socket closed
Hey, Your previous instance of tomcat did not shutdown as the error clearly says: java.net.BindException: Address already in use: JVM_Bind:8080 You can check that using netstat command whether the port is already used by any instance of tomcat before starting a new instance. Hope this helps. Arnab -Original Message- From: Chirag [mailto:[EMAIL PROTECTED] Sent: Thursday, December 09, 2004 1:47 PM To: [EMAIL PROTECTED] Subject: Chirag : SEVERE: Endpoint ServerSocket[addr=/203.192.197.197,port=0,localport=8080] ignored exception: java.net.SocketException: socket closed I have Internet Connection Initially I start the server and there are no Exception Afterwards I try to surf the Site By typing http://203.197.197.197:8080/ and The Server throws the following Exception There are no other servers running Dec 9, 2004 11:37:44 AM org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket¤ SEVERE: Endpoint ServerSocket[addr=/203.192.197.197,port=0,localport=8080] ignored exception: java.net.SocketException: socket closed java.net.SocketException: socket closed at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384) at java.net.ServerSocket.implAccept(ServerSocket.java:450) at java.net.ServerSocket.accept(ServerSocket.java:421) at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java:60) at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:368) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:548) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) Dec 9, 2004 11:37:45 AM org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket WARNING: Reinitializing ServerSocket Dec 9, 2004 11:37:45 AM org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket SEVERE: Endpoint null ignored exception: java.net.BindException: Address already in use: JVM_Bind:8080 java.net.BindException: Address already in use: JVM_Bind:8080 at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:264) at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:429) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:548) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) Dec 9, 2004 11:37:45 AM org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket WARNING: Restarting endpoint Dec 9, 2004 11:37:45 AM org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket SEVERE: Endpoint null shutdown due to exception: java.net.BindException: Address already in use: JVM_Bind:8080 java.net.BindException: Address already in use: JVM_Bind:8080 at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:264) at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:441) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:548) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) Dec 9, 2004 11:37:45 AM org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run SEVERE: Caught exception (java.lang.ThreadDeath) executing [EMAIL PROTECTED], terminating thread Thanks in advance CSJakharia = Subscribe to bermudaEmail: [input] [input] Browse Archives at groups-beta.google.com __ Do you Yahoo!? Meet the all-new My Yahoo! - Try it today! http://my.yahoo.com - 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: Chirag : SEVERE: Endpoint ServerSocket[addr=/203.192.197.197,port=0,localport=8080] ignored exception: java.net.SocketException: socket closed
Thanks Software Installed -- jakarta-tomcat-5.5.2 Windows 98SE IE6.0SP1 But I have checked using netstat and no such port is in use Besides this This Exception is not thrown in startup I mean this Exception is thrown When the Tomcat Server is properly Ready with Server Startup Message and then When I try to access the site It throws this Exception There are total 3 Exceptions coming up and somehow Some Exception is not able to release the port and therefore such a Problem.Just a Guess Thanks in advance CSJakharia --- Arnab Chakravarty [EMAIL PROTECTED] wrote: Hey, Your previous instance of tomcat did not shutdown as the error clearly says: java.net.BindException: Address already in use: JVM_Bind:8080 You can check that using netstat command whether the port is already used by any instance of tomcat before starting a new instance. Hope this helps. Arnab -Original Message- From: Chirag [mailto:[EMAIL PROTECTED] Sent: Thursday, December 09, 2004 1:47 PM To: [EMAIL PROTECTED] Subject: Chirag : SEVERE: Endpoint ServerSocket[addr=/203.192.197.197,port=0,localport=8080] ignored exception: java.net.SocketException: socket closed I have Internet Connection Initially I start the server and there are no Exception Afterwards I try to surf the Site By typing http://203.197.197.197:8080/ and The Server throws the following Exception There are no other servers running Dec 9, 2004 11:37:44 AM org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket¤ SEVERE: Endpoint ServerSocket[addr=/203.192.197.197,port=0,localport=8080] ignored exception: java.net.SocketException: socket closed java.net.SocketException: socket closed at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384) at java.net.ServerSocket.implAccept(ServerSocket.java:450) at java.net.ServerSocket.accept(ServerSocket.java:421) at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java:60) at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:368) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:548) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) Dec 9, 2004 11:37:45 AM org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket WARNING: Reinitializing ServerSocket Dec 9, 2004 11:37:45 AM org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket SEVERE: Endpoint null ignored exception: java.net.BindException: Address already in use: JVM_Bind:8080 java.net.BindException: Address already in use: JVM_Bind:8080 at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:264) at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:429) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:548) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) Dec 9, 2004 11:37:45 AM org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket WARNING: Restarting endpoint Dec 9, 2004 11:37:45 AM org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket SEVERE: Endpoint null shutdown due to exception: java.net.BindException: Address already in use: JVM_Bind:8080 java.net.BindException: Address already in use: JVM_Bind:8080 at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:264) at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:441) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:548) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) Dec 9, 2004 11:37:45 AM org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run SEVERE: Caught exception (java.lang.ThreadDeath) executing [EMAIL PROTECTED], terminating thread Thanks in advance CSJakharia = Subscribe to bermudaEmail: [input] [input] Browse Archives at groups-beta.google.com __ Do you Yahoo!? Meet the all-new My Yahoo! - Try it today! http://my.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Subscribe to bermudaEmail: [input] [input] Browse Archives at groups-beta.google.com __ Do you Yahoo!? Yahoo! Mail - Find what you need with new enhanced search. http://info.mail.yahoo.com/mail_250
SV: Multiple domains on single machine
I am using one physical machine to host both apache and tomcat with multiple domain names mapped to the same IP. Here is an extract of my configuration for apache, jk2 and tomcat. The only thing I havent got working 100% is the auto-deployment, but as its not to big a bother to manage by hand, I can live with that for the moment. # Apache httpd.conf NameVirtualHost 127.0.0.1 VirtualHost 127.0.0.1 ServerName domain1.my.network /VirtualHost VirtualHost 127.0.0.1 ServerName domain2.my.network /VirtualHost #Connection Apache-Tomcat with jk2 #workers2.properties [uri:domain1.my.network/*] group=ajp13:localhost:8009 [uri:domain1.my.network/*] group=ajp13:localhost:8009 #Tomcat server.xml Engine name=Apache defaultHost=local.gallriks.ucr.uu.se debug=0 Host name=domain1.my.network appBase=webapps/ Host name=domain2.my.network appBase=webapps/ /Engine #Context.xml for domain1 ContextdisplayName=Domain1 docBase=domain1 path= reloadable=true #Context.xml for domain1 ContextdisplayName=Domain2 docBase=domain2 path= reloadable=true Swanthe Lindgren System developer Uppsala Clinical Reasearch Center -Ursprungligt meddelande- Från: Mayuresh Kshirsagar [mailto:[EMAIL PROTECTED] Skickat: den 9 december 2004 07:56 Till: Tomcat Users List Ämne: Re: Multiple domains on single machine My problem is that I have two domains mapped to the same IP ? Please could you help me in this. - Original Message - From: Mayuresh Kshirsagar [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, December 09, 2004 11:25 AM Subject: Re: Multiple domains on single machine Hi, I have to use APACHE. I have seen one example given in the APACHE documentation: -- NameVirtualHost * VirtualHost * ServerName www.domain.tld DocumentRoot /www/domain /VirtualHost VirtualHost * ServerName www.otherdomain.tld DocumentRoot /www/otherdomain /VirtualHost -- So may be this isnt wrong. When I add an index.html, it is displayed by apache. But the JSP and servlet requests are not being passed to TOMCAT. In my tomcat server.xml I have added the lines: Host Name=support Context path= docBase=E:/support1.cp.net debug=0 reloadable=true / /Host Host Name=admin Context path= docBase=E:/admin.support.cp.net debug=0 reloadable=true / /Host The support one is being executed properly, but the admin one is not being recognised. any solutions ? Mayuresh. - Original Message - From: Benjamin Armintor [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Cc: Mayuresh Kshirsagar [EMAIL PROTECTED] Sent: Wednesday, December 08, 2004 9:40 PM Subject: RE: Multiple domains on single machine You may not even need to use the Apache HTTPD web server, in which case you should just have Tomcat listen on port 80 itself, and refer to the documentation for Hosts on the Tomcat site. If you really need to use the Apache web server, you'd probably get better advice from the HTTPD list for your Apache configuration. So this is a bit off topic, but it's a problem that you have the one named VirtualHost (the default one, *:80), and two configurations for it. You need to have two named VirtualHosts (one for each of your virtual hosts, eh?). Read the Apache HTTPD documentation at http://httpd.apache.org/docs-project/. There's very good documentation on most of the directives. When you get that sorted, you'll need to bring Tomcat up behind Apache. This has been worked out far better in numerous how-tos and messages to this list than I could here. You'll find some helpful links at http://wiki.apache.org/jakarta-tomcat/UsefulLinks. Benjamin J. Armintor Operations Systems Specialist ITS-Systems: Mainframe Group University of Texas - Austin tele: (512) 232-6562 email: [EMAIL PROTECTED] -Original Message- From: Mayuresh Kshirsagar [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 08, 2004 8:07 AM To: Tomcat Users List Subject: Re: Multiple domains on single machine Any pointers on this one please...its urgent - Original Message - From: Mayuresh Kshirsagar To: [EMAIL PROTECTED] Sent: Wednesday, December 08, 2004 3:27 PM Subject: Multiple domains on single machine Hi I have setup a test machine so that it should host two sites 1. http://admin 2. http://support But only one (http://admin) is accessible and the other one is not. Can you give any pointers. I set up virtual hosts as (httpd.conf): NameVirtualHost *:80 VirtualHost *:80 ServerName admin ServerAdmin [EMAIL PROTECTED] DocumentRoot E:/admin.support.cp.net/html/ ErrorDocument 404 E:/admin.support.cp.net/notfound.html ErrorLog logs/admin.support.cp.net-error_log LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\
Re: How to start multiple Tomcats
Robert Lin wrote: We are trying to setup an automated J-Unit test from Ant using Cruise Control where we need multiple copies of tomcat servers running (by supplying different server.xml files). I suppose you want the same Tomcat binaries but different configuration per Tomcat instance. Search for the file RUNNING.txt in the root directory of your Tomcat distribution. They call this setup Multiple Tomcat 5 Instances. Is there something I'm missing, any suggestions? Thanks in advance. What you need to do is to create a new CATALINA_BASE (i.e.: copy the files and directories specified in the file RUNNING.txt and edit the individual server.xml to avoid TCP ports collisions). Then you need to pass the -Dcatalina.base=$CATALINA_BASE argument to the startup command. In case your Tomcats run on Linux, you might succeed with the MITI script (http://miti.sourceforge.net/ Any feedback is welcome, because I am curious whether it is useful at all). Wolfgang - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Re: Tomcat mailing list is full of non tomcat topics
Some days ago we had a 20 post about how to convert a char to an intvery legitimate question but very OT. And marked as such. Quote: sorry for posting this offtopic qns here And the subject: off topic - how do i convert an int to char Doug - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Re: Tomcat mailing list is full of non tomcat topics
On Thu, Dec 09, 2004 at 09:31:41AM +0100, Roberto Cosenza wrote: : What I mean is that since, as somebody reminded, some of the users make : confusion about what is tomcat and what is not, why don't we help them ? : An idea, seen somewhere else, could be to post on a regular basic a : short mailing list faq. Yours isn't a bad idea, it just requires new posters to 1/ check the archives and/or be on the list long enough to see the reminder post; or 2/ actually care about list etiquette. It's like those posters that remind people not to be rude with their cellphones in public places: the offenders hardly recognize themselves, so the posters are a waste. =) -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Re: Tomcat mailing list is full of non tomcat topics
It's like those posters that remind people not to be rude with their cellphones in public places: the offenders hardly recognize themselves, so the posters are a waste. =) -QM That's a risk, but there is people who care but just needs to be informed -- Roberto Cosenza Infoflex Connect AB, Sweden Tel: +46-(0)8-55576860, Fax: +46-(0)8-55576861 -- Nordic Messaging Technologies is a trademark of Infoflex Connect. Please visit www.nordicmessaging.se for more information about our carrier-grade messaging products. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Re: Tomcat mailing list is full of non tomcat topics
On Thu, Dec 09, 2004 at 01:28:37PM +0100, Roberto Cosenza wrote: : That's a risk, but there is people who care but just needs to be informed You're welcome to get started. =) There's nothing to stop you from doing this post. Who knows, perhaps it will have an effect? In my experience (I've seen this done before) it doesn't help, but perhaps this time it'll be different. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: OutOfMemory! Tomcat meets sudden spikes of used memory sometimes.
Hi, I think it is a obvious memory leak because the number of request threads doesn't increase and the app hits just is normal when the inflexion of gc figure appreas. So there is a constant load and constant memory usage for a couple of days, and then under the same load the memory usage spikes up? No other external parameters change, e.g. the database going down? It should been given max memory as possible to avoid JVM increases heap progressively when the server machine only runs tomcat. I think all heavy load app should set two parameter equal. I disagree. Pretty much no performance tuning criterion applies to all heavy load apps. And the practice of setting -Xms = -Xmx is outdated, as recent JDKs are very good at rapidly allocating large chunks of the heap on-demand. However, it's your app and your call, and it sounds like you've given it some thought, which is good. I have 2~3 hundreds JSPs that almost be requested everyday. And they don't change, right? So they don't need to be recompiled by Jasper. Does one JSP has memory leak at a special situation? Or one JSP running at a special situation causes tomcat leak? Can you correlate your access log (assuming it's enabled: if not, enable it) to the increase in memory usage Maybe it will show one particular page being requested when the memory spikes up. Yoav Shapira http://www.yoavshapira.com 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]
RE: load balance standalone tomcat 4
Hi, You can do the load balancing with just BigIP (or a similar product) and Tomcat, without enabling any of the clustering features. Of course, what you get then is ONLY load balancing, i.e. no session affinity or session replication of any kind, which are required for dynamic failover. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Stephen Charles Huey [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 08, 2004 7:19 PM To: Tomcat User Subject: load balance standalone tomcat 4 Is it actually possible to use a load balancing appliance (Big IP) with a couple of web servers running standalone Tomcat 4? Actually, I know it's possible...what I mean is, do I have to do anything special with Tomcat, or can I set each Tomcat up as if it was the only server, and then just put the load balancing appliance in front of them? The reason I'm a bit paranoid is because I've caught glimpses of things like Tomcat clustering, which sounds like a lot more work! Thanks, Stephen - 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]
RE: tomcat run app
Hi, You can look at the logs and fix any problems reported there. Yoav Shapira http://www.yoavshapira.com -Original Message- From: maged.shake [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 08, 2004 6:55 PM To: [EMAIL PROTECTED] Subject: tomcat run app hello , when i run jakarta-tomcat-5.0.19-13 on SuSE linux Enterprise server 9 /etc/init.d/tomcat start is start done but when write url in the browser localhost:8080 is appear blank screen not open index of tomcat home page what can i do - 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]
axis, realms and classloaders
I have successfully made a JAASRealm implementation, loosely based on JAASMemoryLoginModule (a simple jaas test class). My jaas implementation interfaces a .net user database over ssl for authentication purposes, and it works almost flawlessly. My problem occurs when I restart the context, the first login attempt results in this message: [bite] DEBUG [http-8080-Processor25] NasjonaleProverWSLogin.init(58) | using wsUrl: https://www.nasjonaleprover.no/npwsauthenticatetest/studentloginservice.asmx 09.des.2004 13:55:03 org.apache.catalina.loader.WebappClassLoader findResourceInternal INFO: Illegal access: this web application instance has been stopped already. Could not load META-INF/services/org.apache.axis.EngineConfigurationFactory. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact. 09.des.2004 13:55:03 org.apache.catalina.loader.WebappClassLoader findResourceInternal INFO: Illegal access: this web application instance has been stopped already. Could not load org/apache/axis/configuration/EngineConfigurationFactoryServlet.class. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact. 09.des.2004 13:55:03 org.apache.catalina.loader.WebappClassLoader findResourceInternal INFO: Illegal access: this web application instance has been stopped already. Could not load org/apache/axis/configuration/EngineConfigurationFactoryDefault.class. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact. [bite] ERROR [http-8080-Processor25] EngineConfigurationFactoryFinder$1.run(144) | Unable to locate a valid EngineConfigurationFactory [bite] WARN [http-8080-Processor25] BiteLoginModule.login(278) | Problems contacting nasjonaleprover.no [bite] WARN [http-8080-Processor25] BiteLoginModule.login(279) | using local authentication java.lang.NullPointerException at org.apache.axis.client.Service.getEngineConfiguration(Service.java:802) at org.apache.axis.client.Service.getAxisClient(Service.java:104) at org.apache.axis.client.Service.init(Service.java:113) at no.nasjonaleprover.www.NPWSAuthenticate.StudentLoginServiceLocator.init(StudentLoginServiceLocator.java:12) at no.imb.bite.security.NasjonaleProverWSLogin.login(NasjonaleProverWSLogin.java:93) at no.imb.bite.security.BiteLoginModule.login(BiteLoginModule.java:274) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769) at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186) at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680) at javax.security.auth.login.LoginContext.login(LoginContext.java:579) at org.apache.catalina.realm.JAASRealm.authenticate(JAASRealm.java:373) at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:230) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:391) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:731) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) For me it looks like the the axis stuff isn't reloaded properly reloaded, but I really don't who is to blame, axis or tomcat. This is quite serious for us as we have to restart tomcat
RE: Tomcat synchronous shutdown?
Hi, Will tomcat wait until time consuming requests are completed before shutting down? No. Yoav Shapira http://www.yoavshapira.com 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]
RE: Tomcat synchronous shutdown?
Hi, Too long can be defined in a configuration file. It could be, and you're welcome to go ahead and do it. Waste of time. The major problem is that Tomcat can't do a 'restart'. For example with mysql I can do a /etc/init.d/mysql restart and it will block until stop runs... then start. If stop returns an errorcode then it won't attempt to startup MySQL again. The semantic of restart only if you feel like it is useless IMHO. You either want a restart or you don't. If there's an error serious enough to prevent shutdown, you want to look into it anyways. But since your use-case apparently calls for this functionality, go ahead, do it, and have fun ;) I'd probably -1 any proposed patches as useless bloat. Yoav Shapira http;//www.yoavshapira.com 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]
RE: axis, realms and classloaders
Hi, java.lang.NullPointerException at org.apache.axis.client.Service.getEngineConfiguration(Service.java:802) at org.apache.axis.client.Service.getAxisClient(Service.java:104) I think we had a recent discussion on this exact NPE: you might want to search this list's archives (or a comparable mirror like MARC, GMANE, etc.) Yoav Shapira http://www.yoavshapira.com 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]
Session expiry and SessionListener problems with cluster
Hi, I'm just playing with the Tomcat 5.5.4 cluster and encountered 2 oddities: a) If have left expireSessionsOnShutdown=false in the configuration I understand that this will expire the session in the local node but leave it alive in the other cluster nodes. However I found out that the session will expire in the local node on shutdown even if there are no other nodes in the cluster. So the session will be lost after restart. Is this expected behaviour or a bug? b) I implemented a session listerner for attributes. I noticed that the attributeAdded event from DeltaManager always return null as the value of the event where the normal session manager will return the value of the attribute added. Sourcecode: public void attributeAdded(HttpSessionBindingEvent evt) { // == null with DeltaManager, != null otherwise Object value = evt.getValue(); // != null in both cases Object value1 = evt.getSession().getAttribute(evt.getName()); } Is this a bug? Thanks in advance, Christoph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
XXX unknowon type 0 in catalina log of Tomcat 5.0.28
Hi, in our Tomcat 5.0.28 catalina log I've seen the following lines. (see below) The first part are GC logs, that's okay as it was set in the JVM_OPTS, but the XXX unknowon type 0 is quite strange. What's the reason for this. Does anyone know this kind of error message? I've just found out using google that it's coming from some kind of Tomcat connector class. Does it do any harm? What's the reason for this message and how to prevent it? We have an Apache 2.x, mod_jk2, 2x Tomcat 5.0.28 setup on Solaris 2.9. Greetings Michael space 322112K, 100% used space 13696K, 99% used space 13696K, 0% used space 699072K, 0% used space 262144K, 20% used s pace 3776K, 0% used space 332032K, 99% used space 13696K, 0% used space 699072K, 1% used space 262144K, 20% used space 3776K, 100% used space 332032K, 99% used space 13696K, 0% used space 699072K, 1% used space 262144K, 20% used space 308 288K, 0% used space 20608K, 99% used space 20608K, 0% used space 699072K, 2% used space 262144K, 20% usedCaused by: Cau sed by: Caused by: XXX unknowon type 0 XXX unknowon type 0 XXX unknowon type 0 XXX unknowon type 0 XXX unknowon type 0 XXX unknowon type 0 XXX unknowon type 0 XXX unknowon type 0 space 308288K, 100% used space 20608K, 99% used space 20608K, 0% used space 699072K, 2% used space 262144K, 26% used s pace 3584K, 0% used space 325312K, 99% used space 20608K, 0% used space 699072K, 3% used space 262144K, 26% usedXXX unk nowon type 0 XXX unknowon type 0 space 3584K, 100% used space 325312K, 99% used space 20608K, 0% used space 699072K, 3% used space 262144K, 26% used sp ace 295232K, 0% used space 27136K, 98% used space 27136K, 0% used space 699072K, 3% used space 262144K, 26% usedXXX unk nowon type 0 XXX unknowon type 0 XXX unknowon type 0 XXX unknowon type 0 XXX unknowon type 0 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XXX unknowon type 0 in catalina log of Tomcat 5.0.28
Hi, Even thought I don't usually support the connectors, and certainly not mod_jk2 (which is now unsupported in case you missed the announcement), the sheer fascination with this XXX message prompted me to search the source code. The message is from org.apache.tomcat.util.bug.C2BConverter, a utility class used by the connectors. It's in the jakarta-tomcat-connectors CVS module if you're interested. The message is a DEBUG-level message, so it's not a cause for major concern, but curious nonetheless. It's from the convert(MessageBytes) method and occurs when the argument is not null, doesn't contain raw bytes, doesn't contain a string, and doesn't contain characters. Cool, huh? ;) Yoav Shapira http://www.yoavshapira.com -Original Message- From: Michael Echerer [mailto:[EMAIL PROTECTED] Sent: Thursday, December 09, 2004 9:04 AM To: [EMAIL PROTECTED] Subject: XXX unknowon type 0 in catalina log of Tomcat 5.0.28 Hi, in our Tomcat 5.0.28 catalina log I've seen the following lines. (see below) The first part are GC logs, that's okay as it was set in the JVM_OPTS, but the XXX unknowon type 0 is quite strange. What's the reason for this. Does anyone know this kind of error message? I've just found out using google that it's coming from some kind of Tomcat connector class. Does it do any harm? What's the reason for this message and how to prevent it? We have an Apache 2.x, mod_jk2, 2x Tomcat 5.0.28 setup on Solaris 2.9. Greetings Michael space 322112K, 100% used space 13696K, 99% used space 13696K, 0% used space 699072K, 0% used space 262144K, 20% used s pace 3776K, 0% used space 332032K, 99% used space 13696K, 0% used space 699072K, 1% used space 262144K, 20% used space 3776K, 100% used space 332032K, 99% used space 13696K, 0% used space 699072K, 1% used space 262144K, 20% used space 308 288K, 0% used space 20608K, 99% used space 20608K, 0% used space 699072K, 2% used space 262144K, 20% usedCaused by: Cau sed by: Caused by: XXX unknowon type 0 XXX unknowon type 0 XXX unknowon type 0 XXX unknowon type 0 XXX unknowon type 0 XXX unknowon type 0 XXX unknowon type 0 XXX unknowon type 0 space 308288K, 100% used space 20608K, 99% used space 20608K, 0% used space 699072K, 2% used space 262144K, 26% used s pace 3584K, 0% used space 325312K, 99% used space 20608K, 0% used space 699072K, 3% used space 262144K, 26% usedXXX unk nowon type 0 XXX unknowon type 0 space 3584K, 100% used space 325312K, 99% used space 20608K, 0% used space 699072K, 3% used space 262144K, 26% used sp ace 295232K, 0% used space 27136K, 98% used space 27136K, 0% used space 699072K, 3% used space 262144K, 26% usedXXX unk nowon type 0 XXX unknowon type 0 XXX unknowon type 0 XXX unknowon type 0 XXX unknowon type 0 - 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]
RE: [OT] Re: Tomcat mailing list is full of non tomcat topics
And enjoyable reading for me. The fact is no one forces you to read an OT topic. I don't have time for more than one or two lists so my reading is pretty focused, sometimes moreso than I'd like. Sometimes reading an OT topic on Tomcat is a refreshing change from the normal questions. I don't think it's all that hard to just ignore properly marked OT topics if you're not interested. -Original Message- From: Parsons Technical Services To: Tomcat Users List Sent: 12/9/2004 7:16 AM Subject: Re: [OT] Re: Tomcat mailing list is full of non tomcat topics Some days ago we had a 20 post about how to convert a char to an intvery legitimate question but very OT. And marked as such. Quote: sorry for posting this offtopic qns here And the subject: off topic - how do i convert an int to char Doug - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: directory for compiled JSPs
Hi, Clarity mostly. No need to obfuscate something unless absolutely necessary for overriding reasons... It's a mistake to rely on any specific pattern under Tomcat's work directory: it's Tomcat's to manage. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Yu, John [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 08, 2004 4:59 PM To: 'Tomcat Users List' Subject: directory for compiled JSPs Sorry if this has been asked before. I searched archive but couldn't find exactly what I'm looking for. The issue happened is that when using Tomcat5 and deploying web applications with same context root (path), the second web app deployed (and Tomcat restarted) will still have browser pointing to the main JSP of the first application (assuming they have the same starting JSP page). What I noticed then is from Tomcat 4 to Tomcat 5, it seems the working directory structure has changed when JSPs are compiled which may have contributed to this. - in Tomcat 4, I used to get under host something like D_3A_5Ctemp_5Ctest_5Cwebcontext (docBase), and below it the web context if any. - in Tomcat 5, it directly puts web context directory under host. I'm wondering if I could/should bring this old feature of Tomcat 4 back. What are the reason(s) that this is changed (e.g. consistency, JspC, etc.)? Thanks in advance, John The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it. - 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]
Re: Tomcat mailing list is full of non tomcat topics
Hi, Roberto, Understanding a problem before solving it is good policy, I think. If the problem is noise (and I don't thnk so) on the list, then maybe the following would be helpful. These attempts at monitoring the hallways are seemingly always the longest threads. I also don't believe the 30% figure. That does not come close to what I see. I would be surprised if that were not greatly inflated. I would like to see a percentage determination of the percentage of posts which are about the list and about other peoples' questions. I would bet that is fairly large. If we want to shorten lists, I would encourage people to give better information on their questions and to ask people to think about their answers. A quick perusal of the lists shows me that this is the biggest inflator of the list. Even the present question or statement is not going to end up with a thing happening. That is almost guaranteed. If real answers were given to real questions, presumably there would be many two email exchanges. These are not, I think, the norm. Anyway, if noise is a problem, then an analysis would be the way to go. What do you think? This is just my take, and I am probably full of monkey doo. Jack On Wed, 8 Dec 2004 22:44:11 +0100, Roberto Cosenza [EMAIL PROTECTED] wrote: Hi cats worldover. It's been a while that I've reading the posts on this mailing list and I can easily say that about 30% are not pertinent to tomcat but are related to web technology in general. Isn't it time to route this traffic to other mailing lists? Can't the tomcat project host new list for those users lookin for other kind of help? It will sure enhance the quality of the list a lot. /Roberto -- You can't wake a person who is pretending to be asleep. ~Native Proverb~ Each man is good in His sight. It is not necessary for eagles to be crows. ~Hunkesni (Sitting Bull), Hunkpapa Sioux~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Performace differences when running application in Tomcat and JBuilder
I have a problem to do with the performance of a server process I developed when used in Tomcat, in comparison with running it in JBuilder X I have a JAR file that is the server process, that when a method is called from Tomcat takes 35 seconds to run, while the same method called in JBuilder X takes 12.5 seconds Why does Tomcat take over twice as long to run the same code as when run from JBuilder X, and is there a way I can make Tomcat run the code faster? Any help, explanation would be appreciated Details can be found bellow: The complexities of the method are: - using a Oracle JDBC Thin driver, it will connect to a remote Oracle database over a 10Mbit connection and run a single SELECT query that will return 85 records. (The SELECT query is always the same) - each record in the resultset will have a object created that represents it (each record has 129 fields). - the record is copied out of the resultset and into the object by using the meta-data provided with the resultset to identify the correct setter method for the correct field for each record. - the resultset is kept open during the entire action and is passed with its cursor set to each object that then populates itself. - after each object is populated the resultset cursor is moved to the next record. - this is done in a single thread (one object after the other), and stored in an array of objects. - the array of objects are then returned by the method. The first and last line of the called method are logging the current time. To run this method in Tomcat (I have tried versions 4.1.24, 5.0.18, 5.0.28, 5.5.4) I write a web application that I deploy as a .war file in the webapps directory. I copy the JAR file into the shared\lib folder, because it need to be accessed by more than one web application. When a link on the website is clicked it calls the server process. (because I am only looking at the times within the server process any delay caused by the webapp calling the server process is ignored). It takes the same amount of time (to within a few milliseconds) every time the link is clicked, so the compilation of any files cannot be causing the problem. To run this method in JBuilder X I run a main method in a separate project that has the JAR file added into its Included Libraries. (I assume running this way is the same as running it directly to the JVM at the command line) The code is run automatically. Both Tomcat, and JBuilder X are running on the same Windows 2000 machine, and no error or exception is reported during the execution. *** This email has originated from Steria Limited, Registration No: 2706218. Privileged, confidential and/or copyright information may be contained in this email, and is only for the use of the intended addressee. To copy, forward, disclose or otherwise use it in any way if you are not the intended recipient or responsible for delivering to him/her is prohibited. If you receive this email by mistake, please advise the sender immediately, by using the reply facility in your email software. We may monitor the content of emails sent and received via our network for the purposes of ensuring compliance with policies and procedures. This message is subject to and does not create or vary any contractual relationships between Steria Limited and the recipient. Office registered at: Three Cherry Trees Lane, Hemel Hempstead, Hertfordshire, HP2 7AH www.steria.co.uk **
RE: Performace differences when running application in Tomcat and JBuilder
Hi, Benchmarking code running inside an IDE is worse than useless: it's both misleading and a waste of time. IDEs can do a lot of things (pre-caching, pre-creating threads, getting DB connections, etc) that skew results. Test the performance of something as you would run it in production. If you think it should be faster, run it with a profiler (not an IDE) to see where time is spent, and tune those areas as needed. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Alex Pointer [mailto:[EMAIL PROTECTED] Sent: Thursday, December 09, 2004 9:55 AM To: [EMAIL PROTECTED] Subject: Performace differences when running application in Tomcat and JBuilder I have a problem to do with the performance of a server process I developed when used in Tomcat, in comparison with running it in JBuilder X I have a JAR file that is the server process, that when a method is called from Tomcat takes 35 seconds to run, while the same method called in JBuilder X takes 12.5 seconds Why does Tomcat take over twice as long to run the same code as when run from JBuilder X, and is there a way I can make Tomcat run the code faster? Any help, explanation would be appreciated Details can be found bellow: The complexities of the method are: - using a Oracle JDBC Thin driver, it will connect to a remote Oracle database over a 10Mbit connection and run a single SELECT query that will return 85 records. (The SELECT query is always the same) - each record in the resultset will have a object created that represents it (each record has 129 fields). - the record is copied out of the resultset and into the object by using the meta-data provided with the resultset to identify the correct setter method for the correct field for each record. - the resultset is kept open during the entire action and is passed with its cursor set to each object that then populates itself. - after each object is populated the resultset cursor is moved to the next record. - this is done in a single thread (one object after the other), and stored in an array of objects. - the array of objects are then returned by the method. The first and last line of the called method are logging the current time. To run this method in Tomcat (I have tried versions 4.1.24, 5.0.18, 5.0.28, 5.5.4) I write a web application that I deploy as a .war file in the webapps directory. I copy the JAR file into the shared\lib folder, because it need to be accessed by more than one web application. When a link on the website is clicked it calls the server process. (because I am only looking at the times within the server process any delay caused by the webapp calling the server process is ignored). It takes the same amount of time (to within a few milliseconds) every time the link is clicked, so the compilation of any files cannot be causing the problem. To run this method in JBuilder X I run a main method in a separate project that has the JAR file added into its Included Libraries. (I assume running this way is the same as running it directly to the JVM at the command line) The code is run automatically. Both Tomcat, and JBuilder X are running on the same Windows 2000 machine, and no error or exception is reported during the execution. *** This email has originated from Steria Limited, Registration No: 2706218. Privileged, confidential and/or copyright information may be contained in this email, and is only for the use of the intended addressee. To copy, forward, disclose or otherwise use it in any way if you are not the intended recipient or responsible for delivering to him/her is prohibited. If you receive this email by mistake, please advise the sender immediately, by using the reply facility in your email software. We may monitor the content of emails sent and received via our network for the purposes of ensuring compliance with policies and procedures. This message is subject to and does not create or vary any contractual relationships between Steria Limited and the recipient. Office registered at: Three Cherry Trees Lane, Hemel Hempstead, Hertfordshire, HP2 7AH www.steria.co.uk ** 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]
Re: Performace differences when running application in Tomcat and JBuilder
Alex Pointer wrote: I have a problem to do with the performance of a server process I developed when used in Tomcat, in comparison with running it in JBuilder X I have a JAR file that is the server process, that when a method is called from Tomcat takes 35 seconds to run, while the same method called in JBuilder X takes 12.5 seconds Why does Tomcat take over twice as long to run the same code as when run from JBuilder X, and is there a way I can make Tomcat run the code faster? Any help, explanation would be appreciated Details can be found bellow: The complexities of the method are: - using a Oracle JDBC Thin driver, it will connect to a remote Oracle database over a 10Mbit connection and run a single SELECT query that will return 85 records. (The SELECT query is always the same) - each record in the resultset will have a object created that represents it (each record has 129 fields). - the record is copied out of the resultset and into the object by using the meta-data provided with the resultset to identify the correct setter method for the correct field for each record. - the resultset is kept open during the entire action and is passed with its cursor set to each object that then populates itself. - after each object is populated the resultset cursor is moved to the next record. - this is done in a single thread (one object after the other), and stored in an array of objects. - the array of objects are then returned by the method. The first and last line of the called method are logging the current time. To run this method in Tomcat (I have tried versions 4.1.24, 5.0.18, 5.0.28, 5.5.4) I write a web application that I deploy as a .war file in the webapps directory. I copy the JAR file into the shared\lib folder, because it need to be accessed by more than one web application. When a link on the website is clicked it calls the server process. (because I am only looking at the times within the server process any delay caused by the webapp calling the server process is ignored). It takes the same amount of time (to within a few milliseconds) every time the link is clicked, so the compilation of any files cannot be causing the problem. To run this method in JBuilder X I run a main method in a separate project that has the JAR file added into its Included Libraries. (I assume running this way is the same as running it directly to the JVM at the command line) The code is run automatically. Both Tomcat, and JBuilder X are running on the same Windows 2000 machine, and no error or exception is reported during the execution. *** This email has originated from Steria Limited, Registration No: 2706218. Privileged, confidential and/or copyright information may be contained in this email, and is only for the use of the intended addressee. To copy, forward, disclose or otherwise use it in any way if you are not the intended recipient or responsible for delivering to him/her is prohibited. If you receive this email by mistake, please advise the sender immediately, by using the reply facility in your email software. We may monitor the content of emails sent and received via our network for the purposes of ensuring compliance with policies and procedures. This message is subject to and does not create or vary any contractual relationships between Steria Limited and the recipient. Office registered at: Three Cherry Trees Lane, Hemel Hempstead, Hertfordshire, HP2 7AH www.steria.co.uk ** Well, I don't know anything about your method other than it is code. Do you yield in your code? Do you sleep for any amount of time in your code? Threading can influence the time it takes to run code. Also, even though you may not yield in your code, it is still being run in another thread. On the JVM there is nothing else happening in your process. Are you timing from the beginning of the method to the end, or is your timing in different locations throughout the code? You really need to offer as much information as you can possible think of when you start getting into questions like: Why does this code take X amount of time when run in this process vs this process? Give all the details and you might get a better answer, but I can certainly tell you threading in a process will affect the timing of a section of code. Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat mailing list is full of non tomcat topics
The first thing I do when someone starts a thread about list noise is to run that persons name through my gmail search engine and see what their posts are like. I always find this to be revealing. Indeed, I run my own name through and get equally embarrassed about what an ass I can be. If we take an objective look at what expands traffic, both through sins of commission and omission, I think we will get surprising results. I have a suggestion that we expand the areas of non-Tomcat to the following: [OT] -- Off Topic [SA] -- Smart Ass threads with self-congratulatory replies to other peoples' questions which really are not meant to help as much as to deride. [HM] -- Hallway Monitor threads about the list and other people. Until people get used to these, the user should put in the Subject the explanation, e.g. [HM] -- Hallway Monitor -- blah blah. If this were done we could read less than 50% of the posts. Seriously, however, if we all look at our posts and see how helpful they are and how likely they are to contribute or to make worse list noise, I think that we would all be better off. Jack On Wed, 8 Dec 2004 22:44:11 +0100, Roberto Cosenza [EMAIL PROTECTED] wrote: Hi cats worldover. It's been a while that I've reading the posts on this mailing list and I can easily say that about 30% are not pertinent to tomcat but are related to web technology in general. Isn't it time to route this traffic to other mailing lists? Can't the tomcat project host new list for those users lookin for other kind of help? It will sure enhance the quality of the list a lot. /Roberto -- You can't wake a person who is pretending to be asleep. ~Native Proverb~ Each man is good in His sight. It is not necessary for eagles to be crows. ~Hunkesni (Sitting Bull), Hunkpapa Sioux~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with Sessions...is this a Tomcat bug?
Hi, I just discovered a weird thing: I have a Tomcat 4.1.12 running in my machine, which is called ale2000, and I test my app using http://localhost:8080/xx as the url (not the machine name configured in Windows) When some of the html page make a request to the app, using http://ale2000:8080/xx, Tomcat creates other session object, instead of reusing the same session originally created when I call it the first time using http://localhost:8080/xx Is this behavior correct? Doesn't it better to create other session based on different IP addresses, instead of different machine names? TIA, Gabriel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.5 Webapp logging.
Title: Tomcat 5.5 Webapp logging. Hi, We have a 3rd party application which has a nasty habit of chucking out a load of messages to stdout and stderr. Up until tomcat 5 we used a console Logger with swallowOutput turned on to catch all that output so it didnt end up in catalina.out. Obviously in 5.5 this is not possible and Log4J seems to be the way to go. I've tried this but not having much luck. I think it's just that I don't understand the log4j.properties file. Could someone perhaps post a sample that would do roughly what I need and I can tweak it from there. Ta Matt Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with Sessions...is this a Tomcat bug?
Gabriel Belingueres wrote: Hi, I just discovered a weird thing: I have a Tomcat 4.1.12 running in my machine, which is called ale2000, and I test my app using http://localhost:8080/xx as the url (not the machine name configured in Windows) When some of the html page make a request to the app, using http://ale2000:8080/xx, Tomcat creates other session object, instead of reusing the same session originally created when I call it the first time using http://localhost:8080/xx Is this behavior correct? Doesn't it better to create other session based on different IP addresses, instead of different machine names? IMO this is correct. Cookies are attached to server names instead of IPs. Imagine what would happen if you have multiple virtual servers on a machine and session cookies would be per ip (=the same for all servers) instead per server. HTH Christoph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5 Webapp logging.
Hi, The example in http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html is a decent start. Since your goal is to reduce messages being output to the log, at least for this 3rd party application, add a line like log4j.logger.rootPackageOf3rdPartyApp = WARN to the sample file at the above URL, and you should be all set. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Thursday, December 09, 2004 10:14 AM To: Tomcat Users List (E-mail) Subject: Tomcat 5.5 Webapp logging. Hi, We have a 3rd party application which has a nasty habit of chucking out a load of messages to stdout and stderr. Up until tomcat 5 we used a console Logger with swallowOutput turned on to catch all that output so it didnt end up in catalina.out. Obviously in 5.5 this is not possible and Log4J seems to be the way to go. I've tried this but not having much luck. I think it's just that I don't understand the log4j.properties file. Could someone perhaps post a sample that would do roughly what I need and I can tweak it from there. Ta Matt 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]
RE: Problem with Sessions...is this a Tomcat bug?
Hi, Yup, definitely not a Tomcat bug. You might want to sync up your network configuration with your server.xml, but that's your call. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Christoph Kutzinski [mailto:[EMAIL PROTECTED] Sent: Thursday, December 09, 2004 10:17 AM To: Tomcat Users List Subject: Re: Problem with Sessions...is this a Tomcat bug? Gabriel Belingueres wrote: Hi, I just discovered a weird thing: I have a Tomcat 4.1.12 running in my machine, which is called ale2000, and I test my app using http://localhost:8080/xx as the url (not the machine name configured in Windows) When some of the html page make a request to the app, using http://ale2000:8080/xx, Tomcat creates other session object, instead of reusing the same session originally created when I call it the first time using http://localhost:8080/xx Is this behavior correct? Doesn't it better to create other session based on different IP addresses, instead of different machine names? IMO this is correct. Cookies are attached to server names instead of IPs. Imagine what would happen if you have multiple virtual servers on a machine and session cookies would be per ip (=the same for all servers) instead per server. HTH Christoph - 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]
Re: Performace differences when running application in Tomcat and JBuilder
Alex The first thing I would look at is the delta JBuilder if I remember is like JDeveloper and contains it's own embedded appserver and web server Caching turned off on one webserver ( Tomcat )and then turned on with another webserver (JBuilder) would by default cause the former webserver (Tomcat) to force reconnection and possible precompilation of the Jsp's Connector: check out the connectionTimeout parameter is it high enough? Also with the connectors how about the maxKeepAliveRequests if you set this to -1 will allow unlimited how about your host parameters check out the expireSessionsOnShutdown parameter which can be false if you want to keep the sessions alive http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html HTH, Martin- - Original Message - From: Alex Pointer [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, December 09, 2004 9:54 AM Subject: Performace differences when running application in Tomcat and JBuilder I have a problem to do with the performance of a server process I developed when used in Tomcat, in comparison with running it in JBuilder X I have a JAR file that is the server process, that when a method is called from Tomcat takes 35 seconds to run, while the same method called in JBuilder X takes 12.5 seconds Why does Tomcat take over twice as long to run the same code as when run from JBuilder X, and is there a way I can make Tomcat run the code faster? Any help, explanation would be appreciated Details can be found bellow: The complexities of the method are: - using a Oracle JDBC Thin driver, it will connect to a remote Oracle database over a 10Mbit connection and run a single SELECT query that will return 85 records. (The SELECT query is always the same) - each record in the resultset will have a object created that represents it (each record has 129 fields). - the record is copied out of the resultset and into the object by using the meta-data provided with the resultset to identify the correct setter method for the correct field for each record. - the resultset is kept open during the entire action and is passed with its cursor set to each object that then populates itself. - after each object is populated the resultset cursor is moved to the next record. - this is done in a single thread (one object after the other), and stored in an array of objects. - the array of objects are then returned by the method. The first and last line of the called method are logging the current time. To run this method in Tomcat (I have tried versions 4.1.24, 5.0.18, 5.0.28, 5.5.4) I write a web application that I deploy as a .war file in the webapps directory. I copy the JAR file into the shared\lib folder, because it need to be accessed by more than one web application. When a link on the website is clicked it calls the server process. (because I am only looking at the times within the server process any delay caused by the webapp calling the server process is ignored). It takes the same amount of time (to within a few milliseconds) every time the link is clicked, so the compilation of any files cannot be causing the problem. To run this method in JBuilder X I run a main method in a separate project that has the JAR file added into its Included Libraries. (I assume running this way is the same as running it directly to the JVM at the command line) The code is run automatically. Both Tomcat, and JBuilder X are running on the same Windows 2000 machine, and no error or exception is reported during the execution. *** This email has originated from Steria Limited, Registration No: 2706218. Privileged, confidential and/or copyright information may be contained in this email, and is only for the use of the intended addressee. To copy, forward, disclose or otherwise use it in any way if you are not the intended recipient or responsible for delivering to him/her is prohibited. If you receive this email by mistake, please advise the sender immediately, by using the reply facility in your email software. We may monitor the content of emails sent and received via our network for the purposes of ensuring compliance with policies and procedures. This message is subject to and does not create or vary any contractual relationships between Steria Limited and the recipient. Office registered at: Three Cherry Trees Lane, Hemel Hempstead, Hertfordshire, HP2 7AH www.steria.co.uk ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with Sessions...is this a Tomcat bug?
Gabriel Belingueres wrote: Hi, I just discovered a weird thing: I have a Tomcat 4.1.12 running in my machine, which is called ale2000, and I test my app using http://localhost:8080/xx as the url (not the machine name configured in Windows) When some of the html page make a request to the app, using http://ale2000:8080/xx, Tomcat creates other session object, instead of reusing the same session originally created when I call it the first time using http://localhost:8080/xx Is this behavior correct? Doesn't it better to create other session based on different IP addresses, instead of different machine names? TIA, Gabriel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Well think about what you are asking, and think how session work. Sessions either have to work from URL rewriting or from cookies. URL rewriting stinks (personal opinion), and cookies work on domains. So basically you're limited to web technologies. You could use URL rewriting, but I don't like that. Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5 Webapp logging.
That's the one I tried but never got too far. I'll give it a another whirl and it should cut down on the errors from the 3rd party app in the short term and as long as they aren't in catalina.out i'll be happy. Ta Matt -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 09 December 2004 15:18 To: Tomcat Users List Subject: RE: Tomcat 5.5 Webapp logging. Hi, The example in http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html is a decent start. Since your goal is to reduce messages being output to the log, at least for this 3rd party application, add a line like log4j.logger.rootPackageOf3rdPartyApp = WARN to the sample file at the above URL, and you should be all set. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Thursday, December 09, 2004 10:14 AM To: Tomcat Users List (E-mail) Subject: Tomcat 5.5 Webapp logging. Hi, We have a 3rd party application which has a nasty habit of chucking out a load of messages to stdout and stderr. Up until tomcat 5 we used a console Logger with swallowOutput turned on to catch all that output so it didnt end up in catalina.out. Obviously in 5.5 this is not possible and Log4J seems to be the way to go. I've tried this but not having much luck. I think it's just that I don't understand the log4j.properties file. Could someone perhaps post a sample that would do roughly what I need and I can tweak it from there. Ta Matt 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] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5 Webapp logging.
Hi, I can't even get it to create the log file and see no log4j related messages in the catalina.out. Below is my log4j.properties which is in common/classes log4j.rootLogger=debug, R log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.File=/usr/local/jakarta/tomcat-5.5.4/logs/tomcat.log log4j.appender.R.MaxFileSize=100MB log4j.appender.R.MaxBackupIndex=10 log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n log4j.logger.org.apache.catalina=DEBUG, R I have put log4j-1.2.9.jar in common lib. I would have thought that at least the file would be created even if nothing was in it. Any ideas? Ta Matt -Original Message- From: Dale, Matt Sent: 09 December 2004 15:41 To: Tomcat Users List Subject: RE: Tomcat 5.5 Webapp logging. That's the one I tried but never got too far. I'll give it a another whirl and it should cut down on the errors from the 3rd party app in the short term and as long as they aren't in catalina.out i'll be happy. Ta Matt -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 09 December 2004 15:18 To: Tomcat Users List Subject: RE: Tomcat 5.5 Webapp logging. Hi, The example in http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html is a decent start. Since your goal is to reduce messages being output to the log, at least for this 3rd party application, add a line like log4j.logger.rootPackageOf3rdPartyApp = WARN to the sample file at the above URL, and you should be all set. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Thursday, December 09, 2004 10:14 AM To: Tomcat Users List (E-mail) Subject: Tomcat 5.5 Webapp logging. Hi, We have a 3rd party application which has a nasty habit of chucking out a load of messages to stdout and stderr. Up until tomcat 5 we used a console Logger with swallowOutput turned on to catch all that output so it didnt end up in catalina.out. Obviously in 5.5 this is not possible and Log4J seems to be the way to go. I've tried this but not having much luck. I think it's just that I don't understand the log4j.properties file. Could someone perhaps post a sample that would do roughly what I need and I can tweak it from there. Ta Matt 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] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5 Webapp logging.
Hi, Also need commons-logging.jar (not commons-logging-api.jar) in common/lib for this to work. The docs have already been patched in CVS. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Thursday, December 09, 2004 11:00 AM To: Tomcat Users List Subject: RE: Tomcat 5.5 Webapp logging. Hi, I can't even get it to create the log file and see no log4j related messages in the catalina.out. Below is my log4j.properties which is in common/classes log4j.rootLogger=debug, R log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.File=/usr/local/jakarta/tomcat-5.5.4/logs/tomcat.log log4j.appender.R.MaxFileSize=100MB log4j.appender.R.MaxBackupIndex=10 log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n log4j.logger.org.apache.catalina=DEBUG, R I have put log4j-1.2.9.jar in common lib. I would have thought that at least the file would be created even if nothing was in it. Any ideas? Ta Matt -Original Message- From: Dale, Matt Sent: 09 December 2004 15:41 To: Tomcat Users List Subject: RE: Tomcat 5.5 Webapp logging. That's the one I tried but never got too far. I'll give it a another whirl and it should cut down on the errors from the 3rd party app in the short term and as long as they aren't in catalina.out i'll be happy. Ta Matt -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 09 December 2004 15:18 To: Tomcat Users List Subject: RE: Tomcat 5.5 Webapp logging. Hi, The example in http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html is a decent start. Since your goal is to reduce messages being output to the log, at least for this 3rd party application, add a line like log4j.logger.rootPackageOf3rdPartyApp = WARN to the sample file at the above URL, and you should be all set. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Thursday, December 09, 2004 10:14 AM To: Tomcat Users List (E-mail) Subject: Tomcat 5.5 Webapp logging. Hi, We have a 3rd party application which has a nasty habit of chucking out a load of messages to stdout and stderr. Up until tomcat 5 we used a console Logger with swallowOutput turned on to catch all that output so it didnt end up in catalina.out. Obviously in 5.5 this is not possible and Log4J seems to be the way to go. I've tried this but not having much luck. I think it's just that I don't understand the log4j.properties file. Could someone perhaps post a sample that would do roughly what I need and I can tweak it from there. Ta Matt 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] 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]
Re: Tomcat 5.5 Webapp logging.
Maybe the problem is not what the log4j.properties contains but if it is found by the package. Try to put this file in System.getProperties().get(user.dir) [ the package itself is located in WEB-INF/lib ] Viorel Dragomir . .. --- - Original Message - From: Dale, Matt To: Tomcat Users List Sent: Thursday, December 09, 2004 18:00 Subject: RE: Tomcat 5.5 Webapp logging. Hi, I can't even get it to create the log file and see no log4j related messages in the catalina.out. Below is my log4j.properties which is in common/classes log4j.rootLogger=debug, R log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.File=/usr/local/jakarta/tomcat-5.5.4/logs/tomcat.log log4j.appender.R.MaxFileSize=100MB log4j.appender.R.MaxBackupIndex=10 log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n log4j.logger.org.apache.catalina=DEBUG, R I have put log4j-1.2.9.jar in common lib. I would have thought that at least the file would be created even if nothing was in it. Any ideas? Ta Matt -Original Message- From: Dale, Matt Sent: 09 December 2004 15:41 To: Tomcat Users List Subject: RE: Tomcat 5.5 Webapp logging. That's the one I tried but never got too far. I'll give it a another whirl and it should cut down on the errors from the 3rd party app in the short term and as long as they aren't in catalina.out i'll be happy. Ta Matt -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 09 December 2004 15:18 To: Tomcat Users List Subject: RE: Tomcat 5.5 Webapp logging. Hi, The example in http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html is a decent start. Since your goal is to reduce messages being output to the log, at least for this 3rd party application, add a line like log4j.logger.rootPackageOf3rdPartyApp = WARN to the sample file at the above URL, and you should be all set. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Thursday, December 09, 2004 10:14 AM To: Tomcat Users List (E-mail) Subject: Tomcat 5.5 Webapp logging. Hi, We have a 3rd party application which has a nasty habit of chucking out a load of messages to stdout and stderr. Up until tomcat 5 we used a console Logger with swallowOutput turned on to catch all that output so it didnt end up in catalina.out. Obviously in 5.5 this is not possible and Log4J seems to be the way to go. I've tried this but not having much luck. I think it's just that I don't understand the log4j.properties file. Could someone perhaps post a sample that would do roughly what I need and I can tweak it from there. Ta Matt 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]
Problems With Configuring IP
Tomcat Running on Win2000, Tomcat 4.1.3 1. Tomcat is running on port 80 independent of Apache. 2. I have changed the server.xml file as below; !-- Define the default virtual host -- Host name=my_IP_address debug=0 appBase=webapps unpackWARs=true autoDeploy=true 3. When I run netstat -an I still get the results below; Proto Local Address Foreign Address State TCP 0.0.0.0:80 0.0.0.0:0 LISTENING My specific IP address never shows up as listening. Does anyone know how I can get around this? Thanks, Scott
SEVERE: Error filterStart. BUT, it runs fine with Sun's 8 RI.
Hi; I just dl'd 5.0.30 and tried to deploy an app which I have running fine on Sun's 8 server. Tomcat doesn't like my filter setting. Can you please point out the problem (below)? Thanks. -nat filter filter-nameLogtrackFilter/filter-name filter-classez.servlets.filters.LogtrackFilter/filter-class /filter filter-mapping filter-nameLogtrackFilter/filter-name url-pattern/*/url-pattern /filter-mapping - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5 Webapp logging.
Once again you are the man. The solution was probably somewhere in the archives, if so I apologise as I'm having a lazy day and it's easier to ask. I'm actually getting something now and just need to tweak the properties file to get what I want. Thanks again -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 09 December 2004 16:03 To: Tomcat Users List Subject: RE: Tomcat 5.5 Webapp logging. Hi, Also need commons-logging.jar (not commons-logging-api.jar) in common/lib for this to work. The docs have already been patched in CVS. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Thursday, December 09, 2004 11:00 AM To: Tomcat Users List Subject: RE: Tomcat 5.5 Webapp logging. Hi, I can't even get it to create the log file and see no log4j related messages in the catalina.out. Below is my log4j.properties which is in common/classes log4j.rootLogger=debug, R log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.File=/usr/local/jakarta/tomcat-5.5.4/logs/tomcat.log log4j.appender.R.MaxFileSize=100MB log4j.appender.R.MaxBackupIndex=10 log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n log4j.logger.org.apache.catalina=DEBUG, R I have put log4j-1.2.9.jar in common lib. I would have thought that at least the file would be created even if nothing was in it. Any ideas? Ta Matt -Original Message- From: Dale, Matt Sent: 09 December 2004 15:41 To: Tomcat Users List Subject: RE: Tomcat 5.5 Webapp logging. That's the one I tried but never got too far. I'll give it a another whirl and it should cut down on the errors from the 3rd party app in the short term and as long as they aren't in catalina.out i'll be happy. Ta Matt -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 09 December 2004 15:18 To: Tomcat Users List Subject: RE: Tomcat 5.5 Webapp logging. Hi, The example in http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html is a decent start. Since your goal is to reduce messages being output to the log, at least for this 3rd party application, add a line like log4j.logger.rootPackageOf3rdPartyApp = WARN to the sample file at the above URL, and you should be all set. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Thursday, December 09, 2004 10:14 AM To: Tomcat Users List (E-mail) Subject: Tomcat 5.5 Webapp logging. Hi, We have a 3rd party application which has a nasty habit of chucking out a load of messages to stdout and stderr. Up until tomcat 5 we used a console Logger with swallowOutput turned on to catch all that output so it didnt end up in catalina.out. Obviously in 5.5 this is not possible and Log4J seems to be the way to go. I've tried this but not having much luck. I think it's just that I don't understand the log4j.properties file. Could someone perhaps post a sample that would do roughly what I need and I can tweak it from there. Ta Matt 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] 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] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent
RE: SEVERE: Error filterStart. BUT, it runs fine with Sun's 8 RI.
Hi, This web.xml snippet looks fine, but of course it's far from all the required information to properly diagnose and debug this issue. What is the exact and complete message in the logs? Yoav Shapira http://www.yoavshapira.com -Original Message- From: Nat Gross [mailto:[EMAIL PROTECTED] Sent: Thursday, December 09, 2004 11:13 AM To: Tomcat Users List Subject: SEVERE: Error filterStart. BUT, it runs fine with Sun's 8 RI. Hi; I just dl'd 5.0.30 and tried to deploy an app which I have running fine on Sun's 8 server. Tomcat doesn't like my filter setting. Can you please point out the problem (below)? Thanks. -nat filter filter-nameLogtrackFilter/filter-name filter-classez.servlets.filters.LogtrackFilter/filter-class /filter filter-mapping filter-nameLogtrackFilter/filter-name url-pattern/*/url-pattern /filter-mapping - 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]
RE: Problems With Configuring IP
Hi, My specific IP address never shows up as listening. Does anyone know how I can get around this? Assuming you're using the Coyote HTTP/1.1 connector, use its address attribute (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/coyote.html) to indicate which IP address to listen on. The Host name is not related to this. Yoav Shapira http://www.yoavshapira.com 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]
RE: Problems With Configuring IP
No I am not using Apache as a front end, I am using just Tomcat. Is this bad? -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, December 09, 2004 10:18 AM To: Tomcat Users List Subject: RE: Problems With Configuring IP Hi, My specific IP address never shows up as listening. Does anyone know how I can get around this? Assuming you're using the Coyote HTTP/1.1 connector, use its address attribute (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/coyote.html) to indicate which IP address to listen on. The Host name is not related to this. Yoav Shapira http://www.yoavshapira.com 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: Problems With Configuring IP
Hi, I didn't say anything about Apache. And it's fine that you're not using it. (What's not fine is using Tomcat v4.1.3 -- bad and ancient version, and you should upgrade when you get a chance). Yoav Shapira http://www.yoavshapira.com -Original Message- From: Scott Purcell [mailto:[EMAIL PROTECTED] Sent: Thursday, December 09, 2004 11:31 AM To: Tomcat Users List Subject: RE: Problems With Configuring IP No I am not using Apache as a front end, I am using just Tomcat. Is this bad? -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, December 09, 2004 10:18 AM To: Tomcat Users List Subject: RE: Problems With Configuring IP Hi, My specific IP address never shows up as listening. Does anyone know how I can get around this? Assuming you're using the Coyote HTTP/1.1 connector, use its address attribute (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/coyote.html) to indicate which IP address to listen on. The Host name is not related to this. Yoav Shapira http://www.yoavshapira.com 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] 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]
RE: Chirag : SEVERE: Endpoint ServerSocket[addr=/203.192.197.197,port=0,localport=8080] ignored exception: java.net.SocketException: socket closed
From: Chirag [mailto:[EMAIL PROTECTED] Subject: RE: Chirag : SEVERE: Endpoint ServerSocket[addr=/203.192.197.197,port=0,localport=8080] ignored exception: java.net.SocketException: socket closed Software Installed -- jakarta-tomcat-5.5.2 Windows 98SE IE6.0SP1 But I have checked using netstat and no such port is in use We've had problems with Win2K sometimes not really releasing ports after abnormal termination of the program listening on them, and netstat doesn't show them as in use. Required a reboot to clear it up, at least temporarily. The same issue may exist on Win98. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multiple domains on single machine
Thanks all for the pointers. I solved the issue using the following way: TOMCAT_HOME\conf\apps-vhosts.xml: ?xml version=1.0 encoding=ISO-8859-1? Server Host name=admin Context path= docBase=E:/admin.support.cp.net/html debug=0/ /Host Host name=support Context path= docBase=E:/support1.cp.net debug=0/ /Host /Server And Added the following in the httpd.conf: NameVirtualHost 192.168.5.54:80 VirtualHost 192.168.5.54:80 DocumentRoot E:/admin.support.cp.net/html/ ServerName admin #ServerAlias shangai.shangai.persistent.co.in admin ServerAdmin [EMAIL PROTECTED] ErrorDocument 404 E:/admin.support.cp.net/notfound.html ErrorLog logs/admin.support.cp.net-error_log LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\ \%{User-Agent}i\ combined LogFormat %h %l %u %t \%r\ %s %b common LogFormat %{Referer}i - %U referer LogFormat %{User-agent}i agent CustomLog logs/admin.support.cp.net-access_log combined Alias /icons/ E:/admin.support.cp.net/icons/ ScriptAlias /cgi-bin/ E:/admin.support.cp.net/cgi-bin/ JkWorkersFile E:/jakarta-tomcat-3.3.2/conf/jk/workers.properties #JkLogFile D:/Program Files/Apache Group/Apache/logs/mod_jk.log JkLogLevelinfo JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkMount /*.jsp ajp12 JkMount /servlet/* ajp12 Directory E:/admin.support.cp.net/html Options FollowSymLinks Includes DirectoryIndex index.html index.jsp AllowOverride AuthConfig /Directory AddType text/x-server-parsed-html .html /VirtualHost VirtualHost 192.168.5.54:80 DocumentRoot E:/support1.cp.net ServerName support #ServerAlias shangai.shangai.persistent.co.in support ServerAdmin [EMAIL PROTECTED] ErrorLog logs/support-error_log LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\ \%{User-Agent}i\ combined LogFormat %h %l %u %t \%r\ %s %b common LogFormat %{Referer}i - %U referer LogFormat %{User-agent}i agent CustomLog logs/support-access_log combined Alias /pdf/ E:/support1.cp.net/content/pdf/ Alias /images/ E:/support1.cp.net/images/ ScriptAlias /cgi-bin/ E:/support1.cp.net/cgi-bin/ ErrorDocument 404 E:/support1.cp.net/notfound.jsp # Allow Server Side includes (SSI) Directory E:/support1.cp.net Options FollowSymLinks Includes AllowOverride AuthConfig allow from all /Directory AddType text/x-server-parsed-html .html /VirtualHost #AddModule mod_jk.c JkWorkersFile E:/jakarta-tomcat-3.3.2/conf/jk/workers.properties #JkLogFile D:/Program Files/Apache Group/Apache/logs/mod_jk.log JkLogLevelinfo JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkMount /*.jsp ajp12 JkMount /servlet/* ajp12 include E:/jakarta-tomcat-3.3.2/conf/auto/mod_jk.conf Thanks a lot again :-) Mayuresh. - Original Message - From: Swanthe Lindgren [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, December 09, 2004 5:26 PM Subject: SV: Multiple domains on single machine I am using one physical machine to host both apache and tomcat with multiple domain names mapped to the same IP. Here is an extract of my configuration for apache, jk2 and tomcat. The only thing I havent got working 100% is the auto-deployment, but as its not to big a bother to manage by hand, I can live with that for the moment. # Apache httpd.conf NameVirtualHost 127.0.0.1 VirtualHost 127.0.0.1 ServerName domain1.my.network /VirtualHost VirtualHost 127.0.0.1 ServerName domain2.my.network /VirtualHost #Connection Apache-Tomcat with jk2 #workers2.properties [uri:domain1.my.network/*] group=ajp13:localhost:8009 [uri:domain1.my.network/*] group=ajp13:localhost:8009 #Tomcat server.xml Engine name=Apache defaultHost=local.gallriks.ucr.uu.se debug=0 Host name=domain1.my.network appBase=webapps/ Host name=domain2.my.network appBase=webapps/ /Engine #Context.xml for domain1 Context displayName=Domain1 docBase=domain1 path= reloadable=true #Context.xml for domain1 Context displayName=Domain2 docBase=domain2 path= reloadable=true Swanthe Lindgren System developer Uppsala Clinical Reasearch Center -Ursprungligt meddelande- Från: Mayuresh Kshirsagar [mailto:[EMAIL PROTECTED] Skickat: den 9 december 2004 07:56 Till: Tomcat Users List Ämne: Re: Multiple domains on single machine My problem is that I have two domains mapped to the same IP ? Please could you help me in this. - Original Message - From: Mayuresh Kshirsagar [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, December 09, 2004 11:25 AM Subject: Re: Multiple domains on single machine Hi, I have to use APACHE. I have seen one example given in the APACHE documentation: -- NameVirtualHost * VirtualHost * ServerName www.domain.tld DocumentRoot /www/domain /VirtualHost VirtualHost * ServerName www.otherdomain.tld DocumentRoot /www/otherdomain /VirtualHost -- So may be
Re: Tomcat 5.5 Webapp logging.
So, you want System.out stuff to go to the stdout, is that right? Just set up a console appender. Note that if you want to log to Tomcat's specially named localhost and context loggers, you'll need to use a log4j.properties file rather than log4j.xml because the naming pattern violates the XML spec's naming scheme for attributes of type ID. This is only true for Log4j-1.2.x. In Log4j 1.3, we no longer use a DOMConfigurator, but the new JoranConfigurator which doesn't use a DTD and, therefore, doesn't define logger name attributes as of type ID. You can define loggers and appenders in a way where Tomcat's info can go to a separate log file than the stdout console or stdout log file. Jake Quoting Dale, Matt [EMAIL PROTECTED]: Hi, We have a 3rd party application which has a nasty habit of chucking out a load of messages to stdout and stderr. Up until tomcat 5 we used a console Logger with swallowOutput turned on to catch all that output so it didnt end up in catalina.out. Obviously in 5.5 this is not possible and Log4J seems to be the way to go. I've tried this but not having much luck. I think it's just that I don't understand the log4j.properties file. Could someone perhaps post a sample that would do roughly what I need and I can tweak it from there. Ta Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache locks up
Everything is locked up, including the static resources! __ Do you Yahoo!? The all-new My Yahoo! - What will yours do? http://my.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache locks up
Hi, Oh no! Call the Apache police! Seriously though, if you give some details we might be able to help ;) Yoav Shapira http://www.yoavshapira.com -Original Message- From: Dola Woolfe [mailto:[EMAIL PROTECTED] Sent: Thursday, December 09, 2004 12:05 PM To: Tomcat Users List Subject: Re: Apache locks up Everything is locked up, including the static resources! __ Do you Yahoo!? The all-new My Yahoo! - What will yours do? http://my.yahoo.com - 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]
RE: Apache locks up
This was a reply to a previous thread. I guess I should not have deleted the contents from the email. This is not a news group after all... --- Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, Oh no! Call the Apache police! Seriously though, if you give some details we might be able to help ;) Yoav Shapira http://www.yoavshapira.com -Original Message- From: Dola Woolfe [mailto:[EMAIL PROTECTED] Sent: Thursday, December 09, 2004 12:05 PM To: Tomcat Users List Subject: Re: Apache locks up Everything is locked up, including the static resources! __ Do you Yahoo!? The all-new My Yahoo! - What will yours do? http://my.yahoo.com - 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] __ Do you Yahoo!? All your favorites on one personal page Try My Yahoo! http://my.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache locks up
Reboot your windows machine switch to Linux, BSD, or commercial unix.hee hee hee! Seriously though, what's in the error log? -Original Message- From: Dola Woolfe [mailto:[EMAIL PROTECTED] Sent: Thursday, December 09, 2004 11:05 AM To: Tomcat Users List Subject: Re: Apache locks up Everything is locked up, including the static resources! __ Do you Yahoo!? The all-new My Yahoo! - What will yours do? http://my.yahoo.com - 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: Apache locks up
Whoops! Sorry Dola, I accused you of using Apache on windows. I sincerely apoligize! -Original Message- From: Dola Woolfe [mailto:[EMAIL PROTECTED] Sent: Thursday, December 09, 2004 11:12 AM To: Tomcat Users List Subject: RE: Apache locks up This was a reply to a previous thread. I guess I should not have deleted the contents from the email. This is not a news group after all... --- Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, Oh no! Call the Apache police! Seriously though, if you give some details we might be able to help ;) Yoav Shapira http://www.yoavshapira.com -Original Message- From: Dola Woolfe [mailto:[EMAIL PROTECTED] Sent: Thursday, December 09, 2004 12:05 PM To: Tomcat Users List Subject: Re: Apache locks up Everything is locked up, including the static resources! __ Do you Yahoo!? The all-new My Yahoo! - What will yours do? http://my.yahoo.com - 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] __ Do you Yahoo!? All your favorites on one personal page - Try My Yahoo! http://my.yahoo.com - 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: Tomcat 5.5 Webapp logging.
This sounds like kind of what I want but you've confused me. I basically want the System.out and stdout from a particular webapp to go to a specific log file that is rotated and seperate for each webapp. I've now got log4j working with a log4j.properties in common/classes. Everything is now logged to a rotated log file which is hunky dorey from that point of view. My second requirement is that the webapps be seperated into different log files. This, i've had trouble with, i've placed a log4j.properties in WEB-INF/classes but it seems to be ignored (log4j.jar is in the WEB-INF/lib). I could seperate things out in the the main log4j.properties but at least one of the apps is comprised mostly of jsps without a specific package so i'm unsure how to do this. But where you've really confused me is the mention of log4j.xml, this is the first i've seen on it. Could you perhaps tell me where it goes and point me to something that can help me decide what to put in it? In short I could do with a bit more detail if you wouldn't mind. Ta Matt -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: 09 December 2004 16:55 To: Tomcat Users List Subject: Re: Tomcat 5.5 Webapp logging. So, you want System.out stuff to go to the stdout, is that right? Just set up a console appender. Note that if you want to log to Tomcat's specially named localhost and context loggers, you'll need to use a log4j.properties file rather than log4j.xml because the naming pattern violates the XML spec's naming scheme for attributes of type ID. This is only true for Log4j-1.2.x. In Log4j 1.3, we no longer use a DOMConfigurator, but the new JoranConfigurator which doesn't use a DTD and, therefore, doesn't define logger name attributes as of type ID. You can define loggers and appenders in a way where Tomcat's info can go to a separate log file than the stdout console or stdout log file. Jake Quoting Dale, Matt [EMAIL PROTECTED]: Hi, We have a 3rd party application which has a nasty habit of chucking out a load of messages to stdout and stderr. Up until tomcat 5 we used a console Logger with swallowOutput turned on to catch all that output so it didnt end up in catalina.out. Obviously in 5.5 this is not possible and Log4J seems to be the way to go. I've tried this but not having much luck. I think it's just that I don't understand the log4j.properties file. Could someone perhaps post a sample that would do roughly what I need and I can tweak it from there. Ta Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XXX unknowon type 0 in catalina log of Tomcat 5.0.28
Hi, Hi, Even thought I don't usually support the connectors, and certainly not mod_jk2 (which is now unsupported in case you missed the announcement), Read this, but currently everything runs smooth except some not really perfectly 1:1 balanced load, thus we'll migrate back to mod_jk1.2 later. the sheer fascination with this XXX message prompted me to search the source code. The message is from org.apache.tomcat.util.bug.C2BConverter, a utility There's a package named bug in Tomcat... uh... Well, glad to see that you developer guys concentrate all code bugs in a single package. That's really cool, I always tried that myself... ;-) class used by the connectors. It's in the jakarta-tomcat-connectors CVS module if you're interested. The message is a DEBUG-level message, so it's not a cause for major concern, but curious nonetheless. It's from the convert(MessageBytes) method and occurs when the argument is not null, doesn't contain raw bytes, doesn't contain a string, and doesn't contain characters. Cool, huh? ;) Thanks, then I won't mind this log entry any longer. Cheers, Michael Yoav Shapira http://www.yoavshapira.com -Original Message- From: Michael Echerer [mailto:[EMAIL PROTECTED] Sent: Thursday, December 09, 2004 9:04 AM To: [EMAIL PROTECTED] Subject: XXX unknowon type 0 in catalina log of Tomcat 5.0.28 Hi, in our Tomcat 5.0.28 catalina log I've seen the following lines. (see below) The first part are GC logs, that's okay as it was set in the JVM_OPTS, but the XXX unknowon type 0 is quite strange. What's the reason for this. Does anyone know this kind of error message? I've just found out using google that it's coming from some kind of Tomcat connector class. Does it do any harm? What's the reason for this message and how to prevent it? We have an Apache 2.x, mod_jk2, 2x Tomcat 5.0.28 setup on Solaris 2.9. Greetings Michael space 322112K, 100% used space 13696K, 99% used space 13696K, 0% used space 699072K, 0% used space 262144K, 20% used s pace 3776K, 0% used space 332032K, 99% used space 13696K, 0% used space 699072K, 1% used space 262144K, 20% used space 3776K, 100% used space 332032K, 99% used space 13696K, 0% used space 699072K, 1% used space 262144K, 20% used space 308 288K, 0% used space 20608K, 99% used space 20608K, 0% used space 699072K, 2% used space 262144K, 20% usedCaused by: Cau sed by: Caused by: XXX unknowon type 0 XXX unknowon type 0 XXX unknowon type 0 XXX unknowon type 0 XXX unknowon type 0 XXX unknowon type 0 XXX unknowon type 0 XXX unknowon type 0 space 308288K, 100% used space 20608K, 99% used space 20608K, 0% used space 699072K, 2% used space 262144K, 26% used s pace 3584K, 0% used space 325312K, 99% used space 20608K, 0% used space 699072K, 3% used space 262144K, 26% usedXXX unk nowon type 0 XXX unknowon type 0 space 3584K, 100% used space 325312K, 99% used space 20608K, 0% used space 699072K, 3% used space 262144K, 26% used sp ace 295232K, 0% used space 27136K, 98% used space 27136K, 0% used space 699072K, 3% used space 262144K, 26% usedXXX unk nowon type 0 XXX unknowon type 0 XXX unknowon type 0 XXX unknowon type 0 XXX unknowon type 0 - 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]
Enabling ROOT context for Tomcat5.0.28/Apache 2.0.x
I have successfully install both tomcat and apache. And they work find together. What I would like to do now is re-enable the ROOT context so I can view the ROOT applications. I have tried the code below (thinking that is all I would have to do), but it didn't work. Context path= docBase=ROOT debug=0 reloadable=true crossContext=true/ Could anyone take a shot at this . All I would like to do is be able to see the ROOT default applications in my URL (ex:http://localhost/). Thank you . -- Dwayne A. Ghant Application Developer Temple University 215.204. [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
5.0.28 errors on startup of web apps
Hello, I'm using Tomcat 5.0.28, Java 1.4.2_02 and Red Hat linux 9. I was able to start Tomcat ok but when deployed a web application and added the following to the conf/server.xml Connector className=org.globus.tomcat.coyote.net.HTTPSConnector port=8443 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 debug=0 scheme=https/ and Valve className=org.globus.tomcat.coyote.valves.HTTPSValve/ I started to get ClassNotFoundException about classes in the catalina.jar. So I modified the CLASSPATH in the bin/catalina.sh file as follows: CLASSPATH=$CLASSPATH:$CATALINA_HOME/bin/bootstrap.jar:$CATALINA_HOME/bin/commons-logging-api.jar:$CATALINA_HOME/common/lib/commons-digester.jar:$CATALINA_HOME/common/lib/commons-collections-3.0.jar:$CATALINA_HOME/common/lib/naming-common.jar:$CATALINA_HOME/common/lib/commons-beanutils.jar:$CATALINA_HOME/common/lib/commons-modeler.jar:$CATALINA_HOME/common/lib/servlet.jar:$CATALINA_HOME/common/lib/cog-jglobus.jar:$CATALINA_HOME/common/lib/naming-resources.jar:$CATALINA_HOME/common/lib/puretls.jar:$CATALINA_HOME/common/lib/cryptix32.jar:$CATALINA_HOME/common/lib/cryptix-asn1.jar:$CATALINA_HOME/server/lib/catalina.jar:$CATALINA_HOME/server/lib/tomcat-util.jar:$CATALINA_HOME/server/lib/tomcat-coyote.jar:$CATALINA_HOME/server/lib/cog-tomcat.jar:$CATALINA_HOME/server/lib/tomcat-http11.jar:$CATALINA_HOME/server/lib/tomcat-jk2.jar I then started to get the following error: [main] ERROR digester.Digester - End event threw exception java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:252) .. ... [main] ERROR startup.HostConfig - Error deploying configuration descriptor admin.xml java.io.IOException: java.lang.NullPointerException at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:494) at org.apache.catalina.core.StandardHost.install(StandardHost.java:863) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:483) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427) I have seen similar error message on the web regarding deploying web applications but I cant find a concrete answer on its cause. I get the error message for every web application deployed. Any ideas greatly apprecipated. Many thanks, Julie. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: 5.0.28 errors on startup of web apps
Hi, Before I even start dissecting this, where did you get the documentation that led you down this path? I don't see any mention of HTTPSValve on the Tomcat (or FWIW, the entire apache.org) site. A general Google search shows only one place with this mention: the Globus site. I see that you're using their connector, so I assume they must be supplying the valve as well. If that's the case, why are you asking here and not bugging them instead? ;) I started to get ClassNotFoundException about classes in the catalina.jar. So I modified the CLASSPATH in the bin/catalina.sh file as follows: That CLASSPATH is not very relevant. Please consult the Tomcat Classloader How-To document (http://jakarta.apache.org/tomcat/tomcat-5.0-doc/class-loader-howto.html ) to see what classloading repositories are applicable to you. You would probably need to place the Globus jars in common/lib, and NOT modify the bootstrap classpath. [main] ERROR startup.HostConfig - Error deploying configuration descriptor admin.xml java.io.IOException: java.lang.NullPointerException Did you modify admin.xml or the server/webapps/admin directory? Any ideas greatly apprecipated. Go yell at someone at Globus, it's their fault. Yoav Shapira http://www.yoavshapira.com 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]
Re: 5.0.28 errors on startup of web apps
On Thursday 09 December 2004 17:38, Shapira, Yoav wrote: Hi, Before I even start dissecting this, where did you get the documentation that led you down this path? I don't see any mention of HTTPSValve on the Tomcat (or FWIW, the entire apache.org) site. A general Google search shows only one place with this mention: the Globus site. I see that you're using their connector, so I assume they must be supplying the valve as well. If that's the case, why are you asking here and not bugging them instead? ;) That is all correct and I am bugging them also - I saw a common problem on different web apps on various mailing lists and was wondering was there s'thing specific to Tomcat which I was not configuring properly. I started to get ClassNotFoundException about classes in the catalina.jar. So I modified the CLASSPATH in the bin/catalina.sh file as follows: That CLASSPATH is not very relevant. Please consult the Tomcat Classloader How-To document (http://jakarta.apache.org/tomcat/tomcat-5.0-doc/class-loader-howto.html ) to see what classloading repositories are applicable to you. You would probably need to place the Globus jars in common/lib, and NOT modify the bootstrap classpath. [main] ERROR startup.HostConfig - Error deploying configuration descriptor admin.xml java.io.IOException: java.lang.NullPointerException Did you modify admin.xml or the server/webapps/admin directory? No I didnt make any modifications to the installed Tomcat. Any ideas greatly apprecipated. Go yell at someone at Globus, it's their fault. Yoav Shapira http://www.yoavshapira.com 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: Tomcat 5.5 Webapp logging.
Quoting Dale, Matt [EMAIL PROTECTED]: This sounds like kind of what I want but you've confused me. I basically want the System.out and stdout from a particular webapp to go to a specific log file that is rotated and seperate for each webapp. I'm not sure how you would separate System.out from any individual app. If you run Tomcat-5.5.x as a service (at least on WinXP, which is what I use currently), it will automatically write to a stdout.log file *and* give you daily log rotation for free. I've now got log4j working with a log4j.properties in common/classes. Everything is now logged to a rotated log file which is hunky dorey from that point of view. My second requirement is that the webapps be seperated into different log files. This, i've had trouble with, i've placed a log4j.properties in WEB-INF/classes but it seems to be ignored (log4j.jar is in the WEB-INF/lib). If you mean System.out output, then there isn't much you can do with the standard console appender. It will all go to one place. However, your normal log4j defined loggers should be working according to your properties file. log4j.properties in WEB-INF/classes with log4j.jar in WEB-INF/lib should create a separate logging environment from the server for each webapp you do this with. I could seperate things out in the the main log4j.properties but at least one of the apps is comprised mostly of jsps without a specific package so i'm unsure how to do this. You can still name your JSP's according to some psuedo-package naming scheme. Loggers aren't tied to your packages. This is just the standard way of naming loggers to make naming predictable and easy to confgure. Name them whatever you want. But where you've really confused me is the mention of log4j.xml, this is the first i've seen on it. Could you perhaps tell me where it goes and point me to something that can help me decide what to put in it? So, you didn't realize that Log4j could be configured using an XML config file? Well, it can. However, the DTD for Log4j prevents using Tomcat's host and context logger names for the reasons I stated (which, again, is not longer an isssue in Log4j-1.3 because the DTD is not used anymore). For instance, the following is illegal because the name attribute is defined by the DTD as of type ID and the [ and ] are illegal characters... logger name=org.apache.catalina.core.ContainerBase.[Catalina].[localhost] /logger If you are unaware of this naming scheme, see the Tomcat-5.5.x docs. The alternative is to use a properties file and use... log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost] In short I could do with a bit more detail if you wouldn't mind. Hopefully that cleared things up a little bit. Jake Ta Matt -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: 09 December 2004 16:55 To: Tomcat Users List Subject: Re: Tomcat 5.5 Webapp logging. So, you want System.out stuff to go to the stdout, is that right? Just set up a console appender. Note that if you want to log to Tomcat's specially named localhost and context loggers, you'll need to use a log4j.properties file rather than log4j.xml because the naming pattern violates the XML spec's naming scheme for attributes of type ID. This is only true for Log4j-1.2.x. In Log4j 1.3, we no longer use a DOMConfigurator, but the new JoranConfigurator which doesn't use a DTD and, therefore, doesn't define logger name attributes as of type ID. You can define loggers and appenders in a way where Tomcat's info can go to a separate log file than the stdout console or stdout log file. Jake Quoting Dale, Matt [EMAIL PROTECTED]: Hi, We have a 3rd party application which has a nasty habit of chucking out a load of messages to stdout and stderr. Up until tomcat 5 we used a console Logger with swallowOutput turned on to catch all that output so it didnt end up in catalina.out. Obviously in 5.5 this is not possible and Log4J seems to be the way to go. I've tried this but not having much luck. I think it's just that I don't understand the log4j.properties file. Could someone perhaps post a sample that would do roughly what I need and I can tweak it from there. Ta Matt - 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: Apache locks up
Sounds suspiciously as if you are assign ports that already being used try netstat -a Tomcat usually likes port 8080 to listen on unless configured differently in server.xml Apache and any other webserver listen on 80 as a default Also be sure to check the latest jakarta-service (spelling?).log in $CATALINA_HOME/logs as well as stderr.log and stdout.log Martin- - Original Message - From: Wick, Daniel [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, December 09, 2004 12:16 PM Subject: RE: Apache locks up Whoops! Sorry Dola, I accused you of using Apache on windows. I sincerely apoligize! -Original Message- From: Dola Woolfe [mailto:[EMAIL PROTECTED] Sent: Thursday, December 09, 2004 11:12 AM To: Tomcat Users List Subject: RE: Apache locks up This was a reply to a previous thread. I guess I should not have deleted the contents from the email. This is not a news group after all... --- Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, Oh no! Call the Apache police! Seriously though, if you give some details we might be able to help ;) Yoav Shapira http://www.yoavshapira.com -Original Message- From: Dola Woolfe [mailto:[EMAIL PROTECTED] Sent: Thursday, December 09, 2004 12:05 PM To: Tomcat Users List Subject: Re: Apache locks up Everything is locked up, including the static resources! __ Do you Yahoo!? The all-new My Yahoo! - What will yours do? http://my.yahoo.com - 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] __ Do you Yahoo!? All your favorites on one personal page - Try My Yahoo! http://my.yahoo.com - 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]
Re: SEVERE: Error filterStart. BUT, it runs fine with Sun's 8 RI.
Thanks for the quick comeback. The following are the relevant lines: --- 09/12/2004 10:50:00 org.apache.catalina.core.StandardContext start SEVERE: Error filterStart 09/12/2004 10:50:00 org.apache.catalina.core.StandardContext start SEVERE: Context startup failed due to previous errors -- (Please excuse my not including your quoted reply, Yoav. For some reason my isp's outgoing server refuses to send quoted text.) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Chirag : SEVERE: Endpoint ServerSocket[addr=/203.192.197.197,port=0,localport=8080] ignored exception: java.net.SocketException: socket closed
If there was a port Problem then that Problem should had occured in startup but instead of that it is starting normally and it throws Exception After the Server is Accessed According to me there is SocketException due to some reason and after that it again tries to gain the socket but cannot do so and so such Exception is raised as it has not been properly released Thanks in advance Chirag --- Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Chirag [mailto:[EMAIL PROTECTED] Subject: RE: Chirag : SEVERE: Endpoint ServerSocket[addr=/203.192.197.197,port=0,localport=8080] ignored exception: java.net.SocketException: socket closed Software Installed -- jakarta-tomcat-5.5.2 Windows 98SE IE6.0SP1 But I have checked using netstat and no such port is in use We've had problems with Win2K sometimes not really releasing ports after abnormal termination of the program listening on them, and netstat doesn't show them as in use. Required a reboot to clear it up, at least temporarily. The same issue may exist on Win98. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. = Subscribe to bermudaEmail: [input] [input] Browse Archives at groups-beta.google.com __ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Chirag : SEVERE: Endpoint ServerSocket[addr=/203.192.197.197,port=0,localport=8080] ignored exception: java.net.SocketException: socket closed
Now I got the Exact Problem I asked one of my friend to surf the site from his place and found out that the site is working well enough the only problem is that it can't be surfed from the Server.I mean the Machine where the Server is running So how to do that I mean I should be able to host the site as well as surf the site from the server Thanks in advance CSJakharia --- Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Chirag [mailto:[EMAIL PROTECTED] Subject: RE: Chirag : SEVERE: Endpoint ServerSocket[addr=/203.192.197.197,port=0,localport=8080] ignored exception: java.net.SocketException: socket closed Software Installed -- jakarta-tomcat-5.5.2 Windows 98SE IE6.0SP1 But I have checked using netstat and no such port is in use We've had problems with Win2K sometimes not really releasing ports after abnormal termination of the program listening on them, and netstat doesn't show them as in use. Required a reboot to clear it up, at least temporarily. The same issue may exist on Win98. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. = Subscribe to bermudaEmail: [input] [input] Browse Archives at groups-beta.google.com __ Do you Yahoo!? Send holiday email and support a worthy cause. Do good. http://celebrity.mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT]Internal Netbeans Tomcat server
I am trying to test my webapp under the tomcat server in netbeans. after logging on the the app I am recieving 404 errors. It seems to find the uinitial pages but wont redirect to any other pages. Any help? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
prevent multiple form posts using only servlets
Is there a way to prevent multiple form posts from the same page/user/session using only servlets? I have a page where users can upload files, but I do not want them to keep smashing the upload button if their files are large, and the user becomes impatient. thank you. __ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: deleteOnExit() doesn't work in Tomcat on temp files
Noel J. Bergman wrote: Instead, use the PhantomReference-based code that I contributed to Jakarta Commons. The main reason why people (misguidedly) use deleteOnExit() is to be able to generate temporary files that you can return URLs for (e.g. you generate a .PDF report, and generate an HTTP redirect to /foobar.pdf). And of course, have those files be cleaned up later. You want to wait for a little while before deleting the file (5 or 10 minutes, or some other configurable timeout), to allow the user to do things like reload the URL. Also, some browsers (Mozilla in particular) reload the URL when you Print a page. I'm not sure a reference-based cleanup would be appropriate, unless it's possible to somehow force a reference to be kept for such a period, and then magically cleaned up. This is why I suggested an explicit cleanup thread where you could register the files you have generated, and have it clean them up after a few minutes. I know it's bad to start up threads like this, but in the absence of anything better (that I know of), ... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: prevent multiple form posts using only servlets
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Elihu Smails wrote: | Is there a way to prevent multiple form posts from the | same page/user/session using only servlets? I have a | page where users can upload files, but I do not want | them to keep smashing the upload button if their files | are large, and the user becomes impatient. ~ When they click the button, store a cookie, or set a value on the page, saying that the button was pressed, then ignore anything with the same filenames until this value is cleared. Or, just save each filename that is uploaded as a hidden variable in the form, and ignore duplicate names. - -- Love is mutual self-giving that ends in self-recovery. Fulton Sheen James Black[EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBuKR98psvJTl+fosRAu3HAJ41haEp/Oq52WfPGyn20OJq53ENiQCg2SNQ 7eBN42uboeFtE8lrbgxOYCk= =odrz -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: prevent multiple form posts using only servlets
Yes there is. But the problem is not really related to a servlet just to web architecture. A strategy is to put an object token in the session when you show the form and remove it when the user clicks upload. You will then deny uploads if you don't have the token in the session . Spring forms have support for it (www.springframework.com). /Roberto Elihu Smails wrote: Is there a way to prevent multiple form posts from the same page/user/session using only servlets? I have a page where users can upload files, but I do not want them to keep smashing the upload button if their files are large, and the user becomes impatient. thank you. __ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Roberto Cosenza Infoflex Connect AB, Sweden Tel: +46-(0)8-55576860, Fax: +46-(0)8-55576861 -- Nordic Messaging Technologies is a trademark of Infoflex Connect. Please visit www.nordicmessaging.se for more information about our carrier-grade messaging products. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT]Internal Netbeans Tomcat server
java.lang.IllegalStateException: Cannot forward after response has been committed is the error message in the console. Why do I get this error in the internal server and not in the external tomcat server? On December 9, 2004 11:57 am, Chris Cherrett wrote: I am trying to test my webapp under the tomcat server in netbeans. after logging on the the app I am recieving 404 errors. It seems to find the uinitial pages but wont redirect to any other pages. Any help? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Chris Cherrett Tracking Solutions International 1-877-TSIWARE www.tsiware.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.0.28 won't start??????????????
Runing tomcat 5.0.27 I get this error list below for the first time. I think is because I have j2ee.jar is in the classpath which was causing java.lang.reflect.InvocationTargetException. Pleaese advise??? [user]# ./catalina.sh run . . . Dec 9, 2004 2:57:16 PM org.apache.commons.digester.Digester endElement SEVERE: End event threw exception java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216) at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256) at org.apache.commons.digester.Rule.end(Rule.java:276) at org.apache.commons.digester.Digester.endElement(Digester.java:1058) at org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.java:76) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.Catalina.load(Catalina.java:489) at org.apache.catalina.startup.Catalina.load(Catalina.java:528) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:250) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:424) Caused by: java.lang.IllegalArgumentException: addChild: Child name '' is not unique at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:817) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595) ... 27 more Catalina.start using conf/server.xml: java.lang.IllegalArgumentException: addChild: Child name '' is not unique java.lang.IllegalArgumentException: addChild: Child name '' is not unique at org.apache.commons.digester.Digester.createSAXException(Digester.java:2540) at org.apache.commons.digester.Digester.createSAXException(Digester.java:2566) at org.apache.commons.digester.Digester.endElement(Digester.java:1061) at org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.java:76) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.Catalina.load(Catalina.java:489) at org.apache.catalina.startup.Catalina.load(Catalina.java:528) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:250) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:424) Dec 9, 2004 2:57:16 PM org.apache.commons.digester.Digester endElement SEVERE: End
RE: Tomcat 5.0.28 won't start??????????????
Hi, Runing tomcat 5.0.27 I get this error list below for the first time. I think is because I have j2ee.jar is in the classpath which was causing java.lang.reflect.InvocationTargetException. Pleaese advise??? Advice: don't have j2ee.jar anywhere in your Tomcat installation. Advice: search the archives of this list before posting, on the off chance someone has run into your issue before and someone else bothered to explain the problem and solution. Yoav Shapira http://www.yoavshapira.com 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]
Re: [OT]Internal Netbeans Tomcat server
Stuff Im assuming you have Proxy Forward and Reverse already configured for your webapp within Apache HTTP Server HTTPD.conf? Once you have reached $TOMCAT_HOME/YourWebapp you will need to relatively path to your classes either by $TOMCAT_HOME/YourWebApp/WEB-INF/classes/PackageName/*.class or jar everything up and place in $TOMCAT_HOME/YourWebApp/WEB-INF/lib/NameOfWebAppClassesJar.jar Hope that helps, Martin- - Original Message - From: Chris Cherrett [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, December 09, 2004 1:57 PM Subject: [OT]Internal Netbeans Tomcat server I am trying to test my webapp under the tomcat server in netbeans. after logging on the the app I am recieving 404 errors. It seems to find the uinitial pages but wont redirect to any other pages. Any help? - 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: Apache locks up
Dola Woolfe wrote: Everything is locked up, including the static resources! __ Do you Yahoo!? The all-new My Yahoo! - What will yours do? http://my.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Ok, I guess what I meant to ask is. Do you use a context for Tomcat, and is everyting from that context served through tomcat, or is the static content served through Apache? Can you access some static image file from some where other than the context path of your webapplication? Other than that you'll need to put up different logs. One the apache log file, two tomcat, and three the connectors log file. Those might help. Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Limit size of tomcat_out.log?
Is it possible, and if so how, to limit the size of the tomcat_out.og file? I have a development box that is running out of space sometimes because the log grows rather large when a lot of users are testing. Thanks all! Frank W. Zammetti Chief Software Architect Omnytex Technologies http://www.omnytex.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT]Internal Netbeans Tomcat server
I am not using HTTPD.conf. I am only using tomcat. On December 9, 2004 12:45 pm, Laconia Data Systems wrote: Stuff Im assuming you have Proxy Forward and Reverse already configured for your webapp within Apache HTTP Server HTTPD.conf? Once you have reached $TOMCAT_HOME/YourWebapp you will need to relatively path to your classes either by $TOMCAT_HOME/YourWebApp/WEB-INF/classes/PackageName/*.class or jar everything up and place in $TOMCAT_HOME/YourWebApp/WEB-INF/lib/NameOfWebAppClassesJar.jar Hope that helps, Martin- - Original Message - From: Chris Cherrett [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, December 09, 2004 1:57 PM Subject: [OT]Internal Netbeans Tomcat server I am trying to test my webapp under the tomcat server in netbeans. after logging on the the app I am recieving 404 errors. It seems to find the uinitial pages but wont redirect to any other pages. Any help? - 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] -- Chris Cherrett Tracking Solutions International 1-877-TSIWARE www.tsiware.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Limit size of tomcat_out.log?
Hi, Is it possible, and if so how, to limit the size of the tomcat_out.og file? I have a development box that is running out of space sometimes because the log grows rather large when a lot of users are testing. Thanks all! What Tomcat versions are you using? Tomcat's Loggers (version 5.0 and earlier) automatically rotate, so you can have a script in place to delete old ones. For Tomcat 5.5 and later, you configure the logging via log4j or JDK 1.4 logging, which both support various options to control/trim file size. It's not good logging practice to write everything to standard output. Ig that's what's happening, and that's why it's ending up in tomcat.log, you should change the apps at some points to use a proper logging framework like log4j. Finally, there are tools like cronolog and logrotate which can rotate/trim this file for you: they're free and easy to use, just Google for them. The other approach is holistic: either get more disk space (it's cheap), configure the logging differently when there are many users, or both. So there's a bunch of stuff you can and should do. But Tomcat by itself doesn't provide much of it for you. These are routine sysadmin tasks. Yoav Shapira http://www.yoavshapira.com 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]
Re: Tomcat 5.0.28 won't start??????????????
On the exception reported -- run your server.xml file and all your context.xml files through an xml validator. It'll point out where you have some invalid xml syntax. --David Shapira, Yoav wrote: Hi, Runing tomcat 5.0.27 I get this error list below for the first time. I think is because I have j2ee.jar is in the classpath which was causing java.lang.reflect.InvocationTargetException. Pleaese advise??? Advice: don't have j2ee.jar anywhere in your Tomcat installation. Advice: search the archives of this list before posting, on the off chance someone has run into your issue before and someone else bothered to explain the problem and solution. Yoav Shapira http://www.yoavshapira.com 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: prevent multiple form posts using only servlets
Try this one: http://java.sun.com/developer/EJTechTips/2003/tt0114.html look on Preventing Repeated Operations Mark. --- Roberto Cosenza [EMAIL PROTECTED] wrote: Yes there is. But the problem is not really related to a servlet just to web architecture. A strategy is to put an object token in the session when you show the form and remove it when the user clicks upload. You will then deny uploads if you don't have the token in the session . Spring forms have support for it (www.springframework.com). /Roberto Elihu Smails wrote: Is there a way to prevent multiple form posts from the same page/user/session using only servlets? I have a page where users can upload files, but I do not want them to keep smashing the upload button if their files are large, and the user becomes impatient. thank you. __ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Roberto Cosenza Infoflex Connect AB, Sweden Tel: +46-(0)8-55576860, Fax: +46-(0)8-55576861 -- Nordic Messaging Technologies is a trademark of Infoflex Connect. Please visit www.nordicmessaging.se for more information about our carrier-grade messaging products. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Dress up your holiday email, Hollywood style. Learn more. http://celebrity.mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache locks up
--- Wade Chandler [EMAIL PROTECTED] wrote: Dola Woolfe wrote: Everything is locked up, including the static resources! __ Do you Yahoo!? The all-new My Yahoo! - What will yours do? http://my.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Ok, I guess what I meant to ask is. Do you use a context for Tomcat, and is everyting from that context served through tomcat, or is the static content served through Apache? Can you access some static image file from some where other than the context path of your webapplication? Other than that you'll need to put up different logs. One the apache log file, two tomcat, and three the connectors log file. Those might help. Wade You know, I will follow an earlier advice and switch from 1.2.* and 3.3.* to 2.0.* and 5.5.*; Why be several years behind? Dola __ Do you Yahoo!? Send holiday email and support a worthy cause. Do good. http://celebrity.mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.0.28 won't start??????????????
Absolutly correct that is exactly what I did and everything is fine. It seems that I have written one of my context tags the wronge way in attemps to get the ROOT jakarta applications working under Apache. What I would like to do now is re-enable the ROOT context so I can view the ROOT applications in apache. I have tried the code below (thinking that is all I would have to do), but it didn't work. Context path= docBase=ROOT debug=0 reloadable=true crossContext=true/ Could anyone take a shot at this . All I would like to do is be able to see the ROOT default applications in tomcat work in my URL (ex:http://localhost/). Thank you . David Smith wrote: On the exception reported -- run your server.xml file and all your context.xml files through an xml validator. It'll point out where you have some invalid xml syntax. --David Shapira, Yoav wrote: Hi, Runing tomcat 5.0.27 I get this error list below for the first time. I think is because I have j2ee.jar is in the classpath which was causing java.lang.reflect.InvocationTargetException. Pleaese advise??? Advice: don't have j2ee.jar anywhere in your Tomcat installation. Advice: search the archives of this list before posting, on the off chance someone has run into your issue before and someone else bothered to explain the problem and solution. Yoav Shapira http://www.yoavshapira.com 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] -- Dwayne A. Ghant Application Developer Temple University 215.204. [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Limit size of tomcat_out.log?
I am on Tomcat 5.0.29. Can you point me at some documentation on configuring it? I'm not sure about the rotating... is that a configurable option? (I assume so). The log I just looked as was almost 2GB, and I would assume it would rotate before them. But, I have done quite a bit of configuring, so it's more than possible I changed the setting. I know it's not good practice in general, but in our test environment that's the way some other folks here want it. All error and debug info goes to our own application-level logs, but a lot of info-type messages show up in the Tomcat logs but NOT the app logs, and that's the way they want it (I think just to make it a little easier to look at the app log without going through all the unimportant messages). Ah, no sense arguing what's good to do or not, this is the way it is in this case. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Thu, December 9, 2004 3:03 pm, Shapira, Yoav said: Hi, Is it possible, and if so how, to limit the size of the tomcat_out.og file? I have a development box that is running out of space sometimes because the log grows rather large when a lot of users are testing. Thanks all! What Tomcat versions are you using? Tomcat's Loggers (version 5.0 and earlier) automatically rotate, so you can have a script in place to delete old ones. For Tomcat 5.5 and later, you configure the logging via log4j or JDK 1.4 logging, which both support various options to control/trim file size. It's not good logging practice to write everything to standard output. Ig that's what's happening, and that's why it's ending up in tomcat.log, you should change the apps at some points to use a proper logging framework like log4j. Finally, there are tools like cronolog and logrotate which can rotate/trim this file for you: they're free and easy to use, just Google for them. The other approach is holistic: either get more disk space (it's cheap), configure the logging differently when there are many users, or both. So there's a bunch of stuff you can and should do. But Tomcat by itself doesn't provide much of it for you. These are routine sysadmin tasks. Yoav Shapira http://www.yoavshapira.com 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: Limit size of tomcat_out.log?
Hi, I am on Tomcat 5.0.29. Can you point me at some documentation on configuring it? As I said, not much of this is done in Tomcat. It's not Tomcat's job to worry about you running out of disk space. The only Tomcat option relevant to this discussion is swallowOutput, which is a Context attribute that redirects System.out calls for that webapp from catalina.out to the Logger configured for that Context, if any. The Logger is automatically rotated nightly, but its size is not limited in any way. You can plug in a logger that has a size ceiling if you want: Loggers are easy to implement. Or you can use a 3rd party program as I mentioned, like cronolog or logrotate, to do this for you. Yoav Shapira http://www.yoavshapira.com 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]
Re: Tomcat synchronous shutdown?
Shapira, Yoav wrote: The semantic of restart only if you feel like it is useless IMHO. You either want a restart or you don't. If there's an error serious enough to prevent shutdown, you want to look into it anyways. But since your use-case apparently calls for this functionality, go ahead, do it, and have fun ;) I'd probably -1 any proposed patches as useless bloat. It isn't like this functionaliy is new. Most major daemons in existance implement this. Apache, MySQL, Postgres, Sendmail, I could go on. In fact Tomcat is the odd man out on this guy. Every single daemon on my Unix box implements this version of semantic control except Tomcat. The major issue is for scripts. Even most major Linux distribution tools like the sysv init tools under KDE assume that scripts can do shutdown correctly or return an error code. Kevin -- Use Rojo (RSS/Atom aggregator). Visit http://rojo.com. Ask me for an invite! Also see irc.freenode.net #rojo if you want to chat. Rojo is Hiring! - http://www.rojonetworks.com/JobsAtRojo.html If you're interested in RSS, Weblogs, Social Networking, etc... then you should work for Rojo! If you recommend someone and we hire them you'll get a free iPod! Kevin A. Burton, Location - San Francisco, CA AIM/YIM - sfburtonator, Web - http://peerfear.org/ GPG fingerprint: 5FB2 F3E2 760E 70A8 6174 D393 E84D 8D04 99F1 4412 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache locks up
Dola Woolfe wrote: --- Wade Chandler [EMAIL PROTECTED] wrote: Dola Woolfe wrote: Everything is locked up, including the static resources! __ Do you Yahoo!? The all-new My Yahoo! - What will yours do? http://my.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Ok, I guess what I meant to ask is. Do you use a context for Tomcat, and is everyting from that context served through tomcat, or is the static content served through Apache? Can you access some static image file from some where other than the context path of your webapplication? Other than that you'll need to put up different logs. One the apache log file, two tomcat, and three the connectors log file. Those might help. Wade You know, I will follow an earlier advice and switch from 1.2.* and 3.3.* to 2.0.* and 5.5.*; Why be several years behind? Dola __ Do you Yahoo!? Send holiday email and support a worthy cause. Do good. http://celebrity.mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] I use 5.0.28 right now. I'm waiting on 5.5.x to stabilize a bit more myself. It's just a precaution that I take. I haven't had any issues out of 5.0.28, and I actually use it for my web server and java server. I have gotten rid of httpd (Apache) all together. I do use Apache2 sometimes as a forward proxy. I can hide multiple machines behind one domain that way. I am happy with Tomcat as my web server. Plus my configuration is much simpler. Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Running out of Memory
My tomcat process runs out of memory (unless rebooted) approximately every three days. Vital Statistics: -Our consultant-designed website consists of approximately 5000 JSP pages. None of these pages pull from a backend, the java was merely used to provide a persistent border. -Max heap size is set to 1850 megs, (which from what I understand is the max on a 32-bit system). -The server has 4 gigs of total RAM. -JDK 1.4 -Tomcat 5.0.18 -Redhat 7.3 I've done some searches on Google and in the archives and I can't seem to find any way to turn up the frequency of the garbage collection. Everything seems to indicate that once a JSP is loaded into memory it stays there. Is there some way to increase the max heap size? Or some way to increase the frequency of garbage collection? Or any other way to slow down the memory usage? Ross Richey Webmaster, www.aruplab.com The information transmitted by this e-mail and any included attachments are from ARUP Laboratories and are intended only for the recipient. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws, or protected health information and is intended only for the use of the recipient. Unauthorized forwarding, printing, copying, distributing, or use of such information is strictly prohibited and may be unlawful. If you are not the intended recipient, please promptly delete this e-mail and notify the sender of the delivery error or you may call ARUP Laboratories Compliance Hot Line in Salt Lake City, Utah USA at (+1 (800) 522-2787 ext. 2100
Re: Tomcat Running out of Memory
There was a memory leak in j2sdk1.4.1xxx, I believe. Is that the one you're using? On Thu, 2004-12-09 at 15:45, Richey, Ross wrote: My tomcat process runs out of memory (unless rebooted) approximately every three days. Vital Statistics: -Our consultant-designed website consists of approximately 5000 JSP pages. None of these pages pull from a backend, the java was merely used to provide a persistent border. -Max heap size is set to 1850 megs, (which from what I understand is the max on a 32-bit system). -The server has 4 gigs of total RAM. -JDK 1.4 -Tomcat 5.0.18 -Redhat 7.3 I've done some searches on Google and in the archives and I can't seem to find any way to turn up the frequency of the garbage collection. Everything seems to indicate that once a JSP is loaded into memory it stays there. Is there some way to increase the max heap size? Or some way to increase the frequency of garbage collection? Or any other way to slow down the memory usage? Ross Richey Webmaster, www.aruplab.com The information transmitted by this e-mail and any included attachments are from ARUP Laboratories and are intended only for the recipient. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws, or protected health information and is intended only for the use of the recipient. Unauthorized forwarding, printing, copying, distributing, or use of such information is strictly prohibited and may be unlawful. If you are not the intended recipient, please promptly delete this e-mail and notify the sender of the delivery error or you may call ARUP Laboratories Compliance Hot Line in Salt Lake City, Utah USA at (+1 (800) 522-2787 ext. 2100 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
trustStore details in server.xml
Hi , Is there a way we could mention this in server.xml? Similar to the keyStore. thanks, -sunitha - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Classloading issue
Hi, I'm using Struts plugin, however, I think the issue mostly related to Tomcat ClassLoading. I have a class (in a jar) under WEB-INF/lib, which loads properties from a file located under WEB-INF/classes. ClassLoader cl = getClass().getClassLoader(); InputStream stream = cl.getResourceAsStream(plugin.properties); I have tried different versions of path, with the results I couldn't totally explain: 1. plugin.properties: not work 2. WEB-INF/classes/plugin.properties: work 3. /WEB-INF/classes/plugin.properties: not work 4. /plugin.properties: not work Also, I'm using Tomcat 4.0.6 (NB3.5.1). Does anyone have an answer for this? Is / bad? It may apply to Tomcat 5 as well, isn't it? Regards, John The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Enabling ROOT context for Tomcat5.0.28/Apache 2.0.x
Does anyone want to take shot at that question. I know it's simple but for some reason I seem to be having some kind of problem!!! PLEASE HELP. Dwayne Ghant wrote: I have successfully install both tomcat and apache. And they work find together. What I would like to do now is re-enable the ROOT context so I can view the ROOT applications. I have tried the code below (thinking that is all I would have to do), but it didn't work. Context path= docBase=ROOT debug=0 reloadable=true crossContext=true/ Could anyone take a shot at this . All I would like to do is be able to see the ROOT default applications in my URL (ex:http://localhost/). Thank you . -- Dwayne A. Ghant Application Developer Temple University 215.204. [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Running out of Memory
Sorry should have been more specific, the JDK is: 1.4.2 (the install bin is: j2sdk-1_4_2-nb-3_5_1-bin-linux.bin) I seem to remember looking into that, and deciding that couldn't be it, because it was a different version. Ross -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Thursday, December 09, 2004 1:48 PM To: Tomcat Users List Subject: Re: Tomcat Running out of Memory There was a memory leak in j2sdk1.4.1xxx, I believe. Is that the one you're using? On Thu, 2004-12-09 at 15:45, Richey, Ross wrote: My tomcat process runs out of memory (unless rebooted) approximately every three days. Vital Statistics: -Our consultant-designed website consists of approximately 5000 JSP pages. None of these pages pull from a backend, the java was merely used to provide a persistent border. -Max heap size is set to 1850 megs, (which from what I understand is the max on a 32-bit system). -The server has 4 gigs of total RAM. -JDK 1.4 -Tomcat 5.0.18 -Redhat 7.3 I've done some searches on Google and in the archives and I can't seem to find any way to turn up the frequency of the garbage collection. Everything seems to indicate that once a JSP is loaded into memory it stays there. Is there some way to increase the max heap size? Or some way to increase the frequency of garbage collection? Or any other way to slow down the memory usage? Ross Richey Webmaster, www.aruplab.com The information transmitted by this e-mail and any included attachments are from ARUP Laboratories and are intended only for the recipient. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws, or protected health information and is intended only for the use of the recipient. Unauthorized forwarding, printing, copying, distributing, or use of such information is strictly prohibited and may be unlawful. If you are not the intended recipient, please promptly delete this e-mail and notify the sender of the delivery error or you may call ARUP Laboratories Compliance Hot Line in Salt Lake City, Utah USA at (+1 (800) 522-2787 ext. 2100 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] The information transmitted by this e-mail and any included attachments are from ARUP Laboratories and are intended only for the recipient. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws, or protected health information and is intended only for the use of the recipient. Unauthorized forwarding, printing, copying, distributing, or use of such information is strictly prohibited and may be unlawful. If you are not the intended recipient, please promptly delete this e-mail and notify the sender of the delivery error or you may call ARUP Laboratories Compliance Hot Line in Salt Lake City, Utah USA at (+1 (800) 522-2787 ext. 2100
RE: Enabling ROOT context for Tomcat5.0.28/Apache 2.0.x
From: Dwayne Ghant [mailto:[EMAIL PROTECTED] Subject: Re: Enabling ROOT context for Tomcat5.0.28/Apache 2.0.x Does anyone want to take shot at that question. I know it's simple but for some reason I seem to be having some kind of problem!!! Two things: 1) Make sure you don't have more than one context with path=. 2) Copy the context element from the Tomcat distribution rather than fiddling with a much-edited one. 3) [This must be the Spanish Inquisition sketch...] Try bypassing Apache by accesing the default app on port 8080. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Classloading issue
Yu, John wrote: Hi, I'm using Struts plugin, however, I think the issue mostly related to Tomcat ClassLoading. I have a class (in a jar) under WEB-INF/lib, which loads properties from a file located under WEB-INF/classes. ClassLoader cl = getClass().getClassLoader(); InputStream stream = cl.getResourceAsStream(plugin.properties); I have tried different versions of path, with the results I couldn't totally explain: 1. plugin.properties: not work 2. WEB-INF/classes/plugin.properties: work 3. /WEB-INF/classes/plugin.properties: not work 4. /plugin.properties: not work Also, I'm using Tomcat 4.0.6 (NB3.5.1). Does anyone have an answer for this? Is / bad? It may apply to Tomcat 5 as well, isn't it? Regards, John The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Me and another gentleman had this conversation just a little while ago...well one similar to it. I always have a package which I put my files in. I never have a problem doing that. I always use Class.class.getResourceAsStream and getResource (should be roughly the same...usage is a little different). I have a web app that has multiple installations on the same server and they always find their files. But, I always use a package so I can access the files that way. I quit using an empty package for everything when I started having goofy problems with different app servers. I run into the same thing on Oracle 9iAS once. /plugin.properties and plugin.properties Are very different when you are using ClassLoader.getResource(AsStream), and the same thing applies to Class.getResource(AsString)...see java docs. Again, I never have a problem, and I load property files from under the classes directory all the time. Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to detect expired session vs. no session? (Solved)
By default: 1. getSession(true)!=null 2. getSession(false)!=null But if a JSP page contains the tag %@ page session=false %, then: 1. getSession(true)!=null 2. getSession(false)==null In the last of these 4 cases, do you mean that the implicit JSP session object returns null, or that request.getSession(false) returns null? I could understand the first behaviour but would be surprised by the second. The problem is that it implies that JSPs execute the code in a way that is different than if it were included in a servlet, and given that JSPs are servlets, this seems puzzling. Again, perhaps I'm not fully understanding either your case, or the details of how sessions work. For my case, sessions will only be created for logged-in users what is it about your case that makes this happen? I would have thought that session creation is independent of whether you are authenticating or not. Or is there a way to config TC to not create sessions by default, and only create them when the user successfully authenticates? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Re: prevent multiple form posts using only servlets
Use javascript to disable or remove the button. [EMAIL PROTECTED] 12-09-2004 12:12 Is there a way to prevent multiple form posts from the same page/user/session using only servlets? I have a page where users can upload files, but I do not want them to keep smashing the upload button if their files are large, and the user becomes impatient. thank you. __ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail - 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: Classloading issue
Wade, Thanks for sharing. When you say using package, you mean for resource files? One specific thing you didn't mention is where the calling class is located. In my case, it's a class from within a jar in lib. That really made the difference. My conclusion so far is similar: when using /, CL could make a big difference. Better stay away from it? Regards, John -Original Message- From: Wade Chandler [mailto:[EMAIL PROTECTED] Sent: Thursday, December 09, 2004 4:31 PM To: Tomcat Users List Subject: Re: Classloading issue Yu, John wrote: Hi, I'm using Struts plugin, however, I think the issue mostly related to Tomcat ClassLoading. I have a class (in a jar) under WEB-INF/lib, which loads properties from a file located under WEB-INF/classes. ClassLoader cl = getClass().getClassLoader(); InputStream stream = cl.getResourceAsStream(plugin.properties); I have tried different versions of path, with the results I couldn't totally explain: 1. plugin.properties: not work 2. WEB-INF/classes/plugin.properties: work 3. /WEB-INF/classes/plugin.properties: not work 4. /plugin.properties: not work Also, I'm using Tomcat 4.0.6 (NB3.5.1). Does anyone have an answer for this? Is / bad? It may apply to Tomcat 5 as well, isn't it? Regards, John The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Me and another gentleman had this conversation just a little while ago...well one similar to it. I always have a package which I put my files in. I never have a problem doing that. I always use Class.class.getResourceAsStream and getResource (should be roughly the same...usage is a little different). I have a web app that has multiple installations on the same server and they always find their files. But, I always use a package so I can access the files that way. I quit using an empty package for everything when I started having goofy problems with different app servers. I run into the same thing on Oracle 9iAS once. /plugin.properties and plugin.properties Are very different when you are using ClassLoader.getResource(AsStream), and the same thing applies to Class.getResource(AsString)...see java docs. Again, I never have a problem, and I load property files from under the classes directory all the time. Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
log4j and tomcat 5.5
Hello, This is sure a newbie question, but I have been having a lot of trouble trying to get logging to work on tomcat 5.5 with log4j. I got everything working (I think...) but I have been wondering about something... Would anybody know why I still have to put a copy of commons-logging.jar + log4j.jar into the webapp WEB-INF/lib directory for logging to work for the webapp, even though it is already in common/lib (so it should be shared by all classes, including webapps, right...) ? Thanks, Marcelo. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Classloading issue
Yu, John wrote: Wade, Thanks for sharing. When you say using package, you mean for resource files? One specific thing you didn't mention is where the calling class is located. In my case, it's a class from within a jar in lib. That really made the difference. My conclusion so far is similar: when using /, CL could make a big difference. Better stay away from it? Regards, John -Original Message- From: Wade Chandler [mailto:[EMAIL PROTECTED] Sent: Thursday, December 09, 2004 4:31 PM To: Tomcat Users List Subject: Re: Classloading issue Yu, John wrote: Hi, I'm using Struts plugin, however, I think the issue mostly related to Tomcat ClassLoading. I have a class (in a jar) under WEB-INF/lib, which loads properties from a file located under WEB-INF/classes. ClassLoader cl = getClass().getClassLoader(); InputStream stream = cl.getResourceAsStream(plugin.properties); I have tried different versions of path, with the results I couldn't totally explain: 1. plugin.properties: not work 2. WEB-INF/classes/plugin.properties: work 3. /WEB-INF/classes/plugin.properties: not work 4. /plugin.properties: not work Also, I'm using Tomcat 4.0.6 (NB3.5.1). Does anyone have an answer for this? Is / bad? It may apply to Tomcat 5 as well, isn't it? Regards, John The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Me and another gentleman had this conversation just a little while ago...well one similar to it. I always have a package which I put my files in. I never have a problem doing that. I always use Class.class.getResourceAsStream and getResource (should be roughly the same...usage is a little different). I have a web app that has multiple installations on the same server and they always find their files. But, I always use a package so I can access the files that way. I quit using an empty package for everything when I started having goofy problems with different app servers. I run into the same thing on Oracle 9iAS once. /plugin.properties and plugin.properties Are very different when you are using ClassLoader.getResource(AsStream), and the same thing applies to Class.getResource(AsString)...see java docs. Again, I never have a problem, and I load property files from under the classes directory all the time. Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Using the / on the classloader call will be like trying to access a file on your root drive or your / directory on *nix. But yes, I usually put my properties files in a folder under classes and access them that way just like accessing a file on the classpath...even though they are files. Under classes I'll have a com/redesetgrow directory and I'll put config files in there. Yes I use a class from one of my packages that I know will only be with my webapp. I always use the full classpath path to the resource and use a class instead of a ClassLoader. I always do com.redesetgrow.util.io.IO.class.getResource(/com/redesetgrow/config.properties); or com.redesetgrow.util.io.IO.class.getResourceAsStream(/com/redesetgrow/config.properties); I always use that full path because a certain vm had a weird bug that bit me before (java 1.3 on IBM AIX using Oracle 9iAS got me like that one time). So I used the full path thing and the class call and that did the trick for me. Since then just out of habit I use that call, and the full path, and I never have problems. I figure it helps me not forget anything, plus I just use one method of getting resources on the classpath. To me it's more readable now. Using the / at the front tells that call to not replace the slashes with .'s when it goes to find my file. Not putting the / in the front would make the call replace all the / with .'s. Another cool thing about that is I have one resource class I use for looking up everything since I use the full classpath to the resource. Though it won't work well for relative paths. My favorite
Re: log4j and tomcat 5.5
Are you trying to enable logging for Tomcat, your webapp, or both? You will need to add both log4j.jar and commons-logging.jar (not commons-logging-api.jar) to common/lib to enable Log4j logging for Tomcat-5.5.x itself. For your own app, do you use actually use the commons-logging api or just the Log4j api? If the latter, don't bother with commons-logging. In fact, try to avoid it like the plague. If you do require commons-logging for your webapp logging, I'm not entirely sure whether it is ok to have log4j.jar in WEB-INF/lib and commons-logging.jar in common/lib or if they have to be together. There could be classloader issues if you separate them. I'm not really sure. commons-logging issus are outside the scope of my knowledge. Jake Quoting Marcelo Moreira [EMAIL PROTECTED]: Hello, This is sure a newbie question, but I have been having a lot of trouble trying to get logging to work on tomcat 5.5 with log4j. I got everything working (I think...) but I have been wondering about something... Would anybody know why I still have to put a copy of commons-logging.jar + log4j.jar into the webapp WEB-INF/lib directory for logging to work for the webapp, even though it is already in common/lib (so it should be shared by all classes, including webapps, right...) ? Thanks, Marcelo. - 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]