You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Steve Demy <st...@shaw.ca> on 2019/01/03 07:07:44 UTC

Re: Tomcat 9.0.14 startup fails

I opened a bug on this (https://bz.apache.org/bugzilla/show_bug.cgi?id=63041).  It was closed by Christopher Shultz suggesting a probable configuration issue.  Possibly so, but the configuration is out of the box prior to any /conf file modification and with no user web apps involved.  And as you’ve confirmed Greg, 9.0.13 works as expected where 9.0.14 fails, all else unchanged.

Any further pointers as to where to look would be appreciated.

Steve

> On Dec 29, 2018, at 8:54 AM, Greg Huber <gr...@gmail.com> wrote:
> 
> I used your startup script as a test, there does seem to be some
> differences between v13 and v14.  v13 starts OK but v14 fails, I can see
> the temp/tomcat.pid being created but then disappears.
> 
> 
> systemctl status -l tomcat
> ● tomcat.service - Apache Tomcat Web Application Container
>   Loaded: loaded (/etc/systemd/system/tomcat.service; disabled; vendor
> preset: disabled)
>   Active: inactive (dead)
> 
> Dec 29 16:50:52 dev.box shutdown.sh[22941]: at
> java.net.Socket.<init>(Socket.java:211)
> Dec 29 16:50:52 dev.box shutdown.sh[22941]: at
> org.apache.catalina.startup.Catalina.stopServer(Catalina.java:513)
> Dec 29 16:50:52 dev.box shutdown.sh[22941]: at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> Dec 29 16:50:52 dev.box shutdown.sh[22941]: at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> Dec 29 16:50:52 dev.box shutdown.sh[22941]: at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> Dec 29 16:50:52 dev.boxshutdown.sh[22941]: at
> java.lang.reflect.Method.invoke(Method.java:498)
> Dec 29 16:50:52 dev.box shutdown.sh[22941]: at
> org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:403)
> Dec 29 16:50:52 dev.box shutdown.sh[22941]: at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:497)
> Dec 29 16:50:52 dev.box shutdown.sh[22941]: The stop command failed.
> Attempting to signal the process to stop through OS signal.
> Dec 29 16:50:53 dev.box shutdown.sh[22941]: Tomcat stopped.
> 
> 
> It seems to work OK using jsvc however.  There are no error logs.
> 
> Cheers Greg


Re: Tomcat 9.0.14 startup fails

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Steve,

On 1/3/19 02:07, Steve Demy wrote:
> I opened a bug on this 
> (https://bz.apache.org/bugzilla/show_bug.cgi?id=63041).  It was 
> closed by Christopher Schultz suggesting a probable configuration 
> issue. Possibly so, but the configuration is out of the box prior
> to any /conf file modification and with no user web apps involved.
> And as you’ve confirmed Greg, 9.0.13 works as expected where
> 9.0.14 fails, all else unchanged.
> 
> Any further pointers as to where to look would be appreciated.

Can you try to make a single change?

Back-up the 9.0.14 version of catalina.sh and then copy the 9.0.13 in
its place (so you have a 9.0.14 Tomcat with q 9.0.13 catalina.sh).

There was a change to catalina.sh that might make systemd upset. If
9.0.14 works with a 9.0.13 catalina.sh, please re-open BZ 63041 with
that explanation.

Your bug report shows that Tomcat either isn't running or isn't
configured to listed on the port being attempted when shutting down.
Can you post your <Server> element from conf/server.xml?

While the server is running, can you do:

# netstat -plan | grep java

Finally, I would say that, with systemd, using jsvc is probably the
way to go.

- -chris

>> On Dec 29, 2018, at 8:54 AM, Greg Huber <gr...@gmail.com>
>> wrote:
>> 
>> I used your startup script as a test, there does seem to be some 
>> differences between v13 and v14.  v13 starts OK but v14 fails, I
>> can see the temp/tomcat.pid being created but then disappears.
>> 
>> 
>> systemctl status -l tomcat ● tomcat.service - Apache Tomcat Web
>> Application Container Loaded: loaded
>> (/etc/systemd/system/tomcat.service; disabled; vendor preset:
>> disabled) Active: inactive (dead)
>> 
>> Dec 29 16:50:52 dev.box shutdown.sh[22941]: at 
>> java.net.Socket.<init>(Socket.java:211) Dec 29 16:50:52 dev.box
>> shutdown.sh[22941]: at 
>> org.apache.catalina.startup.Catalina.stopServer(Catalina.java:513)
>>
>> 
Dec 29 16:50:52 dev.box shutdown.sh[22941]: at
>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) Dec
>> 29 16:50:52 dev.box shutdown.sh[22941]: at 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:62)
>>
>> 
Dec 29 16:50:52 dev.box shutdown.sh[22941]: at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
>>
>> 
Dec 29 16:50:52 dev.boxshutdown.sh[22941]: at
>> java.lang.reflect.Method.invoke(Method.java:498) Dec 29 16:50:52
>> dev.box shutdown.sh[22941]: at 
>> org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:403)
>>
>> 
Dec 29 16:50:52 dev.box shutdown.sh[22941]: at
>> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:497) 
>> Dec 29 16:50:52 dev.box shutdown.sh[22941]: The stop command
>> failed. Attempting to signal the process to stop through OS
>> signal. Dec 29 16:50:53 dev.box shutdown.sh[22941]: Tomcat
>> stopped.
>> 
>> 
>> It seems to work OK using jsvc however.  There are no error
>> logs.
>> 
>> Cheers Greg
> 
> 
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlwuJHYACgkQHPApP6U8
pFjhJQ//fBHdPXyMPQKOMnQ59FZZzS4r8NHN1bv6ALneWYGQKBxvIDBJUNpe02OL
6bMo6HCUKolUx8RcYnf8OOBjZha3VC5oL9pG6kOmbBEkjGkQYLJ/GM37sDKR9IRo
z1JPSgo9D5N/7kwemEf73ohRXhcB79SCz80elgotCmD9pXzzQ0bAMJBYCIiOEm8B
7sJPwQoAvf+z7C8ygSj8hvf5gzwtvmQ/AF0RglrkmtRS/skXH7KwBJxrASvR63ng
4qJnIkKg5RYNhoqiHcmS/UEor5ruxc5ywTmVKPQXygpKOc9UquB19aji243bSzvd
Sg9VnTOxZXQjZWFx5XvhgWntlETwY59g1Qn8Y3nDyDftCOCo+Nz/hzfVnJ+jytQ+
u81TqeWuDZeyf8AHhYQlVZvBZD3PY8OwOBIXSfdIz8ZdxXX8zfuQM9z+Qh4eHS8E
xnhpKIiXfdg4M4/2y0EGk17cLvbnxcMDW2bOoV+01ZtrA1H1vIFWhDd+lctk/SYl
52fs2561hHI7G8BFRuS6fJK6pXJxgLCdMTXn01tc/FEIZUveg/KLslN4oDGxk+kc
qaXj0q4VGqTeBiw1rQn1mv+h7FJqJL96Hh4aCA4sgg41W1sywFXGoB5zVMeuiESM
ipgyfvjsJUgBWEPRiFMRoXCJtc9NXj9GB+DBqerGtpLdPP0pQps=
=wjpy
-----END PGP SIGNATURE-----

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