Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-4341

Opennms cannot start up without Internet access

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.8.8
    • Fix Version/s: 1.8.8, 1.9.4
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None
    • Environment:
      Linux 2.6.31 java version "1.6.0_22" Java(TM) SE Runtime Environment (build 1.6.0_22-b04) Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode), Windows 2003 Server Windows 2008 R2 Server

      Description

      <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>

        Attachments

          Activity

            People

            • Assignee:
              ranger Benjamin Reed
              Reporter:
              ausean ausean tan
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: