Thank you for being a valued client of CM First Group. If you have any technical issues or concerns, please open a ticket on support.cmfirstgroup.com, email CM First technical support at support@cmfirstgroup.com or call us on our 24/7 customer hotline at +1 (512) 623-7586.

Follow

Deploying CM WebClient with Websydian Express for Java

Introduction

The Websydian Express Proxy for Java (Wxp4J) is an implementation of Websydian Express where all business logic, including Websydian Express system functions, business processes, and CM WebClient functions, run inside of a Java EE-compliant servlet container. In this mode, all Plex functions are generated for the Java platform, and deployed to a web application archive (WAR) file.

back to top

Complete Steps 3 – 11 of Section 4

  1. Create a new Java project.
  2. Import PlexBuild project.
  3. Setup PlexBuild run configuration.
  4. Configure build.properties file in PlexBuild project.
  5. Run PlexBuild in Eclipse.
  6. Import WebClient project.
  7. Add WebClientDWA.jar and WxpServletProxy.jar to your WebClient build path/folder.
  8. Configure java project.
  9. Configure obclient.properties.
  10. Generate web template.

back to top

Import the Express30.war File

  1. FileImport → Expand Web folder → Select WAR file → Click Next >
  2. Browse to express30.war directory. Click Finish.

 

back to top

Configure J2eeProxy.properties

The file is saved in express30/WebContent/WEB-INF.
websydianserver.log.file=, servlet.log.file=, and websydianserver.licensefilepath= should be configured based on your settings.

# -------------------------------------------------------------------------------------------------
websydianserver.log.level=ERROR

websydianserver.log.file=C:/Websydian/Express v3.0 for Java/logs/websydianserver.log

servlet.log.level=ERROR
servlet.log.file=C:/Websydian/Express v3.0 for Java/logs/J2eeproxy.log

websydianserver.licensefilepath=C:/Websydian/Express v3.0 for Java/license/license.key

###########################################################

You can find a sample J2eeProxy.properties file at the Download section of: CMFirst Software and Documentation

back to top

Add WebClient.properties to Express30 Project

Copy WebClient.properties to express30/src folder.

back to top

Configure WebClient.properties.

log4j.appender.WebClientServlet.file should be configured based on your settings.

You can find a sample of a websydian WebClient.properties file at: CMFirst Software and Documentation

back to top

Configure obusr.properties.

Make sure you configure the following properties according to your settings.

# Current connection information
#-----------------------------------------------------------------------------------------

Environment.Default.Driver=net.sourceforge.jtds.jdbc.Driver
Environment.Default.DataSource=jdbc:jtds:sqlserver://localhost:1433/Web sydianExpress30
Environment.Default.User=myusername
Environment.Default.Password=mypassword

# Current database connection configuration
#-----------------------------------------------------------------------------------------

Environment.Default.DBCon.WebsydianExpress.Driver=net.sourceforge.jtds. jdbc.Driver
Environment.Default.DBCon.WebsydianExpress.DataSource=jdbc:jtds:sqlserver://localhost:1433/WebsydianExpress30
Environment.Default.DBCon.WebsydianExpress.User=myusername
Environment.Default.DBCon.WebsydianExpress.Password=mypassword

back to top

Configure express30 project.

  1. Add your java project to express30 project.
    Right-click on express30 → Select Properties → Select Deployment Assembly → Click Add → Select Project → Click Next > → Select your java project → Click Finish.

  2. Configure web.xml file under express30/WebContent/WEB-INF. Open your web.xml with text editor and modify it so that it looks like the following.




    WebsydianExpress v3.0 for Java
    WebsydianExpress v3.0 for Java

    WebsydianExpress30
    com.adcaustin.WebClient.servlet.WxpProxy
    servlet.propertyfile


    WebClientServlet
    WebClientServlet

    com.adcaustin.WebClient.servletproxy.WebClientServlet


    WebsydianExpress30
    /site/*


    WebClientServlet
    /WebClientServlet

     

  3. Copy your images folder to express30/WebContent

back to top

Configure Websydian Express Admin site.

  1. Go to http://localhost:8080/express30/site/basicsite/admin Login as username: WSADMIN and password: ADMIN

  2. Add business process
    Expand Content loaders → Select Business Processes → Click Insert → Enter
    Name: myProgram, Program name:PlexImplementationName, and description – Create default presentation should be checked → Click Insert.

  3. Add the business process to the site structure
    Expand Site structure → Select site structure → Select MENU – Menu Loader → Click Add button → Select Create a new site element and select business process for Type of Site Element → Click Next → Select your business process → Enter Menu item text, alignment, sequence and display in frame (Please refer to Websydian Express help for details) → Select Next → Select the roles that can access the site element → Click Finish.

  4. Add Java Packages.
    Expand Global settings → Select Java Packages → Click Insert → Enter package name → Select Insert.

  5. Set the path for images.
    Expand Template → Select Folders → Click Insert → Enter the fields as follows.

back to top

Run CM WebClient application

Go to http://localhost:8080/express30/site/basicsite
Based on your application setting, you either need to login to run the application or run it anonymously.

back to top

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk