Troubleshooting SNMP Adapter Configuration Manager installation issues
After installing SNMP Adapter Configuration Manager, when you start the tomcat server on Linux and Solaris platforms, following errors are displayed:
JAVA_HOME command not found
JAVA_HOME: command not found
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
Workaround:
Do the following:
- Navigate to the <SNMP Config Manager Install Directory>/SNMPAdapter/jakarta-tomcat-5.0.25/bin directory, and open the catalina.sh file.
Find the following code line:
JAVA_HOME=/usr/java/jdk1.7.0_80export JAVA_HOME
- Split the code line into two lines so that the
export JAVA_HOME
command is on the next line as shown below:JAVA_HOME=/usr/java/jdk1.7.0_80
export JAVA_HOME
- Save and close the catalina.sh file.
touch: cannot touch `/opt/SNMPAdapter/jakarta-tomcat-5.0.25/logs/catalina.out': No such file or directory
touch: cannot touch `/opt/SNMPAdapter/jakarta-tomcat-5.0.25/logs/catalina.out': No such file or directory
Workaround:
Do the following:
- Navigate to the <SNMP Config Manager Install Directory>/SNMPAdapter/jakarta-tomcat-5.0.25 directory.
- Create a directory named logs.
Once you resolve the errors as explained in the preceding sections, restart the tomcat server.
Where to go from here
- To check other SNMP Event Adapter troubleshooting issues, see Troubleshooting SNMP event adapter.
- To access SNMP Adapter Configuration Manager, see Using the SNMP Adapter Configuration Manager.
Was this page helpful? Yes No
Submitting...
Thank you
Comments
Log in or register to comment.