How do I change the default Web Server port '8080' for HTTP in Polyspace?

41 views (last 30 days)
I would like to know how to change the default Web server port number '8080'.
I checked the port by monitoring TCP connections on my machine with the utility called TCPView from Microsoft at the following link.
I do not see any processes are currently using a Local Port of 8080. But I get the error ‘HTTP 404 “File not found” in my browser when trying to open Polyspace Metrics web interface.
Here is my catalina.out (Tomcat web server log file) contains the following error messages:
ERROR:
SEVERE: Error starting endpoint
java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind
SEVERE: Catalina.start
LifecycleException: service.getName(): "Catalina"; Protocol handler start failed: java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 24 Jun 2021
Edited: MathWorks Support Team on 24 Jun 2021
To change the default Web server port number '8080', please follow the next steps.
1. Open the Client Graphical User Interface (or PVE)
2. Select Options > Preferences to open the Polyspace Preferences dialog box.
3. Select the Server configuration tab.
4. In the Web server port number field, specify the port number for the Web server.
5. Press OK to set the Polyspace new preferences
According to the changed web server port number of Polyspace Client, the same value must be manually configured for the Queue Manager.
6. In <Polyspace_Common>/../Polyspace_RLDatas/tomcat/conf/server.xml, match the port attribute of the Connector element to the value of the Web Server port number of Polyspace Client:
<?xml version="1.0" encoding="UTF-8"?>
<Server port="8005" shutdown="SHUTDOWN">
<Service name="Catalina">
<Connector port="8080"/>
<Engine name="Catalina" defaultHost="localhost">
<Host name="localhost"
appBase="C:\Polyspace\Polyspace_Common\RemoteLauncher\lib\
apache-tomcat-5.5.28\webapps"/>
</Engine>
</Service>
</Server>

More Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Tags

No tags entered yet.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!