4 Replies Latest reply on Dec 28, 2017 2:18 PM by van.halbert

    Ftp/Ftps Data Sources not working using CLI.

    kulbhushanc

      Hi,

       

      I am using Teiid 9.3.5 and WildFly 11.0.0.

      I am trying to connect FTP as Datasource using CLI command, Ref Link: https://teiid.gitbooks.io/documents/content/admin/Ftp_Data_Sources.html but when I am getting error when executing command:

       

      > /subsystem=resource-adapters/resource-adapter=ftp/connection-definitions=ftpDS/config-properties=Port:add(value=${21}")

      {

          "outcome" => "failed",

          "failure-description" => "WFLYCTL0155: class-name may not be null",

          "rolled-back" => true

      }

       

      Thanks,

      Kulbhushan Chaskar.

        • 1. Re: Ftp/Ftps Data Sources not working using CLI.
          van.halbert

          Before you ran the CLI commands, did you enable this property:  <resolve-parameter-values>false</resolve-parameter-values>

          in the jboss-cli.xml file so that the parameters, like ${jndi.name}, can be resolved?

          • 2. Re: Ftp/Ftps Data Sources not working using CLI.
            rareddy

            You are missing class name property. You need provide all properties from the link you specified above in the Java code. The Java code you are writing is exactly writing same properties as the CLI properties defined on the link.

            • 3. Re: Ftp/Ftps Data Sources not working using CLI.
              kulbhushanc

              Ramesh/Van

               

              I am not using any java code to set these configurations. I am trying to set those only through CLI if I am able to set the things using CLI then I can go with java implementation of it.

              I tried setting <resolve-parameter-values>false</resolve-parameter-values> i.e. <resolve-parameter-values>false</resolve-parameter-values> changed to <resolve-parameter-values>true</resolve-parameter-values> but I am still getting same error.

               

              /subsystem=resource-adapters/resource-adapter=ftp/connection-definitions=ftpDS/config-properties=Port:add(value=${21}")

              {

                  "outcome" => "failed",

                  "failure-description" => "WFLYCTL0155: class-name may not be null",

                  "rolled-back" => true

              }

              • 4. Re: Ftp/Ftps Data Sources not working using CLI.
                van.halbert

                Did you try running the cli script from the command line using the following example command:

                 

                ./jboss-cli.sh -c --file=create-file-ds.cli   --properties=create-file-ds.properties

                 

                This is the example in the docs/teiid/datasources/file.  If you don't wish to use the -properties option, update the create-file-ds.cli script with the corresponding property values.