Chapter 3: Tomcat Installation This will produce the

Chapter 3: Tomcat Installation This will produce the normal startup messages, and any errors will be displayed. These errors also appear in the stdout.logfile in the $CATALINA_HOME/logssubdirectory. Some common problems are discussed next. Class Version Error Tomcat 6 requires Java SE 5 or later to run. If an earlier version of Tomcat is used, you will see the following exception during Tomcat startup. Exception in thread main java.lang.UnsupportedClassVersionError: org/apache/catalina/startup/Bootstrap (Unsupported major.minor version 49.0) Check your JAVA_HOME settings, and make sure they point to a Java SE 5 installation. The Port Number Is in Use One possible error is that the chosen port is already in use. The error message will look similar to the following: LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use: JVM_Bind:8080 Tomcat uses port 8080 by default, as mentioned previously. You can determine whether another program is using this port by using the netstat utility on both Windows and Linux. Type netstat -aoon Windows and netstat -lp on Linux. Your shell/command prompt will list open ports on your system, which should indicate any process that is interfering with Tomcat. You have two options: shut the process down or change Tomcat s port as described earlier. Running Multiple Instances A common problem is trying to start a new Tomcat instance when one is already running. This is especially true if it s running as a daemon thread. Check to ensure that you aren t already running another instance of Tomcat. A Proxy Is Blocking Access If you have a proxy set up for all HTTP services, it may be blocking access to the server. You should bypass the proxy for all local addresses. Instructions are provided here. In Firefox 2, Choose Tools . Options. Next, choose Advanced, then Network Tab and then Settings. Select Manual proxy configuration and enter localhostand 127.0.0.1 in the No proxies for box. In Internet Explorer, choose Tools .Internet Options and then choose the Connections tab. Select the Lan Settings button and enter your proxy configuration by selecting the Advancedbutton in the window that opens. Enter localhostand 127.0.0.1in the Exceptions box. This should work in most versions of Internet Explorer.

If you looking for unlimited one inclusive web hosting plan please check cheap web hosting website.

Comments are closed.