OHDSI Home | Forums | Wiki | Github

Occured error when install "WEB-API"

Hi I’m a biginer in atlaas user.
So I want to install all of System.

But I was just doing install “webapi” continueously occur error.

when I type
“mvn clean package -s WebAPIConfig/settings.xml -P webapi-oracle”
this comman Line. and it work.

put error message like this.

“”
[ERROR] Failed to execute goal on project WebAPI: Could not resolve dependencies for project org.ohdsi:WebAPI:war:1.0.0-SNAPSHOT: Failure to find ojdbc:ojdbc:jar:14 in http://repo.maven.apache.org/maven2/ was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [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/DependencyResolutionException
“”

please give me a solution.

Try to replace your pom.xml with the latest pom.xml from master:

This version of the file contains a new reference to an oracle driver, the change can be seen here:

1 Like

Thanks for your favor.

Thanks to your advice. I can pass that.
But I face to the other error in tomcat.

It show that in ‘FLYWAY’ can’t migration.

As it possible how can I resolve that.

(P.S)
I installed oracle 11g in my local pc.

On oracle, when a migration fails, the database maybe left in an inconsistent state because DDL statements (such as alter/create tables) are not transactional. Therefore, the easiest way to resolve the error is to go to a backup of your database, and deploy again.

If you have the choice, I would host the WebAPI database on postgresql. It handles migrations in a transnational way, and it’s easier to restart a failed migration.

1 Like
t