Re: Jetty Issues have Upgrade

"Madden, Joe" <[email protected]>
Newsgroups gmane.network.opennms.general
Message-ID <LOXP123MB00711588EBD2FD21AF8450BF91630@LOXP123MB0071.GBRP123.PROD.OUTLOOK.COM>
Found it - Had to delete jetty.xml.

Joe.
From: Madden, Joe [mailto:[email protected]]
Sent: 18 September 2017 12:39
To: General OpenNMS Discussion <[email protected]>
Subject: [opennms-discuss] Jetty Issues have Upgrade

Hi all,

Just updated OpenNMS from 18.0.x to 20.0.2.


Fixed all the other issues but get this issue when trying to startup now.



2017-09-18 11:34:18,382 DEBUG [Main] o.o.n.v.Invoker: pass 0 on service OpenNMS:Name=JettyServer will invoke method "init"
2017-09-18 11:34:18,382 DEBUG [Main] o.o.n.v.Invoker: Invoking init on object OpenNMS:Name=JettyServer
2017-09-18 11:34:18,536 ERROR [Main] o.o.n.v.Invoker: An error occurred invoking operation init on MBean OpenNMS:Name=JettyServer
javax.management.RuntimeMBeanException: org.springframework.beans.factory.access.BootstrapException: Unable to return specified BeanFactory instance: factory key [jettyServerContext], from group with resource name [classpath*:beanRefContext.xml]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jettyServerContext' defined in URL [jar:file:/opt/opennms/lib/opennms-jetty-20.0.2.jar!/beanRefContext.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'daemon' defined in class path resource [META-INF/opennms/applicationContext-jettyServer.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: java.lang.ClassNotFoundException: org.eclipse.jetty.server.nio.SelectChannelConnector
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.rethrow(DefaultMBeanServerInterceptor.java:839) ~[?:1.8.0_45]
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.rethrowMaybeMBeanException(DefaultMBeanServerInterceptor.java:852) ~[?:1.8.0_45]
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:821) ~[?:1.8.0_45]
        at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) ~[?:1.8.0_45]
        at org.opennms.netmgt.vmmgr.Invoker.invoke(Invoker.java:277) [org.opennms.core.daemon-20.0.2.jar:?]
        at org.opennms.netmgt.vmmgr.Invoker.invokeMethods(Invoker.java:206) [org.opennms.core.daemon-20.0.2.jar:?]
        at org.opennms.netmgt.vmmgr.Starter.start(Starter.java:154) [org.opennms.core.daemon-20.0.2.jar:?]
        at org.opennms.netmgt.vmmgr.Starter.startDaemon(Starter.java:94) [org.opennms.core.daemon-20.0.2.jar:?]
        at org.opennms.netmgt.vmmgr.Controller.start(Controller.java:173) [org.opennms.core.daemon-20.0.2.jar:?]
        at org.opennms.netmgt.vmmgr.Controller.main(Controller.java:150) [org.opennms.core.daemon-20.0.2.jar:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_45]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_45]
        at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_45]
        at org.opennms.bootstrap.Bootstrap$4.run(Bootstrap.java:525) [opennms_bootstrap.jar:?]
        at java.lang.Thread.run(Thread.java:745) [?:1.8.0_45]
Caused by: org.springframework.beans.factory.access.BootstrapException: Unable to return specified BeanFactory instance: factory key [jettyServerContext], from group with resource name [classpath*:beanRefContext.xml]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jettyServerContext' defined in URL [jar:file:/opt/opennms/lib/opennms-jetty-20.0.2.jar!/beanRefContext.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'daemon' defined in class path resource [META-INF/opennms/applicationContext-jettyServer.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: java.lang.ClassNotFoundException: org.eclipse.jetty.server.nio.SelectChannelConnector
        at org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:404) ~[org.apache.servicemix.bundles.spring-beans-4.1.6.RELEASE_1.jar:?]
        at org.opennms.core.spring.BeanUtils.getBeanFactory(BeanUtils.java:80) ~[org.opennms.core.spring-20.0.2.jar:?]
        at org.opennms.core.spring.BeanUtils.getFactory(BeanUtils.java:132) ~[org.opennms.core.spring-20.0.2.jar:?]
        at org.opennms.netmgt.daemon.AbstractSpringContextJmxServiceDaemon$1.run(AbstractSpringContextJmxServiceDaemon.java:103) ~[org.opennms.core.daemon-20.0.2.jar:?]
        at org.opennms.core.logging.Logging.withPrefix(Logging.java:71) ~[org.opennms.core.logging-20.0.2.jar:?]
        at org.opennms.netmgt.daemon.AbstractSpringContextJmxServiceDaemon.init(AbstractSpringContextJmxServiceDaemon.java:96) ~[org.opennms.core.daemon-20.0.2.jar:?]
        at sun.reflect.GeneratedMethodAccessor389.invoke(Unknown Source) ~[?:?]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_45]
        at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_45]
        at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:71) ~[?:1.8.0_45]
        at sun.reflect.GeneratedMethodAccessor255.invoke(Unknown Source) ~[?:?]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_45]
        at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_45]
        at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:275) ~[?:1.8.0_45]
        at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:112) ~[?:1.8.0_45]
        at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:46) ~[?:1.8.0_45]
        at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:237) ~[?:1.8.0_45]
        at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:138) ~[?:1.8.0_45]
        at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:252) ~[?:1.8.0_45]
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) ~[?:1.8.0_45]
        ... 13 more



Sure I've seen this before but I can't rember where the issue lies?

Thanks

Joe.

------------------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.