The One-Click WebApp does not load. It stays at the "Loading icon". Attempting to
stop/restart the webtomcat does not correct this.
The following errors were seen in the $SPECROOT/webtomcat/bin/webswing.log
------------------------------------------
2020-01-06 08:50:46,021 ERROR [main] (JmsServiceImpl.java:31) Failed to start JMS service.
java.io.IOException: Failed to bind to server socket: nio://127.0.0.1:34455 due to: java.net.BindException: Address already in use
at org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:34)
at org.apache.activemq.transport.tcp.TcpTransportServer.bind(TcpTransportServer.java:144)
at org.apache.activemq.transport.tcp.TcpTransportFactory.doBind(TcpTransportFactory.java:62)
at org.apache.activemq.transport.TransportFactorySupport.bind(TransportFactorySupport.java:40)
at org.apache.activemq.broker.BrokerService.createTransportConnector(BrokerService.java:2520)
at org.apache.activemq.broker.BrokerService.addConnector(BrokerService.java:339)
at org.apache.activemq.broker.BrokerService.addConnector(BrokerService.java:329)
at org.webswing.server.services.jms.JmsServiceImpl.startService(JmsServiceImpl.java:71)
at org.webswing.server.services.jms.JmsServiceImpl.start(JmsServiceImpl.java:29)
at org.webswing.server.services.startup.StartupServiceImpl.start(StartupServiceImpl.java:34)
at org.webswing.server.WebswingServlet.init(WebswingServlet.java:53)
~
~
Caused by: java.net.BindException: Address already in use
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:433)
at sun.nio.ch.Net.bind(Net.java:425)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
at org.apache.activemq.transport.nio.NIOTransportFactory$2.createServerSocket(NIOTransportFactory.java:83)
at org.apache.activemq.transport.tcp.TcpTransportServer.bind(TcpTransportServer.java:141)
Spectrum 10.3.2
RedHat 7.x
For reasons unknown, there were multiple webtomcat processes running on the system. This also causes
issues with the JMS port WebSwing uses as the default port 34455 is in use.
Webswing uses JMS internally to send/receive events to/from the Application Sessions. The following
parameter can be added to the webtomcat to change the JMS port used by Web Swing
-Dwebswing.jmsUrl=nio://127.0.0.1:34456
Reference: https://www.webswing.org/docs/20.1/faq/jvm_port.html