I have the same problem with H2
C:\wildfly\bin>jboss-cli.bat --file=C:\unifiedpush\databases\h2-database-config.
cli
The batch failed with the following error (you are remaining in the batch editin
g mode to have a chance to correct the error): {"JBAS014653: Composite operation
failed and was rolled back. Steps that failed:" => {"Operation step-1" => "JBAS
014803: Duplicate resource [
(\"subsystem\" => \"datasources\"),
(\"data-source\" => \"UnifiedPushDS\")
]"}}
> Date: Thu, 27 Mar 2014 14:06:36 +0100
> From: kpiwko@redhat.com
> To: aerogear-dev@lists.jboss.org
> Subject: Re: [aerogear-dev] unifiedpush server with mysql
>
> 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@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]"
> >
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
_______________________________________________
aerogear-dev mailing list
aerogear-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-dev