users@glassfish.java.net

Re: glassfish-embedded-4.0 is it stable?

From: Cyril Auburtin <cyril.auburtin_at_gmail.com>
Date: Thu, 27 Mar 2014 10:44:52 +0100

Yes, thanks Martin, I saw it once, but on my lastest attempts even with
verbose option, I didn't see this (role security exception) again.

I didn't put a configFile element (pointing to domain.xml), as it was not
said to be necesary in the doc
https://glassfish.java.net/docs/4.0/embedded-server-guide.pdf

but maybe since 4.0, there should be a domain.xml for setting these
security options? I have however no idea how to do it


2014-03-27 2:48 GMT+01:00 Martin Gainty <mgainty_at_hotmail.com>:

> 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<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?
>