Monthly Archives: August 2013

org.apache.tomcat.util.modeler.Util.objectNameValueNeedsQuote

This error (java.lang.NullPointerException at org.apache.tomcat.util.modeler.Util.objectNameValueNeedsQuote) can show up due to bad syntax in web.xml. Additional SEVERE and ‘Caused by’ lines accompanying it are: SEVERE: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to initialize component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[].StandardWrapper[null]] Caused by: java.lang.NullPointerException at org.apache.tomcat.util.modeler.Util.objectNameValueNeedsQuote(Util.java:26) SEVERE: ContainerBase.addChild: start: … Continue reading

Posted in Error messages, Java, Tomcat | Leave a comment

How to determine and build paths in JSP/Java code

In Java applications (servlets/JSP) users may need to determine absolute or relative paths where files may be uploaded or read from. We show examples for path retrieval and manipulation in Java code.  Physical path (on the server) can be retrieved … Continue reading

Posted in Java, Tomcat | Leave a comment

Dump and restore MySQL and PostgreSQL from Java and JSP code

Making MySQL or PostgreSQL dumps and restores from Java and JSP is not very different than usual use of dump/restore tools. See how to perform these tasks in our Java hosting environment and what to be warned about. The command … Continue reading

Posted in Databases, Java | Leave a comment