TIBCO MFT Command Center and Internet Server Struts 2.5.20 files are not deleted by SPMFT832

TIBCO MFT Command Center and Internet Server Struts 2.5.20 files are not deleted by SPMFT832

book

Article ID: KB0072029

calendar_today

Updated On:

Products Versions
TIBCO Managed File Transfer Command Center 8.3.2

Description

When upgrading TIBCO MFT Command Center or Internet Server from 8.3.0 with any hot fix level to TIBCO MFT Command Center or Internet Server Service Pack 8.3.2 (ie SPMFT832), the installation procedure failed with a "Connect response code: 404" error.  

[log:   _=/opt/tibco/app/jdk/openjdk-8u332-b09/bin/java]
[log:   cmd: /bin/sh startup.sh]
[log:   Try 0 to contact to the application server]
[log:   Blank URL: https://127.0.0.1:7443/cfcc/blank.html]
[log:   About to connect]
[log:   Connect response code: 404]
[log:   Try 1 to contact to the application server]
[log:   Blank URL: https://127.0.0.1:7443/cfcc/blank.html]
[log:   About to connect]
[log:   Connect response code: 404]
[log:   Try 2 to contact to the application server]
[log:   Blank URL: https://127.0.0.1:7443/cfcc/blank.html]
[log:   About to connect]
[log:   Connect response code: 404]
[log:   Try 3 to contact to the application server]
[log:   Blank URL: https://127.0.0.1:7443/cfcc/blank.html]
[log:   About to connect]
[log:   Connect response code: 404]
[log:   Try 4 to contact to the application server]
[log:   Blank URL: https://127.0.0.1:7443/cfcc/blank.html]
[log:   About to connect]
[log:   Connect response code: 404]
[FAILED]
[log:   Reached max tries]
An error has occurred when trying to connect to the server.
Please see the installation log for details.
It is recommended that you resolve this problem before proceeding.
Do you wish to continue? y/n/? [?] [log:        n]

Installation failed!  Details are in the install.log file.

The reason of the response code 404 is that MFT Command Center server is not started correctly due to the exception below:

ERROR Dispatcher Dispatcher initialization failed
 Unable to load configuration. - bean - jar:file:/opt/tibco/mft830_832/IS/server/webapps/cfcc/WEB-INF/lib/struts2-core-2.5.30.jar!/struts-default.xml:90:72
        at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69)
        at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:957)
        at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:463)
        at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:496)
        at org.apache.struts2.dispatcher.InitOperations.initDispatcher(InitOperations.java:73)
        at org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:61)
        at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:272)
.....
        at org.apache.catalina.core.StandardService.startInternal(StandardService.java:432)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
        at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:927)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:772)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:345)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:476)
Caused by: Unable to load bean: type: class:com.opensymphony.xwork2.ObjectFactory - bean - jar:file:/opt/tibco/mft830_832/IS/server/webapps/cfcc/WEB-INF/lib/struts2-core-2.5.30.jar!/struts-default.xml:90:72
        at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:274)
        at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:98)
        at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:167)
        at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)
        ... 49 more
Caused by: Bean type class com.opensymphony.xwork2.ObjectFactory with the name struts has already been loaded by bean - jar:file:/opt/tibco/mft830_832/IS/server/webapps/cfcc/WEB-INF/lib/struts2-core-2.5.20.jar!/struts-default.xml:69:72 - bean - jar:file:/opt/tibco/mft830_832/IS/server/webapps/cfcc/WEB-INF/lib/struts2-core-2.5.30.jar!/struts-default.xml:90:72
        at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:260)
        ... 52 more
29-Jun-2022 17:54:17.921 SEVERE [main] org.apache.catalina.core.StandardContext.startInternal One or more Filters failed to start. Full details will be found in the appropriate container log file


The above exception is thrown due to old struts files in <MFT Command Center Install>/server/webapps/cfcc/WEB-INF/lib that was not deleted by TIBCO MFT Command Center or Internet Server Service Pack installation.
 

Environment

All supported environments

Resolution

To resolve this installation failure, you can apply one of the two below workarounds.
-Workaround 1:  Install TIBCO MFT Command Center or Internet Server 831 Service Pack (ie SPMFT831) and then TIBCO MFT Command Center or Internet Server 832 Service Pack  SPMFT832
1) Install SPMFT831
2) Install SPMFT832 

-Workaround 2: Delete old STRUTS jar files before installing SPMFT832
1) Move or delete these files in directory: <MFT Command Center Install>/server/webapps/cfcc/WEB-INF/lib
 -struts2-core.*
  -struts2-tiles.*
2) Run the SPMFT832 install.

 

Issue/Introduction

TIBCO MFT Command Center and Internet Server SPMFT832 does not remove Struts 2.* files.