I have a Grails 2.5.4 application using Jackson 2.4.5. I have a requirement to update databind to 2.13.1.
compile group: 'com.fasterxml.jackson.jaxrs', name: 'jackson-jaxrs-json-provider', version: '2.4.5'
compile group: 'com.fasterxml.jackson.jaxrs', name: 'jackson-jaxrs-base', version: '2.4.5'
Simply changing it to 2.13.1 gave me an error indicating I need to include something else. I added data-bind (that's the specific part I need to upgrade) so that now it looks like this:
compile group: 'com.fasterxml.jackson.jaxrs', name: 'jackson-jaxrs-json-provider', version: '2.13.1'
compile group: 'com.fasterxml.jackson.jaxrs', name: 'jackson-jaxrs-base', version: '2.13.1'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.13.1'
But now when I try to build it, I get the error NoClassDefFoundError for JacksonJaxbJsonProvider due to missing dependency NoContentException. I searched, and apparently NoContentException is simply a part Java, so I'm not sure what it means by "missing".
I found this thread that says a fix was put in 2.8.5, but, clearly that's not helping here. I also tried the javax.ws.rs-api 2.0.1 bit near the bottom of the thread, but that didn't change anything either.
Related
I am trying to use OpenCV (OpenPNP distribution) in a Spring Boot microservice. I add it with:
implementation group: 'org.openpnp', name: 'opencv', version: '4.3.0-1'
I follow the description (I think) in https://github.com/openpnp/opencv so I add this in my #Service class:
static {
System.loadLibrary(org.opencv.core.Core.NATIVE_LIBRARY_NAME);
}
When I run tests I am getting:
java.lang.UnsatisfiedLinkError: no opencv_java430 in java.library.path
(No other info shown in the stack trace)
What am I missing? I think that OpenPNP fork of OpenCV includes the native libraries but I am not sure how I can locate them.
I'm migrating my Grails 2.3.6 projects to Grails 3. Ever since back, I was using httpbuilder by integrating
compile ":rest:0.8"
Compiler says "Could not find :rest:0.8.", I tried to add
maven { url "http://grails.org/plugins" }
but with no success. What httpclient am I supposed to use? The doc seems to lack this information.
I finally managed it using this line in buld.gradle:
compile group: 'org.codehaus.groovy.modules.http-builder', name: 'http-builder', version: '0.7.1'
did you mean this?
maybe this will help you
how to call withHttp() with http builder helper plugin grails 3?
I am using jenkins.model.Jenkins in my project for which I am grabbing hudson-core jar.
compile group: 'org.jvnet.hudson.main', name: 'hudson-core', version: '2.2.1'
My project builds succesfully but when I use its jar in other project, I get following error.
class jenkins.model.Jenkins$21 cannot access its superclass hudson.model.FullDuplexHttpChannel
Any kind of suggestion for resolution is appreciated.
I'm trying to use the Worker package and the PostgreSQL package.
I'm not sure why but if I run the example in
https://diegorochablog.wordpress.com/2014/02/18/worker-dart-concurrent-programming-does-not-have-to-be-hard/
After changing nothing but adding an import statement: import 'package:postgresql/postgresql.dart';, The example stops working (the task's execute is not called).
Dart VM version: 1.17.0-dev.4.1 (Thu May 19 11:21:39 2016) on "macos_x64".
pubspec.yaml
name: fibFuturesConcu
version: 0.0.1
description: A simple console application.
dependencies:
worker: any
Update
Apparently it does not happen with the stable version of Dart (1.16.0).
The problem is gone when using Dart Stable 1.16.
I was using 3.0.14v Grails and I did some deployments to heroku. Everything was working fine, however I wanted to try with Grails 3.1.1 and I'm getting some errors now.
I was following this post https://devcenter.heroku.com/articles/deploying-gradle-apps-on-heroku
I cloned this https://github.com/kissaten/grails3-example
I think it's something about tomcat version but not sure.
Any help?
For your trouble with the compile 'com.github.jsimone:webapp-runner:8.0.30.1', I figured it out by removing the httpclient module from all test* import, and I imported a good version of that module (only for test*).
testCompile ("org.grails.plugins:geb"){
exclude module: 'httpclient'
}
testCompile ('org.seleniumhq.selenium:selenium-firefox-driver:2.48.2'){
exclude module: 'httpclient'
}
testCompile 'org.apache.httpcomponents:httpclient:4.3.5'
Thanks to that, I could import the "last" webapp-runner (directly as a jar)
compile 'com.github.jsimone:webapp-runner:8.0.30.1#jar'
Maybe that version of the webapp-runner will fix the problem, but I'm not sure.
As I saw on your stacktraces, there is a NoClassDefFoundException for org/apache/tomcat/util/descriptor/tld/TldParser.
This class is provided by the tomcat-embed-core artifact. And that artifact comes from spring-boot-starter-tomcat (as a dependency). Change "spring-boot-starter-tomcat" from provided to compiled or try another version (for Grails 3.0.9, the spring-starter-tomcat version is 1.2.6).
Hope it helps ;)
I'm unsure of the specifics, but it looks like Grails 3.1.1 requires some of the classes in the Tomcat 8.x line.
I found a solution
I used a "compile 'com.github.jsimone:webapp-runner:8.0.30.2'" instead '8.0.30.1' and It's working well now.
I think there is an issue with including '8.0.30.1' as a compile time dependency.