[forge-issues] [JBoss JIRA] (FORGE-2162) Two previous JIRA changes have been undone FORGE-1984 and FORGE-1990

Gerry Matte (JIRA) issues at jboss.org
Tue Dec 16 16:49:30 EST 2014


     [ https://issues.jboss.org/browse/FORGE-2162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gerry Matte reopened FORGE-2162:
--------------------------------


I finally got around to retesting with the new option name for password and I added the option to save the password.

The changes were not effective in resolving the problem:
JBoss Forge, version [ 2.12.3.Final ] - JBoss, by Red Hat, Inc. [ http://forge.jboss.org ]

[$code]$ project-new --named par --topLevelPackage ca.gerrymatte.par --type war --finalName par ;
***SUCCESS*** Project named 'par' has been created.
[par]$ jpa-setup --provider Hibernate --dbType MYSQL5_INNODB --container JBOSS_AS7 --dataSourceName java:jboss/datasources/parDS;
***SUCCESS*** Persistence (JPA) is installed.
[persistence.xml]$ connection-create-profile --name parConnection --hibernateDialect org.hibernate.dialect.MySQL5InnoDBDialect --driverClass com.mysql.jdbc.Driver --driverLocation C:/s/jcla
^C
[persistence.xml]$ connection-create-profile --name parConnection --hibernateDialect org.hibernate.dialect.MySQL5InnoDBDialect --driverClass com.mysql.jdbc.Driver --driverLocation C:/s/jcla
^C
[persistence.xml]$ connection-create-profile --name parConnection --hibernateDialect org.hibernate.dialect.MySQL5InnoDBDialect --driverClass com.mysql.jdbc.Driver --driverLocation C:/s/jclas
ses/drivers/mysql.jar --userName root --connectionProfilePassword xxxxxx --saveUserPassword --jdbcUrl jdbc:mysql:///par?characterEncoding=UTF-8&characterSetResults=UTF-8&autoReconnec
t=true&zeroDateTimeBehavior=convertToNull --verifyConnection ;
***SUCCESS*** Connection profile parConnection has been saved successfully
[persistence.xml]$ jpa-generate-entities-from-tables --databaseTables * --connectionProfile parConnection --targetPackage ca.gerrymatte.par.model ;
***ERROR*** Access denied for user 'root'@'localhost' (using password: NO)
***ERROR*** At least one database table must be specified
[persistence.xml]$

> Two previous JIRA changes have been undone FORGE-1984 and FORGE-1990
> --------------------------------------------------------------------
>
>                 Key: FORGE-2162
>                 URL: https://issues.jboss.org/browse/FORGE-2162
>             Project: Forge
>          Issue Type: Bug
>          Components: Database Tools
>    Affects Versions: 2.12.0.Final
>         Environment: Windows 7, JDK7, Jboss AS7 and Wildfly 8.1
>            Reporter: Gerry Matte
>
> The following two JIRA requests have now returned as bugs.
> FORGE-1984 : jpa-generate-entities-from-tables add parameter to select all tables without prompting (fixed in version 2.8.1)
> FORGE-1990 : connection-create-profile fails to retain the database connection password (fixed in version 2.9.2.Final)
> As noted in https://developer.jboss.org/message/912189#912189 forum posting, the successful commands to create a connectionProfile and generate jpa entities from a mysql databse worked without problems in version 2.10.0.Final
> On Dec 2, Bruce Link reported problems implementing commands identical to mine but using forge 2.12.0.Final.
> Repeating my own commands that were previously successful, I now encountered the same two errors that were previously fixed by the above two JIRAs.
> I tested with both 2.12.0.Final and with 2.12.3.Final.  Both versions failed to retain the database user password and also failed select all database tables (although the connection failure may have triggered the second error message)
> Please reimplement the changes made with FORGE-1984 and FORGE-1990.  I am happy to retest when you are ready.
> Gerry Matte



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)


More information about the forge-issues mailing list