Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-3839

"com.jcraft.jsch" module should have "javax.api" dependency

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • jboss-fuse-6.2.1
    • jboss-fuse-6.2.1
    • Fuse EAP
    • None
    • % %

    Description

      I found out that com.jcraft.jsch moduke requries javax.api module. Issue is reproducible if you try camel-sftp component on EAP.

      https://github.com/jboss-fuse/camel/blob/camel-2.15.1.redhat-621013/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpComponent.java#L22

      Current error:

      14:27:12,636 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC000001: Failed to start service jboss.deployment.unit."Ftp2Test.jar".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."Ftp2Test.jar".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment "Ftp2Test.jar"
      ...
      Caused by: java.lang.NoClassDefFoundError: javax/crypto/spec/SecretKeySpec
      	at com.jcraft.jsch.jce.AES128CTR.init(AES128CTR.java:56)
      ...
      Caused by: java.lang.ClassNotFoundException: javax.crypto.spec.SecretKeySpec from [Module "com.jcraft.jsch:main" from local module loader @6c9bc6a9 (finder: local module finder @670fb8f3 (roots: /home/mbasovni/apps/fuse-eap/default-fuse-eap/modules,/home/mbasovni/apps/fuse-eap/default-fuse-eap/modules/system/layers/fuse,/home/mbasovni/apps/fuse-eap/default-fuse-eap/modules/system/layers/bpms,/home/mbasovni/apps/fuse-eap/default-fuse-eap/modules/system/layers/soa,/home/mbasovni/apps/fuse-eap/default-fuse-eap/modules/system/layers/fuse-integration,/home/mbasovni/apps/fuse-eap/default-fuse-eap/modules/system/layers/base))]
      

      Attachments

        Issue Links

          Activity

            People

              jnethert@redhat.com James Netherton
              mbasovni Martin Basovnik (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: