XSL-file recreated at tomcat start?

Dear all,

We are running OC 3.6 on a windows 2008R2 server.

To copy data to another system (a Data Ware House) we need extracted datasets using the CopyXML stylesheet, in our case "C:\oc\tomcat\openclinica.data\xslt\copyXML.xsl"

Due to encoding requirements (no US-ASCII), I modified it - unfortunately unsuccesfull up to now but that's the next question.

Due to a change in C:\oc\tomcat\openclinica.config\extract.properties (successful one!) I had to restart the tomcat-service.

Guess what? It seems that all XSL-files are re-generated after restarting tomcat (datetimestamp) and indeed I have the original CopyXML.xsl back.

Since we this encoding change: is this something we prevent this happening by changing an OC-setting or a setting in one of the OC- or tomcat- configuration files?

Thanks in advance,

Hans Troost

Best Answer

  • Hans TroostHans Troost Posts: 9
    edited May 24 Accepted Answer
    Found a work-around: copied the CopyXML.xsl to something-else.xsl and modified the entry in extract.properties accordingly.

    Restarted tomcat: all xsl-files were "refreshed", except my something-else.xsl.
    And the specified extract still works!
    I can use and modify something-else.xsl for my purposes now and it will be kept.

    So for my work: this is solved, but I keep my curiosity about this behavior.

    Hans

Answers

  • tkhajatkhaja Posts: 54
    Hi Hans,

    My suggestion would be to check your webapps folder and see if you have the .war file. If yes, then you might want to stop tomcat and delete the .war file before making the changes to the CopyXML.xsl file. Please restart tomcat once you have deleted the .war file and made changes to the CopyXML.xsl file.

    Regards,
    Thasbiha
  • Hans TroostHans Troost Posts: 9
    via Email
    Thanks Thasbiha, sounds (or better: reads) as the solution. I will try tomorrow on our test-system and keep you informed.

    Best regards,
    Hans Troost

    > Op 23 mei 2017 om 21:13 heeft tkhaja het volgende geschreven:
    >
    > OpenClinica https://forums.openclinica.com/
    > tkhaja answered your question: XSL-file recreated at tomcat start?
    >
    > Hi Hans,
    >
    > My suggestion would be to check your webapps folder and see if you have the .war file. If yes, then you might want to stop tomcat and delete the .war file before making the changes to the CopyXML.xsl file. Please restart tomcat once you have deleted the .war file and made changes to the CopyXML.xsl file.
    >
    > Regards,
    > Thasbiha
    >
    > --
    > To manage your email notifications, please visit: https://www.openclinica.com/forums#/profile/preferences
    >
    > Reply to this email directly or follow the link below to check it out:
    > https://forums.openclinica.com/discussion/comment/19040#Comment_19040
    >
    > Check it out: https://forums.openclinica.com/discussion/comment/19040#Comment_19040
  • Hans TroostHans Troost Posts: 9
    Hi Tashiba,

    Just tested: unfortunately is doesn't work. XSL's are re-created depite removed war-file.

    Regards, Hans
Sign In or Register to comment.