Apache HTTP + Tomcat + HTTPS (SSL/TLS)


I often have to deploy my JAVA application to tomcat with HTTPS communication. There is simple step-by-step guide.


  • Linux machine (Ubuntu 14.04 in my case)
  • Installed and working Apache 2 HTTP server (http://localhost:80/ works in your browser)
  • Installed Tomcat 7 server (http://localhost:8080/ works in your browser)
  • Installed Oracle JAVA (JDK)

What we will do in the guide ?

  • Generate self-signed certificate for server
  • Install self-signed certificate to Apache
  • Configure AJP connection between Apache and Tomcat at URL (https://localhost)


Read More

How to fix exception java.lang.UnsatisfiedLinkError: /usr/local/SoapUI/jre/lib/i386/xawt/libmawt.so on Ubuntu 64bit


When I tried install SoapUI 5 on my Ubuntu desktop I received exception

java.lang.UnsatisfiedLinkError: /usr/local/SoapUI/jre/lib/i386/xawt/libmawt.so: libXtst.so.6: cannot open shared object file: No such file or directory

always when I tried run installer or program (if I used console for installation).

Here is workaround


Read More

Java – How to fix SSL exception


When you open any connection protected by SSL/TLS (e.g. https), JAVA verify if connection is trusted. If server use self signed certificate or certificate from not know authority JAVA close connection and throws some kind of SSL exception like “javax.net.ssl.SSLHandshakeException”

You can solve this situation by two ways, you can install authority certificate or trust all certificates (disable SSL validation).


Read More

How to Eclipse + JavaFX + fxml + Scene Builder (WYSIWYG designer)

Since JDK 7u6 is JavaFX 2 integrated to JavaSE on all major platforms (Windows, Linux and Mac). I think that it is time to start switch from SWING to JavaFX.
I use Eclipse 4.2 on Ubuntu 12.10 64bit with WindowBuilder Pro installed for SWING WYSIWYG design, but there is no plug-in with JavaFX GUI designer. Don’t worry, there is solution with using e(fx)clipse and JavaFX Scene Builder.

We will develop JavaFX example with using GUI designer and Eclipse in this post.

Read More