Address in Use Error using Tomcat on Windows XP

Steve Neal Development 2 Comments

Occasionally you might get an error like this when launching Tomcat: java.net.BindException: Address already in use: JVM_Bind <null>:8080 This can be caused if you already have Tomcat running as it will hold onto a network port for handling HTTP requests. In the above example the port shown is 8080. However, this error is sometimes apparent even when Tomcat has already …

Exposing Spring Beans as JMX Managed Beans in Tomcat

Steve Neal Development, Java Programming 4 Comments

JMX provides a simple solution to application management. In this article, we’ll look at how Spring beans can be easily exported as a JMX MBean making their methods and properties available from a JMX client application, such as JConsole. This technique has the following advantages: Your Java bean’s methods can be triggered manually and interactively (great for application development and …