• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

i want to load a maven project with eclipse

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
how can i solve this?


when i try to load a maven Project with eclipse i have the following error message:


Estado HTTP 500 - No se puede compilar la clase para JSP:


type Informe de Excepción

mensaje No se puede compilar la clase para JSP:

descripción El servidor encontró un error interno que hizo que no pudiera rellenar este requerimiento.

excepción
org.apache.jasper.JasperException: No se puede compilar la clase para JSP:

Ha tenido lugar un error en la línea: [40] en el fichero java generado: [C:\Program Files\Apache Software Foundation\Tomcat 8.0\work\Catalina\localhost\delish-restaurant\org\apache\jsp\WEB_002dINF\pages\login_jsp.java]
The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory

Ha tenido lugar un error en la línea: [52] en el fichero java generado: [C:\Program Files\Apache Software Foundation\Tomcat 8.0\work\Catalina\localhost\delish-restaurant\org\apache\jsp\WEB_002dINF\pages\login_jsp.java]
The method getDispatcherType() is undefined for the type HttpServletRequest

Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:103)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:199)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:450)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:361)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:336)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:323)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)
javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:238)
org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:264)
org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1201)
org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:986)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:933)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:851)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:953)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:844)
javax.servlet.http.HttpServlet.service(HttpServlet.java:618)
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:829)
javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:106)


nota La traza completa de la causa de este error se encuentra en los archivos de diario de Apache Tomcat/8.0.15.

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

Apache Tomcat/8.0.15
 
Saloon Keeper
Posts: 27849
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
¡Welcome to the JavaRanch, Victor!

The seminal message is: "The method getDispatcherType() is undefined for the type HttpServletRequest "

Probably you are out of sync between the Tomcat and the application versions. If your login page has a scriptlet that's invoking "getDispatcherType()", check the JEE javadocs to make sure it's valid for Tomcat 8's level of of JEE spec.

Also, it's a good idea to stop Tomcat and remove everything in the TOMCAT_HOME work, log, and temp directories so that no stale stuff that might be left over from before an upgrade is being pulled in.
 
Victor Manuel Nuñez Guzman
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i still have the error.

i have deleted the contents of the work, log and temp directories.

this is my login.jsp page, i don't have the getDispatcherType() method.

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Iniciar sesión en Delish</title>
<link href="css/styles.css" rel="stylesheet"/>
<link href="css/signin.css" rel="stylesheet"/>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<script type="text/javascript" src="js/jquery.min.js"></script>
<c:if test="${not empty sessionScope.user.us_username}">
<script type="text/javascript">
$(document).ready(function(){
setTimeout(function(){$("#frmLogin").submit();},700);
});
</script>
</c:if>
</head>

<body style="background-image: url(img/pixel_weave.png)">

<div class="container">
<div class="row">
<div class="col-sm-6 col-md-4 col-md-offset-4">
<h1 class="text-center login-title">Inicie sesión para entrar a Delish</h1>
<c:if test="${not empty error}">
<div class="alert alert-danger" role="alert">Usuario o clave incorrectos</div>
</c:if>
<div class="account-wall">
<img class="profile-img" src="img/usericon.png"
alt="">
<form class="form-signin" action="login" method="post" id="frmLogin">
<input type="text" name="username" class="form-control" placeholder="Usuario" required autofocus value="${sessionScope.user.us_username!=null ? sessionScope.user.us_username : username}">
<input type="password" name="password" class="form-control" placeholder="Clave" required value="${sessionScope.user.us_password}">
<button class="btn btn-lg btn-primary btn-block" type="submit">Entrar</button>
<a href="recoverpassword" class="text-center new-account">¿No recuerdas tu clave? Recupérala</a>
</form>
</div>
<a href="signup" class="text-center new-account">¿No tienes un usuario? Afíliate</a>
</div>
</div>
</div>
</body>
</html>
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic