Dear Team,

I am planning to implement monitoring using Prometheus and Grafana. To do this, 
I am adding the necessary JARs and WAR file to Artemis version 2.33. taking 
these files and building the project using Maven, I followed the steps from the 
provided GitHub URL. However, upon starting Artemis, I am encountering the 
following error in the console.

https://github.com/rh-messaging/artemis-prometheus-metrics-plugin



Error



Hawtio loginRedirectFilter is using 1800 sec. HttpSession timeout
2024-06-19 13:38:11,070 WARN  [org.eclipse.jetty.webapp.WebAppContext] Failed 
startup of context 
o.e.j.w.WebAppContext@5e85c21b{/metrics,file:///D:/apache-artemis-2.33.0-bin/apache-artemis-2.33.0/bin/primary/tmp/webapps/metrics.war/webapp/,UNAVAILABLE,@Connector-0}{D:\apache-artemis-2.33.0-bin\apache-artemis-2.33.0\web\metrics.war}<mailto:o.e.j.w.WebAppContext@5e85c21b%7b/metrics,file:///D:/apache-artemis-2.33.0-bin/apache-artemis-2.33.0/bin/primary/tmp/webapps/metrics.war/webapp/,UNAVAILABLE,@Connector-0%7d%7bD:\apache-artemis-2.33.0-bin\apache-artemis-2.33.0\web\metrics.war%7d>
java.lang.NoClassDefFoundError: jakarta/servlet/http/HttpServlet
        at java.base/java.lang.ClassLoader.defineClass1(Native Method) ~[?:?]
        at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1016) 
~[?:?]
        at 
java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
 ~[?:?]
        at 
java.base/java.net.URLClassLoader.defineClass(URLClassLoader.java:555) ~[?:?]
        at java.base/java.net.URLClassLoader$1.run(URLClassLoader.java:458) 
~[?:?]
        at java.base/java.net.URLClassLoader$1.run(URLClassLoader.java:452) 
~[?:?]
        at java.base/java.security.AccessController.doPrivileged(Native Method) 
~[?:?]
        at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:451) 
~[?:?]
        at 
org.eclipse.jetty.webapp.WebAppClassLoader.foundClass(WebAppClassLoader.java:594)
 ~[jetty-webapp-10.0.20.jar:10.0.20]
        at 
org.eclipse.jetty.webapp.WebAppClassLoader.loadAsResource(WebAppClassLoader.java:567)
 ~[jetty-webapp-10.0.20.jar:10.0.20]
        at 
org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:502)
 ~[jetty-webapp-10.0.20.jar:10.0.20]
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521) 
~[?:?]
        at org.eclipse.jetty.util.Loader.loadClass(Loader.java:59) 
~[jetty-util-10.0.20.jar:10.0.20]
        at org.eclipse.jetty.servlet.BaseHolder.doStart(BaseHolder.java:97) 
~[jetty-servlet-10.0.20.jar:10.0.20]
        at 
org.eclipse.jetty.servlet.ServletHolder.doStart(ServletHolder.java:369) 
~[jetty-servlet-10.0.20.jar:10.0.20]
        at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93)
 ~[jetty-util-10.0.20.jar:10.0.20]
        at 
org.eclipse.jetty.servlet.ServletHandler.lambda$initialize$2(ServletHandler.java:724)
 ~[jetty-servlet-10.0.20.jar:10.0.20]
        at 
java.base/java.util.stream.SortedOps$SizedRefSortingSink.end(SortedOps.java:357)
 ~[?:?]
        at 
java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:485) 
~[?:?]
        at 
java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
 ~[?:?]
        at 
java.base/java.util.stream.StreamSpliterators$WrappingSpliterator.forEachRemaining(StreamSpliterators.java:312)
 ~[?:?]
        at 
java.base/java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:735)
 ~[?:?]
        at 
java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:658)
 ~[?:?]
        at 
org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:749) 
~[jetty-servlet-10.0.20.jar:10.0.20]
        at 
org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:392)
 ~[jetty-servlet-10.0.20.jar:10.0.20]
        at 
org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1304) 
~[jetty-webapp-10.0.20.jar:10.0.20]
        at 
org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:901)
 ~[jetty-server-10.0.20.jar:10.0.20]
        at 
org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:306)
 ~[jetty-servlet-10.0.20.jar:10.0.20]
        at 
org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:532) 
[jetty-webapp-10.0.20.jar:10.0.20]
        at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93)
 [jetty-util-10.0.20.jar:10.0.20]
        at 
org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:171)
 [jetty-util-10.0.20.jar:10.0.20]
        at 
org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:121)
 [jetty-util-10.0.20.jar:10.0.20]
        at 
org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:89)
 [jetty-server-10.0.20.jar:10.0.20]
        at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93)
 [jetty-util-10.0.20.jar:10.0.20]
        at 
org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:171)
 [jetty-util-10.0.20.jar:10.0.20]
        at org.eclipse.jetty.server.Server.start(Server.java:470) 
[jetty-server-10.0.20.jar:10.0.20]
        at 
org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
 [jetty-util-10.0.20.jar:10.0.20]
        at 
org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:89)
 [jetty-server-10.0.20.jar:10.0.20]
        at org.eclipse.jetty.server.Server.doStart(Server.java:415) 
[jetty-server-10.0.20.jar:10.0.20]
        at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93)
 [jetty-util-10.0.20.jar:10.0.20]
        at 
org.apache.activemq.artemis.component.WebServerComponent.start(WebServerComponent.java:215)
 [artemis-web-2.33.0.jar:2.33.0]
        at 
org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.addExternalComponent(ActiveMQServerImpl.java:1018)
 [artemis-server-2.33.0.jar:2.33.0]
        at org.apache.activemq.artemis.cli.commands.Run.execute(Run.java:145) 
[artemis-cli-2.33.0.jar:2.33.0]
        at 
org.apache.activemq.artemis.cli.Artemis.internalExecute(Artemis.java:221) 
[artemis-cli-2.33.0.jar:2.33.0]
        at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:167) 
[artemis-cli-2.33.0.jar:2.33.0]
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
~[?:?]
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 ~[?:?]
        at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 ~[?:?]
        at java.base/java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
        at org.apache.activemq.artemis.boot.Artemis.execute(Artemis.java:157) 
[artemis-boot.jar:2.33.0]
        at org.apache.activemq.artemis.boot.Artemis.main(Artemis.java:64) 
[artemis-boot.jar:2.33.0]
Caused by: java.lang.ClassNotFoundException: jakarta.servlet.http.HttpServlet
        at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:476) 
~[?:?]
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:588) 
~[?:?]
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521) 
~[?:?]
        at 
org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:511)
 ~[jetty-webapp-10.0.20.jar:10.0.20]
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521) 
~[?:?]




regards,
Albaasith Ahamed



Albaasith Ahamed

https://www.amlakint.com
P.O Box 28088 Riyadh 11437


albaasi...@amlakint.com

[cid:imagec3c6d5.PNG@dc0d33e7.418166f6]<https://www.amlakint.com/>      
[cid:imagedc4f96.PNG@9c6f7959.428b9c60] <https://www.facebook.com/Amlakint/>    
[cid:image21de97.PNG@84422d7b.4780fa93] <https://www.twitter.com/amlakint>
[cid:image96ffbd.PNG@113b5882.428ff3f1]<https://www.linkedin.com/company/amlakint>
      [cid:image53fb88.PNG@5904ef86.4eb3959e] 
<https://www.youtube.com/channel/UCTSNh9_vD5jn1SW6Sjs-9MQ>

_




Disclaimer
This e-mail (including any file attachment) contains 
confidential information and/or may also be legally privileged. 
It is intended solely for the use of the named addressees and 
any unauthorized dissemination or use by any other person or 
entity is strictly prohibited. If you are not the intended 
recipient you should not transmit, copy, print, disclose or 
otherwise make use of and/or place any reliance on this e-mail 
and its contents. If you have received this e-mail in error, 
you should immediately notify the sender by return e-mail and 
delete all copies from your system. The views, opinion or 
advice as may be contained herein are those of the sending 
individual and do not necessary represent that of AMLAK 
International or bind AMLAK International. E-mails can be 
corrupted, altered or falsified and AMLAK International  shall 
not be liable for any alteration or falsification on this e-mail.

Reply via email to