Questions tagged [dropwizard]

Dropwizard is a Java framework for developing ops-friendly, high-performance, RESTful web services.

Dropwizard is a Java framework for developing ops-friendly, high-performance, RESTful web services.

Developed by Yammer to power their JVM-based backend services, Dropwizard pulls together stable, mature libraries from the Java ecosystem into a simple, light-weight package that lets you focus on getting things done.

Dropwizard has out-of-the-box support for sophisticated configuration, application metrics, logging, operational tools, and much more, allowing you and your team to ship a production-quality HTTP+JSON web service in the shortest time possible.

Integration with many well-established libraries, frameworks and technologies is provided with additional official modules and community supported modules.

1905 questions
12
votes
2 answers

MultiException when custom jersey param throws exception

NOTE: All code to reproduce this problem is available at https://gist.github.com/SrikanthRao/c9fc35e6fe22a74ab40c http://localhost:8080/date/bean?date=2014-13-23 (using BeanParam) produces "{"code":500,"message":"There was an error processing your…
Srikanth
  • 9,394
  • 2
  • 17
  • 28
12
votes
1 answer

DropWizard not registering my health check

In my DropWizard (v0.7.0) app, I have a DummyHealthCheck like so: public class DummyHealthCheck extends HealthCheck { @Override protected Result check() throws Exception { return Result.healthy(); } } Then in my main Application…
IAmYourFaja
  • 50,141
  • 159
  • 435
  • 728
12
votes
3 answers

Deploy Dropwizard on Google AppEngine

I have been trying to find a way to deploy a Dropwizard app on Google AppEngine, but I haven't found anything so far. Judging by this question (and answer) I think it might not be possible. I would like to be sure about that, and If it does work,…
derabbink
  • 2,279
  • 18
  • 46
12
votes
1 answer

Dropwizard and SSL

I cannot seem to configure Dropwizard to use ssl. I've created a key openssl genrsa -des3 -out server.key 1024 and a certificate openssl req -new -key server.key -days 365 -out server.crt -x509 and imported it into a keystore keytool -import -file…
whiterook6
  • 2,927
  • 2
  • 27
  • 57
11
votes
2 answers

Dropwizard : New admin resource

I'm using Drowpizard 0.7.1, but perhaps I will upgrade to 0.8.4 very soon. Does anyone know how to add a admin resource to dropwizard, that is shown in Operational Menu like the example below? Operational Menu Metrics Ping Threads …
heaphach
  • 1,432
  • 1
  • 18
  • 41
11
votes
3 answers

Dropwizard logging: add new appender for a particular logger

I'm new to dropwizard and am trying to figure out ways to configure logging better. I have registered a new logger in a bundle like so: Logger log = LoggerFactory.getLogger("mylogger"); log.info("this is a log from mylogger"); Now I'm using…
nightcrawler
  • 329
  • 2
  • 4
  • 12
11
votes
1 answer

Jersey 2.x Custom Injection Annotation With Attributes

I am in the process of migrating from DropWizard 0.7.1 to 0.8.1. This includes migrating from Jersey 1.x to 2.x. In my implementation that uses Jersey 1.18.1, I had a MyProvider (changed all class names for simplicity's sake) that implements…
Eric Bernier
  • 439
  • 1
  • 8
  • 17
11
votes
2 answers

Add jetty servlet into dropwizard

I need to add jetty servlet into my already existing server implemented using dropwizard framework. To be more specific: I have a restful resource Foo mapped to url "localhost:8080/foo" with CRUD operations. Now I need a jetty servlet mapped to url…
fengye87
  • 1,973
  • 3
  • 20
  • 37
11
votes
3 answers

How to make @JsonSnakeCase the default for configuration in Dropwizard

How will I configure jackson to use snake case in dropwizard instead of putting @JsonSnakeCase in every class ?
Manikandan
  • 2,655
  • 2
  • 16
  • 26
11
votes
3 answers

How do I configure the location and rotation of the Dropwizard access log?

My logging config looks like this: logging: level: INFO loggers: "com.example.broker": DEBUG "org.apache.http.wire": DEBUG console: threshold: ERROR file: enabled: true currentLogFilename: /opt/broker/log/broker.log …
mss
  • 1,644
  • 1
  • 16
  • 18
11
votes
1 answer

Generate schema in dropwizard-hibernate

I followed the tutorial for dropwizard and hibernate without problems. Now I have non trivial annotations in my entities, and I would like hibernate to generate the tables for me, and stuff like that.So, how can I change hibernate's configuration?…
dgn
  • 1,133
  • 1
  • 11
  • 19
11
votes
4 answers

Adding additional metrics to Dropwizard

How do I go about adding custom metrics to the default stuff that Dropwizard provides on the admin port (8081)? I can't find anything in the documentation apart from adding health checks. I'd quite like to incorporate some stats retrieved from…
johncowie
  • 317
  • 1
  • 2
  • 7
10
votes
1 answer

Difference between Codahale metrics and Dropwizard metrics

I'm new to Java. While exploring the ways of monitoring Cassandra, I found out(https://cassandra.apache.org/doc/latest/operating/metrics.html) that "Metrics in Cassandra are managed using the Dropwizard Metrics library". However, at several places…
Vishal Sharma
  • 1,248
  • 14
  • 39
10
votes
2 answers

How to use IN operator with JDBI?

I'm trying to do a IN query using MYSQL JDBI on Dropwizard (not relevant, I assume). @SqlQuery("SELECT id FROM table where field in ()") List findSomething(@BindIn("list") List someList); As suggested here, I've also…
Kenneth
  • 3,767
  • 8
  • 36
  • 59
10
votes
1 answer

Meaning of each field in default Format of HTTP Request Log in DropWizard

The access log that get generated in Dropwizard are something of following format:- 10.10.10.10 - - [16/Mar/2015:23:59:59 +0530] "GET /yyyy/vx.x/uri HTTP/1.1" 200 - "-" "-" 1 Field 1 :- 10.10.10.10 (Ip Address from which request came) Field 2 :-…
hatellla
  • 3,512
  • 3
  • 29
  • 65