1 .. When executing this command:./WAF configure -- prefix =/usr/local/cloudstack
Checking for program javac:/usr/local/jdk1.6.0 _ 24/bin/javac
Checking for program Java:/usr/local/jdk1.6.0 _ 24/bin/Java
Checking for program jar:/usr/local/jdk1.6.0 _ 24/bin/jar
Checking for program Python:/usr/bin/Python
Checking for Python version> = 2.4.0: OK 2.4.3
Detecting distribution: centos
Checking for program GCC or CC:/usr/bin/GCC
Checking for program CPP:/usr/bin/CPP
Checking for program AR:/usr/bin/Ar
Checking for program ranlib:/usr/bin/ranlib
Checking for GCC: OK
Checking for library pthread: Yes
Checking for library DL: Yes
Determining Management Server user name: cloud (Linux default)
Detecting Tomcat:/usr/local/cloudstack/share/tomcat6 (assumed presence of Tomcat there)
Detecting javadir:/usr/local/cloudstack/share/Java (using default $ {datadir}/Java directory)
Building classpaths: Done
Checking for Java class java. Io. fileoutputstream: OK
Checking for Java class javax. servlet. http. COOKIE: not found
/Opt/CloudStack-2.2.2-1-rhel5-oss/cloudstack-oss-2.1.4/wscript: Error: traceback (most recent call last ):
File "/opt/CloudStack-2.2.2-1-rhel5-oss/cloudstack-oss-2.1.4/. waf-1.5.18-4a51cccaa76ce32c621ef0df562c9ae7/wafadmin/utils. py", line 474, in recurse
Exec (compile (txt, file_path, 'exec '), DC)
File "/opt/CloudStack-2.2.2-1-rhel5-oss/cloudstack-oss-2.1.4/wscript_configure", line 285, in?
If not getattr (options. Options, 'nodepcheck', ''): check_dependencies (hard_deps)
File "/opt/CloudStack-2.2.2-1-rhel5-oss/cloudstack-oss-2.1.4/wscript_configure", line 283, in check_dependencies
Require_dependency (CLS, pkgs)
File "/opt/CloudStack-2.2.2-1-rhel5-oss/cloudstack-oss-2.1.4/wscript_configure", line 278, in require_dependency
Conf. Fatal ("cannot find the Java class % s (available in the distro packages: % s)" % (
File "/opt/CloudStack-2.2.2-1-rhel5-oss/cloudstack-oss-2.1.4/. waf-1.5.18-4a51cccaa76ce32c621ef0df562c9ae7/wafadmin/configure. py", line 91, in fatal
Raise configurationerror (MSG)
Configurationerror: Error: cannot find the Java class javax. servlet. HTTP. cookie (available in the distro packages: tomcat6-servlet-2.5-api, libservlet2.5-Java, (if on Windows, did you set tomcat_home to point to your Tomcat setup ?))
Note the red part
Solution:
Wget ftp://ftp.pbone.net/mirror/www.jpackage.org/jpackage/6.0/generic/free/RPMS/tomcat6-servlet-2.5-api-6.0.29-1.jpp6.noarch.rpm
Rpm Installation
2.
Checking for Java class org. Apache. Naming. Resources. constants: not found
/Opt/CloudStack-2.2.2-1-rhel5-oss/cloudstack-oss-2.1.4/wscript: Error: traceback (most recent call last ):
File "/opt/CloudStack-2.2.2-1-rhel5-oss/cloudstack-oss-2.1.4/. waf-1.5.18-4a51cccaa76ce32c621ef0df562c9ae7/wafadmin/utils. py", line 474, in recurse
Exec (compile (txt, file_path, 'exec '), DC)
File "/opt/CloudStack-2.2.2-1-rhel5-oss/cloudstack-oss-2.1.4/wscript_configure", line 285, in?
If not getattr (options. Options, 'nodepcheck', ''): check_dependencies (hard_deps)
File "/opt/CloudStack-2.2.2-1-rhel5-oss/cloudstack-oss-2.1.4/wscript_configure", line 283, in check_dependencies
Require_dependency (CLS, pkgs)
File "/opt/CloudStack-2.2.2-1-rhel5-oss/cloudstack-oss-2.1.4/wscript_configure", line 278, in require_dependency
Conf. Fatal ("cannot find the Java class % s (available in the distro packages: % s)" % (
File "/opt/CloudStack-2.2.2-1-rhel5-oss/cloudstack-oss-2.1.4/. waf-1.5.18-4a51cccaa76ce32c621ef0df562c9ae7/wafadmin/configure. py", line 91, in fatal
Raise configurationerror (MSG)
Configurationerror: Error: cannot find the Java class Org. apache. naming. resources. constants (available in the distro packages: tomcat6-lib, libtomcat6-java, (if on Windows, did you set tomcat_home to point to your Tomcat setup ?))
Installation package:
The packages listed by me are as follows:
Ecj-3.3.1.1-3.jpp5.noarch.rpm tomcat6-jsp-2.1-api-6.0.24-2.jpp5.noarch.rpm
Jakarta-commons-daemon-1.0.1-7.jpp5.noarch.rpm tomcat6-lib-6.0.24-2.jpp5.noarch.rpm
Jakarta-commons-dbcp-tomcat5-1.2.2-2.jpp5.noarch.rpm tomcat6-servlet-2.5-api-6.0.24-2.jpp5.noarch.rpm
Jakarta-commons-pool-tomcat5-1.3-11.jpp5.noarch.rpm ws-commons-java5-1.0.1-2.jpp5.noarch.rpm
Python-paramiko-1.7.2-1.el5.rf.noarch.rpm ws-commons-util-1.0.2-2.jpp5.noarch.rpm
Tomcat6-6.0.24-2.jpp5.noarch.rpm xml-commons-1.3.04-5.jpp5.noarch.rpm
Tomcat6-el-1.0-api-6.0.24-2.jpp5.noarch.rpm xml-commons-jaxp-1.3-apis-1.3.04-5.jpp5.noarch.rpm
Search for the above package and I will not upload it!