Forum Problems Installing LAMS: Re: Re: Re: installing lams problem in linux


 
Search: 

4: Re: Re: Re: installing lams problem in linux
In response to 3 05/06/07 08:44 PM
[ Reply | Forward ]
Hi Ablet,

Did you copy the binary_package folder (output of untar) into /var/www? Note that although LAMS is a web application, it won't work straight away if you put it on a web folder.

The unix installer runs some scripts that create the database table and deploy the 'LAMS code' into the JBoss server to be run.

At any rate, can you run the following command in your /var/www/lams folder?

ls -laR ant/

and post the output of what you get here?

It seems for the error you post above:

> Class Not Found: JDBC driver com.mysql.jdbc.Driver


That the mysql driver is not in the ant/lib directory... so we want to check whether that's the case.

Thanks,

Ernie

Posted by Ernie Ghiglione

5: Re: Re: installing lams problem in linux
In response to 4 05/06/07 10:33 PM
[ Reply | Forward ]
Hi,Ernie:
Thanks for your reply.
when i typed ls -laR ant/,i can see the following informations:

[root@localhost lams]# ls -laR ant/
ant/:
总计 16
drwxr-xr-x 4 root root 4096 01-15 07:36 .
drwxr-xr-x 8 root root 4096 05-07 12:19 ..
drwxr-xr-x 2 root root 4096 01-18 11:46 bin
drwxr-xr-x 2 root root 4096 01-23 08:20 lib

ant/bin:
总计 40
drwxr-xr-x 2 root root 4096 01-18 11:46 .
drwxr-xr-x 4 root root 4096 01-15 07:36 ..
-rwxr-xr-x 1 root root 9725 01-15 07:32 ant
-rwxr-xr-x 1 root root 861 01-15 07:32 antRun
-rwxr-xr-x 1 root root 2199 01-15 07:32 antRun.pl
-rwxr-xr-x 1 root root 3200 01-15 07:32 complete-ant-cmd.pl
-rwxr-xr-x 1 root root 4422 01-15 07:32 runant.pl

ant/lib:
总计 1948
drwxr-xr-x 2 root root 4096 01-23 08:20 .
drwxr-xr-x 4 root root 4096 01-15 07:36 ..
-rw-r--r-- 1 root root 224277 01-23 08:20 ant-contrib-1.0b3.jar
-rw-r--r-- 1 root root 1289806 01-15 07:36 ant.jar
-rw-r--r-- 1 root root 11734 01-15 07:36 ant-launcher.jar
-rwxr-xr-x 1 root root 446464 01-15 07:36 mysql-connector-java-3.1.12-bin.jar

so ,how can i slove that problem?
thanks!

Posted by ablet wayit

6: Re: Re: Re: installing lams problem in linux
In response to 5 05/06/07 11:12 PM
[ Reply | Forward ]
Looks like the required library is in the right place... these commands will tell you where Ant is looking:

ant -diagnostics | grep ant.library.dir
ant -diagnostics | grep java.class.path

The first should say something like, '/var/www/lams/ant/lib' and the second should include mysql-connector-java-3.1.12-bin.jar somewhere.

Posted by Jun-Dir Liew

8: Re: Re: Re: Re: installing lams problem in linux
In response to 6 05/16/07 12:18 PM
[ Reply | Forward ]
Hi Jun-Dir

I have the very same problem that Ablet... I have done everything but I cant install LAMS 2.0

I executed ant -diagnostics | grep ant.library.dir and i got:
ant.library.dir : /usr/share/ant/lib

Also, I wrote: ant -diagnostics | grep java.class.path and this is the output:
java.class.path : /usr/share/java/ant.jar:/usr/share/java/ant-launcher.jar:/usr/share/java/jaxp_parser_impl.jar:/usr/share/java/xml-commons-apis.jar:/usr/java/jdk1.6.0_01/lib/tools.jar

I have CentOS 5, Apache/2.2.3 (CentOS), Mysql 5.0.22, JDK jdk1.6.0_01, Jboss 4.0.2.

I need help, Carla

Posted by Carla Segura

9: Re: Re: Re: Re: Re: installing lams problem in linux
In response to 8 05/16/07 07:44 PM
[ Reply | Forward ]
Hi Carla,

I think you're using the ant included with your OS, rather than the ant included with the lams package. That's OK, but it needs to know where to find the mysql jar.

One way to do this is to include it as an argument to ant, as Luke said:

ant -lib /path/to/lams/package/ant/lib install

Or, copy the mysql jar to /usr/share/java (as that seems to be where your copy of ant has its libraries):

cp /path/to/lams/package/ant/lib/mysql-connector-java-3.12-bin.jar /usr/share/java

Posted by Jun-Dir Liew

10: Re: Re: Re: Re: Re: installing lams problem in linux
In response to 8 05/17/07 01:01 AM
[ Reply | Forward ]
Carla,

The LAMS2.0.2 installer is available if you want to give this a go instead.

Thanks,

Ernie

Posted by Ernie Ghiglione

11: Re: Re: Re: Re: Re: Re: installing lams problem in linux
In response to 10 05/17/07 09:36 AM
[ Reply | Forward ]
Thank you, Jun-Dir and Ernie...

I decided to try the installer mentioned by Ernie and, everything goes perfect!

Thank you very much!
Krla

Posted by Carla Segura

7: Re: Re: Re: installing lams problem in linux
In response to 5 05/08/07 05:51 PM
[ Reply | Forward ]
You could try this command to make ant look directly for the JDBC library:

ant -lib (directory containing mysql-connector-java-3.1.12-bin.jar) install

Ie if you are in the root install package dir:

ant -lib ant/lib install

Posted by Luke Foxton

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