Discussion

110
Views
Ale55andro Member since 2015 7 posts
PEGA
Posted: 1 year ago
Last activity: 1 year 4 months ago
Closed

Pega Platform on Tomcat terminating with exception Address already in use on Windows Server 2016 Datacenter

Despite the Pega Platform is successfully starting, the Tomcat instance is terminating with the following exception and stack trace:

18-Apr-2019 10:59:13.333 SEVERE [main] org.apache.catalina.core.StandardServer.await StandardServer.await: create[localhost:8005]: 
 java.net.BindException: Address already in use: JVM_Bind
	at java.net.TwoStacksPlainSocketImpl.socketBind(Native Method)
	at java.net.TwoStacksPlainSocketImpl.socketBind(TwoStacksPlainSocketImpl.java:137)
	at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387)
	at java.net.TwoStacksPlainSocketImpl.bind(TwoStacksPlainSocketImpl.java:110)
	at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:190)
	at java.net.ServerSocket.bind(ServerSocket.java:375)
	at java.net.ServerSocket.<init>(ServerSocket.java:237)
	at org.apache.catalina.core.StandardServer.await(StandardServer.java:440)
	at org.apache.catalina.startup.Catalina.await(Catalina.java:769)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:715)
	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:498)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:353)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:493)

As per the exception message, there is a conflict on port 8005, by default configured in the Tomcat configuration file server.xml as follows:

<Server port="8005" shutdown="SHUTDOWN">

On Windows installations using Configuration Manager for express installation of updates, a local port is also created, by default port 8005 (see Manage express installation files for Windows 10 updates), thus the conflict.

By updating Tomcat configuration file server.xml, the issue is solved, for example:

<Server port="8105" shutdown="SHUTDOWN">

-

Your friendly neighborhood Technical Architect

Pega Platform Low-Code App Development Installation and Deployment
Moderation Team has archived post
Share this page LinkedIn