How to Modify Default Port of VP Server’s Content Repository

In latest version 16.0 Visual Paradigm introduced a new Form Builder feature (supported in Professional Edition or above) which allow user to create executable forms using visual editor. The designed form can go live for data collection. For on-premises Teamwork Server or local workspace (local personal server) the data collected by the forms will be stored in the local Content Repository within the server. Subject to user’s environment the default port used by Content Repository may conflict with other services on user’s computer. In case conflict was found user can change the port used by Content Repository. To change the port number of Content Repository:

    1. Shutdown VP Server or local repository.
      • If your team is using on-premises Teamwork Server which is configured to run as system service then you can stop it by stopping the system service.

        Stop VP Server service on Windows

        Stop VP Server service on Windows

      • If you using local workspace you can then simply shutdown your VP application.
    2. Go to the following folder:
      • Teamwork Server: %VP Server%/webserver/webapps/ROOT/WEB-INF/node/
      • Local workspace:
        • Windows: %localappdata%\VisualParadigm\embedded_server\VPServer\ webserver/webapps/ROOT/WEB-INF/node/
        • Linux: ~/.config/VisualParadigm/embedded_server/VPServer/webserver/webapps/ROOT/WEB-INF/node/
        • Mac: ~/Library/Application Support/VisualParadigm/embedded_server/vPServer/webserver/webapps/ROOT/WEB-INF/node/
    3. Open the content-repository.conf with a text editor.
    4. Add the following section to the file, and specify the port available in your system to be use by Content Repository.

      Define port number to be use by Content Repository

      Define port number to be use by Content Repository

    5. If your VP Server already run with modified port number then please change the vpserver URL to correct port. Save the change and close the text editor.

      Change server URL if VP Server changed to a different port

      Change server URL if VP Server changed to a different port

    6. Modify the startup script.
      • Teamwork Server
        • For VP Server on Windows start with script, or for VP server on Linux/Mac
          • Go to %VP Server%/webserver/bin to edit catalina.bat / catalina.sh
          • Locate the line set JAVA_OPTS=%JAVA_OPTS% -Xms256m -Xmx1024m and add the argument -Dcontentrepository.url=http://localhost:%port%/, replace the %port% with the port number you modified in step 4.

            Modify catalina.bat/.sh to include agrument for Content Repository port number

            Modify catalina.bat/.sh to include agrument for Content Repository port number

        • For VP Server on Windows start as system service
          • Go to %VP Server%/webserver/bin
          • Right click on vpserverw.exe and select Run as administrator.

            Run vpserverw.exe as admin

            Run vpserverw.exe as admin

          • Switch to Java tab and add -Dcontentrepository.url=http://localhost:%port%/ to Java Options. Replace the %port% with the port number you modified in step 4.

            Add Content Repository port to system service

            Add Content Repository port to system service

          • Press OK to close the VP Server Properties dialog.
      • Local workspace
        • Go to bin folder of the local server
          • Windows: %localappdata%\VisualParadigm\embedded_server\VPServer\ webserver/bin/
          • Linux: ~/.config/VisualParadigm/embedded_server/VPServer/webserver/bin/
          • Mac: ~/Library/Application Support/VisualParadigm/embedded_server/vPServer/webserver/bin/
        • Edit catalina.bat / catalina.sh
        • Locate the line set JAVA_OPTS=%JAVA_OPTS% -Xms256m -Xmx1024m and add the argument -Dcontentrepository.url=http://localhost:%port%/, replace the %port% with the port number you modified in step 4.

          Modify catalina.bat/.sh to include agrument for Content Repository port number

          Modify catalina.bat/.sh to include agrument for Content Repository port number

    7. Startup VP Server.

    Now the content repository of your VP Server will run on your modified port.

     

    Related Know-how

    Related Link

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply