[quote=Paulo Silveira]oi alan!
esta estranho mesmo. usa o debug do log4j e mostra o log pra gente? tenta com result.include tambem so pra ter certeza. e voce nao esta acessando o .jsp diretamente pelo browser, certo?
e cuirosidade, por que o casting no dao?
abracos
[/quote]
Bom Paulo Silveira: aqui segue todo o meu codigo e o log do console, não sei mais o que fazer
Eu tenho uma pagina jsp que redireciona para a jsp que teria que mostrar os dados (caminho inicial do navegador http://localhost:8080/lojaVirtual2/RedirecionaInicio.jsp ):
RedirecionaInicio.jsp
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head >
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body onload="<c:redirect url="http://localhost:8080/lojaVirtual2/usuario/listaUsuarios" />">
</body>
</html>
UsuarioController.java
package br.com.arm.logic;
import java.util.List;
import org.hibernate.Hibernate;
import br.com.arm.dao.UsuarioDAOImpl;
import br.com.arm.dao.interfaces.UsuarioDAO;
import br.com.arm.entities.Usuario;
import br.com.caelum.vraptor.Resource;
import br.com.caelum.vraptor.Result;
@Resource
public class UsuarioController {
private UsuarioDAOImpl dao;
public UsuarioController(UsuarioDAOImpl dao, Result result) {
this.dao = dao;
}
public void adiciona (Usuario usuario){
dao.adicionaUsuario(usuario);
}
public void form() {
}
public void formulario() {
}
public List<Usuario>listaUsuarios(){
List<Usuario> usuarios = dao.listaUsurarios();
return usuarios;
}
}
UsuarioDAOImpl
package br.com.arm.logic;
import java.util.List;
import org.hibernate.Hibernate;
import br.com.arm.dao.UsuarioDAOImpl;
import br.com.arm.entities.Usuario;
import br.com.caelum.vraptor.Resource;
import br.com.caelum.vraptor.Result;
@Resource
public class UsuarioController {
private UsuarioDAOImpl dao;
public UsuarioController(UsuarioDAOImpl dao, Result result) {
this.dao = dao;
}
public void adiciona (Usuario usuario){
dao.adicionaUsuario(usuario);
}
public void form() {
}
public void formulario() {
}
public List<Usuario>listaUsuarios(){
List<Usuario> usuarios = dao.listaUsurarios();
return usuarios;
}
}
pagina referente ao metodo listaUsuarios.jsp
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://jakarta.apache.org/taglibs/display" prefix="display" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Cadastro de usuarios</title>
<link rel="stylesheet" type="text/css" href="css/style.css"/>
</head>
<body>
<h1>Usuários</h1>
<display:table name="${usuarioList}" >
<display:column property="id" sort="true" />
<display:column property="login" />
</display:table>
</body>
</html>
O problema é que não é criada a variavel “usuarioList”
segue log do console
18/01/2010 22:43:04 org.apache.catalina.core.AprLifecycleListener init
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Arquivos de programas\java\jre6\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Arquivos de programas/Java/jre6/bin/client;C:/Arquivos de programas/Java/jre6/bin;C:\ColdFusion9\verity\k2_nti40\bin;C:\Arquivos de programas\JavaFX\javafx-sdk1.2\bin;C:\Arquivos de programas\JavaFX\javafx-sdk1.2\emulator\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
18/01/2010 22:43:04 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
18/01/2010 22:43:04 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1612 ms
18/01/2010 22:43:04 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
18/01/2010 22:43:04 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.13
18/01/2010 22:43:08 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
18/01/2010 22:43:08 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
18/01/2010 22:43:08 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/125 config=null
18/01/2010 22:43:08 org.apache.catalina.startup.Catalina start
INFO: Server startup in 4172 ms
22:43:22,156 INFO Version:15 - Hibernate Annotations 3.4.0.GA
22:43:22,250 INFO Environment:543 - Hibernate 3.3.0.SP1
22:43:22,296 INFO Environment:576 - hibernate.properties not found
22:43:22,312 INFO Environment:709 - Bytecode provider name : javassist
22:43:22,343 INFO Environment:627 - using JDK 1.4 java.sql.Timestamp handling
22:43:22,656 INFO Version:14 - Hibernate Commons Annotations 3.1.0.GA
22:43:22,687 INFO Configuration:1460 - configuring from resource: /hibernate.cfg.xml
22:43:22,687 INFO Configuration:1437 - Configuration resource: /hibernate.cfg.xml
22:43:22,843 DEBUG DTDEntityResolver:64 - trying to resolve system-id [http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd]
22:43:22,843 DEBUG DTDEntityResolver:66 - recognized hibernate namespace; attempting to resolve on classpath under org/hibernate/
22:43:22,859 DEBUG DTDEntityResolver:76 - located [http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd] in classpath
22:43:23,093 DEBUG Configuration:1421 - hibernate.dialect=org.hibernate.dialect.MySQLDialect
22:43:23,093 DEBUG Configuration:1421 - hibernate.connection.driver_class=com.mysql.jdbc.Driver
22:43:23,093 DEBUG Configuration:1421 - hibernate.connection.url=jdbc:mysql://localhost:3306/Teste2
22:43:23,093 DEBUG Configuration:1421 - hibernate.connection.username=root
22:43:23,093 DEBUG Configuration:1421 - hibernate.connection.password=root
22:43:23,109 DEBUG Configuration:1421 - hibernate.show_sql=true
22:43:23,109 DEBUG Configuration:1421 - hibernate.format_sql=true
22:43:23,109 DEBUG AnnotationConfiguration:644 - null <- org.dom4j.tree.DefaultAttribute@5aebd9 [Attribute: name class value “br.com.arm.entities.Usuario”]
22:43:23,171 INFO Configuration:1575 - Configured SessionFactory: null
22:43:23,187 DEBUG Configuration:1576 - properties: {java.vendor=Sun Microsystems Inc., sun.java.launcher=SUN_STANDARD, catalina.base=C:\Documents and Settings\Alan\workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0, hibernate.connection.url=jdbc:mysql://localhost:3306/Teste2, sun.management.compiler=HotSpot Client Compiler, catalina.useNaming=true, os.name=Windows XP, sun.boot.class.path=C:\Arquivos de programas\java\jre6\lib\resources.jar;C:\Arquivos de programas\java\jre6\lib\rt.jar;C:\Arquivos de programas\java\jre6\lib\sunrsasign.jar;C:\Arquivos de programas\java\jre6\lib\jsse.jar;C:\Arquivos de programas\java\jre6\lib\jce.jar;C:\Arquivos de programas\java\jre6\lib\charsets.jar;C:\Arquivos de programas\java\jre6\classes, sun.desktop=windows, java.vm.specification.vendor=Sun Microsystems Inc., java.runtime.version=1.6.0_17-b04, user.name=Alan, shared.loader=, tomcat.util.buf.StringCache.byte.enabled=true, user.language=pt, java.naming.factory.initial=org.apache.naming.java.javaURLContextFactory, sun.boot.library.path=C:\Arquivos de programas\java\jre6\bin, java.version=1.6.0_17, user.timezone=America/Sao_Paulo, sun.arch.data.model=32, java.endorsed.dirs=C:\Documents and Settings\Alan\workspace\apache-tomcat-6.0.13\endorsed, sun.cpu.isalist=, sun.jnu.encoding=Cp1252, file.encoding.pkg=sun.io, package.access=sun.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.,sun.beans., file.separator=, java.specification.name=Java Platform API Specification, hibernate.format_sql=true, java.class.version=50.0, user.country=BR, java.home=C:\Arquivos de programas\java\jre6, java.vm.info=mixed mode, sharing, os.version=5.1, path.separator=;, java.vm.version=14.3-b01, hibernate.connection.password=root, user.variant=, java.awt.printerjob=sun.awt.windows.WPrinterJob, sun.io.unicode.encoding=UnicodeLittle, awt.toolkit=sun.awt.windows.WToolkit, hibernate.connection.username=root, package.definition=sun.,java.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper., java.naming.factory.url.pkgs=org.apache.naming, user.home=C:\Documents and Settings\Alan, java.specification.vendor=Sun Microsystems Inc., java.library.path=C:\Arquivos de programas\java\jre6\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Arquivos de programas/Java/jre6/bin/client;C:/Arquivos de programas/Java/jre6/bin;C:\ColdFusion9\verity\k2_nti40\bin;C:\Arquivos de programas\JavaFX\javafx-sdk1.2\bin;C:\Arquivos de programas\JavaFX\javafx-sdk1.2\emulator\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem, java.vendor.url=http://java.sun.com/, hibernate.connection.driver_class=com.mysql.jdbc.Driver, java.vm.vendor=Sun Microsystems Inc., hibernate.dialect=org.hibernate.dialect.MySQLDialect, common.loader=${catalina.home}/lib,${catalina.home}/lib/*.jar, java.runtime.name=Java™ SE Runtime Environment, java.class.path=C:\Documents and Settings\Alan\workspace\apache-tomcat-6.0.13\bin\bootstrap.jar, hibernate.bytecode.use_reflection_optimizer=false, java.vm.specification.name=Java Virtual Machine Specification, java.vm.specification.version=1.0, catalina.home=C:\Documents and Settings\Alan\workspace\apache-tomcat-6.0.13, sun.cpu.endian=little, sun.os.patch.level=Service Pack 2, java.io.tmpdir=C:\DOCUME~1\Alan\CONFIG~1\Temp, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, server.loader=, os.arch=x86, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, java.ext.dirs=C:\Arquivos de programas\java\jre6\lib\ext;C:\WINDOWS\Sun\Java\lib\ext, user.dir=C:\Arquivos de programas\eclipse\eclipse jboss tools 2, line.separator=
, wtp.deploy=C:\Documents and Settings\Alan\workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps, java.vm.name=Java HotSpot™ Client VM, file.encoding=Cp1252, java.specification.version=1.6, hibernate.show_sql=true}
22:43:23,203 DEBUG AnnotationConfiguration:806 - Validator not present in classpath, ignoring event listener registration
22:43:23,281 DEBUG HibernateSearchEventListenerRegister:209 - Search not present in classpath, ignoring event listener registration.
22:43:23,296 INFO HibernateSearchEventListenerRegister:53 - Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.
22:43:23,296 DEBUG Configuration:1318 - Preparing to build session factory with filters : {}
22:43:23,296 DEBUG AnnotationConfiguration:258 - Execute first pass mapping processing
22:43:23,468 DEBUG AnnotationConfiguration:529 - Process hbm files
22:43:23,468 DEBUG AnnotationConfiguration:537 - Process annotated classes
22:43:23,500 INFO AnnotationBinder:419 - Binding entity from annotated class: br.com.arm.entities.Usuario
22:43:23,578 DEBUG Ejb3Column:161 - Binding column DTYPE. Unique false. Nullable false.
22:43:23,640 DEBUG EntityBinder:295 - Import with entity name Usuario
22:43:23,656 INFO EntityBinder:422 - Bind entity br.com.arm.entities.Usuario on table Usuario
22:43:23,687 DEBUG AnnotationBinder:1022 - Processing br.com.arm.entities.Usuario property annotation
22:43:23,734 DEBUG AnnotationBinder:1022 - Processing br.com.arm.entities.Usuario field annotation
22:43:23,750 DEBUG AnnotationBinder:1133 - Processing annotations of br.com.arm.entities.Usuario.id
22:43:23,796 DEBUG Ejb3Column:161 - Binding column id. Unique false. Nullable false.
22:43:23,796 DEBUG AnnotationBinder:1257 - id is an id
22:43:23,812 DEBUG SimpleValueBinder:220 - building SimpleValue for id
22:43:23,828 DEBUG PropertyBinder:131 - Building property id
22:43:23,843 DEBUG AnnotationBinder:1293 - Bind @Id on id
22:43:23,843 DEBUG AnnotationBinder:1133 - Processing annotations of br.com.arm.entities.Usuario.login
22:43:23,843 DEBUG Ejb3Column:161 - Binding column login. Unique false. Nullable true.
22:43:23,859 DEBUG PropertyBinder:110 - binding property login with lazy=false
22:43:23,859 DEBUG SimpleValueBinder:220 - building SimpleValue for login
22:43:23,859 DEBUG PropertyBinder:131 - Building property login
22:43:23,859 DEBUG AnnotationBinder:1133 - Processing annotations of br.com.arm.entities.Usuario.senha
22:43:23,859 DEBUG Ejb3Column:161 - Binding column senha. Unique false. Nullable true.
22:43:23,875 DEBUG PropertyBinder:110 - binding property senha with lazy=false
22:43:23,875 DEBUG SimpleValueBinder:220 - building SimpleValue for senha
22:43:23,875 DEBUG PropertyBinder:131 - Building property senha
22:43:23,890 DEBUG AnnotationConfiguration:401 - processing fk mappings (ToOne and JoinedSubclass)
22:43:23,968 DEBUG Configuration:1153 - processing extends queue
22:43:23,968 DEBUG Configuration:1157 - processing collection mappings
22:43:23,968 DEBUG Configuration:1168 - processing native query and ResultSetMapping mappings
22:43:23,968 DEBUG Configuration:1176 - processing association property references
22:43:23,968 DEBUG Configuration:1198 - processing foreign key constraints
22:43:23,968 INFO AnnotationConfiguration:369 - Hibernate Validator not found: ignoring
22:43:25,015 INFO DriverManagerConnectionProvider:64 - Using Hibernate built-in connection pool (not for production use!)
22:43:25,015 INFO DriverManagerConnectionProvider:65 - Hibernate connection pool size: 20
22:43:25,015 INFO DriverManagerConnectionProvider:68 - autocommit mode: false
22:43:25,062 INFO DriverManagerConnectionProvider:103 - using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://localhost:3306/Teste2
22:43:25,078 INFO DriverManagerConnectionProvider:106 - connection properties: {user=root, password=root}
22:43:25,078 DEBUG DriverManagerConnectionProvider:132 - opening new JDBC connection
22:43:25,875 DEBUG DriverManagerConnectionProvider:138 - created connection to: jdbc:mysql://localhost:3306/Teste2, Isolation Level: 4
22:43:25,890 INFO SettingsFactory:116 - RDBMS: MySQL, version: 5.1.39-ndb-7.0.9-cluster-gpl
22:43:25,890 INFO SettingsFactory:117 - JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.1.10 ( Revision: ${svn.Revision} )
22:43:25,968 INFO Dialect:175 - Using dialect: org.hibernate.dialect.MySQLDialect
22:43:26,000 INFO TransactionFactoryFactory:59 - Using default transaction strategy (direct JDBC transactions)
22:43:26,015 INFO TransactionManagerLookupFactory:80 - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
22:43:26,015 INFO SettingsFactory:170 - Automatic flush during beforeCompletion(): disabled
22:43:26,015 INFO SettingsFactory:174 - Automatic session close at end of transaction: disabled
22:43:26,015 INFO SettingsFactory:181 - JDBC batch size: 15
22:43:26,015 INFO SettingsFactory:184 - JDBC batch updates for versioned data: disabled
22:43:26,031 INFO SettingsFactory:189 - Scrollable result sets: enabled
22:43:26,031 DEBUG SettingsFactory:193 - Wrap result sets: disabled
22:43:26,031 INFO SettingsFactory:197 - JDBC3 getGeneratedKeys(): enabled
22:43:26,031 INFO SettingsFactory:205 - Connection release mode: auto
22:43:26,031 INFO SettingsFactory:229 - Maximum outer join fetch depth: 2
22:43:26,031 INFO SettingsFactory:232 - Default batch fetch size: 1
22:43:26,031 INFO SettingsFactory:236 - Generate SQL with comments: disabled
22:43:26,031 INFO SettingsFactory:240 - Order SQL updates by primary key: disabled
22:43:26,031 INFO SettingsFactory:244 - Order SQL inserts for batching: disabled
22:43:26,031 INFO SettingsFactory:420 - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
22:43:26,062 INFO ASTQueryTranslatorFactory:47 - Using ASTQueryTranslatorFactory
22:43:26,062 INFO SettingsFactory:252 - Query language substitutions: {}
22:43:26,062 INFO SettingsFactory:257 - JPA-QL strict compliance: disabled
22:43:26,062 INFO SettingsFactory:262 - Second-level cache: enabled
22:43:26,078 INFO SettingsFactory:266 - Query cache: disabled
22:43:26,078 INFO SettingsFactory:405 - Cache region factory : org.hibernate.cache.impl.NoCachingRegionFactory
22:43:26,078 INFO SettingsFactory:276 - Optimize cache for minimal puts: disabled
22:43:26,078 INFO SettingsFactory:285 - Structured second-level cache entries: disabled
22:43:26,140 INFO SettingsFactory:305 - Echoing all SQL to stdout
22:43:26,156 INFO SettingsFactory:314 - Statistics: disabled
22:43:26,156 INFO SettingsFactory:318 - Deleted entity synthetic identifier rollback: disabled
22:43:26,156 INFO SettingsFactory:333 - Default entity-mode: pojo
22:43:26,156 INFO SettingsFactory:337 - Named query checking : enabled
22:43:26,328 INFO SessionFactoryImpl:187 - building session factory
22:43:26,328 DEBUG SessionFactoryImpl:205 - Session factory constructed with filter configurations : {}
22:43:26,328 DEBUG SessionFactoryImpl:209 - instantiating session factory with properties: {java.vendor=Sun Microsystems Inc., sun.java.launcher=SUN_STANDARD, catalina.base=C:\Documents and Settings\Alan\workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0, hibernate.connection.url=jdbc:mysql://localhost:3306/Teste2, sun.management.compiler=HotSpot Client Compiler, catalina.useNaming=true, os.name=Windows XP, sun.boot.class.path=C:\Arquivos de programas\java\jre6\lib\resources.jar;C:\Arquivos de programas\java\jre6\lib\rt.jar;C:\Arquivos de programas\java\jre6\lib\sunrsasign.jar;C:\Arquivos de programas\java\jre6\lib\jsse.jar;C:\Arquivos de programas\java\jre6\lib\jce.jar;C:\Arquivos de programas\java\jre6\lib\charsets.jar;C:\Arquivos de programas\java\jre6\classes, sun.desktop=windows, java.vm.specification.vendor=Sun Microsystems Inc., java.runtime.version=1.6.0_17-b04, user.name=Alan, shared.loader=, tomcat.util.buf.StringCache.byte.enabled=true, user.language=pt, java.naming.factory.initial=org.apache.naming.java.javaURLContextFactory, sun.boot.library.path=C:\Arquivos de programas\java\jre6\bin, java.version=1.6.0_17, user.timezone=America/Sao_Paulo, sun.arch.data.model=32, java.endorsed.dirs=C:\Documents and Settings\Alan\workspace\apache-tomcat-6.0.13\endorsed, sun.cpu.isalist=, sun.jnu.encoding=Cp1252, file.encoding.pkg=sun.io, package.access=sun.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.,sun.beans., file.separator=, java.specification.name=Java Platform API Specification, hibernate.format_sql=true, java.class.version=50.0, user.country=BR, java.home=C:\Arquivos de programas\java\jre6, java.vm.info=mixed mode, sharing, os.version=5.1, path.separator=;, java.vm.version=14.3-b01, hibernate.connection.password=root, user.variant=, java.awt.printerjob=sun.awt.windows.WPrinterJob, sun.io.unicode.encoding=UnicodeLittle, awt.toolkit=sun.awt.windows.WToolkit, hibernate.connection.username=root, package.definition=sun.,java.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper., java.naming.factory.url.pkgs=org.apache.naming, user.home=C:\Documents and Settings\Alan, java.specification.vendor=Sun Microsystems Inc., java.library.path=C:\Arquivos de programas\java\jre6\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Arquivos de programas/Java/jre6/bin/client;C:/Arquivos de programas/Java/jre6/bin;C:\ColdFusion9\verity\k2_nti40\bin;C:\Arquivos de programas\JavaFX\javafx-sdk1.2\bin;C:\Arquivos de programas\JavaFX\javafx-sdk1.2\emulator\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem, java.vendor.url=http://java.sun.com/, hibernate.connection.driver_class=com.mysql.jdbc.Driver, java.vm.vendor=Sun Microsystems Inc., hibernate.dialect=org.hibernate.dialect.MySQLDialect, common.loader=${catalina.home}/lib,${catalina.home}/lib/.jar, java.runtime.name=Java™ SE Runtime Environment, java.class.path=C:\Documents and Settings\Alan\workspace\apache-tomcat-6.0.13\bin\bootstrap.jar, hibernate.bytecode.use_reflection_optimizer=false, java.vm.specification.name=Java Virtual Machine Specification, java.vm.specification.version=1.0, catalina.home=C:\Documents and Settings\Alan\workspace\apache-tomcat-6.0.13, sun.cpu.endian=little, sun.os.patch.level=Service Pack 2, java.io.tmpdir=C:\DOCUME~1\Alan\CONFIG~1\Temp, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, server.loader=, os.arch=x86, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, java.ext.dirs=C:\Arquivos de programas\java\jre6\lib\ext;C:\WINDOWS\Sun\Java\lib\ext, user.dir=C:\Arquivos de programas\eclipse\eclipse jboss tools 2, line.separator=
, wtp.deploy=C:\Documents and Settings\Alan\workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps, java.vm.name=Java HotSpot™ Client VM, file.encoding=Cp1252, java.specification.version=1.6, hibernate.show_sql=true}
22:43:27,031 DEBUG AbstractEntityPersister:2766 - Static SQL for entity: br.com.arm.entities.Usuario
22:43:27,031 DEBUG AbstractEntityPersister:2771 - Version select: select id from Usuario where id =?
22:43:27,031 DEBUG AbstractEntityPersister:2774 - Snapshot select: select usuario_.id, usuario_.login as login0_, usuario_.senha as senha0_ from Usuario usuario_ where usuario_.id=?
22:43:27,046 DEBUG AbstractEntityPersister:2777 - Insert 0: insert into Usuario (login, senha, id) values (?, ?, ?)
22:43:27,046 DEBUG AbstractEntityPersister:2778 - Update 0: update Usuario set login=?, senha=? where id=?
22:43:27,046 DEBUG AbstractEntityPersister:2779 - Delete 0: delete from Usuario where id=?
22:43:27,046 DEBUG AbstractEntityPersister:2783 - Identity insert: insert into Usuario (login, senha) values (?, ?)
22:43:27,109 DEBUG EntityLoader:102 - Static select for entity br.com.arm.entities.Usuario: select usuario0_.id as id0_0_, usuario0_.login as login0_0_, usuario0_.senha as senha0_0_ from Usuario usuario0_ where usuario0_.id=?
22:43:27,109 DEBUG EntityLoader:102 - Static select for entity br.com.arm.entities.Usuario: select usuario0_.id as id0_0_, usuario0_.login as login0_0_, usuario0_.senha as senha0_0_ from Usuario usuario0_ where usuario0_.id=?
22:43:27,125 DEBUG EntityLoader:102 - Static select for entity br.com.arm.entities.Usuario: select usuario0_.id as id0_0_, usuario0_.login as login0_0_, usuario0_.senha as senha0_0_ from Usuario usuario0_ where usuario0_.id=? for update
22:43:27,125 DEBUG EntityLoader:102 - Static select for entity br.com.arm.entities.Usuario: select usuario0_.id as id0_0_, usuario0_.login as login0_0_, usuario0_.senha as senha0_0_ from Usuario usuario0_ where usuario0_.id=? for update
22:43:27,125 DEBUG EntityLoader:102 - Static select for entity br.com.arm.entities.Usuario: select usuario0_.id as id0_0_, usuario0_.login as login0_0_, usuario0_.senha as senha0_0_ from Usuario usuario0_ where usuario0_.id=? for update
22:43:27,203 DEBUG EntityLoader:57 - Static select for action ACTION_MERGE on entity br.com.arm.entities.Usuario: select usuario0_.id as id0_0_, usuario0_.login as login0_0_, usuario0_.senha as senha0_0_ from Usuario usuario0_ where usuario0_.id=?
22:43:27,203 DEBUG EntityLoader:57 - Static select for action ACTION_REFRESH on entity br.com.arm.entities.Usuario: select usuario0_.id as id0_0_, usuario0_.login as login0_0_, usuario0_.senha as senha0_0_ from Usuario usuario0_ where usuario0_.id=?
22:43:27,218 DEBUG SessionFactoryObjectFactory:62 - initializing class SessionFactoryObjectFactory
22:43:27,234 DEBUG SessionFactoryObjectFactory:99 - registered: 3db7f923264408b401264408b8630000 (unnamed)
22:43:27,234 INFO SessionFactoryObjectFactory:105 - Not binding factory to JNDI, no JNDI name configured
22:43:27,234 DEBUG SessionFactoryImpl:340 - instantiated session factory
22:43:27,234 DEBUG SessionFactoryImpl:426 - Checking 0 named HQL queries
22:43:27,234 DEBUG SessionFactoryImpl:446 - Checking 0 named SQL queries
22:43:27,390 DEBUG SessionImpl:247 - opened session at timestamp: 12638618072
22:43:27,453 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
22:43:27,453 DEBUG ConnectionManager:444 - opening JDBC connection
22:43:27,468 DEBUG SQL:111 -
select
this_.id as id0_0_,
this_.login as login0_0_,
this_.senha as senha0_0_
from
Usuario this_
Hibernate:
select
this_.id as id0_0_,
this_.login as login0_0_,
this_.senha as senha0_0_
from
Usuario this_
22:43:27,593 DEBUG AbstractBatcher:426 - about to open ResultSet (open ResultSets: 0, globally: 0)
22:43:27,593 DEBUG Loader:1197 - result row: EntityKey[br.com.arm.entities.Usuario#1]
22:43:27,640 DEBUG Loader:1197 - result row: EntityKey[br.com.arm.entities.Usuario#2]
22:43:27,640 DEBUG Loader:1197 - result row: EntityKey[br.com.arm.entities.Usuario#3]
22:43:27,640 DEBUG Loader:1197 - result row: EntityKey[br.com.arm.entities.Usuario#4]
22:43:27,656 DEBUG Loader:1197 - result row: EntityKey[br.com.arm.entities.Usuario#8]
22:43:27,656 DEBUG Loader:1197 - result row: EntityKey[br.com.arm.entities.Usuario#9]
22:43:27,671 DEBUG Loader:1197 - result row: EntityKey[br.com.arm.entities.Usuario#10]
22:43:27,671 DEBUG Loader:1197 - result row: EntityKey[br.com.arm.entities.Usuario#11]
22:43:27,671 DEBUG Loader:1197 - result row: EntityKey[br.com.arm.entities.Usuario#12]
22:43:27,671 DEBUG Loader:1197 - result row: EntityKey[br.com.arm.entities.Usuario#13]
22:43:27,671 DEBUG AbstractBatcher:433 - about to close ResultSet (open ResultSets: 1, globally: 1)
22:43:27,671 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
22:43:27,687 DEBUG TwoPhaseLoad:130 - resolving associations for [br.com.arm.entities.Usuario#1]
22:43:27,703 DEBUG TwoPhaseLoad:226 - done materializing entity [br.com.arm.entities.Usuario#1]
22:43:27,703 DEBUG TwoPhaseLoad:130 - resolving associations for [br.com.arm.entities.Usuario#2]
22:43:27,703 DEBUG TwoPhaseLoad:226 - done materializing entity [br.com.arm.entities.Usuario#2]
22:43:27,703 DEBUG TwoPhaseLoad:130 - resolving associations for [br.com.arm.entities.Usuario#3]
22:43:27,703 DEBUG TwoPhaseLoad:226 - done materializing entity [br.com.arm.entities.Usuario#3]
22:43:27,703 DEBUG TwoPhaseLoad:130 - resolving associations for [br.com.arm.entities.Usuario#4]
22:43:27,703 DEBUG TwoPhaseLoad:226 - done materializing entity [br.com.arm.entities.Usuario#4]
22:43:27,703 DEBUG TwoPhaseLoad:130 - resolving associations for [br.com.arm.entities.Usuario#8]
22:43:27,703 DEBUG TwoPhaseLoad:226 - done materializing entity [br.com.arm.entities.Usuario#8]
22:43:27,718 DEBUG TwoPhaseLoad:130 - resolving associations for [br.com.arm.entities.Usuario#9]
22:43:27,718 DEBUG TwoPhaseLoad:226 - done materializing entity [br.com.arm.entities.Usuario#9]
22:43:27,718 DEBUG TwoPhaseLoad:130 - resolving associations for [br.com.arm.entities.Usuario#10]
22:43:27,718 DEBUG TwoPhaseLoad:226 - done materializing entity [br.com.arm.entities.Usuario#10]
22:43:27,718 DEBUG TwoPhaseLoad:130 - resolving associations for [br.com.arm.entities.Usuario#11]
22:43:27,718 DEBUG TwoPhaseLoad:226 - done materializing entity [br.com.arm.entities.Usuario#11]
22:43:27,718 DEBUG TwoPhaseLoad:130 - resolving associations for [br.com.arm.entities.Usuario#12]
22:43:27,718 DEBUG TwoPhaseLoad:226 - done materializing entity [br.com.arm.entities.Usuario#12]
22:43:27,718 DEBUG TwoPhaseLoad:130 - resolving associations for [br.com.arm.entities.Usuario#13]
22:43:27,718 DEBUG TwoPhaseLoad:226 - done materializing entity [br.com.arm.entities.Usuario#13]
22:43:27,734 DEBUG StatefulPersistenceContext:860 - initializing non-lazy collections
22:43:27,734 DEBUG ConnectionManager:427 - aggressively releasing JDBC connection
22:43:27,734 DEBUG ConnectionManager:464 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
22:43:45,046 DEBUG SessionImpl:247 - opened session at timestamp: 12638618250
22:43:45,046 DEBUG AbstractBatcher:410 - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
22:43:45,046 DEBUG ConnectionManager:444 - opening JDBC connection
22:43:45,046 DEBUG SQL:111 -
select
this_.id as id0_0_,
this_.login as login0_0_,
this_.senha as senha0_0_
from
Usuario this_
Hibernate:
select
this_.id as id0_0_,
this_.login as login0_0_,
this_.senha as senha0_0_
from
Usuario this_
22:43:45,046 DEBUG AbstractBatcher:426 - about to open ResultSet (open ResultSets: 0, globally: 0)
22:43:45,078 DEBUG Loader:1197 - result row: EntityKey[br.com.arm.entities.Usuario#1]
22:43:45,078 DEBUG Loader:1197 - result row: EntityKey[br.com.arm.entities.Usuario#2]
22:43:45,078 DEBUG Loader:1197 - result row: EntityKey[br.com.arm.entities.Usuario#3]
22:43:45,078 DEBUG Loader:1197 - result row: EntityKey[br.com.arm.entities.Usuario#4]
22:43:45,078 DEBUG Loader:1197 - result row: EntityKey[br.com.arm.entities.Usuario#8]
22:43:45,078 DEBUG Loader:1197 - result row: EntityKey[br.com.arm.entities.Usuario#9]
22:43:45,078 DEBUG Loader:1197 - result row: EntityKey[br.com.arm.entities.Usuario#10]
22:43:45,140 DEBUG Loader:1197 - result row: EntityKey[br.com.arm.entities.Usuario#11]
22:43:45,156 DEBUG Loader:1197 - result row: EntityKey[br.com.arm.entities.Usuario#12]
22:43:45,156 DEBUG Loader:1197 - result row: EntityKey[br.com.arm.entities.Usuario#13]
22:43:45,156 DEBUG AbstractBatcher:433 - about to close ResultSet (open ResultSets: 1, globally: 1)
22:43:45,156 DEBUG AbstractBatcher:418 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
22:43:45,156 DEBUG TwoPhaseLoad:130 - resolving associations for [br.com.arm.entities.Usuario#1]
22:43:45,218 DEBUG TwoPhaseLoad:226 - done materializing entity [br.com.arm.entities.Usuario#1]
22:43:45,218 DEBUG TwoPhaseLoad:130 - resolving associations for [br.com.arm.entities.Usuario#2]
22:43:45,234 DEBUG TwoPhaseLoad:226 - done materializing entity [br.com.arm.entities.Usuario#2]
22:43:45,234 DEBUG TwoPhaseLoad:130 - resolving associations for [br.com.arm.entities.Usuario#3]
22:43:45,234 DEBUG TwoPhaseLoad:226 - done materializing entity [br.com.arm.entities.Usuario#3]
22:43:45,234 DEBUG TwoPhaseLoad:130 - resolving associations for [br.com.arm.entities.Usuario#4]
22:43:45,234 DEBUG TwoPhaseLoad:226 - done materializing entity [br.com.arm.entities.Usuario#4]
22:43:45,234 DEBUG TwoPhaseLoad:130 - resolving associations for [br.com.arm.entities.Usuario#8]
22:43:45,234 DEBUG TwoPhaseLoad:226 - done materializing entity [br.com.arm.entities.Usuario#8]
22:43:45,234 DEBUG TwoPhaseLoad:130 - resolving associations for [br.com.arm.entities.Usuario#9]
22:43:45,234 DEBUG TwoPhaseLoad:226 - done materializing entity [br.com.arm.entities.Usuario#9]
22:43:45,234 DEBUG TwoPhaseLoad:130 - resolving associations for [br.com.arm.entities.Usuario#10]
22:43:45,234 DEBUG TwoPhaseLoad:226 - done materializing entity [br.com.arm.entities.Usuario#10]
22:43:45,250 DEBUG TwoPhaseLoad:130 - resolving associations for [br.com.arm.entities.Usuario#11]
22:43:45,250 DEBUG TwoPhaseLoad:226 - done materializing entity [br.com.arm.entities.Usuario#11]
22:43:45,250 DEBUG TwoPhaseLoad:130 - resolving associations for [br.com.arm.entities.Usuario#12]
22:43:45,250 DEBUG TwoPhaseLoad:226 - done materializing entity [br.com.arm.entities.Usuario#12]
22:43:45,250 DEBUG TwoPhaseLoad:130 - resolving associations for [br.com.arm.entities.Usuario#13]
22:43:45,250 DEBUG TwoPhaseLoad:226 - done materializing entity [br.com.arm.entities.Usuario#13]
22:43:45,250 DEBUG StatefulPersistenceContext:860 - initializing non-lazy collections
22:43:45,250 DEBUG ConnectionManager:427 - aggressively releasing JDBC connection
22:43:45,265 DEBUG ConnectionManager:464 - releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
Obrigado,