users@glassfish.java.net

[gf-users] glassfish-embedded-all

From: Tomaz Majerhold <tomaz.majerhold_at_arnes.si>
Date: Wed, 04 Feb 2015 11:11:31 +0100

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