<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>ups with h2-database works<br><br><div><hr id="stopSpelling">From: marti1003@hotmail.com<br>To: aerogear-dev@lists.jboss.org<br>Date: Thu, 27 Mar 2014 08:11:43 -0500<br>Subject: Re: [aerogear-dev] unifiedpush server with mysql<br><br>
<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}
.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}
--></style>
<div dir="ltr">I have the same problem with H2<br><br>C:\wildfly\bin>jboss-cli.bat --file=C:\unifiedpush\databases\h2-database-config.<br>cli<br>The batch failed with the following error (you are remaining in the batch editin<br>g mode to have a chance to correct the error): {"JBAS014653: Composite operation<br> failed and was rolled back. Steps that failed:" => {"Operation step-1" => "JBAS<br>014803: Duplicate resource [<br> (\"subsystem\" => \"datasources\"),<br> (\"data-source\" => \"UnifiedPushDS\")<br>]"}}<br><br><div>> Date: Thu, 27 Mar 2014 14:06:36 +0100<br>> From: kpiwko@redhat.com<br>> To: aerogear-dev@lists.jboss.org<br>> Subject: Re: [aerogear-dev] unifiedpush server with mysql<br>> <br>> Hi,<br>> <br>> you're missing MySQL driver on server classpath. Datasource expects it is<br>> installed as JBoss/WF module:<br>> <br>> I'm not aware of better tutorial but you can follow these steps:<br>> <br>> 1/ You can get module scafold from here:<br>> https://github.com/aerogear/aerogear-unifiedpush-server/tree/master/databases/src/main/resources/modules/<br>> <br>> 2/ Get mysql-connector-java-5.1.18.jar file and put it into com/mysql/jdbc/main<br>> <br>> 3/ Copy whole module to AS7/WF modules directory (you just need the one<br>> starting with com, org is for postgres)<br>> <br>> HTH,<br>> <br>> Karel<br>> <br>> <br>> On Thu, 27 Mar 2014 07:52:35 -0500<br>> Willy Martin Aguirre Rodriguez <marti1003@hotmail.com> wrote:<br>> <br>> > I am trying to run unifiedpush server with mysql but I have some problem with<br>> > datasource<br>> > <br>> > https://github.com/aerogear/aerogear-unifiedpush-server#mysql-database-configuration<br>> > <br>> > I get errors when I try to run<br>> > <br>> > /Path/to/JBossAS/bin/jboss-cli.sh --file=./databases/mysql-database-config.cli<br>> > <br>> > I added datasource config https://gist.github.com/marti1125/9806765<br>> > <br>> > but I have this problem<br>> > <br>> > 07:36:19,418 ERROR [org.jboss.as.controller.management-operation] (Controller<br>> > Bo ot Thread) JBAS014613: Operation ("add") failed - address: ([<br>> > ("subsystem" => "datasources"),<br>> > ("data-source" => "UnifiedPushDS")<br>> > ]) - failure description: {<br>> > "JBAS014771: Services with missing/unavailable dependencies" => [<br>> > "jboss.driver-demander.java:jboss/datasources/UnifiedPushDS is<br>> > missing [ jboss.jdbc-driver.com_mysql_jdbc_Driver]",<br>> > "jboss.data-source.java:jboss/datasources/UnifiedPushDS is missing<br>> > [jbos s.jdbc-driver.com_mysql_jdbc_Driver]"<br>> >                                            <br>> _______________________________________________<br>> aerogear-dev mailing list<br>> aerogear-dev@lists.jboss.org<br>> https://lists.jboss.org/mailman/listinfo/aerogear-dev<br></div>                                            </div>
<br>_______________________________________________
aerogear-dev mailing list
aerogear-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-dev</div>                                            </div></body>
</html>