站内搜索
发表回复
收藏 

EasyJForum 安装指南 

EasyJForum 安装指南

环境要求

 

    EasyJForum 基于 Java 技术,具备跨平台特性,可以运行于任何支持 Java 的操作系统环境下。
    具体运行环境要求如下:
  • JDK/JRE 5.0 以上的 Java 运行时环境
  • 支持 JSP/Servlet 2.0 以上的 http 服务器(如 Tomcat、Resin 等)
  • 数据库为 MySQL 5.0 及以上 / Oracle 9i 及以上 / SQL Server 2000 及以上 / Hsqldb 1.8.0及以上

 

      以上软件除 Hsqldb 以外,其余软件均需用户自己安装好并能正常运行。
      Hsqldb 是一个轻便的嵌入式数据库,已经包含在 EasyJForum 的发布包中,不必另行安装(最大可以存储 8GB 的数据, 
      ,建议小型测试型论坛采用此数据库,正式网站不要采用,因为此数据库运行不太稳定)。

       

      如果您租用虚拟主机,请咨询虚拟主机提供商,您的空间服务器是否已安装了上述软件。由于 EasyJForum 的数据表具有前缀设计,因此通常情况下可以将 EasyJForum 与其他软件安装在同一个数据库中而不会产生冲突。

       

            若使用除 Hsqldb 以外的其它数据库,您的数据库账号应当拥有 CREATE、DROP、ALTER 等执行权限以保证系统的正常运行。

          详细安装步骤

              EasyJForum 的安装非常简单方便。如果采用 Hsqldb 数据库,则只需执行下述的第一步即可完成安装,其它数据库则需要完成三个步骤:

            • 上传文件

              首先将 EasyJForum 压缩包采用 FTP 等方式上传到服务器上,解压缩后将 ejforum 目录(可以改名)作为一个 Context 放到 Tomcat 或其它 Java Web 服务器的相应目录下,然后修改 Web 服务器的配置文件,使此 Context 生效即可(Context 的概念和含义请参考 Java Web 服务器的文档)。

              如果采用 Oracle 数据库,则需另行下载 Oracle 10g 以上的 JDBC 驱动程序包并放置在 Context 的 WEB-INF/lib 目录下。
              如果决定采用 Hsqldb, 则安装过程已经结束(配置文件中的缺省数据库),否则请执行下面两个步骤。


            • 运行数据库脚本

              创建或选择一个准备用于本论坛系统的数据库用户,赋予其足够的权限,然后依据数据库的不同选择运行 install 子目录下的数据库脚本文件,以创建本论坛所需的数据库表和插入初始化数据。

            • 修改配置文件

              用任何文本编辑器打开位于 EasyJForum Context 子目录下的 WEB-INF/conf 下的 config.xml 文件 ,修改数据库配置为您所使用的数据库类型(将其它 database 节点注释掉,仅保留您使用的 database 配置节点),并修改用户名、密码和数据库名称(将 {DATABASE}, {USERNAME}, {PASSWORD} 分别替换为您使用的数据库名、用户名和密码)。

              论坛的系统管理员名称默认为 admin,由配置文件中的 指定,您可以修改此名称以加强安全性。
              此外,配置文件的 misc 节点中还定义了论坛的一些运行参数,这些参数的具体含义请在论坛运行时的后台管理中查阅,一般情况下您不必修改这些值。


            系统启动和初始设置

              EasyJForum 安装完毕后,重新启动 Web 服务器(比如 Tomcat)就可以访问论坛了。
              EasyJForum 在安装完成后初始运行时,应进行一些必要的设置以使论坛能够正常运行,比如论坛名称、logo、系统邮件帐号等。

              输入论坛网址进入论坛,以配置文件中的系统管理员登录论坛(默认为admin,其初始密码与用户名相同),然后点击主菜单中的“后台管理”进入后台管理界面,根据界面描述和提示信息对论坛参数进行设置。

               

              若对于安装和配置仍有不明白之处,请访问我们的技术支持论坛以寻求解答。

            本论坛开发者 QQ:980766123

            安装时出错,请帮忙看看怎么回事

            我直接把压缩包解开后放入我的根目录 test内   http://localhost:8080/test/ejforum-2.0/ejforum/ 

            当时访问出现以下错误

             

            exception

            org.apache.jasper.JasperException: Unable to compile class for JSP: 
            
            
            An error occurred at line: 8 in the generated java file
            Only a type can be imported. com.hongshee.ejforum.util.PageUtils resolves to a package
            
            
            An error occurred at line: 9 in the generated java file
            Only a type can be imported. com.hongshee.ejforum.util.AppUtils resolves to a package
            
            
            An error occurred at line: 10 in the generated java file
            Only a type can be imported. com.hongshee.ejforum.common.CacheManager resolves to a package
            
            
            An error occurred at line: 11 in the generated java file
            Only a type can be imported. com.hongshee.ejforum.common.AppContext resolves to a package
            
            
            An error occurred at line: 12 in the generated java file
            Only a type can be imported. com.hongshee.ejforum.common.ForumSetting resolves to a package
            

             

            Re: 回复 1# zzzxxxccc 的帖子

            可能是你的路径放置有错误,导致Java类库文件找不到。

             

            比如,如果 tomcat 的配置是可以自动发现 Context, 则只需要将包解压缩后放到某一个虚拟主机的根目录下即可;

            否则需要在 conf/server.xml 中配置 context 的路径指向解压缩后的目录。

             

            本论坛开发者 QQ:980766123
            install文件夹下的src目录下只有data的包,没有common的

            <%@ page import="com.hongshee.ejforum.util.PageUtils"%>
            <%@ page import="com.hongshee.ejforum.util.AppUtils"%>
            <%@ page import="com.hongshee.ejforum.common.CacheManager"%>
            <%@ page import="com.hongshee.ejforum.common.AppContext"%>
            <%@ page import="com.hongshee.ejforum.common.ForumSetting"%>
            src目录下只有com.hongshee.ejforum.data

            没有以上的common和until

            install 下的 src 只是公开的源代码部分,安装包在 ejforum 目录下, 程序包在 ejforum/WEB-INF/lib 下。

            请阅读 install 下的帮助文档。

            不是很懂!看看,看着和DZ比较相似!

            你这个安装文档写得真烂, 

            安装错误

            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: 8 in the generated java file
            Only a type can be imported. com.hongshee.ejforum.util.PageUtils resolves to a package
            
            An error occurred at line: 9 in the generated java file
            Only a type can be imported. com.hongshee.ejforum.util.AppUtils resolves to a package
            
            An error occurred at line: 10 in the generated java file
            Only a type can be imported. com.hongshee.ejforum.common.CacheManager resolves to a package
            
            An error occurred at line: 11 in the generated java file
            Only a type can be imported. com.hongshee.ejforum.common.AppContext resolves to a package
            
            An error occurred at line: 12 in the generated java file
            Only a type can be imported. com.hongshee.ejforum.common.ForumSetting resolves to a package
            
            An error occurred at line: 13 in the generated java file
            Only a type can be imported. com.hongshee.ejforum.data.UserDAO.UserInfo resolves to a package
            
            An error occurred at line: 14 in the generated java file
            Only a type can be imported. com.hongshee.ejforum.data.SectionDAO.SectionVO resolves to a package
            
            An error occurred at line: 15 in the generated java file
            Only a type can be imported. com.hongshee.ejforum.data.BoardDAO.BoardVO resolves to a package
            
            An error occurred at line: 16 in the generated java file
            Only a type can be imported. com.hongshee.ejforum.data.StatDAO resolves to a package
            
            An error occurred at line: 17 in the generated java file
            Only a type can be imported. com.hongshee.ejforum.data.GroupDAO.GroupVO resolves to a package
            
            An error occurred at line: 20 in the jsp file: /ejforum/index.jsp
            AppContext cannot be resolved to a type
            17: 	if (!ctxPath.equals("/"))
            18: 		serverName = serverName + ctxPath;
            19: 	
            20: 	AppContext appCtx = AppContext.getInstance();
            21: 	CacheManager cache = CacheManager.getInstance();
            22:     ArrayList sections = cache.getSections();
            23: 	
            
            
            An error occurred at line: 20 in the jsp file: /ejforum/index.jsp
            AppContext cannot be resolved
            17: 	if (!ctxPath.equals("/"))
            18: 		serverName = serverName + ctxPath;
            19: 	
            20: 	AppContext appCtx = AppContext.getInstance();
            21: 	CacheManager cache = CacheManager.getInstance();
            22:     ArrayList sections = cache.getSections();
            23: 	
            
            
            An error occurred at line: 21 in the jsp file: /ejforum/index.jsp
            CacheManager cannot be resolved to a type
            18: 		serverName = serverName + ctxPath;
            19: 	
            20: 	AppContext appCtx = AppContext.getInstance();
            21: 	CacheManager cache = CacheManager.getInstance();
            22:     ArrayList sections = cache.getSections();
            23: 	
            24: 	String sectionID = PageUtils.getParam(request,"sid");
            
            
            An error occurred at line: 21 in the jsp file: /ejforum/index.jsp
            CacheManager cannot be resolved
            18: 		serverName = serverName + ctxPath;
            19: 	
            20: 	AppContext appCtx = AppContext.getInstance();
            21: 	CacheManager cache = CacheManager.getInstance();
            22:     ArrayList sections = cache.getSections();
            23: 	
            24: 	String sectionID = PageUtils.getParam(request,"sid");
            
            
            An error occurred at line: 24 in the jsp file: /ejforum/index.jsp
            PageUtils cannot be resolved
            21: 	CacheManager cache = CacheManager.getInstance();
            22:     ArrayList sections = cache.getSections();
            23: 	
            24: 	String sectionID = PageUtils.getParam(request,"sid");
            25: 	StringBuilder sbuf = new StringBuilder();
            26: 	SectionVO currentSection = null;
            27: 	String sectionLink = null;
            
            
            An error occurred at line: 26 in the jsp file: /ejforum/index.jsp
            SectionVO cannot be resolved to a type
            23: 	
            24: 	String sectionID = PageUtils.getParam(request,"sid");
            25: 	StringBuilder sbuf = new StringBuilder();
            26: 	SectionVO currentSection = null;
            27: 	String sectionLink = null;
            28: 	
            29: 	ForumSetting setting = ForumSetting.getInstance();
            
            
            An error occurred at line: 29 in the jsp file: /ejforum/index.jsp
            ForumSetting cannot be resolved to a type
            26: 	SectionVO currentSection = null;
            27: 	String sectionLink = null;
            28: 	
            29: 	ForumSetting setting = ForumSetting.getInstance();
            30: 	if (sectionID != null && sectionID.length() > 0)
            31: 	{
            32: 		currentSection = cache.getSection(sectionID);
            
            
            An error occurred at line: 29 in the jsp file: /ejforum/index.jsp
            ForumSetting cannot be resolved
            26: 	SectionVO currentSection = null;
            27: 	String sectionLink = null;
            28: 	
            29: 	ForumSetting setting = ForumSetting.getInstance();
            30: 	if (sectionID != null && sectionID.length() > 0)
            31: 	{
            32: 		currentSection = cache.getSection(sectionID);
            
            
            An error occurred at line: 35 in the jsp file: /ejforum/index.jsp
            ForumSetting.DISPLAY cannot be resolved to a type
            32: 		currentSection = cache.getSection(sectionID);
            33: 		if (currentSection != null)
            34: 		{
            35: 			String showSectionLink = setting.getString(ForumSetting.DISPLAY, "showSectionLink");
            36: 			if (showSectionLink.equalsIgnoreCase("yes"))
            37: 			{
            38: 				sbuf.append(" &raquo;&nbsp; ").append(currentSection.sectionName);
            
            
            An error occurred at line: 45 in the jsp file: /ejforum/index.jsp
            PageUtils cannot be resolved
            42: 	}
            43: 	
            44: 	String forumName = setting.getForumName();
            45: 	String title = PageUtils.getTitle(forumName);
            46: 	UserInfo userinfo = PageUtils.getSessionUser(request);
            47: 	String[] menus = PageUtils.getHeaderMenu(request, userinfo);
            48: 	String homeUrl = ctxPath + "/index.jsp";
            
            
            An error occurred at line: 46 in the jsp file: /ejforum/index.jsp
            UserInfo cannot be resolved to a type
            43: 	
            44: 	String forumName = setting.getForumName();
            45: 	String title = PageUtils.getTitle(forumName);
            46: 	UserInfo userinfo = PageUtils.getSessionUser(request);
            47: 	String[] menus = PageUtils.getHeaderMenu(request, userinfo);
            48: 	String homeUrl = ctxPath + "/index.jsp";
            49: 	String forumStyle = PageUtils.getForumStyle(request, response, null);
            .............
            
            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:316)
            	org.apache.jasper.compiler.Compiler.compile(Compiler.java:294)
            	org.apache.jasper.compiler.Compiler.compile(Compiler.java:281)
            	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
            	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
            	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
            	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.16 logs.


            Apache Tomcat/6.0.16

            因为 Context 配置不正确所导致的错误,请在安装本论坛前先熟悉 Tomcat 或其它 Web server 的 Context 的概念。
            黑夜给了我黑色的眼睛,我却用它寻找光明。QQ: 980766123
            试试把和install同级的ejforum目录放到webapps下面。
            发表回复
            查看积分策略说明

            快速回复主题

            标题  (可选)
            内容

            恢复自动保存的数据