Europheus

A complete waste of a fine weblog.

Archive for the 'Java' Category

Returning a method parameter in JMock

28th July 2009

I recently ran into a problem where I needed to test a Java method that dynamically created objects inside. These objects needed to be passed to and returned by a mock service class, but I did not know how to inject this class since it was created inside the method being tested.
Here is a [...]

Posted in Java | No Comments »

javax.el.ELException: Function ‘:empty’ not found

18th August 2008

After installing Continuum 1.1 and Archiva 1.1.1 a number of web pages failed to load throwing exceptions such as javax.el.ELException: Function ‘:empty’ not found. As it turns out, this has to do with Tomcat version 6.0.18 and the EL library that it comes with.
As always, when on Linux, a script can fix things and [...]

Posted in Java, Tomcat | No Comments »

Running Java 6 on a Linux VPS

16th August 2007

Could not reserve enough space for object heap
Could not create the Java virtual machine
What? Not enough RAM to run Java?
Having a VPS (virtual private server) means that you are sharing RAM with other VPS owners on the server. The actual hardware of the server may have 4GB RAM for example, however your [...]

Posted in Java, Technology | 5 Comments »

Tomcat Upgrade on Plesk for Linux/Unix

14th March 2007

This article describes how to upgrade Tomcat running under Plesk and how to disconnect the control Plesk has over the Tomcat server. This may not be the ideal configuration for you if you have many clients using JSP webapps. Your clients will no longer have the ability to use the Plesk war upload [...]

Posted in Java, Plesk, Technology, Tomcat | No Comments »

Tomcat webapps and a Plesk vhost.conf file

3rd October 2006

Plesk loves to overwrite all manual changes to the httpd.include file for your vhost. In fact, this is the normal behavior of Plesk, and you must place all changes in a separate file, vhost.conf (notice the warning inside of httpd.include)

# ATTENTION!
# DO NOT MODIFY THIS FILE OR ANY PART OF IT. THIS CAN RESULT [...]

Posted in Java, Plesk, Technology, Tomcat | No Comments »