Questions tagged [grizzly]

The Grizzly NIO and Web framework leverage Java™ NIO API capabilities. Grizzly's helps developers to build scalable and robust servers using NIO and we are also offering extended framework components: Web Framework (HTTP/S), Bayeux Protocol, Servlet, HttpService OSGi and Comet.

The Grizzly NIO and Web framework leverage Java™ NIO API capabilities. Grizzly's helps developers to build scalable and robust servers using NIO and is also offering extended framework components: Web Framework (HTTP/S), Bayeux Protocol, Servlet, HttpService OSGi and Comet.

Resources:

482 questions
4
votes
2 answers

How to serve static content and resource at same base url with Grizzly

I am using Grizzly to serve my REST service which can have multiple "modules". I'd like to be able to use the same base URL for the service and for static content so I can access all these…
Amber
  • 2,413
  • 1
  • 15
  • 20
4
votes
1 answer

jersey - test rest endpoint service with ejb injection

I got a jax-rs resource @Path("rest/v1/serviceemail") public class PreviewResource implements Preview { @EJB private Mapper mapper; I'm creating an IT test with jersey-test-framework-core and jersey-test-framework-grizzly2. When I launch the…
Massimo Ugues
  • 4,373
  • 8
  • 43
  • 56
4
votes
1 answer

Is Grizzly a web server (NIO based) or a framework

From the official documentation it seems to me that Grizzly is a NIO based framework using which we can build scalable web-servers. However, I also realize that Grizzly is used as a HTTP Connector (front-end) in Glassfish (v3 to be specific). If…
TheMonkWhoSoldHisCode
  • 2,182
  • 3
  • 26
  • 40
4
votes
1 answer

Enabling JSON using jersey and grizzly

I am playing with Jersey hosted with Grizzly and want to be able to consume and produce JSON, however I am getting 500 from the server in get request and media type unsupported in POST my server code is org.glassfish.jersey.server.ResourceConfig rc…
li-raz
  • 1,678
  • 2
  • 29
  • 57
4
votes
1 answer

Mocking a Jersey REST Api running on Grizzly using Mockito

I am having a play with testing a RESTful api which I have set up using Jersey. I want to test it using JUnit while running it with Grizzly to provide the Http container. General testing using the server works ok, i.e. sending requests and…
raghera
  • 633
  • 12
  • 17
4
votes
1 answer

Rest web-services with jersey-spring3 and existing Spring application context

I have an existing Spring application with my own context that gets bootstrapped from douzens of Spring xml files. A Grizzly web-server is started to publish Soap services. Now I would like to also serve Rest requests from the same Grizzly. I'm…
nicole.torres
  • 307
  • 2
  • 6
4
votes
1 answer

Grizzly Server aborted the SSL handshake

I have a questions about using SSL with self-signed certificate. I was using this example here http://people.apache.org/~gmazza/restexamples/https-clientserver-grizzly The unit test works perfectly. However, if I started grizzly server, and try to…
user3905440
  • 115
  • 3
  • 8
4
votes
2 answers

grizzly does not log Exceptions in requests

I've set up a simple jersey server like this: ResourceConfig rc = new ResourceConfig().packages("com.example.jersey_test/services"); HttpServer server = GrizzlyHttpServerFactory.createHttpServer(URI.create(API_URI), rc); And I have a bean that…
Yogu
  • 9,165
  • 5
  • 37
  • 58
4
votes
1 answer

CPU utilization reaches 100% too often on grizzly http (REST) server - JAVA8

We have a jersey rest server that uses a grizzly http server(GrizzlyHttpServerFactory). Recently we migrated from java7 to java8. Since then after serving requests smoothly for 1 hour or so, - CPU utilization of our machine goes to 100% (usually…
bps
  • 63
  • 7
4
votes
1 answer

Problems trying to add a filter to a Grizzly+Jersey app

I have this server initialization class: package magic.app.main; import org.glassfish.grizzly.http.server.HttpServer; import org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpServerFactory; import…
Ignacio Guerendiain
  • 417
  • 1
  • 8
  • 15
4
votes
2 answers

How to configure existing Application Context in Jersey-Spring using Grizzly embedded server?

When starting an embedded Grizzly server, I would like Jersey to use my existing Spring container. This was possible in jersey-1.0 (Grizzly, sharing spring generated context), but does not seem to work in Jersey 2.x. This code works in Jersey…
Daniel Blezek
  • 4,539
  • 1
  • 19
  • 20
4
votes
1 answer

can not get grizzly logging to work, nothing written to my log4j log file

I have a simple Java/Spring program using a standard log4j.properties file to control logging, which is working fine. When we added Grizzly via: GrizzlyHttpServerFactory.createHttpServer(uri, resourceConfig) things work (i.e. the server in fact…
Brian Tarbox
  • 2,335
  • 1
  • 20
  • 30
4
votes
2 answers

Get remote address when using jersey with embedded grizzly

I have been searching for a solution to this problem with no success. The latest posts I found date back to 2010. I am using jersey 1.12 with embedded grizzly 2.2.1. If I understood correctly, unless I deploy my jersey resources under a servlet…
sina
  • 41
  • 3
4
votes
3 answers

Hot reloading with JAX-RS

I want to get a development experience like I get with Play! framework with JAX-RS (with Jersey for example). More specifically I want to use some kind of background compilation and run the compiled code immediately so that I have almost no waiting…
deamon
  • 89,107
  • 111
  • 320
  • 448
3
votes
2 answers

grizzly logs to stderr, annoying in eclipse

When i run my junit jersey service tests using the grizzly framework in eclipse, the log is directed to stderr. As a result the console window grabs focus, and the log appears red. I can't figure out the proper configuration steps. From my reading…
trebor
  • 73
  • 7