Bonita runtime : begins to start but stops before fully started

1
0
-1

Hello,

This is the completed version of this subject.

I've downloaded the Bonita Community Runtime with Tomcat edition 2021.2 u0.

I've configured JAVA_HOME to jdk 11.0.13

The problem is when i start Bonita, i get an error :

{{The Apache Tomcat Native library which allows using OpenSSL was not found on the java.library.path
}}
And i've found this other message :
{{2022-02-23 09:35:59.166 +0100 SEVERE (main) org.apache.catalina.core.StandardServer Failed to create server shutdown socket on address [localhost] and port [8005] (base port [8005] and offset [0])
java.net.BindException: Address already in use: NET_Bind
at java.base/java.net.PlainSocketImpl.bind0(Native Method)
at java.base/java.net.PlainSocketImpl.socketBind(PlainSocketImpl.java:132)
at java.base/java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:452)
at java.base/java.net.ServerSocket.bind(ServerSocket.java:381)
at java.base/java.net.ServerSocket.(ServerSocket.java:243)
at org.apache.catalina.core.StandardServer.await(StandardServer.java:577)
at org.apache.catalina.startup.Catalina.await(Catalina.java:864)
at org.apache.catalina.startup.Catalina.start(Catalina.java:810)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:345)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:476)

2022-02-23 09:35:59.168 +0100 INFO (main) org.apache.coyote.http11.Http11NioProtocol Pausing ProtocolHandler ["http-nio-8080"]}}

Then, the windows batch starts but stops before Bonita is started.

Could you help about that please ?

Thanks for your help

Best regards

Comments

Submitted by romain_foulon on Wed, 02/23/2022 - 13:51

Hi,

I try to launch Bonita Community Runtime on a Windows Server 2019 DataCenter version.

Could my problem caused by that ?

Thanks for your help

Best regards

1 answer

1
+2
-1
This one is the BEST answer!

Hi,

It seems that you are trying to start the Tomcat bundle on a machine where the port configured in Tomcat is already used by another service.

Because you are running on a Windows OS, you could use the following commands to investigate:

(Make sure that Bonita is stopped)

  • netstat -ano | find "8080"
    ==> On my machine I get the following answer when another service uses the port 8080
    TCP    0.0.0.0:8080           0.0.0.0:0              LISTENING       22624
    TCP    [::]:8080              [::]:0                 LISTENING       22624
  • netstat -ano | find "8005"
    ==> On my machine I get the following answer when another service uses the port 8005
    TCP    127.0.0.1:8005         0.0.0.0:0              LISTENING       22624

Why do I suggest to check those ports? Because by default Bonita tries to start using those ports for HTTP and shutdown hook. The error message is talking about both of those ports, so it seems a good starting point for troubleshooting.

If you confirm that 1 or 2 of those ports are in use by another service (another Tomcat or IIS for instance), I would recommand to update the server.xml file of Tomcat to change those ports for values that are not already in use.

Let me know if it solves your issue,

Captain Bonita

Comments

Submitted by romain_foulon on Fri, 02/25/2022 - 14:10

Hello,

Thanks for your answer and your help.

The fact is the two ports were not used, i checked a few times with netstat -abo command line.

Apparently, the problem was I didn't stop correctly the program the first time I launched it then it was running more than once and it caused that error.

Now, I achieved to launch it.

Best regards

Notifications