You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Rocky Linux安装Alfresco启动报错:Authentication Filter配置文件缺失

解决Alfresco启动时Authentication Filter初始化失败的问题

错误原因分析

从日志栈可以明确,SSOAuthenticationFilter初始化过程中调用LoginContext时,JVM无法找到JAAS(Java Authentication and Authorization Service)登录配置文件,最终抛出java.io.IOException: Configuration Error: No such file or directory异常。

解决步骤

1. 创建JAAS配置文件

新建名为alfresco-jaas.conf的文件,内容如下(适配Alfresco默认本地认证场景,若使用LDAP等外部认证,可替换对应登录模块配置):

alfresco {
    org.alfresco.repo.security.authentication.jaas.AlfrescoLoginModule required
        debug=false
        alfrescoHome="${ALFRESCO_HOME}"
        userRegistryProps="${ALFRESCO_HOME}/extension/subsystems/Authentication/alfrescoNtlm/alfresco-authentication.properties";
};
alfrescoExternal {
    org.alfresco.repo.security.authentication.jaas.AlfrescoLoginModule required
        debug=false
        alfrescoHome="${ALFRESCO_HOME}"
        userRegistryProps="${ALFRESCO_HOME}/extension/subsystems/Authentication/alfrescoNtlm/alfresco-authentication.properties";
};

2. 放置配置文件

将该文件放到Alfresco Tomcat的配置目录下,示例路径(替换为你的实际安装路径):

/opt/alfresco/tomcat/conf/alfresco-jaas.conf

3. 配置JVM参数指向该文件

编辑Tomcat目录下的bin/setenv.sh文件,添加以下JVM参数:

CATALINA_OPTS="$CATALINA_OPTS -Djava.security.auth.login.config=${CATALINA_HOME}/conf/alfresco-jaas.conf"

4. 验证文件权限

确保Alfresco运行用户(通常为alfresco)对配置文件有读取权限:

chown alfresco:alfresco /opt/alfresco/tomcat/conf/alfresco-jaas.conf
chmod 644 /opt/alfresco/tomcat/conf/alfresco-jaas.conf

5. 重启Alfresco

执行startup.sh重新启动服务,检查catalina.out日志确认异常是否消除。


内容的提问来源于stack exchange,提问作者MCGregorius

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.25 04:53:16