JEE Maven Context.lookup失败

非常感谢您的帮助

我是Maven的Java EE的新学员,我的项目运行良好,我能够通过EJB中的远程服务从客户端添加到基础中,但是老师是计算机,她在进行JNDI查找后做了一些更改不再工作,在我执行代码时,nohting被插入到基部中,就像没有异常显示或代码

下的任何东西一样
    package banqueCredit_Client;

import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;

import services.ServiceclientRemote;

public class Client {

    public static void main(String[] args) throws NamingException {
        Context context = new InitialContext();
        System.out.println("1");
        String jndiname = "banqueCredit-ear/banqueCredit-ejb/Serviceclient!services.ServiceclientRemote";
        ServiceclientRemote proxy = (ServiceclientRemote) context.lookup(jndiname);
        System.out.println("2");
        entities.Client c1 = new entities.Client("zeazeza","dazeazez");
        proxy.addclient(c1);


    }

}

这是jndi.property文件

        java.naming.factory.initial=org.jboss.naming.remote.client.InitialContextFactory
    java.naming.provider.url=http-remoting://127.0.0.1:9080
    jboss.naming.client.ejb.context=true


this is the wildfly start 

15:44:28,834 INFO  [org.jboss.modules] (main) JBoss Modules version 1.6.1.Final
15:44:30,947 INFO  [org.jboss.msc] (main) JBoss MSC version 1.2.7.SP1
15:44:31,140 INFO  [org.jboss.as] (MSC service thread 1-8) WFLYSRV0049: WildFly Full 11.0.0.Final (WildFly Core 3.0.8.Final) starting
15:44:33,540 INFO  [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/core-service=management/management-interface=http-interface' is deprecated,and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
15:44:33,557 INFO  [org.wildfly.security] (ServerService Thread Pool -- 13) ELY00001: WildFly Elytron version 1.1.6.Final
15:44:33,577 INFO  [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 16) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/subsystem=undertow/server=default-server/https-listener=https' is deprecated,652 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) WFLYDS0004: Found banque-ear.ear in deployment directory. To trigger deployment create a file called banque-ear.ear.dodeploy
15:44:33,654 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) WFLYDS0004: Found banqueCredit-ear.ear in deployment directory. To trigger deployment create a file called banqueCredit-ear.ear.dodeploy
15:44:33,654 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) WFLYDS0004: Found minibanque-ear.ear in deployment directory. To trigger deployment create a file called minibanque-ear.ear.dodeploy
15:44:33,742 INFO  [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0039: Creating http management service using socket-binding (management-http)
15:44:33,762 INFO  [org.xnio] (MSC service thread 1-3) XNIO version 3.5.4.Final
15:44:33,769 INFO  [org.xnio.nio] (MSC service thread 1-3) XNIO NIO Implementation Version 3.5.4.Final
15:44:33,942 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 42) WFLYCLINF0001: activating Infinispan subsystem.
15:44:33,953 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 50) WFLYNAM0001: activating Naming Subsystem
15:44:33,929 INFO  [org.jboss.as.jaxrs] (ServerService Thread Pool -- 43) WFLYRS0016: RESTEasy version 3.0.24.Final
15:44:33,947 INFO  [org.jboss.as.jsf] (ServerService Thread Pool -- 48) WFLYJSF0007: activated the following JSF Implementations: [main]
15:44:33,978 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 57) WFLYSEC0002: activating Security Subsystem
15:44:33,985 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 60) WFLYWS0002: activating WebServices Extension
15:44:33,968 WARN  [org.jboss.as.txn] (ServerService Thread Pool -- 58) WFLYTX0013: The node-identifier attribute on the /subsystem=transactions is set to the default value. This is a danger for environments running multiple servers. Please make sure the attribute value is unique.
15:44:34,081 INFO  [org.jboss.as.security] (MSC service thread 1-1) WFLYSEC0001: Current PicketBox version=5.0.2.Final
15:44:34,102 INFO  [org.jboss.as.connector] (MSC service thread 1-6) WFLYJCA0009: Starting JCA Subsystem (WildFly/ironJacamar 1.4.6.Final)
15:44:34,103 INFO  [org.jboss.as.naming] (MSC service thread 1-6) WFLYNAM0003: Starting Naming Service
15:44:34,107 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-6) WFLYMAIL0001: Bound mail session [java:jboss/mail/Default]
15:44:34,129 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-7) WFLYUT0003: Undertow 1.4.18.Final starting
15:44:34,994 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 36) WFLYJCA0004: Deploying JDBC-compliant driver class org.h2.Driver (version 1.4)
15:44:34,996 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-5) WFLYJCA0018: Started Driver service with driver-name = h2
15:44:35,144 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 36) WFLYJCA0005: Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)
15:44:35,267 INFO  [org.wildfly.extension.io] (ServerService Thread Pool -- 41) WFLYIO001: Worker 'default' has auto-configured to 8 core threads with 64 task threads based on your 4 available processors
15:44:35,348 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-2) WFLYJCA0018: Started Driver service with driver-name = mysql
15:44:35,670 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 59) WFLYUT0014: Creating file handler for path 'C:\Users\oussema.beygahar\Documents\esprit\eclipse-wildfly-configured\wildfly-11.0.0.Final-configured/welcome-content' with options [directory-listing: 'false',follow-symlink: 'false',case-sensitive: 'true',safe-symlink-paths: '[]']
15:44:36,061 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0012: Started server default-server.
15:44:36,064 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0018: Host default-host starting
15:44:36,129 INFO  [org.jboss.remoting] (MSC service thread 1-3) JBoss Remoting version 5.0.5.Final
15:44:36,462 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-4) WFLYUT0006: Undertow HTTP listener default listening on 127.0.0.1:9080
15:44:36,467 INFO  [org.jboss.as.ejb3] (MSC service thread 1-5) WFLYEJB0482: Strict pool mdb-strict-max-pool is using a max instance size of 16 (per class),which is derived from the number of CPUs on this host.
15:44:36,467 INFO  [org.jboss.as.ejb3] (MSC service thread 1-8) WFLYEJB0481: Strict pool slsb-strict-max-pool is using a max instance size of 64 (per class),which is derived from thread worker pool sizing.
15:44:36,909 INFO  [org.jboss.as.ejb3] (MSC service thread 1-4) WFLYEJB0493: EJB subsystem suspension complete
15:44:37,181 INFO  [org.jboss.as.patching] (MSC service thread 1-7) WFLYPAT0050: WildFly Full cumulative patch ID is: base,one-off patches include: none
15:44:37,766 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-1) WFLYDS0013: Started FileSystemDeploymentService for directory C:\Users\oussema.beygahar\Documents\esprit\eclipse-wildfly-configured\wildfly-11.0.0.Final-configured\standalone\deployments
15:44:37,826 WARN  [org.jboss.as.connector.subsystems.datasources.AbstractDataSourceService$AS7DataSourceDeployer] (MSC service thread 1-5) IJ020016: Missing <recovery> element. XA recovery disabled for: java:/minDS
15:44:37,856 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) WFLYSRV0027: Starting deployment of "banqueCredit-ear.ear" (runtime-name: "banqueCredit-ear.ear")
15:44:37,856 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) WFLYSRV0027: Starting deployment of "banque-ear.ear" (runtime-name: "banque-ear.ear")
15:44:37,856 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) WFLYSRV0027: Starting deployment of "minibanque-ear.ear" (runtime-name: "minibanque-ear.ear")
15:44:37,945 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-6) WFLYJCA0001: Bound data source [java:/MySqlDSjee]
15:44:37,945 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-6) WFLYJCA0001: Bound data source [java:jboss/datasources/ExampleDS]
15:44:37,945 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-6) WFLYJCA0001: Bound data source [java:/minDS]
15:44:38,530 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0006: Undertow HTTPS listener https listening on 127.0.0.1:9443
15:44:38,808 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0207: Starting subdeployment (runtime-name: "minibanque-ejb.jar")
15:44:38,808 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) WFLYSRV0207: Starting subdeployment (runtime-name: "banqueCredit-ejb.jar")
15:44:38,808 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) WFLYSRV0207: Starting subdeployment (runtime-name: "banqueCredit-web.war")
15:44:38,808 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) WFLYSRV0207: Starting subdeployment (runtime-name: "minibanque-web.war")
15:44:40,661 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) WFLYSRV0207: Starting subdeployment (runtime-name: "banque-web.war")
15:44:40,661 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) WFLYSRV0207: Starting subdeployment (runtime-name: "banque-ejb.jar")
15:44:50,287 INFO  [org.jboss.ws.common.management] (MSC service thread 1-6) JBWS022052: Starting JBossWS 5.1.9.Final (Apache CXF 3.1.12) 
15:44:52,621 WARN  [org.jboss.as.connector] (MSC service thread 1-5) WFLYJCA0091: -ds.xml file deployments are deprecated. Support may be removed in a future version.
15:44:52,631 WARN  [org.jboss.as.connector] (MSC service thread 1-6) WFLYJCA0091: -ds.xml file deployments are deprecated. Support may be removed in a future version.
15:44:52,646 WARN  [org.jboss.as.connector] (MSC service thread 1-4) WFLYJCA0091: -ds.xml file deployments are deprecated. Support may be removed in a future version.
15:44:55,157 INFO  [org.jboss.as.jpa] (MSC service thread 1-5) WFLYJPA0002: Read persistence.xml for primary
15:44:55,157 INFO  [org.jboss.as.jpa] (MSC service thread 1-8) WFLYJPA0002: Read persistence.xml for primary
15:44:55,157 INFO  [org.jboss.as.jpa] (MSC service thread 1-7) WFLYJPA0002: Read persistence.xml for primary
15:44:55,722 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) WFLYJCA0001: Bound data source [java:jboss/datasources/minibanqueDS]
15:44:55,722 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-4) WFLYJCA0001: Bound data source [java:jboss/datasources/banqueDS]
15:44:55,724 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-5) WFLYJCA0001: Bound data source [java:jboss/datasources/banqueCreditDS]
15:44:55,893 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 65) WFLYJPA0010: Starting Persistence Unit (phase 1 of 2) Service 'banqueCredit-ear.ear/banqueCredit-ejb.jar#primary'
15:44:55,894 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 64) WFLYJPA0010: Starting Persistence Unit (phase 1 of 2) Service 'banque-ear.ear/banque-ejb.jar#primary'
15:44:55,896 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 66) WFLYJPA0010: Starting Persistence Unit (phase 1 of 2) Service 'minibanque-ear.ear/minibanque-ejb.jar#primary'
15:44:55,975 INFO  [org.jboss.weld.deployer] (MSC service thread 1-8) WFLYWELD0003: Processing weld deployment banqueCredit-ear.ear
15:44:55,976 INFO  [org.jboss.weld.deployer] (MSC service thread 1-7) WFLYWELD0003: Processing weld deployment minibanque-ear.ear
15:44:55,976 INFO  [org.jboss.weld.deployer] (MSC service thread 1-3) WFLYWELD0003: Processing weld deployment banque-ear.ear
15:44:55,999 INFO  [org.hibernate.jpa.internal.util.LogHelper] (ServerService Thread Pool -- 65) HHH000204: Processing PersistenceUnitInfo [
    name: primary
    ...]
15:44:56,001 INFO  [org.hibernate.jpa.internal.util.LogHelper] (ServerService Thread Pool -- 64) HHH000204: Processing PersistenceUnitInfo [
    name: primary
    ...]
15:44:56,001 INFO  [org.hibernate.jpa.internal.util.LogHelper] (ServerService Thread Pool -- 66) HHH000204: Processing PersistenceUnitInfo [
    name: primary
    ...]
15:44:56,355 INFO  [org.hibernate.validator.internal.util.Version] (MSC service thread 1-3) HV000001: Hibernate Validator 5.3.5.Final
15:44:56,407 INFO  [org.hibernate.Version] (ServerService Thread Pool -- 65) HHH000412: Hibernate Core {5.1.10.Final}
15:44:56,416 INFO  [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 65) HHH000206: hibernate.properties not found
15:44:56,421 INFO  [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 65) HHH000021: Bytecode provider name : javassist
15:44:56,703 INFO  [org.hibernate.annotations.common.Version] (ServerService Thread Pool -- 65) HCANN000001: Hibernate Commons Annotations {5.0.1.Final}
15:44:57,290 INFO  [org.jboss.weld.deployer] (MSC service thread 1-8) WFLYWELD0003: Processing weld deployment banqueCredit-web.war
15:44:57,291 INFO  [org.jboss.weld.deployer] (MSC service thread 1-3) WFLYWELD0003: Processing weld deployment banqueCredit-ejb.jar
15:44:57,291 INFO  [org.jboss.weld.deployer] (MSC service thread 1-6) WFLYWELD0003: Processing weld deployment minibanque-ejb.jar
15:44:57,292 INFO  [org.jboss.weld.deployer] (MSC service thread 1-7) WFLYWELD0003: Processing weld deployment minibanque-web.war
15:44:57,292 INFO  [org.jboss.weld.deployer] (MSC service thread 1-5) WFLYWELD0003: Processing weld deployment banque-web.war
15:44:57,292 INFO  [org.jboss.weld.deployer] (MSC service thread 1-4) WFLYWELD0003: Processing weld deployment banque-ejb.jar
15:44:57,343 INFO  [org.jboss.as.ejb3.deployment] (MSC service thread 1-4) WFLYEJB0473: JNDI bindings for session bean named 'ClientService' in deployment unit 'subdeployment "banque-ejb.jar" of deployment "banque-ear.ear"' are as follows:

    java:global/banque-ear/banque-ejb/ClientService!Service.ClientService
    java:app/banque-ejb/ClientService!Service.ClientService
    java:module/ClientService!Service.ClientService
    java:global/banque-ear/banque-ejb/ClientService!Service.ClientServiceRemote
    java:app/banque-ejb/ClientService!Service.ClientServiceRemote
    java:module/ClientService!Service.ClientServiceRemote
    java:jboss/exported/banque-ear/banque-ejb/ClientService!Service.ClientServiceRemote
    java:global/banque-ear/banque-ejb/ClientService!Service.ClientServiceLocal
    java:app/banque-ejb/ClientService!Service.ClientServiceLocal
    java:module/ClientService!Service.ClientServiceLocal

15:44:57,343 INFO  [org.jboss.as.ejb3.deployment] (MSC service thread 1-4) WFLYEJB0473: JNDI bindings for session bean named 'creditservice' in deployment unit 'subdeployment "banque-ejb.jar" of deployment "banque-ear.ear"' are as follows:

    java:global/banque-ear/banque-ejb/creditservice!Service.creditserviceRemote
    java:app/banque-ejb/creditservice!Service.creditserviceRemote
    java:module/creditservice!Service.creditserviceRemote
    java:jboss/exported/banque-ear/banque-ejb/creditservice!Service.creditserviceRemote
    java:global/banque-ear/banque-ejb/creditservice!Service.creditservice
    java:app/banque-ejb/creditservice!Service.creditservice
    java:module/creditservice!Service.creditservice
    java:global/banque-ear/banque-ejb/creditservice!Service.creditserviceLocal
    java:app/banque-ejb/creditservice!Service.creditserviceLocal
    java:module/creditservice!Service.creditserviceLocal

15:44:57,343 INFO  [org.jboss.as.ejb3.deployment] (MSC service thread 1-4) WFLYEJB0473: JNDI bindings for session bean named 'FirstEjb' in deployment unit 'subdeployment "banque-ejb.jar" of deployment "banque-ear.ear"' are as follows:

    java:global/banque-ear/banque-ejb/FirstEjb!Service.FirstEjbRemote
    java:app/banque-ejb/FirstEjb!Service.FirstEjbRemote
    java:module/FirstEjb!Service.FirstEjbRemote
    java:jboss/exported/banque-ear/banque-ejb/FirstEjb!Service.FirstEjbRemote
    java:global/banque-ear/banque-ejb/FirstEjb!Service.FirstEjb
    java:app/banque-ejb/FirstEjb!Service.FirstEjb
    java:module/FirstEjb!Service.FirstEjb
    java:global/banque-ear/banque-ejb/FirstEjb!Service.FirstEjbLocal
    java:app/banque-ejb/FirstEjb!Service.FirstEjbLocal
    java:module/FirstEjb!Service.FirstEjbLocal

15:44:57,345 INFO  [org.jboss.as.ejb3.deployment] (MSC service thread 1-3) WFLYEJB0473: JNDI bindings for session bean named 'Serviceclient' in deployment unit 'subdeployment "banqueCredit-ejb.jar" of deployment "banqueCredit-ear.ear"' are as follows:

    java:global/banqueCredit-ear/banqueCredit-ejb/Serviceclient!services.ServiceclientRemote
    java:app/banqueCredit-ejb/Serviceclient!services.ServiceclientRemote
    java:module/Serviceclient!services.ServiceclientRemote
    java:jboss/exported/banqueCredit-ear/banqueCredit-ejb/Serviceclient!services.ServiceclientRemote
    java:global/banqueCredit-ear/banqueCredit-ejb/Serviceclient!services.Serviceclient
    java:app/banqueCredit-ejb/Serviceclient!services.Serviceclient
    java:module/Serviceclient!services.Serviceclient
    java:global/banqueCredit-ear/banqueCredit-ejb/Serviceclient!services.ServiceclientLocal
    java:app/banqueCredit-ejb/Serviceclient!services.ServiceclientLocal
    java:module/Serviceclient!services.ServiceclientLocal

15:44:57,350 INFO  [org.jboss.as.ejb3.deployment] (MSC service thread 1-6) WFLYEJB0473: JNDI bindings for session bean named 'FirstEjb' in deployment unit 'subdeployment "minibanque-ejb.jar" of deployment "minibanque-ear.ear"' are as follows:

    java:global/minibanque-ear/minibanque-ejb/FirstEjb!services.FirstEjbRemote
    java:app/minibanque-ejb/FirstEjb!services.FirstEjbRemote
    java:module/FirstEjb!services.FirstEjbRemote
    java:jboss/exported/minibanque-ear/minibanque-ejb/FirstEjb!services.FirstEjbRemote
    java:global/minibanque-ear/minibanque-ejb/FirstEjb!services.FirstEjbLocal
    java:app/minibanque-ejb/FirstEjb!services.FirstEjbLocal
    java:module/FirstEjb!services.FirstEjbLocal
    java:global/minibanque-ear/minibanque-ejb/FirstEjb!services.FirstEjb
    java:app/minibanque-ejb/FirstEjb!services.FirstEjb
    java:module/FirstEjb!services.FirstEjb

15:44:57,674 INFO  [org.jboss.weld.Version] (MSC service thread 1-8) WELD-000900: 2.4.3 (Final)
15:44:57,712 INFO  [org.infinispan.factories.GlobalComponentRegistry] (MSC service thread 1-2) ISPN000128: Infinispan version: Infinispan 'Chakra' 8.2.8.Final
15:44:58,781 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 67) WFLYJPA0010: Starting Persistence Unit (phase 2 of 2) Service 'minibanque-ear.ear/minibanque-ejb.jar#primary'
15:44:58,781 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 65) WFLYJPA0010: Starting Persistence Unit (phase 2 of 2) Service 'banqueCredit-ear.ear/banqueCredit-ejb.jar#primary'
15:44:58,782 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 66) WFLYJPA0010: Starting Persistence Unit (phase 2 of 2) Service 'banque-ear.ear/banque-ejb.jar#primary'
15:44:59,127 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 64) WFLYCLINF0002: Started client-mappings cache from ejb container
15:44:59,612 ERROR [stderr] (ServerService Thread Pool -- 65) Sat Nov 09 15:44:59 WAT 2019 WARN: Establishing SSL connection without server's identity verification is not recommended. according to MySQL 5.5.45+,5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false,or set useSSL=true and provide truststore for server certificate verification.

15:44:59,622 INFO  [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 66) HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
15:44:59,624 INFO  [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 67) HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
15:44:59,639 WARN  [org.hibernate.dialect.H2Dialect] (ServerService Thread Pool -- 67) HHH000431: Unable to determine H2 database version,certain features may not work
15:44:59,639 WARN  [org.hibernate.dialect.H2Dialect] (ServerService Thread Pool -- 66) HHH000431: Unable to determine H2 database version,796 INFO  [org.hibernate.envers.boot.internal.EnversServiceImpl] (ServerService Thread Pool -- 67) Envers integration enabled? : true
15:44:59,796 INFO  [org.hibernate.envers.boot.internal.EnversServiceImpl] (ServerService Thread Pool -- 66) Envers integration enabled? : true
15:44:59,898 WARN  [org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (ServerService Thread Pool -- 65) IJ000407: No lazy enlistment available for minDS
15:44:59,899 INFO  [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 65) HHH000400: Using dialect: org.hibernate.dialect.MySQL5Dialect
15:44:59,927 INFO  [org.hibernate.envers.boot.internal.EnversServiceImpl] (ServerService Thread Pool -- 65) Envers integration enabled? : true
15:45:00,278 INFO  [org.hibernate.tool.schema.internal.SchemaCreatorImpl] (ServerService Thread Pool -- 67) HHH000476: Executing import script 'org.hibernate.tool.schema.internal.exec.ScriptsourceInputNonExistentImpl@2dd69b6d'
15:45:00,598 INFO  [org.hibernate.tool.schema.internal.SchemaCreatorImpl] (ServerService Thread Pool -- 66) HHH000476: Executing import script 'org.hibernate.tool.schema.internal.exec.ScriptsourceInputNonExistentImpl@2dd69b6d'
15:45:00,599 INFO  [org.hibernate.tool.schema.internal.SchemaCreatorImpl] (ServerService Thread Pool -- 65) HHH000476: Executing import script 'org.hibernate.tool.schema.internal.exec.ScriptsourceInputNonExistentImpl@2dd69b6d'
15:45:01,743 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 65) Initialisation de Mojarra 2.2.13.SP4  pour le contexte «/banque-web»
15:45:01,744 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 68) Initialisation de Mojarra 2.2.13.SP4  pour le contexte «/banqueCredit-web»
15:45:01,744 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 71) Initialisation de Mojarra 2.2.13.SP4  pour le contexte «/minibanque-web»
15:45:02,713 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 68) WFLYUT0021: Registered web context: '/banqueCredit-web' for server 'default-server'
15:45:02,714 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 65) WFLYUT0021: Registered web context: '/banque-web' for server 'default-server'
15:45:02,717 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 71) WFLYUT0021: Registered web context: '/minibanque-web' for server 'default-server'
15:45:02,742 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 37) WFLYSRV0010: Deployed "minibanque-ear.ear" (runtime-name : "minibanque-ear.ear")
15:45:02,742 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 37) WFLYSRV0010: Deployed "banqueCredit-ear.ear" (runtime-name : "banqueCredit-ear.ear")
15:45:02,742 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 37) WFLYSRV0010: Deployed "banque-ear.ear" (runtime-name : "banque-ear.ear")
15:45:02,961 INFO  [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0212: Resuming server
15:45:02,965 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:10990/management
15:45:02,965 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:10990
15:45:02,965 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Full 11.0.0.Final (WildFly Core 3.0.8.Final) started in 36396ms - Started 1044 of 1275 services (389 services are lazy,passive or on-demand)

EJB项目上Entity中的此CLient类:

包装实体;

import java.io.Serializable;
import java.lang.String;
import javax.persistence.*;

/**
 * Entity implementation class for Entity: Client
 *
 */
@Entity

public class Client implements Serializable {


    @Id
    private String id;
    private String nom;
    private static final long serialVersionUID = 1L;

    public Client() {
        super();
    }   

    public Client(String id,String nom) {
        super();
        this.id = id;
        this.nom = nom;
    }

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }   
    public String getNom() {
        return this.nom;
    }

    public void setNom(String nom) {
        this.nom = nom;
    }

}

这是服务中的服务类别;

package services;

import javax.ejb.LocalBean;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import entities.Client;

/**
 * Session Bean implementation class Serviceclient
 */
@Stateless
@LocalBean
public class Serviceclient implements ServiceclientRemote,ServiceclientLocal {

    /**
     * Default constructor. 
     */

    @PersistenceContext
    EntityManager em;
    public void addclient(Client c) {
        em.persist(c);;

    }
}

这是删除ejb中的类:

package services;

import javax.ejb.Remote;

import entities.Client;

@Remote
public interface ServiceclientRemote {
    public void addclient(Client c);
}

这是我运行clint classe时出现的内容

nov。 2019年9月9日4:02:41 org.jboss.naming.remote.client.InitialContextFactory 信息:WFNAM00025:不推荐使用org.jboss.naming.remote.client.InitialContextFactory;新应用程序应改用org.wildfly.naming.client.WildFlyInitialContextFactory 十一月09,2019 4:02:41 PM org.wildfly.naming.client.Version INFO:WildFly命名版本1.0.7.Final 十一月2019年9月9日4:02:42 org.wildfly.security.Version INFO:ELY00001:WildFly Elytron版本1.1.6.Final 1个 十一月2019年9月9日4:02:42 org.xnio.Xnio INFO:XNIO版本3.5.4。最终 十一月2019年9月9日4:02:42 org.xnio.nio.NioXnio INFO:XNIO NIO实现版本3.5.4.Final 十一月2019年9月9日4:02:42 org.jboss.remoting3.EndpointImpl INFO:JBoss Remoting版本5.0.5.Final

wslky 回答:JEE Maven Context.lookup失败

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3132448.html

大家都在问