Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Error: Database configuration missed schema AMPS datasource

Nhac Tat Nguyen
Contributor
March 2, 2019

I'm trying to configure postgres DB for my jira instance when run atlas-run. But i got the error:

[ERROR] Failed to execute goal com.atlassian.maven.plugins:maven-amps-dispatcher-plugin:6.3.21:run (default-cli) on project issue-panels-addon: Unable to execute mojo: Database configuration missed schema -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Exception in thread "Thread-3" java.lang.NoClassDefFoundError: com/google/common/collect/Lists$ReverseList
at com.google.common.collect.Lists.reverse(Lists.java:729)
at com.atlassian.maven.plugins.amps.AbstractProductHandlerMojo.stopProducts(AbstractProductHandlerMojo.java:907)
at com.atlassian.maven.plugins.amps.RunMojo$1.run(RunMojo.java:107)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.ClassNotFoundException: com.google.common.collect.Lists$ReverseList
at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:259)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:235)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:227)
... 4 more

My pom looks like this:

 <plugin>
<groupId>com.atlassian.maven.plugins</groupId>
<artifactId>maven-jira-plugin</artifactId>
<version>${amps.version}</version>
<extensions>true</extensions>
<configuration>
<productVersion>${jira.version}</productVersion>
<productDataVersion>${jira.version}</productDataVersion>
<instanceId>jira713</instanceId>
<products>
<product>
<id>jira</id>
<instanceId>jira713</instanceId>
<version>${jira.version}</version>
<dataVersion>${jira.version}</dataVersion>
<!--<dataPath>src/main/resources/empty-home</dataPath>-->
<dataSources>
<dataSource>
<jndi>jdbc/JiraDS</jndi>
<url>jdbc:postgresql://localhost:5432/jira</url>
<driver>org.postgresql.Driver</driver>
<username>postgres</username>
<password>postgres</password>
<driver>org.postgresql.Driver</driver>
<libArtifacts>
<libArtifact>
<groupId>postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>9.1-901-1.jdbc4</version>
</libArtifact>
</libArtifacts>
</dataSource>
</dataSources>
</product>
</products>
...
</configuration>
</plugin>

My jira runs fine without any datasource configuration (using H2 DB)

1 answer

0 votes
Tuncay Senturk
Community Champion
March 2, 2019

I think this error is not related with database configuration but lacking of guava dependency.

Try adding following dependency

<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>26.0-jre</version>
<scope>provided</scope>
</dependency>

Hope it helps

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events