Hi,

I want to bind some String to JNDI and in jboss naming tutorial I found example 
3.5.1 JNDI Binding Manager:

<mbean code="org.jboss.naming.JNDIBindingServiceMgr"
  | name="jboss.tests:name=example1">
  | <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:jndi-binding-service_1_<jndi:binding name="bindexample/message">
  | <jndi:value trim="true">
  | Hello, JNDI!
  | </jndi:value>
  | </jndi:binding>
  | </jndi:bindings>
  | </attribute>
  | </mbean>

I placed this  code in jboss-service.xml.But it is unable to configure service

Why?What should be given in name attribute.I changed name attribute to

<mbean code="org.jboss.naming.JNDIBindingServiceMgr"  
name="jboss.naming:name=JNDIBindingServiceMgr">

But same problem arises.Can someone tell what is the value of name attribute?

12:14:30,828 INFO  [ServiceConfigurator] Problem configuring service 
jboss.tests:name=example1
  | org.jboss.xb.binding.JBossXBException: Failed to parse source: null
  |         at 
org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:154)
  |         at 
org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:141)
  |         at 
org.jboss.system.ServiceConfigurator.parseJbxbSerialData(ServiceConfigurator.java:643)
  |         at 
org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:327)
  |         at 
org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:460)

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

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


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to