Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jsp获取不到tomcat的端口号 #36

Open
JiangJiYue opened this issue Jul 11, 2023 · 0 comments
Open

jsp获取不到tomcat的端口号 #36

JiangJiYue opened this issue Jul 11, 2023 · 0 comments

Comments

@JiangJiYue
Copy link

JiangJiYue commented Jul 11, 2023

HTTP Status 500 – Internal Server Error
Type Exception Report

Message Unable to compile class for JSP:

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception

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

An error occurred at line: [6] in the jsp file: [/views/jsp/index.jsp]
System cannot be resolved
3: String domain = request.getScheme() + "://" + request.getServerName() + request.getContextPath();
4: String host = request.getRemoteHost();
5: // int port = request.getServerPort();
6: Integer port = Integer.valueOf(System.getProperty("tomcat.connector.port"));
7:
8:
9: %>

Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:102)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:212)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:552)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:381)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:351)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:335)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:597)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:399)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:386)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:330)
javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
io.github.dunwu.filter.CorsFilter.doFilter(CorsFilter.java:58)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
Note The full stack trace of the root cause is available in the server logs.

@JiangJiYue JiangJiYue closed this as not planned Won't fix, can't repro, duplicate, stale Jul 11, 2023
@JiangJiYue JiangJiYue reopened this Jul 11, 2023
@JiangJiYue JiangJiYue changed the title ngindx jsp获取不到tomcat的端口号 Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant