皕杰技术社区

 找回密码
 立即加入

扫一扫,访问微社区

QQ登录

只需一步,快速开始

查看: 32|回复: 6

[求助] 皕杰平台配置数据源后平台访问404

[复制链接]
发表于 2024-4-2 15:31:25 | 显示全部楼层 |阅读模式



严重 [main] org.apache.catalina.core.StandardContext.filterStart 启动过滤器异常
        java.lang.RuntimeException: Plugin start error: com.jfinal.plugin.activerecord.ActiveRecordPlugin.
java.sql.SQLException: Connections could not be acquired from the underlying database!
        Caused by: com.jfinal.plugin.activerecord.ActiveRecordException: java.sql.SQLException: Connections could not be acquired from the underlying database!
        Caused by: java.sql.SQLException: Connections could not be acquired from the underlying database!
        Caused by: com.mchange.v2.resourcepool.CannotAcquireResourceException: A ResourcePool could not acquire a resource from its primary factory or source.
        Caused by: org.h2.jdbc.JdbcSQLException: Database may be already in use: null. Possible solutions: close all other connection(s); use the server
        Caused by: java.lang.IllegalStateException: The file is locked: nio:/root/software/apache-tomcat-9.0.55/webapps/iface/WEB-INF/data/bijet.mv.db

 楼主| 发表于 2024-4-2 15:32:26 | 显示全部楼层
由于平台上传图片和文字字数限制,只能截取部分日志内容
回复 支持 反对

使用道具 举报

发表于 2024-4-2 16:18:00 | 显示全部楼层
数据库连接异常。正式环境下,请勿使用演示带的示例数据库!!!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2024-4-2 16:31:16 | 显示全部楼层
我在正式环境下没有使用示例数据库,只是拷过来的文件带了测试数据库,之前一直没有问题,今天试着添加第二个数据源,修改了两个数据源相关的文件以后就404了,现在一直不知道怎么恢复
回复 支持 反对

使用道具 举报

 楼主| 发表于 2024-4-2 16:33:12 | 显示全部楼层
请问该怎么排查问题,恢复服务

点评

你平台的配置数据源的地方配置的有问题,仔细排查一下  发表于 2024-4-2 17:06
回复 支持 反对

使用道具 举报

发表于 2024-4-2 17:05:38 | 显示全部楼层
从错误信息“The file is locked: nio:/root/software/apache-tomcat-9.0.55/webapps/iface/WEB-INF/data/bijet.mv.db”来看,这应该是连接了示例数据库,并且示例数据库文件被锁导致无法访问
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即加入

本版积分规则

QQ|小黑屋|手机版|皕杰软件 ( 京ICP备14050931号 )

GMT+8, 2024-5-2 10:37 , Processed in 1.126829 second(s), 17 queries .

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表