Re: tomcat 7.0 resurrecting directory while service is installed - running in command line mode?
Am 10.01.2018 um 17:06 schrieb Christoph P.U. Kukulies: Am 10.01.2018 um 14:43 schrieb Olaf Kock: On 10.01.2018 12:39, Christoph P.U. Kukulies wrote: Nonetheless still having a bit trouble with it and would like to use your suggestion, but it fails somehow due to blanks in path name. This weirdness with blanks in paths: C:\Program Files\Apache Software Foundation\Tomcat 7.0>SET CATALINA_HOME=c:"\Program Files\Apache Software Foundation\Tomcat 7.0" C:\Program Files\Apache Software Foundation\Tomcat 7.0>echo %CATALINA_HOME% c:"\Program Files\Apache Software Foundation\Tomcat 7.0" C:\Program Files\Apache Software Foundation\Tomcat 7.0>%CATALINA_HOME%\bin\catalina.bat start "Files\Apache" kann syntaktisch an dieser Stelle nicht verarbeitet werden. C:\Program Files\Apache Software Foundation\Tomcat 7.0> I tried various combinations of quoting. Does anyone see the error? From memory: Isn't it SET "key=value" on Windows? Olaf You mean, enclosed in "" ? Not necessarily. It works either. But I'm still getting C:\Program Files\Apache Software Foundation\Tomcat 7.0>%CATALINA_HOME%\bin\Catalina.bat start Der Befehl "C:\Program" ist entweder falsch geschrieben oder konnte nicht gefunden werden. C:\Program Files\Apache Software Foundation\Tomcat 7.0> The problem is overlaid by the following: [2018-01-10 16:35:37] [info] [ 6340] Commons Daemon procrun (1.0.15.0 64-bit) s tarted [2018-01-10 16:35:37] [info] [ 6340] Running 'Tomcat7' Service... [2018-01-10 16:35:37] [info] [ 6376] Starting service... [2018-01-10 16:35:37] [error] [ 6376] Failed creating java C:\Program Files\Java \jdk1.8.0_111\jre\bin\server\jvm.dll [2018-01-10 16:35:37] [error] [ 6376] Das System kann den angegebenen Pfad nicht finden. [2018-01-10 16:35:37] [error] [ 6376] ServiceStart returned 1 [2018-01-10 16:35:37] [error] [ 6376] Das System kann den angegebenen Pfad nicht finden. [2018-01-10 16:38:06] [info] [ 6340] Run service finished. [2018-01-10 16:38:06] [info] [ 6340] Commons Daemon procrun finished My system wide setting of JAVA_HOME is (installed recent jre today since my Java instalation jdk1.8.0.111 was hosed and the error message is correct in this sense). But I found that I need also jdk1.8.0_151, not only the jre. The settings in the tomcat7w configurator were still wrong. Corrected this and I'm downloading jdk1.8.0_151 right now. Some great mess must have happened, that my java and tomcat 7 installation got hosed this way. -- Christoph Anyway, tomcat 7 is running again with me here. Got my problems solved. The PATH thing above deserves further examination though. But not so important for me at the moment. Thanks to all who helped. Christoph - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat 7.0 resurrecting directory while service is installed - running in command line mode?
Am 10.01.2018 um 14:43 schrieb Olaf Kock: On 10.01.2018 12:39, Christoph P.U. Kukulies wrote: Nonetheless still having a bit trouble with it and would like to use your suggestion, but it fails somehow due to blanks in path name. This weirdness with blanks in paths: C:\Program Files\Apache Software Foundation\Tomcat 7.0>SET CATALINA_HOME=c:"\Program Files\Apache Software Foundation\Tomcat 7.0" C:\Program Files\Apache Software Foundation\Tomcat 7.0>echo %CATALINA_HOME% c:"\Program Files\Apache Software Foundation\Tomcat 7.0" C:\Program Files\Apache Software Foundation\Tomcat 7.0>%CATALINA_HOME%\bin\catalina.bat start "Files\Apache" kann syntaktisch an dieser Stelle nicht verarbeitet werden. C:\Program Files\Apache Software Foundation\Tomcat 7.0> I tried various combinations of quoting. Does anyone see the error? From memory: Isn't it SET "key=value" on Windows? Olaf You mean, enclosed in "" ? Not necessarily. It works either. But I'm still getting C:\Program Files\Apache Software Foundation\Tomcat 7.0>%CATALINA_HOME%\bin\Catalina.bat start Der Befehl "C:\Program" ist entweder falsch geschrieben oder konnte nicht gefunden werden. C:\Program Files\Apache Software Foundation\Tomcat 7.0> The problem is overlaid by the following: [2018-01-10 16:35:37] [info] [ 6340] Commons Daemon procrun (1.0.15.0 64-bit) s tarted [2018-01-10 16:35:37] [info] [ 6340] Running 'Tomcat7' Service... [2018-01-10 16:35:37] [info] [ 6376] Starting service... [2018-01-10 16:35:37] [error] [ 6376] Failed creating java C:\Program Files\Java \jdk1.8.0_111\jre\bin\server\jvm.dll [2018-01-10 16:35:37] [error] [ 6376] Das System kann den angegebenen Pfad nicht finden. [2018-01-10 16:35:37] [error] [ 6376] ServiceStart returned 1 [2018-01-10 16:35:37] [error] [ 6376] Das System kann den angegebenen Pfad nicht finden. [2018-01-10 16:38:06] [info] [ 6340] Run service finished. [2018-01-10 16:38:06] [info] [ 6340] Commons Daemon procrun finished My system wide setting of JAVA_HOME is (installed recent jre today since my Java instalation jdk1.8.0.111 was hosed and the error message is correct in this sense). But I found that I need also jdk1.8.0_151, not only the jre. The settings in the tomcat7w configurator were still wrong. Corrected this and I'm downloading jdk1.8.0_151 right now. Some great mess must have happened, that my java and tomcat 7 installation got hosed this way. -- Christoph - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat 7.0 resurrecting directory while service is installed - running in command line mode?
Am 09.01.2018 um 16:59 schrieb Christopher Schultz: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 1/9/18 10:53 AM, Christoph P.U. Kukulies wrote: I had Tomcat 7.0 installed on my Windows 7/64 system and for some reason the directory c:\Program Files\Apache Software Foundation´\Tomcat 7.0 got wiped out. I found the directory on a disk copy and copied it back to my system disk.> The service also points to the correct directory but for some readon I'm getting:> Der Dienst "Apache Tomcat 7.0 Tomcat7" wurde mit folgendem dienstspezifischem Fehler beendet: Unzulässige Funktion.. which translates to something like "invalid function". A Java path thing? Can you post the whole stack trace? Anyway, I'm seeking for a way to run tomcat7.exe in commandline mode kind of debug mode. Is that possible? Try this: C:\path> set CATALINA_HOME=C:\Program Files\Apache Software Foundation\Tomcat 7.0 C:\path> %CATALINA_HOME%\bin\catalina.bat start [Tomcat should log to console, here] - -chris Nonetheless still having a bit trouble with it and would like to use your suggestion, but it fails somehow due to blanks in path name. This weirdness with blanks in paths: C:\Program Files\Apache Software Foundation\Tomcat 7.0>SET CATALINA_HOME=c:"\Program Files\Apache Software Foundation\Tomcat 7.0" C:\Program Files\Apache Software Foundation\Tomcat 7.0>echo %CATALINA_HOME% c:"\Program Files\Apache Software Foundation\Tomcat 7.0" C:\Program Files\Apache Software Foundation\Tomcat 7.0>%CATALINA_HOME%\bin\catalina.bat start "Files\Apache" kann syntaktisch an dieser Stelle nicht verarbeitet werden. C:\Program Files\Apache Software Foundation\Tomcat 7.0> I tried various combinations of quoting. Does anyone see the error? -- Christoph - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat 7.0 resurrecting directory while service is installed - running in command line mode?
Thanks a lot. It turned out that files in the bin directory from my backup were missing. It's running now. catalina.bat wasn't there as a lot of other files. I dropped a 7.0.82 bin directory into it and the service is running now. -- Christoph Am 09.01.2018 um 16:59 schrieb Christopher Schultz: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 1/9/18 10:53 AM, Christoph P.U. Kukulies wrote: I had Tomcat 7.0 installed on my Windows 7/64 system and for some reason the directory c:\Program Files\Apache Software Foundation´\Tomcat 7.0 got wiped out. I found the directory on a disk copy and copied it back to my system disk.> The service also points to the correct directory but for some readon I'm getting:> Der Dienst "Apache Tomcat 7.0 Tomcat7" wurde mit folgendem dienstspezifischem Fehler beendet: Unzulässige Funktion.. which translates to something like "invalid function". A Java path thing? Can you post the whole stack trace? Anyway, I'm seeking for a way to run tomcat7.exe in commandline mode kind of debug mode. Is that possible? Try this: C:\path> set CATALINA_HOME=C:\Program Files\Apache Software Foundation\Tomcat 7.0 C:\path> %CATALINA_HOME%\bin\catalina.bat start [Tomcat should log to console, here] - -chris -BEGIN PGP SIGNATURE- Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQJRBAEBCAA7FiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlpU5tEdHGNocmlzQGNo cmlzdG9waGVyc2NodWx0ei5uZXQACgkQHPApP6U8pFgaAw//QBEBrmrq1sRO2A5E Ga3cYg4Eda54CigqTL2KWOoL9Nt/biSaQpz0xbn0I1d1JgX2SWdFl0wJdyGtsYCB zJy6fBrDbRf5FTF8J+7GLrn4tWtkKEyN9J2fvglODvYK+rMzFdWxI7YjdjlkfYx9 EMuNEkfNOjtVWNcx4uZS4pf0M66+njwrbusKwxD/5aQTNcUlzH782xA/tei/5x27 tcAsYY/ot2ajEvEs6s5XGCD5X+f5bVlJY2Ghd/jUzA8LjX+6Qg9oSO3ci2NREw7D htfDAkEn9X+KqPQzbpZ/FcqZJVrpI1qWq7wqTnm/YIIMnhiHaQPiG8AmliCAgM6G oT104wMiAFsBjaasjZs9xxgNCKA0D7Zhpnvs425u4ru4JpPj62aOUS0w5n+koiwm lQzE6CYYsuzeizai7b4GVudi89AU1FRDgB6Wc+cD2OEjoVp4MmPwPxHEsEUh4VHv VTaESMTDHyi6eIcqzFHoz29HKphNEQbiMDLLKfYOEW6mY3ogX6mvkg9jC/+Gm9oT wyFzajSt6Jc/MOflK5hTm8Dsb8MIDZeXOv6+WNY00DHmJsq04knETQVv6G+3UI5U AwzECEGxmroGP/wdRFev1hII7CO8vWLBmDeHMWI5qdQ6xGXB/3t/JAFPrZBxHdP/ 2DgFjs5H27Gfcxx4QZB2hd4FFa0= =MdEU -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
tomcat 7.0 resurrecting directory while service is installed - running in command line mode?
Sorry, that previous post got fired prematurely (there must be some CTRL-something in my keyboard fingering that solicits the email ) ...I'm getting: Der Dienst "Apache Tomcat 7.0 Tomcat7" wurde mit folgendem dienstspezifischem Fehler beendet: Unzulässige Funktion.. which translates to something like "invalid function". A Java path thing? Anyway, I'm seeking for a way to run tomcat7.exe in commandline mode kind of debug mode. Is that possible? -- Christoph - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
tomcat 7.0 resurrecting directory while service is installed - running in command line mode?
I had Tomcat 7.0 installed on my Windows 7/64 system and for some reason the directory c:\Program Files\Apache Software Foundation´\Tomcat 7.0 got wiped out. I found the directory on a disk copy and copied it back to my system disk. The service also points to the correct directory but for some readon I'm getting - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: war file incompletely deployed
Am 08.11.2016 um 10:01 schrieb André Warnier (tomcat): On 08.11.2016 09:47, Christoph P.U. Kukulies wrote: Am 07.11.2016 um 19:09 schrieb Caldarale, Charles R: From: Christoph P.U. Kukulies [mailto:k...@kukulies.org] Subject: Re: war file incompletely deployed This makes sense somehow, but wouldn't a local move or copy from within the server's filesystem have the same complications? No, a local mv or rename in a modern file system simply changes the directory structure; no copy is performed. A copy does stand a chance of being caught in the middle, but the timing window is much, much smaller. Best to use mv/rename whenever possible. - Chuck So 'touch' a .LCK file in a place outside webapps, copy over the file, when copy done remove the .LCK file. On the server a background process is running watching for the .LCK file. when it's gone, it does the 'mv'. (a mv can imply a copy though when it goes across filesystems on different drives). Would it not be simpler to just rename the .war file, to .war.lck, then copy it to the destination, then rename it (in place) to .war when the copy is finished ? Tomcat should not even consider .war.lck files, right ? Ah, yes, forgot about that, that Tomcat wouldn't eat anything that's being thrown at it :) -- Christoph - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: war file incompletely deployed
Am 07.11.2016 um 19:09 schrieb Caldarale, Charles R: From: Christoph P.U. Kukulies [mailto:k...@kukulies.org] Subject: Re: war file incompletely deployed This makes sense somehow, but wouldn't a local move or copy from within the server's filesystem have the same complications? No, a local mv or rename in a modern file system simply changes the directory structure; no copy is performed. A copy does stand a chance of being caught in the middle, but the timing window is much, much smaller. Best to use mv/rename whenever possible. - Chuck So 'touch' a .LCK file in a place outside webapps, copy over the file, when copy done remove the .LCK file. On the server a background process is running watching for the .LCK file. when it's gone, it does the 'mv'. (a mv can imply a copy though when it goes across filesystems on different drives). -- Christoph - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: war file incompletely deployed
This makes sense somehow, but wouldn't a local move or copy from within the server's filesystem have the same complications? In other words: would a tomcat stop/start be required in any situation to be on the safe side? -- Christoph Am 07.11.2016 um 18:31 schrieb Caldarale, Charles R: From: Christoph P.U. Kukulies [mailto:k...@kukulies.org] Subject: war file incompletely deployed I started developing a webapp (Windows 7, tomcat 7/x64). I generate a WAR file using eclipse/maven. Once built I copy over the war file to a network share on the tomcat server. The share is the tomcat webapps directory. Once done tomcat autodeploys the .war file into the webapps subdirectory with the name of the war file (without extension). Copying over a network link to the final deployment location can be problematic. Tomcat's auto-deployment may see a partially written file and initiate deployment prematurely. Best if you can copy the file to a temporary location on the target server and then mv or rename it to the desired spot. - Chuck - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
war file incompletely deployed
I started developing a webapp (Windows 7, tomcat 7/x64). I generate a WAR file using eclipse/maven. Once built I copy over the war file to a network share on the tomcat server. The share is the tomcat webapps directory. Once done tomcat autodeploys the .war file into the webapps subdirectory with the name of the war file (without extension). The first time it worked, the war file was named designerdemo-1.0-SNAPSHOT.war. Consequently the directory it was expanded into was named designerdemo-1.0.SNAPSHOT with its subdirectories META-FIN VAADIN WEB-INF Next time after some name change in the project - actually didn't know why the SNAPSHOT part of the name went away - the directory was named designerdemo and the funny thing - and that's my question - is, that it only contains WEB-INF The other two directories are missing although they are present in the .war file. Now, when I delete the old designerdemo-1.0.SNAPSHOT directory and .war file, next time I start tomcat, the subdirectories are also available in the new directory designerdemo. Any clues? -- Christoph - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat7 installs to connect to ipv6:::8080 on Ubuntu 14.04
Being at the problem again since I would like to run haproxy against tomcat7. Here are my connectors: I added the address entry on each connector to no avail: # netstat -an Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp0 0 0.0.0.0:21 0.0.0.0:* LISTEN tcp0 0 0.0.0.0:22 0.0.0.0:* LISTEN tcp0 0 0.0.0.0:25 0.0.0.0:* LISTEN tcp0 0 0.0.0.0:36762 0.0.0.0:* LISTEN tcp0 0 127.0.0.1:6 0.0.0.0:* LISTEN tcp0 0 0.0.0.0:2049 0.0.0.0:* LISTEN tcp0 0 0.0.0.0:993 0.0.0.0:* LISTEN tcp0 0 127.0.0.1:10024 0.0.0.0:* LISTEN tcp0 0 127.0.0.1:10025 0.0.0.0:* LISTEN tcp0 0 127.0.0.1:3306 0.0.0.0:* LISTEN tcp0 0 0.0.0.0:587 0.0.0.0:* LISTEN tcp0 0 0.0.0.0:48397 0.0.0.0:* LISTEN tcp0 0 127.0.0.1:783 0.0.0.0:* LISTEN tcp0 0 0.0.0.0:143 0.0.0.0:* LISTEN tcp0 0 0.0.0.0:111 0.0.0.0:* LISTEN tcp0 0 0.0.0.0:53264 0.0.0.0:* LISTEN tcp0 0 0.0.0.0:80 0.0.0.0:* LISTEN tcp0 0 0.0.0.0:41584 0.0.0.0:* LISTEN tcp0 0 0.0.0.0:38836 0.0.0.0:* LISTEN tcp0 0 127.0.0.1:3306 127.0.0.1:39401 ESTABLISHED tcp0 0 79.80.81.82:993 73.74.75.76:4849 ESTABLISHED tcp0 0 79.80.81.82:993 73.74.75.76:4867 ESTABLISHED tcp0 0 79.80.81.82:22 73.74.75.76:4491 ESTABLISHED tcp0 0 79.80.81.82:993 73.74.75.76:4870 ESTABLISHED tcp0 0 79.80.81.82:993 73.74.75.76:4854 ESTABLISHED tcp0 0 79.80.81.82:993 73.74.75.76:4873 ESTABLISHED tcp0 0 79.80.81.82:993 73.74.75.76:4869 ESTABLISHED tcp0 0 79.80.81.82:993 73.74.75.76:4868 ESTABLISHED tcp6 0 0 :::8085 :::*LISTEN tcp6 0 0 :::8086 :::*LISTEN tcp6 0 0 :::22 :::*LISTEN tcp6 0 0 :::25 :::*LISTEN tcp6 0 0 :::44001 :::*LISTEN tcp6 0 0 :::2049 :::*LISTEN tcp6 0 0 :::993 :::*LISTEN tcp6 0 0 127.0.0.1:8005 :::*LISTEN tcp6 0 0 :::42696 :::*LISTEN tcp6 0 0 :::59018 :::*LISTEN tcp6 0 0 :::587 :::*LISTEN tcp6 0 0 :::57999 :::*LISTEN tcp6 0 0 :::143 :::*LISTEN tcp6 0 0 :::111 :::*LISTEN tcp6 0 0 :::8080 :::*LISTEN tcp6 0 0 :::8081 :::*LISTEN tcp6 0 0 :::8082 :::*LISTEN tcp6 0 0 :::8083 :::*LISTEN tcp6 0 0 :::51795 :::*LISTEN tcp6 0 0 127.0.0.1:39401 127.0.0.1:3306 ESTABLISHED -- Christoph Am 01.12.2015 um 20:12 schrieb Christopher Schultz: Christoph, On 12/1/15 12:49 PM, Christoph P.U. Kukulies wrote: it is (was) in server.xml: (I now only have tomcat listening on port 8009 proxy_ajp) I then did a service tomcat7 restart netstat -an | grep 8080 and saw tcp6 still listed and no tcp Now it look like this: (after enabling ipv6 in sysctl.conf again): tcp0 0 127.0.0.1:49393 127.0.0.1:8009 ESTABLISHED tcp0 0 127.0.0.1:49395 127.0.0.1:8009 ESTABLISHED tcp6 0 0 :::8009 :::*LISTEN tcp6 0 0 127.0.0.1:8009 127.0.0.1:49395 ESTABLISHED tcp6 0 0 127.0.0.1:8009 127.0.0.1:49393 ESTABLISHED No port :8080 in that list. -chris - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
haproxy - is there a mailing list/community?
Hi, I need some help in setting up a haproxy in front of tomcat (platform Ubuntu 14.04). For one I cannot get any logging into /var/log/haproxy.log. Instead of spoiling this list with my questions I'd rather register in a forum or mailing list dedicated to haproxy. Thank you. -- Christoph - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: switching between Java8 and Java 7 under tomcat7 leads to error
Am 26.01.2016 um 10:40 schrieb André Warnier (tomcat): On 26.01.2016 10:19, Christoph P.U. Kukulies wrote: Am 26.01.2016 um 09:36 schrieb Christoph P.U. Kukulies: Am 25.01.2016 um 19:34 schrieb George Sexton: On 1/25/2016 3:52 AM, Christoph P.U. Kukulies wrote: Thanks. Will give that a try. How can I tell, which java engine Tomcat is actually using? At a CMD prompt I'm getting: C:\> java -version java version "1.8.0_71" Java(TM) SE Runtime Environment (build 1.8.0_71-b15) Java HotSpot(TM) 64-Bit Server VM (build 25.71-b15, mixed mode) If you have a utility that shows what open files the Tomcat process has, that would work. Alternatively, get the Manager application running and see what information it provides under the Server Status screen. That made me ask myself, whether the parameters and settings I can see and set through the manager (tomcat6w.exe) are those that the Windows7 service really "sees" at startup. Would like to have added -Xmx768m to the startup parameters. Looking into the registry HKLM\System\CurrentControlSet\Services\tomcat6 I can only see the ImagePath that is started ("c:\Program Files\Apache_Group\Tomcat_6.0.39\bin\tomcat6.exe" //RS//Tomcat6), the paramters Key is empty. Or does tomcat6w write these parameters elsewhere? Thanks. Sorry, discard my question above. I forgot for the moment that -Xmx is a Java parameter, not Tomcat. Nonetheless would be interesting to know, where the configurator puts its parameter settings and how one can control whether the jvm parameters are really effective. -- Christoph Maybe time to read the FAQ ? http://wiki.apache.org/tomcat/FAQ/Windows#Q11 OK, fine. I read it and understood about tomcat6.exe being a wrapper that starts the jvm etc. Explains a lot. Logging is fine also. This enabled me to discover that the jvm options have to put in one line one by one. I had -Xms512m - Xmx1024m in one line causing the service start to fail. -- Christoph - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: switching between Java8 and Java 7 under tomcat7 leads to error
Am 26.01.2016 um 09:36 schrieb Christoph P.U. Kukulies: Am 25.01.2016 um 19:34 schrieb George Sexton: On 1/25/2016 3:52 AM, Christoph P.U. Kukulies wrote: Thanks. Will give that a try. How can I tell, which java engine Tomcat is actually using? At a CMD prompt I'm getting: C:\> java -version java version "1.8.0_71" Java(TM) SE Runtime Environment (build 1.8.0_71-b15) Java HotSpot(TM) 64-Bit Server VM (build 25.71-b15, mixed mode) If you have a utility that shows what open files the Tomcat process has, that would work. Alternatively, get the Manager application running and see what information it provides under the Server Status screen. That made me ask myself, whether the parameters and settings I can see and set through the manager (tomcat6w.exe) are those that the Windows7 service really "sees" at startup. Would like to have added -Xmx768m to the startup parameters. Looking into the registry HKLM\System\CurrentControlSet\Services\tomcat6 I can only see the ImagePath that is started ("c:\Program Files\Apache_Group\Tomcat_6.0.39\bin\tomcat6.exe" //RS//Tomcat6), the paramters Key is empty. Or does tomcat6w write these parameters elsewhere? Thanks. Sorry, discard my question above. I forgot for the moment that -Xmx is a Java parameter, not Tomcat. Nonetheless would be interesting to know, where the configurator puts its parameter settings and how one can control whether the jvm parameters are really effective. -- Christoph - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: switching between Java8 and Java 7 under tomcat7 leads to error
Am 25.01.2016 um 19:34 schrieb George Sexton: On 1/25/2016 3:52 AM, Christoph P.U. Kukulies wrote: Thanks. Will give that a try. How can I tell, which java engine Tomcat is actually using? At a CMD prompt I'm getting: C:\> java -version java version "1.8.0_71" Java(TM) SE Runtime Environment (build 1.8.0_71-b15) Java HotSpot(TM) 64-Bit Server VM (build 25.71-b15, mixed mode) If you have a utility that shows what open files the Tomcat process has, that would work. Alternatively, get the Manager application running and see what information it provides under the Server Status screen. That made me ask myself, whether the parameters and settings I can see and set through the manager (tomcat6w.exe) are those that the Windows7 service really "sees" at startup. Would like to have added -Xmx768m to the startup parameters. Looking into the registry HKLM\System\CurrentControlSet\Services\tomcat6 I can only see the ImagePath that is started ("c:\Program Files\Apache_Group\Tomcat_6.0.39\bin\tomcat6.exe" //RS//Tomcat6), the paramters Key is empty. Or does tomcat6w write these parameters elsewhere? Thanks. -- Christoph At Am 22.01.2016 um 18:28 schrieb George Sexton: On 1/22/2016 6:06 AM, Christoph P.U. Kukulies wrote: Windows 7: Today I installed Java 8 on my windows 7 machine and did an upgrade of the CMS at the same time (from OpenCMS 9.5.2 to 9.5.3). After the Java update and the CMS update suddenly my tomcat 6.0.39 didn't start any longer. The service gave an error at start time: Der Dienst "Apache Tomcat 6.0 Tomcat6" wurde mit folgendem dienstspezifischem Fehler beendet: Unzulässige Funktion.. I've seen this on Windows when upgrading the JRE. The solution that worked for me (multiple times) was to uninstall Java, and then re-install it. Make sure you grab the correct version (x86, x64) to go with your Tomcat install. My thoughts came to tomcat6 possibly not being compatible with Java8 and so I decided to install tomcat 7.0 which started fine. When starting my CMS system again I now found that it did some unpleasant things for which I wanted to rule out tomcat7 being the culprit and switch the jvm.dll in the tomcat7 configurator to the jre1.7 jvm.dll. Then suddenly I got the same error as under tomcat6.0 when I tried to start tomcat7 again. Could it be that the Java8 installer screws the existing Java 7 ? Or does it change some global parameters that tomcat reads at start time. Thanks. -- Christoph - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: switching between Java8 and Java 7 under tomcat7 leads to error
Thanks. Will give that a try. How can I tell, which java engine Tomcat is actually using? At a CMD prompt I'm getting: C:\> java -version java version "1.8.0_71" Java(TM) SE Runtime Environment (build 1.8.0_71-b15) Java HotSpot(TM) 64-Bit Server VM (build 25.71-b15, mixed mode) -- Christoph At Am 22.01.2016 um 18:28 schrieb George Sexton: On 1/22/2016 6:06 AM, Christoph P.U. Kukulies wrote: Windows 7: Today I installed Java 8 on my windows 7 machine and did an upgrade of the CMS at the same time (from OpenCMS 9.5.2 to 9.5.3). After the Java update and the CMS update suddenly my tomcat 6.0.39 didn't start any longer. The service gave an error at start time: Der Dienst "Apache Tomcat 6.0 Tomcat6" wurde mit folgendem dienstspezifischem Fehler beendet: Unzulässige Funktion.. I've seen this on Windows when upgrading the JRE. The solution that worked for me (multiple times) was to uninstall Java, and then re-install it. Make sure you grab the correct version (x86, x64) to go with your Tomcat install. My thoughts came to tomcat6 possibly not being compatible with Java8 and so I decided to install tomcat 7.0 which started fine. When starting my CMS system again I now found that it did some unpleasant things for which I wanted to rule out tomcat7 being the culprit and switch the jvm.dll in the tomcat7 configurator to the jre1.7 jvm.dll. Then suddenly I got the same error as under tomcat6.0 when I tried to start tomcat7 again. Could it be that the Java8 installer screws the existing Java 7 ? Or does it change some global parameters that tomcat reads at start time. Thanks. -- Christoph - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: switching between Java8 and Java 7 under tomcat7 leads to error
Am 22.01.2016 um 14:29 schrieb David kerber: On 1/22/2016 8:06 AM, Christoph P.U. Kukulies wrote: Windows 7: Today I installed Java 8 on my windows 7 machine and did an upgrade of the CMS at the same time (from OpenCMS 9.5.2 to 9.5.3). After the Java update and the CMS update suddenly my tomcat 6.0.39 didn't start any longer. The service gave an error at start time: Der Dienst "Apache Tomcat 6.0 Tomcat6" wurde mit folgendem dienstspezifischem Fehler beendet: Unzulässige Funktion.. My thoughts came to tomcat6 possibly not being compatible with Java8 and so I decided to install tomcat 7.0 which started fine. When starting my CMS system again I now found that it did some unpleasant things for which I wanted to rule out tomcat7 being the culprit and switch the jvm.dll in the tomcat7 configurator to the jre1.7 jvm.dll. Then suddenly I got the same error as under tomcat6.0 when I tried to start tomcat7 again. Could it be that the Java8 installer screws the existing Java 7 ? Or does it change some global parameters that tomcat reads at start time. If you take the default installation location and do not allow it to remove the old one, Java 8 will not alter your java 7 installation. However, which java is found if you do not explicitly specify which one to run, may change. Try dropping to a command prompt, and type java -version That will tell you which one is the default. If your app needs a different one, you will have to specify it. Thanks. Java -version gives U:\>java -version java version "1.8.0_71" Java(TM) SE Runtime Environment (build 1.8.0_71-b15) Java HotSpot(TM) 64-Bit Server VM (build 25.71-b15, mixed mode) So could tomcat6 been puzzled by this? The tomcat6 configurator had most probably the 7.0 jvm configured, wouldn't it? Since the java 8 installer would not mess with tomcat6 configuration. Iin other words: can I conclude that the java8 update (which preserved java7) cannot be the reason why tomcat6 didn't start. -- Christoph - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
switching between Java8 and Java 7 under tomcat7 leads to error
Windows 7: Today I installed Java 8 on my windows 7 machine and did an upgrade of the CMS at the same time (from OpenCMS 9.5.2 to 9.5.3). After the Java update and the CMS update suddenly my tomcat 6.0.39 didn't start any longer. The service gave an error at start time: Der Dienst "Apache Tomcat 6.0 Tomcat6" wurde mit folgendem dienstspezifischem Fehler beendet: Unzulässige Funktion.. My thoughts came to tomcat6 possibly not being compatible with Java8 and so I decided to install tomcat 7.0 which started fine. When starting my CMS system again I now found that it did some unpleasant things for which I wanted to rule out tomcat7 being the culprit and switch the jvm.dll in the tomcat7 configurator to the jre1.7 jvm.dll. Then suddenly I got the same error as under tomcat6.0 when I tried to start tomcat7 again. Could it be that the Java8 installer screws the existing Java 7 ? Or does it change some global parameters that tomcat reads at start time. Thanks. -- Christoph - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat7 installs to connect to ipv6:::8080 on Ubuntu 14.04
Hi Chris, it is (was) in server.xml: (I now only have tomcat listening on port 8009 proxy_ajp) I then did a service tomcat7 restart netstat -an | grep 8080 and saw tcp6 still listed and no tcp Now it look like this: (after enabling ipv6 in sysctl.conf again): tcp0 0 127.0.0.1:49393 127.0.0.1:8009 ESTABLISHED tcp0 0 127.0.0.1:49395 127.0.0.1:8009 ESTABLISHED tcp6 0 0 :::8009 :::*LISTEN tcp6 0 0 127.0.0.1:8009 127.0.0.1:49395 ESTABLISHED tcp6 0 0 127.0.0.1:8009 127.0.0.1:49393 ESTABLISHED Am 30.11.2015 um 19:01 schrieb Christopher Schultz: Christoph, On 11/30/15 8:20 AM, Christoph P.U. Kukulies wrote: Am 30.11.2015 um 12:12 schrieb Mark Thomas: On 30/11/2015 10:51, Christoph P.U. Kukulies wrote: I installed tomcat7 (apt-get) on an Ubuntu 14.04.3 LTS machine and found it being installed as listening to tcp6 00 :::8080 :::* LISTEN How can I turn that to tcp0 0 0.0.0.0:80800.0.0.0:* LISTEN Do I have to disable ipv6 in Ubuntu first or can I switch that by tweaking some config file or so? Try setting the address attribute of the connector to "0.0.0.0" Mark You mean in server.xml: in the section address="0.0.0.0" ? Doesn't seem to work. I finally got rid of it by adding the lines |net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1 to /etc/sysctl.conf and rebooted Ubuntu. | You should not have to disable IPv6 across the whole machine in order to bind to the IPv4 interface. Post your address="0.0.0.0" configuration. How did you verify the behavior after the change? Did you also try CATALINA_OPTS="-Djava.net.preferIPv4Stack=true"? No, did not try this but will do so. Cheers, Christoph - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat7 installs to connect to ipv6:::8080 on Ubuntu 14.04
Am 30.11.2015 um 12:12 schrieb Mark Thomas: On 30/11/2015 10:51, Christoph P.U. Kukulies wrote: I installed tomcat7 (apt-get) on an Ubuntu 14.04.3 LTS machine and found it being installed as listening to tcp6 00 :::8080 :::* LISTEN How can I turn that to tcp0 0 0.0.0.0:80800.0.0.0:* LISTEN Do I have to disable ipv6 in Ubuntu first or can I switch that by tweaking some config file or so? Try setting the address attribute of the connector to "0.0.0.0" Mark You mean in server.xml: in the section address="0.0.0.0" ? Doesn't seem to work. I finally got rid of it by adding the lines |net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1 to /etc/sysctl.conf and rebooted Ubuntu. | -- Christoph - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
tomcat7 installs to connect to ipv6:::8080 on Ubuntu 14.04
I installed tomcat7 (apt-get) on an Ubuntu 14.04.3 LTS machine and found it being installed as listening to tcp6 00 :::8080 :::* LISTEN How can I turn that to tcp0 0 0.0.0.0:80800.0.0.0:* LISTEN Do I have to disable ipv6 in Ubuntu first or can I switch that by tweaking some config file or so? -- Christoph Kukulies - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: native API - to make Apache/Tomcat faster
Am 26.05.2015 um 17:41 schrieb David kerber: On 5/26/2015 11:26 AM, Christoph P.U. Kukulies wrote: Am 26.05.2015 um 17:18 schrieb André Warnier: Christoph P.U. Kukulies wrote: Am 26.05.2015 um 15:36 schrieb Christopher Schultz: So you are using either mod_proxy_ajp or mod_proxy? mod_proxy I have not yet found the time to debug the connection and to locate the actual missing pieces. It just seems that some js or css is not being loaded since the source code of the page itself is there. Now that may be something else entirely. Did you check your js/css links (in the Tomcat pages) and your proxy directives in Apache httpd carefully, to see if these (separate) requests for the js/css pieces are being sent to where these files really are ? It's not that the site doesn't work. Normally it works fine (after a reboot) but after a couple days of running this effect occurs (that parts of the page do not appear any longer). That sounds like you have a resource leak of some kind, which is tying up server resources (memory, probably). This sounds a bit like that but I'm not sure. Anyway, to come back to the use of the APR-library: how can I check whether it is already installed or how can I activate it? -- Christoph - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: native API - to make Apache/Tomcat faster
Am 26.05.2015 um 17:18 schrieb André Warnier: Christoph P.U. Kukulies wrote: Am 26.05.2015 um 15:36 schrieb Christopher Schultz: So you are using either mod_proxy_ajp or mod_proxy? mod_proxy I have not yet found the time to debug the connection and to locate the actual missing pieces. It just seems that some js or css is not being loaded since the source code of the page itself is there. Now that may be something else entirely. Did you check your js/css links (in the Tomcat pages) and your proxy directives in Apache httpd carefully, to see if these (separate) requests for the js/css pieces are being sent to where these files really are ? It's not that the site doesn't work. Normally it works fine (after a reboot) but after a couple days of running this effect occurs (that parts of the page do not appear any longer). Portions of the page do not show and trying to restart the service results in a time out. A time out where? The service-restart times out, or after a service restart, requests time out? When I type NET STOP tomcat7 on the server to stop the service, it hangs. Normally the service should be shut down smoothly. And that may be a totally separate, unrelated to the first above, issue. Yes, maybe, or probably. -- Christoph - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: native API - to make Apache/Tomcat faster
Am 26.05.2015 um 15:36 schrieb Christopher Schultz: So you are using either mod_proxy_ajp or mod_proxy? mod_proxy Are you using TLS anywhere in the mix? (I should hope so, since you are deploying a CMS). Does httpd terminate TLS? Do you encrypt the connection(s) between httpd and Tomcat using TLS? No, not using TSL between Apache and tomcat. Using secure http (https) is planned to be used soon. We are observing that the server sometimes delivers pages incompletely. Have you been able to determine if Tomcat is not sending the whole page, or if httpd is not proxying the whole page? I have not yet found the time to debug the connection and to locate the actual missing pieces. It just seems that some js or css is not being loaded since the source code of the page itself is there. Portions of the page do not show and trying to restart the service results in a time out. A time out where? The service-restart times out, or after a service restart, requests time out? When I type NET STOP tomcat7 on the server to stop the service, it hangs. Normally the service should be shut down smoothly. I'm unaware of any problems when up-to-date versions of all components are being used. The rebooting the server is a cure. That seems to be a popular cure with Microsoft Windows servers ;) -- Christoph - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: native API - to make Apache/Tomcat faster
Am 26.05.2015 um 15:06 schrieb Christopher Schultz: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Christoph, On 5/26/15 6:45 AM, Christoph P.U. Kukulies wrote: There is this native Apache API if I recall correctly to speed up Apache. Is there such for Tomcat too? If by "Apache" you mean "Apache httpd", you need to understand that Apache httpd is 100% "native", as it's all written in C. Apache Tomcat has a connector which is based upon the Apache Portable Runtime, which is a native library. Yes, APR, was the term, not API. I'm seeing discussion running on another issue on APR here, BTW. Anyway, we have a production server (Windows 7/64) , that is running a CMS under Tomcat 7.0.61 (64bit jdk 1.8.0_5) and serves a website to the public via Apache 2.4 and connectors (not modjk). We are observing that the server sometimes delivers pages incompletely. Portions of the page do not show and trying to restart the service results in a time out. The rebooting the server is a cure. And should this be established at any rate for production servers? That depends. Are you suffering any performance problems? What does your production deployment look like? There is really only one use-case where the APR-based connector really makes a difference. -- Christoph - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
native API - to make Apache/Tomcat faster
There is this native Apache API if I recall correctly to speed up Apache. Is there such for Tomcat too? And should this be established at any rate for production servers? -- Christoph Kukulies - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
WARNING: Problem with directory [/usr/share/tomcat7/common], exists: [false],
What are these warnings an stacktraces about? Feb 09, 2015 11:42:09 AM org.apache.catalina.startup.ClassLoaderFactory validateFile WARNING: Problem with directory [/usr/share/tomcat8/common/classes], exists: [false], isDirectory: [false], canRead: [false] Feb 09, 2015 11:42:09 AM org.apache.catalina.startup.ClassLoaderFactory validateFile WARNING: Problem with directory [/usr/share/tomcat7/common], exists: [false], isDirectory: [false], canRead: [false] Feb 09, 2015 11:42:09 AM org.apache.catalina.startup.ClassLoaderFactory validateFile WARNING: Problem with directory [/usr/share/tomcat7/server/classes], exists: [false], isDirectory: [false], canRead: [false] Feb 09, 2015 11:42:09 AM org.apache.catalina.startup.ClassLoaderFactory validateFile WARNING: Problem with directory [/usr/share/tomcat7/server], exists: [false], isDirectory: [false], canRead: [false] Feb 09, 2015 11:42:09 AM org.apache.catalina.startup.ClassLoaderFactory validateFile WARNING: Problem with directory [/usr/share/tomcat7/shared/classes], exists: [false], isDirectory: [false], canRead: [false] Feb 09, 2015 11:42:09 AM org.apache.catalina.startup.ClassLoaderFactory validateFile WARNING: Problem with directory [/usr/share/tomcat7/shared], exists: [false], isDirectory: [false], canRead: [false] Feb 09, 2015 11:42:10 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["http-bio-8443"] Feb 09, 2015 11:42:10 AM org.apache.tomcat.util.net.jsse.JSSESocketFactory getStore SEVERE: Failed to load keystore type JKS with path /usr/share/tomcat7/.keystore due to /usr/share/tomcat7/.keystore (No such file or directory) java.io.FileNotFoundException: /usr/share/tomcat7/.keystore (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.(FileInputStream.java:146) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory.java:385) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocketFactory.java:291) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:549) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:489) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.init(JSSESocketFactory.java:434) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:181) at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:397) at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:640) at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:434) at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119) at org.apache.catalina.connector.Connector.initInternal(Connector.java:978) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:813) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) at org.apache.catalina.startup.Catalina.load(Catalina.java:638) at org.apache.catalina.startup.Catalina.load(Catalina.java:663) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454) Feb 09, 2015 11:42:10 AM org.apache.coyote.AbstractProtocol init SEVERE: Failed to initialize end point associated with ProtocolHandler ["http-bio-8443"] java.io.FileNotFoundException: /usr/share/tomcat7/.keystore (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.(FileInputStream.java:146) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory.java:385) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocketFactory.java:291) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:549) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:489) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.init(JSSESocketFactory.java:434) Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.or
finding out the exact tomcat version under Ubuntu 14.04 (trusty)
As the subject says: How can I find out the exact tomcat version under Ubuntu 14.04 (trusty)? Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: -Djava.awt.headless=true JVM parameter
Thanks, I found it to set the parameter with the configurator. Interesting would be though, what headless exactly means and what it has to do with graphics. I know "headerless" from threaded languages (headerless Forth for example) and I was thinking in the context of Java it would be a "headerless" java bytecode, but I would not have thought it had to do something with DISPLAY "heads" whatever that means. -- Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de Am 11.01.2015 um 18:25 schrieb Caldarale, Charles R: From: Felix Schumacher [mailto:felix.schumac...@internetallee.de] Subject: Re: -Djava.awt.headless=true JVM parameter |-Djava.awt.headless=true| JVM parameter or X-Server may be missing. *You can continue the setup, but image processing will be disabled.* Is this an issue that I can fix with setting Tomcats' startup parameters (Service under Windows 7)? You should be able to set the headless parameter in CATALINA_OPTS. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
-Djava.awt.headless=true JVM parameter
I'm installing OpenCms 9.5.0 (www.opencms.org) under tomcat 6.0.32 and during setup I'm getting a warning saying that "Your system uses components which have not been tested to work with Alkacon OpenCms. It is possible that OpenCms will not run on your system. |-Djava.awt.headless=true| JVM parameter or X-Server may be missing. *You can continue the setup, but image processing will be disabled.* " Is this an issue that I can fix with setting Tomcats' startup parameters (Service under Windows 7)? -- Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: configuring Tomcat service to use more heap (Windows 7)
Am 18.12.2014 um 15:08 schrieb Christopher Schultz: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Christoph, On 12/18/14 5:52 AM, Christoph P.U. Kukulies wrote: I would like to increase the jvm heap size to, say, 1GB, in Tomcat 6.x Windows 7 service. Using the configuration program I see fields to set initial and max and max memory pool, but I don't see these parameters in the service startup command. Shouldn't there be something like -Xmx1024m in the parameters? Where are you looking? The Tomcat service runner will add those Wasn't aware of this. I was expecting them to show up in the service start line. And where do I configure these? Under Linux I'm seeing a lot of parameters being passed to the java start command for tomcat. parameters to the JVM launch command. Are you saying that you've specified those parameters but they don't seem to be affecting the JVM that starts, or are you just looking at the "parameters" tab and expecting them to show up? They won't show up because they are configured elsewhere. - -chris -- Christoph - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
configuring Tomcat service to use more heap (Windows 7)
I would like to increase the jvm heap size to, say, 1GB, in Tomcat 6.x Windows 7 service. Using the configuration program I see fields to set initial and max and max memory pool, but I don't see these parameters in the service startup command. Shouldn't there be something like -Xmx1024m in the parameters? -- Christoph - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: passing JAVA_OPTS to tomcat6 service (Windows 7) - catalina.bat?
Am 05.08.2014 11:12, schrieb Christoph P.U. Kukulies: I'm running tomncat 6.0.32 under Windows 7. Some system I want to run (OpenCMS) requires set JAVA_OPTS=%JAVA_OPTS%-Djava.awt.headless=true in catalina.bat. I'm not sure whether catalina.bat is invoked at all when tomcat6 is run as a service under Windows. How can I pass this JVM parameter to the tomcat service? -- Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de Thanks. Found it myself. Stop the service and edit it running tomcat6w //ES//Tomcat6 Java tab ... etc. etc. -- Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
passing JAVA_OPTS to tomcat6 service (Windows 7) - catalina.bat?
I'm running tomncat 6.0.32 under Windows 7. Some system I want to run (OpenCMS) requires set JAVA_OPTS=%JAVA_OPTS%-Djava.awt.headless=true in catalina.bat. I'm not sure whether catalina.bat is invoked at all when tomcat6 is run as a service under Windows. How can I pass this JVM parameter to the tomcat service? -- Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Fwd: Unable to start tomcat as a service.
Am 08.04.2014 11:42, schrieb akshay jain: Hi, I downloaded *apache-tomcat-7.0.52-windows-x64.zip* from the apache website. I am running windows 7 64 bit operating system. Are you planning to leave it installed under c:\tmp ? Did you try to use service.bat install? What does the System Eventlog say? -- Christoph Kukulies I have setup the file setenv.bat file and apache starts without any problem when started using startup.bat script. To run apache as a windows service I did the following steps: 1. Extracted the zip to location C:\tmp 2. Opened command line in the said folder and ran command : "tomcat7 //IS//" 3. Then ran command : - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Problem starting Tomcat 6.0.39 (64) service under Windows 7/64
Thanks for the quick answer. You were faster than I. I had already answered myself, but the post bounced since I'm not allowed to post HTML. :) I will examine the thread you posted also. Anyway here is my finding: Solved! Minutes after I posted this, I gave the GUI Windows Installer (32/64) <32-bit/64-bit%20Windows%20Service%20Installer> a try and, lo and behold, it worked! Thanks for listening. -- Christoph Kukulies Am 07.02.2014 10:16, schrieb André Warnier: Christoph P.U. Kukulies wrote: I downloaded tomcat 6.0.39 (64) from tomcat.apache.org, put it into c:\program files\Apache_Group\Tomcat_6.0.39 and ran the service.bat which established the service. As system environment variables I have set: CATALINA_HOME=c:\Program Files\Apache_Group\Tomcat_6.0.3 JAVA_HOME=c:\Program Files\java\jdk1.7.0_51 JRE_HOME=c:\program files\java\jre7 The service does not start at boot and starting it manually gives a return code 1. The event log only shows: Der Dienst "Apache Tomcat 6" wurde mit folgendem dienstspezifischem Fehler beendet: Unzulässige Funktion.. starting tomcat6 manually (interactivelym using startup.bat) seems to work: C:\Program Files\Apache_Group\Tomcat_6.0.39\bin>startup Using CATALINA_BASE: "c:\Program Files\Apache_Group\Tomcat_6.0.39" Using CATALINA_HOME: "c:\Program Files\Apache_Group\Tomcat_6.0.39" Using CATALINA_TMPDIR: "c:\Program Files\Apache_Group\Tomcat_6.0.39\temp" Using JRE_HOME:"c:\program files\java\jre7" Using CLASSPATH: "c:\Program Files\Apache_Group\Tomcat_6.0.39\bin\bootstra p.jar" C:\Program Files\Apache_Group\Tomcat_6.0.39\bin> Any clues? Hi. This issue seems to be identical to the very recent thread on this list entitled "unable to start Tomcat through the Windows Services panel". To avoid long repetitions, could you consult the list archives and see if it provides the solution for you too ? (See : http://tomcat.apache.org/lists.html) In the meantime, just one thing : - running Tomcat in a command window uses the BAT files and environment variables - running Tomcat as a Service does not use these at all. For more details, see : http://wiki.apache.org/tomcat/FAQ/Windows#Q11 - 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
Problem starting Tomcat 6.0.39 (64) service under Windows 7/64
I downloaded tomcat 6.0.39 (64) from tomcat.apache.org, put it into c:\program files\Apache_Group\Tomcat_6.0.39 and ran the service.bat which established the service. As system environment variables I have set: CATALINA_HOME=c:\Program Files\Apache_Group\Tomcat_6.0.3 JAVA_HOME=c:\Program Files\java\jdk1.7.0_51 JRE_HOME=c:\program files\java\jre7 The service does not start at boot and starting it manually gives a return code 1. The event log only shows: Der Dienst "Apache Tomcat 6" wurde mit folgendem dienstspezifischem Fehler beendet: Unzulässige Funktion.. starting tomcat6 manually (interactivelym using startup.bat) seems to work: C:\Program Files\Apache_Group\Tomcat_6.0.39\bin>startup Using CATALINA_BASE: "c:\Program Files\Apache_Group\Tomcat_6.0.39" Using CATALINA_HOME: "c:\Program Files\Apache_Group\Tomcat_6.0.39" Using CATALINA_TMPDIR: "c:\Program Files\Apache_Group\Tomcat_6.0.39\temp" Using JRE_HOME:"c:\program files\java\jre7" Using CLASSPATH: "c:\Program Files\Apache_Group\Tomcat_6.0.39\bin\bootstra p.jar" C:\Program Files\Apache_Group\Tomcat_6.0.39\bin> Any clues? -- Christoph Kukulies - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org