javaee-samples / javaee7-hol

Java EE 7 Hands-on Lab
http://htmlpreview.github.io/?https://github.com/javaee-samples/javaee7-hol/blob/master/docs/javaee7-hol.html
Other
136 stars 92 forks source link

Unable to reproduce the javaee7-hol at step 3? #17

Open sridhar1982 opened 9 years ago

sridhar1982 commented 9 years ago

I am following the hands-on-lab tutorial from this tutorial link

I followed the instructions as provided there to set up my WildFly Application server. Everything seems to work fine. The tutorial zip comes with sample data and sql load scripts that is used to initialize the data-source. If no data-source is provided in persistence.xml, WildFly will provide a default data-source as mentioned in the tutorial.

At the end of step 3 in the tutorial link, my screen-shot looks like this:

enter image description here

But what is expected (as per tutorial link: Figure 12) is this:

enter image description here

The difference is "showing movies in theaters!" in my case while it must be "showing 20 movies in 7 theaters!" as the tutorial one. The JSF template used to display these numbers makes a EJB call that fetches data from the data-source. Looking at this, I think that my data-source is not initialized. But I don't why since I followed the tutorial word-by-word.

arun-gupta commented 9 years ago

Java EE 7 provides a default Data Source that is mapped to H2 in-memory database in WildFly. Can you share your server log ?

sridhar1982 commented 9 years ago

Here is the server log: I see some errors from line 781

cat standalone/log/server.log
2014-10-02 11:59:38,048 INFO  [org.jboss.modules] (main) JBoss Modules version 1.3.0.Final
2014-10-02 11:59:38,444 INFO  [org.jboss.msc] (main) JBoss MSC version 1.2.0.Final
2014-10-02 11:59:38,555 INFO  [org.jboss.as] (MSC service thread 1-6) JBAS015899: WildFly 8.0.0.Final "WildFly" starting
2014-10-02 11:59:38,564 DEBUG [org.jboss.as.config] (MSC service thread 1-6) Configured system properties:
    awt.toolkit = sun.lwawt.macosx.LWCToolkit
    file.encoding = US-ASCII
    file.encoding.pkg = sun.io
    file.separator = /
    ftp.nonProxyHosts = local|*.local|169.254/16|*.169.254/16
    gopherProxySet = false
    http.nonProxyHosts = local|*.local|169.254/16|*.169.254/16
    java.awt.graphicsenv = sun.awt.CGraphicsEnvironment
    java.awt.headless = true
    java.awt.printerjob = sun.lwawt.macosx.CPrinterJob
    java.class.path = /Users/sridhar/Documents/tomcats/wildfly-8.0.0.Final/jboss-modules.jar
    java.class.version = 51.0
    java.endorsed.dirs = /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/jre/lib/endorsed
    java.ext.dirs = /Users/sridhar/Library/Java/Extensions:/Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/jre/lib/ext:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
    java.home = /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/jre
    java.io.tmpdir = /var/folders/9p/z9794rxs1h1_kwkqx3qvc6780000gn/T/
    java.library.path = /Users/sridhar/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
    java.net.preferIPv4Stack = true
    java.runtime.name = Java(TM) SE Runtime Environment
    java.runtime.version = 1.7.0_40-b43
    java.specification.name = Java Platform API Specification
    java.specification.vendor = Oracle Corporation
    java.specification.version = 1.7
    java.util.logging.manager = org.jboss.logmanager.LogManager
    java.vendor = Oracle Corporation
    java.vendor.url = http://java.oracle.com/
    java.vendor.url.bug = http://bugreport.sun.com/bugreport/
    java.version = 1.7.0_40
    java.vm.info = mixed mode
    java.vm.name = Java HotSpot(TM) 64-Bit Server VM
    java.vm.specification.name = Java Virtual Machine Specification
    java.vm.specification.vendor = Oracle Corporation
    java.vm.specification.version = 1.7
    java.vm.vendor = Oracle Corporation
    java.vm.version = 24.0-b56
    javax.management.builder.initial = org.jboss.as.jmx.PluggableMBeanServerBuilder
    javax.xml.datatype.DatatypeFactory = __redirected.__DatatypeFactory
    javax.xml.parsers.DocumentBuilderFactory = __redirected.__DocumentBuilderFactory
    javax.xml.parsers.SAXParserFactory = __redirected.__SAXParserFactory
    javax.xml.stream.XMLEventFactory = __redirected.__XMLEventFactory
    javax.xml.stream.XMLInputFactory = __redirected.__XMLInputFactory
    javax.xml.stream.XMLOutputFactory = __redirected.__XMLOutputFactory
    javax.xml.transform.TransformerFactory = __redirected.__TransformerFactory
    javax.xml.validation.SchemaFactory:http://www.w3.org/2001/XMLSchema = __redirected.__SchemaFactory
    javax.xml.xpath.XPathFactory:http://java.sun.com/jaxp/xpath/dom = __redirected.__XPathFactory
    jboss.bind.address = localhost
    jboss.home.dir = /Users/sridhar/Documents/tomcats/wildfly-8.0.0.Final
    jboss.host.name = d-108-179-170-60
    jboss.modules.dir = /Users/sridhar/Documents/tomcats/wildfly-8.0.0.Final/modules
    jboss.modules.system.pkgs = org.jboss.byteman
    jboss.node.name = d-108-179-170-60
    jboss.qualified.host.name = d-108-179-170-60.dhcp4.washington.edu
    jboss.server.base.dir = /Users/sridhar/Documents/tomcats/wildfly-8.0.0.Final/standalone
    jboss.server.config.dir = /Users/sridhar/Documents/tomcats/wildfly-8.0.0.Final/standalone/configuration
    jboss.server.data.dir = /Users/sridhar/Documents/tomcats/wildfly-8.0.0.Final/standalone/data
    jboss.server.deploy.dir = /Users/sridhar/Documents/tomcats/wildfly-8.0.0.Final/standalone/data/content
    jboss.server.log.dir = /Users/sridhar/Documents/tomcats/wildfly-8.0.0.Final/standalone/log
    jboss.server.name = d-108-179-170-60
    jboss.server.persist.config = true
    jboss.server.temp.dir = /Users/sridhar/Documents/tomcats/wildfly-8.0.0.Final/standalone/tmp
    line.separator = 
    logging.configuration = file:/Users/sridhar/Documents/tomcats/wildfly-8.0.0.Final/standalone/configuration/logging.properties
    module.path = /Users/sridhar/Documents/tomcats/wildfly-8.0.0.Final/modules
    org.jboss.boot.log.file = /Users/sridhar/Documents/tomcats/wildfly-8.0.0.Final/standalone/log/boot.log
    org.jboss.logmanager.nocolor = true
    org.jboss.resolver.warning = true
    org.xml.sax.driver = __redirected.__XMLReaderFactory
    os.arch = x86_64
    os.name = Mac OS X
    os.version = 10.9.4
    path.separator = :
    program.name = JBossTools: WildFly 8.0 Runtime Server
    socksNonProxyHosts = local|*.local|169.254/16|*.169.254/16
    sun.arch.data.model = 64
    sun.boot.class.path = /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/jre/lib/resources.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/jre/lib/rt.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/jre/lib/sunrsasign.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/jre/lib/jsse.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/jre/lib/jce.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/jre/lib/jfr.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/jre/lib/JObjC.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/jre/classes
    sun.boot.library.path = /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/jre/lib
    sun.cpu.endian = little
    sun.cpu.isalist = 
    sun.io.unicode.encoding = UnicodeBig
    sun.java.command = org.jboss.modules.Main -mp /Users/sridhar/Documents/tomcats/wildfly-8.0.0.Final/modules -jaxpmodule javax.xml.jaxp-provider org.jboss.as.standalone -b localhost --server-config=standalone.xml
    sun.java.launcher = SUN_STANDARD
    sun.jnu.encoding = UTF-8
    sun.management.compiler = HotSpot 64-Bit Tiered Compilers
    sun.os.patch.level = unknown
    sun.rmi.dgc.client.gcInterval = 3600000
    sun.rmi.dgc.server.gcInterval = 3600000
    user.country = US
    user.dir = /Users/sridhar/Documents/tomcats/wildfly-8.0.0.Final/bin
    user.home = /Users/sridhar
    user.language = en
    user.name = sridhar
    user.timezone = America/Los_Angeles
2014-10-02 11:59:38,567 DEBUG [org.jboss.as.config] (MSC service thread 1-6) VM Arguments: -Dprogram.name=JBossTools: WildFly 8.0 Runtime Server -Xms64m -Xmx512m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Djava.net.preferIPv4Stack=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Dorg.jboss.boot.log.file=/Users/sridhar/Documents/tomcats/wildfly-8.0.0.Final/standalone/log/boot.log -Dlogging.configuration=file:/Users/sridhar/Documents/tomcats/wildfly-8.0.0.Final/standalone/configuration/logging.properties -Djboss.home.dir=/Users/sridhar/Documents/tomcats/wildfly-8.0.0.Final -Dorg.jboss.logmanager.nocolor=true -Dfile.encoding=US-ASCII 
2014-10-02 11:59:39,865 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found movieplex7.war in deployment directory. To trigger deployment create a file called movieplex7.war.dodeploy
2014-10-02 11:59:39,882 INFO  [org.jboss.as.server] (Controller Boot Thread) JBAS015888: Creating http management service using socket-binding (management-http)
2014-10-02 11:59:39,907 INFO  [org.xnio] (MSC service thread 1-5) XNIO version 3.2.0.Final
2014-10-02 11:59:39,918 INFO  [org.xnio.nio] (MSC service thread 1-5) XNIO NIO Implementation Version 3.2.0.Final
2014-10-02 11:59:39,948 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 46) JBAS013171: Activating Security Subsystem
2014-10-02 11:59:39,976 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 33) JBAS010280: Activating Infinispan subsystem.
2014-10-02 11:59:40,001 INFO  [org.jboss.as.security] (MSC service thread 1-1) JBAS013170: Current PicketBox version=4.0.20.Final
2014-10-02 11:59:40,006 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 41) JBAS011800: Activating Naming Subsystem
2014-10-02 11:59:40,019 INFO  [org.jboss.as.jsf] (ServerService Thread Pool -- 39) JBAS012615: Activated the following JSF Implementations: [main]
2014-10-02 11:59:40,082 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 50) JBAS015537: Activating WebServices Extension
2014-10-02 11:59:40,100 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-3) JBAS017502: Undertow 1.0.0.Final starting
2014-10-02 11:59:40,102 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 49) JBAS017502: Undertow 1.0.0.Final starting
2014-10-02 11:59:40,104 INFO  [org.jboss.as.connector.logging] (MSC service thread 1-8) JBAS010408: Starting JCA Subsystem (IronJacamar 1.1.3.Final)
2014-10-02 11:59:40,189 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 28) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
2014-10-02 11:59:40,194 INFO  [org.jboss.remoting] (MSC service thread 1-5) JBoss Remoting version 4.0.0.Final
2014-10-02 11:59:40,216 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-6) JBAS010417: Started Driver service with driver-name = h2
2014-10-02 11:59:40,302 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-8) JBAS015400: Bound mail session [java:jboss/mail/Default]
2014-10-02 11:59:40,302 INFO  [org.jboss.as.naming] (MSC service thread 1-4) JBAS011802: Starting Naming Service
2014-10-02 11:59:40,449 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 49) JBAS017527: Creating file handler for path /Users/sridhar/Documents/tomcats/wildfly-8.0.0.Final/welcome-content
2014-10-02 11:59:40,735 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-8) JBAS017525: Started server default-server.
2014-10-02 11:59:40,779 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-2) JBAS017531: Host default-host starting
2014-10-02 11:59:40,943 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-5) JBAS017519: Undertow HTTP listener default listening on localhost/127.0.0.1:8080
2014-10-02 11:59:41,425 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-5) JBAS015012: Started FileSystemDeploymentService for directory /Users/sridhar/Documents/tomcats/wildfly-8.0.0.Final/standalone/deployments
2014-10-02 11:59:41,447 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "movieplex7.war" (runtime-name: "movieplex7.war")
2014-10-02 11:59:41,472 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-5) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
2014-10-02 11:59:41,666 INFO  [org.jboss.as.jpa] (MSC service thread 1-7) JBAS011401: Read persistence.xml for movieplex7PU
2014-10-02 11:59:41,739 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 52) JBAS011409: Starting Persistence Unit (phase 1 of 2) Service 'movieplex7.war#movieplex7PU'
2014-10-02 11:59:41,757 INFO  [org.hibernate.jpa.internal.util.LogHelper] (ServerService Thread Pool -- 52) HHH000204: Processing PersistenceUnitInfo [
    name: movieplex7PU
    ...]
2014-10-02 11:59:41,885 INFO  [org.jboss.ws.common.management] (MSC service thread 1-3) JBWS022052: Starting JBoss Web Services - Stack CXF Server 4.2.3.Final
2014-10-02 11:59:41,906 INFO  [org.hibernate.Version] (ServerService Thread Pool -- 52) HHH000412: Hibernate Core {4.3.1.Final}
2014-10-02 11:59:41,908 INFO  [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 52) HHH000206: hibernate.properties not found
2014-10-02 11:59:41,911 INFO  [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 52) HHH000021: Bytecode provider name : javassist
2014-10-02 11:59:42,140 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 52) JBAS011409: Starting Persistence Unit (phase 2 of 2) Service 'movieplex7.war#movieplex7PU'
2014-10-02 11:59:42,280 INFO  [org.hibernate.annotations.common.Version] (ServerService Thread Pool -- 52) HCANN000001: Hibernate Commons Annotations {4.0.4.Final}
2014-10-02 11:59:42,537 INFO  [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 52) HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
2014-10-02 11:59:42,548 WARN  [org.hibernate.dialect.H2Dialect] (ServerService Thread Pool -- 52) HHH000431: Unable to determine H2 database version, certain features may not work
2014-10-02 11:59:42,596 INFO  [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (ServerService Thread Pool -- 52) HHH000397: Using ASTQueryTranslatorFactory
2014-10-02 11:59:42,780 INFO  [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 52) HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
2014-10-02 11:59:42,781 WARN  [org.hibernate.dialect.H2Dialect] (ServerService Thread Pool -- 52) HHH000431: Unable to determine H2 database version, certain features may not work
2014-10-02 11:59:42,790 WARN  [org.hibernate.jpa.internal.schemagen.GenerationTargetToDatabase] (ServerService Thread Pool -- 52) Unable to execute JPA schema generation drop command [DROP TABLE SALES]
2014-10-02 11:59:42,790 WARN  [org.hibernate.jpa.internal.schemagen.GenerationTargetToDatabase] (ServerService Thread Pool -- 52) Unable to execute JPA schema generation drop command [DROP TABLE POINTS]
2014-10-02 11:59:42,790 WARN  [org.hibernate.jpa.internal.schemagen.GenerationTargetToDatabase] (ServerService Thread Pool -- 52) Unable to execute JPA schema generation drop command [DROP TABLE SHOW_TIMING]
2014-10-02 11:59:42,791 WARN  [org.hibernate.jpa.internal.schemagen.GenerationTargetToDatabase] (ServerService Thread Pool -- 52) Unable to execute JPA schema generation drop command [DROP TABLE MOVIE]
2014-10-02 11:59:42,791 WARN  [org.hibernate.jpa.internal.schemagen.GenerationTargetToDatabase] (ServerService Thread Pool -- 52) Unable to execute JPA schema generation drop command [DROP TABLE TIMESLOT]
2014-10-02 11:59:42,791 WARN  [org.hibernate.jpa.internal.schemagen.GenerationTargetToDatabase] (ServerService Thread Pool -- 52) Unable to execute JPA schema generation drop command [DROP TABLE THEATER]
2014-10-02 11:59:43,081 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-7) Initializing Mojarra 2.2.5-jbossorg-3 20140128-1641 for context '/movieplex7'
2014-10-02 11:59:43,851 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-7) JBAS017534: Registered web context: /movieplex7
2014-10-02 11:59:43,900 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 29) JBAS018559: Deployed "movieplex7.war" (runtime-name : "movieplex7.war")
2014-10-02 11:59:43,919 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:9990/management
2014-10-02 11:59:43,920 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990
2014-10-02 11:59:43,920 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015874: WildFly 8.0.0.Final "WildFly" started in 6241ms - Started 255 of 309 services (90 services are lazy, passive or on-demand)
arun-gupta commented 9 years ago

Seems like you are using WildFly 8.0.0. Can you try WildFly 8.1.0 (http://download.jboss.org/wildfly/8.1.0.Final/wildfly-8.1.0.Final.zip) ?

I see the following lines in the log for that:

16:20:57,738 INFO [org.jboss.as.server.deployment.scanner](MSC service thread 1-9) JBAS015012: Started FileSystemDeploymentService for directory /Users/arungupta/Desktop/javaone/wildfly-8.1.0.Final/standalone/deployments 16:20:57,740 INFO [org.jboss.as.connector.subsystems.datasources](MSC service thread 1-10) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS] 16:20:57,892 INFO [org.jboss.ws.common.management](MSC service thread 1-6) JBWS022052: Starting JBoss Web Services - Stack CXF Server 4.2.4.Final

sridhar1982 commented 9 years ago

I started working with WildFly 8.1.0. But then found out that Eclipse does not have adapator for WildFly 8.1.0 but it has only WildFly 8.0. Now, I used this adaptor but configured to run WildFly 8.1.0. so here is the log from running WildFly 8.1.0. Still I have same issue and same errors as before

cat tomcats/wildfly-8.1.0.Final/standalone/log/server.log
2014-10-02 16:32:59,309 INFO  [org.jboss.modules] (main) JBoss Modules version 1.3.3.Final
2014-10-02 16:32:59,639 INFO  [org.jboss.msc] (main) JBoss MSC version 1.2.2.Final
2014-10-02 16:32:59,742 INFO  [org.jboss.as] (MSC service thread 1-7) JBAS015899: WildFly 8.1.0.Final "Kenny" starting
2014-10-02 16:32:59,747 DEBUG [org.jboss.as.config] (MSC service thread 1-7) Configured system properties:
    awt.toolkit = sun.lwawt.macosx.LWCToolkit
    file.encoding = US-ASCII
    file.encoding.pkg = sun.io
    file.separator = /
    ftp.nonProxyHosts = local|*.local|169.254/16|*.169.254/16
    gopherProxySet = false
    http.nonProxyHosts = local|*.local|169.254/16|*.169.254/16
    java.awt.graphicsenv = sun.awt.CGraphicsEnvironment
    java.awt.headless = true
    java.awt.printerjob = sun.lwawt.macosx.CPrinterJob
    java.class.path = /Users/sridhar/Documents/tomcats/wildfly-8.1.0.Final/jboss-modules.jar
    java.class.version = 51.0
    java.endorsed.dirs = /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/jre/lib/endorsed
    java.ext.dirs = /Users/sridhar/Library/Java/Extensions:/Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/jre/lib/ext:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
    java.home = /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/jre
    java.io.tmpdir = /var/folders/9p/z9794rxs1h1_kwkqx3qvc6780000gn/T/
    java.library.path = /Users/sridhar/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
    java.net.preferIPv4Stack = true
    java.runtime.name = Java(TM) SE Runtime Environment
    java.runtime.version = 1.7.0_40-b43
    java.specification.name = Java Platform API Specification
    java.specification.vendor = Oracle Corporation
    java.specification.version = 1.7
    java.util.logging.manager = org.jboss.logmanager.LogManager
    java.vendor = Oracle Corporation
    java.vendor.url = http://java.oracle.com/
    java.vendor.url.bug = http://bugreport.sun.com/bugreport/
    java.version = 1.7.0_40
    java.vm.info = mixed mode
    java.vm.name = Java HotSpot(TM) 64-Bit Server VM
    java.vm.specification.name = Java Virtual Machine Specification
    java.vm.specification.vendor = Oracle Corporation
    java.vm.specification.version = 1.7
    java.vm.vendor = Oracle Corporation
    java.vm.version = 24.0-b56
    javax.management.builder.initial = org.jboss.as.jmx.PluggableMBeanServerBuilder
    javax.xml.datatype.DatatypeFactory = __redirected.__DatatypeFactory
    javax.xml.parsers.DocumentBuilderFactory = __redirected.__DocumentBuilderFactory
    javax.xml.parsers.SAXParserFactory = __redirected.__SAXParserFactory
    javax.xml.stream.XMLEventFactory = __redirected.__XMLEventFactory
    javax.xml.stream.XMLInputFactory = __redirected.__XMLInputFactory
    javax.xml.stream.XMLOutputFactory = __redirected.__XMLOutputFactory
    javax.xml.transform.TransformerFactory = __redirected.__TransformerFactory
    javax.xml.validation.SchemaFactory:http://www.w3.org/2001/XMLSchema = __redirected.__SchemaFactory
    javax.xml.xpath.XPathFactory:http://java.sun.com/jaxp/xpath/dom = __redirected.__XPathFactory
    jboss.bind.address = localhost
    jboss.home.dir = /Users/sridhar/Documents/tomcats/wildfly-8.1.0.Final
    jboss.host.name = d-173-250-203-156
    jboss.modules.dir = /Users/sridhar/Documents/tomcats/wildfly-8.1.0.Final/modules
    jboss.modules.system.pkgs = org.jboss.byteman
    jboss.node.name = d-173-250-203-156
    jboss.qualified.host.name = d-173-250-203-156.dhcp4.washington.edu
    jboss.server.base.dir = /Users/sridhar/Documents/tomcats/wildfly-8.1.0.Final/standalone
    jboss.server.config.dir = /Users/sridhar/Documents/tomcats/wildfly-8.1.0.Final/standalone/configuration
    jboss.server.data.dir = /Users/sridhar/Documents/tomcats/wildfly-8.1.0.Final/standalone/data
    jboss.server.deploy.dir = /Users/sridhar/Documents/tomcats/wildfly-8.1.0.Final/standalone/data/content
    jboss.server.log.dir = /Users/sridhar/Documents/tomcats/wildfly-8.1.0.Final/standalone/log
    jboss.server.name = d-173-250-203-156
    jboss.server.persist.config = true
    jboss.server.temp.dir = /Users/sridhar/Documents/tomcats/wildfly-8.1.0.Final/standalone/tmp
    line.separator = 
    logging.configuration = file:/Users/sridhar/Documents/tomcats/wildfly-8.1.0.Final/standalone/configuration/logging.properties
    module.path = /Users/sridhar/Documents/tomcats/wildfly-8.1.0.Final/modules
    org.jboss.boot.log.file = /Users/sridhar/Documents/tomcats/wildfly-8.1.0.Final/standalone/log/boot.log
    org.jboss.logmanager.nocolor = true
    org.jboss.resolver.warning = true
    org.xml.sax.driver = __redirected.__XMLReaderFactory
    os.arch = x86_64
    os.name = Mac OS X
    os.version = 10.9.4
    path.separator = :
    program.name = JBossTools: WildFly 8.1 Runtime Server
    socksNonProxyHosts = local|*.local|169.254/16|*.169.254/16
    sun.arch.data.model = 64
    sun.boot.class.path = /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/jre/lib/resources.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/jre/lib/rt.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/jre/lib/sunrsasign.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/jre/lib/jsse.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/jre/lib/jce.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/jre/lib/jfr.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/jre/lib/JObjC.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/jre/classes
    sun.boot.library.path = /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/jre/lib
    sun.cpu.endian = little
    sun.cpu.isalist = 
    sun.io.unicode.encoding = UnicodeBig
    sun.java.command = org.jboss.modules.Main -mp /Users/sridhar/Documents/tomcats/wildfly-8.1.0.Final/modules -jaxpmodule javax.xml.jaxp-provider org.jboss.as.standalone -b localhost --server-config=standalone.xml
    sun.java.launcher = SUN_STANDARD
    sun.jnu.encoding = UTF-8
    sun.management.compiler = HotSpot 64-Bit Tiered Compilers
    sun.os.patch.level = unknown
    sun.rmi.dgc.client.gcInterval = 3600000
    sun.rmi.dgc.server.gcInterval = 3600000
    user.country = US
    user.dir = /Users/sridhar/Documents/tomcats/wildfly-8.1.0.Final/bin
    user.home = /Users/sridhar
    user.language = en
    user.name = sridhar
    user.timezone = America/Los_Angeles
2014-10-02 16:32:59,750 DEBUG [org.jboss.as.config] (MSC service thread 1-7) VM Arguments: -Dprogram.name=JBossTools: WildFly 8.1 Runtime Server -Xms64m -Xmx512m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Djava.net.preferIPv4Stack=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Dorg.jboss.boot.log.file=/Users/sridhar/Documents/tomcats/wildfly-8.1.0.Final/standalone/log/boot.log -Dlogging.configuration=file:/Users/sridhar/Documents/tomcats/wildfly-8.1.0.Final/standalone/configuration/logging.properties -Djboss.home.dir=/Users/sridhar/Documents/tomcats/wildfly-8.1.0.Final -Dorg.jboss.logmanager.nocolor=true -Dfile.encoding=US-ASCII 
2014-10-02 16:33:00,919 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found movieplex7.war in deployment directory. To trigger deployment create a file called movieplex7.war.dodeploy
2014-10-02 16:33:00,936 INFO  [org.jboss.as.server] (Controller Boot Thread) JBAS015888: Creating http management service using socket-binding (management-http)
2014-10-02 16:33:00,959 INFO  [org.xnio] (MSC service thread 1-3) XNIO version 3.2.2.Final
2014-10-02 16:33:00,971 INFO  [org.xnio.nio] (MSC service thread 1-3) XNIO NIO Implementation Version 3.2.2.Final
2014-10-02 16:33:01,000 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 45) JBAS013171: Activating Security Subsystem
2014-10-02 16:33:01,001 WARN  [org.jboss.as.txn] (ServerService Thread Pool -- 46) JBAS010153: Node identifier property is set to the default value. Please make sure it is unique.
2014-10-02 16:33:01,013 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 32) JBAS010280: Activating Infinispan subsystem.
2014-10-02 16:33:01,017 INFO  [org.wildfly.extension.io] (ServerService Thread Pool -- 31) WFLYIO001: Worker 'default' has auto-configured to 8 core threads with 64 task threads based on your 4 available processors
2014-10-02 16:33:01,024 INFO  [org.jboss.as.security] (MSC service thread 1-4) JBAS013170: Current PicketBox version=4.0.21.Beta1
2014-10-02 16:33:01,031 INFO  [org.jboss.as.jsf] (ServerService Thread Pool -- 38) JBAS012615: Activated the following JSF Implementations: [main]
2014-10-02 16:33:01,036 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 40) JBAS011800: Activating Naming Subsystem
2014-10-02 16:33:01,071 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 47) JBAS017502: Undertow 1.0.15.Final starting
2014-10-02 16:33:01,071 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-5) JBAS017502: Undertow 1.0.15.Final starting
2014-10-02 16:33:01,073 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension
2014-10-02 16:33:01,105 INFO  [org.jboss.as.connector.logging] (MSC service thread 1-6) JBAS010408: Starting JCA Subsystem (IronJacamar 1.1.5.Final)
2014-10-02 16:33:01,114 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
2014-10-02 16:33:01,141 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-2) JBAS010417: Started Driver service with driver-name = h2
2014-10-02 16:33:01,156 INFO  [org.jboss.remoting] (MSC service thread 1-3) JBoss Remoting version 4.0.3.Final
2014-10-02 16:33:01,203 INFO  [org.jboss.as.naming] (MSC service thread 1-4) JBAS011802: Starting Naming Service
2014-10-02 16:33:01,204 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-7) JBAS015400: Bound mail session [java:jboss/mail/Default]
2014-10-02 16:33:01,305 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 47) JBAS017527: Creating file handler for path /Users/sridhar/Documents/tomcats/wildfly-8.1.0.Final/welcome-content
2014-10-02 16:33:01,547 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-2) JBAS017525: Started server default-server.
2014-10-02 16:33:01,622 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-3) JBAS017531: Host default-host starting
2014-10-02 16:33:01,812 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-2) JBAS017519: Undertow HTTP listener default listening on localhost/127.0.0.1:8080
2014-10-02 16:33:02,189 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-5) JBAS015012: Started FileSystemDeploymentService for directory /Users/sridhar/Documents/tomcats/wildfly-8.1.0.Final/standalone/deployments
2014-10-02 16:33:02,204 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "movieplex7.war" (runtime-name: "movieplex7.war")
2014-10-02 16:33:02,223 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-7) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
2014-10-02 16:33:02,402 INFO  [org.jboss.as.jpa] (MSC service thread 1-1) JBAS011401: Read persistence.xml for movieplex7PU
2014-10-02 16:33:02,475 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 50) JBAS011409: Starting Persistence Unit (phase 1 of 2) Service 'movieplex7.war#movieplex7PU'
2014-10-02 16:33:02,490 INFO  [org.hibernate.jpa.internal.util.LogHelper] (ServerService Thread Pool -- 50) HHH000204: Processing PersistenceUnitInfo [
    name: movieplex7PU
    ...]
2014-10-02 16:33:02,629 INFO  [org.hibernate.Version] (ServerService Thread Pool -- 50) HHH000412: Hibernate Core {4.3.5.Final}
2014-10-02 16:33:02,631 INFO  [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 50) HHH000206: hibernate.properties not found
2014-10-02 16:33:02,633 INFO  [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 50) HHH000021: Bytecode provider name : javassist
2014-10-02 16:33:02,753 INFO  [org.jboss.ws.common.management] (MSC service thread 1-2) JBWS022052: Starting JBoss Web Services - Stack CXF Server 4.2.4.Final
2014-10-02 16:33:02,933 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 50) JBAS011409: Starting Persistence Unit (phase 2 of 2) Service 'movieplex7.war#movieplex7PU'
2014-10-02 16:33:03,048 INFO  [org.hibernate.annotations.common.Version] (ServerService Thread Pool -- 50) HCANN000001: Hibernate Commons Annotations {4.0.4.Final}
2014-10-02 16:33:03,351 INFO  [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 50) HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
2014-10-02 16:33:03,359 WARN  [org.hibernate.dialect.H2Dialect] (ServerService Thread Pool -- 50) HHH000431: Unable to determine H2 database version, certain features may not work
2014-10-02 16:33:03,405 INFO  [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (ServerService Thread Pool -- 50) HHH000397: Using ASTQueryTranslatorFactory
2014-10-02 16:33:03,582 INFO  [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 50) HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
2014-10-02 16:33:03,583 WARN  [org.hibernate.dialect.H2Dialect] (ServerService Thread Pool -- 50) HHH000431: Unable to determine H2 database version, certain features may not work
2014-10-02 16:33:03,591 WARN  [org.hibernate.jpa.internal.schemagen.GenerationTargetToDatabase] (ServerService Thread Pool -- 50) Unable to execute JPA schema generation drop command [DROP TABLE SALES]
2014-10-02 16:33:03,592 WARN  [org.hibernate.jpa.internal.schemagen.GenerationTargetToDatabase] (ServerService Thread Pool -- 50) Unable to execute JPA schema generation drop command [DROP TABLE POINTS]
2014-10-02 16:33:03,592 WARN  [org.hibernate.jpa.internal.schemagen.GenerationTargetToDatabase] (ServerService Thread Pool -- 50) Unable to execute JPA schema generation drop command [DROP TABLE SHOW_TIMING]
2014-10-02 16:33:03,592 WARN  [org.hibernate.jpa.internal.schemagen.GenerationTargetToDatabase] (ServerService Thread Pool -- 50) Unable to execute JPA schema generation drop command [DROP TABLE MOVIE]
2014-10-02 16:33:03,593 WARN  [org.hibernate.jpa.internal.schemagen.GenerationTargetToDatabase] (ServerService Thread Pool -- 50) Unable to execute JPA schema generation drop command [DROP TABLE TIMESLOT]
2014-10-02 16:33:03,593 WARN  [org.hibernate.jpa.internal.schemagen.GenerationTargetToDatabase] (ServerService Thread Pool -- 50) Unable to execute JPA schema generation drop command [DROP TABLE THEATER]
2014-10-02 16:33:03,886 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-5) Initializing Mojarra 2.2.6-jbossorg-4 20140501-1134 for context '/movieplex7'
2014-10-02 16:33:04,547 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-5) JBAS017534: Registered web context: /movieplex7
2014-10-02 16:33:04,586 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 28) JBAS018559: Deployed "movieplex7.war" (runtime-name : "movieplex7.war")
2014-10-02 16:33:04,599 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:9990/management
2014-10-02 16:33:04,599 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990
2014-10-02 16:33:04,599 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015874: WildFly 8.1.0.Final "Kenny" started in 5622ms - Started 256 of 310 services (91 services are lazy, passive or on-demand)
arun-gupta commented 9 years ago

Mac ?

Any other Java processes running ?

Starting WildFly from IDE or CLI ?

JBoss Developer Studio (http://www.jboss.org/products/devstudio/overview/) provides integration with WildFly 8.1.0.

sridhar1982 commented 9 years ago

yes, Mac Mavericks, No other java processes running. WildFly is up and running. I started WildFly from IDE. I also tried WildFly from CLI to see if server can be started. One thing I noticed from http://127.0.0.1:9990, is that I have not configured any users, may be that is causing the issue here??

arun-gupta commented 9 years ago

That's exactly my setup as well.

Should not be an issue, try invoking add-users.sh and create a dummy user.

sridhar1982 commented 9 years ago

I created dummy user and tested it. but that did not help either. I tested the data-source connection from admin console and it looked fine. Here is a screen shot. However, the server log shows Unable to determine H2 database version, certain features may not work.

2014-10-02 18:02:50,167 INFO  [org.hibernate.Version] (ServerService Thread Pool -- 50) HHH000412: Hibernate Core {4.3.5.Final}
2014-10-02 18:02:50,170 INFO  [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 50) HHH000206: hibernate.properties not found
2014-10-02 18:02:50,172 INFO  [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 50) HHH000021: Bytecode provider name : javassist
2014-10-02 18:02:50,330 INFO  [org.jboss.ws.common.management] (MSC service thread 1-6) JBWS022052: Starting JBoss Web Services - Stack CXF Server 4.2.4.Final
2014-10-02 18:02:50,491 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 50) JBAS011409: Starting Persistence Unit (phase 2 of 2) Service 'movieplex7.war#movieplex7PU'
2014-10-02 18:02:50,641 INFO  [org.hibernate.annotations.common.Version] (ServerService Thread Pool -- 50) HCANN000001: Hibernate Commons Annotations {4.0.4.Final}
2014-10-02 18:02:50,875 INFO  [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 50) HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
2014-10-02 18:02:50,883 WARN  [org.hibernate.dialect.H2Dialect] (ServerService Thread Pool -- 50) HHH000431: Unable to determine H2 database version, certain features may not work
2014-10-02 18:02:50,922 INFO  [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (ServerService Thread Pool -- 50) HHH000397: Using ASTQueryTranslatorFactory
2014-10-02 18:02:51,047 INFO  [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 50) HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
2014-10-02 18:02:51,048 WARN  [org.hibernate.dialect.H2Dialect] (ServerService Thread Pool -- 50) HHH000431: Unable to determine H2 database version, certain features may not work
2014-10-02 18:02:51,055 WARN  [org.hibernate.jpa.internal.schemagen.GenerationTargetToDatabase] (ServerService Thread Pool -- 50) Unable to execute JPA schema generation drop command [DROP TABLE SALES]
2014-10-02 18:02:51,055 WARN  [org.hibernate.jpa.internal.schemagen.GenerationTargetToDatabase] (ServerService Thread Pool -- 50) Unable to execute JPA schema generation drop command [DROP TABLE POINTS]
2014-10-02 18:02:51,055 WARN  [org.hibernate.jpa.internal.schemagen.GenerationTargetToDatabase] (ServerService Thread Pool -- 50) Unable to execute JPA schema generation drop command [DROP TABLE SHOW_TIMING]
2014-10-02 18:02:51,055 WARN  [org.hibernate.jpa.internal.schemagen.GenerationTargetToDatabase] (ServerService Thread Pool -- 50) Unable to execute JPA schema generation drop command [DROP TABLE MOVIE]
2014-10-02 18:02:51,056 WARN  [org.hibernate.jpa.internal.schemagen.GenerationTargetToDatabase] (ServerService Thread Pool -- 50) Unable to execute JPA schema generation drop command [DROP TABLE TIMESLOT]
2014-10-02 18:02:51,056 WARN  [org.hibernate.jpa.internal.schemagen.GenerationTargetToDatabase] (ServerService Thread Pool -- 50) Unable to execute JPA schema generation drop command [DROP TABLE THEATER]
2014-10-02 18:02:51,250 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-8) Initializing Mojarra 2.2.6-jbossorg-4 20140501-1134 for context '/movieplex7'
2014-10-02 18:02:51,867 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-8) JBAS017534: Registered web context: /movieplex7
2014-10-02 18:02:51,905 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 28) JBAS018559: Deployed "movieplex7.war" (runtime-name : "movieplex7.war")
2014-10-02 18:02:51,910 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:9990/management
2014-10-02 18:02:51,911 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990
2014-10-02 18:02:51,911 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015874: WildFly 8.1.0.Final "Kenny" started in 5525ms - Started 256 of 310 services (91 services are lazy, passive or on-demand)

screen shot 2014-10-02 at 6 08 33 pm

sridhar1982 commented 9 years ago

I tried deploying on GlassFish and I see the same problem. I am wondering if the movieplex-starting-template.zip provided in this link is valid still. (http://htmlpreview.github.io/?https://github.com/javaee-samples/javaee7-hol/blob/master/docs/javaee7-hol.html)

sridhar1982 commented 9 years ago

I got it to work and key is to include the following configuration in persistence.xml <jta-data-source>java:jboss/datasources/ExampleDS</jta-data-source> I don't see it mentioned anywhere in the tutorial. This one solved it.

jamezp commented 9 years ago

Is that log output trimmed down? It looks like it's missing some EJB mappings are missing which makes me thing it wasn't fully deployed. You should see some stuff like:

16:07:24,244 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-13) JNDI bindings for session bean named ShowTimingFacadeREST in deployment unit deployment "movieplex7-1.0-SNAPSHOT.war" are as follows:

    java:global/movieplex7-1.0-SNAPSHOT/ShowTimingFacadeREST!org.javaee7.movieplex7.rest.ShowTimingFacadeREST
    java:app/movieplex7-1.0-SNAPSHOT/ShowTimingFacadeREST!org.javaee7.movieplex7.rest.ShowTimingFacadeREST
    java:module/ShowTimingFacadeREST!org.javaee7.movieplex7.rest.ShowTimingFacadeREST
    java:global/movieplex7-1.0-SNAPSHOT/ShowTimingFacadeREST
    java:app/movieplex7-1.0-SNAPSHOT/ShowTimingFacadeREST
    java:module/ShowTimingFacadeREST

If you go into the movieplex7 directory in a terminal try executing mvn clean org.wildfly.plugins:wildfly-maven-plugin:1.0.2.Final:run. I'm wondering if eclipse is creating the WAR incorrectly.

sridhar1982 commented 9 years ago

I have pasted the complete log up above in the beginning of this thread. I tried what you suggested. Here is the terminal output:

16:36:38,832 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-3) JNDI bindings for session bean named TimeslotFacadeREST in deployment unit deployment "movieplex7-1.0-SNAPSHOT.war" are as follows:
    java:global/movieplex7-1.0-SNAPSHOT/TimeslotFacadeREST!org.javaee7.movieplex7.rest.TimeslotFacadeREST
    java:app/movieplex7-1.0-SNAPSHOT/TimeslotFacadeREST!org.javaee7.movieplex7.rest.TimeslotFacadeREST
    java:module/TimeslotFacadeREST!org.javaee7.movieplex7.rest.TimeslotFacadeREST
    java:global/movieplex7-1.0-SNAPSHOT/TimeslotFacadeREST
    java:app/movieplex7-1.0-SNAPSHOT/TimeslotFacadeREST
    java:module/TimeslotFacadeREST
16:36:39,137 INFO  [org.jboss.weld.deployer] (MSC service thread 1-8) JBAS016005: Starting Services for CDI deployment: movieplex7-1.0-SNAPSHOT.war
16:36:39,175 INFO  [org.jboss.weld.Version] (MSC service thread 1-8) WELD-000900: 2.1.2 (Final)
16:36:39,223 INFO  [org.jboss.weld.deployer] (MSC service thread 1-1) JBAS016008: Starting weld service for deployment movieplex7-1.0-SNAPSHOT.war
16:36:39,403 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 18) JBAS011409: Starting Persistence Unit (phase 2 of 2) Service 'movieplex7-1.0-SNAPSHOT.war#movieplex7PU'
16:36:39,498 INFO  [org.hibernate.annotations.common.Version] (ServerService Thread Pool -- 18) HCANN000001: Hibernate Commons Annotations {4.0.4.Final}
16:36:39,737 INFO  [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 18) HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
16:36:39,746 WARN  [org.hibernate.dialect.H2Dialect] (ServerService Thread Pool -- 18) HHH000431: Unable to determine H2 database version, certain features may not work
16:36:39,930 INFO  [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (ServerService Thread Pool -- 18) HHH000397: Using ASTQueryTranslatorFactory
16:36:40,576 INFO  [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 18) HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
16:36:40,577 WARN  [org.hibernate.dialect.H2Dialect] (ServerService Thread Pool -- 18) HHH000431: Unable to determine H2 database version, certain features may not work
16:36:40,587 WARN  [org.hibernate.jpa.internal.schemagen.GenerationTargetToDatabase] (ServerService Thread Pool -- 18) Unable to execute JPA schema generation drop command [DROP TABLE SALES]
16:36:40,588 WARN  [org.hibernate.jpa.internal.schemagen.GenerationTargetToDatabase] (ServerService Thread Pool -- 18) Unable to execute JPA schema generation drop command [DROP TABLE POINTS]
16:36:40,588 WARN  [org.hibernate.jpa.internal.schemagen.GenerationTargetToDatabase] (ServerService Thread Pool -- 18) Unable to execute JPA schema generation drop command [DROP TABLE SHOW_TIMING]
16:36:40,588 WARN  [org.hibernate.jpa.internal.schemagen.GenerationTargetToDatabase] (ServerService Thread Pool -- 18) Unable to execute JPA schema generation drop command [DROP TABLE MOVIE]
16:36:40,589 WARN  [org.hibernate.jpa.internal.schemagen.GenerationTargetToDatabase] (ServerService Thread Pool -- 18) Unable to execute JPA schema generation drop command [DROP TABLE TIMESLOT]
16:36:40,589 WARN  [org.hibernate.jpa.internal.schemagen.GenerationTargetToDatabase] (ServerService Thread Pool -- 18) Unable to execute JPA schema generation drop command [DROP TABLE THEATER]
16:36:41,621 INFO  [io.undertow.websockets.jsr] (MSC service thread 1-2) UT026003: Adding annotated server endpoint class org.javaee7.movieplex7.chat.ChatServer for path /websocket
16:36:41,688 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-2) Initializing Mojarra 2.2.6-jbossorg-4 20140501-1134 for context '/movieplex7-1.0-SNAPSHOT'
16:36:42,310 INFO  [org.jboss.resteasy.spi.ResteasyDeployment] (MSC service thread 1-2) Deploying javax.ws.rs.core.Application: class org.javaee7.movieplex7.rest.ApplicationConfig
16:36:42,377 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-2) JBAS017534: Registered web context: /movieplex7-1.0-SNAPSHOT
16:36:42,415 INFO  [org.jboss.as.server] (management-handler-thread - 4) JBAS018559: Deployed "movieplex7-1.0-SNAPSHOT.war" (runtime-name : "movieplex7-1.0-SNAPSHOT.war")

please note, I am running movieplex7 starting-template and NOT the solution (though I tried this and its behavior is similar)

Btw, what's that plug-in supposed to do?

jamezp commented 9 years ago

Did you see the results you expected on http://localhost:8080/movieplex7-1.0-SNAPSHOT?

I'm not sure I follow the following command just downloads the ZIP from the tutorial, uncompresses it and runs the maven plugin.

 wget -O m7.zip https://github.com/javaee-samples/javaee7-hol/blob/master/starting-template/movieplex7-starting-template.zip?raw=true && unzip m7.zip && cd movieplex7 && mvn clean org.wildfly.plugins:wildfly-maven-plugin:1.0.2.Final:run

I assume by "starting-template" you just mean the download link from point 3 step 1

The plugin is just the wildfly-maven-plugin. I was just executing the run goal to test the project.

sridhar1982 commented 9 years ago

I did not see expected results at http://localhost:8080/movieplex7/. Here is the snapshot. screen shot 2014-10-03 at 5 06 00 pm

I tried what you suggested. But I do not see any difference. Here is the log which is no different than the previous one.

17:03:34,805 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-8) JNDI bindings for session bean named TimeslotFacadeREST in deployment unit deployment "movieplex7-1.0-SNAPSHOT.war" are as follows:
    java:global/movieplex7-1.0-SNAPSHOT/TimeslotFacadeREST!org.javaee7.movieplex7.rest.TimeslotFacadeREST
    java:app/movieplex7-1.0-SNAPSHOT/TimeslotFacadeREST!org.javaee7.movieplex7.rest.TimeslotFacadeREST
    java:module/TimeslotFacadeREST!org.javaee7.movieplex7.rest.TimeslotFacadeREST
    java:global/movieplex7-1.0-SNAPSHOT/TimeslotFacadeREST
    java:app/movieplex7-1.0-SNAPSHOT/TimeslotFacadeREST
    java:module/TimeslotFacadeREST
17:03:35,035 INFO  [org.jboss.weld.deployer] (MSC service thread 1-3) JBAS016005: Starting Services for CDI deployment: movieplex7-1.0-SNAPSHOT.war
17:03:35,058 INFO  [org.jboss.weld.Version] (MSC service thread 1-3) WELD-000900: 2.1.2 (Final)
17:03:35,089 INFO  [org.jboss.weld.deployer] (MSC service thread 1-3) JBAS016008: Starting weld service for deployment movieplex7-1.0-SNAPSHOT.war
17:03:35,209 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 13) JBAS011409: Starting Persistence Unit (phase 2 of 2) Service 'movieplex7-1.0-SNAPSHOT.war#movieplex7PU'
17:03:35,268 INFO  [org.hibernate.annotations.common.Version] (ServerService Thread Pool -- 13) HCANN000001: Hibernate Commons Annotations {4.0.4.Final}
17:03:35,455 INFO  [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 13) HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
17:03:35,462 WARN  [org.hibernate.dialect.H2Dialect] (ServerService Thread Pool -- 13) HHH000431: Unable to determine H2 database version, certain features may not work
17:03:35,592 INFO  [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (ServerService Thread Pool -- 13) HHH000397: Using ASTQueryTranslatorFactory
17:03:36,034 INFO  [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 13) HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
17:03:36,034 WARN  [org.hibernate.dialect.H2Dialect] (ServerService Thread Pool -- 13) HHH000431: Unable to determine H2 database version, certain features may not work
17:03:36,042 WARN  [org.hibernate.jpa.internal.schemagen.GenerationTargetToDatabase] (ServerService Thread Pool -- 13) Unable to execute JPA schema generation drop command [DROP TABLE SALES]
17:03:36,042 WARN  [org.hibernate.jpa.internal.schemagen.GenerationTargetToDatabase] (ServerService Thread Pool -- 13) Unable to execute JPA schema generation drop command [DROP TABLE POINTS]
17:03:36,042 WARN  [org.hibernate.jpa.internal.schemagen.GenerationTargetToDatabase] (ServerService Thread Pool -- 13) Unable to execute JPA schema generation drop command [DROP TABLE SHOW_TIMING]
17:03:36,043 WARN  [org.hibernate.jpa.internal.schemagen.GenerationTargetToDatabase] (ServerService Thread Pool -- 13) Unable to execute JPA schema generation drop command [DROP TABLE MOVIE]
17:03:36,043 WARN  [org.hibernate.jpa.internal.schemagen.GenerationTargetToDatabase] (ServerService Thread Pool -- 13) Unable to execute JPA schema generation drop command [DROP TABLE TIMESLOT]
17:03:36,043 WARN  [org.hibernate.jpa.internal.schemagen.GenerationTargetToDatabase] (ServerService Thread Pool -- 13) Unable to execute JPA schema generation drop command [DROP TABLE THEATER]
17:03:37,197 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-4) Initializing Mojarra 2.2.6-jbossorg-4 20140501-1134 for context '/movieplex7-1.0-SNAPSHOT'
17:03:38,035 INFO  [org.jboss.resteasy.spi.ResteasyDeployment] (MSC service thread 1-4) Deploying javax.ws.rs.core.Application: class org.javaee7.movieplex7.rest.ApplicationConfig
17:03:38,136 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-4) JBAS017534: Registered web context: /movieplex7-1.0-SNAPSHOT
17:03:38,198 INFO  [org.jboss.as.server] (management-handler-thread - 4) JBAS018559: Deployed "movieplex7-1.0-SNAPSHOT.war" (runtime-name : "movieplex7-1.0-SNAPSHOT.war")
jamezp commented 9 years ago

That is odd. I've tested on Fedora and OS X getting the correct result.

Here is what my console logs look like:

[INFO] Server is starting up. Press CTRL + C to stop the server.
Oct 03, 2014 5:09:41 PM org.xnio.Xnio <clinit>
INFO: XNIO version 3.2.2.Final
Oct 03, 2014 5:09:41 PM org.xnio.nio.NioXnio <clinit>
INFO: XNIO NIO Implementation Version 3.2.2.Final
Oct 03, 2014 5:09:41 PM org.jboss.remoting3.EndpointImpl <clinit>
INFO: JBoss Remoting version 4.0.3.Final
17:09:41,864 INFO  [org.jboss.modules] (main) JBoss Modules version 1.3.3.Final
17:09:42,070 INFO  [org.jboss.msc] (main) JBoss MSC version 1.2.2.Final
17:09:42,150 INFO  [org.jboss.as] (MSC service thread 1-6) JBAS015899: WildFly 8.1.0.Final "Kenny" starting
17:09:42,804 INFO  [org.jboss.as.server] (Controller Boot Thread) JBAS015888: Creating http management service using socket-binding (management-http)
17:09:42,816 INFO  [org.xnio] (MSC service thread 1-3) XNIO version 3.2.2.Final
17:09:42,823 INFO  [org.xnio.nio] (MSC service thread 1-3) XNIO NIO Implementation Version 3.2.2.Final
17:09:42,840 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 32) JBAS010280: Activating Infinispan subsystem.
17:09:42,848 INFO  [org.wildfly.extension.io] (ServerService Thread Pool -- 31) WFLYIO001: Worker 'default' has auto-configured to 16 core threads with 128 task threads based on your 8 available processors
17:09:42,851 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 45) JBAS013171: Activating Security Subsystem
17:09:42,853 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 40) JBAS011800: Activating Naming Subsystem
17:09:42,853 WARN  [org.jboss.as.txn] (ServerService Thread Pool -- 46) JBAS010153: Node identifier property is set to the default value. Please make sure it is unique.
17:09:42,856 INFO  [org.jboss.as.jsf] (ServerService Thread Pool -- 38) JBAS012615: Activated the following JSF Implementations: [main]
17:09:42,864 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension
17:09:42,866 INFO  [org.jboss.as.security] (MSC service thread 1-6) JBAS013170: Current PicketBox version=4.0.21.Beta1
17:09:42,882 INFO  [org.jboss.as.connector.logging] (MSC service thread 1-10) JBAS010408: Starting JCA Subsystem (IronJacamar 1.1.5.Final)
17:09:42,883 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-8) JBAS017502: Undertow 1.0.15.Final starting
17:09:42,883 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 47) JBAS017502: Undertow 1.0.15.Final starting
17:09:42,904 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
17:09:42,906 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-14) JBAS010417: Started Driver service with driver-name = h2
17:09:42,937 INFO  [org.jboss.remoting] (MSC service thread 1-3) JBoss Remoting version 4.0.3.Final
17:09:42,950 INFO  [org.jboss.as.naming] (MSC service thread 1-4) JBAS011802: Starting Naming Service
17:09:42,951 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-10) JBAS015400: Bound mail session [java:jboss/mail/Default]
17:09:42,985 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 47) JBAS017527: Creating file handler for path /home/jperkins/tmp/movieplex7/target/wildfly-run/wildfly-8.1.0.Final/welcome-content
17:09:42,995 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-11) JBAS017525: Started server default-server.
17:09:43,029 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-13) JBAS017531: Host default-host starting
17:09:43,083 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-11) JBAS017519: Undertow HTTP listener default listening on /127.0.0.1:8080
17:09:43,303 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-4) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
17:09:43,306 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-5) JBAS015012: Started FileSystemDeploymentService for directory /home/jperkins/tmp/movieplex7/target/wildfly-run/wildfly-8.1.0.Final/standalone/deployments
17:09:43,667 INFO  [org.jboss.ws.common.management] (MSC service thread 1-15) JBWS022052: Starting JBoss Web Services - Stack CXF Server 4.2.4.Final
17:09:43,747 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:9990/management
17:09:43,747 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990
17:09:43,747 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015874: WildFly 8.1.0.Final "Kenny" started in 2112ms - Started 184 of 233 services (81 services are lazy, passive or on-demand)
[INFO] Deploying application 'movieplex7-1.0-SNAPSHOT.war'

17:09:46,934 INFO  [org.jboss.as.repository] (management-handler-thread - 4) JBAS014900: Content added at location /home/jperkins/tmp/movieplex7/target/wildfly-run/wildfly-8.1.0.Final/standalone/data/content/80/1cf99e6a0e8d285c4e39e292226c5e9b495ec0/content
17:09:46,950 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-13) JBAS015876: Starting deployment of "movieplex7-1.0-SNAPSHOT.war" (runtime-name: "movieplex7-1.0-SNAPSHOT.war")
17:09:47,046 INFO  [org.jboss.as.jpa] (MSC service thread 1-5) JBAS011401: Read persistence.xml for movieplex7PU
17:09:47,098 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 17) JBAS011409: Starting Persistence Unit (phase 1 of 2) Service 'movieplex7-1.0-SNAPSHOT.war#movieplex7PU'
17:09:47,104 INFO  [org.hibernate.jpa.internal.util.LogHelper] (ServerService Thread Pool -- 17) HHH000204: Processing PersistenceUnitInfo [
    name: movieplex7PU
    ...]
17:09:47,149 INFO  [org.hibernate.Version] (ServerService Thread Pool -- 17) HHH000412: Hibernate Core {4.3.5.Final}
17:09:47,151 INFO  [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 17) HHH000206: hibernate.properties not found
17:09:47,152 INFO  [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 17) HHH000021: Bytecode provider name : javassist
17:09:47,248 INFO  [org.jboss.weld.deployer] (MSC service thread 1-14) JBAS016002: Processing weld deployment movieplex7-1.0-SNAPSHOT.war
17:09:47,304 INFO  [org.hibernate.validator.internal.util.Version] (MSC service thread 1-14) HV000001: Hibernate Validator 5.1.0.Final
17:09:47,366 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-14) JNDI bindings for session bean named ShowTimingFacadeREST in deployment unit deployment "movieplex7-1.0-SNAPSHOT.war" are as follows:

    java:global/movieplex7-1.0-SNAPSHOT/ShowTimingFacadeREST!org.javaee7.movieplex7.rest.ShowTimingFacadeREST
    java:app/movieplex7-1.0-SNAPSHOT/ShowTimingFacadeREST!org.javaee7.movieplex7.rest.ShowTimingFacadeREST
    java:module/ShowTimingFacadeREST!org.javaee7.movieplex7.rest.ShowTimingFacadeREST
    java:global/movieplex7-1.0-SNAPSHOT/ShowTimingFacadeREST
    java:app/movieplex7-1.0-SNAPSHOT/ShowTimingFacadeREST
    java:module/ShowTimingFacadeREST

17:09:47,367 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-14) JNDI bindings for session bean named TheaterFacadeREST in deployment unit deployment "movieplex7-1.0-SNAPSHOT.war" are as follows:

    java:global/movieplex7-1.0-SNAPSHOT/TheaterFacadeREST!org.javaee7.movieplex7.rest.TheaterFacadeREST
    java:app/movieplex7-1.0-SNAPSHOT/TheaterFacadeREST!org.javaee7.movieplex7.rest.TheaterFacadeREST
    java:module/TheaterFacadeREST!org.javaee7.movieplex7.rest.TheaterFacadeREST
    java:global/movieplex7-1.0-SNAPSHOT/TheaterFacadeREST
    java:app/movieplex7-1.0-SNAPSHOT/TheaterFacadeREST
    java:module/TheaterFacadeREST

17:09:47,368 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-14) JNDI bindings for session bean named MovieFacadeREST in deployment unit deployment "movieplex7-1.0-SNAPSHOT.war" are as follows:

    java:global/movieplex7-1.0-SNAPSHOT/MovieFacadeREST!org.javaee7.movieplex7.rest.MovieFacadeREST
    java:app/movieplex7-1.0-SNAPSHOT/MovieFacadeREST!org.javaee7.movieplex7.rest.MovieFacadeREST
    java:module/MovieFacadeREST!org.javaee7.movieplex7.rest.MovieFacadeREST
    java:global/movieplex7-1.0-SNAPSHOT/MovieFacadeREST
    java:app/movieplex7-1.0-SNAPSHOT/MovieFacadeREST
    java:module/MovieFacadeREST

17:09:47,368 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-14) JNDI bindings for session bean named TimeslotFacadeREST in deployment unit deployment "movieplex7-1.0-SNAPSHOT.war" are as follows:

    java:global/movieplex7-1.0-SNAPSHOT/TimeslotFacadeREST!org.javaee7.movieplex7.rest.TimeslotFacadeREST
    java:app/movieplex7-1.0-SNAPSHOT/TimeslotFacadeREST!org.javaee7.movieplex7.rest.TimeslotFacadeREST
    java:module/TimeslotFacadeREST!org.javaee7.movieplex7.rest.TimeslotFacadeREST
    java:global/movieplex7-1.0-SNAPSHOT/TimeslotFacadeREST
    java:app/movieplex7-1.0-SNAPSHOT/TimeslotFacadeREST
    java:module/TimeslotFacadeREST

17:09:47,565 INFO  [org.jboss.weld.deployer] (MSC service thread 1-15) JBAS016005: Starting Services for CDI deployment: movieplex7-1.0-SNAPSHOT.war
17:09:47,587 INFO  [org.jboss.weld.Version] (MSC service thread 1-15) WELD-000900: 2.1.2 (Final)
17:09:47,614 INFO  [org.jboss.weld.deployer] (MSC service thread 1-12) JBAS016008: Starting weld service for deployment movieplex7-1.0-SNAPSHOT.war
17:09:47,699 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 17) JBAS011409: Starting Persistence Unit (phase 2 of 2) Service 'movieplex7-1.0-SNAPSHOT.war#movieplex7PU'
17:09:47,758 INFO  [org.hibernate.annotations.common.Version] (ServerService Thread Pool -- 17) HCANN000001: Hibernate Commons Annotations {4.0.4.Final}
17:09:47,890 INFO  [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 17) HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
17:09:47,895 WARN  [org.hibernate.dialect.H2Dialect] (ServerService Thread Pool -- 17) HHH000431: Unable to determine H2 database version, certain features may not work
17:09:47,996 INFO  [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (ServerService Thread Pool -- 17) HHH000397: Using ASTQueryTranslatorFactory
17:09:48,342 INFO  [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 17) HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
17:09:48,343 WARN  [org.hibernate.dialect.H2Dialect] (ServerService Thread Pool -- 17) HHH000431: Unable to determine H2 database version, certain features may not work
17:09:48,351 WARN  [org.hibernate.jpa.internal.schemagen.GenerationTargetToDatabase] (ServerService Thread Pool -- 17) Unable to execute JPA schema generation drop command [DROP TABLE SALES]
17:09:48,351 WARN  [org.hibernate.jpa.internal.schemagen.GenerationTargetToDatabase] (ServerService Thread Pool -- 17) Unable to execute JPA schema generation drop command [DROP TABLE POINTS]
17:09:48,352 WARN  [org.hibernate.jpa.internal.schemagen.GenerationTargetToDatabase] (ServerService Thread Pool -- 17) Unable to execute JPA schema generation drop command [DROP TABLE SHOW_TIMING]
17:09:48,352 WARN  [org.hibernate.jpa.internal.schemagen.GenerationTargetToDatabase] (ServerService Thread Pool -- 17) Unable to execute JPA schema generation drop command [DROP TABLE MOVIE]
17:09:48,352 WARN  [org.hibernate.jpa.internal.schemagen.GenerationTargetToDatabase] (ServerService Thread Pool -- 17) Unable to execute JPA schema generation drop command [DROP TABLE TIMESLOT]
17:09:48,353 WARN  [org.hibernate.jpa.internal.schemagen.GenerationTargetToDatabase] (ServerService Thread Pool -- 17) Unable to execute JPA schema generation drop command [DROP TABLE THEATER]
17:09:49,079 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-16) Initializing Mojarra 2.2.6-jbossorg-4 20140501-1134 for context '/movieplex7-1.0-SNAPSHOT'
17:09:49,532 INFO  [org.jboss.resteasy.spi.ResteasyDeployment] (MSC service thread 1-16) Deploying javax.ws.rs.core.Application: class org.javaee7.movieplex7.rest.ApplicationConfig
17:09:49,587 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-16) JBAS017534: Registered web context: /movieplex7-1.0-SNAPSHOT
17:09:49,656 INFO  [org.jboss.as.server] (management-handler-thread - 4) JBAS018559: Deployed "movieplex7-1.0-SNAPSHOT.war" (runtime-name : "movieplex7-1.0-SNAPSHOT.war")

Note that's using the wildfly-maven-plugin:run goal. I have not tried loading this all up in an IDE and running it. If I run that and hit http://localhost:8080/movieplex7-1.0-SNAPSHOT/ I see the correct results.

sridhar1982 commented 9 years ago

I just tried what you gave me above (pulling the fresh git repo and running wildfly-maven-plugin:run goal). But I need to point to http://localhost:8080/movieplex7/ and NOT http://localhost:8080/movieplex7-1.0-SNAPSHOT/ because the latter throws 404 PAGE NOT FOUND

jamezp commented 9 years ago

I meant to include those WARN messages should be okay. I'm not sure though why the database tables aren't being created.

Ah, okay. So you've changed something. Would you mind zipping up your project and emailing it me? I can see if I can get it to work locally or possibly see what might be wrong. My email is jperkins at redhat dot com.

ankitshende commented 7 years ago

I'm getting error on while building and running the same hands on lab---- first I tried my way it didn't worked than I used word to word same like your hands on lab but still it is showing this error

Severe: Exception while invoking class com.sun.enterprise.web.WebApplication start method java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.apache.catalina.LifecycleException: java.lang.NullPointerException at com.sun.enterprise.web.WebApplication.start(WebApplication.java:168) at org.glassfish.internal.data.EngineRef.start(EngineRef.java:122) at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:291) at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:352) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:500) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219) at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491) at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:539) at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:535) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:360) at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:534) at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:565) at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:557) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:360) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:556) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1464) at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1300(CommandRunnerImpl.java:109) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1846) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1722) at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:534) at com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:224) at org.glassfish.grizzly.http.server.StaticHttpHandlerBase.service(StaticHttpHandlerBase.java:189) at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167) at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:206) at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:180) at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235) at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:283) at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200) at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:132) at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:111) at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:536) at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112) at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117) at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56) at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137) at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:591) at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:571) at java.lang.Thread.run(Thread.java:745)

Severe: Exception during lifecycle processing java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.apache.catalina.LifecycleException: java.lang.NullPointerException at com.sun.enterprise.web.WebApplication.start(WebApplication.java:168) at org.glassfish.internal.data.EngineRef.start(EngineRef.java:122) at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:291) at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:352) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:500) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219) at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491) at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:539) at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:535) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:360) at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:534) at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:565) at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:557) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:360) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:556) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1464) at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1300(CommandRunnerImpl.java:109) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1846) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1722) at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:534) at com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:224) at org.glassfish.grizzly.http.server.StaticHttpHandlerBase.service(StaticHttpHandlerBase.java:189) at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167) at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:206) at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:180) at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235) at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:283) at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200) at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:132) at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:111) at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:536) at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112) at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117) at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56) at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137) at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:591) at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:571) at java.lang.Thread.run(Thread.java:745)

Severe: Exception while loading the app Severe: Undeployment failed for context /movieplex7 Info: /file:/C:/Users/justme/Documents/NetBeansProjects/movieplex7/target/movieplex7-1.0-SNAPSHOT/WEB-INF/classes/_movieplex7PU logout successful Severe: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.apache.catalina.LifecycleException: java.lang.NullPointerException

ankitshende commented 7 years ago

Another issue my jsf2.2 page is not showing movieFacadeREST class on page or we can say it is not linked to the page ---- I'm using Netbeans IDE8.1 along with glassfish4.1.1 plz provide solution ASAP

Pick a Movie

/h:selectOneRadio ```
```
ankitshende commented 7 years ago

I have also added web.xml for discovery of REST endpoints but still its not working

<?xml version="1.0" encoding="UTF-8"?>

javax.faces.PROJECT_STAGE Development javax.faces.CLIENT_WINDOW_MODE url ``` Faces Servlet javax.faces.webapp.FacesServlet 1 Faces Servlet /faces/* com.mycompany.movieplex7.rest.ApplicationConfig 1 ``` com.mycompany.movieplex7.rest.ApplicationConfig /webresources/* 30 faces/index.xhtml
ankitshende commented 7 years ago

I have used fully qualified class-name for the REST endpoint class in servlet mapping than also it's not working the Facade REST class and ApplicationConfig are Ide generated .... I tried both way once I wrote on my own and next time Ide generated still the issue is same plz repy ASAP