There is a config file into WEB-INF/classes : hibernate.cfg.xml
In which you can find :
<property
name="hibernate.connection.driver_class">org.hsqldb.jdbcDriver</property>
<property
name="hibernate.connection.url">jdbc:hsqldb:hsql://localhost:3219</property>
<property name="hibernate.connection.username">sa</property>
<property name="hibernate.connection.password"></property>
<property
name="hibernate.dialect">org.hibernate.dialect.HSQLDialect</property>
<!--
Examples for configuring Hibernate to use the JDBC Driver Manager
<property
name="hibernate.connection.driver_class">org.gjt.mm.mysql.Driver</property>
<property name="hibernate.connection.url">
jdbc:mysql://localhost/roller?user=roller&password=tiger</property>
<property name="hibernate.connection.username">roller</property>
<property name="hibernate.connection.password">tiger</property>
<property
name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
-->
By default, the HSQL language is used and you are using Mysql. You must
just uncomment mysql block and comment Hsql block.
Restart and enjoy !
Best regards,
Jeffrey Blattman a écrit :
> sorry, good syntax for hibernate? i'm using mysql.
>
> this a completely new install. new database, no migration from
> previously install.
>
> thanks!
>
> nicolas muller wrote:
>> Do you have the good syntax for hibernate ? Which database are you
>> using ?
>>
>> Jeffrey Blattman a écrit :
>>
>>> fresh roller 3.1 install. when i access the user registration page, i
>>> get an empty page and an exception in the logs ...
>>>
>>> javax.servlet.jsp.JspException: ServletException in
>>> '/WEB-INF/jsps/core/UserNew.jsp': Cannot retrieve definition for form
>>> bean userFormEx on action /roller-ui/user
>>> at
>>> org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:921)
>>>
>>>
>>>
>>> any ideas?
>>>
>>> thanks
>>>
>>>
>