1 2 3 Previous Next 37 Replies Latest reply on Aug 7, 2016 9:14 AM by royibernthal Go to original post
      • 30. Re: Setting up Hibernate
        mayerw01

        You should really get familiar with your programming environment before starting with the development of JEE applications.

        But Ant is primairly used for the build of Java applications (Apache Ant - Welcome) while Maven is a software management tool which is more than a build tool (Maven – Welcome to Apache Maven)

         

        When clicking the 'Help' icon you will find some contextual information.

        But when adding your build.xml as builder it will be called automatically when building the project.

        From menu 'Help' -> 'Help Contents' you will find a lot of information regarding using Eclipse. Maybe you start with searching for 'Eclipse Ant basics'

         

        Apparently Edwin Dalorzo refers in the blog to the source layout but the JPA spec refers to the organization of the WAR file

        • 31. Re: Setting up Hibernate
          royibernthal

          I understand it's not very ideal to approach it the way I do, but I'm coming from a place where I'd like to spend as little time as possible setting up the environment to be able to focus on code, which seems very doable.

          Getting familiar with the environment completely would mean having to go through substantially much more than I actually need to deal with at the moment, the same goes for learning thoroughly all the concepts and terminology.

          Since Java is used for so many things it's problematic to find a place that focuses on what I really must know at the moment, and so I'm here.

          Once I'm setup and get to a point where I can actually run a code, I believe I'll naturally keep learning more about the language and the environment - and have more fun and results doing it.

          While not ideal, I believe this approach to be very pragmatic, I did it in every technology I wanted to work with and so far it's been working well.

           

          With that said, I hope you can bear with my questions a little more.

           

          Isn't it possible to not use Ant / Maven? As far as I know that's what I've been doing so far. If possible I'd like to avoid using them at the moment.

           

          Looking back at one of your preview responses -

           

          the WEB-INF/classes directory of a WAR file

          The root of the persistence unit is the WEB-INF/classes directory;

          the persistence.xml file is therefore contained in the WEB-INF/classes/META-INF directory.

           

          My project is simply not structured like that, are you sure I should force it to be? I'm working with a Dynamic Web Project.

          Like in my previous response, the META-INF is not inside of WEB-INF, but rather at the same level.

           

          Now even when I changed the source structure and persistence.xml is located in WEB-INF\classes\META-INF of the war, errors still appear in Eclipse log which result in a 404 - Not Found when I try to test the page.

           

          Eclipse Log:

           

          18:10:18,449 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 67) WFLYJPA0011: Stopping Persistence Unit (phase 1 of 2) Service 'rest-test.war#Hibernate_JPA'

          18:10:18,490 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) WFLYSRV0028: Stopped deployment rest-test.war (runtime-name: rest-test.war) in 46ms

          18:10:18,493 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) WFLYSRV0027: Starting deployment of "rest-test.war" (runtime-name: "rest-test.war")

          18:10:18,499 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 68) WFLYCLINF0003: Stopped client-mappings cache from ejb container

          18:10:18,503 INFO  [org.jboss.as.jpa] (MSC service thread 1-4) WFLYJPA0002: Read persistence.xml for Hibernate_JPA

          18:10:18,512 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 68) WFLYJPA0010: Starting Persistence Unit (phase 1 of 2) Service 'rest-test.war#Hibernate_JPA'

          18:10:18,512 INFO  [org.hibernate.jpa.internal.util.LogHelper] (ServerService Thread Pool -- 68) HHH000204: Processing PersistenceUnitInfo [

            name: Hibernate_JPA

            ...]

          18:10:18,514 INFO  [org.jboss.weld.deployer] (MSC service thread 1-5) WFLYWELD0003: Processing weld deployment rest-test.war

          18:10:18,516 INFO  [org.hibernate.orm.deprecation] (ServerService Thread Pool -- 68) HHH90000001: Found usage of deprecated setting for specifying Scanner [hibernate.ejb.resource_scanner]; use [hibernate.archive.scanner] instead

          18:10:18,519 INFO  [org.jboss.as.ejb3.deployment] (MSC service thread 1-5) WFLYEJB0473: JNDI bindings for session bean named 'Users' in deployment unit 'deployment "rest-test.war"' are as follows:

           

           

            java:global/rest-test/Users!entities.Users

            java:app/rest-test/Users!entities.Users

            java:module/Users!entities.Users

            java:global/rest-test/Users

            java:app/rest-test/Users

            java:module/Users

           

           

          18:10:18,546 INFO  [org.jboss.weld.deployer] (MSC service thread 1-6) WFLYWELD0006: Starting Services for CDI deployment: rest-test.war

          18:10:18,545 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 68) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.

          18:10:18,547 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 68) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.

          18:10:18,548 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 68) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.

          18:10:18,549 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 68) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.

          18:10:18,549 INFO  [org.jboss.weld.deployer] (MSC service thread 1-7) WFLYWELD0009: Starting weld service for deployment rest-test.war

          18:10:18,556 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 67) WFLYJPA0010: Starting Persistence Unit (phase 2 of 2) Service 'rest-test.war#Hibernate_JPA'

          18:10:18,569 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 68) WFLYCLINF0002: Started client-mappings cache from ejb container

          18:10:19,557 WARN  [org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (ServerService Thread Pool -- 67) IJ000604: Throwable while attempting to get a new connection: null: javax.resource.ResourceException: IJ031084: Unable to create connection

            at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.createLocalManagedConnection(LocalManagedConnectionFactory.java:343)

            at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:350)

            at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:285)

            at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreConcurrentLinkedDequeManagedConnectionPool.createConnectionEventListener(SemaphoreConcurrentLinkedDequeManagedConnectionPool.java:1319)

            at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreConcurrentLinkedDequeManagedConnectionPool.getConnection(SemaphoreConcurrentLinkedDequeManagedConnectionPool.java:496)

            at org.jboss.jca.core.connectionmanager.pool.AbstractPool.getSimpleConnection(AbstractPool.java:626)

            at org.jboss.jca.core.connectionmanager.pool.AbstractPool.getConnection(AbstractPool.java:598)

            at org.jboss.jca.core.connectionmanager.AbstractConnectionManager.getManagedConnection(AbstractConnectionManager.java:590)

            at org.jboss.jca.core.connectionmanager.tx.TxConnectionManagerImpl.getManagedConnection(TxConnectionManagerImpl.java:429)

            at org.jboss.jca.core.connectionmanager.AbstractConnectionManager.allocateConnection(AbstractConnectionManager.java:747)

            at org.jboss.jca.adapters.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:138)

            at org.jboss.as.connector.subsystems.datasources.WildFlyDataSource.getConnection(WildFlyDataSource.java:66)

            at org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:122)

            at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess.obtainConnection(JdbcEnvironmentInitiator.java:180)

            at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:68)

            at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:35)

            at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:88)

            at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:234)

            at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:208)

            at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:189)

            at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:51)

            at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:94)

            at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:217)

            at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:189)

            at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.handleTypes(MetadataBuildingProcess.java:352)

            at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:111)

            at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:847)

            at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:874)

            at org.jboss.as.jpa.hibernate5.TwoPhaseBootstrapImpl.build(TwoPhaseBootstrapImpl.java:44)

            at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:154)

            at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:117)

            at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:667)

            at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:182)

            at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

            at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

            at java.lang.Thread.run(Unknown Source)

            at org.jboss.threads.JBossThread.run(JBossThread.java:320)

          Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

           

           

          The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.

            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

            at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

            at java.lang.reflect.Constructor.newInstance(Unknown Source)

            at com.mysql.jdbc.Util.handleNewInstance(Util.java:404)

            at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:988)

            at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:341)

            at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2251)

            at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2284)

            at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2083)

            at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:806)

            at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)

            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

            at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

            at java.lang.reflect.Constructor.newInstance(Unknown Source)

            at com.mysql.jdbc.Util.handleNewInstance(Util.java:404)

            at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:410)

            at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:328)

            at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.createLocalManagedConnection(LocalManagedConnectionFactory.java:319)

            ... 36 more

          Caused by: java.net.ConnectException: Connection refused: connect

            at java.net.TwoStacksPlainSocketImpl.socketConnect(Native Method)

            at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)

            at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)

            at java.net.AbstractPlainSocketImpl.connect(Unknown Source)

            at java.net.PlainSocketImpl.connect(Unknown Source)

            at java.net.SocksSocketImpl.connect(Unknown Source)

            at java.net.Socket.connect(Unknown Source)

            at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:211)

            at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:300)

            ... 49 more

           

           

          18:10:19,558 WARN  [org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator] (ServerService Thread Pool -- 67) HHH000342: Could not obtain connection to query metadata : javax.resource.ResourceException: IJ000453: Unable to get managed connection for java:/jboss/datasources/runetest

          18:10:19,558 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 67) MSC000001: Failed to start service jboss.persistenceunit."rest-test.war#Hibernate_JPA": org.jboss.msc.service.StartException in service jboss.persistenceunit."rest-test.war#Hibernate_JPA": org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]

            at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:172)

            at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:117)

            at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:667)

            at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:182)

            at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

            at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

            at java.lang.Thread.run(Unknown Source)

            at org.jboss.threads.JBossThread.run(JBossThread.java:320)

          Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]

            at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:244)

            at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:208)

            at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:189)

            at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:51)

            at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:94)

            at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:217)

            at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:189)

            at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.handleTypes(MetadataBuildingProcess.java:352)

            at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:111)

            at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:847)

            at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:874)

            at org.jboss.as.jpa.hibernate5.TwoPhaseBootstrapImpl.build(TwoPhaseBootstrapImpl.java:44)

            at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:154)

            ... 7 more

          Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set

            at org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl.determineDialect(DialectFactoryImpl.java:100)

            at org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl.buildDialect(DialectFactoryImpl.java:54)

            at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:137)

            at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:35)

            at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:88)

            at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:234)

            ... 19 more

           

           

          18:10:19,566 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 2) WFLYCTL0013: Operation ("full-replace-deployment") failed - address: ([]) - failure description: {

              "WFLYCTL0080: Failed services" => {"jboss.persistenceunit.\"rest-test.war#Hibernate_JPA\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"rest-test.war#Hibernate_JPA\": org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]

              Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]

              Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set"},

              "WFLYCTL0288: One or more services were unable to start due to one or more indirect dependencies not being available." => {

                  "Services that were unable to start:" => [

                      "jboss.deployment.unit.\"rest-test.war\".CdiValidatorFactoryService",

                      "jboss.deployment.unit.\"rest-test.war\".WeldStartService",

                      "jboss.deployment.unit.\"rest-test.war\".component.Users.START",

                      "jboss.deployment.unit.\"rest-test.war\".component.Users.WeldInstantiator",

                      "jboss.deployment.unit.\"rest-test.war\".component.Users.WeldInterceptorBindingsService",

                      "jboss.deployment.unit.\"rest-test.war\".component.\"com.sun.faces.config.ConfigureListener\".START",

                      "jboss.deployment.unit.\"rest-test.war\".component.\"com.sun.faces.config.ConfigureListener\".WeldInstantiator",

                      "jboss.deployment.unit.\"rest-test.war\".component.\"javax.faces.webapp.FacetTag\".START",

                      "jboss.deployment.unit.\"rest-test.war\".component.\"javax.faces.webapp.FacetTag\".WeldInstantiator",

                      "jboss.deployment.unit.\"rest-test.war\".component.\"javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV\".START",

                      "jboss.deployment.unit.\"rest-test.war\".component.\"javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV\".WeldInstantiator",

                      "jboss.deployment.unit.\"rest-test.war\".component.\"javax.servlet.jsp.jstl.tlv.ScriptFreeTLV\".START",

                      "jboss.deployment.unit.\"rest-test.war\".component.\"javax.servlet.jsp.jstl.tlv.ScriptFreeTLV\".WeldInstantiator",

                      "jboss.deployment.unit.\"rest-test.war\".component.\"org.jboss.weld.servlet.WeldInitialListener\".START",

                      "jboss.deployment.unit.\"rest-test.war\".component.\"org.jboss.weld.servlet.WeldInitialListener\".WeldInstantiator",

                      "jboss.deployment.unit.\"rest-test.war\".component.\"org.jboss.weld.servlet.WeldTerminalListener\".START",

                      "jboss.deployment.unit.\"rest-test.war\".component.\"org.jboss.weld.servlet.WeldTerminalListener\".WeldInstantiator",

                      "jboss.deployment.unit.\"rest-test.war\".deploymentCompleteService",

                      "jboss.deployment.unit.\"rest-test.war\".jndiDependencyService",

                      "jboss.deployment.unit.\"rest-test.war\".moduleDeploymentRuntimeInformationStart",

                      "jboss.naming.context.java.module.rest-test.rest-test.env.\"entities.Users\".entitymanager",

                      "jboss.undertow.deployment.default-server.default-host./rest-test",

                      "jboss.undertow.deployment.default-server.default-host./rest-test.UndertowDeploymentInfoService"

                  ],

                  "Services that may be the cause:" => ["jboss.jdbc-driver.hsqldb_jar"]

              }

          }

          18:10:19,592 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) WFLYSRV0016: Replaced deployment "rest-test.war" with deployment "rest-test.war"

          18:10:19,593 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) WFLYCTL0183: Service status report

          WFLYCTL0184:    New missing/unsatisfied dependencies:

                service jboss.deployment.unit."rest-test.war".WeldBootstrapService (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".WeldStartService, service jboss.deployment.unit."rest-test.war".component.Users.WeldInstantiator, service jboss.deployment.unit."rest-test.war".component."javax.faces.webapp.FacetTag".WeldInstantiator, service jboss.deployment.unit."rest-test.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".WeldInstantiator, WFLYCTL0208: ... and 3 more ]

                service jboss.deployment.unit."rest-test.war".WeldStartService (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".component.Users.WeldInstantiator, service jboss.deployment.unit."rest-test.war".CdiValidatorFactoryService, service jboss.deployment.unit."rest-test.war".component."javax.faces.webapp.FacetTag".WeldInstantiator, service jboss.undertow.deployment.default-server.default-host./rest-test.UndertowDeploymentInfoService, WFLYCTL0208: ... and 5 more ]

                service jboss.deployment.unit."rest-test.war".component.Users.JndiBindingsService (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".jndiDependencyService]

                service jboss.deployment.unit."rest-test.war".component.Users.START (unavailable) dependents: [service jboss.undertow.deployment.default-server.default-host./rest-test, service jboss.undertow.deployment.default-server.default-host./rest-test.UndertowDeploymentInfoService, service jboss.deployment.unit."rest-test.war".moduleDeploymentRuntimeInformationStart, service jboss.deployment.unit."rest-test.war".deploymentCompleteService]

                service jboss.deployment.unit."rest-test.war".component.Users.WeldInterceptorBindingsService (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".component.Users.WeldInstantiator]

                service jboss.deployment.unit."rest-test.war".component.Users.ejb.non-functional-timerservice (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".component.Users.START]

                service jboss.deployment.unit."rest-test.war".component."com.sun.faces.config.ConfigureListener".CREATE (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".component."com.sun.faces.config.ConfigureListener".START]

                service jboss.deployment.unit."rest-test.war".component."com.sun.faces.config.ConfigureListener".JndiBindingsService (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".jndiDependencyService]

                service jboss.deployment.unit."rest-test.war".component."com.sun.faces.config.ConfigureListener".START (unavailable) dependents: [service jboss.undertow.deployment.default-server.default-host./rest-test, service jboss.undertow.deployment.default-server.default-host./rest-test.UndertowDeploymentInfoService]

                service jboss.deployment.unit."rest-test.war".component."com.sun.faces.config.ConfigureListener".WeldInstantiator (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".component."com.sun.faces.config.ConfigureListener".START]

                service jboss.deployment.unit."rest-test.war".component."javax.faces.webapp.FacetTag".CREATE (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".component."javax.faces.webapp.FacetTag".START]

                service jboss.deployment.unit."rest-test.war".component."javax.faces.webapp.FacetTag".JndiBindingsService (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".jndiDependencyService]

                service jboss.deployment.unit."rest-test.war".component."javax.faces.webapp.FacetTag".START (unavailable) dependents: [service jboss.undertow.deployment.default-server.default-host./rest-test.UndertowDeploymentInfoService]

                service jboss.deployment.unit."rest-test.war".component."javax.faces.webapp.FacetTag".WeldInstantiator (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".component."javax.faces.webapp.FacetTag".START]

                service jboss.deployment.unit."rest-test.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".CREATE (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".START]

                service jboss.deployment.unit."rest-test.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".JndiBindingsService (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".jndiDependencyService]

                service jboss.deployment.unit."rest-test.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".START (unavailable) dependents: [service jboss.undertow.deployment.default-server.default-host./rest-test, service jboss.undertow.deployment.default-server.default-host./rest-test.UndertowDeploymentInfoService]

                service jboss.deployment.unit."rest-test.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".WeldInstantiator (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".START]

                service jboss.deployment.unit."rest-test.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".CREATE (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".START]

                service jboss.deployment.unit."rest-test.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".JndiBindingsService (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".jndiDependencyService]

                service jboss.deployment.unit."rest-test.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".START (unavailable) dependents: [service jboss.undertow.deployment.default-server.default-host./rest-test.UndertowDeploymentInfoService]

                service jboss.deployment.unit."rest-test.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".WeldInstantiator (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".START]

                service jboss.deployment.unit."rest-test.war".component."org.jboss.weld.servlet.WeldInitialListener".CREATE (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".component."org.jboss.weld.servlet.WeldInitialListener".START]

                service jboss.deployment.unit."rest-test.war".component."org.jboss.weld.servlet.WeldInitialListener".JndiBindingsService (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".jndiDependencyService]

                service jboss.deployment.unit."rest-test.war".component."org.jboss.weld.servlet.WeldInitialListener".START (unavailable) dependents: [service jboss.undertow.deployment.default-server.default-host./rest-test, service jboss.undertow.deployment.default-server.default-host./rest-test.UndertowDeploymentInfoService, service jboss.deployment.unit."rest-test.war".deploymentCompleteService]

                service jboss.deployment.unit."rest-test.war".component."org.jboss.weld.servlet.WeldInitialListener".WeldInstantiator (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".component."org.jboss.weld.servlet.WeldInitialListener".START]

                service jboss.deployment.unit."rest-test.war".component."org.jboss.weld.servlet.WeldTerminalListener".CREATE (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".component."org.jboss.weld.servlet.WeldTerminalListener".START]

                service jboss.deployment.unit."rest-test.war".component."org.jboss.weld.servlet.WeldTerminalListener".JndiBindingsService (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".jndiDependencyService]

                service jboss.deployment.unit."rest-test.war".component."org.jboss.weld.servlet.WeldTerminalListener".START (unavailable) dependents: [service jboss.undertow.deployment.default-server.default-host./rest-test, service jboss.undertow.deployment.default-server.default-host./rest-test.UndertowDeploymentInfoService]

                service jboss.deployment.unit."rest-test.war".component."org.jboss.weld.servlet.WeldTerminalListener".WeldInstantiator (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".component."org.jboss.weld.servlet.WeldTerminalListener".START]

                service jboss.deployment.unit."rest-test.war".ee.ComponentRegistry (unavailable) dependents: [service jboss.undertow.deployment.default-server.default-host./rest-test.UndertowDeploymentInfoService]

                service jboss.deployment.unit."rest-test.war".jndiDependencyService (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".WeldStartService, service jboss.deployment.unit."rest-test.war".component."org.jboss.weld.servlet.WeldTerminalListener".START, service jboss.deployment.unit."rest-test.war".component."com.sun.faces.config.ConfigureListener".START, service jboss.deployment.unit."rest-test.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".START, WFLYCTL0208: ... and 3 more ]

                service jboss.deployment.unit."rest-test.war".moduleDeploymentRuntimeInformation (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".moduleDeploymentRuntimeInformationStart]

                service jboss.naming.context.java.app.rest-test.env (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".jndiDependencyService]

                service jboss.naming.context.java.module.rest-test.rest-test.BeanManager (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".jndiDependencyService]

                service jboss.naming.context.java.module.rest-test.rest-test.DefaultContextService (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".jndiDependencyService]

                service jboss.naming.context.java.module.rest-test.rest-test.DefaultDataSource (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".jndiDependencyService]

                service jboss.naming.context.java.module.rest-test.rest-test.DefaultManagedExecutorService (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".jndiDependencyService]

                service jboss.naming.context.java.module.rest-test.rest-test.DefaultManagedScheduledExecutorService (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".jndiDependencyService]

                service jboss.naming.context.java.module.rest-test.rest-test.DefaultManagedThreadFactory (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".jndiDependencyService]

                service jboss.naming.context.java.module.rest-test.rest-test.EJBContext (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".jndiDependencyService]

                service jboss.naming.context.java.module.rest-test.rest-test.TimerService (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".jndiDependencyService]

                service jboss.naming.context.java.module.rest-test.rest-test.TransactionSynchronizationRegistry (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".jndiDependencyService]

                service jboss.naming.context.java.module.rest-test.rest-test.UserTransaction (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".jndiDependencyService]

                service jboss.naming.context.java.module.rest-test.rest-test.env (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".jndiDependencyService]

                service jboss.naming.context.java.module.rest-test.rest-test.env."entities.Users".entitymanager (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".jndiDependencyService]

                service jboss.persistenceunit."rest-test.war#Hibernate_JPA" (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".WeldStartService, service jboss.undertow.deployment.default-server.default-host./rest-test, service jboss.deployment.unit."rest-test.war".component."com.sun.faces.config.ConfigureListener".START, service jboss.deployment.unit."rest-test.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".START, WFLYCTL0208: ... and 7 more ]

                service jboss.undertow.deployment.default-server.default-host./rest-test (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".deploymentCompleteService]

                service jboss.undertow.deployment.default-server.default-host./rest-test.UndertowDeploymentInfoService (unavailable) dependents: [service jboss.undertow.deployment.default-server.default-host./rest-test]

                service jboss.undertow.deployment.default-server.default-host./rest-test.codec (unavailable) dependents: [service jboss.undertow.deployment.default-server.default-host./rest-test.UndertowDeploymentInfoService]

                service jboss.undertow.deployment.default-server.default-host./rest-test.session (unavailable) dependents: [service jboss.undertow.deployment.default-server.default-host./rest-test.UndertowDeploymentInfoService]

                service org.wildfly.request-controller.control-point."rest-test.war".undertow (unavailable) dependents: [service jboss.undertow.deployment.default-server.default-host./rest-test.UndertowDeploymentInfoService]

          WFLYCTL0185:    Newly corrected services:

                service jboss.deployment.unit."rest-test.war".beanmanager (new available)

          WFLYCTL0186:   Services which failed to start:      service jboss.persistenceunit."rest-test.war#Hibernate_JPA"

                service jboss.persistenceunit."rest-test.war#Hibernate_JPA": org.jboss.msc.service.StartException in service jboss.persistenceunit."rest-test.war#Hibernate_JPA": org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]

          • 32. Re: Setting up Hibernate
            mayerw01

            >>> Isn't it possible to not use Ant / Maven? As far as I know that's what I've been doing so far. If possible I'd like to avoid using them at the moment.

            I would say: everything what you can do with a tool can also be done manually (but usually much more complicate and time consuming)

             

            >>> My project is simply not structured like that, are you sure I should force it to be?

            It may work, but it is not guaranteed that the things will be working as expected if you don't follow the specs (documentation)!

             

            >>> "Services that may be the cause:" => ["jboss.jdbc-driver.hsqldb_jar"]

            Are you sure you are using the correct driver in your WildFly configuration? Is the  <resource-root> of your module.xml realy pointing to a mysql-connector?

             

            Did you verfy that your connection is working

            /subsystem=datasources/data-source=test:test-connection-in-pool

            • 33. Re: Setting up Hibernate
              royibernthal

              Where do I find my module.xml? There are hundreds on my computer that are related to Wildfly, and my project doesn't have one in neither source nor in war.

               

              I had 2 hsql datasources, probably from old tutorials I followed, I disabled both now and hsql no longer appears in the log.

               

              Now only the mysql datasource is enabled, the connection is working. This is the datasource I'm referring to in my persistence.xml.

               

              Last time I tested the page it returned a 404 Not Found apparently because I forgot to start MySQL on my computer, now when I start it the page displays the following error:

               

              org.jboss.resteasy.spi.UnhandledException: java.lang.IllegalArgumentException: WFLYWELD0044: Error injecting resource into CDI managed bean. Can't find a resource named java:comp/env/Page/users

              org.jboss.resteasy.core.ExceptionHandler.handleApplicationException(ExceptionHandler.java:76)

              org.jboss.resteasy.core.ExceptionHandler.handleException(ExceptionHandler.java:212)

              org.jboss.resteasy.core.SynchronousDispatcher.writeException(SynchronousDispatcher.java:168)

              org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:411)

              org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:202)

              org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:221)

              org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56)

              org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51)

              javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

              io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)

              io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)

              io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)

              org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)

              io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

              io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)

              io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)

              io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

              io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)

              io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)

              io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)

              io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)

              io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)

              io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)

              io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

              org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)

              io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

              io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

              io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:284)

              io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:263)

              io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)

              io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:174)

              io.undertow.server.Connectors.executeRootHandler(Connectors.java:202)

              io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:793)

              java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

              java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

              java.lang.Thread.run(Unknown Source)

              • 34. Re: Setting up Hibernate
                mayerw01

                >>>> Where do I find my module.xml? There are hundreds on my computer that are related to Wildfly, and my project doesn't have one in neither source nor in war.

                I thought you were installing the JDBC driver as a module. As mentioned in JDBC Driver / DataSource Setup · HAL Management Console

                 

                     2. Go to WILDFLY_HOME/modules and create the folder com/mysql/main

                     4. Create the file module.xml in the same folder

                 

                >>> WFLYWELD0044: Error injecting resource into CDI managed bean. Can't find a resource named java:comp/env/Page/users

                As mentioned in the message Weld cannot find a resource users in the class Page.

                I think your statement: @EJB(beanName="UsersBean") causes this inconsistency. I'd therefore remove this parameter from the @EJB annotation

                • 35. Re: Setting up Hibernate
                  royibernthal

                  I see, I intend to install as module later on, assuming it doesn't matter much at this point.

                   

                  I removed the parameter, now there's only the @EJB annotation without parameters.

                   

                  I'm getting now compile errors in Eclipse log, even before I removed the parameter from the @EJB annotation, which is weird because I didn't change anything since last time. I made sure MySQL is running and the connection test was successful.

                   

                  14:43:37,018 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 63) WFLYJPA0011: Stopping Persistence Unit (phase 2 of 2) Service 'rest-test.war#Hibernate_JPA'

                  14:43:37,018 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 63) WFLYJPA0011: Stopping Persistence Unit (phase 1 of 2) Service 'rest-test.war#Hibernate_JPA'

                  14:43:37,033 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) WFLYSRV0028: Stopped deployment rest-test.war (runtime-name: rest-test.war) in 19ms

                  14:43:37,033 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 64) WFLYCLINF0003: Stopped client-mappings cache from ejb container

                  14:43:37,033 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) WFLYSRV0027: Starting deployment of "rest-test.war" (runtime-name: "rest-test.war")

                  14:43:37,050 INFO  [org.jboss.as.jpa] (MSC service thread 1-3) WFLYJPA0002: Read persistence.xml for Hibernate_JPA

                  14:43:37,050 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 64) WFLYJPA0010: Starting Persistence Unit (phase 1 of 2) Service 'rest-test.war#Hibernate_JPA'

                  14:43:37,050 INFO  [org.hibernate.jpa.internal.util.LogHelper] (ServerService Thread Pool -- 64) HHH000204: Processing PersistenceUnitInfo [

                    name: Hibernate_JPA

                    ...]

                  14:43:37,050 INFO  [org.jboss.weld.deployer] (MSC service thread 1-6) WFLYWELD0003: Processing weld deployment rest-test.war

                  14:43:37,050 INFO  [org.hibernate.orm.deprecation] (ServerService Thread Pool -- 64) HHH90000001: Found usage of deprecated setting for specifying Scanner [hibernate.ejb.resource_scanner]; use [hibernate.archive.scanner] instead

                  14:43:37,050 INFO  [org.jboss.as.ejb3.deployment] (MSC service thread 1-6) WFLYEJB0473: JNDI bindings for session bean named 'Users' in deployment unit 'deployment "rest-test.war"' are as follows:

                   

                   

                    java:global/rest-test/Users!entities.Users

                    java:app/rest-test/Users!entities.Users

                    java:module/Users!entities.Users

                    java:global/rest-test/Users

                    java:app/rest-test/Users

                    java:module/Users

                   

                   

                  14:43:37,081 INFO  [org.jboss.weld.deployer] (MSC service thread 1-7) WFLYWELD0006: Starting Services for CDI deployment: rest-test.war

                  14:43:37,081 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 64) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.

                  14:43:37,081 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 64) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.

                  14:43:37,081 INFO  [org.jboss.weld.deployer] (MSC service thread 1-7) WFLYWELD0009: Starting weld service for deployment rest-test.war

                  14:43:37,081 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 64) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.

                  14:43:37,081 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 64) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.

                  14:43:37,081 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 64) WFLYCLINF0002: Started client-mappings cache from ejb container

                  14:43:37,081 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 64) WFLYJPA0010: Starting Persistence Unit (phase 2 of 2) Service 'rest-test.war#Hibernate_JPA'

                  14:43:37,081 INFO  [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 64) HHH000400: Using dialect: org.hibernate.dialect.MySQL5Dialect

                  14:43:37,097 INFO  [org.hibernate.envers.boot.internal.EnversServiceImpl] (ServerService Thread Pool -- 64) Envers integration enabled? : true

                  14:43:37,116 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 2) WFLYCTL0013: Operation ("full-replace-deployment") failed - address: ([]) - failure description: {"WFLYCTL0180: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.module.rest-test.rest-test.DefaultDataSource is missing [jboss.naming.context.java.jboss.datasources.ExampleDS]"]}

                  14:43:37,137 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) WFLYSRV0016: Replaced deployment "rest-test.war" with deployment "rest-test.war"

                  14:43:37,139 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) WFLYCTL0183: Service status report

                  WFLYCTL0184:    New missing/unsatisfied dependencies:

                        service jboss.deployment.unit."rest-test.war".WeldBootstrapService (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".component.Users.WeldInstantiator, service jboss.deployment.unit."rest-test.war".WeldStartService, service jboss.deployment.unit."rest-test.war".CdiValidatorFactoryService, service jboss.deployment.unit."rest-test.war".component."javax.faces.webapp.FacetTag".WeldInstantiator, WFLYCTL0208: ... and 7 more ]

                        service jboss.deployment.unit."rest-test.war".WeldStartService (unavailable) dependents: [service jboss.undertow.deployment.default-server.default-host./rest-test, service jboss.deployment.unit."rest-test.war".component.Users.WeldInstantiator, service jboss.deployment.unit."rest-test.war".CdiValidatorFactoryService, service jboss.deployment.unit."rest-test.war".component."javax.faces.webapp.FacetTag".WeldInstantiator, WFLYCTL0208: ... and 8 more ]

                        service jboss.deployment.unit."rest-test.war".component.Users.CREATE (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".component.Users.START]

                        service jboss.deployment.unit."rest-test.war".component.Users.JndiBindingsService (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".jndiDependencyService]

                        service jboss.deployment.unit."rest-test.war".component.Users.START (unavailable) dependents: [service jboss.undertow.deployment.default-server.default-host./rest-test, service jboss.undertow.deployment.default-server.default-host./rest-test.UndertowDeploymentInfoService, service jboss.deployment.unit."rest-test.war".moduleDeploymentRuntimeInformationStart, service jboss.deployment.unit."rest-test.war".deploymentCompleteService]

                        service jboss.deployment.unit."rest-test.war".component.Users.VIEW."entities.Users".LOCAL (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".component.Users.START]

                        service jboss.deployment.unit."rest-test.war".component.Users.WeldInstantiator (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".component.Users.START]

                        service jboss.deployment.unit."rest-test.war".component.Users.WeldInterceptorBindingsService (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".component.Users.WeldInstantiator]

                        service jboss.deployment.unit."rest-test.war".component.Users.ejb.non-functional-timerservice (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".component.Users.START]

                        service jboss.deployment.unit."rest-test.war".component."com.sun.faces.config.ConfigureListener".CREATE (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".component."com.sun.faces.config.ConfigureListener".START]

                        service jboss.deployment.unit."rest-test.war".component."com.sun.faces.config.ConfigureListener".JndiBindingsService (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".jndiDependencyService]

                        service jboss.deployment.unit."rest-test.war".component."com.sun.faces.config.ConfigureListener".START (unavailable) dependents: [service jboss.undertow.deployment.default-server.default-host./rest-test, service jboss.undertow.deployment.default-server.default-host./rest-test.UndertowDeploymentInfoService, service jboss.deployment.unit."rest-test.war".deploymentCompleteService]

                        service jboss.deployment.unit."rest-test.war".component."com.sun.faces.config.ConfigureListener".WeldInstantiator (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".component."com.sun.faces.config.ConfigureListener".START]

                        service jboss.deployment.unit."rest-test.war".component."javax.faces.webapp.FacetTag".CREATE (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".component."javax.faces.webapp.FacetTag".START]

                        service jboss.deployment.unit."rest-test.war".component."javax.faces.webapp.FacetTag".JndiBindingsService (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".jndiDependencyService]

                        service jboss.deployment.unit."rest-test.war".component."javax.faces.webapp.FacetTag".START (unavailable) dependents: [service jboss.undertow.deployment.default-server.default-host./rest-test, service jboss.undertow.deployment.default-server.default-host./rest-test.UndertowDeploymentInfoService, service jboss.deployment.unit."rest-test.war".deploymentCompleteService]

                        service jboss.deployment.unit."rest-test.war".component."javax.faces.webapp.FacetTag".WeldInstantiator (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".component."javax.faces.webapp.FacetTag".START]

                        service jboss.deployment.unit."rest-test.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".CREATE (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".START]

                        service jboss.deployment.unit."rest-test.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".JndiBindingsService (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".jndiDependencyService]

                        service jboss.deployment.unit."rest-test.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".START (unavailable) dependents: [service jboss.undertow.deployment.default-server.default-host./rest-test, service jboss.undertow.deployment.default-server.default-host./rest-test.UndertowDeploymentInfoService, service jboss.deployment.unit."rest-test.war".deploymentCompleteService]

                        service jboss.deployment.unit."rest-test.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".WeldInstantiator (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".START]

                        service jboss.deployment.unit."rest-test.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".CREATE (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".START]

                        service jboss.deployment.unit."rest-test.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".JndiBindingsService (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".jndiDependencyService]

                        service jboss.deployment.unit."rest-test.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".START (unavailable) dependents: [service jboss.undertow.deployment.default-server.default-host./rest-test, service jboss.undertow.deployment.default-server.default-host./rest-test.UndertowDeploymentInfoService, service jboss.deployment.unit."rest-test.war".deploymentCompleteService]

                        service jboss.deployment.unit."rest-test.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".WeldInstantiator (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".START]

                        service jboss.deployment.unit."rest-test.war".component."org.jboss.weld.servlet.WeldInitialListener".CREATE (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".component."org.jboss.weld.servlet.WeldInitialListener".START]

                        service jboss.deployment.unit."rest-test.war".component."org.jboss.weld.servlet.WeldInitialListener".JndiBindingsService (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".jndiDependencyService]

                        service jboss.deployment.unit."rest-test.war".component."org.jboss.weld.servlet.WeldInitialListener".START (unavailable) dependents: [service jboss.undertow.deployment.default-server.default-host./rest-test, service jboss.undertow.deployment.default-server.default-host./rest-test.UndertowDeploymentInfoService, service jboss.deployment.unit."rest-test.war".deploymentCompleteService]

                        service jboss.deployment.unit."rest-test.war".component."org.jboss.weld.servlet.WeldInitialListener".WeldInstantiator (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".component."org.jboss.weld.servlet.WeldInitialListener".START]

                        service jboss.deployment.unit."rest-test.war".component."org.jboss.weld.servlet.WeldTerminalListener".CREATE (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".component."org.jboss.weld.servlet.WeldTerminalListener".START]

                        service jboss.deployment.unit."rest-test.war".component."org.jboss.weld.servlet.WeldTerminalListener".JndiBindingsService (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".jndiDependencyService]

                        service jboss.deployment.unit."rest-test.war".component."org.jboss.weld.servlet.WeldTerminalListener".START (unavailable) dependents: [service jboss.undertow.deployment.default-server.default-host./rest-test, service jboss.undertow.deployment.default-server.default-host./rest-test.UndertowDeploymentInfoService, service jboss.deployment.unit."rest-test.war".deploymentCompleteService]

                        service jboss.deployment.unit."rest-test.war".component."org.jboss.weld.servlet.WeldTerminalListener".WeldInstantiator (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".component."org.jboss.weld.servlet.WeldTerminalListener".START]

                        service jboss.deployment.unit."rest-test.war".ee.ComponentRegistry (unavailable) dependents: [service jboss.undertow.deployment.default-server.default-host./rest-test.UndertowDeploymentInfoService]

                        service jboss.deployment.unit."rest-test.war".jndiDependencyService (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".WeldStartService, service jboss.deployment.unit."rest-test.war".component."org.jboss.weld.servlet.WeldTerminalListener".START, service jboss.deployment.unit."rest-test.war".component."com.sun.faces.config.ConfigureListener".START, service jboss.deployment.unit."rest-test.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".START, WFLYCTL0208: ... and 5 more ]

                        service jboss.deployment.unit."rest-test.war".moduleDeploymentRuntimeInformation (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".component.Users.START, service jboss.deployment.unit."rest-test.war".moduleDeploymentRuntimeInformationStart]

                        service jboss.naming.context.java.app.rest-test.env (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".jndiDependencyService]

                        service jboss.naming.context.java.module.rest-test.rest-test.BeanManager (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".jndiDependencyService]

                        service jboss.naming.context.java.module.rest-test.rest-test.DefaultContextService (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".jndiDependencyService]

                        service jboss.naming.context.java.module.rest-test.rest-test.DefaultDataSource (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".jndiDependencyService]

                        service jboss.naming.context.java.module.rest-test.rest-test.DefaultManagedExecutorService (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".jndiDependencyService]

                        service jboss.naming.context.java.module.rest-test.rest-test.DefaultManagedScheduledExecutorService (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".jndiDependencyService]

                        service jboss.naming.context.java.module.rest-test.rest-test.DefaultManagedThreadFactory (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".jndiDependencyService]

                        service jboss.naming.context.java.module.rest-test.rest-test.EJBContext (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".jndiDependencyService]

                        service jboss.naming.context.java.module.rest-test.rest-test.TimerService (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".jndiDependencyService]

                        service jboss.naming.context.java.module.rest-test.rest-test.TransactionSynchronizationRegistry (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".jndiDependencyService]

                        service jboss.naming.context.java.module.rest-test.rest-test.UserTransaction (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".jndiDependencyService]

                        service jboss.naming.context.java.module.rest-test.rest-test.env (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".jndiDependencyService]

                        service jboss.naming.context.java.module.rest-test.rest-test.env."entities.Users".entitymanager (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".jndiDependencyService, service jboss.deployment.unit."rest-test.war".component.Users.START]

                        service jboss.persistenceunit."rest-test.war#Hibernate_JPA" (unavailable) dependents: [service jboss.undertow.deployment.default-server.default-host./rest-test, service jboss.deployment.unit."rest-test.war".WeldStartService, service jboss.deployment.unit."rest-test.war".component."com.sun.faces.config.ConfigureListener".START, service jboss.deployment.unit."rest-test.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".START, WFLYCTL0208: ... and 6 more ]

                        service jboss.undertow.deployment.default-server.default-host./rest-test (unavailable) dependents: [service jboss.deployment.unit."rest-test.war".deploymentCompleteService]

                        service jboss.undertow.deployment.default-server.default-host./rest-test.UndertowDeploymentInfoService (unavailable) dependents: [service jboss.undertow.deployment.default-server.default-host./rest-test]

                        service jboss.undertow.deployment.default-server.default-host./rest-test.codec (unavailable) dependents: [service jboss.undertow.deployment.default-server.default-host./rest-test.UndertowDeploymentInfoService]

                        service jboss.undertow.deployment.default-server.default-host./rest-test.session (unavailable) dependents: [service jboss.undertow.deployment.default-server.default-host./rest-test.UndertowDeploymentInfoService]

                        service org.wildfly.request-controller.control-point."rest-test.war".undertow (unavailable) dependents: [service jboss.undertow.deployment.default-server.default-host./rest-test.UndertowDeploymentInfoService]

                  • 36. Re: Setting up Hibernate
                    mayerw01

                    >>>> "jboss.naming.context.java.module.rest-test.rest-test.DefaultDataSource is missing [jboss.naming.context.java.jboss.datasources.ExampleDS]"

                    For some reason your project needs access to the DefaultDataSource. Maybe this is related to this bug [WFLY-3538] Application does not deploy because DefaultDataSource is missing - JBoss Issue Tracker

                    Did you remove the ExampleDS from the Wildfly configuration?

                    • 37. Re: Setting up Hibernate
                      royibernthal

                      I did, it appears it was related to that bug, I followed the solution suggested in that link and it solved the problem.

                      Everything is finally working properly, thank you very much for the help and for your patience.

                      1 2 3 Previous Next