Maximo

Maximo

Come for answers, stay for best practices. All we're missing is you.

 View Only
Expand all | Collapse all

running an .hta file from within Maximo ear

  • 1.  running an .hta file from within Maximo ear

    Posted Tue February 23, 2021 12:26 AM

    Hi, I have a peculiar issue I am current troubleshooting. In addition to Maximo, we maintain some legacy mobile software (developed in house about 15 years ago) for customers who track nuclear materials.

    One of our software components is a small HTA file that's basically a dialog with 4 buttons on it, launched from an EXE on a user's computer where their hand held terminals are docked. The HTA file resides in a custom directory in the maximo /webclient directory, and is built into the Maximo ear. When the local EXE kicks off the HTA, it does so via HTTP (or HTTPS, if the user is running SSL).

    Prior to Maximo 7.6.1.x, this HTA ran perfectly (going all the way back to Maximo 5.x). However, we are currently upgrading this customer to Maximo 7.6.1.2, and now, instead of kicking off the HTA and showing the small dialog with 4 buttons on it, we get a pop up that just shows the contents of the HTA file (source code).

    This code has been pulled forward from previous Maximo versions with no changes. Web Server has been ruled out (it does the same thing with WebSphere and WebLogic). The only difference is Maximo 7.6.0.x vs 7.6.1.x.

    Could this be Maximo causing this, or should I be looking elsewhere. does anyone have any ideas I might have overlooked?

    Thanks in advance!!






    #AssetandFacilitiesManagement
    #Maximo
    #Support
    #SupportMigration


  • 2.  RE: running an .hta file from within Maximo ear

    Posted Tue February 23, 2021 10:55 PM

    Without knowing your environment nor the diagnostic details, I am taking a stab in the dark. Since .HTA is HTML application from Microsoft, I imagine it has to be run from Internet Explorer 11? I would also look at the MIME type: https://www.ibm.com/support/pages/setting-server-mime-types-common-file-formats

    This tells WebSphere (or IBM HTTP Server, a fork of Apache basically) how to handle the file extension. If you recently upgraded WebSphere and/or IBM HTTP Server and didn't migrate the profile from an earlier versions, some customizations or former defaults may not have carried over.

    I don't know if my suggestion applies to you, but that's been my experience when source code or plain text of the file appears instead of executing the code.






    #AssetandFacilitiesManagement
    #SupportMigration
    #Maximo
    #Support


  • 3.  RE: running an .hta file from within Maximo ear

    Posted Wed February 24, 2021 01:01 PM

    Thanks for the information. I thought I had already checked the MIME types for WebSphere but I will double-check those. Just to confirm, those are stored in the "mime.types" file located at IBM\HTTPServer\conf? Or am I looking in the wrong place?

    I will also check the WebSphere versions to make sure they are the same. I've assume they are the same up to this point, but i'm not 100% sure that's true.

    Again, thanks for your reply and information!

    Regards,

    Brad






    #Maximo
    #Support
    #AssetandFacilitiesManagement
    #SupportMigration