Home > Back-end >  A forward written by JSP Java code, how to deploy success to run in the server
A forward written by JSP Java code, how to deploy success to run in the server

Time:04-28



Now do is: drop files directly into the tomcat run under http://192.168.0.110:8080/OauthLogin/authLogin.jsp
But an error
HTTP Status 500 - Unable to compile class for JSP:

Type Exception report

The message Unable to compile class for JSP:

Description The server encountered an internal error that prevented it from fulfilling this request.

The exception

Org. Apache. Jasper. JasperException: Unable to compile class for JSP:

An error occurred at line: [14] in the generated Java file: [D: \ tomcat7 \ work \ Catalina \ localhost \ ROOT \ org \ apache \ JSP \ demo \ authLogin_jsp Java]
Only a type can be imported. Com. Anysdk. The auth. Login resolves to a package

An error occurred at line: 12 in the JSP file:/demo/authLogin. JSP
The Login always be resolved to a type
9: & lt;/head>
10: & lt; body>
11: & lt; %
12: Login Login=new Login ();
13: login. Check (request, response);
14: % & gt;
15: & lt;/body>


An error occurred at line: 12 in the JSP file:/demo/authLogin. JSP
The Login always be resolved to a type
9: & lt;/head>
10: & lt; body>
11: & lt; %
12: Login Login=new Login ();
13: login. Check (request, response);
14: % & gt;
15: & lt;/body>


Stacktrace:
Org.apache.jasper.com piler. DefaultErrorHandler. JavacError (DefaultErrorHandler. Java: 102)
Org.apache.jasper.com piler. ErrorDispatcher. JavacError (ErrorDispatcher. Java: 212)
Org.apache.jasper.com piler. JDTCompiler. GenerateClass (JDTCompiler. Java: 457)
Org.apache.jasper.compiler.Compiler.com running (377) Compiler. Java:
Org.apache.jasper.compiler.Compiler.com running (349) Compiler. Java:
Org.apache.jasper.compiler.Compiler.com running (333) Compiler. Java:
Org.apache.jasper.JspCompilationContext.com from running (JspCompilationContext. Java: 600)
Org. Apache. Jasper. Servlet. JspServletWrapper. Service (368) JspServletWrapper. Java:
Org. Apache. Jasper. Servlet. JspServlet. ServiceJspFile (JspServlet. Java: 385)
Org. Apache. Jasper. Servlet. JspServlet. Service (329) JspServlet. Java:
Javax.mail. Servlet. HTTP. HttpServlet. Service (HttpServlet. Java: 729)
Org, apache tomcat, websocket server. WsFilter. DoFilter (WsFilter. Java: 52)
Note The full stack trace of The root cause is available in The Apache Tomcat/8.5.6 logs.

Apache Tomcat/8.5.6
A great god advice please link to https://github.com/AnySDK/Sample_Server/tree/master/ServerDemo_Java/OauthLoginDemo

CodePudding user response:

No import Login this class,,, with the tag import & lt; % @ page import=

CodePudding user response:

You solved this problem
  • Related