Mantis - Resin
Viewing Issue Advanced Details
4952 minor always 02-02-12 13:16 02-21-12 17:38
rickHigh  
ferg  
normal  
closed  
fixed  
none    
none 4.0.26  
0004952: Can't deploy mysql jar file to /etc/resin/resin-inf
database-conf.xml:5: com.caucho.sql.DriverConfig.setType(): com.caucho.config.ConfigRuntimeException: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver in EnvironmentClassLoader[resin-system:,NEW]

3:
4: <database jndi-name="jdbc/blogdb">
5: <driver type="com.mysql.jdbc.Driver">
6: <url>jdbc:mysql://localhost:3306/blogdb</url> [^]
7: <user>bloguser</user>

rick@ubuntu:~/examples/blog/database-conf$ ls /etc/resin/resin-inf
database-conf.xml mysql-connector-java-5.1.18.jar


Notes
(0005694)
rickHigh   
02-02-12 13:24   
When I add the mysql jar file to /usr/local/share it works.

$ ls /usr/local/share/resin/lib/mysql-connector-java-5.1.18.jar
/usr/local/share/resin/lib/mysql-connector-java-5.1.18.jar


From conversation that I had with Scott, it seems like dropping things in $$/resin-inf like jar files should work as this is similar to resin remote config deploy.
(0005699)
ferg   
02-21-12 17:38   
belongs in /etc/resin/app-inf/* for 4.0.26 or cloud:/app-inf/*