hi dave,
i am using MySQL 5, and i did NOT have the dialect set properly.
however, i changed it, re-initialized the DB, and still have the same
problem (i've never set that property before, so unless that changed
recently ...)
nicolas,
i am using a datasource, not direct DB access, so i don't have those
settings. i just have "connection.datasource".
i also see this in the logs which i missed initially ...
ERROR 2007-02-01 11:12:35,420 Digester:error - Parse Error at line 17
column 13: The content of element type "formset" is incomplete, it must
match "(constant*,form+)".
org.xml.sax.SAXParseException: The content of element type "formset" is
incomplete, it must match "(constant*,form+)".
looking in the webapp, there is a file, validation.xml that contains a
"formset" element ...
<formset>
<!--
Define form validation config in validation-forms.xml
-->
</formset>
indeed, it doesn't match the schema. do i need to fill something in there?
thanks.
nicolas muller wrote:
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