OK I deserved that one.  So I looked at your service.xml examples online and in 
the demo directories.  Changed the properties to attributes, got ride of the 
constructor tags and I think I have cleaned up the service.xml file so it looks 
legit now.  

The new and improved nichpro-service.xml file :
<?xml version="1.0" encoding="UTF-8"?>
  | <server>
  |     <mbean  name="nichpro:service=DataProc" 
code="com.nichpro.jmx.processing.data.DataProc">
  |         <attribute name="associatedType">DataDirMonitor</attribute>
  |     </mbean>
  |     
  |     <mbean name="nichpro:service=DataDirMonitor" 
code="com.nichpro.jmx.scandir.monitor.data.DataDirMonitor">                    
  |         <attribute 
name="rootDir">/NichPro/NP_ScanDirectory/Data</attribute>       
  |         <attribute name="associatedType">DataProc</attribute>       
  |     </mbean>    
  |     
  |     <mbean name="nichpro:service=DataManagementServer" 
code="com.nichpro.jmx.server.DataManagementServer">
  |         <attribute name="mbeanServer"><inject bean="JMXKernel" 
property="mbeanServer"/></attribute>              
  |    </mbean>
  | </server>  
  | 

But I still get a parser error due to the inability to find the schema.... 


org.jboss.xb.binding.JBossXBException: Failed to parse source: 
file:/C:/NichPro/MicrocontainerDirectoryScanner/src/META-INF/nichpro-service....@2,9
  |     at 
org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:177)
  |     at 
org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:147)
  |     at 
org.jboss.kernel.plugins.deployment.xml.BasicXMLDeployer.deploy(BasicXMLDeployer.java:147)
  |     at com.nichpro.jmx.bootstrap.Main.deploy(Main.java:123)
  |     at com.nichpro.jmx.server.config.JMXMain.main(JMXMain.java:40)
  | Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Failed to resolve 
schema nsURI= location=server
  |     at 
org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:313)
  |     at 
org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.startElement(SaxJBossXBParser.java:401)
  |     at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown
 Source)
  | 
  | 
  | 
  | None of the examples address schema locations or schema definitions which 
leaves me kind of at a dead end.  
  | 
  | Regards,
  | GMarsh

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4196950
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to