Projeto Hibernate

04/03/2016

0

Eai pessoal,

voltei a estudar Java web recentemente e estava seguindo estas video aulas:
https://www.youtube.com/playlist?list=PLb2oL4vcRzBPg_5DrwYeP75EySRATN8Qs

Cheguei a baixar o projeto completo no github:
https://github.com/bbranquinho/wpattern-frameworks-hibernate4


Criei o banco e as tabelas conforme o projeto e configurei o arquivo persistense.xml de acordo, porém, no momento da execução o log do WildFly é o seguinte:

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0 23:04:35,514 INFO [org.jboss.modules] (main) JBoss Modules version 1.4.3.Final 23:04:35,767 INFO [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final 23:04:35,856 INFO [org.jboss.as] (MSC service thread 1-6) WFLYSRV0049: WildFly Full 9.0.2.Final (WildFly Core 1.0.2.Final) starting 23:04:37,341 INFO [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 16) WFLYCTL0028: Attribute 'enabled' in the resource at address '/subsystem=datasources/data-source=ExampleDS' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation. 23:04:37,358 INFO [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 6) WFLYCTL0028: Attribute 'job-repository-type' in the resource at address '/subsystem=batch' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation. 23:04:37,461 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) WFLYDS0004: Found bookmanager.war in deployment directory. To trigger deployment create a file called bookmanager.war.dodeploy 23:04:37,467 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) WFLYDS0004: Found wpattern-frameworks-hibernate4.war in deployment directory. To trigger deployment create a file called wpattern-frameworks-hibernate4.war.dodeploy 23:04:37,527 INFO [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0039: Creating http management service using socket-binding (management-http) 23:04:37,560 INFO [org.xnio] (MSC service thread 1-3) XNIO version 3.3.1.Final 23:04:37,587 INFO [org.xnio.nio] (MSC service thread 1-3) XNIO NIO Implementation Version 3.3.1.Final 23:04:37,633 INFO [org.wildfly.extension.io] (ServerService Thread Pool -- 37) WFLYIO001: Worker 'default' has auto-configured to 8 core threads with 64 task threads based on your 4 available processors 23:04:37,638 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 38) WFLYCLINF0001: Activating Infinispan subsystem. 23:04:37,711 INFO [org.jboss.as.jsf] (ServerService Thread Pool -- 44) WFLYJSF0007: Activated the following JSF Implementations: [main] 23:04:37,719 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 46) WFLYNAM0001: Activating Naming Subsystem 23:04:37,732 INFO [org.jboss.as.connector] (MSC service thread 1-8) WFLYJCA0009: Starting JCA Subsystem (IronJacamar 1.2.5.Final) 23:04:37,740 WARN [org.jboss.as.txn] (ServerService Thread Pool -- 54) WFLYTX0013: Node identifier property is set to the default value. Please make sure it is unique. 23:04:37,742 INFO [org.jboss.as.security] (ServerService Thread Pool -- 53) WFLYSEC0002: Activating Security Subsystem 23:04:37,750 INFO [org.jboss.as.webservices] (ServerService Thread Pool -- 56) WFLYWS0002: Activating WebServices Extension 23:04:37,767 INFO [org.jboss.as.security] (MSC service thread 1-5) WFLYSEC0001: Current PicketBox version=4.9.2.Final 23:04:37,793 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 33) WFLYJCA0004: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3) 23:04:37,798 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-1) WFLYJCA0018: Started Driver service with driver-name = h2 23:04:37,817 INFO [org.jboss.remoting] (MSC service thread 1-3) JBoss Remoting version 4.0.9.Final 23:04:37,861 INFO [org.jboss.as.naming] (MSC service thread 1-1) WFLYNAM0003: Starting Naming Service 23:04:37,863 INFO [org.jboss.as.mail.extension] (MSC service thread 1-2) WFLYMAIL0001: Bound mail session [java:jboss/mail/Default] 23:04:37,890 INFO [org.wildfly.extension.undertow] (MSC service thread 1-4) WFLYUT0003: Undertow 1.2.9.Final starting 23:04:37,912 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 55) WFLYUT0003: Undertow 1.2.9.Final starting 23:04:38,260 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 55) WFLYUT0014: Creating file handler for path /home/carlos/JavaProjects/wildfly-9.0.2.Final/welcome-content 23:04:38,274 INFO [org.wildfly.extension.undertow] (MSC service thread 1-6) WFLYUT0012: Started server default-server. 23:04:38,340 INFO [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0018: Host default-host starting 23:04:38,474 INFO [org.wildfly.extension.undertow] (MSC service thread 1-6) WFLYUT0006: Undertow HTTP listener default listening on localhost/127.0.0.1:8080 23:04:38,706 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-1) WFLYJCA0001: Bound data source [java:jboss/datasources/ExampleDS] 23:04:38,892 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-3) WFLYDS0013: Started FileSystemDeploymentService for directory /home/carlos/JavaProjects/wildfly-9.0.2.Final/standalone/deployments 23:04:38,908 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) WFLYSRV0027: Starting deployment of "bookmanager.war" (runtime-name: "bookmanager.war") 23:04:38,909 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) WFLYSRV0027: Starting deployment of "wpattern-frameworks-hibernate4.war" (runtime-name: "wpattern-frameworks-hibernate4.war") 23:04:39,303 INFO [org.jboss.ws.common.management] (MSC service thread 1-8) JBWS022052: Starting JBoss Web Services - Stack CXF Server 5.0.0.Final 23:04:41,167 INFO [org.jboss.as.jpa] (MSC service thread 1-1) WFLYJPA0002: Read persistence.xml for wprojectPersistenceUnit 23:04:41,469 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 59) WFLYJPA0010: Starting Persistence Unit (phase 1 of 2) Service 'wpattern-frameworks-hibernate4.war#wprojectPersistenceUnit' 23:04:41,486 INFO [org.hibernate.jpa.internal.util.LogHelper] (ServerService Thread Pool -- 59) HHH000204: Processing PersistenceUnitInfo [ name: wprojectPersistenceUnit ...] 23:04:41,656 INFO [org.hibernate.Version] (ServerService Thread Pool -- 59) HHH000412: Hibernate Core {4.3.10.Final} 23:04:41,658 INFO [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 59) HHH000206: hibernate.properties not found 23:04:41,660 INFO [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 59) HHH000021: Bytecode provider name : javassist 23:04:42,369 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-4) WFLYJCA0005: Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1) 23:04:42,371 WARN [org.jboss.weld.deployer] (MSC service thread 1-4) WFLYWELD0013: Deployment deployment "wpattern-frameworks-hibernate4.war" contains CDI annotations but no bean archive was not found. (No beans.xml nor class with bean defining annotations) 23:04:42,442 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 59) WFLYJPA0010: Starting Persistence Unit (phase 2 of 2) Service 'wpattern-frameworks-hibernate4.war#wprojectPersistenceUnit' 23:04:42,442 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-8) WFLYJCA0018: Started Driver service with driver-name = wpattern-frameworks-hibernate4.war_com.mysql.jdbc.Driver_5_1 23:04:42,587 INFO [org.hibernate.annotations.common.Version] (ServerService Thread Pool -- 59) HCANN000001: Hibernate Commons Annotations {4.0.5.Final} 23:04:42,636 INFO [org.jboss.weld.deployer] (MSC service thread 1-4) WFLYWELD0003: Processing weld deployment bookmanager.war 23:04:42,724 INFO [org.hibernate.validator.internal.util.Version] (MSC service thread 1-4) HV000001: Hibernate Validator 5.1.3.Final 23:04:43,001 INFO [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 59) HHH000400: Using dialect: org.hibernate.dialect.MySQL5InnoDBDialect 23:04:43,323 INFO [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (ServerService Thread Pool -- 59) HHH000397: Using ASTQueryTranslatorFactory 23:04:43,406 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-3) WFLYJCA0005: Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1) 23:04:43,408 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-3) WFLYJCA0005: Deploying non-JDBC-compliant driver class com.mysql.fabric.jdbc.FabricMySQLDriver (version 5.1) 23:04:43,409 INFO [org.jboss.weld.deployer] (MSC service thread 1-3) WFLYWELD0006: Starting Services for CDI deployment: bookmanager.war 23:04:43,541 INFO [org.jboss.weld.Version] (MSC service thread 1-3) WELD-000900: 2.2.16 (SP1) 23:04:43,575 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-5) WFLYJCA0018: Started Driver service with driver-name = bookmanager.war_com.mysql.jdbc.Driver_5_1 23:04:43,577 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-5) WFLYJCA0018: Started Driver service with driver-name = bookmanager.war_com.mysql.fabric.jdbc.FabricMySQLDriver_5_1 23:04:43,579 INFO [org.jboss.weld.deployer] (MSC service thread 1-5) WFLYWELD0009: Starting weld service for deployment bookmanager.war 23:04:44,019 INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 59) HHH000228: Running hbm2ddl schema update 23:04:44,020 INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 59) HHH000102: Fetching database metadata 23:04:44,027 INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 59) HHH000396: Updating schema 23:04:44,044 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 59) HHH000262: Table not found: Categories 23:04:44,046 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 59) HHH000262: Table not found: Orders 23:04:44,058 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 59) HHH000262: Table not found: Products 23:04:44,059 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 59) HHH000262: Table not found: Order Details 23:04:44,061 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 59) HHH000262: Table not found: Categories 23:04:44,062 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 59) HHH000262: Table not found: Orders 23:04:44,063 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 59) HHH000262: Table not found: Products 23:04:44,064 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 59) HHH000262: Table not found: Order Details 23:04:44,066 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 59) HHH000262: Table not found: Categories 23:04:44,067 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 59) HHH000262: Table not found: Orders 23:04:44,068 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 59) HHH000262: Table not found: Products 23:04:44,069 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 59) HHH000262: Table not found: Order Details 23:04:44,071 INFO [java.sql.DatabaseMetaData] (ServerService Thread Pool -- 59) HHH000262: Table not found: hibernate_sequence 23:04:44,077 INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 59) HHH000232: Schema update complete 23:04:44,078 WARN [org.hibernate.internal.SessionFactoryImpl] (ServerService Thread Pool -- 59) HHH000008: JTASessionContext being used with JDBCTransactionFactory; auto-flush will not operate correctly with getCurrentSession() 23:04:44,710 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 74) WFLYUT0021: Registered web context: /wpattern-frameworks-hibernate4 23:04:45,536 INFO [org.jboss.as.protocol] (Remoting "slackware:MANAGEMENT" task-16) WFLYPRT0057: cancelled task by interrupting thread Thread[management-handler-thread - 4,5,management-handler-thread] 23:04:45,731 INFO [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 79) Inicializando Mojarra 2.2.12-jbossorg-2 20150729-1131 para o contexto '/bookmanager' 23:04:48,152 INFO [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 79) Monitoring file:/home/carlos/JavaProjects/wildfly-9.0.2.Final/standalone/deployments/bookmanager.war/WEB-INF/faces-config.xml for modifications 23:04:48,205 INFO [org.primefaces.webapp.PostConstructApplicationEventListener] (ServerService Thread Pool -- 79) Running on PrimeFaces 5.3 23:04:48,216 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 79) WFLYUT0021: Registered web context: /bookmanager 23:04:48,276 INFO [org.jboss.as.server] (ServerService Thread Pool -- 34) WFLYSRV0010: Deployed "bookmanager.war" (runtime-name : "bookmanager.war") 23:04:48,277 INFO [org.jboss.as.server] (ServerService Thread Pool -- 34) WFLYSRV0010: Deployed "wpattern-frameworks-hibernate4.war" (runtime-name : "wpattern-frameworks-hibernate4.war") 23:04:48,510 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9990/management 23:04:48,511 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9990 23:04:48,512 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Full 9.0.2.Final (WildFly Core 1.0.2.Final) started in 13389ms - Started 1320 of 1506 services (232 services are lazy, passive or on-demand)

O WildFly também esta apresentado informações de um projeto que nem esta aberto no Eclipse(bookmanager), mas este é outro problema.

O meu sistema é Linux, Slackware.

Alguém poderia me dar uma força?

Abraço à todos, tudo de bom galera.
Carlos Oliveira

Carlos Oliveira

Responder

APRENDA A PROGRAMAR DO ZERO AO PROFISSIONAL

Assitir aula

Saiba por que programar é uma questão de
sobrevivência e como aprender sem riscos

Assistir agora

Utilizamos cookies para fornecer uma melhor experiência para nossos usuários, consulte nossa política de privacidade.

Aceitar