How to use Forge 2.10.1.Final jpa-generate-entities-from-tables ?
                                
                                
                                
                                    
                                        by forge-users@lists.jboss.org
                                    
                                
                                
                                        I'm using jboss developer studio 8 and trying to generate entities with forge 2.10.1.Final  and got the following error:
***ERROR*** Unable to make JDBC Connection [jdbc:mysql://localhost:3306/database]
The url is the same as I have in the datasource for another project, I think I'm doing something wrong, these are the commands:
project-new --named example_2
jpa-setup --provider Hibernate --dbType MYSQL5 --container WILDFLY --dataSourceName java:jboss/datasources/database 
jpa-generate-entities-from-tables --jdbcUrl jdbc:mysql://localhost:3306/database?characterEncoding=UTF-8 --userName user --userPassword password --driverLocation /home/user/mysql-connector-java-5.1.30-bin.jar
In my datasource I have the following:
 <datasource jta="true" jndi-name="java:jboss/datasources/database" pool-name="database" enabled="true" use-java-context="true" use-ccm="true">
                    <connection-url>jdbc:mysql://localhost:3306/database?characterEncoding=UTF-8</connection-url>
                    <driver>mysql-connector-java-5.1.30-bin</driver>
                    <new-connection-sql>SELECT 1</new-connection-sql>
                    <pool>
                        <min-pool-size>15</min-pool-size>
                        <max-pool-size>340</max-pool-size>
                    </pool>
                    <security>
                        <user-name>user</user-name>
                        <password>password</password>
                    </security>
                    <validation>
                        <check-valid-connection-sql>select 1</check-valid-connection-sql>
                    </validation>
                    <timeout>
                        <idle-timeout-minutes>10</idle-timeout-minutes>
                    </timeout>
  </datasource>
Try downloading the zip for GNU / Linux (Fedora 20) and gave the same error.
And even when I pass as parameter --hibernateDialect gives me the menu to choose the dialect(org.hibernate.dialect.MySQL5Dialect , option zero).
Any ideas?
Excuse my English is bad.
Posted by forums
Original post: https://developer.jboss.org/message/905155#905155