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.

2009 questions
0
votes
2 answers

Why there is no insert query in jpql

I am using dropwizard hibernate and there I am using @NamedQuery() I didn't find any source to put my data into my database
Mukul
  • 11
  • 3
0
votes
1 answer

run java application from jar with properties

I have a service where i am running a jar file by passing properties file java -jar myjar server config.yml In order to stop passing config.yml every time through command line I have configured below code in my main method : String configFile =…
user304611
  • 297
  • 1
  • 4
  • 14
0
votes
1 answer

Using slf4j + log4j with dropwizard

I have a REST java application built with Maven. It consists of a project with two modules: myapp_server (parent project) myapp_rest myapp_logging This is the parent POM:
BackSlash
  • 21,927
  • 22
  • 96
  • 136
0
votes
1 answer

Logging in a dropwizard application

log4j:WARN No appenders could be found for logger (org.jboss.logging). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. I am a noob in dropwizard…
Deadpool
  • 94
  • 10
0
votes
0 answers

DB Setup Unit testing in Dropwizard

I have a Dropwizard application and I am trying to create unit tests for testing the application. I read through a bunch of resources and I am now using DropwizardTestRule to kickstart the application and run some unit tests. I also have a custom…
LeoNeo
  • 739
  • 1
  • 9
  • 28
0
votes
0 answers

jdbi returns 0 in @GetGeneratedKeys in update

I have made dropwizzard application using jdbi2. I am doing an update on my table and have annotated the dao method which does this with @GetGeneratedKeys and return type int. The documentation here says If the return type is int, then the value…
shane
  • 449
  • 4
  • 17
0
votes
0 answers

Dropwizard: Thread Safe Synchronized Block for inserting and updating

I'm not sure if this is the correct to handle but I have the following method below: public void updateOrInsertRecord () { boolean doesRecordExist = dao.doesUsageRecordExits(); if (doesRecordExist) { dao.updateRecord(); } …
Joseph Freeman
  • 1,644
  • 4
  • 24
  • 43
0
votes
1 answer

Hibernate filter on embedded Entities

I have a Dropwizard application which uses hibernate search. In a nutshell I have animals and their data in my database and I am trying to add a filter to get animals of a specific list of breeds. Unfortunately it seems that my filter doesn't work…
TM00
  • 1,330
  • 1
  • 14
  • 26
0
votes
1 answer

How can i integrate prometheus in Scala sbt project?

I am trying to integrate prometheus for metrics in Scala sbt project? Can you guys please guide me how i achieve this.
Shamanth
  • 1
  • 1
0
votes
1 answer

How to send content and file as Multipart Form Data from Java using org.glassfish.jersey.media.multipart?

I want to send an HTTP post with one form parameter as File and Another one which sends a list of numbers. Request: curl -X POST \ http://127.0.0.1:5001/verify \ -H 'cache-control: no-cache' \ -H 'content-type: multipart/form-data;…
MarkZ
  • 29
  • 9
0
votes
1 answer

Has DAOTestRule been deprecated from Dropwizard? What is the alternative?

I am using Dropwizard and I want to unit test my DAO classes. I saw a bunch of examples online but they seem to be using DAOTestRule which I cannot find in 0.9.2 which is what we use here at work. None of the blogs explain what is the replacement…
LeoNeo
  • 739
  • 1
  • 9
  • 28
0
votes
0 answers

Method returning cache results instead of going to the database

I'm running guava cache for my get methods. I've noticed that one of my methods, which retrieves profile information from the database based on name and department, returns ONLY from the cache. If an entry is not in the cache, its supposed to go…
SVill
  • 331
  • 5
  • 22
  • 55
0
votes
1 answer

Custom ErrorHandler in dropwizard application

I'm trying to set a custom ErrorHandler in dropwizard 1.0.2 In my Application class in the run method I have the following lines: environment.getApplicationContext().setErrorHandler(new CustomErrorHandler()); …
Vyacheslav
  • 1,186
  • 2
  • 15
  • 29
0
votes
1 answer

Dropwizard support for validation in non-Resource classes (JSR-303)

According to this link: If you need to validate entities outside of resource endpoints, the validator can be accessed in the Environment when the application is first ran. Which means that the @Valid below won't work and I have to programatically…
cahen
  • 15,807
  • 13
  • 47
  • 78
0
votes
1 answer

Dropwizard testing - ResourceTestRule throwing NoClassDefFoundError: ch/qos/logback/core/filter/Filter

I am using dropwizard 1.2.4 with log4j 1.2.17. I have followed the instructions as mentioned below https://github.com/arteam/dropwizard-nologback/ It is throwing the exception like below during unit testing. java.lang.NoClassDefFoundError:…
tuk
  • 5,941
  • 14
  • 79
  • 162
1 2 3
99
100