Registry / web-framework / jersey-container-grizzly2-http

jersey-container-grizzly2-http

JSON →
library4.0.2javamavenunverified

Grizzly 2 HTTP container for Jersey, enabling embedded HTTP server for RESTful web services.

<dependency> <groupId>org.glassfish.jersey.containers</groupId> <artifactId>jersey-container-grizzly2-http</artifactId> <version>4.0.2</version> </dependency>
INSTALL
IMPORT
SIG · JERSEY-CONTAINER-G
J
jersey-container-grizzly2-http
web-frameworkjavav4.0.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

GrizzlyHttpServerFactory
org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpServerFactory

Starts an embedded Grizzly HTTP server with Jersey REST resources.

import org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpServerFactory; import org.glassfish.jersey.server.ResourceConfig; import java.net.URI; public class Main { public static void main(String[] args) throws Exception { ResourceConfig config = new ResourceConfig().packages("com.example"); GrizzlyHttpServerFactory.createHttpServer(URI.create("http://localhost:8080/"), config); System.out.println("Server started"); Thread.sleep(Long.MAX_VALUE); } }
Debug
Known issues
breakingJersey 4.x requires Java 11+; older versions use Java 8.
fix
Ensure your Java version is compatible; use Jersey 3.x for Java 8 support.
affects: >=4.0.0
Upgrade
Version history
4.0.2latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
jersey-container-grizzly2-http — mvn dependency:get jersey-container-grizzly2-http · libregistry