I am trying to create an API Rest to return a json from SQL Server to deploy in a JBoss 6.0.0 (it has to be this one) in NetBeans; I created it by generating some entities from the DB and sessions on them, applying two java classes to configure and generate the query as it is exposed tutorial . The problem is that when I try to deploy it locally (I have not uploaded it to the server), without compilation errors of any kind at any time, it gives me the error of the message title and the truth is that I do not know very well where to start check.
From what I have read out there, another error is even more relevant, which appears as "The type java.io.ObjectInputStream can not resolve. It is indirectly referenced from required .class files", but I am also not very capable of understand the answers.
The stacktrace is the one below:
org.apache.jasper.JasperException: No se puede compilar la clase para JSP:
Ha tenido lugar un error en la línea: 1 en el fichero java generado
The type java.io.ObjectInputStream cannot be resolved. It is indirectly referenced from required .class files
Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:439)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:360)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:338)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:325)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:607)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:312)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
And the index.jsp, which I have not modified from the one generated, is;
<%@ page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<h1>Hello World!</h1>
</body>
</html>
I tried to import the .war to Eclipse but it gives me the same error.
Any help in this regard would be welcome. Thanks in advance. Greetings