download JMS API on ec2 instance

Options
soniya
soniya Member Posts: 23
edited June 2022 in Connectors & Integrations #1

Hi Team,

How to download JMS API on ec2 instance. I have follow https://solace.com/blog/integrating-solace-with-logstash/ example for the same way I tried to download the JMS API. But when I am trying to unzip it getting below message. please suggest.

unzip soljsm.zip

Archive: soljsm.zip

End-of-central-directory signature not found. Either this file is not

a zipfile, or it constitutes one disk of a multi-part archive. In the

latter case the central directory and zipfile comment will be found on

the last disk(s) of this archive.

unzip: cannot find zipfile directory in one of soljsm.zip or

soljsm.zip.zip, and cannot find soljsm.zip.ZIP, period.

Comments

  • arih
    arih Member, Employee Posts: 125 Solace Employee
    Options

    Hi @soniya ,

    If I download it now, I'll get sol-jms-10.15.0.zip and I can unzip it using 'unzip' command in my macOS:


    ari@Aris-MacBook-Pro Downloads % unzip sol-jms-10.15.0.zip And the file size should be 4.7MB.

    Archive: sol-jms-10.15.0.zip

      creating: sol-jms-10.15.0/

      creating: sol-jms-10.15.0/lib/

    ...


    I'm not familiar with the error message you shared, but could you double check the file name and size and/or try with different extractor tools if possible?

  • soniya
    soniya Member Posts: 23
    Options

    Thanks for your response.

    I am trying to download it using below command and file name is soljms.zip.

    wget https://products.solace.com/download/JMS_API -o soljms.zip.

  • soniya
    soniya Member Posts: 23
    Options

    I am getting same for sol-jms-10.15.0.zip file as well.


    unzip sol-jms-10.15.0.zip

    Archive: sol-jms-10.15.0.zip

    End-of-central-directory signature not found. Either this file is not

    a zipfile, or it constitutes one disk of a multi-part archive. In the

    latter case the central directory and zipfile comment will be found on

    the last disk(s) of this archive.

    unzip: cannot find zipfile directory in one of sol-jms-10.15.0.zip or

    sol-jms-10.15.0.zip.zip, and cannot find sol-jms-10.15.0.zip.ZIP, period.

  • marc
    marc Member, Administrator, Moderator, Employee Posts: 920 admin
    edited June 2022 #5
    Options

    Hi @soniya,

    I'm not sure why wget isn't working, but I reproduced the same issue. It works if I do curl -XGET -s https://products.solace.com/download/JMS_API -o soljms.zip. Will that work for you?

    MacBook-Pro.localdomain:/tmp$ curl -XGET -s https://products.solace.com/download/JMS_API -o soljms.zip
    MacBook-Pro.localdomain:/tmp$ unzip soljms.zip
    Archive:  soljms.zip
       creating: sol-jms-10.15.0/
       creating: sol-jms-10.15.0/lib/
       creating: sol-jms-10.15.0/samples/
       creating: sol-jms-10.15.0/samples/bin/
       creating: sol-jms-10.15.0/docs/
       creating: sol-jms-10.15.0/docs/api/
       .....
    


  • marc
    marc Member, Administrator, Moderator, Employee Posts: 920 admin
    edited June 2022 #6
    Options

    Hi @soniya,

    Actually, thanks to @amackenzie, he read the docs (I skip that part 😂) and figured out you need to use -O and not -o with wget

    Try this

    wget https://products.solace.com/download/JMS_API -O solJMS.zip

    Difference from `wget --help`

    -O,  --output-document=FILE      write documents to FILE
      -o,  --output-file=FILE          log messages to FILE
    
  • amackenzie
    amackenzie Member, Employee Posts: 260 Solace Employee
    Options

    I am sure there is a compliment in there somewhere @marc ;)

    Happy to help!

  • soniya
    soniya Member Posts: 23
    Options

    Thanks @marc . Let me try with this.