Re: Html tagging
On Tue, Aug 12, 2008 at 2:32 PM, Stefan Oestreicher [EMAIL PROTECTED] wrote: if there is nothing in the ROOT directory that you need (what I suspect, since you wanted to put a redirect document there) you can delete it and rename the dspace.war to ROOT.war. Tomcat will then unpack that war to the ROOT directory and your application should then be accessible directly through http://your.host/ Stefen, i have made it. Your mail helped me a lot! Please check the link: http://dspace.bracu.ac.bd/ Here, you can see that, the tomcat page shows it`s face here, though i put CONTENT=0 there in html tag. Now, can you please help me that, how can i *reduce* the time of tomcat page loading...?? It looks bad when tomcat takes a lot of time to load our dspace. -- Best, Z
Re: My Log4j statements going crazy in catalina.out
Any suggestion on this? thanks emerson On 08/08/2008, emerson cargnin [EMAIL PROTECTED] wrote: Hi there sorry for the lack of information. I'm running tomcat 5.5.26. logging.properties are in the tomcat/conf folder. My log4j file is inside tomcat/bin/resources This is the location where all our resources files are located, to make transparent the migration from resin to tomcat. I can be sure it is been read as my tomcat/logs/work.log is being written to, using the proper log level. Thanks very much Emerson My log4j file: # Log4J Property File # com.company.* packages with the logging level set to ERROR # note that this version of the property will set Log4J to log to a file, # send emails, and log to /dev/console log4j.category.com.company=ERROR, FILEAPPENDER # Stop that HttpClient in AvailabilityMonitor from spamming... log4j.logger.org.apache.commons.httpclient=ERROR log4j.logger.httpclient.wire=ERROR #Mobile log configuration log4j.category.com.company.mobilesearch=ERROR, MOBILEFILEAPPENDER log4j.category.com.company.mobilenatretriever=ERROR, MOBILEFILEAPPENDER # version of the above property that will set Log4J to only log to a file log4j.category.com.company.java.logging.BottleNeckLogger=ERROR, BOTTLENECKAPPENDER # FILEAPPENDER PROPERTIES # FILEAPPENDER is set to be FileAppender sending its output to com.company.log log4j.appender.FILEAPPENDER=org.apache.log4j.RollingFileAppender log4j.appender.FILEAPPENDER.MaxFileSize=10MB log4j.appender.FILEAPPENDER.MaxBackupIndex=7 log4j.appender.FILEAPPENDER.File=/opt/resin/tomcat/logs/work.log log4j.appender.FILEAPPENDER.layout=org.apache.log4j.PatternLayout log4j.appender.FILEAPPENDER.layout.ConversionPattern=%d [%t-${server_name}] %-5p %c - %m%n # FILEAPPENDER PROPERTIES # FILEAPPENDER is set to be FileAppender sending its output to com.company.log log4j.appender.MOBILEFILEAPPENDER=org.apache.log4j.RollingFileAppender log4j.appender.MOBILEFILEAPPENDER.MaxFileSize=10MB log4j.appender.MOBILEFILEAPPENDER.MaxBackupIndex=7 log4j.appender.MOBILEFILEAPPENDER.File=/opt/resin/tomcat/logs/mobileWork.log log4j.appender.MOBILEFILEAPPENDER.layout=org.apache.log4j.PatternLayout log4j.appender.MOBILEFILEAPPENDER.layout.ConversionPattern=%d [%t-${server_name}] %-5p %c - %m%n # BOTTLENECKAPPENDER PROPERTIES # BOTTLENECKAPPENDER is used to log CGI requests that take 3 seconds log4j.appender.BOTTLENECKAPPENDER=org.apache.log4j.RollingFileAppender log4j.appender.BOTTLENECKAPPENDER.MaxFileSize=10MB log4j.appender.BOTTLENECKAPPENDER.MaxBackupIndex=7 log4j.appender.BOTTLENECKAPPENDER.File=/opt/resin/tomcat/logs/bottleneck.log log4j.appender.BOTTLENECKAPPENDER.layout=org.apache.log4j.PatternLayout log4j.appender.BOTTLENECKAPPENDER.layout.ConversionPattern=%d [%t-${server_name}] %-5p %c - %m%n -- My loggings.properties: -- # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the License); you may not use this file except in compliance with # the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an AS IS BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. handlers = 1catalina.org.apache.juli.FileHandler, 2localhost.org.apache.juli.FileHandler, 3manager.org.apache.juli.FileHandler, 4admin.org.apache.juli.FileHandler, 5host-manager.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler .handlers = 1catalina.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler # Handler specific properties. # Describes specific configuration info for Handlers. 1catalina.org.apache.juli.FileHandler.level = INFO 1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs 1catalina.org.apache.juli.FileHandler.prefix = catalina. 2localhost.org.apache.juli.FileHandler.level = INFO 2localhost.org.apache.juli.FileHandler.directory =
RE: tomcat5.5 site configuration.
Thanks that solved my problem. -Original Message- From: Hassan Schroeder [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 12, 2008 6:33 PM To: Tomcat Users List Subject: Re: tomcat5.5 site configuration. On Tue, Aug 12, 2008 at 8:20 AM, Shahar Cohen [EMAIL PROTECTED] wrote: when I put in my browser anyone of the URLS I don't get my web site. Engine name=Catalina defaultHost=localhost Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase / # Host name=localhost appBase=webapps / I hope you don't actually have a '#' in your server.xml -- it's not an XML comment :-) In any case, your default host is set to 'localhost' ; put your actual config information there. Host name=10.10.10.12 appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false And FWIW it's not recommended to put Context elements in server.xml; name your default app ROOT (or ROOT.war) and put any config info into META-INF/context.xml in the webapp. Context path= docBase=xxx reloadable=true swallowOutput=true WatchedResourceWEB-INF/web.xml/WatchedResource /Context HTH, -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat5.5 site configuration.
Thanks that solved my problem. -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 12, 2008 6:38 PM To: Tomcat Users List Subject: Re: tomcat5.5 site configuration. Shahar Cohen wrote: Rmove this line: # Host name=localhost appBase=webapps / Change this line: Host name=10.10.10.12 appBase=webapps to: Host name=localhost appBase=webapps Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AJP Proxying
Hi, When you move Tomcat to another machine, no Host matches and you get a 400 error. The problem was that I was hitting the loadbalancer with name lb1 or www.mysite.com. This was being proxied to machines called tomcat1, tomcat2 etc. Changing the alias to www.mysite.com seems to have fixed this. Note that name=tomcat1 plus Aliastomcat1/Alias doesn't get you anything ;) Do you mean that the alias is redundant? S. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AJP Proxying
On Tue, Aug 12, 2008 at 9:40 PM, Caldarale, Charles R [EMAIL PROTECTED] wrote: Stephen Nelson-Smith wrote: My server.xml was not originally written by me, and has been handed down and modified over the ages. It was originally from Tomcat 4.1 This is generally a really bad idea. I thought it might be... I just had the sense that this was a rather nasty stone under which some nasty things might be hiding. You need to take the standard server.xml that comes with the particular Tomcat release you're using and modify it with whatever you need for your environment, such as Resource elements. Blindly adding all the junk from older levels will bite you. Yep - I will do just this. The guideline in the definitive guide (2nd ed) seem helpful, but I do find some of the terminology confusing. Will sing out if I get really stuck. S. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to delete \work\Catalina subdirectorys every time tomcat loads
Hello all i need to be able to remove the cache directory's in the tomcat 6 every time tomcat starting is there some kind of build in method or acceptable way to do that ? thanks allot - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Rational purify with tomcat 5.5 gives an error
Good Morning Kumar- Have you looked at utilising Purify to instrument the abending dll ? e.g. Make sure the pplus_install/common and pplus_install/PurifyPlus directories are in the path. Instrument kernel32.dll: purify -selective_instrumentation -selected_module_list=kernel32.dll,p for Windows build 5716+ DLL's .. http://www-128.ibm.com/developerworks/forums/thread.jspa?messageID=13721259#13721259 Warm Regards Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. From: [EMAIL PROTECTED] To: users@tomcat.apache.org Date: Wed, 13 Aug 2008 10:42:34 +0530 Subject: Rational purify with tomcat 5.5 gives an error Hi Everyone, I am trying to run tomcat 5.5 with Rational Purify to test my web application for any potential memory leakages. I have run pstart -setup and set set JAVA_HOME, _JAVA_OPTIONS environment variables. But when I run tomcat with this command catalina.bat start I get the following error === C:\tomcat55\bincatalina.bat run start Using CATALINA_BASE: C:\tomcat55 Using CATALINA_HOME: C:\tomcat55 Using CATALINA_TMPDIR: C:\tomcat55\temp Using JAVA_HOME: C:\Program Files\Java\jdk1.5.0_02 Picked up _JAVA_OPTIONS: -XrunPureJVMPI:Purify # # An unexpected error has been detected by HotSpot Virtual Machine: # # Internal Error (0xe06d7363), pid=6060, tid=1320 # # Java VM: Java HotSpot(TM) Client VM (1.5.0_02-b09 mixed mode, sharing) # Problematic frame: # C [kernel32.dll+0x12a5b] # # An error report file with more information is saved as hs_err_pid6060.log # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # === Could anyone please help me for resolve this issue. I am stuck on this since long. Thanks in advance Thanks and Regards PRADEEP KUMAR Solution Architect +91 99100 71728 | Bharti Telesoft Ltd. New Delhi-20 | Extension: 1311 This e-mail and all material transmitted with it are for the use of the intended recipient(s) ONLY and contains confidential and/or privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies and the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken pursuant to the contents of the present e-mail is strictly prohibited and is unlawful. The recipient acknowledges that Bharti Telesoft Limited or its management or directors, are unable to exercise control or ensure the integrity over /of the contents of the information contained in e-mail. Any views expressed herein are those of the individual sender only and no binding nature of the contents shall be implied or assumed unless the sender does so expressly with due authority of Bharti Telesoft Limited. E-mail and any contents transmitted with it are prone to viruses and related defects despite all efforts to avoid such by Bharti Telesoft Limited. _ Your PC, mobile phone, and online services work together like never before. http://clk.atdmt.com/MRT/go/108587394/direct/01/
RE: CGIServlet in Tomcat 6
grant tomcat access to CGIServlet.jar edit $TOMCAT_HOME/conf/catalina.policy grant codeBase file:${catalina.home}/webapps/YourWebApp/WEB-INF/lib/CGIServlet.jar { permission java.security.AllPermission; }; HTH Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Tue, 12 Aug 2008 14:32:50 -0500 From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: Re: CGIServlet in Tomcat 6 See Thread at: http://www.techienuggets.com/Detail?tx=4877 Posted on behalf of a User Add it where exactly? In $CATALINA_HOME/conf/context.xml? In $CATALINA_HOME/conf/server.xml? Please provide the exact path and a snippet of the code... In Response To: Hi all, I'm using CGI servlet in Tomcat 5 without any problem, but with Tomcat 6 I get this error when deploying my web application: java.lang.SecurityException: Servlet of class org.apache.catalina.servlets.CGIServlet is privileged and cannot be loaded by this web application In Tomcat 6, I noticed that the servlet-cgi.jar is now part of catalina.jar, but that's it. thanks a lot for any advice. Yannick compete error message: java.lang.SecurityException: Servlet of class org.apache.catalina.servlets.CGIServlet is privileged and cannot be loaded by thisweb application at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1134) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4044) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:451) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:552) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) - To start a new topic, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Got Game? Win Prizes in the Windows Live Hotmail Mobile Summer Games Trivia Contest http://www.gowindowslive.com/summergames?ocid=TXT_TAGHM
RE: Clustering failing over with Tomcat 6.0.16
Does it take time for nodeA to resync the sessions after it comes back up? Could Sharad be shutting down nodeB too early? --Angus Mezick -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Monday, August 11, 2008 11:07 PM To: Tomcat Users List Subject: Re: Clustering failing over with Tomcat 6.0.16 nope, it should work both ways Gupta, Sharad wrote: Hi, I have a cluster of Tomcat 6.0.16 using DeltaManager. Session replication works fine, failover works fine for the first time. That is, the first time I failover from, lets say, nodeA to nodeB, my session is carried over the user continues with the existing logged in session without being asked to log back in. But the problem happens when nodeA comes backup nodeB needs to be shutdown. The session information is somehow, not carried over as my app asks me to relogin at that point in time. Is this a desired behaviour with DeltaManager? Thanks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CGIServlet in Tomcat 6
Martin Gainty wrote: grant tomcat access to CGIServlet.jar edit $TOMCAT_HOME/conf/catalina.policy grant codeBase file:${catalina.home}/webapps/YourWebApp/WEB-INF/lib/CGIServlet.jar { permission java.security.AllPermission; }; HTH That won't help at all. The CGIServlet bypasses the security policy. The privileged attribute needs to be set on the context. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: My Log4j statements going crazy in catalina.out
Well, I guess you should v´have a vanilla start with log4j. Therefore: 1st make sure that you've got all necessary libs installed in the appropriate folders (guess you're fine here, otherwise no logs would show up) 2nd create a file $catalina_home/common/classes/log4j.xml with the following content: ?xml version=1.0 encoding=UTF-8 ? !DOCTYPE log4j:configuration SYSTEM log4j.dtd log4j:configuration xmlns:log4j=http://jakarta.apache.org/log4j/; !-- Tomcat Daily Rolling File Appender TRACE, DEBUG, INFO -- appender name=TomcatDailyFileAppenderInfo class=org.apache.log4j.DailyRollingFileAppender param name=datePattern value='.'-MM-dd / param name=Append value=true / param name=file value=${catalina.home}/logs/tomcat.log.INFO / layout class=org.apache.log4j.PatternLayout param name=ConversionPattern value=%d{ISO8601}\t%-5p\t%X{session}\t%X{file}\t[%t]:\t%m%n / /layout filter class=org.apache.log4j.varia.LevelRangeFilter param name=LevelMax value=INFO/ param name=LevelMin value=TRACE/ param name=AcceptOnMatch value=true/ /filter /appender !-- Tomcat Daily Rolling File Appender WARNING -- appender name=TomcatDailyFileAppenderWarning class=org.apache.log4j.DailyRollingFileAppender param name=datePattern value='.'-MM-dd / param name=Append value=true / param name=file value=${catalina.home}/logs/tomcat.log.WARN / layout class=org.apache.log4j.PatternLayout param name=ConversionPattern value=%d{ISO8601}\t%-5p\t%X{session}\t%X{file}\t[%t]:\t%m%n / /layout filter class=org.apache.log4j.varia.LevelRangeFilter param name=LevelMax value=WARNING/ param name=LevelMin value=WARNING/ param name=AcceptOnMatch value=true/ /filter /appender !-- Tomcat Daily Rolling File Appender ERROR -- appender name=TomcatDailyFileAppenderError class=org.apache.log4j.DailyRollingFileAppender param name=datePattern value='.'-MM-dd / param name=Append value=true / param name=file value=${catalina.home}/logs/tomcat.log.ERROR / layout class=org.apache.log4j.PatternLayout param name=ConversionPattern value=%d{ISO8601}\t%-5p\t%X{session}\t%X{file}\t[%t]:\t%m%n / /layout filter class=org.apache.log4j.varia.LevelRangeFilter param name=LevelMax value=ERROR/ param name=LevelMin value=ERROR/ param name=AcceptOnMatch value=true/ /filter /appender !-- Tomcat Daily Rolling File Appender FATAL -- appender name=TomcatDailyFileAppenderFatal class=org.apache.log4j.DailyRollingFileAppender param name=datePattern value='.'-MM-dd / param name=Append value=true / param name=file value=${catalina.home}/logs/tomcat.log.FATAL / layout class=org.apache.log4j.PatternLayout param name=ConversionPattern value=%d{ISO8601}\t%-5p\t%X{session}\t%X{file}\t[%t]:\t%m%n / /layout filter class=org.apache.log4j.varia.LevelRangeFilter param name=LevelMax value=FATAL/ param name=LevelMin value=FATAL/ param name=AcceptOnMatch value=true/ /filter /appender root level value=info / appender-ref ref=TomcatDailyFileAppenderInfo / appender-ref ref=TomcatDailyFileAppenderWarning / appender-ref ref=TomcatDailyFileAppenderError / appender-ref ref=TomcatDailyFileAppenderFatal / /root /log4j:configuration 3rd make sure you have the file log4j.dtd in $catalina_home/common/classes That's it. If you want your webapp to log, just create the webapp's log4j.xml in $WEBAPP/WEB-INF/classes HTH Gregor -- what's puzzlin' you, is the nature of my game gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: where can i get tocat admin package
I am having the same problem. I have looked here: http://apache.mirror.facebook.com/tomcat/tomcat-6/ and in the lower directories. No mention of the admin pack. Where would it be hiding? Even if I look at 6.0 in the archives, there is no admin app. Has it not been ported over to 6.0? --Angus Mezick x7619 -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 12, 2008 3:11 AM To: Tomcat Users List Subject: Re: where can i get tocat admin package tunzaw wrote: Hi Where can i get tomcat admin package? I want to use http://localhost:8080/admin. When i attempt to use this url ,tomcat say tomcat admin tool do not already install.Where can i download tomcat admin package? Have you tried the download pages? Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat admin packagep
When I go to the LambdaProbe site I see this: It is also compatible with Tomcat5 versions 5.0.x and 5.5.x. After poking at the forums it seems that it also works with 6.0. Guess they need some website updates. Link: http://www.lambdaprobe.org/d/index.htm --Angus Mezick -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 12, 2008 10:17 AM To: Tomcat Users List Subject: Re: tomcat admin package 5) Everyone may as well switch to LambdaProbe, which is much nicer, anyway. - -chris
Re: where can i get tocat admin package
Angus Mezick wrote: I am having the same problem. I have looked here: http://apache.mirror.facebook.com/tomcat/tomcat-6/ and in the lower directories. No mention of the admin pack. Where would it be hiding? Even if I look at 6.0 in the archives, there is no admin app. Has it not been ported over to 6.0? The admin app doesn't exist in the 6.0.x releases Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Clustering failing over with Tomcat 6.0.16
I have tried different time periods, it still is reproducible ... -Original Message- From: Angus Mezick [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2008 8:49 AM To: Tomcat Users List Subject: RE: Clustering failing over with Tomcat 6.0.16 Does it take time for nodeA to resync the sessions after it comes back up? Could Sharad be shutting down nodeB too early? --Angus Mezick -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Monday, August 11, 2008 11:07 PM To: Tomcat Users List Subject: Re: Clustering failing over with Tomcat 6.0.16 nope, it should work both ways Gupta, Sharad wrote: Hi, I have a cluster of Tomcat 6.0.16 using DeltaManager. Session replication works fine, failover works fine for the first time. That is, the first time I failover from, lets say, nodeA to nodeB, my session is carried over the user continues with the existing logged in session without being asked to log back in. But the problem happens when nodeA comes backup nodeB needs to be shutdown. The session information is somehow, not carried over as my app asks me to relogin at that point in time. Is this a desired behaviour with DeltaManager? Thanks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: where can i get tocat admin package
There is no admin pack for tomcat 6. It has no maintainer and hasn't been updated in a long time. --David Angus Mezick wrote: I am having the same problem. I have looked here: http://apache.mirror.facebook.com/tomcat/tomcat-6/ and in the lower directories. No mention of the admin pack. Where would it be hiding? Even if I look at 6.0 in the archives, there is no admin app. Has it not been ported over to 6.0? --Angus Mezick x7619 -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 12, 2008 3:11 AM To: Tomcat Users List Subject: Re: where can i get tocat admin package tunzaw wrote: Hi Where can i get tomcat admin package? I want to use http://localhost:8080/admin. When i attempt to use this url ,tomcat say tomcat admin tool do not already install.Where can i download tomcat admin package? Have you tried the download pages? Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to delete \work\Catalina subdirectorys every time tomcat loads
im using windows server 2003 the method is starting tomcat as service question : do i need to run script ? doest it need to be in the tomcat config somewhere ? thanks On Wed, Aug 13, 2008 at 3:42 PM, Angus Mezick [EMAIL PROTECTED] wrote: You could edit the startup command script to delete the directory before the start command is run. I am not too sure about the windows services if that is what you are using. It would help if you told us the operating system and method of starting tomcat. --Angus Mezick -Original Message- From: Meir Yanovich [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2008 6:23 AM To: users@tomcat.apache.org Subject: how to delete \work\Catalina subdirectorys every time tomcat loads Hello all i need to be able to remove the cache directory's in the tomcat 6 every time tomcat starting is there some kind of build in method or acceptable way to do that ? thanks allot - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat monitoring
I want to monitor performance of Tomcat server when I'm running an application. Memory usage, threads, objects, user sessions, sql queries and as much as possible of other information on server. Where can i find tools for this? Regards -- View this message in context: http://www.nabble.com/Tomcat-monitoring-tp18963920p18963920.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Logging for Dummies in Tomcat 5.5/6.0
If I redirect log4j logs as described int he page below, is it not adivisable to remove the console redirection to catalina.out? http://minaret.biz/tips/tomcatLogging.html#tomcat_5_5_logging emerson On 20/06/2008, Mark Thomas [EMAIL PROTECTED] wrote: André Warnier wrote: To attempt a summary of the discussions so far, it sems that there are two distinct groups : Tomcat developers, and Tomcat users, There might be two lists but I don't think it is quite that simple. The standard ASF definitions can be found here http://www.apache.org/foundation/how-it-works.html#roles The developers seem to be happy with the logging and its documentation as it is, and consider it clear, or at least accessible. The users, as far as I can tell from the correspondence I receive, generally have a different opinion. This is less a user/developer(actually committer in ASF terms) issue and more one how complex your environment is. For the simple environments, the Tomcat 4 appeared to be fine although often there were some nasty memory leaks hiding in the background. For the complex ones there was a world of pain trying to get logging configured. There were often instances of the logs for webapp A being logged to webapp B. The root causes of this were many. Take a look at the dev archive and/or Bugzilla if you want more info. I believe that the difference of opinions rests basically on the following : at some point in time, the developers of Tomcat - who it should be remembered do this for free - decided that maintaining Tomcat's own logging mechanism wasn't really worth their time and efforts, considering that there existed already a couple of external libraries (packages?) which did the job better anyway. This is not correct. I encourage you to read the code, or at least the build.properties.default file, before making such assertions. TC4 to TC6 all use commons logging. They thus split that part off, allowing them to concentrate on more interesting and rewarding parts of the code. Also not true. The TC4 logging simply wasn't up to the job. See above. And they have no intention of moving back. Absolutely. You are not goign to find any committer prepared to replace a working logging system with a broken one. Them being the developers of a product offered free of charge, nobody can or should discuss their decision or blame them for it. Anyone is free to join the developers list and discuss ways of improving the code. It helps a lot if you are prepared to roll up your sleeves and contribution bug reports, test cases or patches (to code or documentation). What I personally believe they forgot at that point, is that there are many users of Tomcat who are not pure Java or Tomcat developers; that these users, having acquired over time a reasonable understanding of how to use Tomcat - if not necessarily how it works inside - now suddenly are faced with the need to get acquainted with a whole bunch of things of which they do not have a clue (commons-logging, juli, log4j), which per se do not really interest them (because they are not mainly Java developers) and which by themselves require quite an investment in time in order to start understanding how they work. In this case bits needed to be replaced so it actually worked. Along the way the configuration process was changed. Given the choice between the old and the new, I'd take the implementation that actually works every time. snip/ I don't think I need to continue. Mere Tomcat users will understand what I mean, and Tomcat developers can imagine what the average bloke using Tomcat occasionally, thinks when he stumbles upon this. (And yes, it is from a particular packaging of Tomcat, but that's not the point here; the official one is not simpler). Different people will have different views on the simplicity of the logging. If all you want to do is make a small change I don't think there is much difference. If you want to understand it, TC4 looks simpler but the class-loading complexities which are not at all obvious at first glance (or after several hours pouring over the code) will come back to bite you when you think you understand what is going on. Now above I am playing somewhat dumb, because since this thread started, I have already started to understand some aspects of the above. But even with this increased understanding, my basic feeling about it remains that it looks like a gigantic overkill and waste of time compared to the needs - and time available for this - of most Tomcat users. To look at it another way, by making this change, and for most simple cases, one has replaced 3 lines inserted in server.xml or context.xml, by hundreds of lines all over the place (I am counting the docs, because they are needed now, and they were not before). I can imagine on the other hand that for developers this might be an immense improvement, but again that's not the
RE: Tomcat monitoring
From: Tokajac [mailto:[EMAIL PROTECTED] Subject: Tomcat monitoring I want to monitor performance of Tomcat server when I'm running an application. Start with these: http://www.lambdaprobe.org http://moskito.anotheria.net You can also use JMX (e.g., JConsole) for much of the information, and there are numerous commercial products available. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Communicating on the Tomcat admin port
Is there a way to communicate with Tomcat via the admin port but not have to use the web interface? We're looking at completely automating our deployment process and it would be nice if we could send a signal to Tomcat to shutdown via the command-line. Additionally, if it is possible, are there other things one can do via the admin port? Thanks, --adam - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Mail could not be delivered
Can someone plz remove me from this email user list :( I already set my new email ID to Tomcat Users List. Warm Regards, Pranab Das Senior Software Engineer BirlaSoft H - 9, Sector - 63, Noida 201306, India +91 120 662 9367 Phone +91 981 050 9123 Cell [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 12, 2008 11:07 PM To: users@tomcat.apache.org Subject: FW: Mail could not be delivered Importance: High Hello Team, I tried to unsubscribe from this email list, but got mail undelivered message, could someone unsubscribe me from this email list, so that I could use or subscribe with my new email ID. Please help me. Thanks in advance. Warm Regards, Pranab Das Senior Software Engineer BirlaSoft H - 9, Sector - 63, Noida 201306, India +91 120 662 9367 Phone +91 981 050 9123 Cell [EMAIL PROTECTED] -Original Message- From: InterScan MSS Notification [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 12, 2008 11:02 PM To: Pranab Das Subject: Mail could not be delivered ** Message from InterScan Messaging Security Suite ** Sent RCPT TO:[EMAIL PROTECTED] Received 550 mail to [EMAIL PROTECTED] not accepted here Unable to deliver message to [EMAIL PROTECTED]. End of message ** * This message and any attachments are solely for the intended recipient and may contain Birlasoft confidential or privileged information. If you are not the intended recipient,any disclosure,copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail at ([EMAIL PROTECTED]) and permanently delete this message and any attachments. Thank you. * * This message and any attachments are solely for the intended recipient and may contain Birlasoft confidential or privileged information. If you are not the intended recipient,any disclosure,copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail at ([EMAIL PROTECTED]) and permanently delete this message and any attachments. Thank you. * - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Mail could not be delivered
As mark mentioned in previous posting please read the instructions located at bottom of each posting Regards Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Subject: RE: Mail could not be delivered Date: Wed, 13 Aug 2008 20:36:29 +0530 From: [EMAIL PROTECTED] To: users@tomcat.apache.org Can someone plz remove me from this email user list :( I already set my new email ID to Tomcat Users List. Warm Regards, Pranab Das Senior Software Engineer BirlaSoft H - 9, Sector - 63, Noida 201306, India +91 120 662 9367 Phone +91 981 050 9123 Cell [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 12, 2008 11:07 PM To: users@tomcat.apache.org Subject: FW: Mail could not be delivered Importance: High Hello Team, I tried to unsubscribe from this email list, but got mail undelivered message, could someone unsubscribe me from this email list, so that I could use or subscribe with my new email ID. Please help me. Thanks in advance. Warm Regards, Pranab Das Senior Software Engineer BirlaSoft H - 9, Sector - 63, Noida 201306, India +91 120 662 9367 Phone +91 981 050 9123 Cell [EMAIL PROTECTED] -Original Message- From: InterScan MSS Notification [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 12, 2008 11:02 PM To: Pranab Das Subject: Mail could not be delivered ** Message from InterScan Messaging Security Suite ** Sent RCPT TO:[EMAIL PROTECTED] Received 550 mail to [EMAIL PROTECTED] not accepted here Unable to deliver message to [EMAIL PROTECTED]. End of message ** * This message and any attachments are solely for the intended recipient and may contain Birlasoft confidential or privileged information. If you are not the intended recipient,any disclosure,copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail at ([EMAIL PROTECTED]) and permanently delete this message and any attachments. Thank you. * * This message and any attachments are solely for the intended recipient and may contain Birlasoft confidential or privileged information. If you are not the intended recipient,any disclosure,copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail at ([EMAIL PROTECTED]) and permanently delete this message and any attachments. Thank you. * - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Get more from your digital life. Find out how. http://www.windowslive.com/default.html?ocid=TXT_TAGLM_WL_Home2_082008
Re: Logging for Dummies in Tomcat 5.5/6.0
According to this text from http://minaret.biz/tips/tomcatLogging.html#tomcat_5_5_logging : The configuration described here results in the creation of two log files for Tomcat 5.5 and three log files for Tomcat 5.0: the Servlet log file (only with Tomcat 5.0), which will roll over to a new file every night; the Commons Logging data via log4j (which will also roll over every night) and the catalina.out file, which will only contain messages that have been printed to standard output and standard error. The last file will grow forever but well behaved applications within your Tomcat server should not be printing to standard out or error, so this should not really be an issue (in general, the file should remain zero length). I created the log4j.properties and it is actually produced with log statements, but catalina.out still gets the same logstatements plus system.out's. Another thing, the logging.properties has any impact on which application logs are written? regards emerson On 13/08/2008, emerson cargnin [EMAIL PROTECTED] wrote: If I redirect log4j logs as described int he page below, is it not adivisable to remove the console redirection to catalina.out? http://minaret.biz/tips/tomcatLogging.html#tomcat_5_5_logging emerson On 20/06/2008, Mark Thomas [EMAIL PROTECTED] wrote: André Warnier wrote: To attempt a summary of the discussions so far, it sems that there are two distinct groups : Tomcat developers, and Tomcat users, There might be two lists but I don't think it is quite that simple. The standard ASF definitions can be found here http://www.apache.org/foundation/how-it-works.html#roles The developers seem to be happy with the logging and its documentation as it is, and consider it clear, or at least accessible. The users, as far as I can tell from the correspondence I receive, generally have a different opinion. This is less a user/developer(actually committer in ASF terms) issue and more one how complex your environment is. For the simple environments, the Tomcat 4 appeared to be fine although often there were some nasty memory leaks hiding in the background. For the complex ones there was a world of pain trying to get logging configured. There were often instances of the logs for webapp A being logged to webapp B. The root causes of this were many. Take a look at the dev archive and/or Bugzilla if you want more info. I believe that the difference of opinions rests basically on the following : at some point in time, the developers of Tomcat - who it should be remembered do this for free - decided that maintaining Tomcat's own logging mechanism wasn't really worth their time and efforts, considering that there existed already a couple of external libraries (packages?) which did the job better anyway. This is not correct. I encourage you to read the code, or at least the build.properties.default file, before making such assertions. TC4 to TC6 all use commons logging. They thus split that part off, allowing them to concentrate on more interesting and rewarding parts of the code. Also not true. The TC4 logging simply wasn't up to the job. See above. And they have no intention of moving back. Absolutely. You are not goign to find any committer prepared to replace a working logging system with a broken one. Them being the developers of a product offered free of charge, nobody can or should discuss their decision or blame them for it. Anyone is free to join the developers list and discuss ways of improving the code. It helps a lot if you are prepared to roll up your sleeves and contribution bug reports, test cases or patches (to code or documentation). What I personally believe they forgot at that point, is that there are many users of Tomcat who are not pure Java or Tomcat developers; that these users, having acquired over time a reasonable understanding of how to use Tomcat - if not necessarily how it works inside - now suddenly are faced with the need to get acquainted with a whole bunch of things of which they do not have a clue (commons-logging, juli, log4j), which per se do not really interest them (because they are not mainly Java developers) and which by themselves require quite an investment in time in order to start understanding how they work. In this case bits needed to be replaced so it actually worked. Along the way the configuration process was changed. Given the choice between the old and the new, I'd take the implementation that actually works every time. snip/ I don't think I need to continue. Mere Tomcat users will understand what I mean, and Tomcat developers can imagine what the average bloke using Tomcat occasionally, thinks when he stumbles upon this. (And yes, it is from a particular packaging of Tomcat, but that's not the point here; the official one is not simpler). Different people will
How to set jvmRoute outside of server.xml
Hi: I am trying to find a way to set the jvmRoute without putting it in my server.xml. I'm using 6.0.18. I've found a couple of things: The Tomcat config reference System Properties section says I can set it on the java command line with a -DjvmRoute option. This did not work. Another source on the web said that I could set a -D option on the command line and then reference that as a variable within server.xml (java ... -Doption=value ..., and then in server.xml, jvmRoute=${option}. This did not work either. By testing to see if it works I'm going to the servlet examples and inspecting the Session ID in the Sessions Example. Any help would be greatly appreciated. Bill _ Reveal your inner athlete and share it with friends on Windows Live. http://revealyourinnerathlete.windowslive.com?locale=en-usocid=TXT_TAGLM_WLYIA_whichathlete_us - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: https j_security_check
Hi, I was checking the http in my application and the server response is a 302 ... what could possibly do this when using https ... could it be something related to the URL ... or how could the server get confused given that with http it works fine. TIA, Julio César _ Discover the new Windows Vista http://search.msn.com/results.aspx?q=windows+vistamkt=en-USform=QBRE
Re: https j_security_check
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Julio, Julio César Chaves Fernández wrote: | I was checking the http in my application and the server response is | a 302 ... what could possibly do this when using https ... could it | be something related to the URL ... or how could the server get | confused given that with http it works fine. Are you switching between HTTP and HTTPS? Some folks try to use HTTPS for the login and then redirect to HTTP for the rest of the application. That doesn't work unless the session cookie has been created from a non-secure URL. Otherwise the cookie itself is marked as secure and won't be sent by your browser when you switch back to HTTP. Could this be your problem? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkijBCIACgkQ9CaO5/Lv0PD5/QCfVCw6UgMkYilZqsVUnKRQAznX 8xwAni9vqVdMJpHV7Z0jJQoTqicT3Ct3 =hk6b -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AJP Proxying
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Stephen, Stephen Nelson-Smith wrote: | Note that name=tomcat1 plus Aliastomcat1/Alias doesn't get you | anything ;) | | Do you mean that the alias is redundant? Yeah. Name='foo' plus alias='foo' is the same as leaving the alias off. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkijBMAACgkQ9CaO5/Lv0PB75QCgj95eqHMypf0o9lAbLXy5n65u aWgAnjGEiMrTRlmKXzMoL8idaXyvxL7t =Djwc -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Communicating on the Tomcat admin port
This page shows how to use ant to execute commands against the manager. http://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html And this is all about using the JMXRemote stuff: http://tomcat.apache.org/tomcat-6.0-doc/monitoring.html --Angus Mezick -Original Message- From: Adam Gordon [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2008 10:59 AM To: Tomcat Users List Subject: Communicating on the Tomcat admin port Is there a way to communicate with Tomcat via the admin port but not have to use the web interface? We're looking at completely automating our deployment process and it would be nice if we could send a signal to Tomcat to shutdown via the command-line. Additionally, if it is possible, are there other things one can do via the admin port? Thanks, --adam - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to set jvmRoute outside of server.xml
Bill- jvmRoute is an Engine Config parameter Are you running more than 1 tomcat? http://raibledesigns.com/tomcat/ Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: How to set jvmRoute outside of server.xml Date: Wed, 13 Aug 2008 08:25:33 -0700 Hi: I am trying to find a way to set the jvmRoute without putting it in my server.xml. I'm using 6.0.18. I've found a couple of things: The Tomcat config reference System Properties section says I can set it on the java command line with a -DjvmRoute option. This did not work. Another source on the web said that I could set a -D option on the command line and then reference that as a variable within server.xml (java ... -Doption=value ..., and then in server.xml, jvmRoute=${option}. This did not work either. By testing to see if it works I'm going to the servlet examples and inspecting the Session ID in the Sessions Example. Any help would be greatly appreciated. Bill _ Reveal your inner athlete and share it with friends on Windows Live. http://revealyourinnerathlete.windowslive.com?locale=en-usocid=TXT_TAGLM_WLYIA_whichathlete_us - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Got Game? Win Prizes in the Windows Live Hotmail Mobile Summer Games Trivia Contest http://www.gowindowslive.com/summergames?ocid=TXT_TAGHM
Re: removal of product name/version
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tommy, Tommy Pham wrote: | Thanks all for the reply. Somehow I missed that attribute. Looks | I'll have to define the error-pages. If I specify in the web.xml in | the conf folder, does apply to all web apps deployed for that | host/virtual host? I would imagine so. You could easily try it with your web application deployed multiple times. | And what happens if certain web apps define their | own error-page in in it's own web.xml? Does the web app's definition | override the host/virtual host's? That's what I would expect. TOMCAT_HOME/conf/web.xml is supposed to be the default configuration. Any application should be able to override these defaults. Just remember that setting an eror-page in TOMCAT_HOME/conf/web.xml is going to have to point to a resource that actually exists. That puts a dependency on a webapp that is not guaranteed to be deployed -- so watch out! - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkijBVsACgkQ9CaO5/Lv0PCJfgCfYODRK4YxP726O5rvX0vFBToX GGUAnjrxIj9d/AtuhvJqcxhkXaAEa3/H =Ki9/ -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Application failed to start - debug suggestions wanted
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 James, [EMAIL PROTECTED] wrote: | application failed to start : Error in dependencyCheck | java.util.zip.ZipException: invalid entry CRC Sounds like a corrupted ZIP file (duh). It might not be your WAR file, though: it might be any of the libraries that you deployed along with your webapp, or it might be something in the TOMCAT_HOME/common/lib or TOMCAT_HOME/shared/lib or TOMCAT_HOME/lib (depending on your version of TC) directories. I'd recommend running unzip -t on each JAR file to verify that they're good to go. If you use FTP to transfer files, remember to set the transfer mode to BINARY. If you use CVS to store JAR files, remember to turn off keyword expansion (-kb) when adding those files to the repository. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkijBk0ACgkQ9CaO5/Lv0PAeHQCfRu3mnyCe4wIV6m74yY/WBYOB aLIAoLgbMMNld9DJRBlxbVAuA5uMj1gT =xL6N -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Image rendering problem in Tomcat 5.5.12
I know this question seems totally without logic. I have tested it on another tomcat, which is on a web server and it worked fineI have no idea what the problem was with my machine or tomcatI know that tomcat does not influence the size of an image...some error has occurred somewhere in the system, and I couldn't figure out where I hope that I will not encounter it when deploying in the web server ! Thanks for your reply anyway ! Atti -Original Message- From: Hassan Schroeder [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 12, 2008 6:19 PM To: Tomcat Users List Subject: Re: Image rendering problem in Tomcat 5.5.1 On Tue, Aug 12, 2008 at 8:13 AM, Szűcs Attila [EMAIL PROTECTED] wrote: I forgot to mention that the design, when opened outside of tomcat (just the plain html file with css and images) looks all right, so the css and the html files are good. The other strange thing is that when I copy the blurry html's code and paste it in a plain html and open the file (without tomcat) everything works fine. I can't imagine how Tomcat could be influencing the display size of images -- can you send a URL demonstrating this problem? -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Rational purify with tomcat 5.5 gives an error
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pradeep, Pradeep_ Kumar wrote: | Picked up _JAVA_OPTIONS: -XrunPureJVMPI:Purify Does your application fail when Purify is /not/ used? Is this error repeatable with any regularity? Can you give us the contents of the hs_err_pid6060.log file? That would certainly help. | # | # An unexpected error has been detected by HotSpot Virtual Machine: | # | # Internal Error (0xe06d7363), pid=6060, tid=1320 | # | # Java VM: Java HotSpot(TM) Client VM (1.5.0_02-b09 mixed mode, sharing) | # Problematic frame: | # C [kernel32.dll+0x12a5b] | # | # An error report file with more information is saved as hs_err_pid6060.log | # | # If you would like to submit a bug report, please visit: | # http://java.sun.com/webapps/bugreport/crash.jsp | # - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkijBvEACgkQ9CaO5/Lv0PDjEgCgrBpZc4n/X+xDd9kiZoxSxvfJ d1MAoLk6zM36ZcrcUFCcIZxESyyB1yVZ =JfnY -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to set jvmRoute outside of server.xml
Martin: Yes, I am running more than one tomcat in a load balanced environment, and am trying to do so with a shared config file, as the jvmroute is the only thing that changes in the server.xml. I was hoping to find a way to specify the jvmroute parameter other than in the Engine config (or elsewhere in the config file). If I can use a command line system property, then I can modify the start script to pass unique jvmroutes and keep the configs the same across instances (makes management a bit easier). Bill From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: RE: How to set jvmRoute outside of server.xml Date: Wed, 13 Aug 2008 12:00:30 -0400 Bill- jvmRoute is an Engine Config parameter Are you running more than 1 tomcat? http://raibledesigns.com/tomcat/ Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: How to set jvmRoute outside of server.xml Date: Wed, 13 Aug 2008 08:25:33 -0700 Hi:I am trying to find a way to set the jvmRoute without putting it in my server.xml. I'm using 6.0.18. I've found a couple of things: The Tomcat config reference System Properties section says I can set it on the java command line with a -DjvmRoute option. This did not work. Another source on the web said that I could set a -D option on the command line and then reference that as a variable within server.xml (java ... -Doption=value ..., and then in server.xml, jvmRoute=${option}. This did not work either.By testing to see if it works I'm going to the servlet examples and inspecting the Session ID in the Sessions Example.Any help would be greatly appreciated.Bill _ Reveal your inner athlete and share it with friends on Windows Live. http://revealyourinnerathlete.windowslive.com?locale=en-usocid=TXT_TAGLM_WLYIA_whichathlete_us - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Got Game? Win Prizes in the Windows Live Hotmail Mobile Summer Games Trivia Contest http://www.gowindowslive.com/summergames?ocid=TXT_TAGHM _ Get more from your digital life. Find out how. http://www.windowslive.com/default.html?ocid=TXT_TAGLM_WL_Home2_082008
RE: https j_security_check
No i'm working with https all the time ... when it's only over http the application works ... it's just that i've been reading about something related to j_security_check and that it adds port 80 to the url ... so i don't know if it's related to my problem... i read this in http://www.velocityreviews.com/forums/t145712-load-balancing-an-https-java-web-application-in-tomcat.html ... may be i'm wrong or i don't have the right idea ... but when i saw that 302 the only thing that came to my mind was some problem related to the url and the server not finding the associated resources ... i'm checking if maybe thats the reason... Julio César Date: Wed, 13 Aug 2008 11:56:19 -0400 From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: Re: https j_security_check -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Julio, Julio César Chaves Fernández wrote: | I was checking the http in my application and the server response is | a 302 ... what could possibly do this when using https ... could it | be something related to the URL ... or how could the server get | confused given that with http it works fine. Are you switching between HTTP and HTTPS? Some folks try to use HTTPS for the login and then redirect to HTTP for the rest of the application. That doesn't work unless the session cookie has been created from a non-secure URL. Otherwise the cookie itself is marked as secure and won't be sent by your browser when you switch back to HTTP. Could this be your problem? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkijBCIACgkQ9CaO5/Lv0PD5/QCfVCw6UgMkYilZqsVUnKRQAznX 8xwAni9vqVdMJpHV7Z0jJQoTqicT3Ct3 =hk6b -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Explore the seven wonders of the world http://search.msn.com/results.aspx?q=7+wonders+worldmkt=en-USform=QBRE
Re: https j_security_check
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Julio, Julio César Chaves Fernández wrote: | No i'm working with https all the time ... when it's only over http | the application works ... it's just that i've been reading about | something related to j_security_check and that it adds port 80 to the | url Tomcat does not add port 80 to the URL. It uses whatever port was already being used. | ... so i don't know if it's related to my problem... i read this | in | http://www.velocityreviews.com/forums/t145712-load-balancing-an-https-java-web-application-in-tomcat.html | ... may be i'm wrong or i don't have the right idea ... but when i | saw that 302 the only thing that came to my mind was some problem | related to the url and the server not finding the associated | resources ... i'm checking if maybe thats the reason... Where does the 302 send you? Back to the login-error page? Are you sure that the only difference between a working configuration and a non-working configuration is the use of HTTPs? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkijCesACgkQ9CaO5/Lv0PA3cwCfUeM4okC0y2h7QQlTcb5p4w2R zPkAn09q7o10IodI+udoVCSLz92HDFOS =E4Jq -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to set jvmRoute outside of server.xml
Bill Shaffer wrote: Hi: I am trying to find a way to set the jvmRoute without putting it in my server.xml. I'm using 6.0.18. I've found a couple of things: The Tomcat config reference System Properties section says I can set it on the java command line with a -DjvmRoute option. This did not work. Another source on the web said that I could set a -D option on the command line and then reference that as a variable within server.xml (java ... -Doption=value ..., and then in server.xml, jvmRoute=${option}. This did not work either. Given that both these options should work, it sounds like you are not setting JAVA_OPTS properly. How are you setting this at the moment? Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: https j_security_check
The 302 sends me back to the login page ... honestly i can't totally blame https ... i tested the applicaction with https via JSSE and it works (this was done in my pc)... but when i changed the application to another server https became the main issue where before it wasn't ... so i'm trying to find what the real problem is ... it's just that the only thing different between the working and the not working application is the use of https. Julio César Date: Wed, 13 Aug 2008 12:20:59 -0400 From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: Re: https j_security_check -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Julio, Julio César Chaves Fernández wrote: | No i'm working with https all the time ... when it's only over http | the application works ... it's just that i've been reading about | something related to j_security_check and that it adds port 80 to the | url Tomcat does not add port 80 to the URL. It uses whatever port was already being used. | ... so i don't know if it's related to my problem... i read this | in | http://www.velocityreviews.com/forums/t145712-load-balancing-an-https-java-web-application-in-tomcat.html | ... may be i'm wrong or i don't have the right idea ... but when i | saw that 302 the only thing that came to my mind was some problem | related to the url and the server not finding the associated | resources ... i'm checking if maybe thats the reason... Where does the 302 send you? Back to the login-error page? Are you sure that the only difference between a working configuration and a non-working configuration is the use of HTTPs? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkijCesACgkQ9CaO5/Lv0PA3cwCfUeM4okC0y2h7QQlTcb5p4w2R zPkAn09q7o10IodI+udoVCSLz92HDFOS =E4Jq -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx
Re: Clustering failing over with Tomcat 6.0.16
It resyncs upon startup. can you provide a simple test case for us, the more you provide, the faster we can get you an answer Filip Gupta, Sharad wrote: I have tried different time periods, it still is reproducible ... -Original Message- From: Angus Mezick [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2008 8:49 AM To: Tomcat Users List Subject: RE: Clustering failing over with Tomcat 6.0.16 Does it take time for nodeA to resync the sessions after it comes back up? Could Sharad be shutting down nodeB too early? --Angus Mezick -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Monday, August 11, 2008 11:07 PM To: Tomcat Users List Subject: Re: Clustering failing over with Tomcat 6.0.16 nope, it should work both ways Gupta, Sharad wrote: Hi, I have a cluster of Tomcat 6.0.16 using DeltaManager. Session replication works fine, failover works fine for the first time. That is, the first time I failover from, lets say, nodeA to nodeB, my session is carried over the user continues with the existing logged in session without being asked to log back in. But the problem happens when nodeA comes backup nodeB needs to be shutdown. The session information is somehow, not carried over as my app asks me to relogin at that point in time. Is this a desired behaviour with DeltaManager? Thanks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Session values don't replicate under certain circumstances
that's correct. there are a number of frameworks that detect these kind of changes, Tomcat doesn't, everything is triggered by setAttribute/removeAttribute Filip Adrian Gligor wrote: Hello, i have a working Tomcat 6.0.18 cluster with session replication using DeltaManager and load balancing using mod_jk. The following problem does not depend on having sticky sessions either on or off. I'm putting an object into the session, and set one of its members: vo = new ValueObject(); vo.name = testvalue; request.getSession().setAttribute(valueobject, vo); The object is correctly propagated onto all cluster nodes. I'm testing this by setting sticky sessions off and printing the node name and object value on each refresh. My requests bounce between the nodes as expected, but the value of my object stays the same. However, if I subsequently change the member, replication doesn't trigger. It's like Tomcat doesn't detect the change: ValueObject vo = (ValueObject) request.getSession().getAttribute(valueobject); vo.name = testvalue2; By doing this, my nodes are now out of sync. If I put the object into the session again (setAttribute), the changes get replicated. However, I have a big application here, and it would be very complicated to find all occurences of this pattern. My question is, is this behavior by design, or a bug? And is there any way to work around it without changing (too much) code? I would appreciate any hint. Adrian PS: I have attached the source code and .war file of a very simple test application that will demonstrate this behavior. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat v4.1 - Resource not found 500 Error - Help!
YES, it very much could be...I'd updated my JRE from it's current level and then stuff did not compile afterward either. And I'm also using 4.1. I'm at the point where I badly need to update my JDK, Tomcat version and JRE to get in the 21st century, but unfortunately, I've got some opposition at other levels making it impossible currently. If you updated the JRE, you might want to consider reverting back. -Original Message- From: cfrankland [mailto:[EMAIL PROTECTED] Sent: Monday, August 11, 2008 8:23 PM To: users@tomcat.apache.org Subject: Tomcat v4.1 - Resource not found 500 Error - Help! Hi, I am a bit new to Tomcat, but have a really quick question. I am trying to deploy a new single class file to an existing Tomcat 4.1 web application, however, I am using Rational Application Developer 7.0 to create and compile the class. When I deploy the new class to the Tomcat 4.1 web application, the page crashes with a 500 error Resource not found. What could be causing this error? When I put the old class back in everything works ok. I have even tried using identical code, so I know it isn't a coding issue. Could it be the JRE being used to compile the class is the wrong type? Any help would be much appreciated! Thanks :) -- View this message in context: http://www.nabble.com/Tomcat-v4.1---Resource-not-found-500-Error---Help% 21-tp18936624p18936624.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
startup order for deployment
Hi! I'm using tomcat as a webserver in my eclipse installation. I have some webservice calls from my webapplication and add both my projects to the tomcat server. The problem is that I can not determine the order to start the applications. Is there a way to first start deploy a war, and do this in a certain order? Thanks! -- View this message in context: http://www.nabble.com/startup-order-for-deployment-tp18967318p18967318.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat monitoring
Thx for Your answer, Chuck ! So far, i've found lambdaprobe more useful. i'm still looking around. Do U have any advice about SQL debug? I already have iBatis log and p6spy. Is there any other useful tool for queries? Regards -- View this message in context: http://www.nabble.com/Tomcat-monitoring-tp18963920p18967324.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to set jvmRoute outside of server.xml
Mark: Okay, I feel like an idiot. I did some more testing after your comments and found that I was probably hitting a cache problem in my browser. Both methods I that I tried yesterday seem to work find today when I close my browser with each restart. Sorry for wasting resources... Bill Date: Wed, 13 Aug 2008 17:24:52 +0100 From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: Re: How to set jvmRoute outside of server.xml Bill Shaffer wrote: Hi:I am trying to find a way to set the jvmRoute without putting it in my server.xml. I'm using 6.0.18. I've found a couple of things:The Tomcat config reference System Properties section says I can set it on the java command line with a -DjvmRoute option. This did not work.Another source on the web said that I could set a -D option on the command line and then reference that as a variable within server.xml (java ... -Doption=value ..., and then in server.xml, jvmRoute=${option}. This did not work either. Given that both these options should work, it sounds like you are not setting JAVA_OPTS properly. How are you setting this at the moment? Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Get more from your digital life. Find out how. http://www.windowslive.com/default.html?ocid=TXT_TAGLM_WL_Home2_082008
Tomcat 6.0.12 in windows vista 64 bits does not start
Hi, i am having trouble starting up the tomcat server in windows vista 64bits with java 64 all others applications useing java works fine, the log sais: --- [2008-08-13 13:16:16] [info] Procrun (2.0.4.0) started [2008-08-13 13:16:16] [info] Running Service... [2008-08-13 13:16:16] [info] Starting service... [2008-08-13 13:16:16] [174 javajni.c] [error] %1 is not a valid Win32 application. [2008-08-13 13:16:16] [994 prunsrv.c] [error] Failed creating java C:\Program Files\Java\jdk1.6.0_07\jre\bin\server\jvm.dll [2008-08-13 13:16:16] [1269 prunsrv.c] [error] ServiceStart returned 1 [2008-08-13 13:16:16] [info] Run service finished. [2008-08-13 13:16:16] [info] Procrun finished. - misc info: C:\Program Files\Java\jdk1.6.0_07\jre\bin\server\jvm.dll does exist and sizes 5.776.384 bytes (maybe it's corrupted?)(if so, would others applications work?) i don't know if this is of any importance but i've set the system enviromental variables JAVA_HOME to C:\Program Files\Java\jdk1.6.0_07 and PATH to C:\Program Files\Java\jdk1.6.0_07\bin thanks in advance ¡Buscá desde tu celular! Yahoo! oneSEARCH ahora está en Claro http://ar.mobile.yahoo.com/onesearch - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: https j_security_check
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Julio, Julio César Chaves Fernández wrote: | The 302 sends me back to the login page ... honestly i can't totally | blame https ... i tested the applicaction with https via JSSE and it | works (this was done in my pc)... but when i changed the application | to another server https became the main issue where before it wasn't | ... so i'm trying to find what the real problem is ... it's just that | the only thing different between the working and the not working | application is the use of https. If you moved the application to another server, is it possible that the login itself is actually failing, and Tomcat is reacting correctly? One of my complaints about TC's authenticator is that it tends to swallow errors. You might try to write a little test on the new server to see if you can correctly access your user database. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkijHYcACgkQ9CaO5/Lv0PCYpwCff97yGzzjteCe6NPrVmVV0XmP 8LIAoKqGTkkbfvwIorRXRlMUa5y6KkWG =PKpu -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CGIServlet in Tomcat 6
2008/8/13 Mark Thomas [EMAIL PROTECTED]: The privileged attribute needs to be set on the context. In your own web application create a file, META-INF/context.xml, with the following content: ?xml version=1.0 encoding=UTF-8? Context privileged=true / See the manager application for an example. Then redeploy your application, and it should work. Contexts are documented here: http://tomcat.apache.org/tomcat-6.0-doc/config/context.html http://tomcat.apache.org/tomcat-6.0-doc/deployer-howto.html#A%20word%20on%20Contexts - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Rational purify with tomcat 5.5 gives an error
Hi Christopher, I am using jdk1.5.0_02,tomcat 5.5, and Rational Purify for windows version 2003.06.12.280.000 Build: 5101. When I try to run to tomcat using the following command after setting _JAVA_OPTIONS: -XrunPureJVMPI:Purify environment variable. My tomcat does not get started at all. And I get already mentioned error. Although Rational Purify gets started with that error. Yes this error occurs every time when I run my tomcat with Rational Purify. Please have a look at the error file given below === hs_err_pid6060.log file== # # An unexpected error has been detected by HotSpot Virtual Machine: # # Internal Error (0xe06d7363), pid=6060, tid=1320 # # Java VM: Java HotSpot(TM) Client VM (1.5.0_02-b09 mixed mode, sharing) # Problematic frame: # C [kernel32.dll+0x12a5b] # --- T H R E A D --- Current thread (0x00038ca8): JavaThread main [_thread_in_native, id=1320] siginfo: ExceptionCode=0xe06d7363, ExceptionInformation=0x19930520 0x0007d984 0x1003e1f0 Registers: EAX=0x0007d8c8, EBX=0x04523245, ECX=0x, EDX=0x044d0e38 ESP=0x0007d8c4, EBP=0x0007d918, ESI=0x0007d958, EDI=0x0007d958 EIP=0x7c812a5b, EFLAGS=0x0206 Top of Stack: (sp=0x0007d8c4) 0x0007d8c4: 1003c660 e06d7363 0001 0x0007d8d4: 7c812a5b 0003 19930520 0007d984 0x0007d8e4: 1003e1f0 1002991b 044e0b90 10009108 0x0007d8f4: 044e0b90 045232d5 003943e8 045232d1 0x0007d904: ff01 044e0b91 0026 003f 0x0007d914: 1000e301 0007d958 10029b40 e06d7363 0x0007d924: 0001 0003 0007d94c 044d0e38 0x0007d934: 04501bf3 e06d7363 0001 Instructions: (pc=0x7c812a5b) 0x7c812a4b: 8d 7d c4 f3 a5 5f 8d 45 b0 50 ff 15 08 15 80 7c 0x7c812a5b: 5e c9 c2 10 00 85 ff 0f 8e 36 93 ff ff 8b 55 fc Stack: [0x0004,0x0008), sp=0x0007d8c4, free space=246k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [kernel32.dll+0x12a5b] C [PureJVMPI.dll+0x29b40] Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startDocument(Lcom/sun/org/apache/xerces/internal/xni/XMLLocator;Ljava/lang/String;Lcom/sun/org/apache/xerces/internal/xni/NamespaceContext;Lcom/sun/org/apache/xerces/internal/xni/Augmentations;)V+68 j com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startDocument(Lcom/sun/org/apache/xerces/internal/xni/XMLLocator;Ljava/lang/String;Lcom/sun/org/apache/xerces/internal/xni/NamespaceContext;Lcom/sun/org/apache/xerces/internal/xni/Augmentations;)V+78 j com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.startEntity(Ljava/lang/String;Lcom/sun/org/apache/xerces/internal/xni/XMLResourceIdentifier;Ljava/lang/String;Lcom/sun/org/apache/xerces/internal/xni/Augmentations;)V+64 j com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.startDocumentParsing(Lcom/sun/org/apache/xerces/internal/impl/XMLEntityHandler;S)V+62 j com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Z)Z+83 j com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Lcom/sun/org/apache/xerces/internal/xni/parser/XMLInputSource;)V+29 j com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Lcom/sun/org/apache/xerces/internal/xni/parser/XMLInputSource;)V+9 j com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Lorg/xml/sax/InputSource;)V+43 j org.apache.tomcat.util.digester.Digester.parse(Lorg/xml/sax/InputSource;)Ljava/lang/Object;+27 j org.apache.catalina.startup.Catalina.load()V+421 j org.apache.catalina.startup.Catalina.load([Ljava/lang/String;)V+27 v ~StubRoutines::call_stub j sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0 j sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+87 j sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6 j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+111 j org.apache.catalina.startup.Bootstrap.load([Ljava/lang/String;)V+230 j org.apache.catalina.startup.Bootstrap.main([Ljava/lang/String;)V+362 v ~StubRoutines::call_stub --- P R O C E S S --- Java Threads: ( = current thread ) 0x00a8b088 JavaThread Low Memory Detector daemon [_thread_blocked, id=6100] 0x00a89830 JavaThread CompilerThread0 daemon [_thread_blocked, id=6096] 0x00a89cd8 JavaThread Signal Dispatcher daemon [_thread_blocked, id=6088] 0x00a472f8 JavaThread Finalizer daemon [_thread_blocked, id=5568] 0x00a69aa0 JavaThread Reference Handler daemon [_thread_blocked, id=5368] =0x00038ca8 JavaThread main [_thread_in_native, id=1320] Other Threads: 0x00a67d00 VMThread [id=6068] 0x00a903f8 WatcherThread [id=6108] VM state:not at safepoint (normal execution) VM Mutex/Monitor currently owned by a thread: None Heap def new generation total
Reading environment variable from Tomcat
Hi, I have run into an issue related to starting tomcat as a service. When we were starting tomcat from the command line, we were able to just say System.getProperty(user.name ) to retrieve the logged in user id. But now that we start tomcat using a service, the get property call returns SYSTEM. After doing some more research, it seems like I have two options to find out the login id. 1. Start the service using logged on option. 2. Use System.getEnv() It seems like the first option may not work for us as our passwords expires periodically, and setting the logon/password account means that we would have to have manual intervention. Additionally, when I tried use my user id as logon id, it won't let me do that ( I imagine I need to have system admin turn the privilege on for or something on those lines) The second option did not work either. Calling the System.getEnv(USERNAME) in a program started from the command line returns the logged in user name, but it returns null when tomcat was started using service approach. I am not sure if there is a way to find out who is logged in into the system when Tomcat has been started using service mechanism. Any help in this matter would be great help SS
Re: Tomcat 6.0.12 in windows vista 64 bits does not start
sorry it is tomcat version 6.0.18 not .12 - Mensaje original De: Mr Popo Sama [EMAIL PROTECTED] Para: users@tomcat.apache.org Enviado: miércoles 13 de agosto de 2008, 14:42:27 Asunto: Tomcat 6.0.12 in windows vista 64 bits does not start Hi, i am having trouble starting up the tomcat server in windows vista 64bits with java 64 all others applications useing java works fine, the log sais: --- [2008-08-13 13:16:16] [info] Procrun (2.0.4.0) started [2008-08-13 13:16:16] [info] Running Service... [2008-08-13 13:16:16] [info] Starting service... [2008-08-13 13:16:16] [174 javajni.c] [error] %1 is not a valid Win32 application. [2008-08-13 13:16:16] [994 prunsrv.c] [error] Failed creating java C:\Program Files\Java\jdk1.6.0_07\jre\bin\server\jvm.dll [2008-08-13 13:16:16] [1269 prunsrv.c] [error] ServiceStart returned 1 [2008-08-13 13:16:16] [info] Run service finished. [2008-08-13 13:16:16] [info] Procrun finished. - misc info: C:\Program Files\Java\jdk1.6.0_07\jre\bin\server\jvm.dll does exist and sizes 5.776.384 bytes (maybe it's corrupted?)(if so, would others applications work?) i don't know if this is of any importance but i've set the system enviromental variables JAVA_HOME to C:\Program Files\Java\jdk1.6.0_07 and PATH to C:\Program Files\Java\jdk1.6.0_07\bin thanks in advance ¡Buscá desde tu celular! Yahoo! oneSEARCH ahora está en Claro http://ar.mobile.yahoo.com/onesearch - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ¡Buscá desde tu celular! Yahoo! oneSEARCH ahora está en Claro http://ar.mobile.yahoo.com/onesearch - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Rational purify with tomcat 5.5 gives an error
From: Pradeep_ Kumar [mailto:[EMAIL PROTECTED] Subject: RE: Rational purify with tomcat 5.5 gives an error I am using jdk1.5.0_02,tomcat 5.5, and Rational Purify for windows version 2003.06.12.280.000 Build: 5101. The error indicates an internal problem in the JVM. The JVM version you're running is very, very old; I would try it again with the latest 1.5.0_16 and see if the problem has been addressed. Alternatively, try 1.6 if you're willing to upgrade that far. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Reading environment variable from Tomcat
Sureka, Sushil wrote: Hi, I have run into an issue related to starting tomcat as a service. When we were starting tomcat from the command line, we were able to just say System.getProperty(user.name ) to retrieve the logged in user id. But now that we start tomcat using a service, the get property call returns SYSTEM. After doing some more research, it seems like I have two options to find out the login id. 1. Start the service using logged on option. 2. Use System.getEnv() It seems like the first option may not work for us as our passwords expires periodically, and setting the logon/password account means that we would have to have manual intervention. Additionally, when I tried use my user id as logon id, it won't let me do that ( I imagine I need to have system admin turn the privilege on for or something on those lines) The second option did not work either. Calling the System.getEnv(USERNAME) in a program started from the command line returns the logged in user name, but it returns null when tomcat was started using service approach. I am not sure if there is a way to find out who is logged in into the system when Tomcat has been started using service mechanism. Any help in this matter would be great help Somewhat related to this: what do you want it to return when nobody is logged on? When it's a service and set to automatic start, the system will run without needing to be logged on (just sitting at the logon prompt)... D - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Default error page generation logic in tomcat
Hi Guys, I had a specific requirement related to tomcat error generation. When a default error page is generated like 404 error page, tomcat appends its version info at the bottom of the page. I don't want this version to be displayed on the error page. I am trying to understand which part of the tomcat code actually does this? Any response will be appreciated. Thanks, Raghu
Re: Reading environment variable from Tomcat
+1 exactly! you can even login with two different users (if you are using windows server) none of them would be running the service unless you change the logged on option. On Wed, Aug 13, 2008 at 9:27 PM, David kerber [EMAIL PROTECTED] wrote: Sureka, Sushil wrote: Hi, I have run into an issue related to starting tomcat as a service. When we were starting tomcat from the command line, we were able to just say System.getProperty(user.name ) to retrieve the logged in user id. But now that we start tomcat using a service, the get property call returns SYSTEM. After doing some more research, it seems like I have two options to find out the login id. 1. Start the service using logged on option. 2. Use System.getEnv() It seems like the first option may not work for us as our passwords expires periodically, and setting the logon/password account means that we would have to have manual intervention. Additionally, when I tried use my user id as logon id, it won't let me do that ( I imagine I need to have system admin turn the privilege on for or something on those lines) The second option did not work either. Calling the System.getEnv(USERNAME) in a program started from the command line returns the logged in user name, but it returns null when tomcat was started using service approach. I am not sure if there is a way to find out who is logged in into the system when Tomcat has been started using service mechanism. Any help in this matter would be great help Somewhat related to this: what do you want it to return when nobody is logged on? When it's a service and set to automatic start, the system will run without needing to be logged on (just sitting at the logon prompt)... D - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Youssef
RE: Tomcat 6.0.12 in windows vista 64 bits does not start
From: Mr Popo Sama [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat 6.0.12 in windows vista 64 bits does not start sorry it is tomcat version 6.0.18 not .12 - Mensaje original De: Mr Popo Sama [EMAIL PROTECTED] Para: users@tomcat.apache.org Enviado: miércoles 13 de agosto de 2008, 14:42:27 Asunto: Tomcat 6.0.12 in windows vista 64 bits does not start Hi, i am having trouble starting up the tomcat server in windows vista 64bits with java 64 You are likely using the 32-bit versions of the service wrapper. Get the 64-bit ones here: https://svn.apache.org/repos/asf/tomcat/connectors/trunk/procrun/bin/amd64/ Change the 5 in the names to 6, and replace the existing ones in Tomcat's bin directory with the renamed downloaded ones. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Reading environment variable from Tomcat
The service does not need to run when no one is logged in. We are in a kind of one off situation where Tomcat would be running on standalone laptops when the users are not connected to internet. So we are not running it on windows server rather on windows xp. I saw the other reply but I am not sure if I understand how to make that work. I just tried the option of adding --User in the service.bat specifying my user id, but it did not work. Also as I mentioned in my original email, the password issue will remain as a problem even if we get past the first issue. SS -Original Message- From: David kerber [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2008 1:27 PM To: Tomcat Users List Subject: Re: Reading environment variable from Tomcat Sureka, Sushil wrote: Hi, I have run into an issue related to starting tomcat as a service. When we were starting tomcat from the command line, we were able to just say System.getProperty(user.name ) to retrieve the logged in user id. But now that we start tomcat using a service, the get property call returns SYSTEM. After doing some more research, it seems like I have two options to find out the login id. 1. Start the service using logged on option. 2. Use System.getEnv() It seems like the first option may not work for us as our passwords expires periodically, and setting the logon/password account means that we would have to have manual intervention. Additionally, when I tried use my user id as logon id, it won't let me do that ( I imagine I need to have system admin turn the privilege on for or something on those lines) The second option did not work either. Calling the System.getEnv(USERNAME) in a program started from the command line returns the logged in user name, but it returns null when tomcat was started using service approach. I am not sure if there is a way to find out who is logged in into the system when Tomcat has been started using service mechanism. Any help in this matter would be great help Somewhat related to this: what do you want it to return when nobody is logged on? When it's a service and set to automatic start, the system will run without needing to be logged on (just sitting at the logon prompt)... D - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Reading environment variable from Tomcat
I responded to this in another email. Youssef, I would appreciate if you can provide your input (I am just trying to consolidate my answer in one email for better readability) -Original Message- From: Youssef Mohammed [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2008 1:33 PM To: Tomcat Users List Subject: Re: Reading environment variable from Tomcat +1 exactly! you can even login with two different users (if you are using windows server) none of them would be running the service unless you change the logged on option. On Wed, Aug 13, 2008 at 9:27 PM, David kerber [EMAIL PROTECTED] wrote: Sureka, Sushil wrote: Hi, I have run into an issue related to starting tomcat as a service. When we were starting tomcat from the command line, we were able to just say System.getProperty(user.name ) to retrieve the logged in user id. But now that we start tomcat using a service, the get property call returns SYSTEM. After doing some more research, it seems like I have two options to find out the login id. 1. Start the service using logged on option. 2. Use System.getEnv() It seems like the first option may not work for us as our passwords expires periodically, and setting the logon/password account means that we would have to have manual intervention. Additionally, when I tried use my user id as logon id, it won't let me do that ( I imagine I need to have system admin turn the privilege on for or something on those lines) The second option did not work either. Calling the System.getEnv(USERNAME) in a program started from the command line returns the logged in user name, but it returns null when tomcat was started using service approach. I am not sure if there is a way to find out who is logged in into the system when Tomcat has been started using service mechanism. Any help in this matter would be great help Somewhat related to this: what do you want it to return when nobody is logged on? When it's a service and set to automatic start, the system will run without needing to be logged on (just sitting at the logon prompt)... D - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Youssef - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Reading environment variable from Tomcat
Looks like correct behavior to me. You can see that tomcat runs in the System account when you look at it via Process Explorer or Task Manager. It has it's own environment separate from any desktop user and can run without any desktop user. This is also why tomcat can't access mapped network drives when it runs as a service. The real question is why do you want to know who the current desktop user(s) is/are? Tomcat should only be interested in the users coming in via http(s) connections. --David Sureka, Sushil wrote: Hi, I have run into an issue related to starting tomcat as a service. When we were starting tomcat from the command line, we were able to just say System.getProperty(user.name ) to retrieve the logged in user id. But now that we start tomcat using a service, the get property call returns SYSTEM. After doing some more research, it seems like I have two options to find out the login id. 1. Start the service using logged on option. 2. Use System.getEnv() It seems like the first option may not work for us as our passwords expires periodically, and setting the logon/password account means that we would have to have manual intervention. Additionally, when I tried use my user id as logon id, it won't let me do that ( I imagine I need to have system admin turn the privilege on for or something on those lines) The second option did not work either. Calling the System.getEnv(USERNAME) in a program started from the command line returns the logged in user name, but it returns null when tomcat was started using service approach. I am not sure if there is a way to find out who is logged in into the system when Tomcat has been started using service mechanism. Any help in this matter would be great help SS - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 6.0.12 in windows vista 64 bits does not start
Chuck, you are a genius! i can't belive it was that simple to solve. i had seen those files before but just didn't thougt of renaming them... thanks a LOT! - Mensaje original De: Caldarale, Charles R [EMAIL PROTECTED] Para: Tomcat Users List users@tomcat.apache.org Enviado: miércoles 13 de agosto de 2008, 15:34:34 Asunto: RE: Tomcat 6.0.12 in windows vista 64 bits does not start From: Mr Popo Sama [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat 6.0.12 in windows vista 64 bits does not start sorry it is tomcat version 6.0.18 not .12 - Mensaje original De: Mr Popo Sama [EMAIL PROTECTED] Para: users@tomcat.apache.org Enviado: miércoles 13 de agosto de 2008, 14:42:27 Asunto: Tomcat 6.0.12 in windows vista 64 bits does not start Hi, i am having trouble starting up the tomcat server in windows vista 64bits with java 64 You are likely using the 32-bit versions of the service wrapper. Get the 64-bit ones here: https://svn.apache.org/repos/asf/tomcat/connectors/trunk/procrun/bin/amd64/ Change the 5 in the names to 6, and replace the existing ones in Tomcat's bin directory with the renamed downloaded ones. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ¡Buscá desde tu celular! Yahoo! oneSEARCH ahora está en Claro http://ar.mobile.yahoo.com/onesearch - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Reading environment variable from Tomcat
Because we are using the app more like a standalone application (for details please see my another posting). Generally these sort of app are not meant for tomcat, but we already had the app developed for central server, and we had a need to run the same app in a standalone mode for folks who are not connected to internet. Hence we took the same code base (with lot less fat) and ported it on tomcat. -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2008 1:47 PM To: Tomcat Users List Subject: Re: Reading environment variable from Tomcat Looks like correct behavior to me. You can see that tomcat runs in the System account when you look at it via Process Explorer or Task Manager. It has it's own environment separate from any desktop user and can run without any desktop user. This is also why tomcat can't access mapped network drives when it runs as a service. The real question is why do you want to know who the current desktop user(s) is/are? Tomcat should only be interested in the users coming in via http(s) connections. --David Sureka, Sushil wrote: Hi, I have run into an issue related to starting tomcat as a service. When we were starting tomcat from the command line, we were able to just say System.getProperty(user.name ) to retrieve the logged in user id. But now that we start tomcat using a service, the get property call returns SYSTEM. After doing some more research, it seems like I have two options to find out the login id. 1. Start the service using logged on option. 2. Use System.getEnv() It seems like the first option may not work for us as our passwords expires periodically, and setting the logon/password account means that we would have to have manual intervention. Additionally, when I tried use my user id as logon id, it won't let me do that ( I imagine I need to have system admin turn the privilege on for or something on those lines) The second option did not work either. Calling the System.getEnv(USERNAME) in a program started from the command line returns the logged in user name, but it returns null when tomcat was started using service approach. I am not sure if there is a way to find out who is logged in into the system when Tomcat has been started using service mechanism. Any help in this matter would be great help SS - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Default error page generation logic in tomcat
Create your own 404 error page and add it to your web.xml. error-page error-code404/error-code location/error/404.jsp/location /error-page − error-page exception-typejava.lang.Throwable/exception-type location/error/500.jsp/location /error-page − error-page error-code500/error-code location/error/500.jsp/location /error-page --Angus Mezick -Original Message- From: Raghavendra Datt [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2008 2:33 PM To: users@tomcat.apache.org Subject: Default error page generation logic in tomcat Hi Guys, I had a specific requirement related to tomcat error generation. When a default error page is generated like 404 error page, tomcat appends its version info at the bottom of the page. I don't want this version to be displayed on the error page. I am trying to understand which part of the tomcat code actually does this? Any response will be appreciated. Thanks, Raghu
Re: Default error page generation logic in tomcat
Raghavendra Datt wrote: Hi Guys, I had a specific requirement related to tomcat error generation. When a default error page is generated like 404 error page, tomcat appends its version info at the bottom of the page. I don't want this version to be displayed on the error page. I am trying to understand which part of the tomcat code actually does this? It is the ErrorReportValve and it gets the information from org.apache.catalina.util.ServerInfo You can over-ride this by: 1. extract org/apache/catalina/util/ServerInfo.properties from catalina.jar and put that file in ${CATALINA_HOME}/classes/org/apache/catalina/util/ServerInfo.properties 2. Edit ${CATALINA_HOME}/conf/catalina.properties and change common.loader=${catalina.home}/lib,${catalina.home}/lib/*.jar to common.loader=${catalina.home}/classes,${catalina.home}/lib,${catalina.home}/lib/*.jar Any values you put in ${CATALINA_HOME}/classes/org/apache/catalina/util/ServerInfo.properties will be used when reporting server name, version etc. HTH, Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Reading environment variable from Tomcat
From: Sureka, Sushil [mailto:[EMAIL PROTECTED] Subject: RE: Reading environment variable from Tomcat Because we are using the app more like a standalone application Then don't run it as a service, just put the startup script call in: C:\Documents and Settings\[userid]\Start Menu\Programs\Startup This will start Tomcat when the user logs on and run it under that user account. There's also a registry key you can use if you don't want to expose the script in the above directory. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Reading environment variable from Tomcat
Then I think you'll have to have tomcat startup in the Startup program group or equivalent in the registry and shutdown when the user log's out. That will put tomcat in the user's environment and make it run as the current desktop user. --David Sureka, Sushil wrote: Because we are using the app more like a standalone application (for details please see my another posting). Generally these sort of app are not meant for tomcat, but we already had the app developed for central server, and we had a need to run the same app in a standalone mode for folks who are not connected to internet. Hence we took the same code base (with lot less fat) and ported it on tomcat. -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2008 1:47 PM To: Tomcat Users List Subject: Re: Reading environment variable from Tomcat Looks like correct behavior to me. You can see that tomcat runs in the System account when you look at it via Process Explorer or Task Manager. It has it's own environment separate from any desktop user and can run without any desktop user. This is also why tomcat can't access mapped network drives when it runs as a service. The real question is why do you want to know who the current desktop user(s) is/are? Tomcat should only be interested in the users coming in via http(s) connections. --David Sureka, Sushil wrote: Hi, I have run into an issue related to starting tomcat as a service. When we were starting tomcat from the command line, we were able to just say System.getProperty(user.name ) to retrieve the logged in user id. But now that we start tomcat using a service, the get property call returns SYSTEM. After doing some more research, it seems like I have two options to find out the login id. 1. Start the service using logged on option. 2. Use System.getEnv() It seems like the first option may not work for us as our passwords expires periodically, and setting the logon/password account means that we would have to have manual intervention. Additionally, when I tried use my user id as logon id, it won't let me do that ( I imagine I need to have system admin turn the privilege on for or something on those lines) The second option did not work either. Calling the System.getEnv(USERNAME) in a program started from the command line returns the logged in user name, but it returns null when tomcat was started using service approach. I am not sure if there is a way to find out who is logged in into the system when Tomcat has been started using service mechanism. Any help in this matter would be great help SS - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: removal of product name/version
Christopher Schultz wrote: Tommy, Tommy Pham wrote: | Thanks all for the reply. Somehow I missed that attribute. Looks | I'll have to define the error-pages. If I specify in the web.xml in | the conf folder, does apply to all web apps deployed for that | host/virtual host? See also: http://markmail.org/message/tnqbcdlnvjdc6pa2 for a safer approach that doesn't require you to change the error pages. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Reading environment variable from Tomcat
This was going to be my suggestion as well: have it start after a user logs in, via either the Run registry entry, or the startup group on the start menu. D David Smith wrote: Then I think you'll have to have tomcat startup in the Startup program group or equivalent in the registry and shutdown when the user log's out. That will put tomcat in the user's environment and make it run as the current desktop user. --David Sureka, Sushil wrote: Because we are using the app more like a standalone application (for details please see my another posting). Generally these sort of app are not meant for tomcat, but we already had the app developed for central server, and we had a need to run the same app in a standalone mode for folks who are not connected to internet. Hence we took the same code base (with lot less fat) and ported it on tomcat. -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2008 1:47 PM To: Tomcat Users List Subject: Re: Reading environment variable from Tomcat Looks like correct behavior to me. You can see that tomcat runs in the System account when you look at it via Process Explorer or Task Manager. It has it's own environment separate from any desktop user and can run without any desktop user. This is also why tomcat can't access mapped network drives when it runs as a service. The real question is why do you want to know who the current desktop user(s) is/are? Tomcat should only be interested in the users coming in via http(s) connections. --David Sureka, Sushil wrote: Hi, I have run into an issue related to starting tomcat as a service. When we were starting tomcat from the command line, we were able to just say System.getProperty(user.name ) to retrieve the logged in user id. But now that we start tomcat using a service, the get property call returns SYSTEM. After doing some more research, it seems like I have two options to find out the login id. 1. Start the service using logged on option. 2. Use System.getEnv() It seems like the first option may not work for us as our passwords expires periodically, and setting the logon/password account means that we would have to have manual intervention. Additionally, when I tried use my user id as logon id, it won't let me do that ( I imagine I need to have system admin turn the privilege on for or something on those lines) The second option did not work either. Calling the System.getEnv(USERNAME) in a program started from the command line returns the logged in user name, but it returns null when tomcat was started using service approach. I am not sure if there is a way to find out who is logged in into the system when Tomcat has been started using service mechanism. Any help in this matter would be great help SS - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Default error page generation logic in tomcat
Mark, Appreciate your response. I have this tomcat running on linux and I don't find catalina.properties any where in the tomcat folders. so, I tried unzipping this catalina.jar and changed the ServerInfo.Properties and zipped into catalina.jar. but, still I see that version info on an error. Do you know whether catalina.properties and catalina.policy ( which I could find in my linux) or same? Unzipping, modifying and zipping back - should this solve the problem? Thanks, Raghu On Wed, Aug 13, 2008 at 12:05 PM, Mark Thomas [EMAIL PROTECTED] wrote: Raghavendra Datt wrote: Hi Guys, I had a specific requirement related to tomcat error generation. When a default error page is generated like 404 error page, tomcat appends its version info at the bottom of the page. I don't want this version to be displayed on the error page. I am trying to understand which part of the tomcat code actually does this? It is the ErrorReportValve and it gets the information from org.apache.catalina.util.ServerInfo You can over-ride this by: 1. extract org/apache/catalina/util/ServerInfo.properties from catalina.jar and put that file in ${CATALINA_HOME}/classes/org/apache/catalina/util/ServerInfo.properties 2. Edit ${CATALINA_HOME}/conf/catalina.properties and change common.loader=${catalina.home}/lib,${catalina.home}/lib/*.jar to common.loader=${catalina.home}/classes,${catalina.home}/lib,${catalina.home}/lib/*.jar Any values you put in ${CATALINA_HOME}/classes/org/apache/catalina/util/ServerInfo.properties will be used when reporting server name, version etc. HTH, Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Default error page generation logic in tomcat
From: Raghavendra Datt [mailto:[EMAIL PROTECTED] Subject: Re: Default error page generation logic in tomcat I have this tomcat running on linux and I don't find catalina.properties any where in the tomcat folders. A red flag just went up. Are you using a real Tomcat, or a 3rd-party repackaged version? If the latter, it probably has scattered Tomcat files all over the place, and will be prone to numerous errors and stability issues. Suggest removing the Tomcat you have and downloading a real one from http://tomcat.apache.org. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Default error page generation logic in tomcat
Ok... I just figured out a work around for this to make work. I modified ServerInfo.properties from catalina.jar and re-jarred it and overrode the original catalina.jar. This seems to work. but, I am just curious whether this has any side effects? Earlier, I tried doing the same thing but, was not actually overriding catalina.jar proprely. Thanks, Raghu On Wed, Aug 13, 2008 at 1:02 PM, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Raghavendra Datt [mailto:[EMAIL PROTECTED] Subject: Re: Default error page generation logic in tomcat I have this tomcat running on linux and I don't find catalina.properties any where in the tomcat folders. A red flag just went up. Are you using a real Tomcat, or a 3rd-party repackaged version? If the latter, it probably has scattered Tomcat files all over the place, and will be prone to numerous errors and stability issues. Suggest removing the Tomcat you have and downloading a real one from http://tomcat.apache.org. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Bug in tomcat scripts?
- Mensaje original De: Christopher Schultz [EMAIL PROTECTED] Para: Tomcat Users List users@tomcat.apache.org Enviado: martes, 12 de agosto, 2008 19:30:51 Asunto: Re: Bug in tomcat scripts? -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Enrique, Enrique Arizón wrote: | # rm -rf $(cwd)/.. /etc/init.d/tomcat5 restart Does this seem like a good idea to you? Hmm... I added 'rm -rf' to my script and now I can't find any files! The use case was more complex actually. My tomcat app keeps some data in the .../webapp/MyApp directory. During unit tests I remove MyApp, redeploy it after compiling and restart tomcat. (Not such an unusual scenario). The case is that the remove redeploy restart is executed in a shell script, and if suddenly I execute it while in webapp/MyApp tomcat is destroyed. I can't imagine that this has anything to do with the scripts that ship with any version of Tomcat. Maybe you could post the entire script and we can figure out why you might want to delete an entire directory tree just for the heck of it. - -chris After browsing the scripts it looks to be related with the makeHomeDir() function in the Mandriva /etc/init.d/tomcat5 script. (I attach the file in case you are interested). Regards, Enrique -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkihyMsACgkQ9CaO5/Lv0PCjfACggbCbf7ERUoJX0aYw59bhY7Qx TRMAn2pLYxOQQMOnKRwHPZlKdhir6XeS =wjpc -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
database application
Hi, Please help me. I use this introduction: http://localhost:8180/tomcat-docs/jndi-datasource-examples-howto.html database: mysql A simple java application works (see PS) [EMAIL PROTECTED]:/mnt/hda3/tyuk/dtest/java/database# java DbTableShow2 +---+---+---+ | id| foo | bar | +---+---+---+ | 1 | hello | 12345 | | 2 | hellox| 123456| +---+---+---+ However the tomcat application fails: -- description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Unable to get connection, DataSource invalid: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:846) org.apache.jasper.runtime.PageContextImpl.access$11(PageContextImpl.java:784) org.apache.jasper.runtime.PageContextImpl$12.run(PageContextImpl.java:766) java.security.AccessController.doPrivileged(Native Method) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:764) org.apache.jsp.jsp.test_jsp._jspService(test_jsp.java:81) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243) java.security.AccessController.doPrivileged(Native Method) javax.security.auth.Subject.doAsPrivileged(Subject.java:517) org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:272) org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161) --- Here my configuration file (/etc/tomcat5/server.xml: !-- Server Configuration File for Tomcat 5 on Debian You can find a more complete example in /usr/share/doc/tomcat5/examples/ -- !-- Note that component elements are nested corresponding to their parent-child relationships with each other -- !-- A Server is a singleton element that represents the entire JVM, which may contain one or more Service instances. The Server listens for a shutdown command on the indicated port. Note: A Server is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- Server port=8005 shutdown=SHUTDOWN debug=0 Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener debug=0/ !-- Global JNDI resources -- GlobalNamingResources !-- Test entry for demonstration purposes -- Environment name=simpleValue type=java.lang.Integer value=30/ !-- Editable user database that can also be used by UserDatabaseRealm to authenticate users -- Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved /Resource ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams /GlobalNamingResources !-- A Service is a collection of one or more Connectors that share a single Container (and therefore the web applications visible within that Container). Normally, that Container is an Engine, but this is not required. Note: A Service is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- !-- Define the Tomcat Stand-Alone Service -- Service name=Tomcat-Standalone !-- A Connector represents an endpoint by which requests are received and responses are returned. Each Connector passes requests on to the associated Container (normally an Engine) for processing. -- !-- Define a non-SSL Coyote HTTP/1.1
Re: database application
Cue Charles Caldarale hammering someone for not providing a Tomcat version in 3...2...1... Seriously, Eleonora...You should read here: http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html Note particularly: *Please note that JNDI resource configuration has changed somewhat between Tomcat 5.0.x and Tomcat 5.5.x.* You will most likely need to modify your JNDI resource configurations to match the syntax in the example below in order to make them work in Tomcat 5.5.x. Brantley - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat admin webapp configuration with mod_jk
We currently use Apache/Tomcat and mod_jk for our webapp. I've downloaded and installed (correctly, I think) the admin web app but am having trouble configuring Apache and Tomcat to recognize that the admin webapp is present. I suspect it's simply a config issue, but can't figure it out. Here's our original server.xml: Server port=11005 shutdown=SHUTDOWN debug=0 Service name=Tomcat-Apache Connector protocol=AJP/1.3 port=11009 URIEncoding=UTF-8 minSpareThreads=0 maxSpareThreads=0 maxThreads=3000 backlog=6000 debug=0 enableLookups=false maxPostSize=-1 connectionTimeout=-1/ Engine name=Standalone defaultHost=localhost debug=0 Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true liveDeploy=true deployOnStartup=false Context path= docBase=palomar cookies=false debug=0 crossContext=true allowLinking=true Resources docBase= allowLinking=true/ /Context /Host /Engine /Service /Server I've tried adding another connector (on port 8080) and also adding another context based on the admin.xml file but nothing seems to be working correctly. I have workers.properties configured to redirect to Tomcat and that's working b/c I'm getting a Tomcat 404 error and not an Apache one. I don't care by which means I connect to the admin webapp (either via mod_jk or directly via another port, say 8080 but I just can't seem to figure the configuration issue out. --adam - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: startup order for deployment
You cannot control the order in which the webapps start. There are ways that you can ensure the initialization is complete before your webapp starts accepting requests, but first ask yourself: Why? Your webapp must be able to handle the situation of the web service being down, so is it really a problem if it happens for a few seconds during server startup? -- Len On Wed, Aug 13, 2008 at 13:09, Mathias P.W Nilsson [EMAIL PROTECTED] wrote: Hi! I'm using tomcat as a webserver in my eclipse installation. I have some webservice calls from my webapplication and add both my projects to the tomcat server. The problem is that I can not determine the order to start the applications. Is there a way to first start deploy a war, and do this in a certain order? Thanks! -- View this message in context: http://www.nabble.com/startup-order-for-deployment-tp18967318p18967318.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Rational purify with tomcat 5.5 gives an error
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pradeep, Pradeep_ Kumar wrote: Yes this error occurs every time when I run my tomcat with Rational Purify. What about when it's /not/ running Rational Purify? Check out this article about your error on Microsoft's site: http://support.microsoft.com/kb/185294 - From what I understand, it means that any uncaught exception thrown from C++ code into C code will result in this odd error. Some piece of code is either allowing exceptions to go un-caught across the C++/C boundary or a C wrapper is improperly handling them. Given that the error is finally caught in the kernel (if I understand the stack correctly), it could be either a problem with the JVM or with Purify. Does Purify state which versions of the JVM are supported/required? I agree with Chuck that you should upgrade to the latest available version of Java in your current line (which would be 1.5.0_16 or so). If the problem still occurs, I would contact either Rational or Sun. This is certainly not something that the Tomcat list will be able to help you with (unless there are one or two experts on win32 JVMs lurking around). Good luck, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkijW1kACgkQ9CaO5/Lv0PCgYwCgpjkp+qJ6yAw2tHQqxZTqVUOs zOcAoMEdbg+R//8sYSMTvNtraEcq6bVW =NmpS -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Image rendering problem in Tomcat 5.5.1
All this sounds like a browser issue. Firefox 3.0 now supports zooming of the whole page (as compared to scaling the font sizes only). Press Ctrl+0 to reset the page to 100% (see the View menu for details). 2008/8/12 Szűcs Attila [EMAIL PROTECTED]: Christopher, Even if I am opening it through tomcat with IExplorer it looks good. Is it a Firefox bug ? I don't know Atti
RE: database application
From: Brantley Hobbs [mailto:[EMAIL PROTECTED] Subject: Re: database application Cue Charles Caldarale hammering someone for not providing a Tomcat version in 3...2...1... (Sorry I'm late, our marvelous corporate e-mail server didn't let the original message through.) Being precise is one of the things they taught us in Engineering at the real school 70 odd miles west of you... (Can't resist getting a dig in when a bulldog speaks :-) Seriously, Eleonora...You should read here: http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html If she's using 5.5, then the config given is sadly out of date and conflicts with best practice (Logger elements, Context elements in server.xml, etc.). If it's a 5.0 version, then it's not supported, so moving up would be in order. What's even worse is the installation directory looks like one used by 3rd-party repackaged Tomcat versions, so getting it to work may be impossible. Installing a real Tomcat from http://tomcat.apache.org should probably be the first order of business. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat admin webapp configuration with mod_jk
From: Adam Gordon [mailto:[EMAIL PROTECTED] Subject: Tomcat admin webapp configuration with mod_jk I've downloaded and installed (correctly, I think) the admin web app but am having trouble configuring Apache and Tomcat to recognize that the admin webapp is present. Obviously, it's not correctly installed, or you wouldn't be having a problem. Don't suppose you want to give us a hint about what version of Tomcat you're using? Guessing from the contents of server.xml is rather pointless. Exactly what steps did you take to install the admin web app? Where is Tomcat installed? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: database application
This is a quick reiteration of key points found in the link below.. make sure you provide the GRANT for insert/select/update to the user you will be using e.g. mysql GRANT ALL PRIVILEGES ON *.* TO [EMAIL PROTECTED] - IDENTIFIED BY 'javadude' WITH GRANT OPTION; mysql create database javatest; mysql use javatest; mysql create table testdata ( - id int not null auto_increment primary key, - foo varchar(25), - bar int); JDBC access... I assume you have these resource statements either in applicationContext.xml or server.xml Resource name=jdbc/TestDB auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/TestDB parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter !-- Maximum number of dB connections in pool. Make sure you configure your mysqld max_connections large enough to handle all of your db connections. Set to 0 for no limit. -- parameter namemaxActive/name value100/value /parameter !-- Maximum number of idle dB connections to retain in pool. Set to 0 for no limit. -- parameter namemaxIdle/name value30/value /parameter !-- 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. -- parameter namemaxWait/name value1/value /parameter !-- MySQL dB username and password for dB connections -- parameter nameusername/name valuejavauser/value /parameter parameter namepassword/name valuejavadude/value /parameter !-- Class name for mm.mysql JDBC driver -- parameter namedriverClassName/name valueorg.gjt.mm.mysql.Driver/value /parameter !-- The JDBC connection url for connecting to your MySQL dB. The autoReconnect=true argument to the url makes sure that the mm.mysql JDBC Driver will automatically reconnect if mysqld closed the connection. mysqld by default closes idle connections after 8 hours. -- parameter nameurl/name valuejdbc:mysql://localhost:3306/javatest?autoReconnect=true/value /parameter /ResourceParams /Context lets not forget web.xml ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app descriptionMySQL Test App/description resource-ref descriptionDB Connection/description res-ref-namejdbc/TestDB/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /web-app Now finally using the JDBC reference in the java class Context ctx = new InitialContext(); if(ctx == null ) throw new Exception(Boom - No Context); DataSource ds = (DataSource)ctx.lookup( java:comp/env/jdbc/TestDB); InitialContext initCtx = new InitialContext(); DataSource ds = (DataSource) initCtx.lookup(java:comp/env/my-datasource); Connection conn = ds.getConnection(); JNDI access: ApplicationContext.xml or server.xml first the prelim ConnectionPool params Environment name=tyrexDomainConfig type=java.lang.String value=domain-config.xml/ Environment name=tyrexDomainName type=java.lang.String value=myDomain/ Then in the same file the myDataSource Resource name=my-datasource auth=Container type=tyrex.resource.Resource/ ResourceParams name=my-datasource parameter namename/name valuemyDataSource/value /parameter /ResourceParamsand in $TOMCAT_HOME/conf/catalina.policy allow JNDI access to the described resource permission org.apache.naming.JndiPermission jndi://comp.env/my-datasource; Now the test in java via my-datasource InitialContext initCtx = new InitialContext(); DataSource ds = (DataSource) initCtx.lookup(jndi:comp/env/my-datasource); Connection conn = ds.getConnection(); More information on configuration and deployment to MySQL DB available at http://tomcat.apache.org/tomcat-4.1-doc/jndi-datasource-examples-howto.html HTH Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Wed, 13 Aug 2008 22:38:32 +0200 From: [EMAIL PROTECTED] Subject: database application To: users@tomcat.apache.org Hi, Please help me. I use this introduction: http://localhost:8180/tomcat-docs/jndi-datasource-examples-howto.html
Re: startup order for deployment
You are absolutly right. It's my wicket application that caches users from a webservice on startup. But I guess I'll have to find a better solution. // Mathias -- View this message in context: http://www.nabble.com/startup-order-for-deployment-tp18967318p18972567.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: startup order for deployment
If you need to call the web service during startup, you could retry the call as long as you get a service-not-available error. Or you could find a way to synchronize the two webapps (e.g. using a shared class if they're always going to be on the same server). Or maybe you could load cache the data when it's needed instead of loading it all at startup. -- Len On Wed, Aug 13, 2008 at 18:41, Mathias P.W Nilsson [EMAIL PROTECTED] wrote: You are absolutly right. It's my wicket application that caches users from a webservice on startup. But I guess I'll have to find a better solution. // Mathias -- View this message in context: http://www.nabble.com/startup-order-for-deployment-tp18967318p18972567.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat admin webapp configuration with mod_jk
I just figured it out when verifying my installation per your request of my installation steps. It finally clicked when I was looking at the subdirectories in TOMCAT_HOME/conf...there's a Standalone directory and a Catalina directory. Our Engine name is Standalone and host name is localhost - so I moved the admin.xml from the default of conf/Catalina/localhost to conf/Standalone/localhost and voila! it worked. So, now I have a problem whereby I can't log in and Tomcat is complaining that I don't have a LoginModule configured for Standalone. I assume I need to add a JAAS Realm in admin.xml (like we're doing for our web app) but it's not clear how it needs to be configured. Any ideas? --adam Caldarale, Charles R wrote: From: Adam Gordon [mailto:[EMAIL PROTECTED] Subject: Tomcat admin webapp configuration with mod_jk I've downloaded and installed (correctly, I think) the admin web app but am having trouble configuring Apache and Tomcat to recognize that the admin webapp is present. Obviously, it's not correctly installed, or you wouldn't be having a problem. Don't suppose you want to give us a hint about what version of Tomcat you're using? Guessing from the contents of server.xml is rather pointless. Exactly what steps did you take to install the admin web app? Where is Tomcat installed? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Session values don't replicate under certain circumstances
Thank you Filip, that's not the answer I would have liked, but at least I know I cannot get away without changing the code. Adrian On 13. Aug. 2008, at 18:31, Filip Hanik - Dev Lists wrote: that's correct. there are a number of frameworks that detect these kind of changes, Tomcat doesn't, everything is triggered by setAttribute/removeAttribute Filip Adrian Gligor wrote: Hello, i have a working Tomcat 6.0.18 cluster with session replication using DeltaManager and load balancing using mod_jk. The following problem does not depend on having sticky sessions either on or off. I'm putting an object into the session, and set one of its members: vo = new ValueObject(); vo.name = testvalue; request.getSession().setAttribute(valueobject, vo); The object is correctly propagated onto all cluster nodes. I'm testing this by setting sticky sessions off and printing the node name and object value on each refresh. My requests bounce between the nodes as expected, but the value of my object stays the same. However, if I subsequently change the member, replication doesn't trigger. It's like Tomcat doesn't detect the change: ValueObject vo = (ValueObject) request.getSession().getAttribute(valueobject); vo.name = testvalue2; By doing this, my nodes are now out of sync. If I put the object into the session again (setAttribute), the changes get replicated. However, I have a big application here, and it would be very complicated to find all occurences of this pattern. My question is, is this behavior by design, or a bug? And is there any way to work around it without changing (too much) code? I would appreciate any hint. Adrian PS: I have attached the source code and .war file of a very simple test application that will demonstrate this behavior. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maxPostSize not working for web services
Hi, I developed an axis2 web service, which accepts some files. I want to limit the size of incoming file. But there is no way to specify the file size in axis2(using mtom) and it is confirmed by the axis2 group. So now I then tried to limit the POST request size of the tomcat, which I thought is the best solution for my problem. I changed the server.xml of tomcat and added the maxPostSize to the Connector . (to accept less than 5mb requests) Connector port=8080 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 connectionTimeout=2 disableUploadTimeout=true maxPostSize=5242880 / But it seems not working and I found in the web(google) that this maxPortSize in only working for the Form Posts. Is there any configurations in tomcat to limit the size of all incoming Post requests? Please let me know. Thank you. Regards, Shehan
Re: Reading environment variable from Tomcat
- Original Message - From: Sureka, Sushil [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Wednesday, August 13, 2008 8:16 PM Subject: Reading environment variable from Tomcat Hi, I have run into an issue related to starting tomcat as a service. When we were starting tomcat from the command line, we were able to just say System.getProperty(user.name ) to retrieve the logged in user id. But now that we start tomcat using a service, the get property call returns SYSTEM. After doing some more research, it seems like I have two options to find out the login id. 1. Start the service using logged on option. 2. Use System.getEnv() It seems like the first option may not work for us as our passwords expires periodically, and setting the logon/password account means that we would have to have manual intervention. Additionally, when I tried use my user id as logon id, it won't let me do that ( I imagine I need to have system admin turn the privilege on for or something on those lines) The second option did not work either. Calling the System.getEnv(USERNAME) in a program started from the command line returns the logged in user name, but it returns null when tomcat was started using service approach. I am not sure if there is a way to find out who is logged in into the system when Tomcat has been started using service mechanism. Any help in this matter would be great help SS --- Sureka, A service is like a completely diff user, eg you dont even have to log into a machine and it will run, thus it defaults to SYSTEM, and you can change it, but its always a diff user... You could possibly do some tricks like call some MS functions, but you see the immediate problem is the service is already running long before anyone has logged in... so when would you do that... Here a thought... MS has a RUN folder, what ever you put in there starts when the user starts... so you can hook it up that way... ... but the big question is... why are you doing it, and why are you even assuming anyone is logged in... Before you make work for yourself... maybe bouncing the concept off the guru's in here is a good idea... what it is you actually trying to do? Your Java stuff wont work because all that stuff you looking for is setup as the VM starts... the service has a diff one to whatever the user is doing... Normally a user would be logging into TC itself... and thus TC would know who it is... Have fun ;) --- HARBOR : http://www.kewlstuff.co.za/index.htm The most powerful application server on earth. The only real POJO Application Server. See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm --- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Application failed to start - debug suggestions wanted
Many thanks for all the advice - definitely the issue is in the creation or unpacking of the war file - I think this as if I just copy the file structure from the IDE, the app starts with no issue. I'll continue to trouble shoot the war files and report back. From: Christopher Schultz [EMAIL PROTECTED] Sent: 14 August 2008 00:05 To: Tomcat Users List Subject: Re: Application failed to start - debug suggestions wanted -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 James, [EMAIL PROTECTED] wrote: | application failed to start : Error in dependencyCheck | java.util.zip.ZipException: invalid entry CRC Sounds like a corrupted ZIP file (duh). It might not be your WAR file, though: it might be any of the libraries that you deployed along with your webapp, or it might be something in the TOMCAT_HOME/common/lib or TOMCAT_HOME/shared/lib or TOMCAT_HOME/lib (depending on your version of TC) directories. I'd recommend running unzip -t on each JAR file to verify that they're good to go. If you use FTP to transfer files, remember to set the transfer mode to BINARY. If you use CVS to store JAR files, remember to turn off keyword expansion (-kb) when adding those files to the repository. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkijBk0ACgkQ9CaO5/Lv0PAeHQCfRu3mnyCe4wIV6m74yY/WBYOB aLIAoLgbMMNld9DJRBlxbVAuA5uMj1gT =xL6N -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Hot redeploying a WAR - HTML is not refreshed
Hi. I have a web application that consists of an online help system. It serves HTML content using the Eclipse user assistance system. The usage I need to support is that the help system WAR is running in Tomcat, we repackage a new version of the WAR with updated content (only new HTML pages, no new application functionality), and then hot redeploy the new WAR file. The hope is that users will see the new HTML content with minimal interruption of service. I am able to hot redeploy the new WAR files by overwriting the versions in the webapps directory. In the server log I can verify that Tomcat undeploys the old version and then deploys the new version. However, the HTML files that are being served are not updated. Tomcat serves the HTML pages from the previous WAR file. If I stop the server, replace the WAR files, delete the work directory, and restart the server, the HTML pages are refreshed. Is there a way to clear all the old content from the cache during a hot redeploy? Or is there any other way to serve the new HTML content without stopping the server? I am using Apache Tomcat Version 6.0.18, jdk1.5.0_14, and Windows XP. Thanks for your help. Peter Desjardins - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]