Tomcat not starting on dspace rhel 7 server

636 views
Skip to first unread message

marg...@dal.ca

unread,
Sep 19, 2016, 9:40:02 AM9/19/16
to DSpace Technical Support

Hi,


I went to restart our DSpace Production server this morning and tomcat will not come back up. Below is the output when tomcat is attempting to start from catalina.out. Any advice would be appreciated!


 

Sep 19, 2016 10:08:23 AM org.apache.catalina.core.AprLifecycleListener init

INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib

Sep 19, 2016 10:08:23 AM org.apache.coyote.AbstractProtocol init

INFO: Initializing ProtocolHandler ["http-bio-8080"] Sep 19, 2016 10:08:23 AM org.apache.coyote.AbstractProtocol init

INFO: Initializing ProtocolHandler ["ajp-bio-8009"] Sep 19, 2016 10:08:23 AM org.apache.catalina.startup.Catalina load

INFO: Initialization processed in 506 ms Sep 19, 2016 10:08:23 AM org.apache.catalina.startup.Catalina start

SEVERE: The required Server component failed to start so Tomcat is unable to start.

org.apache.catalina.LifecycleException: Failed to start component [StandardServer[8005]]

                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)

                at org.apache.catalina.startup.Catalina.start(Catalina.java:689)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                at java.lang.reflect.Method.invoke(Method.java:497)

                at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:321)

                at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)

Caused by: java.lang.IllegalArgumentException: jmxremote.access (No such file or directory)

                at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:375)

                at org.apache.catalina.mbeans.JmxRemoteLifecycleListener.createServer(JmxRemoteLifecycleListener.java:313)

                at org.apache.catalina.mbeans.JmxRemoteLifecycleListener.lifecycleEvent(JmxRemoteLifecycleListener.java:259)

                at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)

                at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)

                at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)

                at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:347)

                at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:724)

                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

                ... 7 more

Caused by: java.io.FileNotFoundException: jmxremote.access (No such file or directory)

                at java.io.FileInputStream.open0(Native Method)

                at java.io.FileInputStream.open(FileInputStream.java:195)

                at java.io.FileInputStream.<init>(FileInputStream.java:138)

                at java.io.FileInputStream.<init>(FileInputStream.java:93)

                at com.sun.jmx.remote.security.MBeanServerFileAccessController.propertiesFromFile(MBeanServerFileAccessController.java:294)

                at com.sun.jmx.remote.security.MBeanServerFileAccessController.<init>(MBeanServerFileAccessController.java:133)

                at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:372)

                ... 15 more

 

Sep 19, 2016 10:08:23 AM org.apache.catalina.util.LifecycleBase destroy

WARNING: Calling stop() on failed component [StandardServer[8005]] to trigger clean-up did not complete.

org.apache.catalina.LifecycleException: Failed to stop component [StandardServer[8005]]

                at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:236)

                at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:272)

                at org.apache.catalina.startup.Catalina.start(Catalina.java:693)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                at java.lang.reflect.Method.invoke(Method.java:497)

                at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:321)

                at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)

Caused by: org.apache.catalina.LifecycleException: An invalid Lifecycle transition was attempted ([before_stop]) for component [StandardService[Catalina]] in state [INITIALIZED]

                at org.apache.catalina.util.LifecycleBase.invalidTransition(LifecycleBase.java:409)

                at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:219)

                at org.apache.catalina.core.StandardServer.stopInternal(StandardServer.java:752)

                at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)

                ... 8 more

 

Sep 19, 2016 10:08:23 AM org.apache.coyote.AbstractProtocol destroy

INFO: Destroying ProtocolHandler ["http-bio-8080"] Sep 19, 2016 10:08:23 AM org.apache.coyote.AbstractProtocol destroy

INFO: Destroying ProtocolHandler ["ajp-bio-8009"] Sep 19, 2016 10:08:24 AM org.apache.catalina.startup.Catalina stopServer

SEVERE: Could not contact localhost:8005. Tomcat may not be running.

Sep 19, 2016 10:08:24 AM org.apache.catalina.startup.Catalina stopServer

SEVERE: Catalina.stop:

java.net.ConnectException: Connection refused

                at java.net.PlainSocketImpl.socketConnect(Native Method)

                at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)

                at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)

                at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)

                at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)

                at java.net.Socket.connect(Socket.java:589)

                at java.net.Socket.connect(Socket.java:538)

                at java.net.Socket.<init>(Socket.java:434)

                at java.net.Socket.<init>(Socket.java:211)

                at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:498)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                at java.lang.reflect.Method.invoke(Method.java:497)

                at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:370)

                at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:457)

Alan Orth

unread,
Sep 23, 2016, 2:05:43 PM9/23/16
to marg...@dal.ca, DSpace Technical Support

Not good. Try looking in the localhost log file, also in the /var/log/tomcat folder.


--
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.
To post to this group, send email to dspac...@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.
--

Luiz dos Santos

unread,
Sep 23, 2016, 2:19:44 PM9/23/16
to Alan Orth, marg...@dal.ca, DSpace Technical Support
It didn't find the tomcat native libraries, some points:

1- If you are using DSpace as service, be sure that you didn't start the service with a user that should not do it.
2- if you are run startup.sh, be sure that you are using a user that can access : /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib

If I was you, I would prefer run a stand alone tomcat, instead the one that came in you operation system.

Best regards
Luiz Claudio Santos
http://luizclaudiosantos.me/


To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech+unsubscribe@googlegroups.com.

To post to this group, send email to dspac...@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech+unsubscribe@googlegroups.com.

Alan Orth

unread,
Sep 23, 2016, 2:42:49 PM9/23/16
to Luiz dos Santos, marg...@dal.ca, DSpace Technical Support

The Tomcat Native libraries are not required, that's not a fatal error. The SEVERE errors in that log are not helpful, you should look in localhost log.


To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.

To post to this group, send email to dspac...@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.

To post to this group, send email to dspac...@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Luiz dos Santos

unread,
Sep 23, 2016, 3:04:56 PM9/23/16
to Alan Orth, marg...@dal.ca, DSpace Technical Support
Yeah Alan, you are right, so please Margaret send the localhost log....but you can:

1- With the comand "ps -ef | more" check if there is any tomcat instance running and use kill -9 to kill it.
2- Use "df -kha"to check if you have space in disc.

Otherwise, send the file log file.

Best regards
Luiz Claudio Santos


To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech+unsubscribe@googlegroups.com.

To post to this group, send email to dspac...@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech+unsubscribe@googlegroups.com.

To post to this group, send email to dspac...@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages