Help Required!!
Hi, I have installed TOMCAT 5.5.9 alog with JDK1.4.2_07. I also have the latest version of xalan.jar, xerces.jar and xmlapi.jar. I installed my application on TOMCAT. But, i have a navigation.xml file in my application which gets dynamically populated. On running the application only the static links are displayed and thus i am not able to proceed further. Xalan.jar is parsing the navigation.xml and it's xsl file successfully when executed separately. Please help!!! Regards, Sidharth Kaushik Interra Information Technologies (India) Pvt. Ltd. SDF # E-14 NSEZ (Noida Special Economic Zone) Noida 201 305 UP India Tel +91 120 2568037 Ext:268 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Network Disk Not Exist Under Tomcat-5.5.9
Hi,Jason Everything is clear ! Thank so much. - NanFei - Original Message - From: Jason Bainbridge [EMAIL PROTECTED] To: NanFei Wang [EMAIL PROTECTED]; Tomcat Users List tomcat-user@jakarta.apache.org Sent: Thursday, May 05, 2005 11:02 PM Subject: Re: Network Disk Not Exist Under Tomcat-5.5.9 On 5/5/05, NanFei Wang [EMAIL PROTECTED] wrote: --- If I use Tomcat-5.0.18 working in Window2000 and start by startup.bat in another Dos Window after log-in with administrator, then the test.jsp will get Y:\ exists()=true This works as you are running Tomcat as the Administrator within the same session that the Y: drive is mapped, it is basically running under the same logon AND session of the logged on user. If I use Apache Tomcat-5.5.9 which will give web 'Service' automatically, (no matter if I log-in with administrator or not log-in) then the test.jsp will get Y:\ exists()=false; This doesn't work as mapped drives are logon and session specific so eve if you rant the service as Adminstrator it wouldn't work (although in some bizarre cases it will but shouldn't be relied on). What you need to do is run the tomcat service as a user that has windows network privileges (and please don't use Administrator even for development that's bad practice, create another network account to use for Tomcat) plus that user needs access to the network share. The version of tomcat is irrelevant it just happens that you are running one as the logged in user and the other as windows service. Regards, -- Jason Bainbridge http://kde.org - [EMAIL PROTECTED] Personal Site - http://jasonbainbridge.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: Users being logged out
Hi Michol, Am Donnerstag, 5. Mai 2005 22:49 schrieb Murray, Michol: After I finish committing my changes for creating a user using the Tomcat Web server administration tool, if I have users logged in to my site I notice that all the users are logged out. What would cause this? Do you use the tomcat-users.xml als realm? In this case, the solution is very simple: When Tomcat first starts up, it loads all defined users and their associated information from the users file. Changes to the data in this file will not be recognized until Tomcat is restarted. - http://jakarta.apache.org/tomcat/tomcat-4.0-doc/realm-howto.html The administration tool restarts the server after you have made a change to the tomcat-users.xml file. Therefore all sessions and login information are lost. However, you can circumvent the problem if you change to a different realm. If you use a MySQL database for example, the server doesn't need a restart after you have made changes to the roles and resp. or users, because it doesn't cache the information but always gets it in realtime for the database. Best wishes Lutz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Directory Creation in Servlet Question
On 5/6/05, Joe Hertz [EMAIL PROTECTED] wrote: I have a Struts Servlet that executes the code snippet below to create a directory. Under Windows, this works great, the directory showing up under C:\TOMCAT4\WEBAPPS\ Under Suze Linux, it doesn't get created, and it's not a permission problem. At least not under the webapps directory. The Tomcat user can definitely create a directory there (I've su'd to him and done it). What should I be looking at next? String filePath = File.separator + userId; File dirs = new File(File.separator + rs.getMessage(imageFilePath) + filePath); dirs = new File(File.separator + rs.getMessage(imageFilePath) + filePath); if (!dirs.exists()) { dirs.mkdirs(); } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] you tried to debug it. You can check what is the path before the directory is created. In Linux / means the root directory and since the path name begins with File.separator(/), the file is created with reference to /. For eg. if filePath is /anto. Then if Tomcat have write permission to root directory the directory will be created. -- rgds Anto Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat 5.5; context-path
Hi! I'm preparing to upgrade from tomcat 4.1 to 5.5. I've a lot of apps, which have a context path with subdirectories (e.g. /dir1/app1 ...) and it seems that tomcat 5.5 doesn't allow this. In the tomcat 5.5 docs (.../tomcat-docs/config/context.html) in the description of path there's the sentence: The value of this field must not be set except when statically defining a Context in server.xml, as it will be infered from the filenames used for either the .xml context file or the docBase. This seems to me to have only context path with has the same value as the name of the context.xml file. I want to use context.xml files and not put context information into server.xml. So isn't it possible to depoly apps in tomcat 5.5 with a context path that has subdirectories? Is this a feature (why?) - or is this a bug? If this is a feature - do you have any suggestions, how to configure my tomcat/apache that the directory structure (for the web users) will stay the same? Thanks, Gernot - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
activation.jar / Tomcat 5.5 / JDK 5
Hi, I've seen this mentioned before but no solution. I'm trying to use javamail with the above set up but I keep getting java.lang.NoClassDefFoundError: javax/activation/DataSource. I have the activation.jar and have tried it in common/lib, shared/lib and WEB-INF/lib with no success and it is not a permissions problem. Is it possible that this jar does not work with JDK 1.5? Any ideas on how to solve my problem as it's holding up my migration to Tomcat 5.5 Ta Matt
RE: activation.jar / Tomcat 5.5 / JDK 5
Hi, Make sure you only have activation.jar and mail.jar in common/lib and not in your web application lib folder. Allistair -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: 06 May 2005 11:10 To: Tomcat Users List (E-mail) Subject: activation.jar / Tomcat 5.5 / JDK 5 Hi, I've seen this mentioned before but no solution. I'm trying to use javamail with the above set up but I keep getting java.lang.NoClassDefFoundError: javax/activation/DataSource. I have the activation.jar and have tried it in common/lib, shared/lib and WEB-INF/lib with no success and it is not a permissions problem. Is it possible that this jar does not work with JDK 1.5? Any ideas on how to solve my problem as it's holding up my migration to Tomcat 5.5 Ta Matt FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: activation.jar / Tomcat 5.5 / JDK 5
Have done that. Only ever had one copy of the jar. Ta -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: 06 May 2005 11:15 To: Tomcat Users List Subject: RE: activation.jar / Tomcat 5.5 / JDK 5 Hi, Make sure you only have activation.jar and mail.jar in common/lib and not in your web application lib folder. Allistair -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: 06 May 2005 11:10 To: Tomcat Users List (E-mail) Subject: activation.jar / Tomcat 5.5 / JDK 5 Hi, I've seen this mentioned before but no solution. I'm trying to use javamail with the above set up but I keep getting java.lang.NoClassDefFoundError: javax/activation/DataSource. I have the activation.jar and have tried it in common/lib, shared/lib and WEB-INF/lib with no success and it is not a permissions problem. Is it possible that this jar does not work with JDK 1.5? Any ideas on how to solve my problem as it's holding up my migration to Tomcat 5.5 Ta Matt FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - 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: activation.jar / Tomcat 5.5 / JDK 5
Have you unpacked the activation.jar you have and verified this class exists ;) You've not left anything in shared/lib or the JRE hasn't anything that would find activation on your classpath no? -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: 06 May 2005 11:27 To: Tomcat Users List Subject: RE: activation.jar / Tomcat 5.5 / JDK 5 Have done that. Only ever had one copy of the jar. Ta -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: 06 May 2005 11:15 To: Tomcat Users List Subject: RE: activation.jar / Tomcat 5.5 / JDK 5 Hi, Make sure you only have activation.jar and mail.jar in common/lib and not in your web application lib folder. Allistair -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: 06 May 2005 11:10 To: Tomcat Users List (E-mail) Subject: activation.jar / Tomcat 5.5 / JDK 5 Hi, I've seen this mentioned before but no solution. I'm trying to use javamail with the above set up but I keep getting java.lang.NoClassDefFoundError: javax/activation/DataSource. I have the activation.jar and have tried it in common/lib, shared/lib and WEB-INF/lib with no success and it is not a permissions problem. Is it possible that this jar does not work with JDK 1.5? Any ideas on how to solve my problem as it's holding up my migration to Tomcat 5.5 Ta Matt FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - 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: activation.jar / Tomcat 5.5 / JDK 5
I hadn't unpacked it but use the same jar with no problems in Tomcat 5.0.2x and JDK 1.4.2. I did just now and it is there. shared/lib is empty. I've also searched through the JDK directory and it's not there either. -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: 06 May 2005 11:36 To: Tomcat Users List Subject: RE: activation.jar / Tomcat 5.5 / JDK 5 Have you unpacked the activation.jar you have and verified this class exists ;) You've not left anything in shared/lib or the JRE hasn't anything that would find activation on your classpath no? -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: 06 May 2005 11:27 To: Tomcat Users List Subject: RE: activation.jar / Tomcat 5.5 / JDK 5 Have done that. Only ever had one copy of the jar. Ta -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: 06 May 2005 11:15 To: Tomcat Users List Subject: RE: activation.jar / Tomcat 5.5 / JDK 5 Hi, Make sure you only have activation.jar and mail.jar in common/lib and not in your web application lib folder. Allistair -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: 06 May 2005 11:10 To: Tomcat Users List (E-mail) Subject: activation.jar / Tomcat 5.5 / JDK 5 Hi, I've seen this mentioned before but no solution. I'm trying to use javamail with the above set up but I keep getting java.lang.NoClassDefFoundError: javax/activation/DataSource. I have the activation.jar and have tried it in common/lib, shared/lib and WEB-INF/lib with no success and it is not a permissions problem. Is it possible that this jar does not work with JDK 1.5? Any ideas on how to solve my problem as it's holding up my migration to Tomcat 5.5 Ta Matt FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat 5.5; context-path
On Fri, May 06, 2005 at 10:07:32AM +0200, Pfingstl Gernot wrote: : This seems to me to have only context path with has the same value as the name : of the context.xml file. : I want to use context.xml files and not put context information into : server.xml. : So isn't it possible to depoly apps in tomcat 5.5 with a context path that has : subdirectories? Yes, it is possible. Search the archives for the specifics. You have to name your context's XML file a certain way: a special character represents the dir separators. So to map a context to /path1/path2/path3 your context XML would be named path1{char}path2{char}path3.xml I think {char} is a # but don't quote me on that... -QM -- software -- http://www.brandxdev.net/ tech news -- http://www.RoarNetworX.com/ code scan -- http://www.JxRef.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Question: Please tell me to connect Tomcat/Apache
I'm using Windows 2003. I've installed Apache2 on port 80, using .php scripts from ~/wwwroot I've installed Tomcat5 on port 8080, using .jsp scripts from ~/webapps/root I want2run HTML by Apache, .jsp by Tomcat and place my complete Web site in ~/wwwroot How, this is possible? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: tomcat 5.5; context-path
Thank you! It works with #! - but is this the 'official' way to do this in future releases? I have not found any docs about this. Gernot -Ursprüngliche Nachricht- Von: QM [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 06. Mai 2005 12:58 An: Tomcat Users List Betreff: Re: tomcat 5.5; context-path On Fri, May 06, 2005 at 10:07:32AM +0200, Pfingstl Gernot wrote: : This seems to me to have only context path with has the same value as the name : of the context.xml file. : I want to use context.xml files and not put context information into : server.xml. : So isn't it possible to depoly apps in tomcat 5.5 with a context path that has : subdirectories? Yes, it is possible. Search the archives for the specifics. You have to name your context's XML file a certain way: a special character represents the dir separators. So to map a context to /path1/path2/path3 your context XML would be named path1{char}path2{char}path3.xml I think {char} is a # but don't quote me on that... -QM -- software -- http://www.brandxdev.net/ tech news -- http://www.RoarNetworX.com/ code scan -- http://www.JxRef.org/ - 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: Question: Please tell me to connect Tomcat/Apache
On 5/6/05, anshul [EMAIL PROTECTED] wrote: I'm using Windows 2003. I've installed Apache2 on port 80, using .php scripts from ~/wwwroot I've installed Tomcat5 on port 8080, using .jsp scripts from ~/webapps/root I want2run HTML by Apache, .jsp by Tomcat and place my complete Web site in ~/wwwroot How, this is possible? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Why you want to use Apache in a Windows server ?. Benchmarks shows that Tomcat 5 is same or better than Apache in serving static content. -- rgds Anto Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Question: Please tell me to connect Tomcat/Apache
Benchmarks shows that Tomcat 5 is same or better than Apache in serving static content. I think/read, Apache is better than Tomcat for HTML Web pages. I asked, to run .jsp from ~/wwwroot - Original Message - From: Anto Paul [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Friday, May 06, 2005 5:41 PM Subject: Re: Question: Please tell me to connect Tomcat/Apache On 5/6/05, anshul [EMAIL PROTECTED] wrote: I'm using Windows 2003. I've installed Apache2 on port 80, using .php scripts from ~/wwwroot I've installed Tomcat5 on port 8080, using .jsp scripts from ~/webapps/root I want2run HTML by Apache, .jsp by Tomcat and place my complete Web site in ~/wwwroot How, this is possible? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Why you want to use Apache in a Windows server ?. Benchmarks shows that Tomcat 5 is same or better than Apache in serving static content. -- rgds Anto Paul - 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: Question: Please tell me to connect Tomcat/Apache
On 5/6/05, anshul [EMAIL PROTECTED] wrote: Benchmarks shows that Tomcat 5 is same or better than Apache in serving static content. I think/read, Apache is better than Tomcat for HTML Web pages. I asked, to run .jsp from ~/wwwroot - Original Message - From: Anto Paul [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Friday, May 06, 2005 5:41 PM Subject: Re: Question: Please tell me to connect Tomcat/Apache On 5/6/05, anshul [EMAIL PROTECTED] wrote: I'm using Windows 2003. I've installed Apache2 on port 80, using .php scripts from ~/wwwroot I've installed Tomcat5 on port 8080, using .jsp scripts from ~/webapps/root I want2run HTML by Apache, .jsp by Tomcat and place my complete Web site in ~/wwwroot How, this is possible? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Why you want to use Apache in a Windows server ?. Benchmarks shows that Tomcat 5 is same or better than Apache in serving static content. -- rgds Anto Paul - 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] Find the documentation of JK connector. http://jakarta.apache.org/tomcat/connectors-doc/ -- rgds Anto Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Question: Please tell me to connect Tomcat/Apache
From: anshul [mailto:[EMAIL PROTECTED] I think/read, Apache is better than Tomcat for HTML Web pages. That is your decision, but... I asked, to run .jsp from ~/wwwroot ... you won't easily be able to mix, in the same directory, Apache serving the HTML files and Tomcat serving the JSPs. This appears to be what you want to do. *At the very least*, they will have to appear on your Web site in different directories, even if they are served from the same directory. If you're comfortable with that, start at http://jakarta.apache.org/tomcat/connectors-doc/index.html to see how to configure JK between Apache and Tomcat. - Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Install error: cannot replace directory
On 5/6/05, George Gunson [EMAIL PROTECTED] wrote: Actually, just fixed it: changed /opt/jakarta-tomcat-5.5.9-src/jakarta-tomcat-5/build.xml and removed the line: 691 about mkdir dir=${tomcat-dbcp.home}/src/java/org/apache/tomcat/dbcp/ good luck Question: I was concerned about removing that line. Is it a fix, or does it eliminate an error during the build that causes problems later? (I'm guessing the former). FL
Problem with Log4J starting TOMCAT 5.5.9
HI, I have installed TOMCAT 5.5.9 on my Windows XP jdk 1.5.0 and when I start the server I receive the following error : log4j:WARN No appenders could be found for logger ( org.apache.catalina.startup.ClassLoaderFactory). log4j:WARN Please initialize the log4j system properly. The server starts, but the logs are broken. Thanks Rogerio
RE: Problem with Log4J starting TOMCAT 5.5.9
Hi, You need to configure the log4j subsystem with a log4j.properties file and pop it into your web application's classes folder (or in Tomcat's common/classes if you have no webapp). At the very least you will want to setup a root logger. See the log4j documentation for this or use the Tomcat 5.5 logging page Cheers, Allistair. -Original Message- From: Rogério Saulo [mailto:[EMAIL PROTECTED] Sent: 06 May 2005 14:30 To: tomcat-user@jakarta.apache.org Subject: Problem with Log4J starting TOMCAT 5.5.9 HI, I have installed TOMCAT 5.5.9 on my Windows XP jdk 1.5.0 and when I start the server I receive the following error : log4j:WARN No appenders could be found for logger ( org.apache.catalina.startup.ClassLoaderFactory). log4j:WARN Please initialize the log4j system properly. The server starts, but the logs are broken. Thanks Rogerio FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
InvocationTargetException
I am running Tomcat 5 on XP and after deploying a new war file, which worked, and was the only change I made, the next time I rebooted the machine (after all it is XP) this is what I get: 156593 INFO [main] core.StandardHostDeployer - Processing Context configuration file URL file:C:\Program Files\Apache Software Foundation\Tomcat 5.0\conf\Catalina\localhost\balancer.xml 157015 ERROR [main] modeler.Registry - Null component Catalina:type=JspMonitor,WebModule=//localhost/balancer,J2EEApplication=none,J2EEServer=none 157031 ERROR [main] 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) at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:208) . . . at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425) Caused by: java.lang.NoSuchMethodError: org.apache.log4j.Category.log(Ljava/lang/String;Lorg/apache/log4j/Level;Ljava/lang/Object;Ljava/lang/Throwable;)V at org.apache.commons.logging.impl.Log4JCategoryLog.debug(Log4JCategoryLog.java:94) at org.apache.catalina.session.ManagerBase.init(ManagerBase.java:633) at org.apache.catalina.session.StandardManager.start(StandardManager.java:639) and further down 158062 INFO [main] core.StandardHostDeployer - Processing Context configuration file URL file:C:\Program Files\Apache Software Foundation\Tomcat 5.0\conf\Catalina\localhost\manager.xml 158062 INFO [main] core.StandardHostDeployer - Processing Context configuration file URL file:C:\Program Files\Apache Software Foundation\Tomcat 5.0\conf\Catalina\localhost\manager.xml 158375 ERROR [main] modeler.Registry - Null component Catalina:type=JspMonitor,WebModule=//localhost/manager,J2EEApplication=none,J2EEServer=none 158375 ERROR [main] 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 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425) Caused by: java.lang.NoSuchMethodError: org.apache.log4j.Category.log(Ljava/lang/String;Lorg/apache/log4j/Level;Ljava/lang/Object;Ljava/lang/Throwable;)V at org.apache.commons.logging.impl.Log4JCategoryLog.debug(Log4JCategoryLog.java:94) at org.apache.catalina.session.ManagerBase.init(ManagerBase.java:633) at org.apache.catalina.session.StandardManager.start(StandardManager.java:639) Is this an issue with the version of log4j.jar or a class loader issue or is there a corrupt jar I should replace? Loosely Coupled Mike Oliver CTO Alarius Systems LLC 6800 E. Lake Mead Blvd Apt 1096 Las Vegas, NV 89156 [EMAIL PROTECTED] [EMAIL PROTECTED] IM: [EMAIL PROTECTED] http://www.alariussystems.com/ tel: fax: mobile: (702)643-7425 (702)974-0341 (518)378-6154 Add me to your address book... Want a signature like this?
[Fwd: ApacheCon Europe 2005: Registration open and conference program online!]
Original Message Subject: ApacheCon Europe 2005: Registration open and conference program online! Date: Fri, 06 May 2005 13:41:42 +0200 From: Lars Eilebrecht [EMAIL PROTECTED] To: [EMAIL PROTECTED] Registration for ApacheCon Europe 2005 is now open at www.apachecon.com. Check out the website and make sure to save money by registering prior to June 17, 2005. ApacheCon Europe 2005 will be held in Stuttgart from July 18 to 22, 2005 with seminars that cover the whole spectrum of Open Source topics from the legendary Apache HTTP Server to scalable Internet architectures, Web Services, PHP, mod_perl, Java, XML, and Subversion. ApacheCon Europe 2005 will present immense opportunities to listen to internationally distinguished Open Source leaders, developers and architects like Noel Bergman, Brian Fitzpatrick, Cliff Schmidt, Sander Striker, and Carsten Ziegler. ApacheCon Europe 2005 offers a wide spectrum of 70 top-quality sessions, all conducted in English, as well as two days with full and half day tutorials. The complete agenda is available at www.apachecon.com. We look forward to seeing you in Stuttgart. Best regards... -- Lars Eilebrecht - The Apache Software Foundation [EMAIL PROTECTED] - http://www.apache.org/ - 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: context.xml created by Ant not discovered by Tomcat
Matt Galvin [EMAIL PROTECTED] wrote: Yes, there is, I usually put them in: $CATALINA_HOME/conf/Catalina/localhost/myapp.xml Could you post the contents of your context file? Maybe something needs to be tweak possibly. Here is context.xml... Context path=/xx docBase=xx crossContext=true Resource name=jdbc/xxDb auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/xxDb parameternamefactory/namevalueorg.apache.commons.dbcp.BasicDataSourceFactory/value/parameter !-- Maximum number of dB connections in pool. Set to 0 for no limit.-- !-- Maximum number of idle dB connections to retain in pool. Set to 0 for no limit.-- !-- Maximum time to wait for a dB connection to become available in ms, in this example 10 seconds. An Exception is thrown if this timeout is exceeded. Set to -1 to wait indefinitely. -- parameternamemaxActive/namevalue100/value/parameter parameternamemaxIdle/namevalue30/value/parameter parameternamemaxWait/namevalue1/value/parameter !-- JDBC driver configuration -- parameternamedriverClassName/namevaluecom.mysql.jdbc.Driver/value/parameter parameternameurl/namevaluejdbc:mysql://localhost/xxDb/value/parameter parameternameusername/namevaluexx/value/parameter parameternamepassword/namevaluexx/value/parameter /ResourceParams !-- Disables restart persistence of sessions -- Manager pathname=/ /Context As you can see, I'm using a MySQL database. Also, apparently I DON'T have this problem when using Tomcat 5.5.9 (at first, it appeared that I did have the problem with 5.5.9, but after a restart of Tomcat and a reboot of the machine, it worked as desired, but I don't think I should've needed to reboot) - and I notice that the default Balancer app seems to use the same thing. So perhaps this is a 5.5.x-only thing? Thanks! -- Lynn Hollerman. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Servlet app error
Hi! Does anybody know how to solve this problem? Please excuse me if the cuestion is too stupid. I am really newbie. :) Thanks a lot! Cheers, Gaston HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Invoker service() exception at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java :477) at org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:133) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:200) at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilter Chain.java:51) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain .java:129) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:125) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:209) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:596) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:144) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:596) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:596) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:118) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:594) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:594) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :127) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:596) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:683) at java.lang.Thread.run(Thread.java:534) root cause java.lang.NoClassDefFoundError at com.genexus.webpanels.GXWebObjectStub.callExecute(Unknown Source) at com.genexus.webpanels.GXWebObjectStub.doGet(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java :419) at org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:133) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:200) at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilter Chain.java:51) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain .java:129) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:125) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:209)
RE: Problem with Log4J starting TOMCAT 5.5.9
my english es bad puede ser por que has instalado tu TomCat/Java como usuario intentalo como Administrador sobre tu maquina -Mensaje original- De: Rogério Saulo [mailto:[EMAIL PROTECTED] Enviado el: viernes, 06 de mayo de 2005 8:30 Para: tomcat-user@jakarta.apache.org Asunto: Problem with Log4J starting TOMCAT 5.5.9 HI, I have installed TOMCAT 5.5.9 on my Windows XP jdk 1.5.0 and when I start the server I receive the following error : log4j:WARN No appenders could be found for logger ( org.apache.catalina.startup.ClassLoaderFactory). log4j:WARN Please initialize the log4j system properly. The server starts, but the logs are broken. Thanks Rogerio -- Esta comunicación representa las opiniones y puntos de vista del autor y no reflejan necesariamente la posición del MIMDES. Este mensaje y todos los archivos que contenga, son confidenciales y son sólo para su destinatario. Si usted no es el destinatario original, es posible que haya recibido este mensaje por error, en cuyo caso cualquier uso, distribución, derivación o copia de este mensaje está estrictamente prohibido. Si usted recibe este mensaje por error, sírvase notificar inmediatamente a [EMAIL PROTECTED] y borrar el mensaje de su casilla sin conservar copia. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Directory Creation in Servlet Question
In Windows that's what it means too, but this isn't Windows or Linux...it's a JVM. Since it wasn't obvious from the code (MessageResources used in pathnames), let me put it another way. The code tries to create a directory /images/userid. The Servlet is apparently limited in the filepath it gets to work with. I'd expect that. In Windows, Tomcat executes it and it goes to C:\tomcat4\images\userid In my Suze install, Tomcat the analogous directory /opt/tomcat4/webapps/images I didn't check to see if it's *different* because in the code it won't be. It's the same identifier working off of root. Windows Tomcat puts it under it's webapps tree. I'm expecting Suze to do the same. I have a hard time imagining that Tomcat gets a different view of its root file system depending on which OS I runs on. It really ruins the concept of platform independence for this sort of thing. -Joe you tried to debug it. You can check what is the path before the directory is created. In Linux / means the root directory and since the path name begins with File.separator(/), the file is created with reference to /. For eg. if filePath is /anto. Then if Tomcat have write permission to root directory the directory will be created. -- rgds Anto Paul - 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: Problem with Log4J starting TOMCAT 5.5.9
Remove the commons-logging.jar from WEB-INF\lib and place log4j.jar in it And Place log4j.xml in WEB-INF\classes folder Joy Kenneth -Original Message- From: Alex Pure [mailto:[EMAIL PROTECTED] Sent: Friday, May 06, 2005 8:41 PM To: Tomcat Users List Subject: RE: Problem with Log4J starting TOMCAT 5.5.9 my english es bad puede ser por que has instalado tu TomCat/Java como usuario intentalo como Administrador sobre tu maquina -Mensaje original- De: Rogério Saulo [mailto:[EMAIL PROTECTED] Enviado el: viernes, 06 de mayo de 2005 8:30 Para: tomcat-user@jakarta.apache.org Asunto: Problem with Log4J starting TOMCAT 5.5.9 HI, I have installed TOMCAT 5.5.9 on my Windows XP jdk 1.5.0 and when I start the server I receive the following error : log4j:WARN No appenders could be found for logger ( org.apache.catalina.startup.ClassLoaderFactory). log4j:WARN Please initialize the log4j system properly. The server starts, but the logs are broken. Thanks Rogerio -- Esta comunicación representa las opiniones y puntos de vista del autor y no reflejan necesariamente la posición del MIMDES. Este mensaje y todos los archivos que contenga, son confidenciales y son sólo para su destinatario. Si usted no es el destinatario original, es posible que haya recibido este mensaje por error, en cuyo caso cualquier uso, distribución, derivación o copia de este mensaje está estrictamente prohibido. Si usted recibe este mensaje por error, sírvase notificar inmediatamente a [EMAIL PROTECTED] y borrar el mensaje de su casilla sin conservar copia. - 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: Servlet app error
On 5/6/05, Gastón Simone [EMAIL PROTECTED] wrote: Hi! Does anybody know how to solve this problem? Please excuse me if the cuestion is too stupid. I am really newbie. :) root cause java.lang.NoClassDefFoundError at com.genexus.webpanels.GXWebObjectStub.callExecute(Unknown Source) at com.genexus.webpanels.GXWebObjectStub.doGet(Unknown Source) It seems there is a lib missing in your servlet. Add the required jars to /WEB-INF/lib Guillaume - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Howto configure tomcat to compile JSPs with Sun JDK 1.5
It is not possible. I have asked here for months and nothing has worked. The compiler flags than the docs say to use are not passed to the compiler, so you can not use Ant as the docs say. I think it is an IBM conspiricy. It took IBM a year to implement inner classes back in the jdk 1.1 era, so I suspect it will take the same time before that IBM compiler supports Java 5 features. Netbeans will comile them in the IDE with Java 5, but Tomcat won't compile them with Java 5. - Original Message - From: Stefan Parnet [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Subject: Howto configure tomcat to compile JSPs with Sun JDK 1.5 Date: Wed, 27 Apr 2005 15:20:32 +0200 Hello, I installed Tomcat 5.5.9 and want to use Java 1.5 in my JSPs. Since Tomcat 5.5 uses the Eclipse JDT Compiler (Java 1.4), it cannot compile my JSPs. So I want the tomcat to compile the JSP's with the Sun JDK 1.5 compiler. I searched the web, but I did not find any instructions how to configure the tomcat to do so. Can anyone help me? Thanks Stefan This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Access to this e-mail by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited. E-mail messages are not necessarily secure. Renesas does not accept responsibility for any changes made to this message after it was sent. Please note that this email message has been swept by Renesas for the presence of computer viruses. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ___ Get your free email from http://www.dellmail.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Common vs. Shared
my understanding comes from this book i got: 'common is responsible for classes that are used by Tomcat and publicly available to all Web apps'. shared is like common, except that 'developers can place their own classes and JAR files into the shared class loader domain'. developers shouldn't put anything into common. this is from Professional Apache Tomcat 5 from Wrox. for what it's worth...ron -- Ron Heeb, Project Leader Applications Development - Information Technology Resources California State University, Northridge - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Please correct docs - Compile JSPs w/ JDK 1.5
Please correct the documentation to reflect that this does not work. It would save a lot of time and lots of emails here about the same issue. Thanks, Milo -- ___ Get your free email from http://www.dellmail.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
trouble with Font objects in Tomcat
Hello, I have a web application that uses java.awt.Font objects to render images. The application will run in tomcat and that is where I have done development. When I first tried to run the application on a Linux box with Tomcat 5.0.25 I got the following error: java.lang.NoClassDefFoundError at com.words2walls.customquote.CustomQuote.getQuoteFontName(Unknown Source) at com.words2walls.webapp.filters.SessionQuoteFilter.doFilter(Unknown Source) Here is the code call that throws the error: public String getQuoteFontName() { return QuoteFontType.getInstance(this.quoteFontCode).toString(); } And the class that is being called: /* * QuoteFontType.java * * Created on April 15, 2005, 9:41 AM */ package com.words2walls.customquote; import java.awt.Font; import java.awt.FontFormatException; import java.util.*; import java.io.*; import com.words2walls.customquote.exceptions.FontNotFoundException; /** * Type safe enumeration of available fonts * * @author Daniel Watrous */ public class QuoteFontType { private static final String pathToWebapp = C:\\Program Files\\Apache Software Foundation\\Tomcat 5.0\\webapps\\words2walls; private static final String pathToPackage = \\WEB-INF\\classes\\com\\words2walls\\fonts\\; private String fontName; private int fontCode; private Font font; private static org.apache.log4j.Category cat = org.apache.log4j.Category.getInstance(QuoteFontType.class.getName()); public static final QuoteFontType ADORABLE = new QuoteFontType(1,Adorable,adorable.ttf); private static final Map INSTANCES = new HashMap(); static { cat.debug(Enter Static block to place fonts in INSTANCES Map); INSTANCES.put (ADORABLE.toInteger(), ADORABLE); cat.debug(Exit Static block with INSTANCES.size() = + INSTANCES.size()); } /** Creates a new instance of QuoteFontType */ private QuoteFontType(int code, String fontName, String filename) { // create a font from the font file try { File fontFile = new File (pathToWebapp+pathToPackage+filename); FileInputStream fis = new FileInputStream(fontFile); font = Font.createFont(Font.TRUETYPE_FONT, fis); } catch (Exception e) { throw new FontNotFoundException(e); } // set member variables this.font = font; this.fontCode = code; this.fontName = fontName; } public String toString() { return fontName; } public Integer toInteger() { return new Integer(fontCode); } public static QuoteFontType getInstance(int code) { return (QuoteFontType) INSTANCES.get(new Integer(code)); } public Font getFont() { return font; } } After some googling I found that if I set an environment variable JAVA_OPTS=-Djava.awt.headless=true that this error would go away. I'm not sure why this is the case, but it worked. I am now trying to test the application on a windows machine with Tomcat 5.0.30 and I get the same error. I have set a Windows XP environment variable the same as mentioned above. I have also added the option to the Java tab of the Tomcat monitor under Java Options:. What is the cause of this error? Is there some way that I can make it work on both Windows and Linux? Thanks in advance. Daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
dynamic reference to files on server
Hello, I am writing an application which needs to load font files. The font files are deployed with other classes on the server (i.e. under the WEB-INF/classes directory). Currently I have the reference built in like this //private static final String pathToWebapp = /var/tomcat/jakarta-tomcat-5.0.25/webapps/words2walls; private static final String pathToWebapp = C:\\Program Files\\Apache Software Foundation\\Tomcat 5.0\\webapps\\words2walls; //private static final String pathToPackage = /WEB-INF/classes/com/words2walls/fonts/; private static final String pathToPackage = \\WEB-INF\\classes\\com\\words2walls\\fonts\\; and I use the above variables as follows: File fontFile = new File (pathToWebapp+pathToPackage+filename); FileInputStream fis = new FileInputStream(fontFile); font = Font.createFont(Font.TRUETYPE_FONT, fis); I tried unsuccessfully to use the class loader, but this might just be my ineptitude. Can someone suggest a way for me to reference these font files dynamically so that I can more easily deploy it in different locations? Thanks! Daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with Log4J starting TOMCAT 5.5.9
I doesn´t have an application installed yet, the message appears when I start TOMCAT wiithout install any application. On 5/6/05, Joy Kenneth Harry [EMAIL PROTECTED] wrote: Remove the commons-logging.jar from WEB-INF\lib and place log4j.jar in it And Place log4j.xml in WEB-INF\classes folder Joy Kenneth -Original Message- From: Alex Pure [mailto:[EMAIL PROTECTED] Sent: Friday, May 06, 2005 8:41 PM To: Tomcat Users List Subject: RE: Problem with Log4J starting TOMCAT 5.5.9 my english es bad puede ser por que has instalado tu TomCat/Java como usuario intentalo como Administrador sobre tu maquina -Mensaje original- De: Rogério Saulo [mailto:[EMAIL PROTECTED] Enviado el: viernes, 06 de mayo de 2005 8:30 Para: tomcat-user@jakarta.apache.org Asunto: Problem with Log4J starting TOMCAT 5.5.9 HI, I have installed TOMCAT 5.5.9 on my Windows XP jdk 1.5.0 and when I start the server I receive the following error : log4j:WARN No appenders could be found for logger ( org.apache.catalina.startup.ClassLoaderFactory). log4j:WARN Please initialize the log4j system properly. The server starts, but the logs are broken. Thanks Rogerio -- Esta comunicación representa las opiniones y puntos de vista del autor y no reflejan necesariamente la posición del MIMDES. Este mensaje y todos los archivos que contenga, son confidenciales y son sólo para su destinatario. Si usted no es el destinatario original, es posible que haya recibido este mensaje por error, en cuyo caso cualquier uso, distribución, derivación o copia de este mensaje está estrictamente prohibido. Si usted recibe este mensaje por error, sírvase notificar inmediatamente a [EMAIL PROTECTED] y borrar el mensaje de su casilla sin conservar copia. - 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: Pass parameter to the JVM at startup
Michael Echerer wrote: Shouldn't it have the -server in there if it is running in server mode? How can I tell that the JVM is actually running in server mode? well, not sure if you can. I'd try java.lang.System.getProperties() or something... Yupp... works... Just run my junitreport via ant which also dumps lots of system properties, too: java.vm.name is what you are looking for, e.g. java.runtime.name Java(TM) 2 Runtime Environment, Standard Edition java.runtime.version1.4.2_05-b04 java.specification.name Java Platform API Specification java.specification.vendor Sun Microsystems Inc. java.specification.version 1.4 java.util.prefs.PreferencesFactory java.util.prefs.WindowsPreferencesFactory java.vendor Sun Microsystems Inc. java.vendor.url http://java.sun.com/ java.vendor.url.bug http://java.sun.com/cgi-bin/bugreport.cgi java.version1.4.2_05 java.vm.infomixed mode java.vm.nameJava HotSpot(TM) Client VM java.vm.specification.name Java Virtual Machine Specification java.vm.specification.vendorSun Microsystems Inc. java.vm.specification.version 1.0 java.vm.vendor Sun Microsystems Inc. java.vm.version 1.4.2_05-b04 Hence you should be able to distinguish the Client VM vs. Server VM with a simple JSP printing those properties. Cheers, Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Common vs. Shared
Ron Heeb wrote: my understanding comes from this book i got: 'common is responsible for classes that are used by Tomcat and publicly available to all Web apps'. shared is like common, except that 'developers can place their own classes and JAR files into the shared class loader domain'. developers shouldn't put anything into common. this is from Professional Apache Tomcat 5 from Wrox. for what it's worth...ron You need common/lib e.g. for JDBC drivers. Because if you want to configure a JNDI Datasource and use Tomcats Jakarta Commons DBCP connection pool there's no other way then placing the driver.jar into common/lib because Tomcat itself requires the classes already, not only your webapps. Moreover you should make sure that the webapps don't contain the driver.jar in that case again. Otherwise you'll face lot's of funny classloading issues... E.g. if you work with driver specific data types you could face problems like instanceof returning false although using the same class because objects might be loaded by different classloaders (and instanceof and casting only works within the same classloader). Cheers, Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can't see /shared/lib when using context config file
Using Tomcat 4.1.24: When I deploy an application using a context configuration file, the application cannot use shared/lib/*.jar files. It doesn't give a class not found error, either. It gives a jasper exception. If I deploy the .war or a webapp directory *without* the context config file, it sees everything in shared/lib just fine. Files in common/lib are completely accessible either way. Does anyone know of a way to deploy with a context config file *and* be able to access shared/lib/ files? Thanks, Dustin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: dynamic reference to files on server
Your code looks pretty good. What is the trouble? Do you have something like the following? fontStream = new FileInputStream(file); font = Font.createFont(Font.TRUETYPE_FONT,fontStream); font = font.deriveFont(attributes); where attributes sets the logical and family font names? On 5/6/05, Daniel Watrous [EMAIL PROTECTED] wrote: Hello, I am writing an application which needs to load font files. The font files are deployed with other classes on the server (i.e. under the WEB-INF/classes directory). Currently I have the reference built in like this //private static final String pathToWebapp = /var/tomcat/jakarta-tomcat-5.0.25/webapps/words2walls; private static final String pathToWebapp = C:\\Program Files\\Apache Software Foundation\\Tomcat 5.0\\webapps\\words2walls; //private static final String pathToPackage = /WEB-INF/classes/com/words2walls/fonts/; private static final String pathToPackage = \\WEB-INF\\classes\\com\\words2walls\\fonts\\; and I use the above variables as follows: File fontFile = new File (pathToWebapp+pathToPackage+filename); FileInputStream fis = new FileInputStream(fontFile); font = Font.createFont(Font.TRUETYPE_FONT, fis); I tried unsuccessfully to use the class loader, but this might just be my ineptitude. Can someone suggest a way for me to reference these font files dynamically so that I can more easily deploy it in different locations? Thanks! Daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- You can lead a horse to water but you cannot make it float on its back. ~Dakota Jack~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat stopped
servlet-api.jar does seem to work. How we found servlet.jar... we googled javax.lang.xxx.xxx, which came from a compile error. The only references were to servlet.jar. The two versions of servlet.jar were quite old.. 1999 and 2001 if I remember correctly, which caused me concern, but it is all we found. Thanks for the help. -Fred Wendy Smoak wrote: From: Fred Cook [EMAIL PROTECTED] 2) We had the CLASSPATH set to point to servlet.jar (needed to compile the test program). This was the main problem, which might bring up a versioning question. We are running RH 8.0 on this machine with Tomcat 5.5.7 and apache 2.0.53. What is the correct version of servlet.jar that should be run with this version of Tomcat and Apache? Well... I don't think it's called servlet.jar anymore. A quick look shows no servlet.jar file in the Tomcat 5.5.9 download. I believe the file you want is servlet-api.jar . (I'm still on 4.1, so I'm guessing...) You could also download the official API from Sun, and compile against that. It's not that you need to compile against a specific version of _Tomcat_, it's that you need to compile against the right version of the Servlet Specification. In your case, Tomcat 5.5 is Servlet 2.4, so make sure that's what you're using. Where did you get the 'servlet.jar' file that you were using? Maybe it does contain the right stuff, but those strange NoClassDefFound errors you were getting made me suspicious. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Pass parameter to the JVM at startup
How can I tell that the JVM is actually running in server mode? well, not sure if you can. I'd try java.lang.System.getProperties() or something... Yupp... works... Just run my junitreport via ant which also dumps lots of system properties, too: java.vm.name is what you are looking for, e.g. [...] Hence you should be able to distinguish the Client VM vs. Server VM with a simple JSP printing those properties. Yea it works :) I did a very simple: %= java.lang.System.getProperty(java.vm.name) % in a JSP and it shows Java HotSpot(TM) Server VM. Looking back I was starting Tomcat from inside Eclipse with the Sysdeo Tomcat Plugin which apparently doesn't use the tomcat startup scripts, i.e., it bypasses startup.sh so it never sees -server. When I started tomcat manually via the cli with startup.sh with the JAVA_OPTS in catalina.sh it did see the -server option and it does indeed show up on the cli too: --- snip --- mgalvin 12399 1 99 14:01 pts/000:00:04 /opt/java/bin/java -server -Djava.endorsed.dirs=/opt/tomcat/common/endorsed -classpath /opt/java/lib/tools.jar:/opt/tomcat/bin/bootstrap.jar:/opt/tomcat/bin/commons-logging-api.jar -Dcatalina.base=/opt/tomcat -Dcatalina.home=/opt/tomcat -Djava.io.tmpdir=/opt/tomcat/temp org.apache.catalina.startup.Bootstrap start --- snip --- Thanks Again Micheal, Matt Cheers, Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cannot download files with IE through tomcat. SSL with no-cache problems?
On Apache Tomcat/5.0.28, I've got SLL installed, and whenever I try to download a doc file I get: Some files can harm your computer. If the file information below looks suspicious, or you do not fully trust the source, do not open or save this file File name: x.doc File type:Microsoft Word Document From:yyy.ibm.com Open Save Cancel More Info I click Open and then the folloing file download dialog comes up: Internet Explorer cannot download .doc from y.ibm.com Internet Explorer was not able to open this Internet Site. The requested site is either unavailable or cannot be found. Please try again later. OK Downloading works fine in FireFox. Downloading works fine if I turn off SSL. We have an apache server (full httpd server) inhouse where this type of SSL download works fine too. Is there a SSL no-cache setting I have to put in server.xml or something? Thanks ...Don... -- Don Rota, CTG Operations Rational Software, IBM Software Group 20 Maguire Road, Lexington, MA 02421-3104 Tel: 781 676 2655, Fax: 781 676 7645 [EMAIL PROTECTED]
Tomcat 5 slow, it's in production, please help!
I have a apache/tomcat environment that has some problems recently. The environment has the following: 1. Apache 1.3 2. Tomcat 5.0.28 (Max memory 384mb) 3. JDK 1.4.2_06 My apache has MaxClient set to 256 (apache default). The maxThread for tomcat is 500. The site is a database driven site. It seems working fine when load is low. But when there are more than 150 threads (from the sever status view of the tomcat manager), it's response time is very slow (5 - 10 minutes). I have tested the database connections, they seem responding fairly well. Interesting thing is that most of time the slow response time only happens when a user login. Once the user login and get the main menu page, the user will get a good response time. Is it related to KeepAlive connections. Another strange thing is that many threads always show up in the server status view on the tomcat html manager page even though I am sure the request has gone (I tested this by making a request, then close the browser). My CPU usage is low when the slowdown is experienced (Using the top command on this solaris box which has old solaris operating system 2.6? with 1GB memory. I set the session timeout time to 5 minutes, but in the session view of tomcat manager, I see message 30 - 40 minutes:136 sessions. How a session that is more than 30 minutes is still there. Maybe I don't understand this message correctly. Please advice. This is a production machine. Helps are greatly appreciated. Thanks. Jeffrey. Discover Yahoo! Get on-the-go sports scores, stock quotes, news and more. Check it out! http://discover.yahoo.com/mobile.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Install error: cannot replace directory
Actually, it still didn't work for me until I removed the move statement. On 5/6/05, George Gunson [EMAIL PROTECTED] wrote: FL Hey mate, I'm no expert - just trying to learn this stuff from a book - but it made it install and tomcat works fine The build seemed to continue as normal - just deduction really - no other mkdirs in there. regards George -Original Message- *From:* FL [mailto:[EMAIL PROTECTED] *Sent:* 06 May 2005 15:25 *To:* George Gunson *Cc:* tomcat-user@jakarta.apache.org *Subject:* Re: Tomcat Install error: cannot replace directory On 5/6/05, George Gunson [EMAIL PROTECTED] wrote: Actually, just fixed it: changed /opt/jakarta-tomcat-5.5.9-src/jakarta-tomcat-5/build.xml and removed the line: 691 about mkdir dir=${tomcat-dbcp.home}/src/java/org/apache/tomcat/dbcp/ good luck Question: I was concerned about removing that line. Is it a fix, or does it eliminate an error during the build that causes problems later? (I'm guessing the former). FL
RE: Tomcat 5 slow, it's in production, please help!
What does netstat -nt show? You may have enough connections going that old ones have to time out before you can establish a new one. -Original Message- From: Jeffrey [mailto:[EMAIL PROTECTED] Sent: Friday, May 06, 2005 2:16 PM To: tomcat-user@jakarta.apache.org Subject: Tomcat 5 slow, it's in production, please help! I have a apache/tomcat environment that has some problems recently. The environment has the following: 1. Apache 1.3 2. Tomcat 5.0.28 (Max memory 384mb) 3. JDK 1.4.2_06 My apache has MaxClient set to 256 (apache default). The maxThread for tomcat is 500. The site is a database driven site. It seems working fine when load is low. But when there are more than 150 threads (from the sever status view of the tomcat manager), it's response time is very slow (5 - 10 minutes). I have tested the database connections, they seem responding fairly well. Interesting thing is that most of time the slow response time only happens when a user login. Once the user login and get the main menu page, the user will get a good response time. Is it related to KeepAlive connections. Another strange thing is that many threads always show up in the server status view on the tomcat html manager page even though I am sure the request has gone (I tested this by making a request, then close the browser). My CPU usage is low when the slowdown is experienced (Using the top command on this solaris box which has old solaris operating system 2.6? with 1GB memory. I set the session timeout time to 5 minutes, but in the session view of tomcat manager, I see message 30 - 40 minutes:136 sessions. How a session that is more than 30 minutes is still there. Maybe I don't understand this message correctly. Please advice. This is a production machine. Helps are greatly appreciated. Thanks. Jeffrey. Discover Yahoo! Get on-the-go sports scores, stock quotes, news and more. Check it out! http://discover.yahoo.com/mobile.html - 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 slow, it's in production, please help!
Yoo, Probably you already looked at it but : 1) Make sure not to use reloadable in context descriptions. 2) Start tomcat with optimal java parameters, concerning memory heap and stack 3) Make sure that connections to database are minimal, do requery if answer is always the same... Good luck, Greetings O. On 5/6/05, Jeffrey [EMAIL PROTECTED] wrote: I have a apache/tomcat environment that has some problems recently. The environment has the following: 1. Apache 1.3 2. Tomcat 5.0.28 (Max memory 384mb) 3. JDK 1.4.2_06 My apache has MaxClient set to 256 (apache default). The maxThread for tomcat is 500. The site is a database driven site. It seems working fine when load is low. But when there are more than 150 threads (from the sever status view of the tomcat manager), it's response time is very slow (5 - 10 minutes). I have tested the database connections, they seem responding fairly well. Interesting thing is that most of time the slow response time only happens when a user login. Once the user login and get the main menu page, the user will get a good response time. Is it related to KeepAlive connections. Another strange thing is that many threads always show up in the server status view on the tomcat html manager page even though I am sure the request has gone (I tested this by making a request, then close the browser). My CPU usage is low when the slowdown is experienced (Using the top command on this solaris box which has old solaris operating system 2.6? with 1GB memory. I set the session timeout time to 5 minutes, but in the session view of tomcat manager, I see message 30 - 40 minutes:136 sessions. How a session that is more than 30 minutes is still there. Maybe I don't understand this message correctly. Please advice. This is a production machine. Helps are greatly appreciated. Thanks. Jeffrey. Discover Yahoo! Get on-the-go sports scores, stock quotes, news and more. Check it out! http://discover.yahoo.com/mobile.html - 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 slow, it's in production, please help!
Yoo, Sorry bas typo, in 3) I meant, do NOT requery ;) Greetings O. On 5/6/05, Oto Bossert [EMAIL PROTECTED] wrote: Yoo, Probably you already looked at it but : 1) Make sure not to use reloadable in context descriptions. 2) Start tomcat with optimal java parameters, concerning memory heap and stack 3) Make sure that connections to database are minimal, do requery if answer is always the same... Good luck, Greetings O. On 5/6/05, Jeffrey [EMAIL PROTECTED] wrote: I have a apache/tomcat environment that has some problems recently. The environment has the following: 1. Apache 1.3 2. Tomcat 5.0.28 (Max memory 384mb) 3. JDK 1.4.2_06 My apache has MaxClient set to 256 (apache default). The maxThread for tomcat is 500. The site is a database driven site. It seems working fine when load is low. But when there are more than 150 threads (from the sever status view of the tomcat manager), it's response time is very slow (5 - 10 minutes). I have tested the database connections, they seem responding fairly well. Interesting thing is that most of time the slow response time only happens when a user login. Once the user login and get the main menu page, the user will get a good response time. Is it related to KeepAlive connections. Another strange thing is that many threads always show up in the server status view on the tomcat html manager page even though I am sure the request has gone (I tested this by making a request, then close the browser). My CPU usage is low when the slowdown is experienced (Using the top command on this solaris box which has old solaris operating system 2.6? with 1GB memory. I set the session timeout time to 5 minutes, but in the session view of tomcat manager, I see message 30 - 40 minutes:136 sessions. How a session that is more than 30 minutes is still there. Maybe I don't understand this message correctly. Please advice. This is a production machine. Helps are greatly appreciated. Thanks. Jeffrey. Discover Yahoo! Get on-the-go sports scores, stock quotes, news and more. Check it out! http://discover.yahoo.com/mobile.html - 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]
manager/admin login problem
Hi, I recently installed Crystal Reports XI on one of my servers. This included an installation of Tomcat. I am trying to log in to both the administration and manager consoles, but cannot get it to work. I have added the following record to the tomcat-users.xml file: user username=foo password=bar roles=admin,manager/ It will not allow me to log in with the new username and password. I also tried adding admin or manager to the roles list for one of the default users, but that did not work either. In some of the documentation, username is replaced with name, so I tried that too. Still no good. I am starting to think that maybe the logins aren't running off of the tomcat-users.xml file, but as far as I know, I did a standard installation. Maybe CR XI does a different type of install that I don't know about. Please advise me on how to log in to these two portals. Thanks, Phil Manheim GiveAnything.com -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.11.5 - Release Date: 5/4/2005
Re: Tomcat 5 slow, it's in production, please help!
What JK version do you use? To quote Mladen: You are probably using prefork mpm, so there is no way to control the number of connections to Tomcat in any way, trough mod_jk. You can limit it only by setting MaxClients in the httpd.conf to the maximum number desired. Because of pre-forking mechanism each child process will eventually establish a single connection to Tomcat, thus the number of connections will rise from StartServers to MaxClients. So there are two solutions for prefork. 1. Make maxThreads==MaxClients 2. Add connectionTimeout=2 to AJP connector. On 5/6/05, Jeffrey [EMAIL PROTECTED] wrote: I have a apache/tomcat environment that has some problems recently. The environment has the following: 1. Apache 1.3 2. Tomcat 5.0.28 (Max memory 384mb) 3. JDK 1.4.2_06 My apache has MaxClient set to 256 (apache default). The maxThread for tomcat is 500. The site is a database driven site. It seems working fine when load is low. But when there are more than 150 threads (from the sever status view of the tomcat manager), it's response time is very slow (5 - 10 minutes). I have tested the database connections, they seem responding fairly well. Interesting thing is that most of time the slow response time only happens when a user login. Once the user login and get the main menu page, the user will get a good response time. Is it related to KeepAlive connections. Another strange thing is that many threads always show up in the server status view on the tomcat html manager page even though I am sure the request has gone (I tested this by making a request, then close the browser). My CPU usage is low when the slowdown is experienced (Using the top command on this solaris box which has old solaris operating system 2.6? with 1GB memory. I set the session timeout time to 5 minutes, but in the session view of tomcat manager, I see message 30 - 40 minutes:136 sessions. How a session that is more than 30 minutes is still there. Maybe I don't understand this message correctly. Please advice. This is a production machine. Helps are greatly appreciated. Thanks. Jeffrey. Discover Yahoo! Get on-the-go sports scores, stock quotes, news and more. Check it out! http://discover.yahoo.com/mobile.html - 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 slow, it's in production, please help!
I actually have the reloadable set to true for my webapps. I will change it to false. Thanks for the remind. What optimal java parameters in your mind are important ? Thanks for taking look at this. --- Oto Bossert [EMAIL PROTECTED] wrote: Yoo, Probably you already looked at it but : 1) Make sure not to use reloadable in context descriptions. 2) Start tomcat with optimal java parameters, concerning memory heap and stack 3) Make sure that connections to database are minimal, do requery if answer is always the same... Good luck, Greetings O. On 5/6/05, Jeffrey [EMAIL PROTECTED] wrote: I have a apache/tomcat environment that has some problems recently. The environment has the following: 1. Apache 1.3 2. Tomcat 5.0.28 (Max memory 384mb) 3. JDK 1.4.2_06 My apache has MaxClient set to 256 (apache default). The maxThread for tomcat is 500. The site is a database driven site. It seems working fine when load is low. But when there are more than 150 threads (from the sever status view of the tomcat manager), it's response time is very slow (5 - 10 minutes). I have tested the database connections, they seem responding fairly well. Interesting thing is that most of time the slow response time only happens when a user login. Once the user login and get the main menu page, the user will get a good response time. Is it related to KeepAlive connections. Another strange thing is that many threads always show up in the server status view on the tomcat html manager page even though I am sure the request has gone (I tested this by making a request, then close the browser). My CPU usage is low when the slowdown is experienced (Using the top command on this solaris box which has old solaris operating system 2.6? with 1GB memory. I set the session timeout time to 5 minutes, but in the session view of tomcat manager, I see message 30 - 40 minutes:136 sessions. How a session that is more than 30 minutes is still there. Maybe I don't understand this message correctly. Please advice. This is a production machine. Helps are greatly appreciated. Thanks. Jeffrey. Discover Yahoo! Get on-the-go sports scores, stock quotes, news and more. Check it out! http://discover.yahoo.com/mobile.html - 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] Yahoo! Mail Stay connected, organized, and protected. Take the tour: http://tour.mail.yahoo.com/mailtour.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: manager/admin login problem
Look in the server.xml That is where you will find where the username and password is being looked up at. If the comments are there then they will explain the configuration. If there are no comments then download the matching version of Tomcat and look at the virgin server.xml for the comments. Doug - Original Message - From: Phil Manheim [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Friday, May 06, 2005 3:51 PM Subject: manager/admin login problem Hi, I recently installed Crystal Reports XI on one of my servers. This included an installation of Tomcat. I am trying to log in to both the administration and manager consoles, but cannot get it to work. I have added the following record to the tomcat-users.xml file: user username=foo password=bar roles=admin,manager/ It will not allow me to log in with the new username and password. I also tried adding admin or manager to the roles list for one of the default users, but that did not work either. In some of the documentation, username is replaced with name, so I tried that too. Still no good. I am starting to think that maybe the logins aren't running off of the tomcat-users.xml file, but as far as I know, I did a standard installation. Maybe CR XI does a different type of install that I don't know about. Please advise me on how to log in to these two portals. Thanks, Phil Manheim GiveAnything.com -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.11.5 - Release Date: 5/4/2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5 slow, it's in production, please help!
I use just mod_jk, not jk2 I believe. I do have connectionTimeout=2 set to AJP connector in server.xml Is there any performance issues with jk? Should I switch to jk2? Thanks. --- e [EMAIL PROTECTED] wrote: What JK version do you use? To quote Mladen: You are probably using prefork mpm, so there is no way to control the number of connections to Tomcat in any way, trough mod_jk. You can limit it only by setting MaxClients in the httpd.conf to the maximum number desired. Because of pre-forking mechanism each child process will eventually establish a single connection to Tomcat, thus the number of connections will rise from StartServers to MaxClients. So there are two solutions for prefork. 1. Make maxThreads==MaxClients 2. Add connectionTimeout=2 to AJP connector. On 5/6/05, Jeffrey [EMAIL PROTECTED] wrote: I have a apache/tomcat environment that has some problems recently. The environment has the following: 1. Apache 1.3 2. Tomcat 5.0.28 (Max memory 384mb) 3. JDK 1.4.2_06 My apache has MaxClient set to 256 (apache default). The maxThread for tomcat is 500. The site is a database driven site. It seems working fine when load is low. But when there are more than 150 threads (from the sever status view of the tomcat manager), it's response time is very slow (5 - 10 minutes). I have tested the database connections, they seem responding fairly well. Interesting thing is that most of time the slow response time only happens when a user login. Once the user login and get the main menu page, the user will get a good response time. Is it related to KeepAlive connections. Another strange thing is that many threads always show up in the server status view on the tomcat html manager page even though I am sure the request has gone (I tested this by making a request, then close the browser). My CPU usage is low when the slowdown is experienced (Using the top command on this solaris box which has old solaris operating system 2.6? with 1GB memory. I set the session timeout time to 5 minutes, but in the session view of tomcat manager, I see message 30 - 40 minutes:136 sessions. How a session that is more than 30 minutes is still there. Maybe I don't understand this message correctly. Please advice. This is a production machine. Helps are greatly appreciated. Thanks. Jeffrey. Discover Yahoo! Get on-the-go sports scores, stock quotes, news and more. Check it out! http://discover.yahoo.com/mobile.html - 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] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Users being logged out
Is there a way to stop the administration tool from restarting? -Original Message- From: Lutz Zetzsche [mailto:[EMAIL PROTECTED] Sent: Friday, May 06, 2005 12:26 AM To: Tomcat Users List Subject: Re: Users being logged out Hi Michol, Am Donnerstag, 5. Mai 2005 22:49 schrieb Murray, Michol: After I finish committing my changes for creating a user using the Tomcat Web server administration tool, if I have users logged in to my site I notice that all the users are logged out. What would cause this? Do you use the tomcat-users.xml als realm? In this case, the solution is very simple: When Tomcat first starts up, it loads all defined users and their associated information from the users file. Changes to the data in this file will not be recognized until Tomcat is restarted. - http://jakarta.apache.org/tomcat/tomcat-4.0-doc/realm-howto.html The administration tool restarts the server after you have made a change to the tomcat-users.xml file. Therefore all sessions and login information are lost. However, you can circumvent the problem if you change to a different realm. If you use a MySQL database for example, the server doesn't need a restart after you have made changes to the roles and resp. or users, because it doesn't cache the information but always gets it in realtime for the database. Best wishes Lutz - 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: manager/admin login problem
In server.xml, it has the path to tomcat-users.xml as the pathname. Is there something I am missing when adding the new user? I just opened up tomcat-users.xml in wordpad or notepad and added a line. It seemed like that was all that was necessary. Any other thoughts? Phil -Original Message- From: Parsons Technical Services [mailto:[EMAIL PROTECTED] Sent: Friday, May 06, 2005 4:17 PM To: Tomcat Users List Subject: Re: manager/admin login problem Look in the server.xml That is where you will find where the username and password is being looked up at. If the comments are there then they will explain the configuration. If there are no comments then download the matching version of Tomcat and look at the virgin server.xml for the comments. Doug - Original Message - From: Phil Manheim [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Friday, May 06, 2005 3:51 PM Subject: manager/admin login problem Hi, I recently installed Crystal Reports XI on one of my servers. This included an installation of Tomcat. I am trying to log in to both the administration and manager consoles, but cannot get it to work. I have added the following record to the tomcat-users.xml file: user username=foo password=bar roles=admin,manager/ It will not allow me to log in with the new username and password. I also tried adding admin or manager to the roles list for one of the default users, but that did not work either. In some of the documentation, username is replaced with name, so I tried that too. Still no good. I am starting to think that maybe the logins aren't running off of the tomcat-users.xml file, but as far as I know, I did a standard installation. Maybe CR XI does a different type of install that I don't know about. Please advise me on how to log in to these two portals. Thanks, Phil Manheim GiveAnything.com -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.11.5 - Release Date: 5/4/2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.11.5 - Release Date: 5/4/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.11.5 - Release Date: 5/4/2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: manager/admin login problem
Hi Phil, Am Freitag, 6. Mai 2005 21:51 schrieb Phil Manheim: I recently installed Crystal Reports XI on one of my servers. This included an installation of Tomcat. I am trying to log in to both the administration and manager consoles, but cannot get it to work. I have added the following record to the tomcat-users.xml file: user username=foo password=bar roles=admin,manager/ It will not allow me to log in with the new username and password. You don't mention that you have also defined the roles in the tomcat-users.xml: role rolename=manager/ role rolename=admin/ Have you missed to mention that, or have you missed to add them to the file? Best wishes Lutz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: manager/admin login problem
I did add those two lines as well. Is that all that is necessary to add new roles? Do I need to define those roles or their rights somewhere? Phil -Original Message- From: Lutz Zetzsche [mailto:[EMAIL PROTECTED] Sent: Friday, May 06, 2005 4:50 PM To: Tomcat Users List Subject: Re: manager/admin login problem Hi Phil, Am Freitag, 6. Mai 2005 21:51 schrieb Phil Manheim: I recently installed Crystal Reports XI on one of my servers. This included an installation of Tomcat. I am trying to log in to both the administration and manager consoles, but cannot get it to work. I have added the following record to the tomcat-users.xml file: user username=foo password=bar roles=admin,manager/ It will not allow me to log in with the new username and password. You don't mention that you have also defined the roles in the tomcat-users.xml: role rolename=manager/ role rolename=admin/ Have you missed to mention that, or have you missed to add them to the file? Best wishes Lutz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.11.5 - Release Date: 5/4/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.11.5 - Release Date: 5/4/2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: manager/admin login problem
Hi Phil Am Freitag, 6. Mai 2005 22:54 schrieb Phil Manheim: I did add those two lines as well. Is that all that is necessary to add new roles? Do I need to define those roles or their rights somewhere? No, if you have defined in the server.xml that the tomcat-users.xml will be used for user authentication then this is all you have to change. Did you restart the server after having changed the tomcat-users.xml? This is necessary to activate changes to this file. Best wishes Lutz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5 slow, it's in production, please help!
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, May 06, 2005 3:39 PM To: Jeffrey; Tomcat Users List Subject: RE: Tomcat 5 slow, it's in production, please help! There are certainly people here who understand this much better than I, but ESTABLISHED these connections are doing something or are capable of doing something TIME WAIT these connections are in the process of dying CLOSE WAIT FIN WAIT 2 They can't do anything useful but do occupy space until they are finally gone. If the browser just goes away and doesn't end the connection, the server has to wait for a while before ending it and waiting for responses that never come. -Original Message- From: Jeffrey [mailto:[EMAIL PROTECTED] Sent: Friday, May 06, 2005 3:10 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: Tomcat 5 slow, it's in production, please help! Thanks for reply. With netstat -n, I got numerous records. Please see the attached file if the following is hard to see. TCP Local AddressRemote AddressSwind Send-Q Rwind Recv-Q State - -- - -- --- 129.93.1.146.33544 129.93.1.146.12002 32768 0 32768 0 CLOSE_WAIT 129.93.1.146.33572 129.93.1.146.12002 32768 0 32768 0 CLOSE_WAIT 129.93.1.146.33573 129.93.1.146.12002 32768 0 32768 0 CLOSE_WAIT 127.0.0.1.33692 127.0.0.1.8009 32768 0 32768 0 ESTABLISHED 127.0.0.1.8009 127.0.0.1.33692 32768 0 32768 0 ESTABLISHED 127.0.0.1.33694 127.0.0.1.8009 32768 0 32768 0 ESTABLISHED 127.0.0.1.8009 127.0.0.1.33694 32768 0 32768 0 ESTABLISHED 127.0.0.1.33710 127.0.0.1.8009 32768 0 32768 0 ESTABLISHED [snip] too much stuff [snip] 129.93.1.146.443 164.119.68.37.2826 64186 0 8760 0 TIME_WAIT 129.93.1.146.443 24.27.148.239.2308 16365 0 8760 0 ESTABLISHED 129.93.1.146.443 164.119.68.37.2919 65535 0 8658 0 ESTABLISHED 129.93.1.146.36485 64.89.177.72.5 64677 0 9660 0 TIME_WAIT 127.0.0.1.8007 127.0.0.1.36488 32768 0 32768 0 TIME_WAIT 129.93.1.146.36487 64.89.177.72.5 64677 0 9660 0 TIME_WAIT 129.93.1.146.443 65.31.230.130.1206 11368 0 8760 0 FIN_WAIT_2 129.93.1.146.443 65.31.230.12.60763 17520 1087 8760 0 ESTABLISHED 129.93.1.146.443 129.93.120.170.1460 17520 0 8658 0 ESTABLISHED 129.93.1.146.36489 64.89.177.72.5 64677 0 9660 0 TIME_WAIT 127.0.0.1.36336 127.0.0.1.8009 32768 0 32768 0 TIME_WAIT 129.93.1.146.443 24.252.59.10.392316365 0 8760 0 ESTABLISHED 129.93.1.146.443 69.20.197.189.11999112 0 9016 0 ESTABLISHED 127.0.0.1.36491 127.0.0.1.8009 32768 0 32768 0 ESTABLISHED 127.0.0.1.8009 127.0.0.1.36491 32768 0 32768 0 ESTABLISHED 129.93.1.146.443 24.208.93.36.955425200 0 8682 0 ESTABLISHED --- [EMAIL PROTECTED] wrote: What does netstat -nt show? You may have enough connections going that old ones have to time out before you can establish a new one. -Original Message- From: Jeffrey [mailto:[EMAIL PROTECTED] Sent: Friday, May 06, 2005 2:16 PM To: tomcat-user@jakarta.apache.org Subject: Tomcat 5 slow, it's in production, please help! I have a apache/tomcat environment that has some problems recently. The environment has the following: 1. Apache 1.3 2. Tomcat 5.0.28 (Max memory 384mb) 3. JDK 1.4.2_06 My apache has MaxClient set to 256 (apache default). The maxThread for tomcat is 500. The site is a database driven site. It seems working fine when load is low. But when there are more than 150 threads (from the sever status view of the tomcat manager), it's response time is very slow (5 - 10 minutes). I have tested the database connections, they seem responding fairly well. Interesting thing is that most of time the slow response time only happens when a user login. Once the user login and get the main menu page, the user will get a good response time. Is it related to KeepAlive connections. Another strange thing is that many threads always show up in the server status view on the tomcat html manager page even though I am sure the request has gone (I tested this by making a request, then close the browser). My CPU usage is low when the slowdown is experienced (Using the top command on this solaris box which has old solaris operating system 2.6? with 1GB memory. I set the session timeout time to 5 minutes, but in the session view of tomcat manager, I see message 30 - 40 minutes:136 sessions. How a session that is more than 30 minutes is still there. Maybe I don't understand this message correctly. Please advice. This is a production machine. Helps
RE: manager/admin login problem
That was the problem. Thanks a lot. I guess I missed that step somehow. Thanks. Phil -Original Message- From: Lutz Zetzsche [mailto:[EMAIL PROTECTED] Sent: Friday, May 06, 2005 4:59 PM To: Tomcat Users List Subject: Re: manager/admin login problem Hi Phil Am Freitag, 6. Mai 2005 22:54 schrieb Phil Manheim: I did add those two lines as well. Is that all that is necessary to add new roles? Do I need to define those roles or their rights somewhere? No, if you have defined in the server.xml that the tomcat-users.xml will be used for user authentication then this is all you have to change. Did you restart the server after having changed the tomcat-users.xml? This is necessary to activate changes to this file. Best wishes Lutz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.11.5 - Release Date: 5/4/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.11.5 - Release Date: 5/4/2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
slightly OT - JndiLoginModule, JAAS and user bind
Is it possible to use the JndiLoginModule class with JAAS to connect to LDAP when the LDAP server only supports user binds. The LDAP server that I am trying to connect to does not provide user information when connecting anonymously. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to log the content-type??
Hi Someone know how to log the content-type of any request?? Thx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cannot download files with IE through tomcat. SSL with no-cache problems?
http://issues.apache.org/bugzilla/show_bug.cgi?id=27122 -Tim Donny R Rota wrote: On Apache Tomcat/5.0.28, I've got SLL installed, and whenever I try to download a doc file I get: Some files can harm your computer. If the file information below looks suspicious, or you do not fully trust the source, do not open or save this file File name: x.doc File type:Microsoft Word Document From:yyy.ibm.com Open Save Cancel More Info I click Open and then the folloing file download dialog comes up: Internet Explorer cannot download .doc from y.ibm.com Internet Explorer was not able to open this Internet Site. The requested site is either unavailable or cannot be found. Please try again later. OK Downloading works fine in FireFox. Downloading works fine if I turn off SSL. We have an apache server (full httpd server) inhouse where this type of SSL download works fine too. Is there a SSL no-cache setting I have to put in server.xml or something? Thanks ...Don... -- Don Rota, CTG Operations Rational Software, IBM Software Group 20 Maguire Road, Lexington, MA 02421-3104 Tel: 781 676 2655, Fax: 781 676 7645 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to log the content-type??
Sort of ... http://jakarta.apache.org/tomcat/tomcat-5.5-doc/catalina/docs/api/org/apache/catalina/valves/AccessLogValve.html But AccessLogValve doesn't support outgoing headers for logging. But a workaround is the create a filter which catches the HttpServletResponse.setContentType and sets the ContentType as a ServletRequestAttribute so you can use this syntax in a custom pattern when declaring the AccessLogVavle. %r{myContentTypeVariable} -Tim Juan Manuel Soler Rincón wrote: Hi Someone know how to log the content-type of any request?? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cannot download files with IE through tomcat. SSL with no-cache problems?
Hey! I had that problem too, and the fix is as sexy as any windows fix: Edit the registry! [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings] BypassSSLNoCacheCheck=dword:0001 This tells IE that it is OK to use cached data that was delivered over SSL. I know of no other way to set this value. Larry On 5/6/05, Donny R Rota [EMAIL PROTECTED] wrote: On Apache Tomcat/5.0.28, I've got SLL installed, and whenever I try to download a doc file I get: Some files can harm your computer. If the file information below looks suspicious, or you do not fully trust the source, do not open or save this file File name: x.doc File type: Microsoft Word Document From: yyy.ibm.com http://yyy.ibm.com Open Save Cancel More Info I click Open and then the folloing file download dialog comes up: Internet Explorer cannot download .doc from y.ibm.comhttp://y.ibm.com Internet Explorer was not able to open this Internet Site. The requested site is either unavailable or cannot be found. Please try again later. OK Downloading works fine in FireFox. Downloading works fine if I turn off SSL. We have an apache server (full httpd server) inhouse where this type of SSL download works fine too. Is there a SSL no-cache setting I have to put in server.xml or something? Thanks ...Don... -- Don Rota, CTG Operations Rational Software, IBM Software Group 20 Maguire Road, Lexington, MA 02421-3104 Tel: 781 676 2655, Fax: 781 676 7645 [EMAIL PROTECTED]
Tomcat Administration Server
All, Your help would be greatly appreciated on this possibly simple solution but one that is causing me great grief. Is there a way to stop the administration server after hitting commiting changes from restarting tomcat server? Please your help on this matter would be greatly appreciated. Thank you, Michol - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5 slow, it's in production, please help!
I think some of the problem is at the OS level You can set a session time at the tomcat level, but the default solaris TCP timeouts are hours long. I hope you used the ndd commands to set the TCP parameters for short web sessions. Also, Solaris 2.6 has a bad thread model and there are numerous patches required to run it with any recent Java 2 distributions. To use the 1.4.xxx JVM would require about a dozen patches. It would be way better to try to get Solaris 10 installed on this box -- It handles the ndd setting for you and is way faster on the same hardware. [even solaris 8...] -- Original message -- From: [EMAIL PROTECTED] What does netstat -nt show? You may have enough connections going that old ones have to time out before you can establish a new one. -Original Message- From: Jeffrey [mailto:[EMAIL PROTECTED] Sent: Friday, May 06, 2005 2:16 PM To: tomcat-user@jakarta.apache.org Subject: Tomcat 5 slow, it's in production, please help! I have a apache/tomcat environment that has some problems recently. The environment has the following: 1. Apache 1.3 2. Tomcat 5.0.28 (Max memory 384mb) 3. JDK 1.4.2_06 My apache has MaxClient set to 256 (apache default). The maxThread for tomcat is 500. The site is a database driven site. It seems working fine when load is low. But when there are more than 150 threads (from the sever status view of the tomcat manager), it's response time is very slow (5 - 10 minutes). I have tested the database connections, they seem responding fairly well. Interesting thing is that most of time the slow response time only happens when a user login. Once the user login and get the main menu page, the user will get a good response time. Is it related to KeepAlive connections. Another strange thing is that many threads always show up in the server status view on the tomcat html manager page even though I am sure the request has gone (I tested this by making a request, then close the browser). My CPU usage is low when the slowdown is experienced (Using the top command on this solaris box which has old solaris operating system 2.6? with 1GB memory. I set the session timeout time to 5 minutes, but in the session view of tomcat manager, I see message 30 - 40 minutes:136 sessions. How a session that is more than 30 minutes is still there. Maybe I don't understand this message correctly. Please advice. This is a production machine. Helps are greatly appreciated. Thanks. Jeffrey. Discover Yahoo! Get on-the-go sports scores, stock quotes, news and more. Check it out! http://discover.yahoo.com/mobile.html - 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: manager/admin login problem
I think you want to look for the CAtalina Realms that are commented out in the web.xml or server.xml files.This is where you set up security constraints. I amd still trying to figure out how to extend the catalina login methods with a new method to set a DB flag I'll take suggestions. -- Original message -- From: Phil Manheim [EMAIL PROTECTED] Hi, I recently installed Crystal Reports XI on one of my servers. This included an installation of Tomcat. I am trying to log in to both the administration and manager consoles, but cannot get it to work. I have added the following record to the tomcat-users.xml file: user username=foo password=bar roles=admin,manager/ It will not allow me to log in with the new username and password. I also tried adding admin or manager to the roles list for one of the default users, but that did not work either. In some of the documentation, username is replaced with name, so I tried that too. Still no good. I am starting to think that maybe the logins aren't running off of the tomcat-users.xml file, but as far as I know, I did a standard installation. Maybe CR XI does a different type of install that I don't know about. Please advise me on how to log in to these two portals. Thanks, Phil Manheim GiveAnything.com -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.11.5 - Release Date: 5/4/2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can Tomcat make log statistics like Apache?
Does Tomcat can generate a log file just like Apache or IIS? Thanks, Lorenzo - Si usted no es el destinatario indicado en este mensaje o responsable como persona de la entrega del mensaje, no debe copiar o reenviar este mensaje, por favor notifique al correo [EMAIL PROTECTED] Para más referencia sobre términos importantes relacionados a este correo visite http://www.nacion.com/disclaimer/index_es2.htm If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or send this message to anyone, please notify to [EMAIL PROTECTED] Click here for important additional terms relating to this e-mail. http://www.nacion.com/disclaimer/index_en2.htm - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can Tomcat make log statistics like Apache?
Yes, Just un-comment the AccessLogValve in your server.xml file Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=common resolveHosts=false/ On Fri, 2005-05-06 at 20:19, Lorenzo Jimnez wrote: Does Tomcat can generate a log file just like Apache or IIS? Thanks, Lorenzo - Si usted no es el destinatario indicado en este mensaje o responsable como persona de la entrega del mensaje, no debe copiar o reenviar este mensaje, por favor notifique al correo [EMAIL PROTECTED] Para ms referencia sobre trminos importantes relacionados a este correo visite http://www.nacion.com/disclaimer/index_es2.htm If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or send this message to anyone, please notify to [EMAIL PROTECTED] Click here for important additional terms relating to this e-mail. http://www.nacion.com/disclaimer/index_en2.htm - - 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 slow, it's in production, please help!
153 ESTABLISHED connections to port 443 553 connections to port 443 in the process of dying. 1420 connections total (Assuming I'm reading the output of wc correctly;) [EMAIL PROTECTED] tony]$ cat netstat.txt |grep ESTABLISHED|wc 6934851 55442 [EMAIL PROTECTED] tony]$ cat netstat.txt |grep CLOSE_WAIT|wc 101 7077980 [EMAIL PROTECTED] tony]$ cat netstat.txt |grep TIME_WAIT|wc 6104270 47590 [EMAIL PROTECTED] tony]$ cat netstat.txt |grep FIN_WAIT|wc 3 21 237 [EMAIL PROTECTED] tony]$ cat netstat.txt |wc 14209929 112098 [EMAIL PROTECTED] tony]$ cat netstat.txt |grep 127.0.0.1.8009|grep ESTABLISHED|wc 5123584 40960 [EMAIL PROTECTED] tony]$ cat netstat.txt |grep 127.0.0.1.8009|grep WAIT|wc 25 1751950 [EMAIL PROTECTED] tony]$ cat netstat.txt |grep 129.93.1.146.443|grep WAIT|wc 5533871 43222 [EMAIL PROTECTED] tony]$ cat netstat.txt |grep 129.93.1.146.443|grep ESTABLISHED|wc 1531071 12242 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, May 06, 2005 7:00 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: Tomcat 5 slow, it's in production, please help! I think some of the problem is at the OS level You can set a session time at the tomcat level, but the default solaris TCP timeouts are hours long. I hope you used the ndd commands to set the TCP parameters for short web sessions. Also, Solaris 2.6 has a bad thread model and there are numerous patches required to run it with any recent Java 2 distributions. To use the 1.4.xxx JVM would require about a dozen patches. It would be way better to try to get Solaris 10 installed on this box -- It handles the ndd setting for you and is way faster on the same hardware. [even solaris 8...] -- Original message -- From: [EMAIL PROTECTED] What does netstat -nt show? You may have enough connections going that old ones have to time out before you can establish a new one. -Original Message- From: Jeffrey [mailto:[EMAIL PROTECTED] Sent: Friday, May 06, 2005 2:16 PM To: tomcat-user@jakarta.apache.org Subject: Tomcat 5 slow, it's in production, please help! I have a apache/tomcat environment that has some problems recently. The environment has the following: 1. Apache 1.3 2. Tomcat 5.0.28 (Max memory 384mb) 3. JDK 1.4.2_06 My apache has MaxClient set to 256 (apache default). The maxThread for tomcat is 500. The site is a database driven site. It seems working fine when load is low. But when there are more than 150 threads (from the sever status view of the tomcat manager), it's response time is very slow (5 - 10 minutes). I have tested the database connections, they seem responding fairly well. Interesting thing is that most of time the slow response time only happens when a user login. Once the user login and get the main menu page, the user will get a good response time. Is it related to KeepAlive connections. Another strange thing is that many threads always show up in the server status view on the tomcat html manager page even though I am sure the request has gone (I tested this by making a request, then close the browser). My CPU usage is low when the slowdown is experienced (Using the top command on this solaris box which has old solaris operating system 2.6? with 1GB memory. I set the session timeout time to 5 minutes, but in the session view of tomcat manager, I see message 30 - 40 minutes:136 sessions. How a session that is more than 30 minutes is still there. Maybe I don't understand this message correctly. Please advice. This is a production machine. Helps are greatly appreciated. Thanks. Jeffrey. Discover Yahoo! Get on-the-go sports scores, stock quotes, news and more. Check it out! http://discover.yahoo.com/mobile.html - 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: Tomcat 5 slow, it's in production, please help!
it sounds like the problem is caused by a large number of connections dying holding things up. peter On 5/6/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: 153 ESTABLISHED connections to port 443 553 connections to port 443 in the process of dying. 1420 connections total (Assuming I'm reading the output of wc correctly;) [EMAIL PROTECTED] tony]$ cat netstat.txt |grep ESTABLISHED|wc 6934851 55442 [EMAIL PROTECTED] tony]$ cat netstat.txt |grep CLOSE_WAIT|wc 101 7077980 [EMAIL PROTECTED] tony]$ cat netstat.txt |grep TIME_WAIT|wc 6104270 47590 [EMAIL PROTECTED] tony]$ cat netstat.txt |grep FIN_WAIT|wc 3 21 237 [EMAIL PROTECTED] tony]$ cat netstat.txt |wc 14209929 112098 [EMAIL PROTECTED] tony]$ cat netstat.txt |grep 127.0.0.1.8009|grep ESTABLISHED|wc 5123584 40960 [EMAIL PROTECTED] tony]$ cat netstat.txt |grep 127.0.0.1.8009|grep WAIT|wc 25 1751950 [EMAIL PROTECTED] tony]$ cat netstat.txt |grep 129.93.1.146.443|grep WAIT|wc 5533871 43222 [EMAIL PROTECTED] tony]$ cat netstat.txt |grep 129.93.1.146.443|grep ESTABLISHED|wc 1531071 12242 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, May 06, 2005 7:00 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: Tomcat 5 slow, it's in production, please help! I think some of the problem is at the OS level You can set a session time at the tomcat level, but the default solaris TCP timeouts are hours long. I hope you used the ndd commands to set the TCP parameters for short web sessions. Also, Solaris 2.6 has a bad thread model and there are numerous patches required to run it with any recent Java 2 distributions. To use the 1.4.xxx JVM would require about a dozen patches. It would be way better to try to get Solaris 10 installed on this box -- It handles the ndd setting for you and is way faster on the same hardware. [even solaris 8...] -- Original message -- From: [EMAIL PROTECTED] What does netstat -nt show? You may have enough connections going that old ones have to time out before you can establish a new one. -Original Message- From: Jeffrey [mailto:[EMAIL PROTECTED] Sent: Friday, May 06, 2005 2:16 PM To: tomcat-user@jakarta.apache.org Subject: Tomcat 5 slow, it's in production, please help! I have a apache/tomcat environment that has some problems recently. The environment has the following: 1. Apache 1.3 2. Tomcat 5.0.28 (Max memory 384mb) 3. JDK 1.4.2_06 My apache has MaxClient set to 256 (apache default). The maxThread for tomcat is 500. The site is a database driven site. It seems working fine when load is low. But when there are more than 150 threads (from the sever status view of the tomcat manager), it's response time is very slow (5 - 10 minutes). I have tested the database connections, they seem responding fairly well. Interesting thing is that most of time the slow response time only happens when a user login. Once the user login and get the main menu page, the user will get a good response time. Is it related to KeepAlive connections. Another strange thing is that many threads always show up in the server status view on the tomcat html manager page even though I am sure the request has gone (I tested this by making a request, then close the browser). My CPU usage is low when the slowdown is experienced (Using the top command on this solaris box which has old solaris operating system 2.6? with 1GB memory. I set the session timeout time to 5 minutes, but in the session view of tomcat manager, I see message 30 - 40 minutes:136 sessions. How a session that is more than 30 minutes is still there. Maybe I don't understand this message correctly. Please advice. This is a production machine. Helps are greatly appreciated. Thanks. Jeffrey. Discover Yahoo! Get on-the-go sports scores, stock quotes, news and more. Check it out! http://discover.yahoo.com/mobile.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
forms authentication in cluster
Hi I have two tomcat servers 4.0.x with apache 1.3.x to load balance the requests. Now when a new browser is opened and i used forms based authentication it takes me to the correct page but when i submit that page the servlet gets executed which takes me to the login page instead of the next page it has to. Now i again login and it takes me to that next page and logoff and then login again and it behaves fine and i do this many times in the same browser it is fine. This happens only when a new browser is opened and it makes me authenticate twice with the authentication. I wanted to know if there is any modification to the login configuration is required if it is a clustered tomcat server. Please let me know. Thank you for your time Bharan - Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses.
Re: Configuring Separate Instances Using CATALINA_BASE
Peter, thanks for your tomcat instance (Catalina_base) installation process. It has been very helpful, but I have couple of questions (interleaved with your information, below). Hey Bill, here my simple catalina.base installation description: install jakarta-tomcat-5.5.x mkdir node1 cd node1 mkdir bin conf temp logs webapps work cd bin Since what follows, edits the startup scripts, I presume the above steps included a copy of $CATALINA_HOME/bin/ contents to node1/bin/ # windows edit startup.bat set CATALINA_BASE=.. set [EMAIL PROTECTED]@ set CATALINA_OPTS=-server [EMAIL PROTECTED]@m [EMAIL PROTECTED]@m %CATALINA_HOME%\bin\catalina run %1 %2 %3 %4 %5 %6 %7 %8 %9 edit shutdown.bat set CATALINA_BASE=.. set [EMAIL PROTECTED]@ %CATALINA_HOME%\bin\catalina stop %1 %2 %3 %4 %5 %6 %7 %8 %9 # unix edit startup.sh #!/bin/sh export CATALINA_BASE=.. export [EMAIL PROTECTED]@ export [EMAIL PROTECTED]@/logs/catalina.pid export CATALINA_OPTS=-server [EMAIL PROTECTED]@m [EMAIL PROTECTED]@m exec $CATALINA_HOME/bin/catalina.sh run $@ the following should be edit shutdown.sh, right? edit startup.sh #!/bin/sh export CATALINA_BASE=.. export [EMAIL PROTECTED]@ export [EMAIL PROTECTED]@/logs/catalina.pid exec $CATALINA_HOME/bin/catalina.sh stop $@ # unix cd ../conf and use cp cd ..\conf copy @[EMAIL PROTECTED]/\server-minimal.xml server.xml copy @[EMAIL PROTECTED] copy @[EMAIL PROTECTED] # only tomat 5.5 copy @[EMAIL PROTECTED] # optional copy @[EMAIL PROTECTED] copy @[EMAIL PROTECTED] mkdir Catalina\localhost # install manager app that reference the app inside catalina.home copy @[EMAIL PROTECTED] The above step of copying manager.xml (which is an xml fragment defining a tomcat context) raises a couple of questions: 1. Should we also copy admin.xml ? (we assign its security role to a user below) 2. Having our tomcat instance use the manager and admin files in $CATALINA_HOME/server/webapps means that those apps will be shared by all tomcat instances on a given host. This seems unsafe. If multiple instances need to use manager and/or admin, I assume we should copy these apps into our new instance (node1/webapps/ in this case) and adjust the the context definitions in node1/con/Catalina/local host accordingly. edit tomcat-users.xml # add role rolename=manager/ role rolename=admin/ user username=manager password=tomcat roles=manager,admin/ edit server.xml # change ports or at your special server.xml config elements cd ..\bin startup # Tomcat works # install you apps with copy to webapps or with manager app # next instance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fwd: forms authentication in cluster
Note: forwarded message attached. Yahoo! Mail Stay connected, organized, and protected. Take the tour---BeginMessage--- Hi I have two tomcat servers 4.0.x with apache 1.3.x to load balance the requests. Now when a new browser is opened and i used forms based authentication it takes me to the correct page but when i submit that page the servlet gets executed which takes me to the login page instead of the next page it has to. Now i again login and it takes me to that next page and logoff and then login again and it behaves fine and i do this many times in the same browser it is fine. This happens only when a new browser is opened and it makes me authenticate twice with the authentication. I wanted to know if there is any modification to the login configuration is required if it is a clustered tomcat server. Please let me know. Thank you for your time Bharan - Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses.---End Message--- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Configuring Separate Instances Using CATALINA_BASE
Hey Bill, Bill Winspur schrieb: Peter, thanks for your tomcat instance (Catalina_base) installation process. It has been very helpful, but I have couple of questions (interleaved with your information, below). Hey Bill, here my simple catalina.base installation description: install jakarta-tomcat-5.5.x mkdir node1 cd node1 mkdir bin conf temp logs webapps work cd bin Since what follows, edits the startup scripts, I presume the above steps included a copy of $CATALINA_HOME/bin/ contents to node1/bin/ No, you only reference the catalina.sh|bat script. You don't need a copy. # windows edit startup.bat set CATALINA_BASE=.. set [EMAIL PROTECTED]@ set CATALINA_OPTS=-server [EMAIL PROTECTED]@m [EMAIL PROTECTED]@m %CATALINA_HOME%\bin\catalina run %1 %2 %3 %4 %5 %6 %7 %8 %9 edit shutdown.bat set CATALINA_BASE=.. set [EMAIL PROTECTED]@ %CATALINA_HOME%\bin\catalina stop %1 %2 %3 %4 %5 %6 %7 %8 %9 # unix edit startup.sh #!/bin/sh export CATALINA_BASE=.. export [EMAIL PROTECTED]@ export [EMAIL PROTECTED]@/logs/catalina.pid export CATALINA_OPTS=-server [EMAIL PROTECTED]@m [EMAIL PROTECTED]@m exec $CATALINA_HOME/bin/catalina.sh run $@ the following should be edit shutdown.sh, right? Sorry a copy/paste failure! Hups! edit startup.sh #!/bin/sh export CATALINA_BASE=.. export [EMAIL PROTECTED]@ export [EMAIL PROTECTED]@/logs/catalina.pid exec $CATALINA_HOME/bin/catalina.sh stop $@ # unix cd ../conf and use cp cd ..\conf copy @[EMAIL PROTECTED]/\server-minimal.xml server.xml copy @[EMAIL PROTECTED] copy @[EMAIL PROTECTED] # only tomat 5.5 copy @[EMAIL PROTECTED] # optional copy @[EMAIL PROTECTED] copy @[EMAIL PROTECTED] mkdir Catalina\localhost # install manager app that reference the app inside catalina.home copy @[EMAIL PROTECTED] The above step of copying manager.xml (which is an xml fragment defining a tomcat context) raises a couple of questions: 1. Should we also copy admin.xml ? (we assign its security role to a user below) Yes, look inside the xml context definition a you see that we used directly the ${catalina.home} env variable. It is a trick. You can used every env (-Dvariable} inside server.xml and all context.xml's. At Tomcat 5.5 you must install the separate admin package at you jakarta-tomcat.5.5.9 directory. 2. Having our tomcat instance use the manager and admin files in $CATALINA_HOME/server/webapps means that those apps will be shared by all tomcat instances on a given host. This seems unsafe. Why, it is unsafe? Every Host has is't own instance copy and nothing is shared at runtime! It is only a reuse of the classes files and resources. If multiple instances need to use manager and/or admin, I assume we should copy these apps into our new instance (node1/webapps/ in this case) and adjust the the context definitions in node1/con/Catalina/local host accordingly. No, you can reference the release app versions is better. When you switch the tomcat release, you also used the newest manager and admin release without your intervention. edit tomcat-users.xml # add role rolename=manager/ role rolename=admin/ user username=manager password=tomcat roles=manager,admin/ edit server.xml # change ports or at your special server.xml config elements cd ..\bin startup # Tomcat works # install you apps with copy to webapps or with manager app # next instance - 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]