Forum Problems Installing LAMS: Re: Problem when ant prepare-db


 
Search: 

3: Re: Problem when ant prepare-db
In response to 1 01/25/06 11:33 AM
[ Reply | Forward ]
Thanks.  That problem ended up being due to the way Fedora Core 2 doesn't allow you to change where ant is located.  I had to put ant-contrib-0.6.jar in the directory where Fedora thought it should be.
However, i have a new problem :-).
Now I am doing it in Red Hat 4
When I run ant prepare-db I get this:
BUILD FAILED
/home/jeremy/lams-server1.0.2/lams-package/ant/build.xml:132: The following error occurred while executing this line:
/home/jeremy/lams-server1.0.2/lams-package/ant/build.xml:309: com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:

** BEGIN NESTED EXCEPTION **

java.net.UnknownHostException
MESSAGE: jeremy: jeremy

STACKTRACE:

java.net.UnknownHostException: aretao: aretao
        at java.net.InetAddress.getAllByName0(InetAddress.java:1128)
        at java.net.InetAddress.getAllByName0(InetAddress.java:1098)
        at java.net.InetAddress.getAllByName(InetAddress.java:1061)
        at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:137)
        at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:284)
        at com.mysql.jdbc.Connection.createNewIO(Connection.java:2541)
        at com.mysql.jdbc.Connection.<init>(Connection.java:1474)
        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
        at org.apache.tools.ant.taskdefs.JDBCTask.getConnection(JDBCTask.java:304)
        at org.apache.tools.ant.taskdefs.SQLExec.execute(SQLExec.java:347)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386)
        at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:106)        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
        at org.apache.tools.ant.Main.runBuild(Main.java:673)
        at org.apache.tools.ant.Main.startAnt(Main.java:188)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)


I really have no idea what I am doing wrong, thanks for the help, I'm really trying to work through how to install lams.  I managed to install it on a server a few months ago, but it had nothing on it.  This one has tomcat and java 1.5 jdk installed.  Do I need to go to 1.4.2 sdk?
Thanks

Posted by Jeremy Shankle

Reply to first post on this page
Back to Problems Installing LAMS