Iniciante desenvolvedor web caelum

9 respostas
R

Boa Tarde

Pessoal estou iniciando na programação web e estava tendo algumas difculdades e ate estava indo bem mais agora apareceu um erro que não consigo descobrir o que é, se vocês puderem me ajudar agradeço. Vamos la em todos meus codigos JSP está dando essa mensagem, pelo o que consegui verificar ele não está conseguindo carregar a classe JSP, mais não alterei nada. estou usando o Tomcat 6 com eclipse WTP.

[code]HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: 7 in the generated java file
The type testaparametro_jsp must implement the inherited abstract method Servlet.getServletConfig()

An error occurred at line: 30 in the generated java file
No exception of type ServletException can be thrown; an exception type must be a subclass of Throwable

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:423)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:317)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

note The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.

--------------------------------------------------------------------------------

Apache Tomcat/6.0.18

9 Respostas

vinicius_roc

É isso mesmo, ele não conseguiu compilar/rodar o JSP. Isso acontece comigo as vezes, ai eu clico em voltar e clico no link de novo e funciona. Se não limpo e construo de novo o projeto e então funciona.

Tenta ver se é isso.

Abss

Att,

Vinicius Roberto

R

Boa Tarde

Obrigado Vinicius Roberto mais ainda não foi resolvido.

Pessoal tentei fazer a dica do amigo mais ainda continua com erro, e esse erro é só nos arquivos JSP, o resto está rodando normalmente, desde de ja agradeço.

LPJava

vc ja testou aqueles exemplos do tomcat ? dar o mesmo erro?

Quando acontece isso eu limpo o cache pq o internet explorer eh uma merda, e depois vou la e dou um reload na app. abro um novo browser e testo.

Marcio_Nogueira

Vc mapeou o servlet no web.xml? :wink:

zoren

Mostra seus códigos que estão envolvidos com o testaparametros

assim fica mais facil ajudar

L

o servlet testaparametro está extendendo corretamente as superclasses?

javax.servlet.http.HttpServlet implements javax.servlet.Servlet

R

Bom dia

Pessoal mapiei sim servlet no web.xml, vou colocar um codigo simples pois todo codigo .JSP está dando o mesmo erro.

<!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=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<h1>Novo Projeto JSPTESTE</h1>
</body>
</html>
HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: 7 in the generated java file
The type index_jsp must implement the inherited abstract method Servlet.getServletConfig()

An error occurred at line: 30 in the generated java file
No exception of type ServletException can be thrown; an exception type must be a subclass of Throwable

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:423)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:317)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

note The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.

--------------------------------------------------------------------------------

Apache Tomcat/6.0.18

zoren

Coloca o código da sua Servlet

ou da sua página q tem o scriplet

R

Boa Tarde

Pessoal muito obrigado pelas dicas o problema foi resolvido instalando o eclipse novamente, pois tentei de tudo e estava achando que deveria ser algum conflito de pastas e resolvi começar novamente, agora está udo funcionando normal.

Criado 23 de junho de 2009
Ultima resposta 25 de jun. de 2009
Respostas 9
Participantes 6