Generate pkcs12 certificates from offical COMODO certs
Hello I have officials certificates for apache2 from COMODO that I would like to import into tomcat ( pkcs12 ) if someone has links / infos to do this task it would be a great help ( google doesn't help much ) thanks you
Re: Generate pkcs12 certificates from offical COMODO certs
Frank, On 14.2.2014 14:10, BONNET, Frank wrote: I have officials certificates for apache2 from COMODO that I would like to import into tomcat ( pkcs12 ) if someone has links / infos to do this task it would be a great help ( google doesn't help much ) You didn't mention if you have any preference whether you want to use: i. BIO or NIO HTTPS connectors (based on JSSE), or ii. APR HTTPS connector (based on OpenSSL). Since you mentioned that you want to use PKCS#12 format, I guess you are interested in JSSE connectors. If you want to use APR, then the procedure is different then the one described here. Let's say that you have 1. Server key in file server.key 2. Server certificate in file server.pem 3. Intermediate certificates in file intermediates.pem Then, all you need to do is: openssl pkcs12 -export -out keystore.p12 -name myserver -in server.pem -inkey server.key -certfile intermediates.pem Note that it is not necessary that intermediates.pem contains root certificate. Then, configure HTTPS connector in conf/server.xml as Connector port=443 protocol=org.apache.coyote.http11.Http11Protocol SSLEnabled=true maxThreads=150 scheme=https secure=true clientAuth=false sslProtocol=TLS keystoreFile=keystore.p12 keyAlias=myserver keystoreType=pkcs12 / I also recommend that if you check your ciphers strenth, and restrict them accordingly. -Ognjen - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Generate pkcs12 certificates from offical COMODO certs
I need to convert/import from PEM format to P12 thanks 2014-02-14 14:14 GMT+01:00 Sanaullah sanaulla...@gmail.com: Hi Frank, I am not expert with apache. can you please let me know which format of certificate you do have? pem, der, p12. and also in which format you would like to convert? or import Regards, Sanaullah On Fri, Feb 14, 2014 at 6:10 PM, BONNET, Frank frank.bon...@esiee.frwrote: Hello I have officials certificates for apache2 from COMODO that I would like to import into tomcat ( pkcs12 ) if someone has links / infos to do this task it would be a great help ( google doesn't help much ) thanks you
Re: Generate pkcs12 certificates from offical COMODO certs
Hello Ognjen the intermediate cert in the one named chain right ? *Frank BONNET* Systemes UNIX et Reseaux ESIEE PARIS 01.45.92.66.17 - 06.70.37.37.69 2014-02-14 14:57 GMT+01:00 Ognjen Blagojevic ognjen.d.blagoje...@gmail.com : Frank, On 14.2.2014 14:10, BONNET, Frank wrote: I have officials certificates for apache2 from COMODO that I would like to import into tomcat ( pkcs12 ) if someone has links / infos to do this task it would be a great help ( google doesn't help much ) You didn't mention if you have any preference whether you want to use: i. BIO or NIO HTTPS connectors (based on JSSE), or ii. APR HTTPS connector (based on OpenSSL). Since you mentioned that you want to use PKCS#12 format, I guess you are interested in JSSE connectors. If you want to use APR, then the procedure is different then the one described here. Let's say that you have 1. Server key in file server.key 2. Server certificate in file server.pem 3. Intermediate certificates in file intermediates.pem Then, all you need to do is: openssl pkcs12 -export -out keystore.p12 -name myserver -in server.pem -inkey server.key -certfile intermediates.pem Note that it is not necessary that intermediates.pem contains root certificate. Then, configure HTTPS connector in conf/server.xml as Connector port=443 protocol=org.apache.coyote.http11.Http11Protocol SSLEnabled=true maxThreads=150 scheme=https secure=true clientAuth=false sslProtocol=TLS keystoreFile=keystore.p12 keyAlias=myserver keystoreType=pkcs12 / I also recommend that if you check your ciphers strenth, and restrict them accordingly. -Ognjen - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Eclipse: Server Tomcat v7.0 Server at localhost failed to start.
Maybe you added a .jar file to the build path and there is a conflict with the jars already present in Eclipse and Tomcat. My solution was to remove the jars. On Thu, Feb 13, 2014 at 10:27 PM, Dave Kennedy davek1...@gmail.com wrote: Env: Windows 7 Java: jdk1.7.0_51 STS 3.4.0.RELEASE (Based on Eclipse 4.3.1) Tomcat: apache-tomcat-7.0.50 Tomcat runs from the cmd line startup.bat ( JAVA_HOME=C:\Program Files (x86)\Java\jdk1.7.0_51), but not from within Eclipse Any help or suggestions on how to resolve this would be greatly appreciated. Feb 13, 2014 1:17:22 PM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files (x86)\Java\jdk1.7.0_51\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Users\USER\bin\Sencha\Cmd\4.0.2.67;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin;C:\Program Files (x86)\IBM\RationalSDLC\common;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\MySQL\MySQL Utilities 1.3.6\;. Feb 13, 2014 1:17:22 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler [http-bio-8080] Feb 13, 2014 1:17:22 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler [ajp-bio-8009] Feb 13, 2014 1:17:22 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 309 ms Feb 13, 2014 1:17:22 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service Catalina Feb 13, 2014 1:17:22 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.50 Feb 13, 2014 1:17:22 PM org.apache.catalina.core.ContainerBase startInternal SEVERE: A child container failed during start java.util.concurrent.ExecutionException: java.lang.ExceptionInInitializerError at java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.util.concurrent.FutureTask.get(FutureTask.java:188) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123) at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:801) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Caused by: java.lang.ExceptionInInitializerError at org.apache.catalina.startup.ContextConfig.createWebXmlDigester(ContextConfig.java:522) at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:843) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:389) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:110) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139) ... 6 more Caused by: java.lang.NullPointerException at org.apache.tomcat.util.descriptor.DigesterFactory.idFor(DigesterFactory.java:107) at org.apache.tomcat.util.descriptor.DigesterFactory.clinit(DigesterFactory.java:59) ... 14 more Feb 13, 2014 1:17:22 PM org.apache.catalina.core.ContainerBase startInternal SEVERE: A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]] at java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.util.concurrent.FutureTask.get(FutureTask.java:188) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123) at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.startup.Catalina.start(Catalina.java:690) at
Re: Generate pkcs12 certificates from offical COMODO certs
Frank, On 14.2.2014 15:00, BONNET, Frank wrote: the intermediate cert in the one named chain right ? Yes, it is usually named that way. -Ognjen - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Unable to shutdown Tomcat
I am unable to shutdown my tomcat gracefully. Everytime I try to shutdown tomcat, this is the error I get. test@17.198.48.77:/Users/test/software/tomcat/bin./startup.sh Using CATALINA_BASE: /Users/test/software/tomcat Using CATALINA_HOME: /Users/test/software/tomcat Using CATALINA_TMPDIR: /Users/test/software/tomcat/temp Using JRE_HOME: /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home Using CLASSPATH: /Users/test/software/tomcat/bin/bootstrap.jar:/Users/test/software/tomcat/bin/tomcat-juli.jar test@17.198.48.77:/Users/test/software/tomcat/bin./shutdown.sh Using CATALINA_BASE: /Users/test/software/tomcat Using CATALINA_HOME: /Users/test/software/tomcat Using CATALINA_TMPDIR: /Users/test/software/tomcat/temp Using JRE_HOME: /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home Using CLASSPATH: /Users/test/software/tomcat/bin/bootstrap.jar:/Users/test/software/tomcat/bin/tomcat-juli.jar Feb 14, 2014 6:37:52 PM org.apache.catalina.startup.Catalina stopServer SEVERE: Catalina.stop: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:382) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:241) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:228) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:431) at java.net.Socket.connect(Socket.java:527) at java.net.Socket.connect(Socket.java:476) at java.net.Socket.init(Socket.java:373) at java.net.Socket.init(Socket.java:187) at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:499) 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:597) at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:371) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:453) I have also tried killing, restarting, and ./shutdown.sh, installing tomcat again, changing port number. Nothing seems to be helping. Please advise.
RE: Unable to shutdown Tomcat
From: Pooja Swamy [mailto:poojasw...@gmail.com] Subject: Unable to shutdown Tomcat Everytime I try to shutdown tomcat, this is the error I get. Feb 14, 2014 6:37:52 PM org.apache.catalina.startup.Catalina stopServer SEVERE: Catalina.stop: java.net.ConnectException: Connection refused Exact Tomcat version? JVM version? Your server.xml contents, without comments? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Issue running Websockets JSR356 with Tomcat 7.0.50 Embedded
Here is the client code that I use to recreate the problem: public static void main(String[] args) throws Exception { String currentDir = new File(.).getCanonicalPath(); String tomcatDir = currentDir + File.separatorChar + tomcat; String webRoot = currentDir + File.separatorChar + examples; Tomcat tomcat = new Tomcat(); tomcat.setBaseDir(tomcatDir); tomcat.setPort(8080); tomcat.addWebapp(/examples, webRoot); // this code gets the JarScanner and sets scanClassPath to false: // with this setting the websockets are not deployed Container[] containers = tomcat.getService().getContainer().findChildren(); StandardHost host = (StandardHost)containers[0]; containers = host.findChildren(); StandardContext ctx = (StandardContext)containers[0]; StandardJarScanner jarScanner = (StandardJarScanner)ctx.getJarScanner(); jarScanner.setScanClassPath(false); // if this is set to true the websockets are deployed successfully tomcat.start(); while (true) { Thread.sleep(9); } } I run this code from a folder containing the examples webapp and the Tomcat jars. Is there a way to deploy successfully the websockets with setScanClassPath(false) ? Thanks, Jacopo On Feb 13, 2014, at 6:47 PM, Jacopo Cappellato jacopo.cappell...@gmail.com wrote: Hello all, I did further tests and I have now implemented a test client that executes a Tomcat embedded instance that is successfully running websockets. The client code resembles quite closely what we are doing in OFBiz to prepare the Tomcat instance... and I think I have found the settings that is causing the issue in OFBiz. When in OFBiz we create the Context objects we set in their JarScanner (we use the StandardJarScanner): setScanClassPath(false) I have noticed that if in my test client I set the same the websockets are not mounted; they only work with setScanClassPath(true). Since I doubt we will be able to set it to true in OFBiz, I would really appreciate if you could provide some hints about the mechanism that Tomcat uses to deploy websockets. Am I completely off track? Thanks, Jacopo On Jan 29, 2014, at 4:42 PM, Jacopo Cappellato jacopo.cappell...@gmail.com wrote: Hello all, I am trying to deploy and use Websockets using the Tomcat 7.0.50 *Embedded* distribution [*]. Some more details on my environment: * I have the following jars in my classpath: ** tomcat-7.0.50-tomcat-embed-core.jar ** tomcat-7.0.50-tomcat-embed-jasper.jar ** tomcat-7.0.50-tomcat-embed-logging-log4j.jar ** tomcat-7.0.50-tomcat7-websocket.jar ** tomcat-7.0.50-websocket-api.jar ** ecj-4.2.2.jar ** annotations-api-3.0.jar ** jsp-api-2.2.jar ** servlet-api-3.0.jar * I have mounted the examples webapp that comes with Tomcat (Core distribution) using the Embedded Tomcat instance: all the examples work fine (including the websocket-deprecated ones) except for the Websockets JSR356 ones When I try to run the Websockets JSR356 examples, when I try to Connect (either using the programmatic API or the annotation API) I get the message: Info: WebSocket connection closed. Nothing appears in the console. Any hints would be greatly appreciated. Thanks in advance Jacopo [*] The reason I am using the Embedded version of Tomcat is that I am trying to add support for Websockets to Apache OFBiz (ofbiz.apache.org) and OFBiz runs Tomcat in embedded mode. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Unable to shutdown Tomcat
Hello have you tried: ps -ef | grep port number kill -9 port number On Fri, Feb 14, 2014 at 10:44 AM, Pooja Swamy poojasw...@gmail.com wrote: I am unable to shutdown my tomcat gracefully. Everytime I try to shutdown tomcat, this is the error I get. test@17.198.48.77:/Users/test/software/tomcat/bin./startup.sh Using CATALINA_BASE: /Users/test/software/tomcat Using CATALINA_HOME: /Users/test/software/tomcat Using CATALINA_TMPDIR: /Users/test/software/tomcat/temp Using JRE_HOME: /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home Using CLASSPATH: /Users/test/software/tomcat/bin/bootstrap.jar:/Users/test/software/tomcat/bin/tomcat-juli.jar test@17.198.48.77:/Users/test/software/tomcat/bin./shutdown.sh Using CATALINA_BASE: /Users/test/software/tomcat Using CATALINA_HOME: /Users/test/software/tomcat Using CATALINA_TMPDIR: /Users/test/software/tomcat/temp Using JRE_HOME: /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home Using CLASSPATH: /Users/test/software/tomcat/bin/bootstrap.jar:/Users/test/software/tomcat/bin/tomcat-juli.jar Feb 14, 2014 6:37:52 PM org.apache.catalina.startup.Catalina stopServer SEVERE: Catalina.stop: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:382) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:241) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:228) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:431) at java.net.Socket.connect(Socket.java:527) at java.net.Socket.connect(Socket.java:476) at java.net.Socket.init(Socket.java:373) at java.net.Socket.init(Socket.java:187) at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:499) 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:597) at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:371) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:453) I have also tried killing, restarting, and ./shutdown.sh, installing tomcat again, changing port number. Nothing seems to be helping. Please advise.
RE: Unable to shutdown Tomcat
From: Leo Medina [mailto:leo.medi...@gmail.com] Subject: RE: Unable to shutdown Tomcat Hello have you tried: ps -ef | grep port number kill -9 port number You must have extremely odd implementations of ps and kill if you expect that to do anything useful. Are you confusing port number with pid? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Unable to shutdown Tomcat
On Fri, Feb 14, 2014 at 1:44 PM, Pooja Swamy poojasw...@gmail.com wrote: I am unable to shutdown my tomcat gracefully. Everytime I try to shutdown tomcat, this is the error I get. test@17.198.48.77:/Users/test/software/tomcat/bin./startup.sh Using CATALINA_BASE: /Users/test/software/tomcat Using CATALINA_HOME: /Users/test/software/tomcat Using CATALINA_TMPDIR: /Users/test/software/tomcat/temp Using JRE_HOME: /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home Using CLASSPATH: /Users/test/software/tomcat/bin/bootstrap.jar:/Users/test/software/tomcat/bin/tomcat-juli.jar OK, you started tomcat successfully. Now, it would be good idea to check what ports tomcat listens to, e.g. netstat -vatpn | grep LISTEN(on Linux) lsof -i TCP | grep LISTEN (on Mac) - Standard configuration would have the following ports open: 8005 - shutdown port 8009 - AJP port 8080 - HTTP port (app-serving) 8443 - HTTPS port (app-serving) - optional What does your /Users/test/software/tomcat/conf/server.xml say? test@17.198.48.77:/Users/test/software/tomcat/bin./shutdown.sh Using CATALINA_BASE: /Users/test/software/tomcat Using CATALINA_HOME: /Users/test/software/tomcat Using CATALINA_TMPDIR: /Users/test/software/tomcat/temp Using JRE_HOME: /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home Using CLASSPATH: /Users/test/software/tomcat/bin/bootstrap.jar:/Users/test/software/tomcat/bin/tomcat-juli.jar Feb 14, 2014 6:37:52 PM org.apache.catalina.startup.Catalina stopServer SEVERE: Catalina.stop: java.net.ConnectException: Connection refused There is a problem shutdown - you are not able to connect to the shutdown port for some reason. at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:382) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:241) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:228) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:431) at java.net.Socket.connect(Socket.java:527) at java.net.Socket.connect(Socket.java:476) at java.net.Socket.init(Socket.java:373) at java.net.Socket.init(Socket.java:187) at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:499) 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:597) at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:371) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:453) I have also tried killing, restarting, and ./shutdown.sh, installing tomcat again, changing port number. Nothing seems to be helping. Please advise. What does your server.xml configure as shutdown port? What does the log file say about shutdown port? After restarting - what ports are bound by the tomcat process? Also, when troubleshooting - I like to start tomcat with ./catalina.sh run instead of ./catalina.sh start or ./startup.sh. I do that when I am troubleshooting, as all the logs are directly in the STDOUT (console), and it is easy to CTRL+C and stop the process, and UP-ARROW-ENTER to restart it ... It is probably misconfigued shutdown port (i.e. -1 or 0) Try to provide additional information when stating the problem: - tomcat version - jdk version - operating system Good luck!
Re: Unable to shutdown Tomcat
On Fri, Feb 14, 2014 at 2:03 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Leo Medina [mailto:leo.medi...@gmail.com] Subject: RE: Unable to shutdown Tomcat Hello have you tried: ps -ef | grep port number kill -9 port number You must have extremely odd implementations of ps and kill if you expect that to do anything useful. Are you confusing port number with pid? - Chuck Nice catch Chuck. Leo, you probably confused two: netstat and ps commands. ps -ef | grep port_number would work only if you provide port number on the command line of your program, and that's not the case in default out-of-box Tomcat (uses server.xml to define port numbers) I would suggest: ps -ef | grep java would output the command line of all Java processes, and Tomcat is one of them. note the process id (PID) for your specific tomcat process and then try killing the process, e.g. kill PID kill -9 PID I prefer looking at netstat, as I might have multiple Tomcat instances running, so I want to know exactly which one I want to kill ... Netstat behaves differently on different OS. This is what I typically use when troubleshooting my tomcat instances (knowing that it runs on port 8080): netstat -aon | findstr 8080 (windows) netstat -vatpn | grep 8080 (linux) lsof -i TCP | grep 8080 (mac) So, to further troubleshoot your problem - we need: 1) server.xml (as Chuck pointed out - without comments) 2) startup logfile 3) output of netstat (lsof) after the tomcat startup Good luck!
Re: Unable to shutdown Tomcat
FWIW: I've had similar situations arise (we've never found a reason why, but it happens far less frequently since we updated all our Tomcat installations to a more recent release) on AS/400s. I responded to it by rewriting our shutdown CL program so that if a normal shutdown fails to bring Tomcat down within a specified timeout, it simply finds and abends the CATALINA job. -- JHHL - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Unable to shutdown Tomcat
Thank you so much for working with me on this. I am on mac OS, and I am using tomcat-7.0.50 1. Here is my server.xml without comments - ?xml version='1.0' encoding='utf-8'? Server port=8005 shutdown=SHUTDOWN Listener className=org.apache.catalina.core.AprLifecycleListener SSLEngine=on / Listener className=org.apache.catalina.core.JasperListener / Listener className=org.apache.catalina.core.JreMemoryLeakPreventionListener / Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / Listener className=org.apache.catalina.core.ThreadLocalLeakPreventionListener / GlobalNamingResources 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 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=8443 / Connector port=8009 protocol=AJP/1.3 redirectPort=8443 / Engine name=Catalina defaultHost=localhost Realm className=org.apache.catalina.realm.LockOutRealm Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase/ /Realm Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=%h %l %u %t quot;%rquot; %s %b / /Host /Engine /Service /Server 2. My startup port is 8080. Here is what I see after starting up - Its blank myMAC-dev:bin test$ lsof -i TCP | grep 8080 myMAC-dev:bin test$ 3. Where can I get startup log file? On Fri, Feb 14, 2014 at 11:16 AM, Neven Cvetkovic neven.cvetko...@gmail.com wrote: On Fri, Feb 14, 2014 at 2:03 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Leo Medina [mailto:leo.medi...@gmail.com] Subject: RE: Unable to shutdown Tomcat Hello have you tried: ps -ef | grep port number kill -9 port number You must have extremely odd implementations of ps and kill if you expect that to do anything useful. Are you confusing port number with pid? - Chuck Nice catch Chuck. Leo, you probably confused two: netstat and ps commands. ps -ef | grep port_number would work only if you provide port number on the command line of your program, and that's not the case in default out-of-box Tomcat (uses server.xml to define port numbers) I would suggest: ps -ef | grep java would output the command line of all Java processes, and Tomcat is one of them. note the process id (PID) for your specific tomcat process and then try killing the process, e.g. kill PID kill -9 PID I prefer looking at netstat, as I might have multiple Tomcat instances running, so I want to know exactly which one I want to kill ... Netstat behaves differently on different OS. This is what I typically use when troubleshooting my tomcat instances (knowing that it runs on port 8080): netstat -aon | findstr 8080 (windows) netstat -vatpn | grep 8080 (linux) lsof -i TCP | grep 8080 (mac) So, to further troubleshoot your problem - we need: 1) server.xml (as Chuck pointed out - without comments) 2) startup logfile 3) output of netstat (lsof) after the tomcat startup Good luck!
Re: Unable to shutdown Tomcat
Right thanks Chuck! I was referring to ps -ef | grep tomcat where in the past I have done it this way to issue a kill -9 on the pid as well as the netstat - vatpn | grep port number which also works perfectly. Thanks again! On Fri, Feb 14, 2014 at 11:16 AM, Neven Cvetkovic neven.cvetko...@gmail.com wrote: On Fri, Feb 14, 2014 at 2:03 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Leo Medina [mailto:leo.medi...@gmail.com] Subject: RE: Unable to shutdown Tomcat Hello have you tried: ps -ef | grep port number kill -9 port number You must have extremely odd implementations of ps and kill if you expect that to do anything useful. Are you confusing port number with pid? - Chuck Nice catch Chuck. Leo, you probably confused two: netstat and ps commands. ps -ef | grep port_number would work only if you provide port number on the command line of your program, and that's not the case in default out-of-box Tomcat (uses server.xml to define port numbers) I would suggest: ps -ef | grep java would output the command line of all Java processes, and Tomcat is one of them. note the process id (PID) for your specific tomcat process and then try killing the process, e.g. kill PID kill -9 PID I prefer looking at netstat, as I might have multiple Tomcat instances running, so I want to know exactly which one I want to kill ... Netstat behaves differently on different OS. This is what I typically use when troubleshooting my tomcat instances (knowing that it runs on port 8080): netstat -aon | findstr 8080 (windows) netstat -vatpn | grep 8080 (linux) lsof -i TCP | grep 8080 (mac) So, to further troubleshoot your problem - we need: 1) server.xml (as Chuck pointed out - without comments) 2) startup logfile 3) output of netstat (lsof) after the tomcat startup Good luck!
Re: Unable to shutdown Tomcat
On Feb 14, 2014 8:29 PM, Pooja Swamy poojasw...@gmail.com wrote: Thank you so much for working with me on this. I am on mac OS, and I am using tomcat-7.0.50 1. Here is my server.xml without comments - ?xml version='1.0' encoding='utf-8'? Server port=8005 shutdown=SHUTDOWN Listener className=org.apache.catalina.core.AprLifecycleListener SSLEngine=on / Listener className=org.apache.catalina.core.JasperListener / Listener className=org.apache.catalina.core.JreMemoryLeakPreventionListener / Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / Listener className=org.apache.catalina.core.ThreadLocalLeakPreventionListener / GlobalNamingResources 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 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=8443 / So it is port 8080. Connector port=8009 protocol=AJP/1.3 redirectPort=8443 / Engine name=Catalina defaultHost=localhost Realm className=org.apache.catalina.realm.LockOutRealm Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase/ /Realm Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=%h %l %u %t quot;%rquot; %s %b / /Host /Engine /Service /Server 2. My startup port is 8080. Here is what I see after starting up - Its blank myMAC-dev:bin test$ lsof -i TCP | grep 8080 myMAC-dev:bin test$ Are you sure your tomcat is running? How did you check that it is running? Try starting tomcat with this instead: ./catalina.sh run To see exactly startup errors. 3. Where can I get startup log file? In tomcat log directory. See catalina.out E.g. tail -f catalina.out
Re: Unable to shutdown Tomcat
Btw, when I shutdown, I see this message everytime - SEVERE: Could not contact localhost:8005. Tomcat may not be running. So looks like the problem is with my startup. The startup is not happening correctly. On Fri, Feb 14, 2014 at 11:30 AM, Leo Medina leo.medi...@gmail.com wrote: Right thanks Chuck! I was referring to ps -ef | grep tomcat where in the past I have done it this way to issue a kill -9 on the pid as well as the netstat - vatpn | grep port number which also works perfectly. Thanks again! On Fri, Feb 14, 2014 at 11:16 AM, Neven Cvetkovic neven.cvetko...@gmail.com wrote: On Fri, Feb 14, 2014 at 2:03 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Leo Medina [mailto:leo.medi...@gmail.com] Subject: RE: Unable to shutdown Tomcat Hello have you tried: ps -ef | grep port number kill -9 port number You must have extremely odd implementations of ps and kill if you expect that to do anything useful. Are you confusing port number with pid? - Chuck Nice catch Chuck. Leo, you probably confused two: netstat and ps commands. ps -ef | grep port_number would work only if you provide port number on the command line of your program, and that's not the case in default out-of-box Tomcat (uses server.xml to define port numbers) I would suggest: ps -ef | grep java would output the command line of all Java processes, and Tomcat is one of them. note the process id (PID) for your specific tomcat process and then try killing the process, e.g. kill PID kill -9 PID I prefer looking at netstat, as I might have multiple Tomcat instances running, so I want to know exactly which one I want to kill ... Netstat behaves differently on different OS. This is what I typically use when troubleshooting my tomcat instances (knowing that it runs on port 8080): netstat -aon | findstr 8080 (windows) netstat -vatpn | grep 8080 (linux) lsof -i TCP | grep 8080 (mac) So, to further troubleshoot your problem - we need: 1) server.xml (as Chuck pointed out - without comments) 2) startup logfile 3) output of netstat (lsof) after the tomcat startup Good luck!
Re: Tomcat 8 appears slow to process jsp pages
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Howard, On 2/12/14, 10:48 AM, Howard W. Smith, Jr. wrote: On Wed, Feb 12, 2014 at 9:57 AM, john.kief...@engilitycorp.com wrote: Testing Tomcat 8 I watch the console and see the Java and sql processing complete, then wait a full minute for the webpage to appear. With Tomcat 7 there is no wait. Just to verify, while composing this I opened a web page within the application and stared at a white screen for almost exactly sixty seconds. I I have used Tomcat 7.0.32+ (7.0.32, 34, 35, 37, 39, 40, 42, 47, ...) since I use TomEE, and I experienced that some time in the past. When I experienced that, I closed the browser with anticipation to break/cancel the HTTP request, and reopened browser and webapp page. Eventually, as time went on, i did not experience that anymore, and I don't see that anymore. There was 'maybe' some app changes that I made (and/or some improvements between Tomcat and TomEE), but it may have been caused by database deadlock. I'm not sure. I haven't experienced that for some months now, maybe 6+ months. you may need to change your jdbc Resource/ settings. One of tomcat committers, Christopher Schultz wrote a good article about tomcat jdbc[1] and how to configure it to meet your needs. I think i read it a few times and changed my jdbc settings sometime ago, and I think that may have solved the tomcat-request-white-page-in-browser issue/behavior that I experienced in the past. Thanks for the props. but I doubt this is the problem... OP reported that the JDBC stuff was all done and he appears just to be waiting for page-rendering. While sloppy JDBC work can certainly bring-down an application, it tends not to interfere with individual requests as described, here. Only thread dumps will help determine the real problem. It might be something simple like an XML schema lookup that takes forever (for instance: try loading the XML schema definition from w3.org... they punish you by making you wait a long time for it). - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJS/nMaAAoJEBzwKT+lPKRYb9UP+wR9tuWgJ5QLhKOmvhtaTytO 5y/FSLCcUXpYek7hHmYlPUzhD6v1evQ8EXpGLkXkiOSsgicDip6m7FjOjY9Qtrs9 Eul6L2Iw/2R4x14eBEpBcKJ2c5YxKyTYuEx4qJ6SnFCKf8yGZhp2KJaogJwXnkHJ w82oTD3TkKiEg+qn1/zEHIJtQhQ0f03MESRNLQ8MBfeALoitrWIjMKzM2u1w/blE bl8JVCKpsLcTjfLxHBLb2wpaKumEPfUhKw0phm3e18BmRG7mYeUaRKVEKhmT6P7X Pb2xCBe4TajL2AM5GzTMf0C/O1pZsktJbPwwq0KqJy2WHjQNobxdpc9PKXIBX8QT BpbW1ZYDki5Pg31CWvQe0wP9WNUw8T0nXomrNfVEiyZnZzypFcnP5NouZ3s2WXlH PfL24qTsawjGfVZHFujXivTXrQZj39Lekj3aWljhNsBSOCj2aqsgWs7ZYCDDNyah XxLZw+0Ey5cUdmrsyiMNBv9TZshejXpH2lLrzXz6QOHGyIYV3wz0gB1h+OQHTi9c 0+ALYMNBJijQvJbW14ue3wCJ6J8TxUUWtGX9JH9obNL+Inf1DJqMlX1IT26VzkMr NYdJYCPS9r3r+05R+/D59fGDfl5/4bFFXEpy19bOMPL3xk9vNv7Bip9WmWeRWrLU q1yI5cgnBkVnZOd7/V2k =TIoG -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Unable to shutdown Tomcat
From: Neven Cvetkovic [mailto:neven.cvetko...@gmail.com] Subject: Re: Unable to shutdown Tomcat On Feb 14, 2014 8:29 PM, Pooja Swamy poojasw...@gmail.com wrote: Server port=8005 shutdown=SHUTDOWN The above is the shutdown port. Connector port=8080 protocol=HTTP/1.1 So it is port 8080. No, that is the HTTP port, not the shutdown one. The OP has made no mention of not being able to access Tomcat via a browser. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: mod-jk stopped working
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jim, On 2/12/14, 11:53 PM, Jim Borland wrote: Apache 2.2 and Tomcat 6 on Linux Ubuntu 10.10 My connector worked fine for several years and then suddenly stopped working! Now I get a requested URL was not found on this server error instead. This sounds like a missing JkMount in httpd or even a non-deployed webapp in Tomcat. Can you tell which component it generating the page (httpd versus Tomcat)? I've tried several things to fix this but no joy. Here is the current content of my two files: == workers.properties file -- workers.tomcat_home=/usr/share/tomcat6 workers.java_home=/usr/lib/jvm/java-6-openjdk/jre ps=/ worker.list=ajp13_worker worker.ajp13_worker.port=8009 worker.ajp13_worker.host=localhost worker.ajp13_worker.type=ajp13 worker.ajp13_worker.lbfactor=1 worker.loadbalancer.type=lb worker.loadbalancer.balance_workers=ajp13_worker == httpd.conf file -- LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so JkWorkersFile /etc/libapache2-mod-jk/workers.properties JkShmFile /var/log/apache2/mod_jk.shM JkLogFile /var/log/apache2/mod_jk.log JkLogLevel info JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkMount /big41 ajp13_worker JkMount /big41/* ajp13_worker JkMount /big50 ajp13_worker JkMount /big50/* ajp13_worker JkMount /*.jsp ajp13_worker JkMount /*/servlet/ ajp13_worker == Did you declare these JkMounts in a VirtualHost? Did you define them at the top-level and then try to use them in a virtual host? If you do a JkWorkersFile and JkMount at the top-level, they won't work within virtual hosts. You have to either explicitly-add them to all virtual hosts, or use JkMountCopy in each virtual host that should inherit the configuration. Maybe you added a new virtual host and forgot JkMountCopy? Or switched from non-virtualhost configuration to one with a default virtual host instead of none at all? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJS/nPzAAoJEBzwKT+lPKRYK+IP/2beJ98jzAJNW10fHNHU8poR sVze1TZr53hVjSGiS76xV8eoPO164egmrv9DVDKqWmk/0sWYyjmutUTLCXUXIwOA kNw0g0LF6xHQhBL/Mle8IXlSokwlBOvkuu02ILf25N4CGAr9yap0uGNFb2RsWLvR AmZWseNU6ALmLgaiMStpxXMwnjR4OHIiaxrJUm1QFKlo7AIIWodql3lUibUzuK2y uIl4yxcd5JnQWozEaT6qh4y/8nk2EEvvJAxxfSvDZWtL1u0UTK1YsZ0SpOA1milL LjFoRzVMX1pGtrik2XsEAt2lkna7TWNMi5qCIlRqSrX27z/QJBqsCgByk4wtpecp BBo6scXHbi8ksyFud338GB5OIgWHE+nOXNGcUS24CvETcDlnKJhZ4PyeIH/RsyRM vX7u/Y2q5EytwczyK8Ai+mDMMTrygBLNm1TbU43wNG6R473YtIsbRiwAMxJLI2W8 AyhHW95/KioUqQt8kUZgNRiQukGYNUqz4Lj4+fvuuHKW4TUQ8/zNnjW5agOFiEcB /G6dskV9Os4sFLq+SqUaYl725eXqcIGoowsH7cfW32J4sZv1eCcnzXgR+AgBVg+b zMioWdNAI2q/5g9XZ1/wjKtacae1wH7IQLyXKfdY0l+PEwf9hAsYQ3ZRIbKq8aGb Ax6Diqn/lFLWBe3xkTFP =rZAN -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Unable to shutdown Tomcat
Here is my catalina.out Feb 14, 2014 11:30:29 AM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java I confirmed tomcat is running by doing ps -ef|grep tomcat myMac@18.144.67.89:/Users/test/software/runtime/logsps -ef|grep tomcat 501 29266 28511 0 11:51AM ttys0020:00.00 grep tomcat 501 29192 1 0 11:30AM ttys0030:02.01 /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -Djava.util.logging.config.file=/Users/test/software/runtime/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/Users/test/software/runtime/endorsed -classpath /Users/test/software/runtime/bin/bootstrap.jar:/Users/test/software/runtime/bin/tomcat-juli.jar -Dcatalina.base=/Users/test/software/runtime -Dcatalina.home=/Users/test/software/runtime -Djava.io.tmpdir=/Users/test/software/runtime/temp org.apache.catalina.startup.Bootstrap start On Fri, Feb 14, 2014 at 11:40 AM, Neven Cvetkovic neven.cvetko...@gmail.com wrote: On Feb 14, 2014 8:29 PM, Pooja Swamy poojasw...@gmail.com wrote: Thank you so much for working with me on this. I am on mac OS, and I am using tomcat-7.0.50 1. Here is my server.xml without comments - ?xml version='1.0' encoding='utf-8'? Server port=8005 shutdown=SHUTDOWN Listener className=org.apache.catalina.core.AprLifecycleListener SSLEngine=on / Listener className=org.apache.catalina.core.JasperListener / Listener className=org.apache.catalina.core.JreMemoryLeakPreventionListener / Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / Listener className=org.apache.catalina.core.ThreadLocalLeakPreventionListener / GlobalNamingResources 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 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=8443 / So it is port 8080. Connector port=8009 protocol=AJP/1.3 redirectPort=8443 / Engine name=Catalina defaultHost=localhost Realm className=org.apache.catalina.realm.LockOutRealm Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase/ /Realm Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=%h %l %u %t quot;%rquot; %s %b / /Host /Engine /Service /Server 2. My startup port is 8080. Here is what I see after starting up - Its blank myMAC-dev:bin test$ lsof -i TCP | grep 8080 myMAC-dev:bin test$ Are you sure your tomcat is running? How did you check that it is running? Try starting tomcat with this instead: ./catalina.sh run To see exactly startup errors. 3. Where can I get startup log file? In tomcat log directory. See catalina.out E.g. tail -f catalina.out
Re: Versioned WAR Application
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Ganeshh, On 2/12/14, 11:20 PM, Ganeshh HariHaran wrote: Please let me know where they are available, I am essentially looking for an Application both EJB and Servlets based (EAR) package, which I can accordingly make it to configure JMS, JDBC, etc and deploy the application to showcase the middleware components in tomcat and jboss etc... You could start with JIRA, though it's not deployed as an EAR and probably doesn't use too many non-servlet/jsp/el J2EE components. You could try googling for something like example application with everything J2EE has to offer or whatever. We aren't going to do your homework for you. - -chris Best Regards, Ganesh Hariharan It is not the strongest of the species that survives, nor the most intelligent that survives. It is the one that is the most adaptable to change. — Charles Darwin On Tuesday, February 4, 2014 10:10 PM, Christopher Schultz ch...@christopherschultz.net wrote: Ganeshh, On 2/4/14, 7:08 AM, Ganeshh HariHaran wrote: I do not want to build one, I am looking which already available Best Regards, Ganesh Hariharan It is not the strongest of the species that survives, nor the most intelligent that survives. It is the one that is the most adaptable to change. — Charles Darwin On Friday, January 31, 2014 4:30 PM, André Warnier a...@ice-sa.com wrote: Ganeshh HariHaran wrote: Hi, Is there a place where we get a Java application real time with some dummy data, essentially that application should connect to various J2EE conponents like JDBC, JMS, SOAP etc I am not looking at the sample app comes with tomcat. You mean like this ? http://lmgtfy.com/?q=java+servlets+real+time+applications Do you have any other requirements? There are literally hundreds of freely-available Java-based applications available. You have not defined real time, dummy data, or connects to J2EE components. -chris - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJS/nS6AAoJEBzwKT+lPKRYaD8P/R9Hy+Iy0JF7jdQMB3mov7TJ uWt9L6GQz9pPZLewsgU5a0DhjRgP+861PvIk7LbK0I1j8c7TdWrNr0dvg/tDcHVe L+BvekR+KEUZ3SH0URpmN0s+zWw2pGodoJUpVrbC3gFT4MhXBarBT8p4vjbGgWY9 8QxVa8rJHT180DwNiHunuhtr3CaqSZo+aJXg3v9IGoN/N9Ki7e5CXrycsAaf0M2L EOrGH3O3S/4JMhx75pSrWy5X8KxPsyloNoazfc6qQ4ExPb+eJkpBjgXtwGCBSTEA xM6/ZtK+5HSsycT5uO18QCdhVfHeBjLe2RPnxgCQvUQn9Yr7PWoF/QrXpkumaK1W diTVPHltf4slF5NYzq4udCR955HafDP3ilewQ+Ad4zZq0wME3twKzPelX8T14DvK Klw6zn/rARPlHaNbQBU/f5Ev+Zd4X/F7fSveyoXWV76bI1EBo+eg8qxsuYnws9Ba xmjHBBbLE1EDZ7ZBKwmkmyVulnnQagnDA+cUr7GKXmIBm4nE9qgVCEGw5mydUmws P6dhRGW1vRSIC23GqaaRK2HEBDCEcn3fUm2muaRcMeCe097n418m8z+kdEzQ8LAW YmbXnRn2zjys2kmW9cjheyKK1pQPlU1gea8WXShBqwUX9Myem0KoEoQ6odBab04N DspUR8FTUrq4u0YpxgOR =Wt+X -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Eclipse: Server Tomcat v7.0 Server at localhost failed to start.
2014-02-14 18:13 GMT+04:00 JB MORLA jbmo...@gmail.com: Maybe you added a .jar file to the build path and there is a conflict with the jars already present in Eclipse and Tomcat. My solution was to remove the jars. +1. On Thu, Feb 13, 2014 at 10:27 PM, Dave Kennedy davek1...@gmail.com wrote: Env: Windows 7 Java: jdk1.7.0_51 STS 3.4.0.RELEASE (Based on Eclipse 4.3.1) Tomcat: apache-tomcat-7.0.50 INFO: Starting Servlet Engine: Apache Tomcat/7.0.50 Feb 13, 2014 1:17:22 PM org.apache.catalina.core.ContainerBase startInternal SEVERE: A child container failed during start java.util.concurrent.ExecutionException: java.lang.ExceptionInInitializerError at java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.util.concurrent.FutureTask.get(FutureTask.java:188) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123) at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:801) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Caused by: java.lang.ExceptionInInitializerError at org.apache.catalina.startup.ContextConfig.createWebXmlDigester(ContextConfig.java:522) at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:843) A NPE there in 7.0.50 happens when one of {servlet-api.jar, jsp-api.jar} files is not found (as has been discussed previously on this mailing list). You may want to try 7.0.52 that is currently being voted on dev@. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Number of AJP connections
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Lance, On 2/13/14, 10:42 AM, Campbell, Lance wrote: Thanks a lot. That was very clear. I knew the forward caused the communication to stay on the same server. But I was not clear if it communicated by calling a class/object or by going through some type of connection stream. It actually just calls a method: if you were to forward 5 times and then throw an exception, you could confirm that your stack trace gets quite long including 5 trips back through Tomcat's internals and back to your own code. The request and response objects stay the same (unless they get wrapped at some point), the data flows over the same network connection, and the whole set of 5 forwards gets processed by the same request-processor thread. But since it appears to go from one class/object to another then I won't have to change the configuration settings. Correct. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJS/nVzAAoJEBzwKT+lPKRY5JYQAJxcbSUIiXlv54jQ0dxkGLav pDkZ9DRd424RO8C0S7IEPRqAwjUBA+RwF7bX+I/ip5bOam1fiIRNJoQLXThdV7gW yio3bTJE5f5Xq4ROggQWVhJRziS53p7+a/ziOadrfVnbEpN4RwCtEyTRwjnBlCXt TpEkZxvXwytpHyJN2DkQu+rj5AMp2fgarfYwhaGAeGLF2YcyMennYpMAglgNCafn WqyRvm6v+1XzxgwSFNDBcovTORzriE12+gtUGxH7dxl9HbGVy3OY3EoDRvs3qWhE +gjxzJtYc8KTVdjlYJ0JrvdXLdduhHiHAqlS19xailo47HCrwioODvdkmCrxH+iZ e0mObIe9IRHpU3QaSejWT5NnWZcXg2RXpnMZCuHUby8yWEi6k/VFO6FZlfGiu45Y 6ZiBqaaIGZtzUZgji35/knc8ATUscXDA1tkQsm4Q3g2MWbtMdP/utSZPLvmvwdWV E1vkwK06cXd4nrnQKzmqeZQidJaRObEawD4aos/njba3F1hO+iVYhNZK7awNeoPA cbFG5AtrOehMKi/jVcJHjAiUPvg/+nlY16YCZGhKmSNNOlsXrImoqPWpnIgfGwLM mM062IKghDyUpLEOi2wos+DrthKHHrlM6tJuTbMbUoSxZ6Uwd11wp7+xKG5KcMpt jKxaZGPvNvAnwQ5q/g5j =0sql -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: documentation resource suggestions for scaling tomcat 7 horizontally
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Lance, On 2/13/14, 11:48 AM, Campbell, Lance wrote: I am looking for free documentation for scaling Tomcat 7 horizontally. I currently have three tomcat 7 application servers load balanced. The system is working good. I have noticed that my number of connections has increased. I was hoping to find an up to date resource guide that would give me suggestions on when to add additional nodes. I know there are a gazillion variables to consider. I am just wanting to get some generalized suggestions. I have read on a couple of sites that at about 500 to 750 connections one should really consider adding additional nodes. Unfortunately, there really is no good guide available because it's mostly about your own configuration. D you have a load-testing environment where you can do things like check response-times based upon arbitrary load? If you don't have that, it should be your first step: get a testing rig up and running with instrumentation. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJS/nXRAAoJEBzwKT+lPKRY2SsP/0ly1qSZdGlTzShlU9X5O2Mo mgrT21jUyvHY9s1kKAOc93cz0bxjEbHYfKnZ5aYcUy/s0LTMWc7MBhmP1vEAscO7 C8R44KvtCaTo8jwBIYJj5RA6Y/u7q0hFd5ySkVSMsiDaCFCmBA6EoBwwMf5CL8bg A6jf6kW5X4mi3Vh4iqEind9SujwistTdXXgYeuk05g+uuSAn9bMwTuClY5wuzK7P UgR6BPhJWgZ82tn37EzVWooAL7gHMSxbbIvaDzpMuNQxCCBIiMN7AEhQHAf3bUP4 7yxZXGWHSljBPfbbURhJHpV+XZPWXZOpLT7SaCNJf79UE9M2+khME+ZP43C2V/Pm ZCYGv/eeeanugSBri9eltIqG2B6ae8PQTldT9AjSQqz6UbQzflpOyYzVREX42KRp Rf4EpvVEtaO+E5FhrvqxU8RqZ6Gzk2sKVaRjiFb7enSOjE9thigpoaFjznF6Vrxu M1qa+t81XSg+gB2Bvl/g52tdlpvky8gZRMCuGlW5yVT9CTn6B0LSdJyeudyRTkDr xhZdYjep/VSfwHPIoHissT4ttljbcOYROVVNk6VySMORpbkFdd+mn0KuDv6xzB0a bP+h+I8SVCbuyJ9csqnaLLaCqDRMBrQSdebsvpEJUlEnBfavuVL+LWD2yE0WqBsu 7wzSPVaeUpiHH4SXlh6X =C8oj -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Unable to shutdown Tomcat
From: Pooja Swamy [mailto:poojasw...@gmail.com] Subject: Re: Unable to shutdown Tomcat I confirmed tomcat is running by doing ps -ef|grep tomcat Have you confirmed that Tomcat is usable by going to http://localhost:8080 with a browser running on the same machine Tomcat is on? You may have a local firewall blocking your ports. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Unable to shutdown Tomcat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Leo, On 2/14/14, 1:52 PM, Leo Medina wrote: Hello have you tried: ps -ef | grep port number kill -9 port number That should be kill -9 pid, though I'm interested to see what happens if you try to kill by port number. - -chris On Fri, Feb 14, 2014 at 10:44 AM, Pooja Swamy poojasw...@gmail.com wrote: I am unable to shutdown my tomcat gracefully. Everytime I try to shutdown tomcat, this is the error I get. test@17.198.48.77:/Users/test/software/tomcat/bin./startup.sh Using CATALINA_BASE: /Users/test/software/tomcat Using CATALINA_HOME: /Users/test/software/tomcat Using CATALINA_TMPDIR: /Users/test/software/tomcat/temp Using JRE_HOME: /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home Using CLASSPATH: /Users/test/software/tomcat/bin/bootstrap.jar:/Users/test/software/tomcat/bin/tomcat-juli.jar test@17.198.48.77:/Users/test/software/tomcat/bin./shutdown.sh Using CATALINA_BASE: /Users/test/software/tomcat Using CATALINA_HOME: /Users/test/software/tomcat Using CATALINA_TMPDIR: /Users/test/software/tomcat/temp Using JRE_HOME: /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home Using CLASSPATH: /Users/test/software/tomcat/bin/bootstrap.jar:/Users/test/software/tomcat/bin/tomcat-juli.jar Feb 14, 2014 6:37:52 PM org.apache.catalina.startup.Catalina stopServer SEVERE: Catalina.stop: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:382) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:241) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:228) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:431) at java.net.Socket.connect(Socket.java:527) at java.net.Socket.connect(Socket.java:476) at java.net.Socket.init(Socket.java:373) at java.net.Socket.init(Socket.java:187) at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:499) 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:597) at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:371) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:453) I have also tried killing, restarting, and ./shutdown.sh, installing tomcat again, changing port number. Nothing seems to be helping. Please advise. -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJS/nZDAAoJEBzwKT+lPKRYpSkP/3LxGfH57/4MRqeK3c8fjY/V eAr/ovAJLfnxY3M3JJzZN4DqV0bdynZlsmb5pVKyedjKvCrorq6k8W5LbRAx37UI EYFLUjIiHVeWbtQ5nNBMLnlExCkqpe76KB2+SXG6jipxGvKMTADpkK7+SZ3Ze3R4 PzmSslrD35tBNsxV8Er+5Jl/sAgMk7QSbPbcyRhAhFHY8ywRTd4RHPOFNmxidx57 4JM8yG7AJLmLmhXMJHcKe6wZ4OPrLl0GpAA7n5v1+qqQh/G/h6u0eNZ6xHMu2awT NgqQxUaopy6XN46Qpew2jUNqaXUIQ/vsiIlSa8jIq8R6zvyx8MowER5mc5hPbxbp NlAO6mYp3DNvCTy6+EQ0hQbsPlL0G39ehxQbRW6Rearb/i8sWF7crnwVwn1g80NV mhZ80S/a0VRxBCYo/XgkiBpbdciFczpFBpMZ2zUvLO0rICyHwEhBe37k1va7I5H8 zCi3lSaiBSF3dhuuTZBd9EIFVsSMeB3qIUkgSaTKlmgjtxi0RIuTzGWN+IJKCNpV O8n8tSbEY5eXvytTzGICsJBpSQQJI1VGrWZBXX1SshALm8obWZ8htQZ3xqWRo5Kx hNiOKhjdx8f83dsRLM9NaBeGvWI12Nrwpa0wmPXfKaQ3ZjusZRqPi5pDnjCRTV0n AZC42Wgh9930Q2SRUg1n =t7N6 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Unable to shutdown Tomcat
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: Unable to shutdown Tomcat On 2/14/14, 1:52 PM, Leo Medina wrote: Hello have you tried: ps -ef | grep port number kill -9 port number That should be kill -9 pid, though I'm interested to see what happens if you try to kill by port number. Somebody dies... BTW, you need to read the whole thread before responding to intermediate entries - we're way beyond that point. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Unable to shutdown Tomcat
Yes I have tried that. When I kill, the process gets killed gracefully. After killing, if I do a ps -ef|grep tomcat, I don't see the process running. Like I said the issue is not with shutdown. The issue is with startup. When I startup, the startup is not happening at all, which is what is causing a problem while shutting down. Here is what I see - Feb 14, 2014 12:10:23 PM org.apache.catalina.startup.Catalina stopServer SEVERE: Could not contact localhost:8005. Tomcat may not be running. I don't understand what's causing this. On Fri, Feb 14, 2014 at 12:02 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Leo, On 2/14/14, 1:52 PM, Leo Medina wrote: Hello have you tried: ps -ef | grep port number kill -9 port number That should be kill -9 pid, though I'm interested to see what happens if you try to kill by port number. - -chris On Fri, Feb 14, 2014 at 10:44 AM, Pooja Swamy poojasw...@gmail.com wrote: I am unable to shutdown my tomcat gracefully. Everytime I try to shutdown tomcat, this is the error I get. test@17.198.48.77:/Users/test/software/tomcat/bin./startup.sh Using CATALINA_BASE: /Users/test/software/tomcat Using CATALINA_HOME: /Users/test/software/tomcat Using CATALINA_TMPDIR: /Users/test/software/tomcat/temp Using JRE_HOME: /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home Using CLASSPATH: /Users/test/software/tomcat/bin/bootstrap.jar:/Users/test/software/tomcat/bin/tomcat-juli.jar test@17.198.48.77:/Users/test/software/tomcat/bin./shutdown.sh Using CATALINA_BASE: /Users/test/software/tomcat Using CATALINA_HOME: /Users/test/software/tomcat Using CATALINA_TMPDIR: /Users/test/software/tomcat/temp Using JRE_HOME: /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home Using CLASSPATH: /Users/test/software/tomcat/bin/bootstrap.jar:/Users/test/software/tomcat/bin/tomcat-juli.jar Feb 14, 2014 6:37:52 PM org.apache.catalina.startup.Catalina stopServer SEVERE: Catalina.stop: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:382) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:241) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:228) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:431) at java.net.Socket.connect(Socket.java:527) at java.net.Socket.connect(Socket.java:476) at java.net.Socket.init(Socket.java:373) at java.net.Socket.init(Socket.java:187) at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:499) 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:597) at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:371) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:453) I have also tried killing, restarting, and ./shutdown.sh, installing tomcat again, changing port number. Nothing seems to be helping. Please advise. -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJS/nZDAAoJEBzwKT+lPKRYpSkP/3LxGfH57/4MRqeK3c8fjY/V eAr/ovAJLfnxY3M3JJzZN4DqV0bdynZlsmb5pVKyedjKvCrorq6k8W5LbRAx37UI EYFLUjIiHVeWbtQ5nNBMLnlExCkqpe76KB2+SXG6jipxGvKMTADpkK7+SZ3Ze3R4 PzmSslrD35tBNsxV8Er+5Jl/sAgMk7QSbPbcyRhAhFHY8ywRTd4RHPOFNmxidx57 4JM8yG7AJLmLmhXMJHcKe6wZ4OPrLl0GpAA7n5v1+qqQh/G/h6u0eNZ6xHMu2awT NgqQxUaopy6XN46Qpew2jUNqaXUIQ/vsiIlSa8jIq8R6zvyx8MowER5mc5hPbxbp NlAO6mYp3DNvCTy6+EQ0hQbsPlL0G39ehxQbRW6Rearb/i8sWF7crnwVwn1g80NV mhZ80S/a0VRxBCYo/XgkiBpbdciFczpFBpMZ2zUvLO0rICyHwEhBe37k1va7I5H8 zCi3lSaiBSF3dhuuTZBd9EIFVsSMeB3qIUkgSaTKlmgjtxi0RIuTzGWN+IJKCNpV O8n8tSbEY5eXvytTzGICsJBpSQQJI1VGrWZBXX1SshALm8obWZ8htQZ3xqWRo5Kx hNiOKhjdx8f83dsRLM9NaBeGvWI12Nrwpa0wmPXfKaQ3ZjusZRqPi5pDnjCRTV0n AZC42Wgh9930Q2SRUg1n =t7N6 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Unable to shutdown Tomcat
BTW, you need to read the whole thread before responding to intermediate entries - we're way beyond that point. - I agree. Thanks Charles. On Fri, Feb 14, 2014 at 12:08 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: Unable to shutdown Tomcat On 2/14/14, 1:52 PM, Leo Medina wrote: Hello have you tried: ps -ef | grep port number kill -9 port number That should be kill -9 pid, though I'm interested to see what happens if you try to kill by port number. Somebody dies... BTW, you need to read the whole thread before responding to intermediate entries - we're way beyond that point. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Unable to shutdown Tomcat
On Fri, Feb 14, 2014 at 3:10 PM, Pooja Swamy poojasw...@gmail.com wrote: Yes I have tried that. When I kill, the process gets killed gracefully. After killing, if I do a ps -ef|grep tomcat, I don't see the process running. Like I said the issue is not with shutdown. The issue is with startup. When I startup, the startup is not happening at all, which is what is causing a problem while shutting down. Here is what I see - Exactly Pooja. You need to confirm that your Tomcat is actually starting up (any or all points below): 1) See if in the process table 2) See in netstat that is bound to 8080 3) Look into the log file and see it started listening on port 8080 4) Check in browser, e.g. http://localhost:8080 So, if the startup is problem, try to start it with: /Users/test/software/tomcat/bin/catalina.sh run (tell us the output) Also, in your previous reply - the logfile looks suspiciously short, not too many details ... You should see the connectors starting up, e.g. ... INFO: Starting ProtocolHandler [http-bio-8080] ... INFO: Starting ProtocolHandler [ajp-bio-8009] Feb 14, 2014 12:10:23 PM org.apache.catalina.startup.Catalina stopServer SEVERE: Could not contact localhost:8005. Tomcat may not be running. I don't understand what's causing this. Your Tomcat is probably not running, i.e. there is nothing listening on port 8005 for the shutdown.sh script to connect to (which is defined in server.xml). Good luck!
Re: documentation resource suggestions for scaling tomcat 7 horizontally
On Fri, Feb 14, 2014 at 3:00 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Lance, On 2/13/14, 11:48 AM, Campbell, Lance wrote: I am looking for free documentation for scaling Tomcat 7 horizontally. I currently have three tomcat 7 application servers load balanced. The system is working good. I have noticed that my number of connections has increased. I was hoping to find an up to date resource guide that would give me suggestions on when to add additional nodes. I know there are a gazillion variables to consider. I am just wanting to get some generalized suggestions. I have read on a couple of sites that at about 500 to 750 connections one should really consider adding additional nodes. Unfortunately, there really is no good guide available because it's mostly about your own configuration. D you have a load-testing environment where you can do things like check response-times based upon arbitrary load? If you don't have that, it should be your first step: get a testing rig up and running with instrumentation. Chris (and others), What are your favourite tools for load testing, for performance benchmarking, etc.? What are some open-source and/or commercial alternatives? What do you like about them? :)
Re: Unable to shutdown Tomcat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chuck, On 2/14/14, 3:08 PM, Caldarale, Charles R wrote: From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: Unable to shutdown Tomcat On 2/14/14, 1:52 PM, Leo Medina wrote: Hello have you tried: ps -ef | grep port number kill -9 port number That should be kill -9 pid, though I'm interested to see what happens if you try to kill by port number. Somebody dies... BTW, you need to read the whole thread before responding to intermediate entries - we're way beyond that point. Yeah, I was a little late to the party. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJS/o77AAoJEBzwKT+lPKRYAnwP/RuPxNL/QbCsvBQxe2oT5A8k QXUjAakf4WM3rhpnXundd2KajP7dHgL9T8psQG1GeMUqrdlZYwPzQ8yJu5gHwE9L 6AAlV5NVqBLB0DlGjrhIGVxZd3LN2895PaLTnF2J1m7/O5jKO4jTIv4Pl/hShdPI VMs6eYZ1qZSHInWKAErNmhcM5Hl4iKoeoyoIzCg/CvJ5UdbaJzt4tA1WGLCxoDA+ SdJ+tzxlu31pWjDfkBM1KhlYo+qFMcqqoxT9oHzFLkBsSmSmsrVgtiqfoiSBTVVg DlnYTu8FeUYxCBNqVzdBLjb+2aXaqaYB7MR8HbsBBMlALtgbd4liPRDl7deRU7I0 BmVGsnOKwsVW1RP34m0eUmsYp2P1gEZ4+WppOjfxGkZWgftQ2G1ks2kP1HP+Ofai rhDc0iRyJa+amB19YSUwX0Qi3mQTls3BTRnBnQGRo7tMJlCoQQiZIcgAfTnATa+R pGmaa6NzOVc6NmBXnHVb7BUJjr551jjgMLVewsMW7/1k9X6/tlsYQh/K7Ovgc5Pc n89qkT9ZfxlhyEh7XqeM8EBVVD+R2+irXazfZOyZqc1zLkzELYpcxVW5Z+SNzIKI pwNDKMkxWYHenjlcjOSdbSF+MenetavS1xUHG/TW0Gq+lbzq/VKuJ7fgba2usR3A 3oKXuQlAg2/DWg4lD6HK =brCT -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: documentation resource suggestions for scaling tomcat 7 horizontally
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Neven, On 2/14/14, 4:12 PM, Neven Cvetkovic wrote: On Fri, Feb 14, 2014 at 3:00 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Lance, On 2/13/14, 11:48 AM, Campbell, Lance wrote: I am looking for free documentation for scaling Tomcat 7 horizontally. I currently have three tomcat 7 application servers load balanced. The system is working good. I have noticed that my number of connections has increased. I was hoping to find an up to date resource guide that would give me suggestions on when to add additional nodes. I know there are a gazillion variables to consider. I am just wanting to get some generalized suggestions. I have read on a couple of sites that at about 500 to 750 connections one should really consider adding additional nodes. Unfortunately, there really is no good guide available because it's mostly about your own configuration. D you have a load-testing environment where you can do things like check response-times based upon arbitrary load? If you don't have that, it should be your first step: get a testing rig up and running with instrumentation. Chris (and others), What are your favourite tools for load testing, for performance benchmarking, etc.? What are some open-source and/or commercial alternatives? What do you like about them? Apache ab (ApacheBench) comes with httpd and is dead-simply to use. It's not terribly configurable, though, and is a pretty blunt instrument. I favor Apache JMeter because -- though it has a bit of a learning curve -- can do pretty much anything you want it to do. (Note that any reasonably-featureful load-testing suite is going to have a similar learning curve. Given that JMeter has an ASF community behind it, you can always ask the friendly folks on their mailing list for help!). - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJS/o+lAAoJEBzwKT+lPKRYbhQQAKxttYFl6Vqf+S+XNgdjDYx5 8Clp4HMW0Wca+MQF0VW2cCzD66wKddnULh6IFovCKFLf61q6Ed6H64kla4gWRKnR W9TQbhL0mP5PT6u7QDfY6FQ/D16my5KgGqx6/EqIUoLRsLZbs1qWPIXv9wbvutmf s1qR9wF/V/LLKi3mX7DHNoYzGVQqUUHdw7kKC3hCQ2hBXl/CkRPYVsJJf7IOpUEe c99XKzGMPfwW4VgV1WkyufMPmXxOYYhwjHL52KI6F9zORlxow2tBtZ/aejWu2DIA d5sxZM+Dc0PJRlW5pnKDB/5TfeJGM4Zjatw/i948knIBMFbkb+6oA1kJLhuylIDa OVdxSYdWAcX4aKC4AOumYn27R5xkTy8RudBYqFl2sBfx6HEmP8TrQYiCBqBeFtfE 6iTKRjFIKbtMNo4KS5ARvLsi5rbG/8ZkbbpBRGQ4zQLQHf8qUSVnVoT5m4c9xPSh +zjk5RnOJZKse8mdTOqxE2Bje1d+n23YDFw5oqxnDM1PQyU6+4rPSbvWMH5b1yMQ veL8sIdbGNqE/1PNlfRo15yM2P5fidxo1DUw5ryvChEj3h8ptl6bRbCroS79huY9 0voF8HGdHRyljHLAcO7gcdN6UpZ2AurVmY1UxtTlN5pcjaggqSkFG691hM6xs1VL EK9N/cWzZz6Kg+UslnoQ =bPVu -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Unable to shutdown Tomcat
Pooja Swamy wrote: Yes I have tried that. When I kill, the process gets killed gracefully. After killing, if I do a ps -ef|grep tomcat, I don't see the process running. Like I said the issue is not with shutdown. The issue is with startup. When I startup, the startup is not happening at all, which is what is causing a problem while shutting down. Yes, one would kind of expect this. A bit like trying to make an omelet with an egg that hasn't been laid yet. Here is what I see - Feb 14, 2014 12:10:23 PM org.apache.catalina.startup.Catalina stopServer SEVERE: Could not contact localhost:8005. Tomcat may not be running. I don't understand what's causing this. Hint: there is a clue in the log line above (second part). - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Eclipse: Server Tomcat v7.0 Server at localhost failed to start.
OK I added servlet-api.jar and jsp-api.jar to the Launch Configuration | Classpath | Bootstrap Entries and get the following error report: HTTP Status 500 - java.lang.NoClassDefFoundError: javax/el/ELResolver HTTP Status 500 - java.lang.NoClassDefFoundError: javax/el/ELResolver -- *type* Exception report *message* *java.lang.NoClassDefFoundError: javax/el/ELResolver* *description* *The server encountered an internal error that prevented it from fulfilling this request.* *exception* javax.servlet.ServletException: java.lang.NoClassDefFoundError: javax/el/ELResolver org.apache.jasper.servlet.JspServlet.service(JspServlet.java:343) javax.servlet.http.HttpServlet.service(HttpServlet.java:728) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) boeing.ahm.security.XssFilter.doFilter(XssFilter.java:103) boeing.ahm.security.SQLiFilter.doFilter(SQLiFilter.java:66) *root cause* java.lang.NoClassDefFoundError: javax/el/ELResolver java.lang.ClassLoader.findBootstrapClass(Native Method) java.lang.ClassLoader.findBootstrapClassOrNull(ClassLoader.java:1070) java.lang.ClassLoader.loadClass(ClassLoader.java:414) java.lang.ClassLoader.loadClass(ClassLoader.java:412) sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) java.lang.ClassLoader.loadClass(ClassLoader.java:412) java.lang.ClassLoader.loadClass(ClassLoader.java:358) java.lang.Class.forName0(Native Method) java.lang.Class.forName(Class.java:190) javax.el.CompositeELResolver.clinit(CompositeELResolver.java:30) org.apache.jasper.el.ELContextImpl.clinit(ELContextImpl.java:79) org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1219) org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:876) org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1538) org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2375) org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2427) org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2433) org.apache.jasper.compiler.Node$Root.accept(Node.java:474) org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2375) org.apache.jasper.compiler.Validator.validateExDirectives(Validator.java:1817) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:217) org.apache.jasper.compiler.Compiler.compile(Compiler.java:373) org.apache.jasper.compiler.Compiler.compile(Compiler.java:353) org.apache.jasper.compiler.Compiler.compile(Compiler.java:340) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:657) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) javax.servlet.http.HttpServlet.service(HttpServlet.java:728) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) boeing.ahm.security.XssFilter.doFilter(XssFilter.java:103) boeing.ahm.security.SQLiFilter.doFilter(SQLiFilter.java:66) *note* *The full stack trace of the root cause is available in the Apache Tomcat/7.0.50 logs.* -- Apache Tomcat/7.0.50
Re: Unable to shutdown Tomcat
Yes. My tomcat is definitely not starting up :( I am not sure how to debug this issue though. I tried changing the port. It didn't help. For this error - SEVERE: Could not contact localhost:8005. Tomcat may not be running. When I do - myMac:logs test$ telnet localhost 8005 Trying ::1... telnet: connect to address ::1: Connection refused Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused telnet: Unable to connect to remote host Does this mean anything? On Fri, Feb 14, 2014 at 1:11 PM, Neven Cvetkovic neven.cvetko...@gmail.comwrote: On Fri, Feb 14, 2014 at 3:10 PM, Pooja Swamy poojasw...@gmail.com wrote: Yes I have tried that. When I kill, the process gets killed gracefully. After killing, if I do a ps -ef|grep tomcat, I don't see the process running. Like I said the issue is not with shutdown. The issue is with startup. When I startup, the startup is not happening at all, which is what is causing a problem while shutting down. Here is what I see - Exactly Pooja. You need to confirm that your Tomcat is actually starting up (any or all points below): 1) See if in the process table 2) See in netstat that is bound to 8080 3) Look into the log file and see it started listening on port 8080 4) Check in browser, e.g. http://localhost:8080 So, if the startup is problem, try to start it with: /Users/test/software/tomcat/bin/catalina.sh run (tell us the output) Also, in your previous reply - the logfile looks suspiciously short, not too many details ... You should see the connectors starting up, e.g. ... INFO: Starting ProtocolHandler [http-bio-8080] ... INFO: Starting ProtocolHandler [ajp-bio-8009] Feb 14, 2014 12:10:23 PM org.apache.catalina.startup.Catalina stopServer SEVERE: Could not contact localhost:8005. Tomcat may not be running. I don't understand what's causing this. Your Tomcat is probably not running, i.e. there is nothing listening on port 8005 for the shutdown.sh script to connect to (which is defined in server.xml). Good luck!
Re: Unable to shutdown Tomcat
Here is another thing. Everytime I start tomcat, it is not throwing an error. I am able to start it up multiple times. - myMac:bin test$ ./startup.sh Using CATALINA_BASE: /Users/test/software/runtime Using CATALINA_HOME: /Users/test/software/runtime Using CATALINA_TMPDIR: /Users/test/software/runtime/temp Using JRE_HOME: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Using CLASSPATH: /Users/test/software/runtime/bin/bootstrap.jar:/Users/test/software/runtime/bin/tomcat-juli.jar myMac:bin test$ ./startup.sh Using CATALINA_BASE: /Users/test/software/runtime Using CATALINA_HOME: /Users/test/software/runtime Using CATALINA_TMPDIR: /Users/test/software/runtime/temp Using JRE_HOME: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Using CLASSPATH: /Users/test/software/runtime/bin/bootstrap.jar:/Users/test/software/runtime/bin/tomcat-juli.jar myMac:bin test$ ./startup.sh Using CATALINA_BASE: /Users/test/software/runtime Using CATALINA_HOME: /Users/test/software/runtime Using CATALINA_TMPDIR: /Users/test/software/runtime/temp Using JRE_HOME: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Using CLASSPATH: /Users/test/software/runtime/bin/bootstrap.jar:/Users/test/software/runtime/bin/tomcat-juli.jar myMac:bin test$ ./startup.sh Using CATALINA_BASE: /Users/test/software/runtime Using CATALINA_HOME: /Users/test/software/runtime Using CATALINA_TMPDIR: /Users/test/software/runtime/temp Using JRE_HOME: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Using CLASSPATH: /Users/test/software/runtime/bin/bootstrap.jar:/Users/test/software/runtime/bin/tomcat-juli.jar myMac:bin test$ ps -ef|grep tomcat 501 29997 1 0 2:41PM ttys0010:01.68 /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -Djava.util.logging.config.file=/Users/test/software/runtime/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/Users/test/software/runtime/endorsed -classpath /Users/test/software/runtime/bin/bootstrap.jar:/Users/test/software/runtime/bin/tomcat-juli.jar -Dcatalina.base=/Users/test/software/runtime -Dcatalina.home=/Users/test/software/runtime -Djava.io.tmpdir=/Users/test/software/runtime/temp org.apache.catalina.startup.Bootstrap start 501 30016 1 0 2:44PM ttys0010:01.72 /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -Djava.util.logging.config.file=/Users/test/software/runtime/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/Users/test/software/runtime/endorsed -classpath /Users/test/software/runtime/bin/bootstrap.jar:/Users/test/software/runtime/bin/tomcat-juli.jar -Dcatalina.base=/Users/test/software/runtime -Dcatalina.home=/Users/test/software/runtime -Djava.io.tmpdir=/Users/test/software/runtime/temp org.apache.catalina.startup.Bootstrap start 501 30025 1 0 2:44PM ttys0010:01.90 /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -Djava.util.logging.config.file=/Users/test/software/runtime/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/Users/test/software/runtime/endorsed -classpath /Users/test/software/runtime/bin/bootstrap.jar:/Users/test/software/runtime/bin/tomcat-juli.jar -Dcatalina.base=/Users/test/software/runtime -Dcatalina.home=/Users/test/software/runtime -Djava.io.tmpdir=/Users/test/software/runtime/temp org.apache.catalina.startup.Bootstrap start 501 30034 1 0 2:44PM ttys0010:02.12 /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -Djava.util.logging.config.file=/Users/test/software/runtime/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/Users/test/software/runtime/endorsed -classpath /Users/test/software/runtime/bin/bootstrap.jar:/Users/test/software/runtime/bin/tomcat-juli.jar -Dcatalina.base=/Users/test/software/runtime -Dcatalina.home=/Users/test/software/runtime -Djava.io.tmpdir=/Users/test/software/runtime/temp org.apache.catalina.startup.Bootstrap start 501 30043 1 0 2:44PM ttys0010:01.97 /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -Djava.util.logging.config.file=/Users/test/software/runtime/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/Users/test/software/runtime/endorsed -classpath /Users/test/software/runtime/bin/bootstrap.jar:/Users/test/software/runtime/bin/tomcat-juli.jar -Dcatalina.base=/Users/test/software/runtime -Dcatalina.home=/Users/test/software/runtime -Djava.io.tmpdir=/Users/test/software/runtime/temp org.apache.catalina.startup.Bootstrap start 501 30046 29856 0 2:44PM ttys0010:00.00 grep tomcat myMac:bin test$ So tomcat is basically not starting up at all. On Fri, Feb 14, 2014 at 2:31 PM, Pooja Swamy
Re: Unable to shutdown Tomcat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Pooja, On 2/14/14, 5:31 PM, Pooja Swamy wrote: Yes. My tomcat is definitely not starting up :( I am not sure how to debug this issue though. I tried changing the port. It didn't help. First, make sure Tomcat isn't running (use ps to find it, kill to kill it if necessary). Then: $ bin/catalina.sh run This will run Tomcat on the console, dumping all logs directly into your terminal window. Once you do that, paste all the stuff it spits out into another message to the list. Then maybe we can help. Thus far, you've only said it's not working and haven't provided any detail at all. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJS/pzEAAoJEBzwKT+lPKRYFvIP/2GGdLRYW7zdam0bLuNhktWT A6KC1PU37mHyJj6seiydXAP0AuS3Iz0K2XqAfL0++MpijoMeABdTMqNdkN3gzsnJ 0z5uDUm7IqEo/wgcRvp0WizgCRVkZ29W5h7tDbXJQXB78BMBKVtFIE2emqjAlK2F 6vLEHTIbp0vEAxsalUNLpt45OLPXSlZX7cxvZh/tQVsWtcYHP8U+LBsotsI/9bY7 8TPH103tZgzlQA3TS5cFR08l2wEyQgnEOlLrnEfCqHFbf3ytzNa2REYnZFk37t0e 3UAUoaGXs/XMzDY0hztTyyGNxgAd1+UWaL4e5Uot/bMMc1kgDLPe35FESr8Z1Hf9 JMnLxb7YaXuSPeJf5sWrD1Y6bCZfRB156ycfB7pRcdxdEaslaAk0vmXuGO1IVLmC kLOMnedtPlvc52yX6Q1kK9WRdSem5p55rfsVJpeColYtNv/DHjSTPYWyWYA4DExu iUdCaBLqR1HZ6rKiVcL0IQRMpXDLjX1uJ0ihUp9PVhxIqwft11Www9Hqwle+99M9 SwY4jzkN9F2QaA6l1XxDZG64H40ekh0fKgNYoV5l+MW0rD2EORNApz3kQs5aoIi4 w7tNFzNn4Psd2PtGhguP8uDJsNa1V7LNAVCtk4AtjNHN1o87iQzKyWgvaMdi6BER K3dlWeKJAx4slCVAoQhv =lnlv -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Unable to shutdown Tomcat
On Fri, Feb 14, 2014 at 5:31 PM, Pooja Swamy poojasw...@gmail.com wrote: Yes. My tomcat is definitely not starting up :( I am not sure how to debug this issue though. I tried changing the port. It didn't help. For this error - SEVERE: Could not contact localhost:8005. Tomcat may not be running. When I do - myMac:logs test$ telnet localhost 8005 Trying ::1... telnet: connect to address ::1: Connection refused Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused telnet: Unable to connect to remote host Does this mean anything? OK, we established your Tomcat is not starting up. So, if the startup is problem, try to start it with: /Users/test/software/tomcat/bin/catalina.sh run (tell us the output) Did you try my earlier suggestion? ./catalina.sh run What's the output?
Re: Unable to shutdown Tomcat
Okay. Here you go - myMac:runtime test$ bin/catalina.sh run Using CATALINA_BASE: /Users/test/software/runtime Using CATALINA_HOME: /Users/test/software/runtime Using CATALINA_TMPDIR: /Users/test/software/runtime/temp Using JRE_HOME: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Using CLASSPATH: /Users/test/software/runtime/bin/bootstrap.jar:/Users/test/software/runtime/bin/tomcat-juli.jar Feb 14, 2014 2:47:46 PM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java On Fri, Feb 14, 2014 at 2:46 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Pooja, On 2/14/14, 5:31 PM, Pooja Swamy wrote: Yes. My tomcat is definitely not starting up :( I am not sure how to debug this issue though. I tried changing the port. It didn't help. First, make sure Tomcat isn't running (use ps to find it, kill to kill it if necessary). Then: $ bin/catalina.sh run This will run Tomcat on the console, dumping all logs directly into your terminal window. Once you do that, paste all the stuff it spits out into another message to the list. Then maybe we can help. Thus far, you've only said it's not working and haven't provided any detail at all. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJS/pzEAAoJEBzwKT+lPKRYFvIP/2GGdLRYW7zdam0bLuNhktWT A6KC1PU37mHyJj6seiydXAP0AuS3Iz0K2XqAfL0++MpijoMeABdTMqNdkN3gzsnJ 0z5uDUm7IqEo/wgcRvp0WizgCRVkZ29W5h7tDbXJQXB78BMBKVtFIE2emqjAlK2F 6vLEHTIbp0vEAxsalUNLpt45OLPXSlZX7cxvZh/tQVsWtcYHP8U+LBsotsI/9bY7 8TPH103tZgzlQA3TS5cFR08l2wEyQgnEOlLrnEfCqHFbf3ytzNa2REYnZFk37t0e 3UAUoaGXs/XMzDY0hztTyyGNxgAd1+UWaL4e5Uot/bMMc1kgDLPe35FESr8Z1Hf9 JMnLxb7YaXuSPeJf5sWrD1Y6bCZfRB156ycfB7pRcdxdEaslaAk0vmXuGO1IVLmC kLOMnedtPlvc52yX6Q1kK9WRdSem5p55rfsVJpeColYtNv/DHjSTPYWyWYA4DExu iUdCaBLqR1HZ6rKiVcL0IQRMpXDLjX1uJ0ihUp9PVhxIqwft11Www9Hqwle+99M9 SwY4jzkN9F2QaA6l1XxDZG64H40ekh0fKgNYoV5l+MW0rD2EORNApz3kQs5aoIi4 w7tNFzNn4Psd2PtGhguP8uDJsNa1V7LNAVCtk4AtjNHN1o87iQzKyWgvaMdi6BER K3dlWeKJAx4slCVAoQhv =lnlv -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Unable to shutdown Tomcat
On 2/14/2014 2:46 PM, Pooja Swamy wrote: Here is another thing. Everytime I start tomcat, it is not throwing an error. I am able to start it up multiple times. - myMac:bin test$ ./startup.sh Using CATALINA_BASE: /Users/test/software/runtime Using CATALINA_HOME: /Users/test/software/runtime Using CATALINA_TMPDIR: /Users/test/software/runtime/temp Using JRE_HOME: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Using CLASSPATH: /Users/test/software/runtime/bin/bootstrap.jar:/Users/test/software/runtime/bin/tomcat-juli.jar myMac:bin test$ ./startup.sh Using CATALINA_BASE: /Users/test/software/runtime Using CATALINA_HOME: /Users/test/software/runtime Using CATALINA_TMPDIR: /Users/test/software/runtime/temp Using JRE_HOME: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Using CLASSPATH: /Users/test/software/runtime/bin/bootstrap.jar:/Users/test/software/runtime/bin/tomcat-juli.jar myMac:bin test$ ./startup.sh Using CATALINA_BASE: /Users/test/software/runtime Using CATALINA_HOME: /Users/test/software/runtime Using CATALINA_TMPDIR: /Users/test/software/runtime/temp Using JRE_HOME: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Using CLASSPATH: /Users/test/software/runtime/bin/bootstrap.jar:/Users/test/software/runtime/bin/tomcat-juli.jar myMac:bin test$ ./startup.sh Using CATALINA_BASE: /Users/test/software/runtime Using CATALINA_HOME: /Users/test/software/runtime Using CATALINA_TMPDIR: /Users/test/software/runtime/temp Using JRE_HOME: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Using CLASSPATH: /Users/test/software/runtime/bin/bootstrap.jar:/Users/test/software/runtime/bin/tomcat-juli.jar myMac:bin test$ ps -ef|grep tomcat 501 29997 1 0 2:41PM ttys0010:01.68 /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -Djava.util.logging.config.file=/Users/test/software/runtime/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/Users/test/software/runtime/endorsed -classpath /Users/test/software/runtime/bin/bootstrap.jar:/Users/test/software/runtime/bin/tomcat-juli.jar -Dcatalina.base=/Users/test/software/runtime -Dcatalina.home=/Users/test/software/runtime -Djava.io.tmpdir=/Users/test/software/runtime/temp org.apache.catalina.startup.Bootstrap start 501 30016 1 0 2:44PM ttys0010:01.72 /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -Djava.util.logging.config.file=/Users/test/software/runtime/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/Users/test/software/runtime/endorsed -classpath /Users/test/software/runtime/bin/bootstrap.jar:/Users/test/software/runtime/bin/tomcat-juli.jar -Dcatalina.base=/Users/test/software/runtime -Dcatalina.home=/Users/test/software/runtime -Djava.io.tmpdir=/Users/test/software/runtime/temp org.apache.catalina.startup.Bootstrap start 501 30025 1 0 2:44PM ttys0010:01.90 /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -Djava.util.logging.config.file=/Users/test/software/runtime/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/Users/test/software/runtime/endorsed -classpath /Users/test/software/runtime/bin/bootstrap.jar:/Users/test/software/runtime/bin/tomcat-juli.jar -Dcatalina.base=/Users/test/software/runtime -Dcatalina.home=/Users/test/software/runtime -Djava.io.tmpdir=/Users/test/software/runtime/temp org.apache.catalina.startup.Bootstrap start 501 30034 1 0 2:44PM ttys0010:02.12 /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -Djava.util.logging.config.file=/Users/test/software/runtime/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/Users/test/software/runtime/endorsed -classpath /Users/test/software/runtime/bin/bootstrap.jar:/Users/test/software/runtime/bin/tomcat-juli.jar -Dcatalina.base=/Users/test/software/runtime -Dcatalina.home=/Users/test/software/runtime -Djava.io.tmpdir=/Users/test/software/runtime/temp org.apache.catalina.startup.Bootstrap start 501 30043 1 0 2:44PM ttys0010:01.97 /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -Djava.util.logging.config.file=/Users/test/software/runtime/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/Users/test/software/runtime/endorsed -classpath /Users/test/software/runtime/bin/bootstrap.jar:/Users/test/software/runtime/bin/tomcat-juli.jar -Dcatalina.base=/Users/test/software/runtime -Dcatalina.home=/Users/test/software/runtime -Djava.io.tmpdir=/Users/test/software/runtime/temp org.apache.catalina.startup.Bootstrap start 501 30046 29856 0 2:44PM ttys0010:00.00 grep tomcat myMac:bin test$ So tomcat is basically not starting up at
Re: Unable to shutdown Tomcat
I started tomcat - test@17.198.48.77:/Users/test/software/runtime/bin./startup.sh Using CATALINA_BASE: /Users/test/software/runtime Using CATALINA_HOME: /Users/test/software/runtime Using CATALINA_TMPDIR: /Users/test/software/runtime/temp Using JRE_HOME: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Using CLASSPATH: /Users/test/software/runtime/bin/bootstrap.jar:/Users/test/software/runtime/bin/tomcat-juli.jar test@17.198.48.77:/Users/test/software/runtime/binnetstat -an | grep LISTEN | grep 18000 test@17.198.48.77:/Users/test/software/runtime/bin Btw, when I try this for any port, I see tihs - test@17.198.48.77:/Users/test/software/runtime/bintelnet localhost 18000 Trying ::1... telnet: connect to address ::1: Connection refused Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused telnet: Unable to connect to remote host Is this a firewall issue? On Fri, Feb 14, 2014 at 3:32 PM, Mark Eggers its_toas...@yahoo.com wrote: On 2/14/2014 2:46 PM, Pooja Swamy wrote: Here is another thing. Everytime I start tomcat, it is not throwing an error. I am able to start it up multiple times. - myMac:bin test$ ./startup.sh Using CATALINA_BASE: /Users/test/software/runtime Using CATALINA_HOME: /Users/test/software/runtime Using CATALINA_TMPDIR: /Users/test/software/runtime/temp Using JRE_HOME: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Using CLASSPATH: /Users/test/software/runtime/bin/bootstrap.jar:/Users/test/ software/runtime/bin/tomcat-juli.jar myMac:bin test$ ./startup.sh Using CATALINA_BASE: /Users/test/software/runtime Using CATALINA_HOME: /Users/test/software/runtime Using CATALINA_TMPDIR: /Users/test/software/runtime/temp Using JRE_HOME: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Using CLASSPATH: /Users/test/software/runtime/bin/bootstrap.jar:/Users/test/ software/runtime/bin/tomcat-juli.jar myMac:bin test$ ./startup.sh Using CATALINA_BASE: /Users/test/software/runtime Using CATALINA_HOME: /Users/test/software/runtime Using CATALINA_TMPDIR: /Users/test/software/runtime/temp Using JRE_HOME: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Using CLASSPATH: /Users/test/software/runtime/bin/bootstrap.jar:/Users/test/ software/runtime/bin/tomcat-juli.jar myMac:bin test$ ./startup.sh Using CATALINA_BASE: /Users/test/software/runtime Using CATALINA_HOME: /Users/test/software/runtime Using CATALINA_TMPDIR: /Users/test/software/runtime/temp Using JRE_HOME: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Using CLASSPATH: /Users/test/software/runtime/bin/bootstrap.jar:/Users/test/ software/runtime/bin/tomcat-juli.jar myMac:bin test$ ps -ef|grep tomcat 501 29997 1 0 2:41PM ttys0010:01.68 /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -Djava.util.logging.config.file=/Users/test/software/ runtime/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/Users/test/software/runtime/endorsed -classpath /Users/test/software/runtime/bin/bootstrap.jar:/Users/test/ software/runtime/bin/tomcat-juli.jar -Dcatalina.base=/Users/test/software/runtime -Dcatalina.home=/Users/test/software/runtime -Djava.io.tmpdir=/Users/test/software/runtime/temp org.apache.catalina.startup.Bootstrap start 501 30016 1 0 2:44PM ttys0010:01.72 /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -Djava.util.logging.config.file=/Users/test/software/ runtime/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/Users/test/software/runtime/endorsed -classpath /Users/test/software/runtime/bin/bootstrap.jar:/Users/test/ software/runtime/bin/tomcat-juli.jar -Dcatalina.base=/Users/test/software/runtime -Dcatalina.home=/Users/test/software/runtime -Djava.io.tmpdir=/Users/test/software/runtime/temp org.apache.catalina.startup.Bootstrap start 501 30025 1 0 2:44PM ttys0010:01.90 /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -Djava.util.logging.config.file=/Users/test/software/ runtime/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/Users/test/software/runtime/endorsed -classpath /Users/test/software/runtime/bin/bootstrap.jar:/Users/test/ software/runtime/bin/tomcat-juli.jar -Dcatalina.base=/Users/test/software/runtime -Dcatalina.home=/Users/test/software/runtime -Djava.io.tmpdir=/Users/test/software/runtime/temp org.apache.catalina.startup.Bootstrap start 501 30034 1 0 2:44PM ttys0010:02.12 /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -Djava.util.logging.config.file=/Users/test/software/ runtime/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
Re: Unable to shutdown Tomcat
On 2/14/2014 3:37 PM, Pooja Swamy wrote: I started tomcat - test@17.198.48.77:/Users/test/software/runtime/bin./startup.sh Using CATALINA_BASE: /Users/test/software/runtime Using CATALINA_HOME: /Users/test/software/runtime Using CATALINA_TMPDIR: /Users/test/software/runtime/temp Using JRE_HOME: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Using CLASSPATH: /Users/test/software/runtime/bin/bootstrap.jar:/Users/test/software/runtime/bin/tomcat-juli.jar test@17.198.48.77:/Users/test/software/runtime/binnetstat -an | grep LISTEN | grep 18000 test@17.198.48.77:/Users/test/software/runtime/bin Btw, when I try this for any port, I see tihs - test@17.198.48.77:/Users/test/software/runtime/bintelnet localhost 18000 Trying ::1... telnet: connect to address ::1: Connection refused Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused telnet: Unable to connect to remote host Is this a firewall issue? OK, I don't know where you got port 1800, so: 1. Where did you get your Tomcat from? 2. Do the following: a. Start Tomcat b. netstat -an | grep LISTEN Post the answer to question 1. Post the complete output of 2.b. There will be a lot (sadly). Maybe we can tell what's running. . . . . just my two cents. /mde/ On Fri, Feb 14, 2014 at 3:32 PM, Mark Eggers its_toas...@yahoo.com wrote: On 2/14/2014 2:46 PM, Pooja Swamy wrote: Here is another thing. Everytime I start tomcat, it is not throwing an error. I am able to start it up multiple times. - myMac:bin test$ ./startup.sh Using CATALINA_BASE: /Users/test/software/runtime Using CATALINA_HOME: /Users/test/software/runtime Using CATALINA_TMPDIR: /Users/test/software/runtime/temp Using JRE_HOME: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Using CLASSPATH: /Users/test/software/runtime/bin/bootstrap.jar:/Users/test/ software/runtime/bin/tomcat-juli.jar myMac:bin test$ ./startup.sh Using CATALINA_BASE: /Users/test/software/runtime Using CATALINA_HOME: /Users/test/software/runtime Using CATALINA_TMPDIR: /Users/test/software/runtime/temp Using JRE_HOME: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Using CLASSPATH: /Users/test/software/runtime/bin/bootstrap.jar:/Users/test/ software/runtime/bin/tomcat-juli.jar myMac:bin test$ ./startup.sh Using CATALINA_BASE: /Users/test/software/runtime Using CATALINA_HOME: /Users/test/software/runtime Using CATALINA_TMPDIR: /Users/test/software/runtime/temp Using JRE_HOME: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Using CLASSPATH: /Users/test/software/runtime/bin/bootstrap.jar:/Users/test/ software/runtime/bin/tomcat-juli.jar myMac:bin test$ ./startup.sh Using CATALINA_BASE: /Users/test/software/runtime Using CATALINA_HOME: /Users/test/software/runtime Using CATALINA_TMPDIR: /Users/test/software/runtime/temp Using JRE_HOME: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Using CLASSPATH: /Users/test/software/runtime/bin/bootstrap.jar:/Users/test/ software/runtime/bin/tomcat-juli.jar myMac:bin test$ ps -ef|grep tomcat 501 29997 1 0 2:41PM ttys0010:01.68 /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -Djava.util.logging.config.file=/Users/test/software/ runtime/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/Users/test/software/runtime/endorsed -classpath /Users/test/software/runtime/bin/bootstrap.jar:/Users/test/ software/runtime/bin/tomcat-juli.jar -Dcatalina.base=/Users/test/software/runtime -Dcatalina.home=/Users/test/software/runtime -Djava.io.tmpdir=/Users/test/software/runtime/temp org.apache.catalina.startup.Bootstrap start 501 30016 1 0 2:44PM ttys0010:01.72 /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -Djava.util.logging.config.file=/Users/test/software/ runtime/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/Users/test/software/runtime/endorsed -classpath /Users/test/software/runtime/bin/bootstrap.jar:/Users/test/ software/runtime/bin/tomcat-juli.jar -Dcatalina.base=/Users/test/software/runtime -Dcatalina.home=/Users/test/software/runtime -Djava.io.tmpdir=/Users/test/software/runtime/temp org.apache.catalina.startup.Bootstrap start 501 30025 1 0 2:44PM ttys0010:01.90 /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -Djava.util.logging.config.file=/Users/test/software/ runtime/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/Users/test/software/runtime/endorsed -classpath /Users/test/software/runtime/bin/bootstrap.jar:/Users/test/ software/runtime/bin/tomcat-juli.jar -Dcatalina.base=/Users/test/software/runtime -Dcatalina.home=/Users/test/software/runtime -Djava.io.tmpdir=/Users/test/software/runtime/temp org.apache.catalina.startup.Bootstrap start
Re: Unable to shutdown Tomcat
I changed my port to 1800. 1. I got it from another server that is also running the same version. 2.b. myMac@test:/Users/test/software/tomcat/binnetstat -an | grep LISTEN tcp46 0 0 *.3283 *.*LISTEN tcp46 0 0 *.80 *.*LISTEN tcp4 0 0 *.88 *.*LISTEN tcp6 0 0 *.88 *.*LISTEN tcp4 0 0 *.22 *.*LISTEN tcp6 0 0 *.22 *.*LISTEN tcp4 0 0 *.5900 *.*LISTEN tcp6 0 0 *.5900 *.*LISTEN tcp4 0 0 *.625 *.*LISTEN tcp6 0 0 *.625 *.*LISTEN tcp4 0 0 *.548 *.*LISTEN tcp6 0 0 *.548 *.*LISTEN tcp4 0 0 127.0.0.1.631 *.*LISTEN tcp6 0 0 ::1.631*.*LISTEN tcp4 0 0 *.311 *.*LISTEN tcp6 0 0 *.311 *.*LISTEN On Fri, Feb 14, 2014 at 3:43 PM, Mark Eggers its_toas...@yahoo.com wrote: On 2/14/2014 3:37 PM, Pooja Swamy wrote: I started tomcat - test@17.198.48.77:/Users/test/software/runtime/bin./startup.sh Using CATALINA_BASE: /Users/test/software/runtime Using CATALINA_HOME: /Users/test/software/runtime Using CATALINA_TMPDIR: /Users/test/software/runtime/temp Using JRE_HOME: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Using CLASSPATH: /Users/test/software/runtime/bin/bootstrap.jar:/Users/test/ software/runtime/bin/tomcat-juli.jar test@17.198.48.77:/Users/test/software/runtime/binnetstat -an | grep LISTEN | grep 18000 test@17.198.48.77:/Users/test/software/runtime/bin Btw, when I try this for any port, I see tihs - test@17.198.48.77:/Users/test/software/runtime/bintelnet localhost 18000 Trying ::1... telnet: connect to address ::1: Connection refused Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused telnet: Unable to connect to remote host Is this a firewall issue? OK, I don't know where you got port 1800, so: 1. Where did you get your Tomcat from? 2. Do the following: a. Start Tomcat b. netstat -an | grep LISTEN Post the answer to question 1. Post the complete output of 2.b. There will be a lot (sadly). Maybe we can tell what's running. . . . . just my two cents. /mde/ On Fri, Feb 14, 2014 at 3:32 PM, Mark Eggers its_toas...@yahoo.com wrote: On 2/14/2014 2:46 PM, Pooja Swamy wrote: Here is another thing. Everytime I start tomcat, it is not throwing an error. I am able to start it up multiple times. - myMac:bin test$ ./startup.sh Using CATALINA_BASE: /Users/test/software/runtime Using CATALINA_HOME: /Users/test/software/runtime Using CATALINA_TMPDIR: /Users/test/software/runtime/temp Using JRE_HOME: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Using CLASSPATH: /Users/test/software/runtime/bin/bootstrap.jar:/Users/test/ software/runtime/bin/tomcat-juli.jar myMac:bin test$ ./startup.sh Using CATALINA_BASE: /Users/test/software/runtime Using CATALINA_HOME: /Users/test/software/runtime Using CATALINA_TMPDIR: /Users/test/software/runtime/temp Using JRE_HOME: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Using CLASSPATH: /Users/test/software/runtime/bin/bootstrap.jar:/Users/test/ software/runtime/bin/tomcat-juli.jar myMac:bin test$ ./startup.sh Using CATALINA_BASE: /Users/test/software/runtime Using CATALINA_HOME: /Users/test/software/runtime Using CATALINA_TMPDIR: /Users/test/software/runtime/temp Using JRE_HOME: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Using CLASSPATH: /Users/test/software/runtime/bin/bootstrap.jar:/Users/test/ software/runtime/bin/tomcat-juli.jar myMac:bin test$ ./startup.sh Using CATALINA_BASE: /Users/test/software/runtime Using CATALINA_HOME: /Users/test/software/runtime Using CATALINA_TMPDIR: /Users/test/software/runtime/temp Using JRE_HOME: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Using CLASSPATH: /Users/test/software/runtime/bin/bootstrap.jar:/Users/test/ software/runtime/bin/tomcat-juli.jar myMac:bin test$ ps -ef|grep tomcat 501 29997 1 0 2:41PM ttys0010:01.68 /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/ Contents/Home/bin/java -Djava.util.logging.config.file=/Users/test/software/ runtime/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/Users/test/software/runtime/endorsed -classpath
Re: Unable to shutdown Tomcat
On 2/14/2014 3:49 PM, Pooja Swamy wrote: I changed my port to 1800. 1. I got it from another server that is also running the same version. So you just copied some software over . . . Version, origin, etc. are unknown? 2.b. myMac@test:/Users/test/software/tomcat/binnetstat -an | grep LISTEN tcp46 0 0 *.3283 *.*LISTEN tcp46 0 0 *.80 *.*LISTEN Are you running a web server? tcp4 0 0 *.88 *.*LISTEN tcp6 0 0 *.88 *.*LISTEN tcp4 0 0 *.22 *.*LISTEN tcp6 0 0 *.22 *.*LISTEN tcp4 0 0 *.5900 *.*LISTEN tcp6 0 0 *.5900 *.*LISTEN tcp4 0 0 *.625 *.*LISTEN tcp6 0 0 *.625 *.*LISTEN tcp4 0 0 *.548 *.*LISTEN tcp6 0 0 *.548 *.*LISTEN tcp4 0 0 127.0.0.1.631 *.*LISTEN tcp6 0 0 ::1.631*.*LISTEN tcp4 0 0 *.311 *.*LISTEN tcp6 0 0 *.311 *.*LISTEN No, it does not appear to be running. At least there are no ports that I see that are attributable to Tomcat (with the remote possibility of port 80). Please try the following: 1. download the tar.gz file from tomcat.apache.org 2. unpack it in your home directory 3. make sure java is available by typing java -version on the command line 4. cd to apache-tomcat-7.0.50/bin (if you've downloaded 7.0.50) 5. ./startup.sh 6. post the output of: ps -aef | grep catalina | grep -v grep 7. post the output of: netstat -an | grep LISTEN /mde/ On Fri, Feb 14, 2014 at 3:43 PM, Mark Eggers its_toas...@yahoo.com wrote: On 2/14/2014 3:37 PM, Pooja Swamy wrote: I started tomcat - test@17.198.48.77:/Users/test/software/runtime/bin./startup.sh Using CATALINA_BASE: /Users/test/software/runtime Using CATALINA_HOME: /Users/test/software/runtime Using CATALINA_TMPDIR: /Users/test/software/runtime/temp Using JRE_HOME: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Using CLASSPATH: /Users/test/software/runtime/bin/bootstrap.jar:/Users/test/ software/runtime/bin/tomcat-juli.jar test@17.198.48.77:/Users/test/software/runtime/binnetstat -an | grep LISTEN | grep 18000 test@17.198.48.77:/Users/test/software/runtime/bin Btw, when I try this for any port, I see tihs - test@17.198.48.77:/Users/test/software/runtime/bintelnet localhost 18000 Trying ::1... telnet: connect to address ::1: Connection refused Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused telnet: Unable to connect to remote host Is this a firewall issue? OK, I don't know where you got port 1800, so: 1. Where did you get your Tomcat from? 2. Do the following: a. Start Tomcat b. netstat -an | grep LISTEN Post the answer to question 1. Post the complete output of 2.b. There will be a lot (sadly). Maybe we can tell what's running. . . . . just my two cents. /mde/ On Fri, Feb 14, 2014 at 3:32 PM, Mark Eggers its_toas...@yahoo.com wrote: On 2/14/2014 2:46 PM, Pooja Swamy wrote: Here is another thing. Everytime I start tomcat, it is not throwing an error. I am able to start it up multiple times. - myMac:bin test$ ./startup.sh Using CATALINA_BASE: /Users/test/software/runtime Using CATALINA_HOME: /Users/test/software/runtime Using CATALINA_TMPDIR: /Users/test/software/runtime/temp Using JRE_HOME: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Using CLASSPATH: /Users/test/software/runtime/bin/bootstrap.jar:/Users/test/ software/runtime/bin/tomcat-juli.jar myMac:bin test$ ./startup.sh Using CATALINA_BASE: /Users/test/software/runtime Using CATALINA_HOME: /Users/test/software/runtime Using CATALINA_TMPDIR: /Users/test/software/runtime/temp Using JRE_HOME: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Using CLASSPATH: /Users/test/software/runtime/bin/bootstrap.jar:/Users/test/ software/runtime/bin/tomcat-juli.jar myMac:bin test$ ./startup.sh Using CATALINA_BASE: /Users/test/software/runtime Using CATALINA_HOME: /Users/test/software/runtime Using CATALINA_TMPDIR: /Users/test/software/runtime/temp Using JRE_HOME: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Using CLASSPATH: /Users/test/software/runtime/bin/bootstrap.jar:/Users/test/ software/runtime/bin/tomcat-juli.jar myMac:bin test$ ./startup.sh Using CATALINA_BASE: /Users/test/software/runtime Using CATALINA_HOME:
Re: Unable to shutdown Tomcat
On Fri, Feb 14, 2014 at 6:37 PM, Pooja Swamy poojasw...@gmail.com wrote: I started tomcat - test@17.198.48.77:/Users/test/software/runtime/bin./startup.sh Using CATALINA_BASE: /Users/test/software/runtime Using CATALINA_HOME: /Users/test/software/runtime Using CATALINA_TMPDIR: /Users/test/software/runtime/temp Pooja, Your initial CATALINA_HOME was: /Users/test/software/tomcat Now you are running from a different directory: /Users/test/software/runtime What's the difference now? You mentioned you changed the port to 18000, where did you do that? What did you change? Why did you change that? Can you confirm that your Tomcat is not starting up, with either of three commands: 1. sudo ps -ef | grep catalina (here's sample output) 501 36371 35319 0 7:01pm ttys0030:05.22 /Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/bin/java -Djava.util.logging.config.file=/Users/test/software/tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/Users/test/software/tomcat/endorsed -classpath /Users/test/software/tomcat/bin/bootstrap.jar:/Users/test/software/tomcat/bin/tomcat-juli.jar -Dcatalina.base=/Users/test/software/tomcat -Dcatalina.home=/Users/test/software/tomcat -Djava.io.tmpdir=/Users/test/software/tomcat/temp org.apache.catalina.startup.Bootstrap start 2. sudo lsof -iTCP -sTCP:LISTEN -P -n | grep 8080 (here's sample output) java 36371 test 48u IPv6 0xff43c4aa9610cc0b 0t0 TCP *:8080 (LISTEN) 3. sudo netstat -an | grep 8080 (sample output) tcp46 0 0 *.8080 *.*LISTEN NOTE: I prefer lsof over netstat on Mac, as I can see the process number that is bound to the specific port number in one command. I did not dig into Mac version of netstat to see other switches (netstat -vatpn doesn't work on Mac like on Linux). This will make sure that you Tomcat is started. Is your TOMCAT running after you started it? If that's not the case, you need to see why you Tomcat doesn't start. Your earlier console output from /Users/test/software/tomcat/bin/catalina.sh run was not complete. Good luck!
Re: Status of the current IIS ISAPI Redirector for Tomcat
Konstantin, On Fri, Jan 24, 2014 at 2:06 PM, Konstantin Preißer kpreis...@apache.orgwrote: Hi all, for my Java Servlet web applications which run on Tomcat (currently 8.0.0-RC 10) on various Windows Server OSes (currently Windows Server 2012 R2), I use the ISAPI Redirector to forward requests from IIS to Tomcat over AJP. I use IIS as primary web server because I also host other websites that use different technologies like ASP.Net and PHP (and because IIS allows to run web applications as different processes as different user accounts, and because I can configure the SSL settings over IIS, and so on). The ISAPI Redirector has its job done well in the past and currently I'm still using it. Note that I'm only using it to forward requests from a single IIS instance to a single Tomcat instance, but not for load-balancing or other features. However, over the time I found some issues which seem to result from the changes that Win Server, IIS and other components have experienced over time, which I wanted to list here and see how these could be changed. A possibility that I see is to use an ASP.Net (C#) based redirector instead of an ISAPI based redirector as that will have a number of advantages - see below. == You raise good points. I have run into similar issues and thus created my own project outside the Apache foundation three years ago (BonCode). It is a C# based AJP connector. It can currently be used with Tomcat, JBOSS, Jetty. From support requests I am surmising that is currently bundled with software from a few manufacturers including: EMC, CSC, Siemens and others instead of ISAPI redirector. Thus, I do encourage the update of the current IIS connection mechanism to a more up-to-date method. Using a managed code mechanism is the way to go in my opinion. In the long run SPDY may also be of interest for the same purpose. The more choices the better. The following are differences already in existence with BonCode and in response to your extensive writing, only read on if you are curious:: 1. The ISAPI Redirector seems to be quite complicate to configure. You have to: 1) place the ISAPI redirector DLL in some arbitrary path (the docs suggest to place them in your Tomcat\bin directory) == not needed 2) create a virtual directory in your IIS web application which points to this path == not needed 3) change the handler settings for the virtual directory to allow to execute ISAPI dlls == not needed 4) add the ISAPI redirector DLL to the list of CGI and ISAPI restrictions in IIS == not needed 5) add the ISAPI redirector DLL to your web app as ISAPI filter == not needed 6) create some registry entries at HKLM\Software\Apache Software Foundation\Jakarta Isapi Redirector\1.0 to specify the path of the virtual directory, path to configuration files etc. == not needed 7) create configuration files (uriworkersmap.properties, worker.properties) and but them in some arbitrary path (the docs suggest to place them in your Tomcat\conf directory) == not needed, configurations are done via the IIS UI and/or an xml config file I see a few problems here. First, you have to place the ISAPI redirector DLL in some external arbitrary path. This can introduce additional maintenance issues as you always have to remember this when e.g. moving the server. Because the docs suggest to place them in your Tomcat\bin directory, you might delete that file by mistake when you delete your Tomcat installation and create a new one. The same is true for the config files - if you place them in your Tomcat directory, you might delete them when you change your Tomcat config. Normally, these files do not belong to Tomcat, but to the ISAPI redirector, so I would expect to place them somewhere in your IIS web application. E.g, ASP.Net web applications have a web.config file in their root directory for configuration, and a bin directory where .Net assemblies can be placed. If you were using an ASP.Net based redirector for example (implemented as a managed module), you can place the binary into the bin directory of your IIS webapp and configure it by adding it to the web.config file. This would also mean that you don't have to create a virtual directory any more. I also got problems with the system-wide registry keys that you need to set up for the ISAPI redirector, as they don't allow separate configs for different IIS webapps. I once tried to create a isapi_redirect.properties with the configuration (instead of using the registry) like it is described on the Tomcat Connectors IIS reference page [1], but I didn't have success, so I reverted back to the registry settings. Note also that Microsoft has deprecated ISAPI filters and extensions in favor of native http modules [2]. == not needed 2. When using the ISAPI redirector with IIS 7, I got a few problems with response buffering - it seemed that IIS buffered the complete response body
Re: Unable to shutdown Tomcat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Pooja, On 2/14/14, 5:49 PM, Pooja Swamy wrote: Okay. Here you go - myMac:runtime test$ bin/catalina.sh run Using CATALINA_BASE: /Users/test/software/runtime Using CATALINA_HOME: /Users/test/software/runtime Using CATALINA_TMPDIR: /Users/test/software/runtime/temp Using JRE_HOME: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Using CLASSPATH: /Users/test/software/runtime/bin/bootstrap.jar:/Users/test/software/runtime/bin/tomcat-juli.jar Feb 14, 2014 2:47:46 PM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java There must be more. Is there nothing else printed after that? You go back to a command prompt? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJS/tZIAAoJEBzwKT+lPKRYmZsP/2pvFj76I0UQZ8P64SehuxJG qs0Jj/PIX0DC4jdhqn3Hs3TkzVplvhmTxWpQdDkq8/0X56aztLtpODn634MapqT5 NSxkMFS2xxHQ4GWeZ9iNCmOd+0HNv+bfFtB/ZVGqoU8jWSUAsyA5OXHJlDy909y7 Y17pnLccP1wyQ0v/oTxsvhFPn0tJ1bJiXedQEHA6vQLLVaagmOdFg0M5KUi20qQs qkbQUjMwnwNMj2aIxGOyvntxoMgGwoA8ZJauf2tM2SFPJBEwj5lcw6gxlWgOFWFY l83jl0kdaK6El3S4D0J9+rPUPGsNPXtkLHieWU54U7ZBjgoX2/nCPTFPmdc4+aVO H/hCTXbBst5LUpO8QCBNRTg0MJHE8eLDrjtjWnaxn9rToBOC5wwHgQnCZqDTS7zG T1nJNU3/hqu3Im5R+f+VVOX4HKdQj+tuPEBBjkci0e7sDg0HDEUUuUQ1AThLzVtw 6t5E/jyeRr3iga0rn96n+9r8Gv99+E8DI+GbgNQHzWpYyM7lGXW/itm3gu2jiT/a MQdXRkXLl7+VW0BWe78C1qgrNWkJE9420hTBvv+zHV0CGz6HZ+ui9GEqaOTO0iWm itBhv2XDOKcQ4DeLjKlXvZDghcP1HoZkTxszjpqUSXpGTKtFYXRqjl/zD4QG/Plo pkMmpzvjlsICb/YqoODD =14QC -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Generate pkcs12 certificates from offical COMODO certs
seems to work without it ! thanks Envoyé de mon iPhone. Le 14 févr. 2014 à 16:16, Ognjen Blagojevic ognjen.d.blagoje...@gmail.com a écrit : Frank, On 14.2.2014 15:00, BONNET, Frank wrote: the intermediate cert in the one named chain right ? Yes, it is usually named that way. -Ognjen - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: mod-jk stopped working
Wow! I put my JkMounts inside the VirtualHost directives and now it is working again. Thank you very much! On Feb 14, 2014, at 11:52 AM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jim, On 2/12/14, 11:53 PM, Jim Borland wrote: Apache 2.2 and Tomcat 6 on Linux Ubuntu 10.10 My connector worked fine for several years and then suddenly stopped working! Now I get a requested URL was not found on this server error instead. This sounds like a missing JkMount in httpd or even a non-deployed webapp in Tomcat. Can you tell which component it generating the page (httpd versus Tomcat)? I've tried several things to fix this but no joy. Here is the current content of my two files: == workers.properties file -- workers.tomcat_home=/usr/share/tomcat6 workers.java_home=/usr/lib/jvm/java-6-openjdk/jre ps=/ worker.list=ajp13_worker worker.ajp13_worker.port=8009 worker.ajp13_worker.host=localhost worker.ajp13_worker.type=ajp13 worker.ajp13_worker.lbfactor=1 worker.loadbalancer.type=lb worker.loadbalancer.balance_workers=ajp13_worker == httpd.conf file -- LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so JkWorkersFile /etc/libapache2-mod-jk/workers.properties JkShmFile /var/log/apache2/mod_jk.shM JkLogFile /var/log/apache2/mod_jk.log JkLogLevel info JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkMount /big41 ajp13_worker JkMount /big41/* ajp13_worker JkMount /big50 ajp13_worker JkMount /big50/* ajp13_worker JkMount /*.jsp ajp13_worker JkMount /*/servlet/ ajp13_worker == Did you declare these JkMounts in a VirtualHost? Did you define them at the top-level and then try to use them in a virtual host? If you do a JkWorkersFile and JkMount at the top-level, they won't work within virtual hosts. You have to either explicitly-add them to all virtual hosts, or use JkMountCopy in each virtual host that should inherit the configuration. Maybe you added a new virtual host and forgot JkMountCopy? Or switched from non-virtualhost configuration to one with a default virtual host instead of none at all? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJS/nPzAAoJEBzwKT+lPKRYK+IP/2beJ98jzAJNW10fHNHU8poR sVze1TZr53hVjSGiS76xV8eoPO164egmrv9DVDKqWmk/0sWYyjmutUTLCXUXIwOA kNw0g0LF6xHQhBL/Mle8IXlSokwlBOvkuu02ILf25N4CGAr9yap0uGNFb2RsWLvR AmZWseNU6ALmLgaiMStpxXMwnjR4OHIiaxrJUm1QFKlo7AIIWodql3lUibUzuK2y uIl4yxcd5JnQWozEaT6qh4y/8nk2EEvvJAxxfSvDZWtL1u0UTK1YsZ0SpOA1milL LjFoRzVMX1pGtrik2XsEAt2lkna7TWNMi5qCIlRqSrX27z/QJBqsCgByk4wtpecp BBo6scXHbi8ksyFud338GB5OIgWHE+nOXNGcUS24CvETcDlnKJhZ4PyeIH/RsyRM vX7u/Y2q5EytwczyK8Ai+mDMMTrygBLNm1TbU43wNG6R473YtIsbRiwAMxJLI2W8 AyhHW95/KioUqQt8kUZgNRiQukGYNUqz4Lj4+fvuuHKW4TUQ8/zNnjW5agOFiEcB /G6dskV9Os4sFLq+SqUaYl725eXqcIGoowsH7cfW32J4sZv1eCcnzXgR+AgBVg+b zMioWdNAI2q/5g9XZ1/wjKtacae1wH7IQLyXKfdY0l+PEwf9hAsYQ3ZRIbKq8aGb Ax6Diqn/lFLWBe3xkTFP =rZAN -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org