I've tried AS7 and Wildfly CR2 with a simple JAR (we use to kick the tyres of the M2Repo Upload stuff) and it works fine on both.

I have to speculate that the problem you're encountering is something specific to the JAR you're trying to upload.

Can you please create a JIRA at https://issues.jboss.org/browse/GUVNOR and attach a minimal JAR I can upload to reproduce the issue?

Thanks,

Mike 


On 14 July 2014 10:25, jps <jps@jps.ch> wrote:
Hello manstis,

Thanks for you reply.

Just tried with 6.1.0.CR2 (wildfly-8.1.0.Final + java version "1.7.0_11"),
but still the same error :((


10:42:46,359 INFO  [org.guvnor.m2repo.backend.server.M2Servlet] (default
task-14) POST request received.
10:42:46,851 ERROR [io.undertow.request] (default task-14) UT005023:
Exception handling request to
/kie-drools-wb-distribution-wars-6.1.0.CR2-wildfly/maven2:
java.lang.LinkageError:
com/ning/http/client/providers/netty/NettyAsyncHttpProvider
        at
org.sonatype.maven.wagon.AhcWagon.openConnectionInternal(AhcWagon.java:150)
[wagon-ahc-1.2.1.jar:]
        at
org.apache.maven.wagon.AbstractWagon.openConnection(AbstractWagon.java:105)
[wagon-provider-api-1.0.jar:1.0]
        at
org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:207)
[wagon-provider-api-1.0.jar:1.0]
        at
org.sonatype.aether.connector.wagon.WagonRepositoryConnector.connectWagon(WagonRepositoryConnector.java:345)
[aether-connector-wagon-1.13.1.jar:]
        at
org.sonatype.aether.connector.wagon.WagonRepositoryConnector.pollWagon(WagonRepositoryConnector.java:385)
[aether-connector-wagon-1.13.1.jar:]
        at
org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:571)
[aether-connector-wagon-1.13.1.jar:]
        at
org.sonatype.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:60)
[aether-util-1.13.1.jar:]
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
[rt.jar:1.7.0_11]
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
[rt.jar:1.7.0_11]
        at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_11]

10:42:46,856 ERROR [stderr] (pool-15-thread-1) Exception in thread
"pool-15-thread-1" java.lang.LinkageError:
com/ning/http/client/providers/netty/NettyAsyncHttpProvider
10:42:46,857 ERROR [stderr] (pool-15-thread-1)  at
org.sonatype.maven.wagon.AhcWagon.openConnectionInternal(AhcWagon.java:150)
10:42:46,858 ERROR [stderr] (pool-15-thread-1)  at
org.apache.maven.wagon.AbstractWagon.openConnection(AbstractWagon.java:105)
10:42:46,859 ERROR [stderr] (pool-15-thread-1)  at
org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:207)
10:42:46,859 ERROR [stderr] (pool-15-thread-1)  at
org.sonatype.aether.connector.wagon.WagonRepositoryConnector.connectWagon(WagonRepositoryConnector.java:345)
10:42:46,860 ERROR [stderr] (pool-15-thread-1)  at
org.sonatype.aether.connector.wagon.WagonRepositoryConnector.pollWagon(WagonRepositoryConnector.java:385)
10:42:46,860 ERROR [stderr] (pool-15-thread-1)  at
org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:571)
10:42:46,860 ERROR [stderr] (pool-15-thread-1)  at
org.sonatype.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:60)
10:42:46,861 ERROR [stderr] (pool-15-thread-1)  at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
10:42:46,861 ERROR [stderr] (pool-15-thread-1)  at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
10:42:46,862 ERROR [stderr] (pool-15-thread-1)  at
java.lang.Thread.run(Thread.java:722)



Investigating a little :

Uploading a mavenized JAR with one dependency and a two-level parent project
=> KO (that's my usecase) "java.lang.LinkageError"
Uploading a mavenized JAR with several dependencies and no parent project =>
KO, "java.lang.LinkageError"
Uploading a mavenized JAR with no dependency and a single-level pom parent
project => upload OK, but with error in log :


Caused by: org.apache.maven.model.building.ModelBuildingException: 1 problem
was encountered while building the effective model for
group-xxx:artifact-xxx:0.31
[ERROR] Invalid packaging for parent POM group-xxx:artifact-xxx:0.31, must
be "pom" but is "jar" @ group-xxx:artifact-xxx:0.31



"java.lang.LinkageError" should indicate that there is a version mismatch
somewhere with the netty JAR ?? Isn't it ?


For now, my workaround is now to manually install the jar into the local
repository :

mvn install-file
    -Dfile=path-to-your-artifact-jar \
    -DgroupId=your.groupId \
    -DartifactId=your-artifactId \
    -Dversion=version \
    -Dpackaging=jar

-DlocalRepositoryPath=*/usr/jboss/wildfly-8.1.0.Final/bin/repositories/kie*


Regards,
jps






--
View this message in context: http://drools.46999.n3.nabble.com/drools-wb-6-1-0-CR1-wildfly-error-when-upload-jar-M2-Repo-tp4030276p4030330.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users