由于找不到postgres db驱动程序而导致应用程序无法启动

时间:2019-04-30 19:30:57

标签: maven cloudhub mulesoft

正在尝试将mulesoft应用程序thourgh maven部署到cloudhub。它已成功部署,但是应用程序启动时出现错误。我验证了与postgres相关的POM文件和依赖项jar,所有这些都就位。

请帮助掩盖此问题

POM文件

<sharedLibraries>
     <sharedLibrary>
            <groupId>org.postgresql</groupId>
                            <artifactId>postgresql</artifactId>
                        </sharedLibrary>
                </sharedLibraries>

        <dependency>
            <groupId>org.postgresql</groupId>
            <artifactId>postgresql</artifactId>
            <version>42.2.5</version>
        </dependency>

错误:

Caused by: java.sql.SQLException: Error trying to load driver: org.postgresql.Driver : Cannot load class 'org.postgresql.Driver': [
    org.postgresql.Driver, 
    Cannot load class 'org.postgresql.Driver': [
    Class 'org.postgresql.Driver' has no package mapping for region 'domain/default/app/loggingframework-app-dev'., 
    Cannot load class 'org.postgresql.Driver': [
    org.postgresql.Driver, 
    Class 'org.postgresql.Driver' not found in classloader for artifact 'container'.]]]

0 个答案:

没有答案