Problem Description
In Windows®:
I have a COMSOL Server™ License with LiveLink™ for MATLAB®. When attempting to launch LiveLink™ for MATLAB® using the desktop icon COMSOL Server 5.3 with MATLAB, COMSOL Server™ starts listening correctly to a port, but MATLAB® cannot establish a connection to the server and shows the following error message:
Failed to connect to server
Bad response status 404 Not Found
In Linux® and macOS:
I have a COMSOL Server™ License with LiveLink™ for MATLAB®. When attempting to launch LiveLink™ for MATLAB® using the command comsol appserver matlab
, COMSOL Server™ starts listening correctly to a port, but MATLAB® cannot establish a connection to the server and shows the following error message:
Failed to connect to server
Bad response status 404 Not Found
Solution
To resolve this issue you will need to replace a file in the COMSOL Server™ installation directory. The procedure is as follows:
Make sure you are using COMSOL Server™ 5.3 Update 3 (Build: 316). If you need to install the update, please go to https://www.comsol.com/product-update/5.3 and follow the instructions under Updating COMSOL Server™. This page also contains instructions on how to check which version of COMSOL Server™ you are running.
Before you proceed, make sure to stop any running COMSOL Server™ processes:
In Windows®: Stop the server by either typing
close
, if COMSOL Server™ is running in a command window, or by running the Stop COMSOL Server shortcut from the COMSOL Launchers folder in the Start menu, if COMSOL Server™ is installed as a Windows® service.In Linux®: If you configured COMSOL Server™ using the
systemd
service, stop it by typingsystemctl stop comsolserver53
; otherwise, kill the COMSOL Server™ process.In macOS: Kill the COMSOL Server™ process.
Replacing the file:
In Windows®:
After updating COMSOL Server™ to version 5.3 Update 2, download the file
com.comsol.webbridge.jar
found under Related Files below and use it to replace the file with the same name in the directoryC:\Program Files\COMSOL\COMSOL53\Server\bin\servers\webbridge\webapps\webbridge\WEB-INF\lib
or any other installation directory replacingC:\Program Files\COMSOL\COMSOL53\Server
in the path. To move the file to the directory you need administrative privileges. You will need to confirm moving the file by approving it.In Linux®:
After updating COMSOL Server™ to version 5.3 Update 2, download the file
com.comsol.webbridge.jar
found under Related Files below and use it to replace the file with the same name in the directory/usr/local/comsol/comsol53/server/bin/servers/webbridge/webapps/webbridge/WEB-INF/lib
or any other installation directory replacing/usr/local/comsol/comsol53/server
in the path. To move the file to the directory you need root privileges.In macOS:
After updating COMSOL Server™ to version 5.3 Update 2, download the file
com.comsol.webbridge.jar
found under Related Files below and use it to replace the file with the same name in the directory/Applications/comsol/comsol53/server/bin/servers/webbridge/webapps/webbridge/WEB-INF/lib
or any other installation directory replacing/Applications/comsol/comsol53/server
in the path. To move the file to the directory you need root privileges.Start COMSOL Server™ again.
In Windows®: Start COMSOL Server™ by using the COMSOL Server shortcut in the Start menu. Alternatively, if COMSOL Server™ was installed as a Windows® service, start it by using the Start COMSOL Server shortcut.
In Linux®: If you configured COMSOL Server™ using the
systemd
service, start it by typingsystemctl start comsolserver53
; otherwise, type
to start COMSOL Server™./bin/comsol server
An example of a typical
is/usr/local/comsol53/server
In macOS: Type
to start COMSOL Server™. An example of a typical/bin/comsol server
is/Applications/COMSOL53/Server
Related Files
com.comsol.webbridge.jar | 72 KB |
Recherche par catégorie
Messages d'erreur (65)Import (10)
Géométrie (14)
Physiques (10)
Solveur (35)
Installation (40)
Maillage (14)
Général (35)
Mécanique des structures (2)
Mécanique des fluides (1)
Post-traitement (4)
Export (1)
Dessin (1)
Informations produit (6)
Multiphysique (1)
Modèles utilisateurs (1)
Electromagnétisme (1)
COMSOL makes every reasonable effort to verify the information you view on this page. Resources and documents are provided for your information only, and COMSOL makes no explicit or implied claims to their validity. COMSOL does not assume any legal liability for the accuracy of the data disclosed. Any trademarks referenced in this document are the property of their respective owners. Consult your product manuals for complete trademark details.