【问题标题】:Database connectivity issue of Mule application with mysql database in linux environmentlinux环境下Mule应用与mysql数据库的数据库连接问题
【发布时间】:2016-03-28 16:31:47
【问题描述】:

我正在尝试在 Linux 环境中运行 ETL mule 应用程序,虽然此应用程序在 Windows 环境中成功运行,但在 linux 环境中运行时,我遇到了异常。请帮忙

 org.mule.module.launcher.DeploymentInitException: CannotAcquireResourceException: A ResourcePool could not acquire a resource from its primary factory or source.  at org.mule.module.launcher.application.DefaultMuleApplication.init(DefaultMuleApplication.java:181)
                at org.mule.module.launcher.artifact.ArtifactWrapper$2.execute(ArtifactWrapper.java:62)
                at org.mule.module.launcher.artifact.ArtifactWrapper.executeWithinArtifactClassLoader(ArtifactWrapper.java:129)
                at org.mule.module.launcher.artifact.ArtifactWrapper.init(ArtifactWrapper.java:57)
                at org.mule.module.launcher.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:25)
                at org.mule.module.launcher.DefaultArchiveDeployer.guardedDeploy(DefaultArchiveDeployer.java:274)
                at org.mule.module.launcher.DefaultArchiveDeployer.deployArtifact(DefaultArchiveDeployer.java:294)
                at org.mule.module.launcher.DefaultArchiveDeployer.deployExplodedApp(DefaultArchiveDeployer.java:261)
                at org.mule.module.launcher.DefaultArchiveDeployer.deployExplodedArtifact(DefaultArchiveDeployer.java:110)
                at org.mule.module.launcher.DeploymentDirectoryWatcher.deployExplodedApps(DeploymentDirectoryWatcher.java:287)
                at org.mule.module.launcher.DeploymentDirectoryWatcher.start(DeploymentDirectoryWatcher.java:148)
                at org.mule.module.launcher.MuleDeploymentService.start(MuleDeploymentService.java:99)
                at org.mule.module.launcher.MuleContainer.start(MuleContainer.java:152)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                at java.lang.reflect.Method.invoke(Method.java:606)
                at org.mule.module.reboot.MuleContainerWrapper.start(MuleContainerWrapper.java:52)
                at org.tanukisoftware.wrapper.WrapperManager$12.run(WrapperManager.java:2788)








    )Invocation of init method failed; nested exception is org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Connections could not be acquired from the underlying database!
            at org.mule.registry.AbstractRegistry.initialise(AbstractRegistry.java:113)
            at org.mule.config.spring.SpringXmlConfigurationBuilder.createSpringRegistry(SpringXmlConfigurationBuilder
            at org.mule.config.builders.AbstractConfigurationBuilder.configure(AbstractConfigurationBuilder.java:43)

【问题讨论】:

    标签: java mysql linux jdbc mule


    【解决方案1】:

    找不到 MYSQL 连接器。在构建路径中正确添加 MYSQL 连接器。

    检查您的主机。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-09-13
      • 1970-01-01
      • 2021-11-24
      • 2015-01-21
      • 2015-04-04
      • 1970-01-01
      • 1970-01-01
      • 2021-08-23
      相关资源
      最近更新 更多