7 Replies Latest reply on Apr 29, 2015 1:42 PM by 136697122

    JBoss7.11 the problem about datasource,who can help me

    136697122

      this is fist ask a question on there,i am student,this is a test, but i can not finsh because the problem,i hope you help me, tonz thanks.

      here is standalone.xml:

      1.png

      here is module.xml:

      1.png

      here is console info:

      1.png

      this is main error:

      ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.module.jsf_demo_dataresource.jsf_demo_dataresource.env.loginjboss.naming.context.java.jboss.resources.loginMissing[jboss.naming.context.java.module.jsf_demo_dataresource.jsf_demo_dataresource.env.loginjboss.naming.context.java.jboss.resources.login]"]}}}

        • 1. Re: JBoss7.11 the problem about datasource,who can help me
          wdfink

          The datasources seems correct so far.

          Seems like the application can not deployed because of issues. could you show the log messages for the jsf-demo-datasource.jar complete?

          Also how the application look like?

          • 2. Re: JBoss7.11 the problem about datasource,who can help me
            136697122

            thank you reply ,i feel very happy!

            i am university student,this is a demo about configuration  datasource. i search some information about configuration datasource,configuration main is standalone.xml、module.xml. but i add configuration information in xml, run as is error.

            here is server.log

            02:27:49,782 INFO  [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem

            02:27:49,833 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem

            02:27:49,844 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013101: Activating Security Subsystem

            02:27:49,853 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.

            02:27:49,856 INFO  [org.jboss.as.connector] (MSC service thread 1-8) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)

            02:27:49,890 INFO  [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011940: Activating OSGi Subsystem

            02:27:49,922 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension

            02:27:49,944 INFO  [org.jboss.as.security] (MSC service thread 1-6) JBAS013100: Current PicketBox version=4.0.7.Final

            02:27:49,991 INFO  [org.jboss.as.naming] (MSC service thread 1-3) JBAS011802: Starting Naming Service

            02:27:50,005 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010404: Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)

            02:27:50,024 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-8) JBAS015400: Bound mail session [java:jboss/mail/Default]

            02:27:50,051 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)

            02:27:50,158 INFO  [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-3) JBoss Web Services - Stack CXF Server 4.0.2.GA

            02:27:50,625 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-1) Starting Coyote HTTP/1.1 on http-localhost-127.0.0.1-8080

            02:27:51,371 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-2) JBAS015012: Started FileSystemDeploymentService for directory D:\JBoss7\jboss7.1.1\standalone\deployments

            02:27:51,379 INFO  [org.jboss.as.remoting] (MSC service thread 1-8) JBAS017100: Listening on localhost/127.0.0.1:9999

            02:27:51,392 INFO  [org.jboss.as.remoting] (MSC service thread 1-1) JBAS017100: Listening on localhost/127.0.0.1:4447

            02:27:51,426 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015014: Re-attempting failed deployment jsf_demo_dataresource.war

            02:27:51,443 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015014: Re-attempting failed deployment jsf_demo_login.war

            02:27:51,449 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found jsf_demo_dataresource.war in deployment directory. To trigger deployment create a file called jsf_demo_dataresource.war.dodeploy

            02:27:51,451 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found jsf_demo_login.war in deployment directory. To trigger deployment create a file called jsf_demo_login.war.dodeploy

            02:27:51,536 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-4) JBAS010400: Bound data source [java:jboss/datasources/MysqlDS]

            02:27:51,536 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]

            02:27:51,582 INFO  [org.jboss.as] (MSC service thread 1-4) JBAS015951: Admin console listening on http://127.0.0.1:9990

            02:27:51,583 INFO  [org.jboss.as] (MSC service thread 1-4) JBAS015874: JBoss AS 7.1.1.Final "Brontes" started in 3514ms - Started 138 of 214 services (74 services are passive or on-demand)

            02:27:51,592 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015876: Starting deployment of "jsf_demo_login.war"

            02:27:51,593 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015876: Starting deployment of "jsf_demo_dataresource.war"

            02:27:51,940 INFO  [org.apache.catalina.core.StandardContext] (MSC service thread 1-3) The listener "com.sun.faces.config.ConfigureListener" is already configured for this context. The duplicate definition has been ignored.

            02:27:52,042 信息    [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-3) 初始化上下文 '/jsf_demo_login' 的 Mojarra 2.1.7-jbossorg-1 (20120227-1401)

            02:27:53,081 INFO  [org.hibernate.validator.util.Version] (MSC service thread 1-3) Hibernate Validator 4.2.0.Final

            02:27:53,251 INFO  [org.jboss.web] (MSC service thread 1-3) JBAS018210: Registering web context: /jsf_demo_login

            02:27:53,461 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015871: Deploy of deployment "jsf_demo_login.war" was rolled back with no failure message

            02:27:53,463 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "jsf_demo_dataresource.war" was rolled back with failure message {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.module.jsf_demo_dataresource.jsf_demo_dataresource.env.loginjboss.naming.context.java.jboss.resources.loginMissing[jboss.naming.context.java.module.jsf_demo_dataresource.jsf_demo_dataresource.env.loginjboss.naming.context.java.jboss.resources.login]"]}

            02:27:53,492 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015877: Stopped deployment jsf_demo_dataresource.war in 29ms

            02:27:53,493 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015877: Stopped deployment jsf_demo_login.war in 30ms

            02:27:53,495 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report

            JBAS014775:    New missing/unsatisfied dependencies:

                  service jboss.naming.context.java.jboss.resources.login (missing) dependents: [service jboss.naming.context.java.module.jsf_demo_dataresource.jsf_demo_dataresource.env.login]

             

             

            02:27:53,498 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.module.jsf_demo_dataresource.jsf_demo_dataresource.env.loginjboss.naming.context.java.jboss.resources.loginMissing[jboss.naming.context.java.module.jsf_demo_dataresource.jsf_demo_dataresource.env.loginjboss.naming.context.java.jboss.resources.login]"]}}}

            02:27:53,502 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS014654: Composite operation was rolled back

             

            here is boot.log

            02:27:48,423 信息    [org.jboss.modules] JBoss Modules version 1.1.1.GA

            02:27:48,704 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA

            02:27:48,759 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting

            02:27:48,762 DEBUG [org.jboss.as.config] Configured system properties:

              awt.toolkit = sun.awt.windows.WToolkit

              file.encoding = UTF-8

              file.encoding.pkg = sun.io

              file.separator = \

              java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment

              java.awt.headless = true

              java.awt.printerjob = sun.awt.windows.WPrinterJob

              java.class.path = D:\JBoss7\jboss7.1.1\jboss-modules.jar

              java.class.version = 51.0

              java.endorsed.dirs = C:\Program Files\Java\jdk1.7.0_79\jre\lib\endorsed

              java.ext.dirs = C:\Program Files\Java\jdk1.7.0_79\jre\lib\ext;C:\Windows\Sun\Java\lib\ext

              java.home = C:\Program Files\Java\jdk1.7.0_79\jre

              java.io.tmpdir = C:\Users\ADMINI~1\AppData\Local\Temp\

              java.library.path = C:\Program Files\Java\jdk1.7.0_79\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;native;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows7Master;C:\Program Files\Java\jdk1.7.0_79\bin;C:\Program Files\Java\jdk1.7.0_79\jre\bin;D:\mysql-5.1.73-winx64\bin;D:\sdk\sdk\tools;F:\AppServ\Apache2.2\bin;F:\AppServ\php5;F:\AppServ\MySQL\bin;.

              java.net.preferIPv4Stack = true

              java.runtime.name = Java(TM) SE Runtime Environment

              java.runtime.version = 1.7.0_79-b15

              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_79

              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.79-b02

              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.bind.address.management = localhost

              jboss.home.dir = D:\JBoss7\jboss7.1.1

              jboss.host.name = 2013-20150325mm

              jboss.modules.dir = D:\JBoss7\jboss7.1.1\modules

              jboss.modules.system.pkgs = org.jboss.byteman

              jboss.node.name = 2013-20150325mm

              jboss.qualified.host.name = 2013-20150325mm

              jboss.server.base.dir = D:\JBoss7\jboss7.1.1\standalone

              jboss.server.config.dir = D:\JBoss7\jboss7.1.1\standalone\configuration

              jboss.server.data.dir = D:\JBoss7\jboss7.1.1\standalone\data

              jboss.server.deploy.dir = D:\JBoss7\jboss7.1.1\standalone\data\content

              jboss.server.log.dir = D:\JBoss7\jboss7.1.1\standalone\log

              jboss.server.name = 2013-20150325mm

              jboss.server.temp.dir = D:\JBoss7\jboss7.1.1\standalone\tmp

              line.separator =

             

             

              logging.configuration = file:/D:/JBoss7/jboss7.1.1/standalone/configuration/logging.properties

              module.path = D:/JBoss7/jboss7.1.1/modules

              org.jboss.boot.log.file = D:/JBoss7/jboss7.1.1/standalone/log/boot.log

              org.jboss.resolver.warning = true

              org.xml.sax.driver = __redirected.__XMLReaderFactory

              os.arch = amd64

              os.name = Windows 7

              os.version = 6.1

              path.separator = ;

              program.name = JBossTools: JBoss AS 7.1

              sun.arch.data.model = 64

              sun.boot.class.path = C:\Program Files\Java\jdk1.7.0_79\jre\lib\resources.jar;C:\Program Files\Java\jdk1.7.0_79\jre\lib\rt.jar;C:\Program Files\Java\jdk1.7.0_79\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.7.0_79\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.7.0_79\jre\lib\jce.jar;C:\Program Files\Java\jdk1.7.0_79\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.7.0_79\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.7.0_79\jre\classes

              sun.boot.library.path = C:\Program Files\Java\jdk1.7.0_79\jre\bin

              sun.cpu.endian = little

              sun.cpu.isalist = amd64

              sun.desktop = windows

              sun.io.unicode.encoding = UnicodeLittle

              sun.java.command = org.jboss.modules.Main -mp D:/JBoss7/jboss7.1.1/modules -jaxpmodule javax.xml.jaxp-provider org.jboss.as.standalone -b localhost --server-config=standalone.xml -Djboss.server.base.dir=D:\JBoss7\jboss7.1.1\standalone

              sun.java.launcher = SUN_STANDARD

              sun.jnu.encoding = GBK

              sun.management.compiler = HotSpot 64-Bit Tiered Compilers

              sun.os.patch.level = Service Pack 1

              sun.rmi.dgc.client.gcInterval = 3600000

              sun.rmi.dgc.server.gcInterval = 3600000

              user.country = CN

              user.dir = D:\JBoss7\jboss7.1.1\bin

              user.home = C:\Users\Administrator

              user.language = zh

              user.name = Administrator

              user.script =

              user.timezone = GMT+08:00

              user.variant =

            02:27:48,790 DEBUG [org.jboss.as.config] VM Arguments: -Dprogram.name=JBossTools: JBoss AS 7.1 -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=D:/JBoss7/jboss7.1.1/standalone/log/boot.log -Dlogging.configuration=file:/D:/JBoss7/jboss7.1.1/standalone/configuration/logging.properties -Djboss.home.dir=D:/JBoss7/jboss7.1.1 -Djboss.bind.address.management=localhost -Dfile.encoding=UTF-8

            02:27:49,723 INFO  [org.xnio] XNIO Version 3.0.3.GA

            02:27:49,724 INFO  [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)

            02:27:49,738 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA

            02:27:49,748 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.3.GA

            02:27:49,778 INFO  [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers

             

            here is addnews.jsp

            2.png

             

            here is Bean.java

             

            1.png

             

            here is faces-config.xml

            3.png

             

            here is web.xml

            4.png

            i know the datasource seem correct so far. i need you help,haven't more and more information about configuration datasource in china  would you give me example or information about configuration datasource?

            thank you!

            • 3. Re: JBoss7.11 the problem about datasource,who can help me
              wdfink

              I have no glue why the deploy fails with "no message" here.

              I would use WildFly (is a renaming of JBoss-AS) as the AS7.1 is a very old version and there might be a better message or it is a known issue which has been fixed upstream.

              Also there are quickstarts for the different technologies available, you might use one of these simple examples and add your code step by step to see what works and when it start to fail.

              Other option is to remove part of the code from your example.

              • 4. Re: JBoss7.11 the problem about datasource,who can help me
                136697122

                thank you reply,i can download WildFly and try configuration datasource!  thank your help!

                • 5. Re: JBoss7.11 the problem about datasource,who can help me
                  136697122

                  Mr Wolf-Dieter Fink:

                  i  used Wildfly8.2, the datasource demo deployment on service .

                  23:12:06,050 INFO  [org.jboss.modules] (main) JBoss Modules version 1.3.3.Final

                  23:12:06,513 INFO  [org.jboss.msc] (main) JBoss MSC version 1.2.2.Final

                  23:12:06,632 INFO  [org.jboss.as] (MSC service thread 1-6) JBAS015899: WildFly 8.2.0.Final "Tweek" starting

                  23:12:08,880 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found jsf_demo_dataresource.war in deployment directory. To trigger deployment create a file called jsf_demo_dataresource.war.dodeploy

                  23:12:08,925 INFO  [org.jboss.as.server] (Controller Boot Thread) JBAS015888: Creating http management service using socket-binding (management-http)

                  23:12:08,951 INFO  [org.xnio] (MSC service thread 1-7) XNIO version 3.3.0.Final

                  23:12:08,964 INFO  [org.xnio.nio] (MSC service thread 1-7) XNIO NIO Implementation Version 3.3.0.Final

                  23:12:09,006 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 32) JBAS010280: Activating Infinispan subsystem.

                  23:12:09,021 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 40) JBAS011800: Activating Naming Subsystem

                  23:12:09,026 INFO  [org.jboss.as.connector.logging] (MSC service thread 1-8) JBAS010408: Starting JCA Subsystem (IronJacamar 1.1.9.Final)

                  23:12:09,060 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.

                  23:12:09,084 INFO  [org.jboss.as.jsf] (ServerService Thread Pool -- 38) JBAS012615: Activated the following JSF Implementations: [main]

                  23:12:09,111 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 45) JBAS013171: Activating Security Subsystem

                  23:12:09,113 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension

                  23:12:09,128 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

                  23:12:09,155 INFO  [org.jboss.as.naming] (MSC service thread 1-1) JBAS011802: Starting Naming Service

                  23:12:09,156 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-1) JBAS015400: Bound mail session [java:jboss/mail/Default]

                  23:12:09,169 INFO  [org.jboss.as.security] (MSC service thread 1-1) JBAS013170: Current PicketBox version=4.0.21.Final

                  23:12:09,294 INFO  [org.jboss.remoting] (MSC service thread 1-7) JBoss Remoting version 4.0.6.Final

                  23:12:09,330 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 47) JBAS017502: Undertow 1.1.0.Final starting

                  23:12:09,330 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-4) JBAS017502: Undertow 1.1.0.Final starting

                  23:12:09,731 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010404: Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)

                  23:12:09,767 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-7) JBAS010417: Started Driver service with driver-name = mysql

                  23:12:09,814 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)

                  23:12:09,816 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-3) JBAS010417: Started Driver service with driver-name = h2

                  23:12:10,017 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 47) JBAS017527: Creating file handler for path D:\JBoss\wildfly-8.2.0.Final/welcome-content

                  23:12:10,053 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-3) JBAS017525: Started server default-server.

                  23:12:10,095 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-8) JBAS017531: Host default-host starting

                  23:12:10,298 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "jsf_demo_dataresource.war" (runtime-name: "jsf_demo_dataresource.war")

                  23:12:10,302 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-8) JBAS015012: Started FileSystemDeploymentService for directory D:\JBoss\wildfly-8.2.0.Final\standalone\deployments

                  23:12:10,872 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-2) JBAS017519: Undertow HTTP listener default listening on localhost/127.0.0.1:8080

                  23:12:11,077 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-8) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]

                  23:12:11,077 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-6) JBAS010400: Bound data source [java:jboss/datasources/MysqlDS]

                  23:12:11,577 INFO  [org.jboss.ws.common.management] (MSC service thread 1-2) JBWS022052: Starting JBoss Web Services - Stack CXF Server 4.3.2.Final

                  23:12:12,158 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-1) 初始化上下文 '/jsf_demo_dataresource' 的 Mojarra 2.2.8-jbossorg-1 20140822-1131

                  23:12:13,472 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-1) JBAS017534: Registered web context: /jsf_demo_dataresource

                  23:12:13,549 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 28) JBAS018559: Deployed "jsf_demo_dataresource.war" (runtime-name : "jsf_demo_dataresource.war")

                  23:12:13,596 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:9990/management

                  23:12:13,597 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990

                  23:12:13,597 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015874: WildFly 8.2.0.Final "Tweek" started in 8055ms - Started 264 of 319 services (92 services are lazy, passive or on-demand)

                  23:13:44,775 ERROR [stderr] (default task-3) javax.naming.NameNotFoundException: datasources/login -- service jboss.naming.context.java.jboss.datasources.login

                   

                   

                  23:13:44,776 ERROR [stderr] (default task-3) at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:104)

                   

                   

                  23:13:44,776 ERROR [stderr] (default task-3) at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:202)

                   

                   

                  23:13:44,776 ERROR [stderr] (default task-3) at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:179)

                   

                   

                  23:13:44,776 ERROR [stderr] (default task-3) at org.jboss.as.naming.InitialContext$DefaultInitialContext.lookup(InitialContext.java:235)

                   

                   

                  23:13:44,777 ERROR [stderr] (default task-3) at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:188)

                   

                   

                  23:13:44,777 ERROR [stderr] (default task-3) at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:184)

                   

                   

                  23:13:44,777 ERROR [stderr] (default task-3) at javax.naming.InitialContext.lookup(InitialContext.java:411)

                   

                   

                  23:13:44,777 ERROR [stderr] (default task-3) at javax.naming.InitialContext.lookup(InitialContext.java:411)

                   

                   

                  23:13:44,777 ERROR [stderr] (default task-3) at com.gmy.bean.Bean.addnews(Bean.java:15)

                   

                   

                  23:13:44,778 ERROR [stderr] (default task-3) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                   

                   

                  23:13:44,778 ERROR [stderr] (default task-3) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                   

                   

                  23:13:44,778 ERROR [stderr] (default task-3) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                   

                   

                  23:13:44,778 ERROR [stderr] (default task-3) at java.lang.reflect.Method.invoke(Method.java:606)

                   

                   

                  23:13:44,778 ERROR [stderr] (default task-3) at com.sun.el.parser.AstValue.invoke(AstValue.java:292)

                   

                   

                  23:13:44,779 ERROR [stderr] (default task-3) at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:304)

                   

                   

                  23:13:44,779 ERROR [stderr] (default task-3) at org.apache.jasper.el.JspMethodExpression.invoke(JspMethodExpression.java:68)

                   

                   

                  23:13:44,779 ERROR [stderr] (default task-3) at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:87)

                   

                   

                  23:13:44,779 ERROR [stderr] (default task-3) at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)

                   

                   

                  23:13:44,779 ERROR [stderr] (default task-3) at javax.faces.component.UICommand.broadcast(UICommand.java:315)

                   

                   

                  23:13:44,780 ERROR [stderr] (default task-3) at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:790)

                   

                   

                  23:13:44,780 ERROR [stderr] (default task-3) at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1282)

                   

                   

                  23:13:44,780 ERROR [stderr] (default task-3) at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)

                   

                   

                  23:13:44,781 ERROR [stderr] (default task-3) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)

                   

                   

                  23:13:44,781 ERROR [stderr] (default task-3) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198)

                   

                   

                  23:13:44,781 ERROR [stderr] (default task-3) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:646)

                   

                   

                  23:13:44,781 ERROR [stderr] (default task-3) at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)

                   

                   

                  23:13:44,782 ERROR [stderr] (default task-3) at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61)

                   

                   

                  23:13:44,782 ERROR [stderr] (default task-3) at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)

                   

                   

                  23:13:44,782 ERROR [stderr] (default task-3) at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)

                   

                   

                  23:13:44,783 ERROR [stderr] (default task-3) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

                   

                   

                  23:13:44,783 ERROR [stderr] (default task-3) at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)

                   

                   

                  23:13:44,783 ERROR [stderr] (default task-3) at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:56)

                   

                   

                  23:13:44,784 ERROR [stderr] (default task-3) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

                   

                   

                  23:13:44,784 ERROR [stderr] (default task-3) at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45)

                   

                   

                  23:13:44,784 ERROR [stderr] (default task-3) at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:63)

                   

                   

                  23:13:44,785 ERROR [stderr] (default task-3) at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58)

                   

                   

                  23:13:44,785 ERROR [stderr] (default task-3) at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70)

                   

                   

                  23:13:44,785 ERROR [stderr] (default task-3) at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76)

                   

                   

                  23:13:44,785 ERROR [stderr] (default task-3) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

                   

                   

                  23:13:44,785 ERROR [stderr] (default task-3) at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)

                   

                   

                  23:13:44,786 ERROR [stderr] (default task-3) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

                   

                   

                  23:13:44,786 ERROR [stderr] (default task-3) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

                   

                   

                  23:13:44,786 ERROR [stderr] (default task-3) at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:261)

                   

                   

                  23:13:44,786 ERROR [stderr] (default task-3) at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:247)

                   

                   

                  23:13:44,786 ERROR [stderr] (default task-3) at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:76)

                   

                   

                  23:13:44,787 ERROR [stderr] (default task-3) at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:166)

                   

                   

                  23:13:44,787 ERROR [stderr] (default task-3) at io.undertow.server.Connectors.executeRootHandler(Connectors.java:197)

                   

                   

                  23:13:44,787 ERROR [stderr] (default task-3) at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:759)

                   

                   

                  23:13:44,787 ERROR [stderr] (default task-3) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

                   

                   

                  23:13:44,787 ERROR [stderr] (default task-3) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

                   

                   

                  23:13:44,788 ERROR [stderr] (default task-3) at java.lang.Thread.run(Thread.java:745)

                   

                  i have not idea to deal with the problem, i hope you can help me! thank you very much!

                  • 6. Re: JBoss7.11 the problem about datasource,who can help me
                    ctomc

                    you are deploying datasource named MyqlDS

                    which you can see in log

                    Bound data source [java:jboss/datasources/MysqlDS]

                     

                    but in your web.xml and your app your are looking up "login" database.

                    • 7. Re: JBoss7.11 the problem about datasource,who can help me
                      136697122

                      thank you !

                      i use wildfly on eclipse ,clik service clean,error information is :

                      Error renaming D:\JBoss\wildfly-8.2.0.Final\standalone\tmp\tmp5518042166055647360.MF to D:\JBoss\wildfly-8.2.0.Final\standalone\deployments\jsf_demo_dataresource.war\META-INF\MANIFEST.MF.

                       

                       

                      This may be caused by incorrect file permissions, or your server's temporary deploy directory may be on a different filesystem than the final destination.

                       

                       

                      You may adjust these settings in the server editor.

                      what shou i do ?