主题 : 安装中出现问题,急~~~~
级别: 童生
UID: 6255
积分:13 加为好友
威望: 0 精华: 0
主题:1 回复:6
注册时间:2010-04-30
在线时长:0
1#   发表于:2010-05-03 00:35:25  IP:219.255.*.*
环境是tomcat6.0,jdk1.60,mysql5.1
错误如下
HTTP Status 500 - 

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

type Exception report

message 

description The server encountered an internal error () that prevented it from fulfilling this request.

exception 

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

An error occurred at line: 31 in the jsp file: /install/install_setup.jsp
Install cannot be resolved
28:  String webXmlTo = "/WEB-INF/web.xml";
29:  //创建数据库
30:  if ("true".equals(isCreateDb)) {
31:  Install.createDb(dbHost, dbPort, dbName, dbUser, dbPassword);
32:  } else {
33:  Install.changeDbCharset(dbHost, dbPort, dbName, dbUser, dbPassword);
34:  }


An error occurred at line: 33 in the jsp file: /install/install_setup.jsp
Install cannot be resolved
30:  if ("true".equals(isCreateDb)) {
31:  Install.createDb(dbHost, dbPort, dbName, dbUser, dbPassword);
32:  } else {
33:  Install.changeDbCharset(dbHost, dbPort, dbName, dbUser, dbPassword);
34:  }
35:  //创建表
36:  if ("true".equals(isCreateTable)) {


An error occurred at line: 38 in the jsp file: /install/install_setup.jsp
Install cannot be resolved
35:  //创建表
36:  if ("true".equals(isCreateTable)) {
37:  String sqlPath = application.getRealPath(dbFileName);
38:  List<String> sqlList = Install.readSql(sqlPath);
39:  Install.createTable(dbHost, dbPort, dbName, dbUser, dbPassword,
40:  sqlList);
41:  }


An error occurred at line: 39 in the jsp file: /install/install_setup.jsp
Install cannot be resolved
36:  if ("true".equals(isCreateTable)) {
37:  String sqlPath = application.getRealPath(dbFileName);
38:  List<String> sqlList = Install.readSql(sqlPath);
39:  Install.createTable(dbHost, dbPort, dbName, dbUser, dbPassword,
40:  sqlList);
41:  }
42:  //初始化数据


An error occurred at line: 45 in the jsp file: /install/install_setup.jsp
Install cannot be resolved
42:  //初始化数据
43:  if ("true".equals(isInitData)) {
44:  String initPath = application.getRealPath(initFileName);
45:  List<String> initList = Install.readSql(initPath);
46:  Install.createTable(dbHost, dbPort, dbName, dbUser, dbPassword,
47:  initList);
48:  }


An error occurred at line: 39 in the jsp file: /install/install_setup.jsp
Install cannot be resolved
36:  if ("true".equals(isCreateTable)) {
37:  String sqlPath = application.getRealPath(dbFileName);
38:  List<String> sqlList = Install.readSql(sqlPath);
39:  Install.createTable(dbHost, dbPort, dbName, dbUser, dbPassword,
40:  sqlList);
41:  }
42:  //初始化数据


An error occurred at line: 50 in the jsp file: /install/install_setup.jsp
Install cannot be resolved
47:  initList);
48:  }
49:  //更新配置
50:  Install.updateConfig(dbHost, dbPort, dbName, dbUser, dbPassword,
51:  domain, cxtPath, port);
52:  //处理数据库配置文件
53:  String dbXmlPath = application.getRealPath(dbXmlFileName);


An error occurred at line: 31 in the jsp file: /install/install_setup.jsp
Install cannot be resolved
28:  String webXmlTo = "/WEB-INF/web.xml";
29:  //创建数据库
30:  if ("true".equals(isCreateDb)) {
31:  Install.createDb(dbHost, dbPort, dbName, dbUser, dbPassword);
32:  } else {
33:  Install.changeDbCharset(dbHost, dbPort, dbName, dbUser, dbPassword);
34:  }


An error occurred at line: 60 in the jsp file: /install/install_setup.jsp
Install cannot be resolved
57:  //处理web.xml
58:  String webXmlFromPath = application.getRealPath(webXmlFrom);
59:  String webXmlToPath = application.getRealPath(webXmlTo);
60:  Install.webXml(webXmlFromPath, webXmlToPath);
61: %>
62: 
63: <table width="600" align="center"


Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:415)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:308)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


note The full stack trace of the root cause is available in the Apache Tomcat/6.0.10 logs.


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

Apache Tomcat/6.0.10
级别: 白丁
UID: 3
积分:2415 加为好友
威望: 0 精华: 0
主题:23 回复:1614
注册时间:2009-06-02
在线时长:0
2#   发表于:2010-05-04 08:22:04  IP:59.138.*.*
应该是环境的问题
用的是jdk的什么版本?
生命在于折腾!
级别: 童生
UID: 6255
积分:13 加为好友
威望: 0 精华: 0
主题:1 回复:6
注册时间:2010-04-30
在线时长:0
3#   发表于:2010-05-04 09:52:36  IP:123.182.*.*
环境是tomcat6.0,jdk1.60,mysql5.1
级别: 童生
UID: 6255
积分:13 加为好友
威望: 0 精华: 0
主题:1 回复:6
注册时间:2010-04-30
在线时长:0
4#   发表于:2010-05-04 09:54:08  IP:123.182.*.*
环境是tomcat6.0,jdk1.60,mysql5.1
级别: 童生
UID: 6255
积分:13 加为好友
威望: 0 精华: 0
主题:1 回复:6
注册时间:2010-04-30
在线时长:0
5#   发表于:2010-05-07 14:43:21  IP:123.152.*.*
自己给自己顶一下吧
1 共1页