简体   繁体   中英

javax.naming.NameNotFoundException JBoss 4.3 to JBoss 7

I'm trying to migrate a project from JBoss 4.3 to JBoss 7 while deploying I'm getting the below error:

javax.naming.NameNotFoundException: a.b.c -- service jboss.naming.context.java."a.b.c"

In JBoss 4.3 the this was defined in a XML file as below:

<jndi:binding name="a.b.c">
                <jndi:value type="java.lang.String">http://localhost:8080/proj.abc.app/ABCServiceEndpoint?wsdl</jndi:value>
                </jndi:binding>

Can anyone advice on how to configure this for JBoss 7?

Have a look at the JNDI Reference of JBoss AS 7.1 .

I would say, your migrated XML configuration is:

<subsystem xmlns="urn:jboss:domain:naming:1.1" >
    <bindings>
        <simple name="java:global/a.b.c" value="http://localhost:8080/proj.abc.app/ABCServiceEndpoint?wsdl" type="java.lang.String" />
    </bindings>
</subsystem>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM