主题 : 安装jeecms时出现如下问题,请问如何解决
级别: 童生
UID: 1773
积分:8 加为好友
威望: 0 精华: 0
主题:1 回复:3
注册时间:2010-01-18
在线时长:0
1#   发表于:2010-01-18 18:53:42  IP:61.25.*.*
本人在linux下搭建了jsp环境,测试正常,但在安装jeecms时出现如下错误,请各位高手帮忙解疑!小弟感激不尽!

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: /jeecms/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: /jeecms/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: /jeecms/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: /jeecms/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:  //&#65533;&#65533;&#700;&#65533;&#65533;&#65533;&#65533;&#65533;


An error occurred at line: 45 in the jsp file: /jeecms/install/install_setup.jsp
Install cannot be resolved
42:  //&#65533;&#65533;&#700;&#65533;&#65533;&#65533;&#65533;&#65533;
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: 46 in the jsp file: /jeecms/install/install_setup.jsp
Install cannot be resolved
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:  }
49:  //&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;


An error occurred at line: 50 in the jsp file: /jeecms/install/install_setup.jsp
Install cannot be resolved
47:  initList);
48:  }
49:  //&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;
50:  Install.updateConfig(dbHost, dbPort, dbName, dbUser, dbPassword,
51:  domain, cxtPath, port);
52:  //&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#1919;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#316;&#65533;
53:  String dbXmlPath = application.getRealPath(dbXmlFileName);


An error occurred at line: 54 in the jsp file: /jeecms/install/install_setup.jsp
Install cannot be resolved
51:  domain, cxtPath, port);
52:  //&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#1919;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#316;&#65533;
53:  String dbXmlPath = application.getRealPath(dbXmlFileName);
54:  Install
55:  .dbXml(dbXmlPath, dbHost, dbPort, dbName, dbUser,
56:  dbPassword);
57:  //&#65533;&#65533;&#65533;&#65533;web.xml


An error occurred at line: 60 in the jsp file: /jeecms/install/install_setup.jsp
Install cannot be resolved
57:  //&#65533;&#65533;&#65533;&#65533;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:92)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:423)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:317)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
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)


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


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

Apache Tomcat/6.0.18
级别: 白丁
UID: 3
积分:2415 加为好友
威望: 0 精华: 0
主题:23 回复:1614
注册时间:2009-06-02
在线时长:0
2#   发表于:2010-01-18 21:15:44  IP:59.140.*.*
可能你的运行环境还是有些地方没有配置好,实在不行可以换种方式,采用手动方式安装。 
主要有几个步骤: 
1、找到程序目录下install文件夹里的脚本,执行建库及初始化数据的脚本; 
2、拷贝install/config文件夹下的web.xml,覆盖web-inf下的同名文件 
3、修改WEB-INF/classes/jdbc.properties文件,对应数据库的相关参数 
4、启动tomcat,即可
生命在于折腾!
1 共1页