Technical Notes |
|
This technical note explains how to identify and resolve port conflicts with the Verastream Host Integrator (VHI) Web Server (used by Web Builder in the Development Kit).
You may have a port conflict if any of the following symptoms occur:
Error creating server socket: java.net.BindException: Address already in use
Retrieving model metadata from VHIWriting project description fileGenerating JavaBeans source codeCompiling JavaBeans source codeCreating JavaBeans jar fileBuilding web applicationBuilding web application configurationDeploying web applicationError communicating with app serverjava.io.FileNotFoundException: http://localhost:8081/manager/remove?path=/sewCICSAcctsDemo at sun.net.www.protocol.http.HttpURLConnection.getInputStream( Unknown Source) at com.wrq.vhi.builder.process.TomcatManager.sendCmd(TomcatMan ager.java:429) at com.wrq.vhi.builder.process.TomcatManager.remove(TomcatMana ger.java:245) at com.wrq.vhi.builder.Main.deploy(Main.java:180) at com.wrq.vhi.builder.Main.process(Main.java:123) at com.wrq.vhi.builder.ui.Worker.run(StatusDialog.java:286) at java.lang.Thread.run(Unknown Source)Error communicating with app serverjava.io.FileNotFoundException: http://localhost:8081/manager/install?path=/sewCICSAcctsDemo&war=file:C%3A%5CProgram+Files%5CVHI%5Clib%5Cbuilder%5C..%5C..%5Ctomcat%5Cwebapps%5CsewCICSAcctsDemo at sun.net.www.protocol.http.HttpURLConnection.getInputStream( Unknown Source) at com.wrq.vhi.builder.process.TomcatManager.sendCmd(TomcatMan ager.java:429) at com.wrq.vhi.builder.process.TomcatManager.install(TomcatMan ager.java:239) at com.wrq.vhi.builder.Main.deploy(Main.java:184) at com.wrq.vhi.builder.Main.process(Main.java:123) at com.wrq.vhi.builder.ui.Worker.run(StatusDialog.java:286) at java.lang.Thread.run(Unknown Source)Precompiling JSP'sFinished |
Figure 1Tomcat welcome pageVHI installs an instance of the Apache Jakarta Tomcat web server, which is configured to run at TCP port 8081 by default. Java projects created with VHI Web Builder run under the Tomcat servlet runner.
There can, however, be other software already running at this port. For example, Network Associates' McAfee software (for anti-virus and network security) runs a web server on port 8081 by default for its "Agent Wake-Up Call" service.
If port 8081 is already in use, the VHI Web Server is not able to start. When attempting to deploy or run a web project, the URL file path is not found in the web server used by the third-party software, resulting in a "file not found" error.
Use the following steps to change the VHI Web Server port 8081 to a different unused port number. (In the steps below, nnnn represents an unused port number.)
servletcontainerport=nnnnVersion 6.0 or higher: Locate the following lines and change the port= value to the unused port number:
<!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8081 --><Connector port="nnnn" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" redirectPort="8443" acceptCount="100" debug="0" connectionTimeout="60000" disableUploadTimeout="true" /> |
Version 5.5: Locate the following lines and change the port= value to the unused port number:
<!-- Define a non-SSL HTTP/1.1 Connector on port 8081 --><Connector className="org.apache.catalina.connector.http.HttpConnector" port="nnnn" minProcessors="5" maxProcessors="75" enableLookups="true" redirectPort="8443" acceptCount="10" debug="0" connectionTimeout="60000"/> |
Note: Only the first (non-proxy) "port=" instance needs to be changed.
Version 6.5 or higher: click Start > Programs > Attachmate Verastream > Host Integrator > Services > Web Server > Restart Web Server.
Version 6.0: click Start > Programs > AttachmateWRQ Verastream > Host Integrator > Services > Web Server > Restart Web Server.
Version 5.5: click Start > Programs > WRQ Verastream > Host Integrator > Services > Web Server > Restart Web Server.
An alternative solution is to change the port number used by your other software. Refer to the documentation for your third-party software.