users@glassfish.java.net

RE: glassfish-embedded-4.0 is it stable?

From: Martin Gainty <mgainty_at_hotmail.com>
Date: Wed, 26 Mar 2014 21:48:31 -0400

Hi Cyril

I got a little further:

Caused by: org.apache.maven.wagon.TransferFailedException: Failed to transfer fi
le: https://maven.java.net/service/local/staging/deploy/maven2/org/glassfish/emb
edded/maven-embedded-glassfish-plugin/4.0/maven-embedded-glassfish-plugin-4.0.ja
r. Return code is: 401, ReasonPhrase: Unauthorized.
        at org.apache.maven.wagon.shared.http4.AbstractHttpClientWagon.put(Abstr
actHttpClientWagon.java:626)
        at org.apache.maven.wagon.shared.http4.AbstractHttpClientWagon.put(Abstr
actHttpClientWagon.java:524)
        at org.apache.maven.wagon.shared.http4.AbstractHttpClientWagon.put(Abstr
actHttpClientWagon.java:505)
        at org.apache.maven.wagon.shared.http4.AbstractHttpClientWagon.put(Abstr
actHttpClientWagon.java:485)
        at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$PutTask.
run(WagonRepositoryConnector.java:811)
        ... 28 more

 

Need to setup users/roles etc..


Is that the error you get?
Martin
______________________________________________
Verzicht und Vertraulichkeitanmerkung

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.

  




From: cyril.auburtin_at_gmail.com
Date: Thu, 27 Mar 2014 01:11:18 +0100
Subject: glassfish-embedded-4.0 is it stable?
To: users_at_glassfish.java.net






I need to run glassfish-embedded 4.0 (at least version 4 of glassfish), I found them on maven http://search.maven.org/#search%7Cga%7C1%7Cmaven-embedded-glassfish-plugin, but strangely under a different groupId<plugin>

<!-- <groupId>org.glassfish</groupId> -->
<!-- <artifactId>maven-embedded-glassfish-plugin</artifactId> -->
<!-- <version>3.1</version> -->
    <groupId>org.glassfish.embedded</groupId>
    <artifactId>maven-embedded-glassfish-plugin</artifactId>
    <version>4.0</version>

    <configuration>
        <goalPrefix>embedded-glassfish</goalPrefix>
        <app>target/${project.build.finalName}.war</app>
        <port>8080</port>
        <contextRoot>/</contextRoot>
        <autoDelete>true</autoDelete>
    </configuration>
</plugin>
anyway I tried with a basic example https://github.com/n11/TestGlassfishEmbedded
You can easily download the code and run the README
Uncomment and comment the right sections in pom.xml to switch between 3.1 and 4.0.
It's working fine under 3.1, and not serving anything with 4.0, without any error
any idea?