Linux下Xwiki安装部署详解(2)

编辑xwiki.cfg
       vi xwiki.cfg
           xwiki.readonly=no
           xwiki.encoding=UTF-8
           xwiki.store.main.hint=hibernate
           xwiki.store.hibernate.path=/WEB-INF/hibernate.cfg.xml
           xwiki.superadminpassword=system
       配置office server
           yum install libreoffice  libreoffice-headless
       XWIKI字符集编码配置
           vi web.xml     

    encoding="UTF-8"
4.xwiki初始化

使用. /usr/local/apache/bin/startup.sh 启动tomcat后,通过:8080/xwiki做xwiki初始化工作

Linux下Xwiki安装部署详解

Linux下Xwiki安装部署详解

Linux下Xwiki安装部署详解

Linux下Xwiki安装部署详解

Linux下Xwiki安装部署详解

Linux下Xwiki安装部署详解

设置中文

Linux下Xwiki安装部署详解

三、Xwiki管理

四、附录

1、安装错误信息01

错误信息:根据查看tomcat的启动日志 /usr/local/apache_bak/logs/catalina.2018-03-25.log , /usr/local/apache_bak/logs/catalina.out


Mar 25, 2018 9:44:05 AM org.apache.catalina.loader.WebappClassLoaderBase validateJarFile
INFO: validateJarFile(/usr/local/apache/webapps/xwiki/WEB-INF/lib/javax.el-3.0.0.jar) - jar not loaded. See Servlet Spec 3
.0, section 10.7.2. Offending class: javax/el/Expression.class
Mar 25, 2018 9:44:22 AM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete lis
t of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup tim
e and JSP compilation time.
处理方法:

根据错误信息,根据查询原因大致是因为tomcat7以上启动需要检查tld,这里开启debug模式查看具体需要检查哪些jar包,然后跳过处理

开启tld检查jar日志记录
vi /usr/local/apache/conf/logging.properties
org.apache.jasper.servlet.TldScanner.level = FINE
然后关闭tomcat,启动并检查catalina.out
egrep "No TLD files were found in" catalina.out |egrep "jar"|awk -F'['  '{print $3}'|awk -F']'  '{print $1}'|awk -F'lib/' '{print $2}'>a.txt
将里面的jar包设置跳过检查处理
vi /usr/local/apache/conf/catalina.properties 文件中的 “tomcat.util.scan.StandardJarScanFilter.jarsToSkip=” 处,保存该文件
2、安装错误信息02

上面报错信息处理后,发现启动tomcat还是无法访问xwiki(404错误),这里只能开启xwiki的debug模式查看具体报错信息

设置debug日志模式:

cd /usr/local/apache/webapps/xwiki/WEB-INF/classes
touch logging.properties
##具体添加内容如下
handlers = org.apache.juli.FileHandler, java.util.logging.ConsoleHandler   
   
############################################################   
# Handler specific properties.   
# Describes specific configuration info for Handlers.   
############################################################   
   
org.apache.juli.FileHandler.level = FINE   
org.apache.juli.FileHandler.directory = /usr/local/apache/logs   
org.apache.juli.FileHandler.prefix = error-debug.   
   
java.util.logging.ConsoleHandler.level = FINE   
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
重启tomcat,查看错误日志内容

错误信息主要如下:

Unsupported major.minor version 52.0

处理方法:

根据错误信息,基本可以确认是由于jdk版本导致的,查看需要1.8版本的Jdk,下载高版本的jdk安装后,重启问题解决

wget "http://download.Oracle.com/otn-pub/java/jdk/8u161-b12/2f38c3b165be4555a1fa6e98c45e0808/jdk-8u161-linux-x64.rpm"

rpm -ivh jdk-8u161-linux-x64.rpm

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/36670f2f4de4f99ce6710dcd2aaa8b50.html