Welcome, Guest
Username: Password: Remember me
Archived CloudStack Forums for reference purposes please direct all future inquiries to the Apache CloudStack mailing lists.

incubator.apache.org/cloudstack/mailing-lists.html
  • Page:
  • 1
  • 2

TOPIC: Install issue from source on "ant deploydb"

Install issue from source on "ant deploydb" 1 year 11 months ago #7690

  • A1780
  • A1780's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Karma: 0
Hi guys, I'm having an issue getting this installed from source, I run "ant deploy-server" and it seems to work, but then I run "ant deploydb" and I get this:
Buildfile: /root/CloudStack/build.xml
     [echo] Using build parameters from /root/CloudStack/build/build-cloud.properties
     [echo] Using company info from /root/CloudStack/build/cloud.properties
     [echo] Using override file from /root/CloudStack/build/replace.properties
deploydb:
     [echo] deploydb server-setup.xml templates.sql ${DBROOTPW}
Enter password:      [exec] Recreating Database.
     [exec] Please enter root password for MySQL.
     [exec] CP is ./:${env.CATALINA_HOME}/conf:${env.CATALINA_HOME}/webapps/client/WEB-INF/lib/*.jar:${env.CATALINA_HOME}/lib/*.jar
     [exec] Exception in thread "main" java.lang.NoClassDefFoundError: com/cloud/test/DatabaseConfig
     [exec] Caused by: java.lang.ClassNotFoundException: com.cloud.test.DatabaseConfig
     [exec]     at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
     [exec]     at java.security.AccessController.doPrivileged(Native Method)
     [exec]     at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
     [exec]     at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
     [exec]     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
     [exec]     at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
     [exec] Could not find the main class: com.cloud.test.DatabaseConfig. Program will exit.
     [exec] Result: 1
BUILD SUCCESSFUL
Total time: 4 seconds

Anyone know how to fix this?
The administrator has disabled public write access.

Re: Install issue from source on "ant deploydb" 1 year 11 months ago #7692

  • brooks
  • brooks's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 55
  • Thank you received: 9
  • Karma: 4
Set $CATALINA_HOME to point to your tomcat install dir and you should be fine. For example, my tomcat live in /usr/local/apache-tomcat-6.0.33 so in bash I use:

export CATALINA_HOME=/usr/local/apache-tomcat-6.0.33

We need to get that included in the docs.
The administrator has disabled public write access.

Re: Install issue from source on "ant deploydb" 1 year 11 months ago #7698

  • A1780
  • A1780's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Karma: 0
I did that, thing look a bit different now, but same error:
Buildfile: /root/CloudStack/build.xml
     [echo] Using build parameters from /root/CloudStack/build/build-cloud.properties
     [echo] Using company info from /root/CloudStack/build/cloud.properties
     [echo] Using override file from /root/CloudStack/build/replace.properties
deploydb:
     [echo] deploydb server-setup.xml templates.sql ${DBROOTPW}
     [exec] Recreating Database.
Enter password:      [exec] Please enter root password for MySQL.
     [exec] CP is ./:/usr/local/apache-tomcat-7.0.22/conf:/usr/local/apache-tomcat-7.0.22/webapps/client/WEB-INF/lib/*.jar:/usr/local/apache-tomcat-7.0.22/lib/annotations-api.jar:/usr/local/apache-tomcat-7.0.22/lib/catalina-ant.jar:/usr/local/apache-tomcat-7.0.22/lib/catalina-ha.jar:/usr/local/apache-tomcat-7.0.22/lib/catalina-tribes.jar:/usr/local/apache-tomcat-7.0.22/lib/catalina.jar:/usr/local/apache-tomcat-7.0.22/lib/ecj-3.7.jar:/usr/local/apache-tomcat-7.0.22/lib/el-api.jar:/usr/local/apache-tomcat-7.0.22/lib/jasper-el.jar:/usr/local/apache-tomcat-7.0.22/lib/jasper.jar:/usr/local/apache-tomcat-7.0.22/lib/jsp-api.jar:/usr/local/apache-tomcat-7.0.22/lib/servlet-api.jar:/usr/local/apache-tomcat-7.0.22/lib/tomcat-api.jar:/usr/local/apache-tomcat-7.0.22/lib/tomcat-coyote.jar:/usr/local/apache-tomcat-7.0.22/lib/tomcat-dbcp.jar:/usr/local/apache-tomcat-7.0.22/lib/tomcat-i18n-es.jar:/usr/local/apache-tomcat-7.0.22/lib/tomcat-i18n-fr.jar:/usr/local/apache-tomcat-7.0.22/lib/tomcat-i18n-ja.jar:/usr/local/apache-tomcat-7.0.22/lib/tomcat-jdbc.jar:/usr/local/apache-tomcat-7.0.22/lib/tomcat-util.jar
     [exec] Exception in thread "main" java.lang.NoClassDefFoundError: com/cloud/test/DatabaseConfig
     [exec] Caused by: java.lang.ClassNotFoundException: com.cloud.test.DatabaseConfig
     [exec]     at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
     [exec]     at java.security.AccessController.doPrivileged(Native Method)
     [exec]     at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
     [exec]     at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
     [exec]     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
     [exec]     at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
     [exec] Could not find the main class: com.cloud.test.DatabaseConfig. Program will exit.
     [exec] Result: 1
BUILD SUCCESSFUL
Total time: 3 seconds
The administrator has disabled public write access.

Re: Install issue from source on "ant deploydb" 1 year 11 months ago #7699

  • brooks
  • brooks's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 55
  • Thank you received: 9
  • Karma: 4
Did you do an "ant deploy-server" with the $CATALINA_HOME var set?
The administrator has disabled public write access.

Re: Install issue from source on "ant deploydb" 1 year 11 months ago #7700

  • A1780
  • A1780's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Karma: 0
Ok, that fixed it when I ran it again and then deploydb. How about this?
[root@xcp CloudStack]# ant debug
Buildfile: /root/CloudStack/build.xml
     [echo] Using build parameters from /root/CloudStack/build/build-cloud.properties
     [echo] Using company info from /root/CloudStack/build/cloud.properties
     [echo] Using override file from /root/CloudStack/build/replace.properties
debug-tomcat:
     [java] Listening for transport dt_socket at address: 8787
     [java] Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory
     [java]     at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:60)
     [java] Caused by: java.lang.ClassNotFoundException: org.apache.juli.logging.LogFactory
     [java]     at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
     [java]     at java.security.AccessController.doPrivileged(Native Method)
     [java]     at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
     [java]     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
     [java]     ... 1 more
     [java] Could not find the main class: org.apache.catalina.startup.Bootstrap. Program will exit.
     [java] Java Result: 1
debug:
BUILD SUCCESSFUL
Total time: 2 seconds
The administrator has disabled public write access.

Re: Install issue from source on "ant deploydb" 1 year 11 months ago #7701

  • brooks
  • brooks's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 55
  • Thank you received: 9
  • Karma: 4
The version of tomcat that is included with CentOS doesn't work with debug.
You have to use the version from:

apache.osuosl.org/tomcat/tomcat-6/v6.0.3...he-tomcat-6.0.33.zip

upzip to /usr/local/, set your CATALINA_HOME=/usr/local/apache-tomcat-6.0.33

deploy-server
ant debug

Should get you up and running.
The administrator has disabled public write access.
The following user(s) said Thank You: A1780
  • Page:
  • 1
  • 2
Time to create page: 0.295 seconds

Open@Citrix

Citrix supports the open source community via developer support and evangeslism. We have a number of developers and evangelists that participate actively in the open source community in Apache Cloudstack, OpenDaylight, Xen Project and XenServer. We also conduct educational activities via the Build A Cloud events held all over the world. 

Connect