Re: Tomcat security problem..please help
Yaragalla, Muralidhar wrote: Hi all , I have added security manager in a filter initialization method in my webb app. I have deployed webapp in tomcat and when I start tomcat it is throwing the following error. Kindly help me in this. How to avoid this?What should I do in the security policy? Reading the on-line documentation at http://tomcat.apache.org/tomcat-6.0-doc/security-manager-howto.html would be a good first step. A second one, in your next post, would be to indicate which version of Tomcat you are running, on which platform, under which JVM. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: NetBeans Tomcat 5.5 problem
Have you tryed to stop Tomcat in Apache-open services - Original Message - From: Sasa Rakic sas...@gmail.com To: Tomcat Users List users@tomcat.apache.org; Mark Eggers its_toas...@yahoo.com Sent: Thursday, December 30, 2010 4:03 AM Subject: Re: NetBeans Tomcat 5.5 problem Java 6.23 and windows 7 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Novice's
Dear all. I have tryed to find out how to use Tomcat. So far not very successfully. Some help is needed, but in order not to strain the user list too much i have put my request in my own link: http://www.graphelle-elektronik.dk/Apache_Software_Foundation/tomcat-help.html
Re: NetBeans Tomcat 5.5 problem
No i have not i am not sure how to do it. When i exit NetBeans, NetBeans autommaticaly stops Tomcat every time. Why you think this could be helpful ?
Re: Novice's
Morten Bo Ølbye wrote: Dear all. I have tryed to find out how to use Tomcat. So far not very successfully. Some help is needed, but in order not to strain the user list too much i have put my request in my own link: http://www.graphelle-elektronik.dk/Apache_Software_Foundation/tomcat-help.html Hi. I am sorry, but I believe that you need help at another level as that which we are able to provide on this list. This list is specifically for Tomcat issues, and it is assumed that whoever comes for help here, has at least a fundamental knowledge of the HTTP protocol, how webservers work, and Java for instance. I may be mistaken, but it is not evident from your post that you have such. It is not even clear why you need Tomcat at all. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Novice's
On 12/30/10 11:39 AM, Morten Bo Ølbye wrote: Dear all. I have tryed to find out how to use Tomcat. So far not very successfully. Some help is needed, but in order not to strain the user list too much i have put my request in my own link: Which is actually more difficult for list readers because we now have to launch another app to read your question. So, to save time: I am trying to run this Tomcat ver. 6.29 on an Windows XP system. The directory is as follow's C:\Programmer\Apache Software Foundation\Apache2.2 C:\Programmer\Apache Software Foundation\Tomcat 6.0 Why I am in the need for some help? Because I have not been able to find any Toutorial that take it outspring in a comlete system information. For Tomcat, you just unzip the download it's ready to go. The few touturial available has only partial information. That is, I can do this and that. Do what and which? But not any information about the Operation system, its directory system and its goal, leaving me back in some sort of emptiness. What are you actually looking for? Tomcat is a Servlet Container (and web server) and so it's primary goal is to serve Servlet Spec compliant web applications. The same I could say about the online Tomcat documentation. Here: http://tomcat.apache.org/ ? Of course I am able to run the command Http://localhost:8080, with a successful page of Tomcat Good start, I'd say. Please take a look at the default directory structure. I am familiar with it. What I doo need some help about is my wireless connections. I have used netbeans in order to write a wireless tcp connection. Right... This work fine, except that I want Tomcat to fetch the data when requested, listening to some port. Which is it? Listen for data, or request data? An other application, similar to the TCP-connection, is an incomming request about an automatic upload. The wireless module has the ability to sen an OTA download request. When this is done, the module restart using the new program Tomcat provides connectors to service HTTP (or AJP) requests. Are you sending HTTP requests? p 0x62590808.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature
Re: Novice's
Morten Bo Ølbye schrieb am 30.12.2010 um 12:39 (+0100): Dear all. I have tryed to find out how to use Tomcat. So far not very successfully. Some help is needed, but in order not to strain the user list too much i have put my request in my own link: http://www.graphelle-elektronik.dk/Apache_Software_Foundation/tomcat-help.html Well, you could have posted that here, it's rather short. On the other hand, much of it is confusing, or off-topic. Talking about stuff like wireless and OTA download request, for example. I'm wondering *why* you want to use Tomcat? What is your objective? If it's only for learning (which is fine, of course), you might benefit from reading an introductory level book such as Head First Servlets or whatever it is called. -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat security problem..please help
Thank you so much. I will do that. Thanks and Regards, Muralidhar Yaragalla, Senior Software Specialist, Patni Computer Systems Ltd, B-45/B-46, SIPCOT IT Park, Rajiv Gandhi Salai (IT Highway), Siruseri,Chennai - 603 103. Tel: 91 44 4744 x 2224 Link Line: 9 613 4516 Mobile : 9791174806 -Original Message- From: André Warnier [mailto:a...@ice-sa.com] Sent: Thursday, December 30, 2010 3:12 PM To: Tomcat Users List Subject: Re: Tomcat security problem..please help Yaragalla, Muralidhar wrote: Hi all , I have added security manager in a filter initialization method in my webb app. I have deployed webapp in tomcat and when I start tomcat it is throwing the following error. Kindly help me in this. How to avoid this?What should I do in the security policy? Reading the on-line documentation at http://tomcat.apache.org/tomcat-6.0-doc/security-manager-howto.html would be a good first step. A second one, in your next post, would be to indicate which version of Tomcat you are running, on which platform, under which JVM. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org Information contained and transmitted by this e-mail is confidential and proprietary to Patni Computer Systems Ltd and its affiliates (hitherto referred as Patni Computers) and is intended for use only by the recipient. If you are not the intended recipient , you are hereby notified that any dissemination, distribution, copying or use of this e-mail is strictly prohibited and you are requested to delete this e-mail immediately and notify the originator or netad...@patni.com. Patni Computers does not enter into any agreement with any party by e-mail. Any views expressed by an individual do not necessarily reflect the view of Patni Computers. Patni Computers is not responsible for the consequences of any actions taken on the basis of information provided, through this email. The contents of an attachment to this e-mail may contain software viruses, which could damage your own computer system. While Patni Computers has taken every reasonable precaution to minimise this risk, we cannot accept liability for any damage which you sustain as a result of software viruses. You should carry out your own virus checks before opening an attachment. To know more about Patni Computers please visit www.patni.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: NetBeans Tomcat 5.5 problem
Ok i will rephrase question. When i run startup.but for Tomcat 5.5.31 on my windows xp from command prompt i get the message SEVERE: Error listenerStart after this some more lines and at the end: INFO: Server Startup in 3300ms. I do not know why is this happeninig. Could someone plese help me with this? When i download Tomcat 6.0 from same web site it starts and stops perfectly normal ! Thank you, Sasha!
Re: NetBeans Tomcat 5.5 problem
Hi. 1) stop /both/ tomcats and make sure they are stopped. 2) open a command window, and type the command : netstat -ano then copy the result and paste it here. 3) then also paste the conf/server.xml file of tomcat 5.5 here, after removing all the comments and any passwords etc.. Do not provide this information as attachments, the list usually strips them. Really paste the text in the email. Sasa Rakic wrote: Ok i will rephrase question. When i run startup.but for Tomcat 5.5.31 on my windows xp from command prompt i get the message SEVERE: Error listenerStart after this some more lines and at the end: INFO: Server Startup in 3300ms. I do not know why is this happeninig. Could someone plese help me with this? When i download Tomcat 6.0 from same web site it starts and stops perfectly normal ! Thank you, Sasha! - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Intercept Tomcat log
Hi, Is there any way to intercept log entries? We are building a monitoring mechanism that open JIRA issues for some kinds of uncaught exceptions, so I need to monitor exceptions that appear on catalina.out log file. -- []'s Igor Regis
Re: Tomcat 5.5/HTTPD cluster question
My mistake, Here are the details. I should have confirmed first before posting but besides the apache version everything else is correct. tomcat 5.5.2.7 apachectl -l shows prefork compiled in. *$JAVA_HOME/bin/java -version* java version 1.6.0_10 Java(TM) SE Runtime Environment (build 1.6.0_10-b33) Java HotSpot(TM) 64-Bit Server VM (build 11.0-b15, mixed mode) *uname -a* Linux WEB07 2.6.9-89.31.1.ELsmp #1 SMP Mon Oct 4 21:41:59 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux *uname -m* x86_64 * * */usr/sbin/apachectl -v* Server version: Apache/2.0.52 Server built: Mar 23 2010 08:16:30 On Wed, Dec 29, 2010 at 9:21 AM, Pid p...@pidster.com wrote: On 12/28/10 9:13 PM, Don Hill wrote: We are on 64bit JVM 1.6 the heap is 8GB for each Tomcat instance. The OS is RHEL 4.0 64 bit Great. Which versions of HTTPD 1.3 and Tomcat 5.5 are they? p On Tue, Dec 28, 2010 at 7:30 AM, Pid p...@pidster.com wrote: On 12/27/10 4:42 PM, Don Hill wrote: Thanks. I am trying to get them to migrate. It seems that part of there bottleneck could be the MAX clients on HTTPD. They get high volumes at times and have like 1800-3000 active sessions. Any other input would be great like tuning tomcat to workers and the best strategy to setup a tomcat/httpd env. Don On Mon, Dec 27, 2010 at 9:34 AM, André Warnier a...@ice-sa.com wrote: Don Hill wrote: Hi. I am working on a tomcat 5.5 cluster which is using ajp/1.3 and mod_jk and trying to determine the best cluster design given the hardware. I have 2 xeon 2.3 ghz 2 CPU machines with 38GB ram machine. Currently here is the config I am using. The TOMCAT and HTTPD servers are on the same physical machine. Each machine is running HTTPD 1.3 with prefork, the MaxClients is 256 due compiled in limits. Each machine has 4 virtualhosts running through one instance of HTTPD. Two of the VHOSTS are the same app running on Tomcat 5.5 with 8GB RAM(configured by customer). The workers are configured to each VHOST meaning for each machine there are 4 workers defined and one worker is defined for each VHOST. I will try and depict this below. The current load balancing is controlled by F5 and manages the load across 2 machines, 4 VHOST for each app. Based on this info can someone recommend if this configuration could be improved and if so what would you recommend ? The very first thing that I would recommend, would be to use the current versions of both httpd and tomcat. The versions you mention above are several years old, and no longer being developed, except maybe for security patches. See : http://httpd.apache.org/docs/1.3/ See : http://tomcat.apache.org/whichversion.html Are you using a 64bit JVM? What version is it? Is your OS a 64bit version? Which OS is it? p
Re: Intercept Tomcat log
On Thu, 30 Dec 2010 13:28:02 -0200, Igor Simões igor.americ...@gmail.com wrote: Is there any way to intercept log entries? We are building a monitoring mechanism that open JIRA issues for some kinds of uncaught exceptions, so I need to monitor exceptions that appear on catalina.out log file. Implement custom log4j appender? I'd rather use offline tool (perl script?) to process logfiles. -- Mikolaj Rydzewski m...@ceti.pl - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Intercept Tomcat log
Mikolaj Rydzewski wrote: On Thu, 30 Dec 2010 13:28:02 -0200, Igor Simões igor.americ...@gmail.com wrote: Is there any way to intercept log entries? We are building a monitoring mechanism that open JIRA issues for some kinds of uncaught exceptions, so I need to monitor exceptions that appear on catalina.out log file. Implement custom log4j appender? I'd rather use offline tool (perl script?) to process logfiles. +1 and have a look here : http://cpan.uwinnipeg.ca/htdocs/JIRA-Client/JIRA/Client.html and about parsing the logfiles, here : http://cpan.uwinnipeg.ca/search?query=logfilesmode=dist perl/CPAN rocks ! - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: NetBeans Tomcat 5.5 problem
Here is print screen of netstat -ano like image.jpg! ?xml version=1.0 encoding=UTF-8? Server port=8005 shutdown=SHUTDOWN Listener className=org.apache.catalina.core.AprLifecycleListener / Listener className=org.apache.catalina.mbeans.ServerLifecycleListener / Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / Listener className=org.apache.catalina.storeconfig.StoreConfigLifecycleListener/ GlobalNamingResources Environment name=simpleValue type=java.lang.Integer value=30/ Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved factory=org.apache.catalina.users.MemoryUserDatabaseFactory pathname=conf/tomcat-users.xml / /GlobalNamingResources Service name=Catalina Connector port=8080 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 connectionTimeout=2 disableUploadTimeout=true / Connector port=8009 enableLookups=false redirectPort=8443 protocol=AJP/1.3 / Engine name=Catalina defaultHost=localhost Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase/ Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false /Host /Engine /Service /Server Is this OK? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tomcat 5.5 problem
I have problem with this version of Tomcat 5.5.31 on Windows XP SP3 and also on Windows 7. I use jdk. Here is print screen of netstat -ano from cmd prompt like netstat -ano.jpg! And here is server.xml without comments! ?xml version=1.0 encoding=UTF-8? Server port=8005 shutdown=SHUTDOWN Listener className=org.apache.catalina.core.AprLifecycleListener / Listener className=org.apache.catalina.mbeans.ServerLifecycleListener / Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / Listener className=org.apache.catalina.storeconfig.StoreConfigLifecycleListener/ GlobalNamingResources Environment name=simpleValue type=java.lang.Integer value=30/ Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved factory=org.apache.catalina.users.MemoryUserDatabaseFactory pathname=conf/tomcat-users.xml / /GlobalNamingResources Service name=Catalina Connector port=8080 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 connectionTimeout=2 disableUploadTimeout=true / Connector port=8009 enableLookups=false redirectPort=8443 protocol=AJP/1.3 / Engine name=Catalina defaultHost=localhost Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase/ Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false /Host /Engine /Service /Server I hope someone hava idea what is the problem! Thanks a lot Sasa! - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 5.5 problem
2010/12/30 Sasa Rakic sas...@gmail.com: I have problem with this version of Tomcat 5.5.31 on Windows XP SP3 and also on Windows 7. I use jdk. Here is print screen of netstat -ano from cmd prompt like netstat -ano.jpg! I hope someone hava idea what is the problem! This mailing list does not allow images. (or any other attachments) Either post it somewhere else and give us a link, or describe your problem by words. What you are trying to do and what step fails? Without any description it is hard to guess what your problem is. Without knowing what your problem is: - If you have Tomcat-Native installed (that is /bin/tcnative-1.dll) -- try to run without it (e.g., rename the dll file). - Is there anything in the logs? Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 5.5 problem
1.I put .war file from my JSF project in to webapps folder of my apache tomcat 5.5.31 directory. .../apache tomcat 5.5.31/webapps/MyProject.WAR 2.From the command prompt i start startup.bat file which is positioned in .../apache tomcat 5.5.31/bin/startup.bat. And Tomcat does not work. If i do same thing with Tomcat 6.0 it works fine. When i try to repeat all this useing NetBeans the result is the same. In Tomcat command window i get message: My catalina out looks like this: Dec 30, 2010 6:55:39 PM org.apache.catalina.core.AprLifecycleListener init INFO: Loaded APR based Apache Tomcat Native library 1.1.20. Dec 30, 2010 6:55:39 PM org.apache.catalina.core.AprLifecycleListener init INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. Dec 30, 2010 6:55:40 PM org.apache.coyote.http11.Http11AprProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Dec 30, 2010 6:55:40 PM org.apache.coyote.ajp.AjpAprProtocol init INFO: Initializing Coyote AJP/1.3 on ajp-8009 Dec 30, 2010 6:55:40 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1594 ms Dec 30, 2010 6:55:40 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Dec 30, 2010 6:55:40 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.31 Dec 30, 2010 6:55:40 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Dec 30, 2010 6:55:41 PM org.apache.coyote.http11.Http11AprProtocol start INFO: Starting Coyote HTTP/1.1 on http-8080 Dec 30, 2010 6:55:42 PM org.apache.coyote.ajp.AjpAprProtocol start INFO: Starting Coyote AJP/1.3 on ajp-8009 Dec 30, 2010 6:55:42 PM org.apache.catalina.storeconfig.StoreLoader load INFO: Find registry server-registry.xml at classpath resource Dec 30, 2010 6:55:42 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 2031 ms Dec 30, 2010 6:56:29 PM org.apache.coyote.http11.Http11AprProtocol pause INFO: Pausing Coyote HTTP/1.1 on http-8080 Dec 30, 2010 6:56:29 PM org.apache.coyote.ajp.AjpAprProtocol pause INFO: Pausing Coyote AJP/1.3 on ajp-8009 Dec 30, 2010 6:56:30 PM org.apache.catalina.core.StandardService stop INFO: Stopping service Catalina Dec 30, 2010 6:56:30 PM org.apache.coyote.http11.Http11AprProtocol destroy INFO: Stopping Coyote HTTP/1.1 on http-8080 Dec 30, 2010 6:56:30 PM org.apache.coyote.ajp.AjpAprProtocol destroy INFO: Stopping Coyote AJP/1.3 on ajp-8009 Dec 30, 2010 6:57:11 PM org.apache.catalina.core.AprLifecycleListener init INFO: Loaded APR based Apache Tomcat Native library 1.1.20. Dec 30, 2010 6:57:11 PM org.apache.catalina.core.AprLifecycleListener init INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. Dec 30, 2010 6:57:12 PM org.apache.coyote.http11.Http11AprProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Dec 30, 2010 6:57:12 PM org.apache.coyote.ajp.AjpAprProtocol init INFO: Initializing Coyote AJP/1.3 on ajp-8009 Dec 30, 2010 6:57:12 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1625 ms Dec 30, 2010 6:57:12 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Dec 30, 2010 6:57:12 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.31 Dec 30, 2010 6:57:12 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Dec 30, 2010 6:57:13 PM org.apache.coyote.http11.Http11AprProtocol start INFO: Starting Coyote HTTP/1.1 on http-8080 Dec 30, 2010 6:57:14 PM org.apache.coyote.ajp.AjpAprProtocol start INFO: Starting Coyote AJP/1.3 on ajp-8009 Dec 30, 2010 6:57:14 PM org.apache.catalina.storeconfig.StoreLoader load INFO: Find registry server-registry.xml at classpath resource Dec 30, 2010 6:57:14 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 1906 ms Dec 30, 2010 6:57:38 PM org.apache.coyote.http11.Http11AprProtocol pause INFO: Pausing Coyote HTTP/1.1 on http-8080 Dec 30, 2010 6:57:38 PM org.apache.coyote.ajp.AjpAprProtocol pause INFO: Pausing Coyote AJP/1.3 on ajp-8009 Dec 30, 2010 6:57:39 PM org.apache.catalina.core.StandardService stop INFO: Stopping service Catalina Dec 30, 2010 6:57:39 PM org.apache.coyote.http11.Http11AprProtocol destroy INFO: Stopping Coyote HTTP/1.1 on http-8080 Dec 30, 2010 6:57:39 PM org.apache.coyote.ajp.AjpAprProtocol destroy INFO: Stopping Coyote AJP/1.3 on ajp-8009 Dec 30, 2010 7:15:56 PM org.apache.catalina.core.AprLifecycleListener init INFO: Loaded APR based Apache Tomcat Native library 1.1.20. Dec 30, 2010 7:15:56 PM org.apache.catalina.core.AprLifecycleListener init INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. Dec 30, 2010 7:15:57 PM org.apache.coyote.http11.Http11AprProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Dec 30, 2010 7:15:57 PM org.apache.coyote.ajp.AjpAprProtocol init INFO: Initializing Coyote AJP/1.3 on ajp-8009 Dec 30, 2010
Re: Tomcat 5.5 problem
2010/12/30 Sasa Rakic sas...@gmail.com: 1.I put .war file from my JSF project in to webapps folder of my apache What version of JSF? Please show us your web.xml Maybe you will need Tomcat 6 for your application. (See Which version? link on the main page of tomcat.apache.org). Can you use Tomcat 6? tomcat 5.5.31 directory. .../apache tomcat 5.5.31/webapps/MyProject.WAR 2.From the command prompt i start startup.bat file which is positioned in .../apache tomcat 5.5.31/bin/startup.bat. And Tomcat does not work. If i do same thing with Tomcat 6.0 it works fine. When i try to repeat all this useing NetBeans the result is the same. In Tomcat command window i get message: What message? You did not wrote. My catalina out looks like this: Dec 30, 2010 6:55:39 PM org.apache.catalina.core.AprLifecycleListener init INFO: Loaded APR based Apache Tomcat Native library 1.1.20. Dec 30, 2010 6:55:39 PM org.apache.catalina.core.AprLifecycleListener init INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. The above message means that Tomcat-Native is used. (It seems irrelevant to your problem. Just noting). Dec 30, 2010 6:55:40 PM org.apache.coyote.http11.Http11AprProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 (skipping..., everything is OK) Dec 30, 2010 7:15:58 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive TestATom5.war Dec 30, 2010 7:15:59 PM org.apache.catalina.core.StandardContext start SEVERE: Error listenerStart Dec 30, 2010 7:15:59 PM org.apache.catalina.core.StandardContext start SEVERE: Context [/TestATom5] startup failed due to previous errors You should look into localhost*.log files as well. Those previous errors should be there. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 5.5 problem
From the following, it looks like Tomcat is running fine: Dec 30, 2010 6:55:42 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 2031 ms From the following, it looks like your application is not running fine: Dec 30, 2010 7:15:58 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive TestATom5.war Dec 30, 2010 7:15:59 PM org.apache.catalina.core.StandardContext start SEVERE: Error listenerStart Dec 30, 2010 7:15:59 PM org.apache.catalina.core.StandardContext start SEVERE: Context [/TestATom5] startup failed due to previous errors Please note the following differences in Tomcat 5.5.x and Tomcat 6.0.x: From http://tomcat.apache.org/tomcat-5.5-doc/index.html Apache Tomcat version 5.5 implements the Servlet 2.4 and JavaServer Pages 2.0 specifications From http://tomcat.apache.org/tomcat-6.0-doc/index.html Apache Tomcat version 6.0 implements the Servlet 2.5 and JavaServer Pages 2.1 specifications Could the fact that your application runs on Tomcat 6.0 and not 5.5 be due to this? When you're developing in NetBeans and choose a server for the application, you can set the Java EE version. For Tomcat 6, the version defaults to Java EE 5 with an option to choose J2EE 1.4. For Tomcat 5.5, it defaults to J2EE 1.4. When you choose J2EE 1.4, you have an additional option to set the source code level to 1.4 (defaults to this). If you first developed for Tomcat 6.0.29 and accepted the defaults, the result will not be appropriate for running under Tomcat 5.5.31. Check your web.xml file and see what version of the servlet specification you're using. 2.4 version (this will run in both Tomcat 5.5.x and Tomcat 6.0.x): web-app version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation= http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; (sorry for the word-wrap on the last line) 2.5 version (this will run in Tomcat 6.0.x): web-app version=2.5 xmlns=http://java.sun.com/xml/ns/javaee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation= http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; (sorry for the word-wrap on the last line) Tomcat 7 (supported by NetBeans 7 the last time I checked) will run both as well. . . . . just my two cents. /mde/ - Original Message - From:Sasa Rakic sas...@gmail.com To:Tomcat Users List users@tomcat.apache.org Cc: Sent:Thursday, December 30, 2010 12:28:27 PM Subject:Re: Tomcat 5.5 problem 1.I put .war file from my JSF project in to webapps folder of my apache tomcat 5.5.31 directory. .../apache tomcat 5.5.31/webapps/MyProject.WAR 2.From the command prompt i start startup.bat file which is positioned in .../apache tomcat 5.5.31/bin/startup.bat. And Tomcat does not work. If i do same thing with Tomcat 6.0 it works fine. When i try to repeat all this useing NetBeans the result is the same. In Tomcat command window i get message: My catalina out looks like this: Dec 30, 2010 6:55:39 PM org.apache.catalina.core.AprLifecycleListener init INFO: Loaded APR based Apache Tomcat Native library 1.1.20. Dec 30, 2010 6:55:39 PM org.apache.catalina.core.AprLifecycleListener init INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. Dec 30, 2010 6:55:40 PM org.apache.coyote.http11.Http11AprProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Dec 30, 2010 6:55:40 PM org.apache.coyote.ajp.AjpAprProtocol init INFO: Initializing Coyote AJP/1.3 on ajp-8009 Dec 30, 2010 6:55:40 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1594 ms Dec 30, 2010 6:55:40 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Dec 30, 2010 6:55:40 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.31 Dec 30, 2010 6:55:40 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Dec 30, 2010 6:55:41 PM org.apache.coyote.http11.Http11AprProtocol start INFO: Starting Coyote HTTP/1.1 on http-8080 Dec 30, 2010 6:55:42 PM org.apache.coyote.ajp.AjpAprProtocol start INFO: Starting Coyote AJP/1.3 on ajp-8009 Dec 30, 2010 6:55:42 PM org.apache.catalina.storeconfig.StoreLoader load INFO: Find registry server-registry.xml at classpath resource Dec 30, 2010 6:55:42 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 2031 ms Dec 30, 2010 6:56:29 PM org.apache.coyote.http11.Http11AprProtocol pause INFO: Pausing Coyote HTTP/1.1 on http-8080 Dec 30, 2010 6:56:29 PM org.apache.coyote.ajp.AjpAprProtocol pause INFO: Pausing Coyote AJP/1.3 on ajp-8009 Dec 30, 2010 6:56:30 PM org.apache.catalina.core.StandardService stop INFO: Stopping service Catalina Dec 30, 2010 6:56:30 PM org.apache.coyote.http11.Http11AprProtocol destroy INFO: Stopping Coyote HTTP/1.1 on http-8080 Dec 30, 2010 6:56:30 PM
Re: NetBeans Tomcat 5.5 problem
Sasa Rakic wrote: Here is print screen of netstat -ano like image.jpg! Did I not warn you to not post these things as attachment, but paste the text right here ? Also, maybe stop posting the same problem multiple times with different subjects and descriptions. That is a bit confusing to say the least. So what is your problem finally ? Tomcat 5.5 not starting properly, or your application not running ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: NetBeans Tomcat 5.5 problem
It appears that NetBeans 6.9.1 will allow you to create Java web applications with incompatible containers / frameworks. For example, you can do the following: 1. Create a Java web application targeted for Tomcat 5.5 2. Select J2EE 1.4 (only item permissible) 3. Use the default source level of 1.4 4. Select JSF 1.2 as a framework (which requires the 2.5 specification and source level 1.5) I filed an enhancement request (although it should probably be a bug in the J2EE project wizard). I think further discussion should happen on a NetBeans forum. . . . . just my two cents. /mde/ - Original Message - From:André Warnier a...@ice-sa.com To:Tomcat Users List users@tomcat.apache.org Cc: Sent:Thursday, December 30, 2010 1:57:56 PM Subject:Re: NetBeans Tomcat 5.5 problem Sasa Rakic wrote: Here is print screen of netstat -ano like image.jpg! Did I not warn you to not post these things as attachment, but paste the text right here ? Also, maybe stop posting the same problem multiple times with different subjects and descriptions. That is a bit confusing to say the least. So what is your problem finally ? Tomcat 5.5 not starting properly, or your application not running ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Shared SSL
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Surya, On 12/29/2010 2:52 PM, Surya Mohan wrote: I am trying to use a shared SSL to configure the app for multiple clients using Tomcat 5.5. What do you mean when you say shared SSL? Any number of clients can use an SSL setup. It works fine for one client and trying to share the same for another client. Have you tried the second client? I'm unsure what you mean by client: I suspect you mean second hostname given the other information in your message. SSL : TestServer1.mycomp.com Host name=TestServer1.mycomp.com appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Must you specify the hostname for this Host? Context Don't do that: put Context elements into separate deployment descriptors in $TOMCAT_HOME/conf/[hostname]/[appname].xml path=/web Don't do that: the name of the XML file will specify the webapp's path. crossContext=false This is the default, and there is no need to specify this. debug=0 / The debug attribute is not recognized. Are you sure you are looking at the right documentation for your version of Tomcat? You may want to take another look. The above works fine, but when I try to add another client, Host name=TestServer1.mycomp.com This Host has the same name as the above: that's not legal (nor is it necessary: if you want two webapps under the same host, just use a single Host). appBase=webapps Mistake: using the same appBase for two Host entries will double-deploy all of your webapps from that directory, which is probably not what you wanted to do. Context path=/client2/web docBase=C:/Program Files/App/client2/web crossContext=false debug=0 / See my comments above. I get the error child name cannot be unique. I'm guessing that the error you see is child name *must be* unique. Since we have only one SSL created to share, any help would be greatly appreciated. The solution is simple: simply use a single Host. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk0dOqsACgkQ9CaO5/Lv0PD5/gCeL9ajIOFpHvWRLNi7JJPYnjnB b8AAoJreFcH4LeWhIXvdau8PNPaNiYyY =4HJC -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 5.5/HTTPD cluster question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Don, On 12/30/2010 10:41 AM, Don Hill wrote: My mistake, Here are the details. I should have confirmed first before posting but besides the apache version everything else is correct. tomcat 5.5.2.7 That's not a version published by Tomcat. More likely, this is a version packaged by RHEL. If it's really based upon Tomcat 5.5.2 (a reasonable guess), you seriously need to upgrade. If that was a typo and you are really running Tomcat 5.5.27, then you could still afford to upgrade to 5.5.31 which is the latest. You described your environment to a certain extent, but didn't say what your goals were: are you experiencing any problems with your setup? Are you just looking to streamline things so that you can increase load without having to upgrade anything? If things are going well, why change anything? If you have a specific goal, let us know what it is and maybe we can help you with it. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk0dPZgACgkQ9CaO5/Lv0PD+GACgnXZ+Q5VTeOyG5Wmm1QgqRogs 6FcAn2MLml4HETMBlCZU8HyRkUFitZr/ =9iUp -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 5.5 problem
Ok but application is automaticaly generated in NetBeans 6.9 and it containes only one .jsp page it is index.jsp. And i chosed Tomcet 5.5 and J2EE 1.4. ?xml version=1.0 encoding=UTF-8? web-app version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation= http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; context-param param-namejavax.faces.PROJECT_STAGE/param-name param-valueDevelopment/param-value /context-param servlet servlet-nameFaces Servlet/servlet-name servlet-classjavax.faces.webapp.FacesServlet/servlet-class load-on-startup1/load-on-startup /servlet servlet-mapping servlet-nameFaces Servlet/servlet-name url-pattern/faces/*/url-pattern /servlet-mapping session-config session-timeout 30 /session-timeout /session-config welcome-file-list welcome-filefaces/index.jsp/welcome-file /welcome-file-list /web-app And project use web-app version=2.4. On Thu, Dec 30, 2010 at 10:14 PM, Mark Eggers its_toas...@yahoo.com wrote: From the following, it looks like Tomcat is running fine: Dec 30, 2010 6:55:42 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 2031 ms From the following, it looks like your application is not running fine: Dec 30, 2010 7:15:58 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive TestATom5.war Dec 30, 2010 7:15:59 PM org.apache.catalina.core.StandardContext start SEVERE: Error listenerStart Dec 30, 2010 7:15:59 PM org.apache.catalina.core.StandardContext start SEVERE: Context [/TestATom5] startup failed due to previous errors Please note the following differences in Tomcat 5.5.x and Tomcat 6.0.x: From http://tomcat.apache.org/tomcat-5.5-doc/index.html Apache Tomcat version 5.5 implements the Servlet 2.4 and JavaServer Pages 2.0 specifications From http://tomcat.apache.org/tomcat-6.0-doc/index.html Apache Tomcat version 6.0 implements the Servlet 2.5 and JavaServer Pages 2.1 specifications Could the fact that your application runs on Tomcat 6.0 and not 5.5 be due to this? When you're developing in NetBeans and choose a server for the application, you can set the Java EE version. For Tomcat 6, the version defaults to Java EE 5 with an option to choose J2EE 1.4. For Tomcat 5.5, it defaults to J2EE 1.4. When you choose J2EE 1.4, you have an additional option to set the source code level to 1.4 (defaults to this). If you first developed for Tomcat 6.0.29 and accepted the defaults, the result will not be appropriate for running under Tomcat 5.5.31. Check your web.xml file and see what version of the servlet specification you're using. 2.4 version (this will run in both Tomcat 5.5.x and Tomcat 6.0.x): web-app version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation= http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; (sorry for the word-wrap on the last line) 2.5 version (this will run in Tomcat 6.0.x): web-app version=2.5 xmlns=http://java.sun.com/xml/ns/javaee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation= http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; (sorry for the word-wrap on the last line) Tomcat 7 (supported by NetBeans 7 the last time I checked) will run both as well. . . . . just my two cents. /mde/ - Original Message - From:Sasa Rakic sas...@gmail.com To:Tomcat Users List users@tomcat.apache.org Cc: Sent:Thursday, December 30, 2010 12:28:27 PM Subject:Re: Tomcat 5.5 problem 1.I put .war file from my JSF project in to webapps folder of my apache tomcat 5.5.31 directory. .../apache tomcat 5.5.31/webapps/MyProject.WAR 2.From the command prompt i start startup.bat file which is positioned in .../apache tomcat 5.5.31/bin/startup.bat. And Tomcat does not work. If i do same thing with Tomcat 6.0 it works fine. When i try to repeat all this useing NetBeans the result is the same. In Tomcat command window i get message: My catalina out looks like this: Dec 30, 2010 6:55:39 PM org.apache.catalina.core.AprLifecycleListener init INFO: Loaded APR based Apache Tomcat Native library 1.1.20. Dec 30, 2010 6:55:39 PM org.apache.catalina.core.AprLifecycleListener init INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. Dec 30, 2010 6:55:40 PM org.apache.coyote.http11.Http11AprProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Dec 30, 2010 6:55:40 PM org.apache.coyote.ajp.AjpAprProtocol init INFO: Initializing Coyote AJP/1.3 on ajp-8009 Dec 30, 2010 6:55:40 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1594 ms Dec 30, 2010 6:55:40 PM
Re: NetBeans Tomcat 5.5 problem
Thak you all !!! On Fri, Dec 31, 2010 at 12:27 AM, Mark Eggers its_toas...@yahoo.com wrote: It appears that NetBeans 6.9.1 will allow you to create Java web applications with incompatible containers / frameworks. For example, you can do the following: 1. Create a Java web application targeted for Tomcat 5.5 2. Select J2EE 1.4 (only item permissible) 3. Use the default source level of 1.4 4. Select JSF 1.2 as a framework (which requires the 2.5 specification and source level 1.5) I filed an enhancement request (although it should probably be a bug in the J2EE project wizard). I think further discussion should happen on a NetBeans forum. . . . . just my two cents. /mde/ - Original Message - From:André Warnier a...@ice-sa.com To:Tomcat Users List users@tomcat.apache.org Cc: Sent:Thursday, December 30, 2010 1:57:56 PM Subject:Re: NetBeans Tomcat 5.5 problem Sasa Rakic wrote: Here is print screen of netstat -ano like image.jpg! Did I not warn you to not post these things as attachment, but paste the text right here ? Also, maybe stop posting the same problem multiple times with different subjects and descriptions. That is a bit confusing to say the least. So what is your problem finally ? Tomcat 5.5 not starting properly, or your application not running ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 5.5/HTTPD cluster question
Chris, Thanks for following up on this. From what I can tell it appears that the HTTPD server is stalling at MaxClients. This usually happens after some mailing and the site gets hit really hard with users, upward of 3000 active sessions being handle by 2 HTTPD servers and 4 Tomcat instances. Since we are using prefork/mod_jk it seems there could also be some high CPU usage. I have done extensive profiling from a heap perspective using jstat and jmap. I think I have the JVM tuned pretty good at this point. The Tomcat severs also had maxthreads for each JVM set really high like 1000 on the AJP/1.3 connector. I brought each JVM down to 200 max threads. Currently there are 2 VHOSTS on each machine with one HTTPD instance. We are load balancing via a F5 Load balancer. The LB manages load accros all 4 VHOST. Each VHOST uses one worker for to talk to one dedicated tomcat JVM. Besides doing upgrades to Tomcat/HTTPD servers do you think there are any configuration issues or can you suggest a better layout for this env. I was thinking of getting rid of the vhosts and use a balancer config in the mod_jk.config to manage the load to the Tomcat JVMs. This way the load could be balanced based on the Tomcat usage and not the VHOST usage as some of the load could be coming from static content and messing up the LB's balancing ability. I was also thinking that we should switch to worker mpm instead of the prefork. Anyways any thoughts or suggestions would be great. On Thu, Dec 30, 2010 at 8:19 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Don, On 12/30/2010 10:41 AM, Don Hill wrote: My mistake, Here are the details. I should have confirmed first before posting but besides the apache version everything else is correct. tomcat 5.5.2.7 That's not a version published by Tomcat. More likely, this is a version packaged by RHEL. If it's really based upon Tomcat 5.5.2 (a reasonable guess), you seriously need to upgrade. If that was a typo and you are really running Tomcat 5.5.27, then you could still afford to upgrade to 5.5.31 which is the latest. You described your environment to a certain extent, but didn't say what your goals were: are you experiencing any problems with your setup? Are you just looking to streamline things so that you can increase load without having to upgrade anything? If things are going well, why change anything? If you have a specific goal, let us know what it is and maybe we can help you with it. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk0dPZgACgkQ9CaO5/Lv0PD+GACgnXZ+Q5VTeOyG5Wmm1QgqRogs 6FcAn2MLml4HETMBlCZU8HyRkUFitZr/ =9iUp -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org