Uploaded image for project: 'AppFormer'
  1. AppFormer
  2. AF-651

Error when uploading a JAR file in KIE-Workbench

    XMLWordPrintable

Details

    • NEW
    • NEW

    Description

      Based on what Esteban Aliverti said , I created a Maven project in Eclipse which implements EventListeners. Those send insert requests to MySQL and Apache Cassandra when there is a rule match.

      I generated a JAR with Eclipse (Run As...> Maven Build) and I use kie-maven-plugin. Then I try to upload the obtained JAR in KIE Workbench (Artifact repository > Upload) but it fails...
      Precision: KIE Workbench and KIE Server are on two separated wildfly instances (I configured a settings.xml file on KIE Server).

      Here is the logs when I try to upload the JAR:

      2016-04-12 13:50:02,038 ERROR [io.undertow.request] (default task-1) UT005023: E xception handling request to /kie-wb/maven2wb: java.lang.RuntimeException: org.e clipse.aether.installation.InstallationException: Failed to install artifact org :mavenProjet:jar:1.0.0-SNAPSHOT: /home/wildfly/.m2/repository/org/mavenProjet/1. 0.0-SNAPSHOT/mavenProjet-1.0.0-SNAPSHOT.jar (Aucun fichier ou dossier de ce type )
      at org.guvnor.m2repo.backend.server.GuvnorM2Repository.deployArtifact(Gu vnorM2Repository.java:346) [guvnor-m2repo-editor-backend-6.3.0.Final.jar:6.3.0.F inal]
      at org.guvnor.m2repo.backend.server.GuvnorM2Repository.deployArtifact(Gu vnorM2Repository.java:177) [guvnor-m2repo-editor-backend-6.3.0.Final.jar:6.3.0.F inal]
      at org.guvnor.m2repo.backend.server.M2RepoServiceImpl.deployJar(M2RepoSe rviceImpl.java:52) [guvnor-m2repo-editor-backend-6.3.0.Final.jar:6.3.0.Final]
      at org.guvnor.m2repo.backend.server.M2RepoServiceImpl$Proxy$_$$_WeldClie ntProxy.deployJar(Unknown Source) [guvnor-m2repo-editor-backend-6.3.0.Final.jar: 6.3.0.Final]
      at org.guvnor.m2repo.backend.server.helpers.HttpPostHelper.uploadJar(Htt pPostHelper.java:166) [guvnor-m2repo-editor-backend-6.3.0.Final.jar:6.3.0.Final]
      at org.guvnor.m2repo.backend.server.helpers.HttpPostHelper.upload(HttpPo stHelper.java:120) [guvnor-m2repo-editor-backend-6.3.0.Final.jar:6.3.0.Final]
      at org.guvnor.m2repo.backend.server.helpers.HttpPostHelper.handle(HttpPo stHelper.java:60) [guvnor-m2repo-editor-backend-6.3.0.Final.jar:6.3.0.Final]
      at org.guvnor.m2repo.backend.server.M2Servlet.doPost(M2Servlet.java:58) [guvnor-m2repo-editor-backend-6.3.0.Final.jar:6.3.0.Final]
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) [jboss-s ervlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [jboss-s ervlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]
      at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHand ler.java:85) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]
      at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(F ilterHandler.java:130) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]
      at org.uberfire.ext.security.server.SecureHeadersFilter.doFilter(SecureH eadersFilter.java:53) [uberfire-servlet-security-0.7.3.Final.jar:0.7.3.Final]
      at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60 ) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]
      at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(F ilterHandler.java:132) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]
      at org.uberfire.ext.security.server.SecurityIntegrationFilter.doFilter(S ecurityIntegrationFilter.java:45) [uberfire-servlet-security-0.7.3.Final.jar:0.7 .3.Final]
      at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60 ) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]
      at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(F ilterHandler.java:132) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]
      at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandle r.java:85) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]
      at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.hand leRequest(ServletSecurityRoleHandler.java:61) [undertow-servlet-1.1.0.Final.jar: 1.1.0.Final]
      at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest( ServletDispatchingHandler.java:36) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final ]
      at org.wildfly.extension.undertow.security.SecurityContextAssociationHan dler.handleRequest(SecurityContextAssociationHandler.java:78)
      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateH andler.java:43) [undertow-core-1.1.0.Final.jar:1.1.0.Final]
      at io.undertow.servlet.handlers.security.SSLInformationAssociationHandle r.handleRequest(SSLInformationAssociationHandler.java:131) [undertow-servlet-1.1 .0.Final.jar:1.1.0.Final]
      at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandle r.handleRequest(ServletAuthenticationCallHandler.java:56) [undertow-servlet-1.1. 0.Final.jar:1.1.0.Final]
      at io.undertow.server.handlers.DisableCacheHandler.handleRequest(Disable CacheHandler.java:33) [undertow-core-1.1.0.Final.jar:1.1.0.Final]
      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateH andler.java:43) [undertow-core-1.1.0.Final.jar:1.1.0.Final]
      at io.undertow.security.handlers.AuthenticationConstraintHandler.handleR equest(AuthenticationConstraintHandler.java:51) [undertow-core-1.1.0.Final.jar:1 .1.0.Final]
      at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRe quest(AbstractConfidentialityHandler.java:45) [undertow-core-1.1.0.Final.jar:1.1 .0.Final]
      at io.undertow.servlet.handlers.security.ServletConfidentialityConstrain tHandler.handleRequest(ServletConfidentialityConstraintHandler.java:63) [underto w-servlet-1.1.0.Final.jar:1.1.0.Final]
      at io.undertow.servlet.handlers.security.ServletSecurityConstraintHandle r.handleRequest(ServletSecurityConstraintHandler.java:56) [undertow-servlet-1.1. 0.Final.jar:1.1.0.Final]
      at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleR equest(AuthenticationMechanismsHandler.java:58) [undertow-core-1.1.0.Final.jar:1 .1.0.Final]
      at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandl er.handleRequest(CachedAuthenticatedSessionHandler.java:70) [undertow-servlet-1. 1.0.Final.jar:1.1.0.Final]
      at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(Se curityInitialHandler.java:76) [undertow-core-1.1.0.Final.jar:1.1.0.Final]
      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateH andler.java:43) [undertow-core-1.1.0.Final.jar:1.1.0.Final]
      at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.han dleRequest(JACCContextIdHandler.java:61)
      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateH andler.java:43) [undertow-core-1.1.0.Final.jar:1.1.0.Final]
      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateH andler.java:43) [undertow-core-1.1.0.Final.jar:1.1.0.Final]
      at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest (ServletInitialHandler.java:261) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]
      at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(Se rvletInitialHandler.java:247) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]
      at io.undertow.servlet.handlers.ServletInitialHandler.access$000(Servlet InitialHandler.java:76) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]
      at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(Se rvletInitialHandler.java:166) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]
      at io.undertow.server.Connectors.executeRootHandler(Connectors.java:197) [undertow-core-1.1.0.Final.jar:1.1.0.Final]
      at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:7 59) [undertow-core-1.1.0.Final.jar:1.1.0.Final]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor. java:1142) [rt.jar:1.8.0_77]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor .java:617) [rt.jar:1.8.0_77]
      at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_77]
      Caused by: org.eclipse.aether.installation.InstallationException: Failed to inst all artifact org:mavenProjet:jar:1.0.0-SNAPSHOT: /home/wildfly/.m2/repository/or g/mavenProjet/1.0.0-SNAPSHOT/mavenProjet-1.0.0-SNAPSHOT.jar (Aucun fichier ou do ssier de ce type)
      at org.eclipse.aether.internal.impl.DefaultInstaller.install(DefaultInst aller.java:286) [aether-impl-1.0.0.v20140518.jar:]
      at org.eclipse.aether.internal.impl.DefaultInstaller.install(DefaultInst aller.java:201) [aether-impl-1.0.0.v20140518.jar:]
      at org.eclipse.aether.internal.impl.DefaultInstaller.install(DefaultInst aller.java:158) [aether-impl-1.0.0.v20140518.jar:]
      at org.eclipse.aether.internal.impl.DefaultRepositorySystem.install(Defa ultRepositorySystem.java:406) [aether-impl-1.0.0.v20140518.jar:]
      at org.guvnor.m2repo.backend.server.GuvnorM2Repository.deployArtifact(Gu vnorM2Repository.java:343) [guvnor-m2repo-editor-backend-6.3.0.Final.jar:6.3.0.F inal]
      ... 46 more
      Caused by: java.io.FileNotFoundException: /home/wildfly/.m2/repository/org/maven Projet/1.0.0-SNAPSHOT/mavenProjet-1.0.0-SNAPSHOT.jar (Aucun fichier ou dossier d e ce type)
      at java.io.FileOutputStream.open0(Native Method) [rt.jar:1.8.0_77]
      at java.io.FileOutputStream.open(FileOutputStream.java:270) [rt.jar:1.8. 0_77]
      at java.io.FileOutputStream.<init>(FileOutputStream.java:213) [rt.jar:1. 8.0_77]
      at java.io.FileOutputStream.<init>(FileOutputStream.java:162) [rt.jar:1. 8.0_77]
      at org.eclipse.aether.internal.impl.DefaultFileProcessor.copy(DefaultFil eProcessor.java:152) [aether-impl-1.0.0.v20140518.jar:]
      at org.eclipse.aether.internal.impl.DefaultFileProcessor.copy(DefaultFil eProcessor.java:136) [aether-impl-1.0.0.v20140518.jar:]
      at org.eclipse.aether.internal.impl.DefaultInstaller.install(DefaultInst aller.java:273) [aether-impl-1.0.0.v20140518.jar:]
      ... 50 more

      Any ideas? I have others projects (connection to a queue of RabbitMQ an insert facts in drools) to import in KIE Workbench. If it is the same case for others JARs, it will be a big problem...

      I attached my JAR.

      Thanks in advance,
      Regards

      Attachments

        Activity

          People

            Unassigned Unassigned
            dagostinolucas_jira Lucas Lucas (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: