-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Noel,

On 8/1/18 1:13 AM, noel joseph wrote:
> Hey Chris, I am having a little difficulty in logging. As mentioned
> before I am new to tomcat and don't exactly know how to enable
> logging. Could you please instruct me on how to do so.

Can you post your code for how to launch Tomcat from within your
application? Basically, your use of the Tomcat class.

- -chris

> On Tue, Jul 31, 2018 at 7:49 PM, noel joseph
> <noelvinu1...@gmail.com> wrote:
> 
>> Thank you so much Cris I will try your methods and let you know
>> off the results. Thanks for the quick response!
>> 
>> Cheers Noel
>> 
>> On Tue, Jul 31, 2018, 6:44 PM Christopher Schultz < 
>> ch...@christopherschultz.net> wrote:
>> 
> Noel,
> 
> On 7/31/18 2:54 AM, noel joseph wrote:
>>>>> Hi, I am rather new to tomcat, I've been trying to embed
>>>>> tomcat in a java application. I further want to convert
>>>>> this into a java web start file so that on deploying it I
>>>>> can have a separate tomcat server for my application. The
>>>>> error I am facing is... 
>>>>> org.apache.catalina.LifecycleException: A child container
>>>>> failed during start.
> 
> A "child container" usually ends up being something like an 
> application. Do you have any logging enabled? If so, what does the
> log say? If not, try enabling logging and then checking the log.
> Tomcat is usually pretty verbose about what happened and what it
> happened to.
> 
>>>>> I tried a couple of methods to solve it but with no use,
>>>>> the error still stays. I am using embedded tomcat 8.5.23, I
>>>>> changed it to the latest tomcat 9.0.10 which fixed the
>>>>> error but then the server didn't start. it just stops at..
>>>>> WARNING: Creation of secureRandom insatnce.....
> 
> If you are hanging on creating SecureRandom, your server (or 
> workstation) might have run out of cryptographic entropy. This can 
> happen when you restart a server like Tomcat too rapidly and the
> OS doesn't have enough time to re-fill the entropy pool.
> 
> Can you take a thread dump[1] of the running process the next time 
> this stalls, just to be sure?
> 
>>>>> By reverting back to tomcat 8.5.23 this was solved but
>>>>> again I'm facing the child container failed error.
>>>>> 
>>>>> Please let me know if there is a fix to my issue or if
>>>>> there is a better version of tomcat that I can use.
> 
> The problem is likely with a component of your application. Logs
> will help discover the root of the problem.
> 
> The decision to use Tomcat 8.5 or Tomcat 9.0 has more to do with
> your risk-aversion. Both versions are still under active
> development, but Tomcat 8.5 is more mature and stable (from a code
> perspective, not that it is any more reliable than 9.0). Both
> versions should be maintained for the next few years.
> 
> Hope that helps, -chris
> 
> [1] 
> https://wiki.apache.org/tomcat/HowTo#How_do_I_obtain_a_thread_dump_of_
my
>
> 
_running_webapp_.3F
>>> 
>>> --------------------------------------------------------------------
- -
>>>
>>> 
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>> 
>>> 
> 
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlth5hQACgkQHPApP6U8
pFhpZRAAvdbq6qZbew+Yn7XTk07P70/IZ9zi11f2Sz4+ZOH6XPC81fGEuQGwuwXZ
fLtzbP7JiXoN9lzq0rPBsN8Kq7PM58umiy5uT/ygOW0B+ehnymC7Ud3CYAvhZBkW
r+cqrqOnhYt+lvEOGgADl4O/4y2kzFSIFpNFXMLXp3zVDpGgZJJU96dXhx2G1TA2
f8px3uanQt3JOggrf3+pxxkmvyRshWumDgFplUvkxPUEhFFpgxiO1fUZUu9AOCQU
Wgh5/Rr+7qn1KwJFWxFO4fAqQFJxIMFGNElDqH8wuTfqacyvKMulw8YCcdNdbwBv
/WyBzz1K33D9X8SMtSJ5RBKGpLdDESFrmJieGWqnQd6C7VMDoJMJilGfsrCOVP8f
zq0EOMWrHOLYOYxAc+ij85RtDTDZF/TTkF6dwd/2RNX+gVxOSnN0/azR7AUKsgbf
GYYplGmuUNRLUPEHb3uKkE3k15iys4MQKySaHO3eGphEbTGX4OeYOblghV8/eRih
RO90QKShvczGFw/lHMi3Lj3Az3NeUwqpems1kGPti/cxVR/ZxJRwYuJ3jlns1fg9
OZKRbRYrucXVWOrdwkyZhhMIpn9KoT+sryoJtJuRqLWB/GzGpb3iqHh2Pt+22apn
J58mh9ur7fEgRSnId8kxU+w4uwfmavQMuI3v7jJA7Ian5yxdAAY=
=nowB
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to