-
Recent Posts
- How to create and drop databases dynamically from Java/JSP code
- How to call Java executable from PHP?
- How to recover from java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet
- How to use your existing PEM/OpenSSL key and cerificate with Java keystore
- Hibernate and the famous ‘Communications link failure’ and ‘last packet sent successfuly’ issue solved with C3P0
Recent Comments
Archives
Categories
Meta
Author Archives: admin
How to create and drop databases dynamically from Java/JSP code
JDBC drivers allow developers to perform DDL SQL commands in their Java/JSP code including CREATE and DROP of databases. In this example we present a simple JSP page that will allow you to test these functionality. In cPanel environment the … Continue reading
Posted in Databases, Java
Leave a comment
How to call Java executable from PHP?
For PHP to find Java and see related environment variables you need to set the variables explicitly in your PHP code or use Java related variables predefined in your .bashrc or similar shell resource file. As fastcgi subprocesses do not … Continue reading
Posted in Java, PHP/Perl/Python
Leave a comment
How to recover from java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet
If you build a JSF based application that works fine in your local development environment but fails to work after uploading to production server you may find the java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet error in your application server log. SEVERE: Error loading WebappClassLoader … Continue reading
Posted in Java, Tomcat
Leave a comment
How to use your existing PEM/OpenSSL key and cerificate with Java keystore
Easy method for importing PEM key and certificates into Java keystore with JDK6+. In this tutorial we have x509 PEM OpenSSL certifcate used in Apache2 and related private key. Now we want to use them directly in Tomcat by importing … Continue reading
Posted in Java, Tomcat
Leave a comment
Hibernate and the famous ‘Communications link failure’ and ‘last packet sent successfuly’ issue solved with C3P0
With pure hibernate applications longer period of database inactivity can cause first database connection to fail. Subsequent web page refreshes will usually work fine. Why this happens? Usually, MySQL global parameter wait_timeout is set to 28800 (i.e. 8 hours). If … Continue reading
Posted in Java, JBoss, Tomcat
Leave a comment
BIND chrooted nameserver install in Centos 5 – copy and paste guide
Many of our Java clients use pure (no control panel) VPSes and sometimes want to run their own nameservers. Some of them may prefer full featured BIND nameserver over DNSmasq described in the other article although BIND comes with larger … Continue reading
Posted in Dedicated Server, Non-Java, VPS
Leave a comment
Your own lightweight nameserver with DNSmasq
Sometimes your registrar does not provide DNS service but you want to point your domain to your VPS IP address. Your VPS package may also not include DNS service (although if you register a domain thru a big registrar like … Continue reading
Posted in Dedicated Server, Non-Java, VPS
Leave a comment
Increasing Tomcat logging verbosity for quick problem resolution
Increasing logging verbosity of a Java application can be helpful in quick problem identification and resolution as error messages with default Tomcat logging settings can be quite vague. Default logger in Tomcat 6 and 7 is java.util.logging logger. Previously Log4J … Continue reading
Posted in Java, Tomcat
Leave a comment
How to connect with PgAdminIII to PostgreSQL with SSH tunnel
On a cPanel server remote connections to PostgreSQL server are disabled by default. See how to leverage SSH tunnel and connect with PgAdminIII and Putty. If your key-based connection works fine (refer ‘Steps to connect with Putty using key based … Continue reading
Posted in Control Panels, Databases, Non-Java
Leave a comment
How to connect with Putty using key based authentication – screenshots
On a cPanel server where password login is not allowed you will need to use SSH key. Follow this guide to have key based SSH connection set up in Putty. For SSH access from Windows we recommend PuTTY and PuTTYgen … Continue reading
Posted in Control Panels, Non-Java
Leave a comment


