Fw: Re: Tomcat Manager keeps asking for Authentication
--- On Sun, 12/23/18, Karen Goh wrote: > From: Karen Goh > Subject: Re: Tomcat Manager keeps asking for Authentication > To: "Tomcat Users List" > Date: Sunday, December 23, 2018, 1:40 PM > > > On Sat, 12/22/18, Mark Thomas > wrote: > > Subject: Re: Tomcat Manager keeps > asking for Authentication > To: users@tomcat.apache.org > Date: Saturday, December 22, 2018, > 7:56 PM > > On 22/12/2018 09:12, Karen Goh > wrote: > > > > I am > running Netbean 8.2 and am trying to > study a web project > from github. > > > > It > was stated that certain pages are > constrained by the Tomcat > Role, in order to view the Admin > panel. > > > > > So, what I did was to alter the > Tomcat > C:\Program Files\Apache Software > Foundation\Apache Tomcat > 8.0.27\conf\tomcat-user.xml > > Note: 8.0.x has reached end of life > and is no > longer supported. > > > > > And here's what I added: > > > > > > > rolename="tomcat"/> > > > > > rolename="manager-gui"/> > > > roles="tomcat,manager-gui" > username="tomcat"/> > > > roles="tomcat,role1" > username="both"/> > > > roles="role1" > username="role1"/> > > >roles="manager-script, administrator" > username="me"/> > > > > > Are > you sure the above is not commented > out? > > Mark > > Hello Mark, > > Thanks for your reply and thanks for > your last reply about the changing the xml file in which I > havn't thank you cos I was grappling with so many things... > > I just found out that this guy he is > using some kind of 'embedded Tomcat' to do the work I am not > very sure though. > > And so I was trying to edit an external > Tomcat server thus it never works. > > I am quite new to the way it was done > cos eventually I found it inside apache-tomcat inside the > AppData ! > > C:\Users\xxx\\Roaming\NetBeans\8.2\apache-tomcat-8.0.27.0_base\conf\tomcat-user.xml > > Can I know what is this method about? > In addition, I'd like to know how to clean Tomcat directory in this case? Cos now after examining the server log, I saw an error : The reference to entity "ampUseLegacyDatetimeCode" must end with the ';' delimiter.) So, I edited the persistence.xml to ; jdbc:mysql://localhost:3306/music_store?autoReconnect=true;UseLegacyDatetimeCode=false;serverTimezone=UTC;seSSL=False"/> But, it still gives me the old error. > > > > - > 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: Tomcat Manager keeps asking for Authentication
On Sat, 12/22/18, Mark Thomas wrote: Subject: Re: Tomcat Manager keeps asking for Authentication To: users@tomcat.apache.org Date: Saturday, December 22, 2018, 7:56 PM On 22/12/2018 09:12, Karen Goh wrote: > > I am running Netbean 8.2 and am trying to study a web project from github. > > It was stated that certain pages are constrained by the Tomcat Role, in order to view the Admin panel. > > So, what I did was to alter the Tomcat C:\Program Files\Apache Software Foundation\Apache Tomcat 8.0.27\conf\tomcat-user.xml Note: 8.0.x has reached end of life and is no longer supported. > > And here's what I added: > > > > > > > > > > Are you sure the above is not commented out? Mark Hello Mark, Thanks for your reply and thanks for your last reply about the changing the xml file in which I havn't thank you cos I was grappling with so many things... I just found out that this guy he is using some kind of 'embedded Tomcat' to do the work I am not very sure though. And so I was trying to edit an external Tomcat server thus it never works. I am quite new to the way it was done cos eventually I found it inside apache-tomcat inside the AppData ! C:\Users\xxx\\Roaming\NetBeans\8.2\apache-tomcat-8.0.27.0_base\conf\tomcat-user.xml Can I know what is this method about? - 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: insufficient memory for the Java Runtime Environment to continue
If you use large heaps you should use G1 garbage collector And if you use that then I would set the min and Max to the same values *-server -Xms13G -Xmx13G **-XX:+UseG1GC* *To fully initialize the memory at once (g1 will figure it into compartments)* Op za 22 dec. 2018 13:35 schreef Dhaval Jaiswal I am facing issue of crashing JAVA process and log files attached for the > same. > > Server total RAM is 16 GB. > > catalina.sh having following setting. > export JAVA_MEM_OPTS="-Xms1g -Xmx15g -XX:MaxPermSize=1536m" > > Can some one help where could be the problem? Which threads are consuming > memory. How can i get rid out of this issue. > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org
Re: insufficient memory for the Java Runtime Environment to continue
Application built in such a way that it consum memory and hence, it's exhaust all memory and results in crashing Java. Probably GC is not running when it reaches to its threshold. Is there a way I can call GC explicitly without affecting running application. I believe need to identify the memory consumption as well. On Sun 23 Dec, 2018, 2:23 AM Olaf Kock > On 22.12.18 20:17, Dhaval Jaiswal wrote: > > System has allocated all mentioned RAM. > > > > I assume 13 would be fine. > > Adding to John's question, what I forgot earlier: Another rule of thumb > is to identify the *minimum* amount of memory that the application can > run with, then add a bit of headroom. Typically there's no need to go > with a humongous heap if garbage collection has a chance to free it all > up quickly. Memory in webappliations typically tends to be largely > short-lived, and (especially) the young generation GC is typically > extremely quick. You want it to rather run often (e.g. through an > imposed memory limit) than rarely (due to a too large heapspace). > > Olaf > > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >
Re: insufficient memory for the Java Runtime Environment to continue
On 22.12.18 20:17, Dhaval Jaiswal wrote: > System has allocated all mentioned RAM. > > I assume 13 would be fine. Adding to John's question, what I forgot earlier: Another rule of thumb is to identify the *minimum* amount of memory that the application can run with, then add a bit of headroom. Typically there's no need to go with a humongous heap if garbage collection has a chance to free it all up quickly. Memory in webappliations typically tends to be largely short-lived, and (especially) the young generation GC is typically extremely quick. You want it to rather run often (e.g. through an imposed memory limit) than rarely (due to a too large heapspace). Olaf - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: insufficient memory for the Java Runtime Environment to continue
Why are you requiring so much memory? On 12/22/18, Dhaval Jaiswal wrote: > System has allocated all mentioned RAM. > > I assume 13 would be fine. > > On Sat 22 Dec, 2018, 11:44 PM John Dale >> I agree with this tactic .. I do the same thing. >> >> Cheers. >> >> On 12/22/18, Olaf Kock wrote: >> > >> > On 22.12.18 13:35, Dhaval Jaiswal wrote: >> >> I am facing issue of crashing JAVA process and log files attached for >> >> the same. >> >> >> >> Server total RAM is 16 GB. >> >> >> >> catalina.sh having following setting. >> >> export JAVA_MEM_OPTS="-Xms1g -Xmx15g -XX:MaxPermSize=1536m" >> >> >> >> Can some one help where could be the problem? Which threads are >> >> consuming memory. How can i get rid out of this issue. >> > >> > In addition to all the other great answers you already got: I've made >> > it >> > a principle to configure production systems with identical values for >> > -Xms and -Xmx. In the end I'm intending to provide the max memory >> > anyways, and if something goes wrong along the way (as it does for you >> > in this situation) I prefer to know of the problems right when I start >> > up the server - not Sunday night at 3am when it tries to allocate the >> > missing (and allowed) chunk of memory from the OS before failing. >> > >> > Experimenting along this principle will help you to quickly figure out >> > how much memory your system actually can provide (be aware of the >> > required non-heap memory that Christopher mentioned, when forming your >> > expectations. >> > >> > Cheers, >> > >> > Olaf >> > >> > >> > >> > - >> > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> > For additional commands, e-mail: users-h...@tomcat.apache.org >> > >> > >> >> >> -- >> "Innovation is hard to schedule." -- Dan Fylstra >> >> *This email and any attachments to it may be confidential and are >> intended >> solely for the use of the individual(s) to whom it is addressed. If you >> are not the intended recipient of this email, you must neither take any >> action based upon its contents, nor copy or show it to anyone. Please >> contact the sender if you believe you have received this email in error.* >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org >> >> > -- "Innovation is hard to schedule." -- Dan Fylstra *This email and any attachments to it may be confidential and are intended solely for the use of the individual(s) to whom it is addressed. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error.* - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: insufficient memory for the Java Runtime Environment to continue
System has allocated all mentioned RAM. I assume 13 would be fine. On Sat 22 Dec, 2018, 11:44 PM John Dale I agree with this tactic .. I do the same thing. > > Cheers. > > On 12/22/18, Olaf Kock wrote: > > > > On 22.12.18 13:35, Dhaval Jaiswal wrote: > >> I am facing issue of crashing JAVA process and log files attached for > >> the same. > >> > >> Server total RAM is 16 GB. > >> > >> catalina.sh having following setting. > >> export JAVA_MEM_OPTS="-Xms1g -Xmx15g -XX:MaxPermSize=1536m" > >> > >> Can some one help where could be the problem? Which threads are > >> consuming memory. How can i get rid out of this issue. > > > > In addition to all the other great answers you already got: I've made it > > a principle to configure production systems with identical values for > > -Xms and -Xmx. In the end I'm intending to provide the max memory > > anyways, and if something goes wrong along the way (as it does for you > > in this situation) I prefer to know of the problems right when I start > > up the server - not Sunday night at 3am when it tries to allocate the > > missing (and allowed) chunk of memory from the OS before failing. > > > > Experimenting along this principle will help you to quickly figure out > > how much memory your system actually can provide (be aware of the > > required non-heap memory that Christopher mentioned, when forming your > > expectations. > > > > Cheers, > > > > Olaf > > > > > > > > - > > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > > For additional commands, e-mail: users-h...@tomcat.apache.org > > > > > > > -- > "Innovation is hard to schedule." -- Dan Fylstra > > *This email and any attachments to it may be confidential and are intended > solely for the use of the individual(s) to whom it is addressed. If you > are not the intended recipient of this email, you must neither take any > action based upon its contents, nor copy or show it to anyone. Please > contact the sender if you believe you have received this email in error.* > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >
Re: insufficient memory for the Java Runtime Environment to continue
I agree with this tactic .. I do the same thing. Cheers. On 12/22/18, Olaf Kock wrote: > > On 22.12.18 13:35, Dhaval Jaiswal wrote: >> I am facing issue of crashing JAVA process and log files attached for >> the same. >> >> Server total RAM is 16 GB. >> >> catalina.sh having following setting. >> export JAVA_MEM_OPTS="-Xms1g -Xmx15g -XX:MaxPermSize=1536m" >> >> Can some one help where could be the problem? Which threads are >> consuming memory. How can i get rid out of this issue. > > In addition to all the other great answers you already got: I've made it > a principle to configure production systems with identical values for > -Xms and -Xmx. In the end I'm intending to provide the max memory > anyways, and if something goes wrong along the way (as it does for you > in this situation) I prefer to know of the problems right when I start > up the server - not Sunday night at 3am when it tries to allocate the > missing (and allowed) chunk of memory from the OS before failing. > > Experimenting along this principle will help you to quickly figure out > how much memory your system actually can provide (be aware of the > required non-heap memory that Christopher mentioned, when forming your > expectations. > > Cheers, > > Olaf > > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > -- "Innovation is hard to schedule." -- Dan Fylstra *This email and any attachments to it may be confidential and are intended solely for the use of the individual(s) to whom it is addressed. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error.* - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: insufficient memory for the Java Runtime Environment to continue
On 22.12.18 13:35, Dhaval Jaiswal wrote: > I am facing issue of crashing JAVA process and log files attached for > the same. > > Server total RAM is 16 GB. > > catalina.sh having following setting. > export JAVA_MEM_OPTS="-Xms1g -Xmx15g -XX:MaxPermSize=1536m" > > Can some one help where could be the problem? Which threads are > consuming memory. How can i get rid out of this issue. In addition to all the other great answers you already got: I've made it a principle to configure production systems with identical values for -Xms and -Xmx. In the end I'm intending to provide the max memory anyways, and if something goes wrong along the way (as it does for you in this situation) I prefer to know of the problems right when I start up the server - not Sunday night at 3am when it tries to allocate the missing (and allowed) chunk of memory from the OS before failing. Experimenting along this principle will help you to quickly figure out how much memory your system actually can provide (be aware of the required non-heap memory that Christopher mentioned, when forming your expectations. Cheers, Olaf - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 9 missing org/apache/tomcat/util/file/ConfigurationSource
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Ed, On 12/21/18 07:47, Ed Zappulla wrote: > Agree. No errors on the down load, none on the unzip. I > configured Eclipse and got the startup error. Tomcat-util.jar was > just missing. So I tried versions from 1 to 14 from the archive > but they all had it. I posted about it on SO: > > https://stackoverflow.com/questions/53821592/tomcat-9-upgrade-java-lan g-noclassdeffounderror-org-apache-tomcat-util-file-con Wait... > you downloaded software an ran it on your server without checking the signature? Hmm... - -chris > -Original Message- From: Mark Thomas > [mailto:ma...@apache.org] Sent: Friday, December 21, 2018 4:35 AM > To: users@tomcat.apache.org Subject: Re: Tomcat 9 missing > org/apache/tomcat/util/file/ConfigurationSource > > Ed, > > That is extremely odd. I can understand a zip being corrupted > during download but corruption to the point where a file is missing > from the archive but no errors are reported during unpacking is > unlikely to say the least. > > I think there must be something else that was going on. > > The main thing is that the master files in the archive are correct > and that things are working for you now. > > Mark > > > On 20/12/2018 19:02, Ed Zappulla wrote: >> BTW. It was the Win 64 bit zip file that was missing >> tomcat-util.jar 2 days ago. >> >> >> Thank you >> >> ed >> >> Ed Zappulla >> >> BSG Systems, LLC 17 Red Tail Hawk Ct Annandale, NJ 08801 >> >> Mobile: (908) 246-5304 Email: ed.zappu...@bsgsystems.com >> >> >> -Original Message- From: Ed Zappulla >> [mailto:ed.zappu...@bsgsystems.com] Sent: Thursday, December 20, >> 2018 11:29 AM To: 'Tomcat Users List' >> Subject: RE: Tomcat 9 missing >> org/apache/tomcat/util/file/ConfigurationSource >> >> Mark, I just got it working. >> >> Originally I downloaded 9.0.14 from >> https://tomcat.apache.org/download-90.cgi >> >> I re-downloaded multiple versions from 9.0.1 through 9.0.14 from >> the tomcat archive and they worked >> https://archive.apache.org/dist/tomcat/tomcat-9/ >> >> I also re-downloaded from the original link above, tested and >> that also works. >> >> I checked the working version and tomcat-util.jar is there now >> with the ConfigurationSource.class file. The jar was missing >> from my original download. It looks like I might have had a bad >> download from a Tomcat mirror. Unfortunately I can t tell which >> mirror was used so I just re-tested all 4 from the download page. >> All 4 have the tomcat-util.jar and class in them. >> >> ed >> >> -Original Message- From: Mark Thomas >> [mailto:ma...@apache.org] Sent: Thursday, December 20, 2018 11:12 >> AM To: Tomcat Users List Subject: Re: >> Tomcat 9 missing org/apache/tomcat/util/file/ConfigurationSource >> >> On December 20, 2018 3:45:36 PM UTC, Ed Zappulla >> wrote: >>> I am trying to run Tomcat 9 for the first time and it cannot >>> find the class below. I checked all the tomcat*.jar libs and >>> the class does not exist. Where can I find >>> org/apache/tomcat/util/file/ConfigurationSource? I have Tomcat >>> 9 installed out of the box and it doesn't run even from the >>> command like with a "catalina run". Any help would be >>> appreciated. >>> >>> >>> >>> java.lang.NoClassDefFoundError: >>> org/apache/tomcat/util/file/ConfigurationSource >>> >>> at java.lang.Class.getDeclaredConstructors0(Native Method) >>> >>> at java.lang.Class.privateGetDeclaredConstructors(Unknown >>> Source) >>> >>> at java.lang.Class.getConstructor0(Unknown Source) >>> >>> at java.lang.Class.getConstructor(Unknown Source) >>> >>> at >>> org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:264) >>> >>> at >>> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:461) >>> >>> Caused by: java.lang.ClassNotFoundException: >>> org.apache.tomcat.util.file.ConfigurationSource >>> >>> at java.net.URLClassLoader.findClass(Unknown Source) >>> >>> at java.lang.ClassLoader.loadClass(Unknown Source) >>> >>> at java.lang.ClassLoader.loadClass(Unknown Source) >>> >>> ... 6 more >>> >>> >>> >>> >>> >>> >>> >>> Thank you >>> >>> >>> >>> .ed >>> >>> >>> >>> >>> >>> >> >> Which Tomcat 9 version? Exactly which file did you download? >> >> Mark >> >> - >> >> 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 >> >> >> >> >> - >> >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org >> > > ---
Re: insufficient memory for the Java Runtime Environment to continue
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Leon, On 12/22/18 08:19, Leon Rosenberg wrote: > You should provide at least Java version. Out of the blue you > should have at least 2Gb for the OS, so if your server is having 16 > Gb, your Xmx and MaxPermSize shouldn't be more then 14 G TOGETHER. > Of course this only applies to versions of java below 1.8, because > there is no permspace in modern jvms anymore (called metaspace > now) and in this case this setting doesn't do anything. Still, you > should reduce Xmx to 13 or less. There's also non-heap ("native") memory, too, which isn't limited. If I had server with 16GiB RAM I wouldn't think of getting anywhere near a 14GiB heap. - -chris -BEGIN PGP SIGNATURE- Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/ iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlwecDgACgkQHPApP6U8 pFjyHQ//S8Xaaw+UDDgWjY/795v6XqF120opjR4bVHB6/NTqNXBXyP6dtkXF5EVW ae4Q9CSlYjc9Cq2kQzmwyeLhpD8w7/81oz2dmMJYZJ5HUWzI+vHOF8LQ5cjFcOoZ hubj8q8wPmMN7fvMdauPhkUBXTOjZhXVcsz6gd90NKor3V7apEnPYHKiG+0JjMH1 Gf0yf2Azkx1rnYaK5h0f8hZ6eu0qGEgDfQySmYmp7T0A44Z6V0dD/i9Oj1Fir13o bxTGEVZ43rfqUHLFCDNgmKcdQrLpplI2H/BsS2jolWQNSG5hZpMx00O3Gx6GMYlS fUzt7wavU8zrUbDUPWDdSJAQ0nPTICm4JeTWJVMSC7mvMWRzMmlbbYnsqeDbnXP7 i1MAvsiu5kfmxnFuu57ha70iRVt4UsrINlkozAZXz8i9NCi4zdhQUDoX9jf+9EcN Hq1TxP8C0LYUDWJ1JM/qbTmjV/3RSwQfpaPubb6UtafOkC4I0kWviWp26fTmEfMF jnG+76cRQQ8H/iifVJx16p+mmu5yZJrgDv16vrWP3+u0rl9TJvXmPznWBCbtqhHa iQfjzaYB2LoCWeEZnjd9M6bwa/ynf2AKXkixiABuNy5jcEIlKgEeODuDmvktJkbe uOCO79mHRoPxVhL7aHvDPyTkQ9lzjEYbG3ELF02k7r7VG/GhZKM= =IcKU -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: 9.0.13 encrypted cluster traffic
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Keiichi, On 12/21/18 02:58, Keiichi Fujino wrote: > 2018年12月21日(金) 12:11 Christopher Schultz > : > > Tim, > > On 12/20/18 10:18, Tim K wrote: > > I just downloaded and tried 9.0.14 but I'm still getting > the same BadPaddingException upon starting the second > instance. I confirmed the encryptionKey matches on my two > instances. > Maybe something is wrong with my config? For this test, I have both Tomcats on the same server using different ports: > > This is the only thing that matters to the encryption interceptor: > >>> className="org.apache.catalina.tribes.group.interceptors.EncryptInt erc > eptor" > encryptionKey="e0f2cdf931e99fdce0453964294f97f3" /> > > I'm not sure if the order of encrypt/asyncdispatch interceptors > matters much. > > > >> Hi. > >> The case of using TcpFailureDetector, there is a case to write >> directly without passing through the interceptor chain. > >> TcpFailureDetector#memberAlive writes the channel data directly >> to outputstream without passing through the interceptor chain. >> However, when receiving this channel data, It passes through the >> interceptor chain. So, it must be received by TcpFailureDetector >> before decrypt of EncryptInterceptor. That is, the order is >> important. The order is EncryptInterceptor -> >> TcpFailureDetector. How's this for an update to the EncryptInterceptor documentation: " If using the TcpFailureDetector, the EncryptInterceptor must be inserted into the interceptor chain before the TcpFailureDetector. This is becuase the TcpFailureDetector writes channel data directly without using the remainder of the interceptor chain, but on the receiving side, the message still goes through the chain (in reverse). Because of this asymmetry, the EncryptInterceptor must execute before the TcpFailureDetector on the sender and after it on the receiver. " ?? - -chris -BEGIN PGP SIGNATURE- Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/ iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlweb+MACgkQHPApP6U8 pFibAhAAuQWi3IGaGRGGwZEHYo9jMB9gdxGkZvQGMEK4naN2KgMkzZ56wTxWRwFh SEV6yHj6Tz+MERc6YL2st3Hm8VH6DgwEth1g1SmLZGM0JxD4HgqTwtVE9JZk9s4Y dMCgRR+O09bUh0fnCOybcOHeMZv1SewPFhXq8e/rquTbJAhljRhCrANkzRmo5/05 WS+DsG78EVrjMG/X8uZIkkBOO43TzwTyAWNrX7u3DwUvf01idgHUceBQ/pRVC+L9 a4TwypZjYkxJcLeHexzytXYLs8j/r8JtrPYFZfTeQvnlFdDkAcFgYL+CjfjKRTwo GPJyMU8HjxAfROe0HsRXwtX/OL0XTDq21bwE7yNTCtV1NcnsLSY74eh7WtwMgIKx kmNva4roGCeb+IQAC2QRnXmenB3qX2RN2ZrY3KWEq2s+UJP7PTf3Xga5ov/OJ0ce SE8UIuXfmh8IS7nZPn0mFwflbB9xjJZZV8c/oScQflAJKtVjc3mQ6b+29Jfx+zMI imvx+B7szFkccjtIjZQlPHqgW0MbnuflqiVBUb8tH29adDOWELRPook3V6htHdBA 1Izbpng+dVU2R2xEQdtdcevUKbaIvmB8xYGRgilu//o/1RrC8wzGqZuXaiomBT01 Q/wIOQjjXKvVELoAu7Ym23KEv+IDrZAmtZy7QWiBP5azPwbc4sA= =wOVI -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: 9.0.13 encrypted cluster traffic
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Tim, On 12/21/18 08:14, Tim K wrote: > On Thu, Dec 20, 2018, 10:11 PM Christopher Schultz < > ch...@christopherschultz.net wrote: > > Tim, > > On 12/20/18 10:18, Tim K wrote: > > I just downloaded and tried 9.0.14 but I'm still getting > the same BadPaddingException upon starting the second > instance. I confirmed the encryptionKey matches on my two > instances. > Maybe something is wrong with my config? For this test, I have both Tomcats on the same server using different ports: > > This is the only thing that matters to the encryption interceptor: > >>> className="org.apache.catalina.tribes.group.interceptors.EncryptInt erc > eptor" > encryptionKey="e0f2cdf931e99fdce0453964294f97f3" /> > > I'm not sure if the order of encrypt/asyncdispatch interceptors > matters much. > > I copy/pasted your key into the TestEncryptInterceptor unit test > and I didn't get any errors. I generated 4 new 32-character > (16-byte) keys and tried all of them and didn't get any errors. > > Oddly, the very first time I copy/pasted it from your email > message into the tester it failed with BadPaddingException, but > when I re-copied "just in case" it stopped failing. Can you > download and build the 9.0.14 source and run that unit test in your > environment? Like this: > > $ ant test > -Dtest.entry=org.apache.catalina.tribes.group.interceptors.TestEncrypt In > > terceptor > > If that works, try copy/pasting your key into the source file of > the test -- it's right up at the top, called "encryptionKey128" -- > then save and re-run the test (ant will recompile it). If that > works... then I'm stumped. > > -chris >> >> - >> >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org > > > I grabbed the src from the site and built it successfully, tried > the test but it is looking for a message.bin file... If the file doesn't exist, it skips the test. That's normal. > I tried just touch'ing that file and the first test fails with a > NegativeArraySizeException Right... because it should contain an encrypted message. A zero-byte file won't be decrypted properly. (BTW this explains why I got a BadPaddingException in that *single* test... I forgot that the test decrypts the file left-behind from the previous test. This was intentional, to ensure that there wasn't some magical state being held within the JVM allowing it to decrypt the message.) > and it deletes the message.bin file and the subsequent 2 tests > can't find it. Is there something special I need to do with that > message.bin file to run the junit tests? No. The tests are running as expected. > Also, I tried just using the exact encryptionKey128 you had within > the test class and that one didn't work in my config either, same > BadPaddingException. Try running the test twice in a row. From your output, it looks like the test runs fine. Oh, you meant using my cafebabe key in your setup didn't work? Please see Keiichi's reply: it seems that the EncryptInterceptor must be "outside" of the TcpFailureDetector. - -chris -BEGIN PGP SIGNATURE- Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/ iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlwebM8ACgkQHPApP6U8 pFg2ew/+K1IqiZQR7brZVz7Oi8wa7VdRWvVz8viQDrTj05dbRCdicntdxz7PTWXQ SGNH/qxXaPfgDHq2N7S8zDHwpj0gTfadn6IFuWUgZYR3jaufpEAS4lmNpyg8e5K4 +JIacYRZDGaMWzGo+MvhNLPZQ/RhdMc2MMHW6Gmg4PSU7vwYP6o3Pp5TZsOd7U6p asQKKDfleVjavxeLUOVlUoXwxXIGdYBe8Jd0iuS725xG68GX//8az85nHkbJfrqd 0jgKx2YpWONStGjOtlsNhBEn9Sj5XTdZ3qJV36O1KtfT1vYBFZtzD748iuLTS+GI xxcVZuxdZgbF2qrISnPCfjnGVC0lJn6mDJgXMdVNCJ//kqlsrq1BTu5elOgRZxsG dLNF5WqVdPpBzFnHXaTg1nLxK0/wtox6RVR6ENid5jto6vu+nX5M+Fnus02st5W0 7OsKkODnz8Vc32tB1u6HwvfQiVvEYU/kTQhMG6Crvouqzguzl4rjH9A3rLzYugSs 5bULs57Ac6d+xnp/8lwM0742piCJD60oBHEYqLWDZQjYPc0sIo77bzBceJXk3t4K tIPZuOJOaQVBTom/CThoWMmliaECD7QL9dJnci2Rr4G8QBL+Bw86vvDOej/HnW6b N5A1brToQjHJQ7M2DeKm/u+mT0xG8zBgGAI0VL6DK229yOLpvFo= =nSuF -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: insufficient memory for the Java Runtime Environment to continue
Java version 8 On Sat 22 Dec, 2018, 6:49 PM Leon Rosenberg You should provide at least Java version. > Out of the blue you should have at least 2Gb for the OS, so if your server > is having 16 Gb, your Xmx and MaxPermSize shouldn't be more then 14 G > TOGETHER. Of course this only applies to versions of java below 1.8, > because there is no permspace in modern jvms anymore (called metaspace now) > and in this case this setting doesn't do anything. Still, you should reduce > Xmx to 13 or less. > Leon > > On Sat, Dec 22, 2018 at 1:35 PM Dhaval Jaiswal > wrote: > > > I am facing issue of crashing JAVA process and log files attached for the > > same. > > > > Server total RAM is 16 GB. > > > > catalina.sh having following setting. > > export JAVA_MEM_OPTS="-Xms1g -Xmx15g -XX:MaxPermSize=1536m" > > > > Can some one help where could be the problem? Which threads are consuming > > memory. How can i get rid out of this issue. > > > > - > > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > > For additional commands, e-mail: users-h...@tomcat.apache.org >
Re: insufficient memory for the Java Runtime Environment to continue
You should provide at least Java version. Out of the blue you should have at least 2Gb for the OS, so if your server is having 16 Gb, your Xmx and MaxPermSize shouldn't be more then 14 G TOGETHER. Of course this only applies to versions of java below 1.8, because there is no permspace in modern jvms anymore (called metaspace now) and in this case this setting doesn't do anything. Still, you should reduce Xmx to 13 or less. Leon On Sat, Dec 22, 2018 at 1:35 PM Dhaval Jaiswal wrote: > I am facing issue of crashing JAVA process and log files attached for the > same. > > Server total RAM is 16 GB. > > catalina.sh having following setting. > export JAVA_MEM_OPTS="-Xms1g -Xmx15g -XX:MaxPermSize=1536m" > > Can some one help where could be the problem? Which threads are consuming > memory. How can i get rid out of this issue. > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org
insufficient memory for the Java Runtime Environment to continue
I am facing issue of crashing JAVA process and log files attached for the same. Server total RAM is 16 GB. catalina.sh having following setting. export JAVA_MEM_OPTS="-Xms1g -Xmx15g -XX:MaxPermSize=1536m" Can some one help where could be the problem? Which threads are consuming memory. How can i get rid out of this issue. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat Manager keeps asking for Authentication
On 22/12/2018 09:12, Karen Goh wrote: I am running Netbean 8.2 and am trying to study a web project from github. It was stated that certain pages are constrained by the Tomcat Role, in order to view the Admin panel. So, what I did was to alter the Tomcat C:\Program Files\Apache Software Foundation\Apache Tomcat 8.0.27\conf\tomcat-user.xml Note: 8.0.x has reached end of life and is no longer supported. And here's what I added: Are you sure the above is not commented out? Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tomcat Manager keeps asking for Authentication
I am running Netbean 8.2 and am trying to study a web project from github. It was stated that certain pages are constrained by the Tomcat Role, in order to view the Admin panel. So, what I did was to alter the Tomcat C:\Program Files\Apache Software Foundation\Apache Tomcat 8.0.27\conf\tomcat-user.xml And here's what I added: Error message : Deployment error: Access to Tomcat server has not been authorized. Set the correct username and password with the "manager-script" role in the Tomcat customizer in the Server Manager. See the server log for details. I also tried below but it can't work also. Here's the constraint that is imposed at the web.xml under WEB/INF: -- You can restrict access to admin pages by uncommenting the code below--> administrator of the website administrator Admin Login /admin_panel/* /admin/* administrator BASIC Admin Login --> Please let me know what I have done wrong. Tks. Here's the screenshot of https://ibb.co/0V3CCcs - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org