esta dando o seguinte erro
[code]HTTP Status 500 -
type Exception report
message
descriptionThe server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: java.lang.InstantiationException: MinhaClasse
root cause
java.lang.InstantiationException: MinhaClasse
note The full stack traces of the exception and its root causes are available in the GlassFish Server Open Source Edition 3.1.2.2 logs.
[/code]
Segue os arquivos
MinhaClasse.java:
package Example;
public class MinhaClasse {
public static void test() {
System.out.println("Nada");
}
}
index.jsp
<%@page contentType="text/html" pageEncoding="UTF-8"
import="Example.MinhaClasse"%>
<jsp:useBean class="MinhaClasse" id="myBean" scope="page" />
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<%= myBean.toString() %>
</body>
</html>
Alguem sabe oq pode ser ?