日期:2014-05-16  浏览次数:20664 次

Linux Apache 配置备忘
 SEVERE: Exception starting filter Struts2

Caught exception while loading file struts-default.xml – [unknown location]

Caused by: java.lang.ClassCastException:
org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration


linux服务器上默认安装了openjdk等多种 修改/etc/profile设定官网下载的jdk到path,同时修改tomcat使用官网jdk

java.net.BindException: Permission denied <null>:80

Linux服务器不允许tomcat用户使用1024以下的端口

mod_jk.so: cannot open shared object file: Permission denied

使用如下命令授权:
chcon -t httpd_modules_t /usr/lib/httpd/modules/mod_jk.so



apache Can't find the workers file specified

如果文件确实存在,请关闭linux的Selinux
如果不想重启系统,使用命令setenforce 0
注:
setenforce 1 设置SELinux 成为enforcing模式
setenforce 0 设置SELinux 成为permissive模式
 关闭SELinux的方法:
修改/etc/selinux/config文件中的SELINUX="" 为 disabled ,然后重启。