TomEE 9.0.0-M2 :Issues

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

TomEE 9.0.0-M2 :Issues

Zahid Rahman

Note: TomEE 9.0.0-M2 is a milestone release, which targets the jakarta
namespace. Applications using javax will not work on this release of TomEE
9. You may encounter issues - feedback on this release is encouraged and

When I create a JSP using eclipse wizard the  error  is
The superclass "javax.servlet.http.HttpServlet" was not found on the Java
Build Path.
*It is purely due to using TomEE 9.0.0-M2*

*in eclipse*
Eclipse IDE for Enterprise Java Developers.
Version: 2020-03 (4.15.0)
Build id: 20200313-1211
OS: Linux, v.5.4.0-42-generic, x86_64 / gtk 3.24.18, WebKit 2.28.4
Java version: 11.0.8

*Servlet already in same dynamic Web Project*

package com.example;


import com.example.web.SessionBean;

import jakarta.ejb.EJB;
import jakarta.servlet.ServletException;
import jakarta.servlet.annotation.WebServlet;
import jakarta.servlet.http.HttpServlet;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;

 * Servlet implementation class HelloServlet
public class HelloServlet extends HttpServlet {
private static final long serialVersionUID = 1L;

   HelloBean bean;

   SessionBean sessionBean;

* @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse
protected void doGet(HttpServletRequest request, HttpServletResponse
response) throws ServletException, IOException {

response.setContentType("text/html"); out = response.getWriter();

out.append("<h1> Hello Servlet </h1>");
out.append("<h1> Hello "+ bean.from()+"</h1>");
out.append("<h1> Hello "+ sessionBean.from()+"</h1>");


} <>
♡۶♡۶ ♡۶