-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to reproduce the javaee7-hol at step 3? #17
Comments
Java EE 7 provides a default Data Source that is mapped to H2 in-memory database in WildFly. Can you share your server log ? |
Here is the server log: 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) |
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 |
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) |
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. |
yes, Mac Mavericks, No other java processes running. WildFly is up and running. |
That's exactly my setup as well. Should not be an issue, try invoking add-users.sh and create a dummy user. |
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. 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) |
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) |
I got it to work and key is to include the following configuration in persistence.xml |
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:
If you go into the |
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? |
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.
I assume by "starting-template" you just mean the download link from point 3 step 1 The plugin is just the |
I did not see expected results at http://localhost:8080/movieplex7/. Here is the snapshot. 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") |
That is odd. I've tested on Fedora and OS X getting the correct result. Here is what my console logs look like:
Note that's using the |
I just tried what you gave me above (pulling the fresh git repo and running |
I meant to include those 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. |
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 Severe: Exception during lifecycle processing Severe: Exception while loading the app |
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 <ui:define name="content"> Pick a Movie<h:form prependId="false"> <h:selectOneRadio value="#{booking.movieId}" layout="pageDirection" required="true"> <f:selectItems value="#{movieFacadeREST.all}" var="movie" itemValue="#{movie.id}" itemLabel="movie.name"/> /h:selectOneRadio
|
I have also added web.xml for discovery of REST endpoints but still its not working javax.faces.PROJECT_STAGE Development javax.faces.CLIENT_WINDOW_MODE url
|
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 |
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 andsql load scripts
that is used to initialize the data-source. If no data-source is provided inpersistence.xml
,WildFly
will provide adefault data-source
as mentioned in the tutorial.At the end of step 3 in the tutorial link, my screen-shot looks like this:
But what is expected (as per tutorial link: Figure 12) is this:
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.
The text was updated successfully, but these errors were encountered: