Skip to main content

Web2Publish on Windows

Introduction​

This guide provides step-by-step instructions for installing the Web2Publish application on Windows.

Prerequisites​

  • PubServer: Version 4.7.0.x
  • Knowledge requirements: Basic understanding of configuring PubServer (Autodeploy, deployment packages, Eclipse ISON plugin).

Installation Steps​

1. Download the Package from Priint WebFTP​

Depending on your PubServer version, download the corresponding Web2Publish package.
For example, for version 4.7.0, the folder is:

https://webftp.priint.com/#/priint_suite_4.7.0/publishing%20server%20add-on%20zips/latest/

Unzip the package — it contains all files required for installation.


2. Install the Web2Publish Application (Spring Boot)​

From the unzipped package, locate the JAR file (e.g., Web2Publish.4.7.x.jar).

Steps​

  1. Install the required Java SDK
    For example, version 21 is required for Web2Publish 4.7.0.

  2. Copy the JAR file to a folder on your Windows server (rename if desired).
    Example:

C:\PubServer\Web2Publish\w2p.jar
  1. Add the Spring Boot configuration file (application.properties or application.yml) to the same folder.

    • A sample file (application_sample.properties) is included in the unzipped package.

    • Update the following custom configurations:

      PropertyDescriptionExample
      pubserver.baseUrlBase URL of the PubServer. The public domain is required here.https://pubserver.com/w2p-service/
      pubserver.admin.service.baseUrlBase URL of the AdminAPI API. It should be {YOUR_PUBSERVER_DOMAIN}/AdminAPI/api/, In case the Web2Publish and PubServer are hosted in the same server, the internal IP address or domain is allowed,https://pubserver.com/AdminAPI/api/
      pubserver.w2p.service.baseUrlBase URL of the Web2Publish Service API. In case the Web2Publish and PubServer are hosted in the same server, the internal IP address or domain is allowed,https://pubserver.com/w2p-service/api/
      pubserver.w2p.appIdThe app ID configured in the PubServer AuthService for authentication.w2p
      app.pathThe application path (must be /w2p)./w2p
  2. Create a Windows Service to run the application

Open PowerShell as Administrator and run the following commands:

# Define paths
$jarPath = "C:\PubServer\Web2Publish\w2p.jar"
$configPath = "C:\PubServer\Web2Publish\application.properties"
$serviceName = "Web2Publish"

# Create a service using NSSM (recommended) or sc.exe
# Using NSSM (https://nssm.cc/)
nssm install $serviceName "C:\Program Files\Java\jdk-21\bin\java.exe" " -jar $jarPath -Dspring.config.location=file:///$configPath"
nssm start $serviceName

# Check status
nssm status $serviceName

Note: You can also use sc.exe to create a service, but NSSM is preferred for Java applications on Windows.

  1. Configure the Reverse Proxy

Refer to this guideline to determine whether a reverse proxy needs to be configured for your environment.

Note: The referenced document is for Linux but the instructions for Windows are similar. You can check this document for finding the corresponding commands for Windows.


3. Install the Web2Publish Service (PubServer Plugin)​

In order for the application to work properly, install the Web2Publish Service.

You can find it in the unzipped package as a WAR file, for example:

Web2Publish-4.7.0.x.war

Because it’s a PubServer plugin:

  • Install via the Payara Admin Console, or
  • Copy to the PubServer autodeploy folder.

Note: The context root should be w2p-service.
Update pubserver.w2p.service.baseUrl in Spring Boot if changed.


4. Update the PubServer AuthService Configuration​

  1. Locate:
C:\PubServer\Glassfish\payara6\domains\pubserver\config\AuthService\config.xml
  1. Add a new application entry:
<authService>
<apps>
<app name="priint:w2p" id="w2p" visible="true">
<uri>[W2P_HOME_PAGE]/auth/callback?sessionId={sessionId}</uri>
<sessionCookieName>web2PublishSessionId</sessionCookieName>
</app>
</apps>
</authService>

Note: Please replace [DATA-W2P_HOME_PAGE] with your server information, such as: https://priintsuite.com/w2p

  1. If the file does not exist, follow this guide to create it.

5. Add and Update the ISON Configuration File​

All features of the Web2Publish application are configurable through an ISON configuration file, which can be managed in PubServer using the ISON plugin.

Please refer to the sample file and the full explanation of all configuration options here: Sample Configuration

Then, update the configuration according to your specific requirements.

If you encounter any issues during setup, please contact our support team at support@priint.com.