VRaptor3 e Hibernate 3.5 - Problemas com log4j [Resolvido]

Opa, ai está o print.

Está tudo certo com suas libs. Te pedi o print porque o vraptor, hibernate e spring usam uma façade para logging chamada SLF4J. Ela na verdade é apenas uma série de interfaces de logging (note o jar slf4j-api). Se você quiser usar o log4j precisa colocar o jar do log4j, commons-logging (ou um pseudo-commons-logging que vem com o SLF4J) e também o jar que faz o delegate para a sua implementação de logging (note agora o jar slf4j-log4j.jar).

Mas pelo que notei está tudo certo. O erro está mesmo que o logging para o projeto do Bronx não está sendo inicializado. O ideal é conversar com ele para ver o que está acontecendo.

De qualquer forma a sua aplicação está subindo e está gerando os logs do Vraptor corretamente. Tente acessar sua aplicação e ver o que aparece. Creio que tudo vá funcionar sem problemas. Não dá ainda para ver os logs do Hibernate, e nem mesmo suas tabelas foram criadas porque o Vraptor sobe o JPA com um could-start, ou seja, apenas no primeiro acesso, e não quando a aplicação inicializa.

Abraços

Um detalhe, quando criei o persistence.xml fui lá em new>XML, mas pesquisando aqui no Google, esse arquivo deve ser criado em new>other>JPA>Mapping file.
Fonte: http://www.edsongoncalves.com.br/2010/02/03/jpa-2-0-na-pratica-parte-2/

Mas essa opção está desabilitada.

Agora tô tomando erro 404 ao acessar a aplicação em http://localhost:8080/Imobiliaria, e antes estava rodando. =/

Não é que DEVE ser criado, ele pode ser criado pelo assistente do eclipse.

Sobre não rodar a aplicaçaõ, você pode ver o que aparece no log, excetuando aquela mensagem do projeto do bronx?

O pior é que não diz nada, além daquele erro do plugin do Bronx:

INFO: Initializing Coyote HTTP/1.1 on http-8080
17/04/2010 16:38:01 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 927 ms
17/04/2010 16:38:02 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
17/04/2010 16:38:02 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.26
16:38:02,939  INFO [VRaptorApplicationContext] Refreshing Root WebApplicationContext: startup date [Sat Apr 17 16:38:02 BRT 2010]; root of context hierarchy
16:38:03,264  INFO [VRaptorApplicationContext] Scanning WEB-INF/classes: /home/bruno/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp2/wtpwebapps/Imobiliaria/WEB-INF/classes
16:38:03,488  INFO [VRaptorApplicationContext] Scanning packages from WEB-INF/classes and jars: [br.com.bronx.vraptor.restrictrex]
16:38:03,544  INFO [DefaultListableBeanFactory] Overriding bean definition for bean 'org.springframework.context.annotation.internalAutowiredAnnotationProcessor': replacing [Root bean: class [org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] with [Root bean: class [br.com.caelum.vraptor.ioc.spring.InjectionBeanPostProcessor]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null]
16:38:03,923  INFO [DefaultListableBeanFactory] Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@147358f: defining beans [defaultTypeFinder,asmBasedTypeCreator,defaultTypeNameExtractor,defaultDeserializers,defaultAcceptHeaderToFormat,defaultInterceptorRegistry,defaultResourceNotFoundHandler,emptyElementsRemoval,pathAnnotationRoutesParser,defaultRouter,defaultMethodNotAllowedHandler,defaultConverters,defaultRoutes,encodingHandlerFactory,noRoutesConfiguration,XStreamXMLDeserializer,objenesisProxifier,defaultResourceTranslator,paranamerNameProvider,defaultMultipartConfig,stereotypeHandler,converterHandler,interceptorStereotypeHandler,deserializesHandler,stereotypedBeansRegistrar,defaultSpringLocator,defaultStatus,XStreamJSONSerialization,defaultValidator,outjectResult,defaultRepresentationResult,executeMethodInterceptor,defaultHttpResult,defaultRefererResult,downloadInterceptor,defaultPathResolver,deserializingInterceptor,applicationConfiguration,defaultResult,flashInterceptor,parametersInstantiatorInterceptor,replicatorOutjector,defaultMethodInfo,resourceLookupInterceptor,XStreamXMLSerialization,ognlParametersProvider,defaultFormatResolver,forwardToDefaultViewInterceptor,interceptorListPriorToExecutionExtractor,defaultLogicResult,defaultValidationViewsFactory,instantiateInterceptor,multipartInterceptor,emptyResult,defaultPageResult,jstlLocalization,bigDecimalConverter,bigIntegerConverter,booleanConverter,byteConverter,characterConverter,doubleConverter,enumConverter,floatConverter,integerConverter,localeBasedCalendarConverter,localeBasedDateConverter,longConverter,primitiveBooleanConverter,primitiveByteConverter,primitiveCharConverter,primitiveDoubleConverter,primitiveFloatConverter,primitiveIntConverter,primitiveLongConverter,primitiveShortConverter,shortConverter,uploadedFileConverter,VRaptorRequestProvider,httpServletRequestProvider,httpServletResponseProvider,httpSessionProvider,defaultInterceptorStack,defaultRequestExecution,entityManagerCreator,entityManagerFactoryCreator,JPATransactionInterceptor,usuarioDAO,imovelDAO,loginController,indexController,imagemController,homeController,imovelController,accesControllerInterceptor,imagens,usuarioLogado,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,restrictionChecker,pageHandler,org.springframework.aop.config.internalAutoProxyCreator,cacheBasedTypeCreator]; root of factory hierarchy
16:38:04,136  INFO [DefaultConverters   ] Registering bundled converters
16:38:04,309  INFO [RouteBuilder        ] /login                                                       -> LoginController.login()
16:38:04,318  INFO [RouteBuilder        ] /login/adiciona                                              -> LoginController.adiciona(Usuario)
16:38:04,318  INFO [RouteBuilder        ] /login/autentica                                             -> LoginController.autentica(Usuario)
16:38:04,319  INFO [RouteBuilder        ] /login/logout                                                -> LoginController.logout()
log4j:WARN No appenders could be found for logger (br.com.bronx.vraptor.restrictrex.startup.PageHandler).
log4j:WARN Please initialize the log4j system properly.
16:38:04,365  INFO [RouteBuilder        ] /index/lista                                                 -> IndexController.lista()
16:38:04,366  INFO [RouteBuilder        ] /index                                                       -> IndexController.index()
16:38:04,374  INFO [RouteBuilder        ] /filme/{filme.id}/imagem                                     -> ImagemController.upload(Imovel, UploadedFile)
16:38:04,379  INFO [RouteBuilder        ] /filme/{filme.id}/imagem                                     -> ImagemController.download(Imovel)
16:38:04,380  INFO [RouteBuilder        ] /home                                                        -> HomeController.home()
16:38:04,381  INFO [RouteBuilder        ] /imovel/adiciona                                             -> ImovelController.adiciona(Imovel)
16:38:04,382  INFO [RouteBuilder        ] /imovel/lista                                                -> ImovelController.lista()
16:38:04,383  INFO [RouteBuilder        ] /imovel/edita                                                -> ImovelController.edita(Long)
16:38:04,387  INFO [RouteBuilder        ] /imovel                                                      -> ImovelController.formulario()
16:38:04,391  INFO [RouteBuilder        ] /imovel/altera                                               -> ImovelController.altera(Imovel)
16:38:04,392  INFO [RouteBuilder        ] /imovel/remove                                               -> ImovelController.remove(Long)
16:38:04,393  INFO [VRaptor             ] VRaptor 3.1.1 successfuly initialized
17/04/2010 16:38:04 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
17/04/2010 16:38:04 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
17/04/2010 16:38:04 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/54  config=null
17/04/2010 16:38:04 org.apache.catalina.startup.Catalina start
INFO: Server startup in 2584 ms

Não faz sentido, já que no meu IndexController está:

@Path("/index")
	public void index() {
	}

O caminho jsp/index/index.jsp existe e na saida ele mostra que achou, mas ao acessar me dá o erro 404.

Quando você acessa a aplicação nenhum log é gerado além daquele Server startup in xxx ms?

E se você remover esse projeto do bronx temporariamente?

Garcia! Consegui gerar as tabelas seguindo a dica do link que postei:

http://www.edsongoncalves.com.br/2010/02/03/jpa-2-0-na-pratica-parte-2/

Criei a classe TesteDeJPA com o conteúdo:

package br.com.imobiliaria.hibernate;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

public class TesteDaJPA {
	public static void main(String[] args) {
	EntityManagerFactory emf = Persistence.createEntityManagerFactory("default");
	EntityManager em = emf.createEntityManager();
	em.close();
	emf.close();
	 }
	}

Depois rodei essa classe em “Run>As Java Aplication”. Virou a minha classe GeraTabela que eu tinha antes.
Só consegui dessa forma, pq no automágicamente não foi. =/

Ainda estou tomando erro 404 aqui e o console nem pra dar uma pista.

Opa! Parece que consegui uma pista:

17/04/2010 17:10:45 org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-6-sun-1.6.0.16/jre/lib/i386/client:/usr/lib/jvm/java-6-sun-1.6.0.16/jre/lib/i386:/usr/lib/jvm/java-6-sun-1.6.0.16/jre/../lib/i386:/usr/lib/jvm/java-6-sun-1.6.0.16/jre/lib/i386/client:/usr/lib/jvm/java-6-sun-1.6.0.16/jre/lib/i386:/usr/lib/xulrunner-addons:/usr/lib/xulrunner-addons:/usr/java/packages/lib/i386:/lib:/usr/lib
17/04/2010 17:10:46 org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:Imobiliaria' did not find a matching property.
17/04/2010 17:10:46 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
17/04/2010 17:10:46 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 868 ms
17/04/2010 17:10:46 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
17/04/2010 17:10:46 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.26

Não consegui interpretar esta mensagem, tá pedindo pra configurar source de que?

Setting property 'source' to 'org.eclipse.jst.jee.server:Imobiliaria' did not find a matching property.

Guevara, vamos por partes. Na verdade a classe que você roda via Run AS não é necessária, pois o vraptor cria isso para você. Porém isso não aconteceu porque, conforme expliquei logo mais acima, o Vraptor possui um cloud start, ou seja, a inicialização dele somente acontece quando você faz um primeiro acesso à aplicação. Ou seja, você faz deploy da aplicação, e quando você realmente acessar o vraptor vai subir os componentes, e então ele vai inicializar o JPA Factory e consecutivamente criar suas tabelas.

POREM, algum erro está acontecendo que sua aplicação inicializa, porém não o vraptor. E é isso que estou tentando entender o porque, já que aparentemente está tudo certo. Vamos fazer um teste? Remova o projeto de controle de acesso do bronx de seu projeto e tenta subir de novo e acessar sua aplicação.

Lembre-se de que Imobiliaria não é o mesmo que imobiliaria para um site no tomcat.

Sobre o WARN do eclipse, você pode ignorar isso, pois não é a causa do problema.

Outra questão importante: mostre aqui eu web.xml, pois acho que estamos tendo um conflito de componentes entre o projeto do bronx e o JPA Factory. Anexe ele aqui.

Agora entendi, a criação das tabelas se dá quando chamo a aplicação no browser então. =)

Meu web.xml:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
	id="WebApp_ID" version="2.5">
	<display-name>vraptor-blank-project</display-name>

 		
	<context-param>  
        <param-name>br.com.caelum.vraptor.packages</param-name>  
        <param-value>br.com.bronx.vraptor.restrictrex</param-value>  
    </context-param>
    
    <context-param>  
    <param-name>br.com.caelum.vraptor.provider</param-name>  
    <param-value>br.com.caelum.vraptor.util.jpa.JPACustomProvider</param-value>  
    </context-param>		
		
	<filter>
		<filter-name>vraptor</filter-name>
		<filter-class>br.com.caelum.vraptor.VRaptor</filter-class>
	</filter>

	<filter-mapping>
		<filter-name>vraptor</filter-name>
		<url-pattern>/*</url-pattern>
		<dispatcher>FORWARD</dispatcher>
		<dispatcher>REQUEST</dispatcher>
	</filter-mapping>
</web-app>

Enquanto isso vou removendo o que existe do plugin do Bronx pra ver se sobe.

Consegui Garcia! :smiley:
Não era o plugin do Bronx, era o @Path da Index mesmo:

@Path("/")
	public void index() {
	}

Antes estava @Path("/index"), e o pior é que estava funcionando assim. =/

O erro referente ao plugin continua, mas ai é com o Bronx, tô esperando ele postar lá no tópico pra ver o que pode ser.
Obrigado pela ajuda!!
Abraço!!

Mas que beleza :smiley:

Faz um teste… faz um drop nas tabelas do banco e acompanha no log ele criando as tabelas. Logo depois adiciona um campo em uma tabela qualquer para ver ele atualizar o DDL do banco. Quanto a isso, inclusive há mais opções como fazer DROP-CREATE de todo o banco toda fez que a aplicação sobe, muito bom quando vocẽ quer fazer algum teste automatizado.

Funcionou!!! :lol:

INFO: Server startup in 4923 ms
20:55:13,496  INFO [Version             ] Hibernate Annotations 3.5.0-Final
20:55:13,653  INFO [Environment         ] Hibernate 3.5.0-Final
20:55:13,676  INFO [Environment         ] loaded properties from resource hibernate.properties: {hibernate.connection.driver_class=org.postgresql.Driver, hibernate.cache.provider_class=org.hibernate.cache.HashtableCacheProvider, hibernate.max_fetch_depth=1, hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect, hibernate.jdbc.use_streams_for_binary=true, hibernate.format_sql=true, hibernate.query.substitutions=yes 'Y', no 'N', hibernate.proxool.pool_alias=pool1, hibernate.connection.username=postgres, hibernate.cache.region_prefix=hibernate.test, hibernate.hbm2ddl.auto=update, hibernate.connection.url=jdbc:postgresql://localhost/imobiliaria, hibernate.show_sql=true, hibernate.bytecode.use_reflection_optimizer=false, hibernate.connection.password=****, hibernate.jdbc.batch_versioned_data=true, hibernate.connection.pool_size=1}
20:55:13,688  INFO [Environment         ] using java.io streams to persist binary types
20:55:13,689  INFO [Environment         ] Bytecode provider name : javassist
20:55:13,716  INFO [Environment         ] using JDK 1.4 java.sql.Timestamp handling
20:55:14,193  INFO [Version             ] Hibernate Commons Annotations 3.2.0.Final
20:55:14,212  INFO [Version             ] Hibernate EntityManager 3.5.0-Final
20:55:15,028  INFO [AnnotationBinder    ] Binding entity from annotated class: br.com.imobiliaria.bean.Imovel
20:55:15,173  INFO [EntityBinder        ] Bind entity br.com.imobiliaria.bean.Imovel on table Imovel
20:55:15,287  INFO [AnnotationBinder    ] Binding entity from annotated class: br.com.imobiliaria.bean.Usuario
20:55:15,288  INFO [EntityBinder        ] Bind entity br.com.imobiliaria.bean.Usuario on table Usuario
20:55:15,296  INFO [AnnotationConfiguration] Hibernate Validator not found: ignoring
20:55:15,363  INFO [HibernateSearchEventListenerRegister] Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.
20:55:15,498  INFO [DriverManagerConnectionProvider] Using Hibernate built-in connection pool (not for production use!)
20:55:15,498  INFO [DriverManagerConnectionProvider] Hibernate connection pool size: 1
20:55:15,499  INFO [DriverManagerConnectionProvider] autocommit mode: true
20:55:15,539  INFO [DriverManagerConnectionProvider] using driver: org.postgresql.Driver at URL: jdbc:postgresql://localhost/imobiliaria
20:55:15,539  INFO [DriverManagerConnectionProvider] connection properties: {user=postgres, password=****, autocommit=true, release_mode=auto}
20:55:15,701  INFO [SettingsFactory     ] RDBMS: PostgreSQL, version: 8.3.10
20:55:15,702  INFO [SettingsFactory     ] JDBC driver: PostgreSQL Native Driver, version: PostgreSQL 8.4 JDBC4 (build 701)
20:55:15,852  INFO [Dialect             ] Using dialect: org.hibernate.dialect.PostgreSQLDialect
20:55:15,877  INFO [JdbcSupportLoader   ] Disabling contextual LOB creation as createClob() method threw error : java.lang.reflect.InvocationTargetException
20:55:15,879  INFO [TransactionFactoryFactory] Transaction strategy: org.hibernate.transaction.JDBCTransactionFactory
20:55:15,881  INFO [TransactionManagerLookupFactory] No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
20:55:15,881  INFO [SettingsFactory     ] Automatic flush during beforeCompletion(): disabled
20:55:15,881  INFO [SettingsFactory     ] Automatic session close at end of transaction: disabled
20:55:15,882  INFO [SettingsFactory     ] JDBC batch size: 15
20:55:15,882  INFO [SettingsFactory     ] JDBC batch updates for versioned data: enabled
20:55:15,889  INFO [SettingsFactory     ] Scrollable result sets: enabled
20:55:15,889  INFO [SettingsFactory     ] JDBC3 getGeneratedKeys(): enabled
20:55:15,889  INFO [SettingsFactory     ] Connection release mode: auto
20:55:15,890  INFO [SettingsFactory     ] Maximum outer join fetch depth: 1
20:55:15,891  INFO [SettingsFactory     ] Default batch fetch size: 1
20:55:15,891  INFO [SettingsFactory     ] Generate SQL with comments: disabled
20:55:15,891  INFO [SettingsFactory     ] Order SQL updates by primary key: disabled
20:55:15,891  INFO [SettingsFactory     ] Order SQL inserts for batching: disabled
20:55:15,891  INFO [SettingsFactory     ] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
20:55:15,898  INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
20:55:15,898  INFO [SettingsFactory     ] Query language substitutions: {yes='Y', no='N'}
20:55:15,898  INFO [SettingsFactory     ] JPA-QL strict compliance: enabled
20:55:15,898  INFO [SettingsFactory     ] Second-level cache: enabled
20:55:15,898  INFO [SettingsFactory     ] Query cache: disabled
20:55:15,939  INFO [SettingsFactory     ] Cache region factory : org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge
20:55:15,939  INFO [RegionFactoryCacheProviderBridge] Cache provider: org.hibernate.cache.HashtableCacheProvider
20:55:15,941  INFO [SettingsFactory     ] Optimize cache for minimal puts: disabled
20:55:15,941  INFO [SettingsFactory     ] Cache region prefix: hibernate.test
20:55:15,941  INFO [SettingsFactory     ] Structured second-level cache entries: disabled
20:55:15,958  INFO [SettingsFactory     ] Echoing all SQL to stdout
20:55:15,959  INFO [SettingsFactory     ] Statistics: disabled
20:55:15,960  INFO [SettingsFactory     ] Deleted entity synthetic identifier rollback: disabled
20:55:15,960  INFO [SettingsFactory     ] Default entity-mode: pojo
20:55:15,960  INFO [SettingsFactory     ] Named query checking : enabled
20:55:15,960  INFO [SettingsFactory     ] Check Nullability in Core (should be disabled when Bean Validation is on): enabled
20:55:16,096  INFO [SessionFactoryImpl  ] building session factory
20:55:16,495  INFO [SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name configured
20:55:16,517  INFO [SchemaUpdate        ] Running hbm2ddl schema update
20:55:16,517  INFO [SchemaUpdate        ] fetching database metadata
20:55:16,578  INFO [SchemaUpdate        ] updating schema
20:55:16,591  INFO [DatabaseMetadata    ] table not found: Imovel
20:55:16,596  INFO [DatabaseMetadata    ] table not found: Usuario
20:55:16,612  INFO [DatabaseMetadata    ] table not found: Imovel
20:55:16,616  INFO [DatabaseMetadata    ] table not found: Usuario
20:55:16,758  INFO [SchemaUpdate        ] schema update complete
20:55:17,149  INFO [HibernateSearchEventListenerRegister] Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.
20:55:17,149  INFO [AnnotationBinder    ] Binding entity from annotated class: br.com.imobiliaria.bean.Usuario
20:55:17,150  INFO [EntityBinder        ] Bind entity br.com.imobiliaria.bean.Usuario on table Usuario
20:55:17,152  INFO [AnnotationBinder    ] Binding entity from annotated class: br.com.imobiliaria.bean.Imovel
20:55:17,152  INFO [EntityBinder        ] Bind entity br.com.imobiliaria.bean.Imovel on table Imovel
20:55:17,159  INFO [AnnotationConfiguration] Hibernate Validator not found: ignoring
20:55:17,161  INFO [DriverManagerConnectionProvider] Using Hibernate built-in connection pool (not for production use!)
20:55:17,161  INFO [DriverManagerConnectionProvider] Hibernate connection pool size: 1
20:55:17,161  INFO [DriverManagerConnectionProvider] autocommit mode: false
20:55:17,161  INFO [DriverManagerConnectionProvider] using driver: org.postgresql.Driver at URL: jdbc:postgresql://localhost/imobiliaria
20:55:17,161  INFO [DriverManagerConnectionProvider] connection properties: {user=postgres, password=****}
20:55:17,166  INFO [SettingsFactory     ] RDBMS: PostgreSQL, version: 8.3.10
20:55:17,167  INFO [SettingsFactory     ] JDBC driver: PostgreSQL Native Driver, version: PostgreSQL 8.4 JDBC4 (build 701)
20:55:17,167  INFO [Dialect             ] Using dialect: org.hibernate.dialect.PostgreSQLDialect
20:55:17,168  INFO [JdbcSupportLoader   ] Disabling contextual LOB creation as createClob() method threw error : java.lang.reflect.InvocationTargetException
20:55:17,168  INFO [TransactionFactoryFactory] Using default transaction strategy (direct JDBC transactions)
20:55:17,168  INFO [TransactionManagerLookupFactory] No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
20:55:17,168  INFO [SettingsFactory     ] Automatic flush during beforeCompletion(): disabled
20:55:17,168  INFO [SettingsFactory     ] Automatic session close at end of transaction: disabled
20:55:17,168  INFO [SettingsFactory     ] JDBC batch size: 15
20:55:17,168  INFO [SettingsFactory     ] JDBC batch updates for versioned data: enabled
20:55:17,168  INFO [SettingsFactory     ] Scrollable result sets: enabled
20:55:17,168  INFO [SettingsFactory     ] JDBC3 getGeneratedKeys(): enabled
20:55:17,169  INFO [SettingsFactory     ] Connection release mode: auto
20:55:17,169  INFO [SettingsFactory     ] Maximum outer join fetch depth: 1
20:55:17,169  INFO [SettingsFactory     ] Default batch fetch size: 1
20:55:17,169  INFO [SettingsFactory     ] Generate SQL with comments: disabled
20:55:17,169  INFO [SettingsFactory     ] Order SQL updates by primary key: disabled
20:55:17,169  INFO [SettingsFactory     ] Order SQL inserts for batching: disabled
20:55:17,169  INFO [SettingsFactory     ] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
20:55:17,169  INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
20:55:17,169  INFO [SettingsFactory     ] Query language substitutions: {yes='Y', no='N'}
20:55:17,169  INFO [SettingsFactory     ] JPA-QL strict compliance: disabled
20:55:17,169  INFO [SettingsFactory     ] Second-level cache: enabled
20:55:17,170  INFO [SettingsFactory     ] Query cache: disabled
20:55:17,170  INFO [SettingsFactory     ] Cache region factory : org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge
20:55:17,170  INFO [RegionFactoryCacheProviderBridge] Cache provider: org.hibernate.cache.HashtableCacheProvider
20:55:17,170  INFO [SettingsFactory     ] Optimize cache for minimal puts: disabled
20:55:17,170  INFO [SettingsFactory     ] Cache region prefix: hibernate.test
20:55:17,170  INFO [SettingsFactory     ] Structured second-level cache entries: disabled
20:55:17,170  INFO [SettingsFactory     ] Echoing all SQL to stdout
20:55:17,170  INFO [SettingsFactory     ] Statistics: disabled
20:55:17,170  INFO [SettingsFactory     ] Deleted entity synthetic identifier rollback: disabled
20:55:17,170  INFO [SettingsFactory     ] Default entity-mode: pojo
20:55:17,171  INFO [SettingsFactory     ] Named query checking : enabled
20:55:17,171  INFO [SettingsFactory     ] Check Nullability in Core (should be disabled when Bean Validation is on): enabled
20:55:17,177  INFO [SessionFactoryImpl  ] building session factory
20:55:17,192  INFO [SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name configured
20:55:17,192  INFO [SchemaUpdate        ] Running hbm2ddl schema update
20:55:17,192  INFO [SchemaUpdate        ] fetching database metadata
20:55:17,195  INFO [SchemaUpdate        ] updating schema
20:55:17,337  INFO [TableMetadata       ] table found: public.imovel
20:55:17,338  INFO [TableMetadata       ] columns: [pais, medida, id_imovel, descricao, bairro, cidade, titulo, area, cep, estado, valor, cod_imovel, dt_inclusao, endereco]
20:55:17,338  INFO [TableMetadata       ] foreign keys: []
20:55:17,339  INFO [TableMetadata       ] indexes: [imovel_pkey]
20:55:17,410  INFO [TableMetadata       ] table found: public.usuario
20:55:17,410  INFO [TableMetadata       ] columns: [id_usuario, role, nome, login, senha]
20:55:17,410  INFO [TableMetadata       ] foreign keys: []
20:55:17,410  INFO [TableMetadata       ] indexes: [usuario_pkey]
20:55:17,411  INFO [SchemaUpdate        ] schema update complete

Show de bola! Ficou mais fácil testar a aplicação, antes eu precisava rodar o GeraTabela, agora é só chamar a aplicação que já cria o banco. \o/
Abraço!!!