viernes, 29 de julio de 2011

VAADIN

View and edit HTML5 music visualization live with VJ:

Vaadin Adding background image to HorizontalLayout
https://vaadin.com/es/forum/-/message_boards/view_message/1015174

TRANSACTION LISTENER AND HTTPSERVLETREQUEST




ApplicationContext


EXCELLENT EXAMPLE: http://vaadin.com/directory/help/using-vaadin-add-ons/

REFCARDZ:
http://refcardz.dzone.com/refcardz/getting-started-vaadin

VAADIN AND GRAILS

ADDRESS BOOK-JPA INICIAL
http://vaadin.com/wiki/-/wiki/Main/Adding%20JPA%20to%20the%20Address%20Book%20Demo

JPA-REDUCIDO
http://devblog.mycorner.fi/18/adding-jpa-based-persistence-to-the-address-book-demo/

ABOUT PERSISTENCE
http://code.google.com/p/vaadin-appfoundation/wiki/Persistence

ECLIPSELINK AND VAADIN: http://vaadin.com/forum/-/message_boards/view_message/258818



ERRORES OBTENIDOS

SEVERE: Exception sending context initialized event to listener instance of class YourApplicationContextListener
Local Exception Stack:
Exception [EclipseLink-4002] (Eclipse Persistence Services - 1.1.4.v20100812-r7860): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'acesso.sequence' doesn't exist
Error Code: 1146
Call: UPDATE SEQUENCE SET SEQ_COUNT = SEQ_COUNT + ? WHERE SEQ_NAME = ?
bind => [50, SEQ_GEN]
Query: DataModifyQuery(sql="UPDATE SEQUENCE SET SEQ_COUNT = SEQ_COUNT + ? WHERE SEQ_NAME = ?")
at org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:323)


SOLUTION
It looks like your database structure hasn't been correctly set up. In your persistence.xml file, make sure your persistence unit has this line
1
< property name="eclipselink.ddl-generation" value="drop-and-create-tables" />


drop-and-create-tables means that when your facade is registered, the persistence unit will drop all tables from your database and then recreate them. You probably don't want to recreate the database everytime you start the server, so after the first time you can change the property's value to "none".

No hay comentarios: