-
1. Re: How do I configure a forge prj for using mysql ?
lincolnthree May 1, 2013 4:00 PM (in response to thorman)Hey!
Sorry for the confusion.
This exception means you cannot specify a container if you are also specifying a direct JDBC connection. Remove the "--container JBOSS_AS7 " from your command and you should have better luck.
Let me know how that goes.
~Lincoln
-
2. Re: How do I configure a forge prj for using mysql ?
thorman May 1, 2013 4:38 PM (in response to lincolnthree)Hello & thanks for the reply.
I tried this and get the following response:
[test2] test2 $ persistence setup --provider HIBERNATE --database MYSQL5_INNODB --jdbcURL jdbc:mysql://devdb:3306/ab_log
--jdbcUsername root --jdbcPassword passw --named AbLogDbPu --driver com.mysql.jdbc.Driver
***INFO*** The command [setup] takes [0] unnamed argument(s), but found [1].
***INFO*** Swallowed unknown token [--driver] for command [setup].
***INFO*** Swallowed unknown token [com.mysql.jdbc.Driver] for command [setup].
? [container=ARG (of type org.jboss.forge.spec.javaee.jpa.api.JPAContainer)]:
it seems as it requires a container to be set.
If I tab at the container question I get the following alternatives:
JBOSS_AS6 JBOSS_AS7 JBOSS_EAP6 GLASSFISH_3 WEBLOGIC_12C CUSTOM_JDBC
CUSTOM_JTA CUSTOM_NON_JTA TOMEE SAP_LJS
// Mikael
-
3. Re: How do I configure a forge prj for using mysql ?
lincolnthree May 1, 2013 5:16 PM (in response to thorman)Ah, right, I forgot...
Use
--container CUSTOM_JDBC