1

我正在尝试通过 maven 将 mulesoft 应用程序部署到 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'.]]]
4

0 回答 0