GlassFish deployment error: ComponentProvider not found

It looks like a configuration issue in GlassFish that I cannot solve. To degrade quality, GlassFish works great on one of my laptops, but not on the other.

Context: I am developing a RESTful service / API, building it with Maven, packaging it with war. My IDE is IntellijIDEA 14 with GlassFish 4.1.0 application server.

I get the following exception:

RestAPI:war exploded: java.io.IOException: com.sun.enterprise.admin.remote.RemoteFailureException: Error occurred during deployment: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.apache.catalina.LifecycleException: org.glassfish.jersey.internal.ServiceConfigurationError: org.glassfish.jersey.server.spi.ComponentProvider: The class org.glassfish.jersey.gf.cdi.CdiComponentProvider implementing the provider interface org.glassfish.jersey.server.spi.ComponentProvider is not found. The provider implementation is ignored.

Both of my machines have all installed, Java, Java SDK, both run in Windows 8.1, etc.

I spent the last two days looking for a solution, but no luck. Has anyone encountered this issue?

PS I am new to Java development, especially in tools and frameworks, so I apologize if I formulated it incorrectly.

+5
source share

All Articles