I've used InteliJ idea for development, but now I have to use Eclipse. It's quite pity, because I've forgot almost all ecli...
Hadoop Distributed File System (HDFS)
Hadoop Distributed File System (HDFS) is a Java-based file system that provides scalable and reliable data storage that is designed to span...
[BASH] Add folder to $PATH if not there already
if [[ ":$PATH:" != *":/some/folder:"* ]]; then PATH=${PATH}:/some/folder; fi
Maven jetty:run in intellij idea: java.lang.OutOfMemoryError: PermGen space
Often time, IntelliJ Idea with maven jetty plugin may hits the following java.lang.OutOfMemoryError: PermGen space error when trying to...
Spring: how to print all bean names from ApplicationContext?
How to get all bean ids from the Spring Application Context and print to console. Needed sometimes for debugging purposes :) 1 2 3 4 ...
Expose POJO as MBean in Spring (JMX)
There are lots of tutorials for this purpose (for example: this link ), but I was not able to figure out working solution from the spot. ...
WebDriver: constructor with both FirefoxBinary and DesiredCapabilities
Short example for WebDriver construction for Firefox using both FirefoxBinary and DesiredCapabilities. Needed for example if you are going...
How to monitor remote java app via JMX
Let's assume, we have some remote server and java application run there. We also have VisualVM on our localhost ,machine and just wan...
Java source code highlight on-line tools
Looking for java source core highlighting online tool. Now using this one: http://hilite.me Code highlight example (HelloWorld.java):
logback e-mail appender example
An example for logback email appender (logback SMTP appender) configuration. Short description for some elements: filter is for sen...
EntityManager.merge() issue: does not store to DB
Strange issue happened when tried to store some entity to database using entityManager.merge() or entityManager.persist() - code seemed t...
Apache Maven for SoftServe IT Academy
My 1st presentation for SoftServe ITA (April, 7 2014) Apache Maven for SoftServe IT Academy from Volodymyr Ostapiv
JPA for testing in Maven: persistence.xml in test/resources
For Maven testing with JPA we need to have persistence.xml file located in the in src/test/resources and that is not good sometimes, beca...
maven-shade-plugin hints
Maven shade pludin (maven-shade-plugin) is used for creating single executable JAR file with all dependencies (libraries) inside. Works a...
Run console command from Java
To run console command from java do the following: 1. Command interpreter string: private static final String[] COMMAND_INTERPRETE...
How to pack jsp file into *.WAR
How to pack jsp file into *.WAR web applicatoion (jboss deployable): # jar -cvf browser.war Browser.jsp This command creates ME...
Web-based filemanager for Java (Jsp filemanager, jBoss filemanager)
We needed filemanager to be installed as WAR file to the jBoss server (or any Java servlet capable server lite Jetty, Tomcat, etc). Kind of...
firefox-bin: error while loading shared libraries
I'm trying to use old 32-bit firefox (v 3.6) on 64-bit CentOS machine (CentOS 6.4) and getting the following error: /usr/local/fi...
jBoss: Failed to create a new SAX parser
01:00:50,876 ERROR [JBossContextConfig] XML error parsing: context.xml org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a ...