[jboss-user] [JNDI/Naming/Network] - JBossXBException trying to bind a String to JNDI using docum

mrobin21 do-not-reply at jboss.com
Tue Apr 24 03:17:56 EDT 2007


I am trying to bind a serverId to an instance of a JBoss Server using the example on page 144 of the jboss-j2ee.pdf documentation, but it gives this error:

16:56:56,461 DEBUG [JBossEntityResolver] Cannot resolve [publicID=null,systemID=urn:jboss:jndi-binding-service]
16:56:56,560 INFO  [ServiceConfigurator] Problem configuring service jboss:name=cellnet
org.jboss.xb.binding.JBossXBException: Failed to parse source: Element {urn:jboss:jndi-binding-service}bindings is not bound as a global element.
        at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:170)
        at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:140)

The jboss-service.xml entry is:

  |    <mbean code="org.jboss.naming.JNDIBindingServiceMgr" name="jboss:name=cellnet">
  |         <!-- Cellnet Server Bindings -->
  |         <attribute name="BindingsConfig" serialDataType="jbxb">
  |         <jndi:bindings
  |             xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
  |             xmlns:jndi="urn:jboss:jndi-binding-service"
  |             xs:schemaLocation="urn:jboss:jndi-binding-service resource:xmdesc/jndi-binding-service_1_0.xsd">
  |                 <jndi:binding name="cellnet/serverId">
  |                         <jndi:value type="java.lang.String" trim="true">J</jndi:value>
  |                 </jndi:binding>
  |         </jndi:bindings>
  |         </attribute>
  |    </mbean>

I have copied the jndi-binding-server_1_0.xsd file from the docs/schema directory into the server/<server name>/conf/xmdesc folder but no joy.

OS: SuSe Linux 10

Any help appreciated!

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040093#4040093

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040093

More information about the jboss-user mailing list