users@glassfish.java.net

[gf-users] Re: glassfish-embedded-all

From: Reza Rahman <reza.rahman_at_oracle.com>
Date: Wed, 4 Feb 2015 10:27:35 -0500

Not sure if you are aware but we have not brought GlassFish embedded forward as of GlassFish 4. It certainly does not mean the community could not self-support it.

> On Feb 4, 2015, at 5:11 AM, Tomaz Majerhold <tomaz.majerhold_at_arnes.si> wrote:
>
> I have war[ejb, jpa, web, webservices, weld](StatelessSessionBean, Servlet, SingletonSessionBean) which work on GlassFish Server Open Source Edition 3.1.2.2 (build 5).
>
> I'm trying to write JUnit tests for REST with embedded glassfish, but application won't start because of error:
>
> SEVERE: WebModule[/portal-api-server]StandardWrapper.Throwable
> java.lang.NoSuchMethodError: com.sun.jersey.core.reflection.ReflectionHelper.classForNameWithException(Ljava/lang/String;)Ljava/lang/Class;
> at com.sun.jersey.spi.container.servlet.WebComponent.createResourceConfig(WebComponent.java:720)
> at com.sun.jersey.spi.container.servlet.WebComponent.createResourceConfig(WebComponent.java:687)
> ...
>
>
>
> Any idea, what could be wrong?
>
>
> Regards, Tomaz