Fixed
Details
Assignee
Benjamin ReedBenjamin ReedReporter
auseanauseanComponents
Affects versions
Priority
Blocker
Details
Details
Assignee
Benjamin Reed
Benjamin ReedReporter
ausean
auseanComponents
Affects versions
Priority
PagerDuty
PagerDuty
PagerDuty
Created January 11, 2011 at 11:10 PM
Updated January 27, 2017 at 4:20 PM
Resolved February 4, 2011 at 3:30 PM
<p>
The applicationContext-soa.xml in org.opennms.core.soa-1.8.8-SNAPSHOT.jar need online schema validation with the onms-osgi.xsd schema. Even though the schema file is located in the same jar file, the Xerces validator does not use it. From packet capture (using Wireshark), I can see that it is making a connection to xmlns.opennms.org and downloading the xsd file. Not all machine running Opennms are connected to the Internet, I think this has to be changed.
</p>
<p>
Some debugging message from output.log:
An error occurred while attempting to start the "OpenNMS:Name=Eventd" service (class org.opennms.netmgt.eventd.jmx.Eventd). Shutting down and exiting. javax.management.RuntimeMBeanException: org.springframework.beans.factory.access.BootstrapException: Unable to return specified BeanFactory instance: factory key [eventDaemonContext], from group with resource name [classpath*:beanRefContext.xml]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'eventDaemonContext' defined in URL [jar:file:/opt/opennms/lib/opennms-services-1.8.8-SNAPSHOT.jar!/beanRefContext.xml]: Cannot resolve reference to bean 'commonContext' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'commonContext' defined in URL [jar:file:/opt/opennms/lib/opennms-services-1.8.8-SNAPSHOT.jar!/beanRefContext.xml]: Cannot resolve reference to bean 'daemonContext' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'daemonContext' defined in URL [jar:file:/opt/opennms/lib/opennms-services-1.8.8-SNAPSHOT.jar!/beanRefContext.xml]: Cannot resolve reference to bean 'daoContext' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'daoContext' defined in URL [jar:file:/opt/opennms/lib/opennms-dao-1.8.8-SNAPSHOT.jar!/beanRefContext.xml]: Cannot resolve reference to bean 'soaContext' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'soaContext' defined in URL [jar:file:/opt/opennms/lib/org.opennms.core.soa-1.8.8-SNAPSHOT.jar!/beanRefContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 10 in XML document from class path resource [META-INF/opennms/applicationContext-soa.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'onmsgi:default-registry'
</p>
<p>
Some debugging message from spring.log:2011-01-12 10:09:05,324 INFO [Main] XmlBeanDefinitionReader: Loading XML bean definitions from class path resource [META-INF/opennms/applicationContext-soa.xml] 2011-01-12 10:12:14,871 WARN [Main] XmlBeanDefinitionReader: Ignored XML validation warning org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'http://xmlns.opennms.org/xsd/spring/onms-osgi.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Sou
</p>