Monthly Archives: September 2011

How can I configure Tomcat with multiple virtual hosts?

With Tomcat running on JVM Host dedicated JVM you have full control over configuration files. You may host multiple domains and map them to particular web applications. First step is to map a domain or a directory under it to … Continue reading

Posted in Java, Tomcat | 4 Comments

What JDBC string and driver should I use to connect to your database servers?

By default we offer MySQL and PostgreSQL and we recommend the following drivers: MySQL Connector/J driver connection string looks like “jdbc:mysql://[hostname]:[port]/[db_name]” You can find the driver on MySQL website at http://www.mysql.com/products/connector/j/ Example driver archive name: mysql-connector-java-5.1.5-bin.jar PostgreSQL driver connection string … Continue reading

Posted in Databases, Java | Leave a comment

How to use Unicode (UTF-8) with Tomcat, Java, PostgreSQL and JDBC?

I will show you on a real example where we will create a simple page with form to enter Unicode strings and display them. The strings will be saved to PostgreSQL database. Note that in our previous article we showed … Continue reading

Posted in Databases, Java, Tomcat | Leave a comment

How to use Unicode (UTF-8) with Tomcat, Java, MySQL and JDBC?

I will show you on a real example where we will create a simple page with form to enter Unicode strings and display them. The strings will be saved to MySQL database. We will create UTF-8 database and use JDBC … Continue reading

Posted in Databases, Java, Tomcat | Leave a comment

How to use timezones with Java Virtual Machine?

You can set timezone for many common programs like PHP or MySQL server. And of course you can do it with JVM. JVM Host clients can set timezone with our custom JVM control panel JVMCP. Timezone can also be set … Continue reading

Posted in Java | 1 Comment

How do I use Xserver with Java?

Some versions of the Java.AWT library on UNIX require a functioning X server. Setting -Djava.awt.headless=true is not helping in all cases. Client can get the followong error message: Can’t connect to X11 window server using ‘:0.0′ as the value of … Continue reading

Posted in Java | Leave a comment

java.net.BindException: Address already in use:8080

Please check how many java processes are you running. If more that one you need to kill them and restart application server. The Force Restart function in JVM control panel JVMCP does it. You can also do it with command … Continue reading

Posted in Java, Tomcat | Leave a comment

How do I override the default home page loaded by Tomcat?

With Tomcat on dedicated JVM, you usually test it by loading [WWW] http://yourdomain.com/ (If the default web server to application server catch-all mapping is set for your domain). The contents of that page are compiled into the index_jsp servlet. It … Continue reading

Posted in Java, Tomcat | Leave a comment

What is java.util.zip.ZipException: invalid entry CRC?

If your application is not being deployed and you are getting in application server logs: SEVERE: Error in dependencyCheck java.util.zip.ZipException: invalid entry CRC (expected 0x0 but got 0x6cdda3aa) at java.util.zip.ZipInputStream.read(ZipInputStream.java:171) at java.util.jar.JarInputStream.read(JarInputStream.java:177) at java.io.BufferedInputStream.read1(BufferedInputStream.java:256) at java.io.BufferedInputStream.read(BufferedInputStream.java:317) it probably means that … Continue reading

Posted in Java | Leave a comment