Quantcast

OpenNMS not starting after upgraade to version 19

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

OpenNMS not starting after upgraade to version 19

saqib
Hello.

I updated my openNMS to version 19 and after that ist is not starting. Here is the log after update

Fri Apr  7 15:34:33 PKT 2017
begin ulimit settings:
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 31147
max locked memory       (kbytes, -l) 64
max memory size         (kbytes, -m) unlimited
open files                      (-n) 20480
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 31147
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited
end ulimit settings
Executing command: /opt/opennms/bin/runjava -r  -- -Djava.endorsed.dirs=/opt/opennms/lib/endorsed   -Dopennms.home=/opt/opennms -Xmx1024m -XX:+HeapDumpOnOutOfMemoryErr
or  -Dcom.sun.management.jmxremote.authenticate=true -Dcom.sun.management.jmxremote.login.config=opennms -Dcom.sun.management.jmxremote.access.file=/opt/opennms/etc/jm
xremote.access -DisThreadContextMapInheritable=true -Dgroovy.use.classvalue=true -XX:MaxMetaspaceSize=256m -Djava.io.tmpdir=/opt/opennms/data/tmp -jar /opt/opennms/lib
/opennms_bootstrap.jar  start  
[DEBUG] System property 'opennms.library.jicmp' set to '/usr/lib64/libjicmp.so.  Attempting to load jicmp library from this location.
[INFO] Successfully loaded jicmp library.
[DEBUG] System property 'opennms.library.jicmp6' set to '/usr/lib64/libjicmp6.so.  Attempting to load jicmp6 library from this location.
[INFO] Successfully loaded jicmp6 library.
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 [even
tDaemonContext], from group with resource name [classpath*:beanRefContext.xml]; nested exception is org.springframework.beans.factory.BeanCreationException: Error crea
ting bean with name 'eventDaemonContext' defined in URL [jar:file:/opt/opennms/lib/org.opennms.features.events.daemon-19.0.1.jar!/beanRefContext.xml]: Cannot resolve r
eference 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-19.0.1.jar!/beanRefContext.xml]: Cannot resolve reference to bean 'daemonContext' while settin
g constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'daemonContext' defined in URL [jar:
file:/opt/opennms/lib/org.opennms.core.daemon-19.0.1.jar!/beanRefContext.xml]: Cannot resolve reference to bean 'commonContext' while setting constructor argument; nes
ted exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'commonContext' defined in URL [jar:file:/opt/opennms/lib/openn
ms-config-19.0.1.jar!/beanRefContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiat
e bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.B
eanCreationException: Error creating bean with name 'userManager-init' defined in class path resource [META-INF/opennms/applicationContext-commonConfigs.xml]: Invocati
on of init method failed; nested exception is org.exolab.castor.xml.MarshalException: The attribute 'read-only' appears illegally on element 'user'.{File: [not availab
le]; line: 15; column: 33}
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.rethrow(DefaultMBeanServerInterceptor.java:839)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.rethrowMaybeMBeanException(DefaultMBeanServerInterceptor.java:852)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:821)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
        at org.opennms.netmgt.vmmgr.Invoker.invoke(Invoker.java:278)
        at org.opennms.netmgt.vmmgr.Invoker.invokeMethods(Invoker.java:207)
        at org.opennms.netmgt.vmmgr.Starter.start(Starter.java:154)
        at org.opennms.netmgt.vmmgr.Starter.startDaemon(Starter.java:94)
        at org.opennms.netmgt.vmmgr.Controller.start(Controller.java:173)
        at org.opennms.netmgt.vmmgr.Controller.main(Controller.java:150)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at org.opennms.bootstrap.Bootstrap$4.run(Bootstrap.java:464)
        at java.lang.Thread.run(Thread.java:745)
Caused by: org.springframework.beans.factory.access.BootstrapException: Unable to return specified BeanFactory instance: factory key [eventDaemonContext], from group w
ith resource name [classpath*:beanRefContext.xml]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'eventDae
monContext' defined in URL [jar:file:/opt/opennms/lib/org.opennms.features.events.daemon-19.0.1.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-19.0.1.jar!/beanRefContext.xml]: Cannot resolve reference to bean 'daemonContext' while setting constructor argument; neste
d exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'daemonContext' defined in URL [jar:file:/opt/opennms/lib/org.ope
nnms.core.daemon-19.0.1.jar!/beanRefContext.xml]: Cannot resolve reference to bean 'commonContext' while setting constructor argument; nested exception is org.springfr
amework.beans.factory.BeanCreationException: Error creating bean with name 'commonContext' defined in URL [jar:file:/opt/opennms/lib/opennms-config-19.0.1.jar!/beanRef
Context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframe
work.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error c
reating bean with name 'userManager-init' defined in class path resource [META-INF/opennms/applicationContext-commonConfigs.xml]: Invocation of init method failed; nes
ted exception is org.exolab.castor.xml.MarshalException: The attribute 'read-only' appears illegally on element 'user'.{File: [not available]; line: 15; column: 33}
        at org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:403)
        at org.opennms.core.spring.BeanUtils.getBeanFactory(BeanUtils.java:79)
        at org.opennms.core.spring.BeanUtils.getFactory(BeanUtils.java:131)
        at org.opennms.netmgt.daemon.AbstractSpringContextJmxServiceDaemon$1.run(AbstractSpringContextJmxServiceDaemon.java:103)
        at org.opennms.core.logging.Logging.withPrefix(Logging.java:71)
        at org.opennms.netmgt.daemon.AbstractSpringContextJmxServiceDaemon.init(AbstractSpringContextJmxServiceDaemon.java:96)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:71)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:275)
        at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:112)
        at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:46)
        at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:237)
        at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:138)
        at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:252)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
        ... 13 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'eventDaemonContext' defined in URL [jar:file:/opt/opennms/lib/org.op
ennms.features.events.daemon-19.0.1.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-19.0.1.jar!/bean
RefContext.xml]: Cannot resolve reference to bean 'daemonContext' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreatio
nException: Error creating bean with name 'daemonContext' defined in URL [jar:file:/opt/opennms/lib/org.opennms.core.daemon-19.0.1.jar!/beanRefContext.xml]: Cannot res
olve 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-config-19.0.1.jar!/beanRefContext.xml]: Instantiation of bean failed; nested exception
 is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: Constr
uctor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userManager-init' defined in class p
ath resource [META-INF/opennms/applicationContext-commonConfigs.xml]: Invocation of init method failed; nested exception is org.exolab.castor.xml.MarshalException: The
 attribute 'read-only' appears illegally on element 'user'.{File: [not available]; line: 15; column: 33}
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:336)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
        at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:646)
        at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:140)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1115)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1018)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198)
        at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:981)
        at org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:395)
        ... 34 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'daoContext' defined in URL [jar:file:/opt/opennms/lib/opennms-dao-19
.0.1.jar!/beanRefContext.xml]: Cannot resolve reference to bean 'daemonContext' while setting constructor argument; nested exception is org.springframework.beans.facto
ry.BeanCreationException: Error creating bean with name 'daemonContext' defined in URL [jar:file:/opt/opennms/lib/org.opennms.core.daemon-19.0.1.jar!/beanRefContext.xm
l]: Cannot resolve reference to bean 'commonContext' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: E
rror creating bean with name 'commonContext' defined in URL [jar:file:/opt/opennms/lib/opennms-config-19.0.1.jar!/beanRefContext.xml]: Instantiation of bean failed; ne
sted exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationCo
ntext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userManager-init' defi
ned in class path resource [META-INF/opennms/applicationContext-commonConfigs.xml]: Invocation of init method failed; nested exception is org.exolab.castor.xml.Marshal
Exception: The attribute 'read-only' appears illegally on element 'user'.{File: [not available]; line: 15; column: 33}
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:336)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
        at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:646)
        at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:140)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1115)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1018)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
        ... 47 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'daemonContext' defined in URL [jar:file:/opt/opennms/lib/org.opennms
.core.daemon-19.0.1.jar!/beanRefContext.xml]: Cannot resolve reference to bean 'commonContext' while setting constructor argument; nested exception is org.springframew
ork.beans.factory.BeanCreationException: Error creating bean with name 'commonContext' defined in URL [jar:file:/opt/opennms/lib/opennms-config-19.0.1.jar!/beanRefCont
ext.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.BeanCreationException: Error creat
ing bean with name 'userManager-init' defined in class path resource [META-INF/opennms/applicationContext-commonConfigs.xml]: Invocation of init method failed; nested
exception is org.exolab.castor.xml.MarshalException: The attribute 'read-only' appears illegally on element 'user'.{File: [not available]; line: 15; column: 33}
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:336)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
        at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:646)
        at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:140)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1115)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1018)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
        ... 59 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'commonContext' defined in URL [jar:file:/opt/opennms/lib/opennms-con
fig-19.0.1.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.BeanCre
ationException: Error creating bean with name 'userManager-init' defined in class path resource [META-INF/opennms/applicationContext-commonConfigs.xml]: Invocation of
init method failed; nested exception is org.exolab.castor.xml.MarshalException: The attribute 'read-only' appears illegally on element 'user'.{File: [not available]; l
ine: 15; column: 33}
        at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:278)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1115)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1018)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
        ... 71 more
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]:
 Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userManager-init' defined in
class path resource [META-INF/opennms/applicationContext-commonConfigs.xml]: Invocation of init method failed; nested exception is org.exolab.castor.xml.MarshalExcepti
on: The attribute 'read-only' appears illegally on element 'user'.{File: [not available]; line: 15; column: 33}
        at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:164)
        at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:125)
        at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:270)
        ... 80 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userManager-init' defined in class path resource [META-INF/opennms/a
pplicationContext-commonConfigs.xml]: Invocation of init method failed; nested exception is org.exolab.castor.xml.MarshalException: The attribute 'read-only' appears i
llegally on element 'user'.{File: [not available]; line: 15; column: 33}
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1554)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:687)
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:762)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
        at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
        at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:105)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
        at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148)
        ... 82 more
Caused by: org.exolab.castor.xml.MarshalException: The attribute 'read-only' appears illegally on element 'user'.{File: [not available]; line: 15; column: 33}
        at org.exolab.castor.xml.Unmarshaller.convertSAXExceptionToMarshalException(Unmarshaller.java:755)
        at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:721)
        at org.opennms.core.xml.CastorUtils.unmarshal(CastorUtils.java:235)
        at org.opennms.core.xml.CastorUtils.unmarshal(CastorUtils.java:213)
        at org.opennms.netmgt.config.UserManager.parseXML(UserManager.java:118)
        at org.opennms.netmgt.config.UserFactory.reload(UserFactory.java:145)
        at org.opennms.netmgt.config.UserFactory.<init>(UserFactory.java:87)
        at org.opennms.netmgt.config.UserFactory.init(UserFactory.java:102)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:269)
        at org.springframework.beans.factory.config.MethodInvokingBean.invokeWithTargetException(MethodInvokingBean.java:119)
        at org.springframework.beans.factory.config.MethodInvokingFactoryBean.afterPropertiesSet(MethodInvokingFactoryBean.java:106)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1613)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1550)
        ... 98 more
Caused by: org.xml.sax.SAXException: The attribute 'read-only' appears illegally on element 'user'.
        at org.exolab.castor.xml.UnmarshalHandler.processAttributes(UnmarshalHandler.java:2781)
        at org.exolab.castor.xml.UnmarshalHandler.startElement(UnmarshalHandler.java:2314)
        at org.exolab.castor.xml.UnmarshalHandler.startElement(UnmarshalHandler.java:1353)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:509)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1363)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2786)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
        at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:709)
        ... 113 more


Kindly help
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: OpenNMS not starting after upgraade to version 19

Norbert
Hi,

Check this:



Compare with your log:

Exception: The attribute 'read-only' appears illegally on element
'user'.{File: [not available]; line: 15; column: 33}

Rgds
Norbert 

Am 07.04.2017 um 12:58 schrieb saqib <[hidden email]>:

Hello.

I updated my openNMS to version 19 and after that ist is not starting. Here
is the log after update

Fri Apr  7 15:34:33 PKT 2017
begin ulimit settings:
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 31147
max locked memory       (kbytes, -l) 64
max memory size         (kbytes, -m) unlimited
open files                      (-n) 20480
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 31147
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited
end ulimit settings
Executing command: /opt/opennms/bin/runjava -r  --
-Djava.endorsed.dirs=/opt/opennms/lib/endorsed   -Dopennms.home=/opt/opennms
-Xmx1024m -XX:+HeapDumpOnOutOfMemoryErr
or  -Dcom.sun.management.jmxremote.authenticate=true
-Dcom.sun.management.jmxremote.login.config=opennms
-Dcom.sun.management.jmxremote.access.file=/opt/opennms/etc/jm
xremote.access -DisThreadContextMapInheritable=true
-Dgroovy.use.classvalue=true -XX:MaxMetaspaceSize=256m
-Djava.io.tmpdir=/opt/opennms/data/tmp -jar /opt/opennms/lib
/opennms_bootstrap.jar  start  
[DEBUG] System property 'opennms.library.jicmp' set to
'/usr/lib64/libjicmp.so.  Attempting to load jicmp library from this
location.
[INFO] Successfully loaded jicmp library.
[DEBUG] System property 'opennms.library.jicmp6' set to
'/usr/lib64/libjicmp6.so.  Attempting to load jicmp6 library from this
location.
[INFO] Successfully loaded jicmp6 library.
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 [even
tDaemonContext], from group with resource name
[classpath*:beanRefContext.xml]; nested exception is
org.springframework.beans.factory.BeanCreationException: Error crea
ting bean with name 'eventDaemonContext' defined in URL
[jar:file:/opt/opennms/lib/org.opennms.features.events.daemon-19.0.1.jar!/beanRefContext.xml]:
Cannot resolve r
eference 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-19.0.1.jar!/beanRefContext.xml]:
Cannot resolve reference to bean 'daemonContext' while settin
g constructor argument; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'daemonContext' defined in URL [jar:
file:/opt/opennms/lib/org.opennms.core.daemon-19.0.1.jar!/beanRefContext.xml]:
Cannot resolve reference to bean 'commonContext' while setting constructor
argument; nes
ted exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'commonContext' defined in URL
[jar:file:/opt/opennms/lib/openn
ms-config-19.0.1.jar!/beanRefContext.xml]: Instantiation of bean failed;
nested exception is org.springframework.beans.BeanInstantiationException:
Could not instantiat
e bean class
[org.springframework.context.support.ClassPathXmlApplicationContext]:
Constructor threw exception; nested exception is
org.springframework.beans.factory.B
eanCreationException: Error creating bean with name 'userManager-init'
defined in class path resource
[META-INF/opennms/applicationContext-commonConfigs.xml]: Invocati
on of init method failed; nested exception is
org.exolab.castor.xml.MarshalException: The attribute 'read-only' appears
illegally on element 'user'.{File: [not availab
le]; line: 15; column: 33}
       at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.rethrow(DefaultMBeanServerInterceptor.java:839)
       at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.rethrowMaybeMBeanException(DefaultMBeanServerInterceptor.java:852)
       at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:821)
       at
com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
       at org.opennms.netmgt.vmmgr.Invoker.invoke(Invoker.java:278)
       at org.opennms.netmgt.vmmgr.Invoker.invokeMethods(Invoker.java:207)
       at org.opennms.netmgt.vmmgr.Starter.start(Starter.java:154)
       at org.opennms.netmgt.vmmgr.Starter.startDaemon(Starter.java:94)
       at org.opennms.netmgt.vmmgr.Controller.start(Controller.java:173)
       at org.opennms.netmgt.vmmgr.Controller.main(Controller.java:150)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
       at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke(Method.java:497)
       at org.opennms.bootstrap.Bootstrap$4.run(Bootstrap.java:464)
       at java.lang.Thread.run(Thread.java:745)
Caused by: org.springframework.beans.factory.access.BootstrapException:
Unable to return specified BeanFactory instance: factory key
[eventDaemonContext], from group w
ith resource name [classpath*:beanRefContext.xml]; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'eventDae
monContext' defined in URL
[jar:file:/opt/opennms/lib/org.opennms.features.events.daemon-19.0.1.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-19.0.1.jar!/beanRefContext.xml]:
Cannot resolve reference to bean 'daemonContext' while setting constructor
argument; neste
d exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'daemonContext' defined in URL
[jar:file:/opt/opennms/lib/org.ope
nnms.core.daemon-19.0.1.jar!/beanRefContext.xml]: Cannot resolve reference
to bean 'commonContext' while setting constructor argument; nested exception
is org.springfr
amework.beans.factory.BeanCreationException: Error creating bean with name
'commonContext' defined in URL
[jar:file:/opt/opennms/lib/opennms-config-19.0.1.jar!/beanRef
Context.xml]: Instantiation of bean failed; nested exception is
org.springframework.beans.BeanInstantiationException: Could not instantiate
bean class [org.springframe
work.context.support.ClassPathXmlApplicationContext]: Constructor threw
exception; nested exception is
org.springframework.beans.factory.BeanCreationException: Error c
reating bean with name 'userManager-init' defined in class path resource
[META-INF/opennms/applicationContext-commonConfigs.xml]: Invocation of init
method failed; nes
ted exception is org.exolab.castor.xml.MarshalException: The attribute
'read-only' appears illegally on element 'user'.{File: [not available];
line: 15; column: 33}
       at
org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:403)
       at
org.opennms.core.spring.BeanUtils.getBeanFactory(BeanUtils.java:79)
       at org.opennms.core.spring.BeanUtils.getFactory(BeanUtils.java:131)
       at
org.opennms.netmgt.daemon.AbstractSpringContextJmxServiceDaemon$1.run(AbstractSpringContextJmxServiceDaemon.java:103)
       at org.opennms.core.logging.Logging.withPrefix(Logging.java:71)
       at
org.opennms.netmgt.daemon.AbstractSpringContextJmxServiceDaemon.init(AbstractSpringContextJmxServiceDaemon.java:96)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
       at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke(Method.java:497)
       at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:71)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
       at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke(Method.java:497)
       at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:275)
       at
com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:112)
       at
com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:46)
       at
com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:237)
       at
com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:138)
       at
com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:252)
       at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
       ... 13 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'eventDaemonContext' defined in URL
[jar:file:/opt/opennms/lib/org.op
ennms.features.events.daemon-19.0.1.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-19.0.1.jar!/bean
RefContext.xml]: Cannot resolve reference to bean 'daemonContext' while
setting constructor argument; nested exception is
org.springframework.beans.factory.BeanCreatio
nException: Error creating bean with name 'daemonContext' defined in URL
[jar:file:/opt/opennms/lib/org.opennms.core.daemon-19.0.1.jar!/beanRefContext.xml]:
Cannot res
olve 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-config-19.0.1.jar!/beanRefContext.xml]:
Instantiation of bean failed; nested exception
is org.springframework.beans.BeanInstantiationException: Could not
instantiate bean class
[org.springframework.context.support.ClassPathXmlApplicationContext]: Constr
uctor threw exception; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'userManager-init' defined in class p
ath resource [META-INF/opennms/applicationContext-commonConfigs.xml]:
Invocation of init method failed; nested exception is
org.exolab.castor.xml.MarshalException: The
attribute 'read-only' appears illegally on element 'user'.{File: [not
available]; line: 15; column: 33}
       at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:336)
       at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
       at
org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:646)
       at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:140)
       at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1115)
       at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1018)
       at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
       at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
       at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
       at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
       at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
       at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198)
       at
org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:981)
       at
org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:395)
       ... 34 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'daoContext' defined in URL
[jar:file:/opt/opennms/lib/opennms-dao-19
.0.1.jar!/beanRefContext.xml]: Cannot resolve reference to bean
'daemonContext' while setting constructor argument; nested exception is
org.springframework.beans.facto
ry.BeanCreationException: Error creating bean with name 'daemonContext'
defined in URL
[jar:file:/opt/opennms/lib/org.opennms.core.daemon-19.0.1.jar!/beanRefContext.xm
l]: Cannot resolve reference to bean 'commonContext' while setting
constructor argument; nested exception is
org.springframework.beans.factory.BeanCreationException: E
rror creating bean with name 'commonContext' defined in URL
[jar:file:/opt/opennms/lib/opennms-config-19.0.1.jar!/beanRefContext.xml]:
Instantiation of bean failed; ne
sted exception is org.springframework.beans.BeanInstantiationException:
Could not instantiate bean class
[org.springframework.context.support.ClassPathXmlApplicationCo
ntext]: Constructor threw exception; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'userManager-init' defi
ned in class path resource
[META-INF/opennms/applicationContext-commonConfigs.xml]: Invocation of init
method failed; nested exception is org.exolab.castor.xml.Marshal
Exception: The attribute 'read-only' appears illegally on element
'user'.{File: [not available]; line: 15; column: 33}
       at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:336)
       at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
       at
org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:646)
       at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:140)
       at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1115)
       at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1018)
       at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
       at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
       at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
       at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
       at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
       at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
       at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
       ... 47 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'daemonContext' defined in URL
[jar:file:/opt/opennms/lib/org.opennms
.core.daemon-19.0.1.jar!/beanRefContext.xml]: Cannot resolve reference to
bean 'commonContext' while setting constructor argument; nested exception is
org.springframew
ork.beans.factory.BeanCreationException: Error creating bean with name
'commonContext' defined in URL
[jar:file:/opt/opennms/lib/opennms-config-19.0.1.jar!/beanRefCont
ext.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.BeanCreationException: Error creat
ing bean with name 'userManager-init' defined in class path resource
[META-INF/opennms/applicationContext-commonConfigs.xml]: Invocation of init
method failed; nested
exception is org.exolab.castor.xml.MarshalException: The attribute
'read-only' appears illegally on element 'user'.{File: [not available];
line: 15; column: 33}
       at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:336)
       at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
       at
org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:646)
       at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:140)
       at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1115)
       at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1018)
       at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
       at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
       at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
       at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
       at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
       at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
       at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
       ... 59 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'commonContext' defined in URL
[jar:file:/opt/opennms/lib/opennms-con
fig-19.0.1.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.BeanCre
ationException: Error creating bean with name 'userManager-init' defined in
class path resource [META-INF/opennms/applicationContext-commonConfigs.xml]:
Invocation of
init method failed; nested exception is
org.exolab.castor.xml.MarshalException: The attribute 'read-only' appears
illegally on element 'user'.{File: [not available]; l
ine: 15; column: 33}
       at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:278)
       at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1115)
       at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1018)
       at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
       at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
       at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
       at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
       at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
       at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
       at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
       ... 71 more
Caused by: org.springframework.beans.BeanInstantiationException: Could not
instantiate bean class
[org.springframework.context.support.ClassPathXmlApplicationContext]:
Constructor threw exception; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'userManager-init' defined in
class path resource [META-INF/opennms/applicationContext-commonConfigs.xml]:
Invocation of init method failed; nested exception is
org.exolab.castor.xml.MarshalExcepti
on: The attribute 'read-only' appears illegally on element 'user'.{File:
[not available]; line: 15; column: 33}
       at
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:164)
       at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:125)
       at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:270)
       ... 80 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'userManager-init' defined in class path resource
[META-INF/opennms/a
pplicationContext-commonConfigs.xml]: Invocation of init method failed;
nested exception is org.exolab.castor.xml.MarshalException: The attribute
'read-only' appears i
llegally on element 'user'.{File: [not available]; line: 15; column: 33}
       at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1554)
       at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
       at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
       at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
       at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
       at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
       at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
       at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:687)
       at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:762)
       at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
       at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
       at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:105)
       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
       at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
       at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
       at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
       at
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148)
       ... 82 more
Caused by: org.exolab.castor.xml.MarshalException: The attribute 'read-only'
appears illegally on element 'user'.{File: [not available]; line: 15;
column: 33}
       at
org.exolab.castor.xml.Unmarshaller.convertSAXExceptionToMarshalException(Unmarshaller.java:755)
       at
org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:721)
       at org.opennms.core.xml.CastorUtils.unmarshal(CastorUtils.java:235)
       at org.opennms.core.xml.CastorUtils.unmarshal(CastorUtils.java:213)
       at
org.opennms.netmgt.config.UserManager.parseXML(UserManager.java:118)
       at
org.opennms.netmgt.config.UserFactory.reload(UserFactory.java:145)
       at org.opennms.netmgt.config.UserFactory.<init>(UserFactory.java:87)
       at org.opennms.netmgt.config.UserFactory.init(UserFactory.java:102)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
       at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke(Method.java:497)
       at
org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:269)
       at
org.springframework.beans.factory.config.MethodInvokingBean.invokeWithTargetException(MethodInvokingBean.java:119)
       at
org.springframework.beans.factory.config.MethodInvokingFactoryBean.afterPropertiesSet(MethodInvokingFactoryBean.java:106)
       at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1613)
       at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1550)
       ... 98 more
Caused by: org.xml.sax.SAXException: The attribute 'read-only' appears
illegally on element 'user'.
       at
org.exolab.castor.xml.UnmarshalHandler.processAttributes(UnmarshalHandler.java:2781)
       at
org.exolab.castor.xml.UnmarshalHandler.startElement(UnmarshalHandler.java:2314)
       at
org.exolab.castor.xml.UnmarshalHandler.startElement(UnmarshalHandler.java:1353)
       at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:509)
       at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1363)
       at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2786)
       at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
       at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
       at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848)
       at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
       at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
       at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
       at
org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:709)
       ... 113 more


Kindly help



--
View this message in context: http://opennms.530661.n2.nabble.com/OpenNMS-not-starting-after-upgraade-to-version-19-tp7595321.html
Sent from the OpenNMS - discuss mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-discuss mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-discuss mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: OpenNMS not starting after upgraade to version 19

saqib
In reply to this post by saqib
I followed the link and it worked. Thanks for the support
Loading...