6 Replies Latest reply on Dec 19, 2013 4:36 AM by rdeveloper87

    org.kie.scanner.embedder.MavenEmbedderException: Failed to read artifact descriptor

    rdeveloper87 Newbie

      Hi,

       

      I am trying to deploy a kjar whose pom dependency refers to a service and data models from another project.

      This project has been packaged as a jar and has been added in the directory of runtime jars on my local KIE workbench setup.

       

      The following is what i have done:

      1. added the jar --  ep3m-data-service-impl-MySQL-1.0-SNAPSHOT.jar to the directory \jbpm-installer\runtime\lib.

      2. Then i built my kjar module on the workbench.

      3. The maven dependency is given as:

      <dependency>

        <groupId>com.cis.ep3m.services.data.impl.mysql</groupId>

        <artifactId>ep3m-data-service-impl-MySQL</artifactId>

        <version>1.0-SNAPSHOT</version>

        </dependency>

       

      4. I got the following exception in the logs.

       

      5. Similarly I also tried uploading the jars into the maven guvnor repository from KIE console.

      Then too i get an exception.

       

       

      19:45:17,021 WARN  [org.drools.compiler.kproject.xml.PomModel] (http-localhost-127.0.0.1-8080-1) Error generated by the maven pom parser, falling back to the internal one: java.lang.RuntimeException: org.kie.scanner.embedder.MavenEmbedderException: Failed to read artifact descriptor for com.cis.ep3m.services.data.impl.mysql:ep3m-data-service-impl-MySQL:jar:1.0-SNAPSHOT

      .

      .

      .

      Caused by: org.sonatype.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for com.cis.ep3m.services.data.impl.mysql:ep3m-data-service-impl-MySQL:jar:1.0-SNAPSHOT

      at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:296) [maven-aether-provider-3.0.5.jar:3.0.5]

      at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:186) [maven-aether-provider-3.0.5.jar:3.0.5]

      at org.sonatype.aether.impl.internal.DefaultDependencyCollector.process(DefaultDependencyCollector.java:412) [aether-impl-1.13.1.jar:]

      at org.sonatype.aether.impl.internal.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:240) [aether-impl-1.13.1.jar:]

      at org.sonatype.aether.impl.internal.DefaultRepositorySystem.collectDependencies(DefaultRepositorySystem.java:308) [aether-impl-1.13.1.jar:]

      at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:150) [maven-core-3.0.5.jar:3.0.5]

      at org.apache.maven.project.DefaultProjectBuilder.resolveDependencies(DefaultProjectBuilder.java:196) [maven-core-3.0.5.jar:3.0.5]

      at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:169) [maven-core-3.0.5.jar:3.0.5]

      at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:108) [maven-core-3.0.5.jar:3.0.5]

      at org.kie.scanner.embedder.MavenEmbedder.readProject(MavenEmbedder.java:329) [kie-ci-6.0.0.Final.jar:6.0.0.Final]

      ... 58 more

      Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Failure to transfer com.cis.ep3m.services.data.impl.mysql:ep3m-data-service-impl-MySQL:pom:1.0-20131127.075014-1 from http://127.0.0.1:8080/jbpm-console/maven2/ was cached in the local repository, resolution will not be reattempted until the update interval of guvnor-m2-repo has elapsed or updates are forced. Original error: Could not transfer artifact com.cis.ep3m.services.data.impl.mysql:ep3m-data-service-impl-MySQL:pom:1.0-20131127.075014-1 from/to guvnor-m2-repo (http://127.0.0.1:8080/jbpm-console/maven2/): Access denied to: http://127.0.0.1:8080/jbpm-console/maven2/com/cis/ep3m/services/data/impl/mysql/ep3m-data-service-impl-MySQL/1.0-SNAPSHOT/ep3m-data-service-impl-MySQL-1.0-20131127.075014-1.pom (401)

      at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538) [aether-impl-1.13.1.jar:]

      at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216) [aether-impl-1.13.1.jar:]

      at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:193) [aether-impl-1.13.1.jar:]

      at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:281) [maven-aether-provider-3.0.5.jar:3.0.5]

      ... 67 more

      Caused by: org.sonatype.aether.transfer.ArtifactTransferException: Failure to transfer com.cis.ep3m.services.data.impl.mysql:ep3m-data-service-impl-MySQL:pom:1.0-20131127.075014-1 from http://127.0.0.1:8080/jbpm-console/maven2/ was cached in the local repository, resolution will not be reattempted until the update interval of guvnor-m2-repo has elapsed or updates are forced. Original error: Could not transfer artifact com.cis.ep3m.services.data.impl.mysql:ep3m-data-service-impl-MySQL:pom:1.0-20131127.075014-1 from/to guvnor-m2-repo (http://127.0.0.1:8080/jbpm-console/maven2/): Access denied to: http://127.0.0.1:8080/jbpm-console/maven2/com/cis/ep3m/services/data/impl/mysql/ep3m-data-service-impl-MySQL/1.0-SNAPSHOT/ep3m-data-service-impl-MySQL-1.0-20131127.075014-1.pom (401)

      at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:237) [aether-impl-1.13.1.jar:]

      at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:216) [aether-impl-1.13.1.jar:]

      at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:427) [aether-impl-1.13.1.jar:]

      ... 70 more




       


      Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Failure to transfer com.cis.ep3m:ep3m-base:pom:1.0-20131210.055932-2 from http://127.0.0.1:8080/jbpm-console/maven2/ was cached in the local repository, resolution will not be reattempted until the update interval of guvnor-m2-repo has elapsed or updates are forced. Original error: Could not transfer artifact com.cis.ep3m:ep3m-base:pom:1.0-20131210.055932-2 from/to guvnor-m2-repo (http://127.0.0.1:8080/jbpm-console/maven2/): Access denied to: http://127.0.0.1:8080/jbpm-console/maven2/com/cis/ep3m/ep3m-base/1.0-SNAPSHOT/ep3m-base-1.0-20131210.055932-2.pom (401)

        at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538) [aether-impl-1.13.1.jar:]

        at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216) [aether-impl-1.13.1.jar:]

        at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:193) [aether-impl-1.13.1.jar:]

        at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:281) [maven-aether-provider-3.0.5.jar:3.0.5]

        ... 65 more

      Caused by: org.sonatype.aether.transfer.ArtifactTransferException: Failure to transfer com.cis.ep3m:ep3m-base:pom:1.0-20131210.055932-2 from http://127.0.0.1:8080/jbpm-console/maven2/ was cached in the local repository, resolution will not be reattempted until the update interval of guvnor-m2-repo has elapsed or updates are forced. Original error: Could not transfer artifact com.cis.ep3m:ep3m-base:pom:1.0-20131210.055932-2 from/to guvnor-m2-repo (http://127.0.0.1:8080/jbpm-console/maven2/): Access denied to: http://127.0.0.1:8080/jbpm-console/maven2/com/cis/ep3m/ep3m-base/1.0-SNAPSHOT/ep3m-base-1.0-20131210.055932-2.pom (401)

        at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:237) [aether-impl-1.13.1.jar:]

        at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:216) [aether-impl-1.13.1.jar:]

        at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:427) [aether-impl-1.13.1.jar:]

        ... 68 more

       

       

      Attached a snapshot of how my repository artifacts look like.

      I have checked for the permissions , so i dont think access should be an issue out here.

       

      Message was edited by: Reuben Pereira

        • 1. Re: org.kie.scanner.embedder.MavenEmbedderException: Failed to read artifact descriptor
          Maciej Swiderski Master

          please file a jira for this on workbench module in jbpm jira.

           

          in meantime you could try to disable security for maven internal repo servlet in jbpm-console web.xml to see if that solves the issue.

           

          HTH

          • 2. Re: org.kie.scanner.embedder.MavenEmbedderException: Failed to read artifact descriptor
            rdeveloper87 Newbie

            I commented out maven2 from the uberfire security filter.

            The maven embedder exception seems to have gone.

             

            <filter-mapping>

                <filter-name>UberFire Security Filter</filter-name>

                <url-pattern>/rest/*</url-pattern>

                <!--<url-pattern>/maven2/*</url-pattern>-->

                <url-pattern>/org.kie.workbench.KIEWebapp/*</url-pattern>

                <url-pattern>*.erraiBus</url-pattern>

              </filter-mapping>

             

            But i have got another exception as below. Is this a repercussion of the above change?

            The kjar deployment was not successful.

             

            The following pops up on the console:

            Unable to complete your request. The following exception occurred: java.lang.ClassNotFoundException:javax.servlet.ServletContextListener.

             

            There are a series of exceptions that follow in the trace but none make sense.

             

            10:56:30,891 WARN  [org.jboss.modules] (http-localhost-127.0.0.1-8080-2) Failed to define class org.eclipse.jdt.internal.compiler.apt.dispatch.BaseProcessingEnvImpl in Module "deployment.jbpm-console.war:main" from Service Module Loader: java.lang.LinkageError: Failed to link org/eclipse/jdt/internal/compiler/apt/dispatch/BaseProcessingEnvImpl (Module "deployment.jbpm-console.war:main" from Service Module Loader)

              at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:396)

              at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:243)

              at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73)

              at org.jboss.modules.Module.loadModuleClass(Module.java:517)

              at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182)

              at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

              at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)

              at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)

              at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)

              at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.7.0_45]

              at java.lang.ClassLoader.defineClass(ClassLoader.java:800) [rt.jar:1.7.0_45]

              at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) [rt.jar:1.7.0_45]

              at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:327)

              at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:391)

              at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:243)

              at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73)

              at org.jboss.modules.Module.loadModuleClass(Module.java:517)

              at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182)

              at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

              at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)

              at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)

              at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)

              at java.lang.Class.forName0(Native Method) [rt.jar:1.7.0_45]

              at java.lang.Class.forName(Class.java:270) [rt.jar:1.7.0_45]

              at org.drools.core.common.ProjectClassLoader.loadClass(ProjectClassLoader.java:80) [drools-core-6.0.0.Final.jar:6.0.0.Final]

              at java.lang.ClassLoader.loadClass(ClassLoader.java:358) [rt.jar:1.7.0_45]

              at java.lang.Class.forName0(Native Method) [rt.jar:1.7.0_45]

              at java.lang.Class.forName(Class.java:270) [rt.jar:1.7.0_45]

              at org.kie.scanner.KieModuleMetaDataImpl.getClass(KieModuleMetaDataImpl.java:91) [kie-ci-6.0.0.Final.jar:6.0.0.Final]

              at org.guvnor.common.services.builder.Builder.build(Builder.java:170) [guvnor-project-builder-6.0.0.Final.jar:6.0.0.Final]

              at org.guvnor.common.services.builder.BuildServiceImpl.doBuild(BuildServiceImpl.java:122) [guvnor-project-builder-6.0.0.Final.jar:6.0.0.Final]

              at org.guvnor.common.services.builder.BuildServiceImpl.buildAndDeploy(BuildServiceImpl.java:91) [guvnor-project-builder-6.0.0.Final.jar:6.0.0.Final]

              at org.guvnor.common.services.builder.BuildServiceImpl$Proxy$_$$_WeldClientProxy.buildAndDeploy(BuildServiceImpl$Proxy$_$$_WeldClientProxy.java) [guvnor-project-builder-6.0.0.Final.jar:6.0.0.Final]

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_45]

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_45]

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_45]

              at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_45]

              at org.jboss.errai.bus.server.io.AbstractRPCMethodCallback.invokeMethodFromMessage(AbstractRPCMethodCallback.java:48) [errai-bus-2.4.1.Final.jar:2.4.1.Final]

              at org.jboss.errai.bus.server.io.ValueReplyRPCEndpointCallback.callback(ValueReplyRPCEndpointCallback.java:22) [errai-bus-2.4.1.Final.jar:2.4.1.Final]

              at org.jboss.errai.bus.server.io.RemoteServiceCallback.callback(RemoteServiceCallback.java:54) [errai-bus-2.4.1.Final.jar:2.4.1.Final]

              at org.jboss.errai.cdi.server.CDIExtensionPoints$3.callback(CDIExtensionPoints.java:509) [errai-weld-integration-2.4.1.Final.jar:2.4.1.Final]

              at org.jboss.errai.bus.server.DeliveryPlan.deliver(DeliveryPlan.java:47) [errai-bus-2.4.1.Final.jar:2.4.1.Final]

              at org.jboss.errai.bus.server.ServerMessageBusImpl.sendGlobal(ServerMessageBusImpl.java:284) [errai-bus-2.4.1.Final.jar:2.4.1.Final]

              at org.jboss.errai.bus.server.SimpleDispatcher.dispatchGlobal(SimpleDispatcher.java:46) [errai-bus-2.4.1.Final.jar:2.4.1.Final]

              at org.jboss.errai.bus.server.service.ErraiServiceImpl.store(ErraiServiceImpl.java:92) [errai-bus-2.4.1.Final.jar:2.4.1.Final]

              at org.jboss.errai.bus.server.service.ErraiServiceImpl.store(ErraiServiceImpl.java:109) [errai-bus-2.4.1.Final.jar:2.4.1.Final]

              at org.jboss.errai.bus.server.servlet.DefaultBlockingServlet.doPost(DefaultBlockingServlet.java:140) [errai-bus-2.4.1.Final.jar:2.4.1.Final]

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

              at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

              at org.jboss.solder.servlet.exception.CatchExceptionFilter.doFilter(CatchExceptionFilter.java:65) [solder-impl-3.2.1.Final.jar:3.2.1.Final]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

              at org.jboss.solder.servlet.event.ServletEventBridgeFilter.doFilter(ServletEventBridgeFilter.java:74) [solder-impl-3.2.1.Final.jar:3.2.1.Final]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

              at org.jbpm.designer.web.filter.impl.PluggableFilter.doFilter(PluggableFilter.java:70) [jbpm-designer-backend-6.0.0.Final.jar:6.0.0.Final]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

              at org.uberfire.security.server.UberFireSecurityFilter.doFilter(UberFireSecurityFilter.java:266) [uberfire-security-server-0.3.0.Final.jar:0.3.0.Final]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:489) [jbossweb-7.0.13.Final.jar:]

              at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]

              at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:416) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]

              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]

              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]

              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]

              at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]

            Caused by: java.lang.NoClassDefFoundError: javax/annotation/processing/ProcessingEnvironment

              at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.7.0_45]

              at java.lang.ClassLoader.defineClass(ClassLoader.java:800) [rt.jar:1.7.0_45]

              at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) [rt.jar:1.7.0_45]

              at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:327)

              at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:391)

              ... 79 more

            Caused by: java.lang.ClassNotFoundException: javax.annotation.processing.ProcessingEnvironment from [Module "deployment.jbpm-console.war:main" from Service Module Loader]

              at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)

              at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

              at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)

              at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)

              at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)

              ... 84 more

             

            .

            .

            .

            12:24:59,345 WARN  [org.jboss.modules] (http-localhost-127.0.0.1-8080-2) Failed to define class org.eclipse.jdt.internal.compiler.apt.dispatch.BatchFilerImpl in Module "deployment.jbpm-console.war:main" from Service Module Loader: java.lang.LinkageError: Failed to link org/eclipse/jdt/internal/compiler/apt/dispatch/BatchFilerImpl (Module "deployment.jbpm-console.war:main" from Service Module Loader)

            .

            .

            .

            Caused by: java.lang.NoClassDefFoundError: javax/annotation/processing/Filer

              at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.7.0_45]

              at java.lang.ClassLoader.defineClass(ClassLoader.java:800) [rt.jar:1.7.0_45]

              at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) [rt.jar:1.7.0_45]

              at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:327)

              at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:391)

              ... 66 more

            Caused by: java.lang.ClassNotFoundException: javax.annotation.processing.Filer from [Module "deployment.jbpm-console.war:main" from Service Module Loader]

              at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)

              at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

              at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)

              at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)

              at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)

              ... 71 more

             

             

            .

            .

            12:24:59,651 WARN  [org.jboss.modules] (http-localhost-127.0.0.1-8080-2) Failed to define class org.eclipse.jdt.internal.compiler.apt.dispatch.BatchFilerImpl in Module "deployment.jbpm-console.war:main" from Service Module Loader: java.lang.LinkageError: Failed to link org/eclipse/jdt/internal/compiler/apt/dispatch/BatchFilerImpl (Module "deployment.jbpm-console.war:main" from Service Module Loader)

            .

            .

            Caused by: java.lang.NoClassDefFoundError: javax/annotation/processing/Filer

              at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.7.0_45]

              at java.lang.ClassLoader.defineClass(ClassLoader.java:800) [rt.jar:1.7.0_45]

              at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) [rt.jar:1.7.0_45]

              at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:327)

              at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:391)

              ... 63 more

            Caused by: java.lang.ClassNotFoundException: javax.annotation.processing.Filer from [Module "deployment.jbpm-console.war:main" from Service Module Loader]

              at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)

              at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

              at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)

              at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)

              at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)

              ... 68 more

            • 4. Re: org.kie.scanner.embedder.MavenEmbedderException: Failed to read artifact descriptor
              rdeveloper87 Newbie

              The javax annotation isssue was solved.

               

              But the following pops up on the console. I do not have a stack trace for this as this only appears on the console in a popup.

               

              Unable to complete your request. The following exception occurred: java.lang.ClassNotFoundException:javax.servlet.ServletContextListener.


              • 5. Re: org.kie.scanner.embedder.MavenEmbedderException: Failed to read artifact descriptor
                Maciej Swiderski Master

                something is very weird with your installation as the ServletContextListener is interface of servlet-api which must be provided by the application server such as jboss.Do you have pom dependencies that rely on ServletContextListener?

                 

                When does that happen, when you deploy kjar or start process....

                 

                HTH

                • 6. Re: org.kie.scanner.embedder.MavenEmbedderException: Failed to read artifact descriptor
                  rdeveloper87 Newbie

                  None of my pom dependencies rely on ServletContextListener.

                  The jbpm-installer artifacts are unchanged.

                   

                  This happens every time I trigger a build and deploy of kjar. So i am actually not able to deploy.

                   

                  But I am able to view most of my processes on the workbench.