[GeoNetwork-devel] Geonetwork login page

Hi all,

I bumped into an error today while testing the login form. The thing is that if while being logged off, I try to go to the admin section, I expect to be redirected to a login page. Instead, I’m getting this error:

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

Ha tenido lugar un error en la línea: [73] en el fichero java generado: [C:\apache-tomcat-8.0.18\work\Catalina\localhost\geonetwork\org\apache\jsp\login_jsp.java]

The method getDispatcherType() is undefined for the type HttpServletRequest

Stacktrace:

org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:102)

org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:198)

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:570)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:356)

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:790)

org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

org.fao.geonet.monitor.webapp.WebappMetricsFilter.doFilter(WebappMetricsFilter.java:96)

org.fao.geonet.monitor.webapp.MetricsRegistryInitializerFilter.doFilter(MetricsRegistryInitializerFilter.java:31)

org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)

org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)

org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)

org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:381)

org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:178)

org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:155)

org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)

org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)

org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)

org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)

The Geonetwork I’m talking about is a 2.10.4 installed on top of a Tomcat 8.0.18. However, I tried to do the same with another Geonetwork (same version) I have on a Wildfly 8, and it works as expected.

I suspect that the problem is the servlet-api version. While Tomcat uses 2.5, Wildfly is running with the 3.1. Can it be? If this is the case, regarding that the docs recommend using Tomcat, what changed do I need to do? I tried to replace the servlet-api.jar in bot lib folders of Geonetwork and Tomcat without any result.

Any ideas?

Cheers,

César

Tracasa

Hola,

Can you test it on Tomcat 7? I think Tomcat 8 is not compatible with
many libraries we are using right now on geoNetwork. Is it a problem
to use Tomcat 7 for you?

Regards,
María.

On Thu, Feb 26, 2015 at 4:45 PM, César Díaz García <cdiaz@anonymised.com.1055...> wrote:

Hi all,

I bumped into an error today while testing the login form. The thing is that
if while being logged off, I try to go to the admin section, I expect to be
redirected to a login page. Instead, I’m getting this error:

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

Ha tenido lugar un error en la línea: [73] en el fichero java generado:
[C:\apache-tomcat-8.0.18\work\Catalina\localhost\geonetwork\org\apache\jsp\login_jsp.java]

The method getDispatcherType() is undefined for the type HttpServletRequest

Stacktrace:

org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:102)

org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:198)

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:570)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:356)

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:790)

org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

org.fao.geonet.monitor.webapp.WebappMetricsFilter.doFilter(WebappMetricsFilter.java:96)

org.fao.geonet.monitor.webapp.MetricsRegistryInitializerFilter.doFilter(MetricsRegistryInitializerFilter.java:31)

org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)

org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)

org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)

org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:381)

org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:178)

org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:155)

org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)

org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)

org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)

org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)

The Geonetwork I’m talking about is a 2.10.4 installed on top of a Tomcat
8.0.18. However, I tried to do the same with another Geonetwork (same
version) I have on a Wildfly 8, and it works as expected.

I suspect that the problem is the servlet-api version. While Tomcat uses
2.5, Wildfly is running with the 3.1. Can it be? If this is the case,
regarding that the docs recommend using Tomcat, what changed do I need to
do? I tried to replace the servlet-api.jar in bot lib folders of Geonetwork
and Tomcat without any result.

Any ideas?

Cheers,

César

Tracasa

________________________________

AVISO SOBRE CONFIDENCIALIDAD: La información incluida en este mensaje es
CONFIDENCIAL y de uso EXCLUSIVO a su FINALIDAD. Su posterior divulgación
será responsabilidad de quien la realice

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website,
sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for
all
things parallel software development, from weekly thought leadership blogs
to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork