我正在尝试运行我的第一个 openxava 应用程序。我只有一个包含 4 个字段的文件。我正在使用 Tomcat 和 Mssql 服务器。我构建项目,运行和部署一切都很好..我现在使用 jd1.7。在我尝试使用 1.8 之前,我遇到了同样的错误。
这些是我的字段:@Id @Required
private Integer kifid; @Column(length=1) 私有字符串 kisifirma;
@Column(length=1)
private String gonullumu;
@Column(length=50)
private String tckno;
sql structure is like this :
CREATE TABLE [dbo].[sekreterya_kisifirma](
[kifid] [int] IDENTITY(1,1) NOT NULL,
[kisifirma] [char](1) NULL,
[Gonullumu] [int] NULL,
[TCKNo] [varchar](50) NULL, .....
当我尝试从浏览器访问我的模块时,这个异常来了。我觉得这应该是一个容易解决的问题。但我需要一些帮助..
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 7 in the generated java file
The import java.util.Arrays cannot be resolved
An error occurred at line: 32 in the jsp file: /xava/module.jsp
The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files
29: || "xava.portlet.module".equals(name))
30: continue;
31: String value = request.getParameter(name);
32: result.append('&');
33: result.append(name);
34: result.append('=');
35: result.append(value);
An error occurred at line: 165 in the jsp file: /xava/module.jsp
Arrays cannot be resolved
162: <%
163: File jsEditorsFolder = new File(realPath + "/xava/editors/js");
164: String[] jsEditors = jsEditorsFolder.list();
165: Arrays.sort(jsEditors);
166: for (int i = 0; i < jsEditors.length; i++) {
167: if (jsEditors[i].endsWith(".js")) {
168: %>
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:439)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:334)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:312)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:299)
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)
org.openxava.web.servlets.ModuleServlet.doGet(ModuleServlet.java:24)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
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.20 logs.