1 Reply Latest reply on Dec 21, 2007 1:40 PM by peterj

    Multiple JBoss installations, first one is ok second one can

    rbrandon

      Hi,

      I have a situation where a server (Linux) is configured with multiple Jboss 4.0.5GA installations (note: not instances within a single installation). All installations only have the "default" server and all servers are running successfully without port conflicts.

      We have deployed an application in the first installation that uses it's own MySQL database. As a result we have placed the JDBC driver in the server/default/lib folder of that installation and the application works correctly.

      When deploying a different application in the second JBoss installation which also uses it's own MySQL database, and after placing the same JDBC driver in the server/default/lib folder of that second installation, the application fails when it tries to find the "com.mysql.jdbc.Driver" class and throws a ClassNotFoundException.

      After undeploying the second application and deploying a copy of the first application in the second installation of JBoss, the same problem occurs. Because of this my conclusion is that this problem is not caused by the application itself.

      I compared the boot.log of both installations and both seem to use their own paths. I have no clue why this ClassNotFoundException occurs, can anybody help?

      Regards,

      Raymond

        • 1. Re: Multiple JBoss installations, first one is ok second one
          peterj

          I know I have done this before without any problems, but just to verify, I did it again. And it works for me.

          Which JDBC driver version are you using? Mine is mysql-connector-java-5.0.4.jar.

          Are you sure that you placed the jdbc jar in the right server/default/lib directory for the second server? I ask because I have often miscopied the file to some other directory (gee, you'd think it would work if I put in in deploy...)