Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Wildfly Management API(Servlet with Management API)
Wildfly Management API [message #1855140] Thu, 29 September 2022 13:55 Go to next message
Carlos Oliva is currently offline Carlos OlivaFriend
Messages: 2
Registered: December 2021
Junior Member
How can I resolve the following error: java.lang.NoClassDefFoundError: org/jboss/dmr/ModelNode?

I am using Eclipse 2020-06, JDK 1.8.0_261, JBoss Tools plug-in, Wildfly 11.

I created a servlet according to the following link: https://www.geeksforgeeks.org/creating-servlet-example-in-eclipse/

The servlet works fine with the default code but if I add a ModelNode, I get the class not found error.

The code is the following:
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
//response.getWriter().append("Served at: ").append(request.getContextPath());

ModelNode op = new ModelNode();

response.setContentType("text/html");

PrintWriter out = response.getWriter();

out.print("<html><body>");
out.print("<h2>Welcome to GeeksForGeeks</h2>");
out.print("</body></html>");
}
Re: Wildfly Management API [message #1855141 is a reply to message #1855140] Thu, 29 September 2022 14:27 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4368
Registered: July 2009
Senior Member

This sounds like something to ask on the forum for JBoss Tools. https://tools.jboss.org/community/

That said, if org.jboss.dmr.ModelNode is not provided by Wildfly 11, and you have added it to your project
in a way other than putting it in its WEB-INF/lib folder, you must mark it as needing to be deployed with
your project's Deployment Assembly property page.


Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:Eclipse IDE throws errors on JSX script
Next Topic:File upload issue if more than 2GB, request body exceeds maximum size (2147483647) for SSL buffer
Goto Forum:
  


Current Time: Thu Jul 13 03:44:44 GMT 2023

Powered by FUDForum. Page generated in 0.02999 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top