Last Published : April 23 2010

Help & FAQ!


911! My build is failing... Before you start screaming please check this FAQ section. Our build process is evolving so we might occassionally change stuff,please check here to see whether this has already been reported and if a solution exists.

Deploying the mobchannelWAR


Please follow these steps to deploy the mobchannel war file.
* Download the ROOT.war and the mobchannel.sql , from http://www.4shared.com
* Install JDK1.6 from http://java.sun.com/javase/downloads/index.jsp
* Install the mysql 5.1 from http://dev.mysql.com/downloads/mysql/5.1.html
* After installing mysql , run the following command to set up the mobchannel database , " source mobchannel.sql" from mysql Command Line Client.     Please dont forget to give the path to the mobchannel.sql file or make sure it is in the MYSQL_HOME/bin.
* Install Apache-Tomcat6.0 from http://tomcat.apache.org/download-60.cgi
* Replace the existing root.war in the tomcat webapps with the mobchannel ROOT.war downloaded.
* Make sure the heap memory available is not less than 150 MB. You may either create an environment variable     JAVA_OPTS with the value -Xms32m -Xmx150m or update this variable in the catalina.bat     in TOMCAT_HOME/bin.
* Please make sure an SMTP server listens on the default smtp port , a free smtp server can be downloaded from http://www.softstack.com/freesmtp.html.
* Now you are ready to start the tomcat server.
* The mobchannel web application should be available at http://localhost:8080

Setting up mobchannel Database for a developer environment


Please run the default ant task from mobchannelData/build.xml. This basically creates all the mobchanneldb database and tables!!

I ran the build script to deploy mobchannel.ear ,but the database connection couldnt be established


make sure you have the mobchannel database created . You need to run mobchannelData/build.xml to setup the database ready.

i am getting warfile needed error for the build involoving the war.


Make sure you are having ant1.7 , the most likely problem will be the ant version is less than 1.7.

Problems with build


My build hangs while it transfers the site resources to sourceforge.net


* Make sure you are using apache-ant-1.6.5 and jsch-0.1.29.jar in the classpath. apache-ant-1.7.0 hangs with scp task.
I get a ClassNotFoundException while i run the default ant task in make project
    * Please add the following jar files to the ant_home/lib
        * jsch-0.1.29.jar
        * ant-contrib.jar


Javadoc failed: java.io.IOException: Cannot run program "javadoc.exe": CreateProcess error=2, The system cannot find the file specified


The ant task fails in locate the javadoc.exe in teh java_home/bin, even though the java_home is set , for some wired reason. From a shell or command prompt , this could be solved just by seting the path to Java_Home/bin. In Eclipse , go to build/ant task/run as / environement and add a new variable to point to Java_Home/bin. for example : name : Path Value : ${env_var:JAVA_HOME}/bin;${env_var:Path} So we append this variable to the already existing path.

I get network not reachable exception while i try to register a new user in mobchannel app


You need to point to a valid SMTP server , in your JBoss_Home/server/'yourserver'/deploy/mail-service.xml. If you want to do it locally , you might want to use a free smtp server an example is Free SMTP Server ,which could be downloaded at , http://www.softstack.com/freesmtp.html

(temporary) setting up the environment for Maven


Since the transition to maven happens in phases , this is a temporary step , to run your builds.
1. install maven .
2. set an environement variable CPS_PROJECT_HOME to point to %MOBCHANNEL_HOME%/repository
2. copy the settings.xml in the mobchannel/make/maven/ to yourhome/.m2/
3. run mvn install , so maven downloads all the required libs to the local repository.