[aerogear-dev] unifiedpush server with mysql

Karel Piwko kpiwko at redhat.com
Thu Mar 27 09:06:36 EDT 2014


Hi,

you're missing MySQL driver on server classpath. Datasource expects it is
installed as JBoss/WF module:

I'm not aware of better tutorial but you can follow these steps:

1/ You can get module scafold from here:
https://github.com/aerogear/aerogear-unifiedpush-server/tree/master/databases/src/main/resources/modules/

2/ Get mysql-connector-java-5.1.18.jar file and put it into com/mysql/jdbc/main

3/ Copy whole module to AS7/WF modules directory (you just need the one
starting with com, org is for postgres)

HTH,

Karel


On Thu, 27 Mar 2014 07:52:35 -0500
Willy Martin Aguirre Rodriguez <marti1003 at hotmail.com> wrote:

> I am trying to run unifiedpush server with mysql but I have some problem with
> datasource
> 
> https://github.com/aerogear/aerogear-unifiedpush-server#mysql-database-configuration
> 
> I get errors when I try to run
> 
> /Path/to/JBossAS/bin/jboss-cli.sh --file=./databases/mysql-database-config.cli
> 
> I added datasource config  https://gist.github.com/marti1125/9806765
> 
> but I have this problem
> 
> 07:36:19,418 ERROR [org.jboss.as.controller.management-operation] (Controller
> Bo ot Thread) JBAS014613: Operation ("add") failed - address: ([
>     ("subsystem" => "datasources"),
>     ("data-source" => "UnifiedPushDS")
> ]) - failure description: {
>     "JBAS014771: Services with missing/unavailable dependencies" => [
>         "jboss.driver-demander.java:jboss/datasources/UnifiedPushDS is
> missing [ jboss.jdbc-driver.com_mysql_jdbc_Driver]",
>         "jboss.data-source.java:jboss/datasources/UnifiedPushDS is missing
> [jbos s.jdbc-driver.com_mysql_jdbc_Driver]"
>  		 	   		  


More information about the aerogear-dev mailing list