記憶庫

自分用のメモです。

トラブルシューティング

データベース未起動によるエラー

事象

以下のメッセージが表示される。

18:14:17,228 WARN [org.springframework.web.context.support.XmlWebApplicationContext] (ServerService Thread Pool -- 83) Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.jdbc.datasource.init.DataSourceInitializer#0': Invocation of init method failed; nested exception is org.springframework.jdbc.datasource.init.UncategorizedScriptException: Failed to execute database script; nested exception is org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Cannot create PoolableConnectionFactory (java.net.ConnectException: ポート1,527のサーバーlocalhostへの接続中にメッセージConnection refused: connectでエラーが発生しました。)

原因

ローカル環境のApache Derbyが起動していない。

対処法

ローカル環境のApache Derbyを起動し、WildFlyを再起動する。