Jersey stopped working with InjectionManagerFactory not found

Add this dependency: <dependency> <groupId>org.glassfish.jersey.inject</groupId> <artifactId>jersey-hk2</artifactId> <version>2.28</version> </dependency> cf. https://stackoverflow.com/a/44536542/1070215 Make sure not to mix your Jersey dependency versions. This answer says version “2.28”, but use whatever version your other Jersey dependency versions are.

What is “pom” packaging in maven?

pom is basically a container of submodules, each submodule is represented by a subdirectory in the same directory as pom.xml with pom packaging. Somewhere, nested within the project structure you will find artifacts (modules) with war packaging. Maven generally builds everything into /target subdirectories of each module. So after mvn install look into target subdirectory … Read more

Eclipse debugger always blocks on ThreadPoolExecutor without any obvious exception, why?

The posted stack trace indicates that a RuntimeException was encountered in a Daemon thread. This is typically uncaught at runtime, unless the original developer caught and handled the exception. Typically, the debugger in Eclipse is configured to suspend execution at the location where the exception was thrown, on all uncaught exceptions. Note that the exception … Read more

Tomcat: How to find out running Tomcat version?

Though this is not recent, I thought, my answer can still help others: cd tomcat/lib java -cp catalina.jar org.apache.catalina.util.ServerInfo and that’s it. Server version: Apache Tomcat/7.0.30 Server built: May 23 2013 02:54:10 Server number: 7.0.30.0 OS Name: Linux OS Version: 3.13.0-36-generic Architecture: amd64 JVM Version: 1.7.0_65-b32 JVM Vendor: Oracle Corporation

Eclipse add Tomcat 7 blank server name

It is a bug in Eclipse. I had exactly the same problem, also on Ubuntu with Eclipse Java EE Juno. Here is the workaround that worked for me: Close Eclipse In {workspace-directory}/.metadata/.plugins/org.eclipse.core.runtime/.settings delete the following two files: org.eclipse.wst.server.core.prefs org.eclipse.jst.server.tomcat.core.prefs Restart Eclipse Source: eclipse.org Forum

Several ports (8005, 8080, 8009) required by Tomcat Server at localhost are already in use

You’ve another instance of Tomcat already running. You can confirm this by going to http://localhost:8080 in your webbrowser and check if you get the Tomcat default home page or a Tomcat-specific 404 error page. Both are equally valid evidence that Tomcat runs fine; if it didn’t, then you would have gotten a browser specific HTTP … Read more

To prevent a memory leak, the JDBC Driver has been forcibly unregistered

Since version 6.0.24, Tomcat ships with a memory leak detection feature, which in turn can lead to this kind of warning messages when there’s a JDBC 4.0 compatible driver in the webapp’s /WEB-INF/lib which auto-registers itself during webapp’s startup using the ServiceLoader API, but which did not auto-deregister itself during webapp’s shutdown. This message is … Read more

How to deploy a war file in Tomcat 7

You can access your application from: http://localhost:8080/sample Deploying or redeploying of war files is automatic by default – after copying/overwriting the file sample.war, check your webapps folder for an extracted folder sample. If it doesn’t open properly, check the log files (e.g. tomcat/logs/catalina.out) for problems with deployment.

How to get UTF-8 working in Java webapps?

Answering myself as the FAQ of this site encourages it. This works for me: Mostly characters äåö are not a problematic as the default character set used by browsers and tomcat/java for webapps is latin1 ie. ISO-8859-1 which “understands” those characters. To get UTF-8 working under Java+Tomcat+Linux/Windows+Mysql requires the following: Configuring Tomcat’s server.xml It’s necessary … Read more