Hello all.
I am trying to setup Atlas on my local computer, I am using a Mac with El Capitan and tomcat 6.0.48, so far I have successfully used Achilles to generate AchillesWeb and put it there and works perfectly.
Now… trying first to build my WebAPI, how can I know that it build correctly?
Here is my settings.xml file:
<profile>
<id>webapi-oracle</id>
<properties>
<datasource.driverClassName>oracle.jdbc.OracleDriver</datasource.driverClassName>
<datasource.url>jdbc:oracle:thin:@//myserverIP:1521/myschema</datasource.url>
<datasource.username>ohdsi_db</datasource.username>
<datasource.password>ohdsi_pass</datasource.password>
<datasource.dialect>oracle</datasource.dialect>
<datasource.ohdsi.schema>ohdsi_db</datasource.ohdsi.schema>
<flyway.datasource.driverClassName>oracle.jdbc.OracleDriver</flyway.datasource.driverClassName>
<flyway.datasource.url>jdbc:oracle:thin:@//myserverIP:1521/myschema</flyway.datasource.url>
<flyway.datasource.username>ohdsi_db</flyway.datasource.username>
<flyway.datasource.password>ohdsi_pass</flyway.datasource.password>
<flyway.locations>classpath:db/migration/oracle</flyway.locations>
</properties>
</profile>
</profiles>
Then I run:
mvn install:install-file -Dfile=ojdbc6.jar -DgroupId=ojdbc -DartifactId=ojdbc -Dversion=6.0.0 -Dpackaging=jar
cd ~/MyOHDSIfolder/WebAPI-master/
mvn clean package -s WebAPIConfig/settings.xml -P webapi-oracle
and finally here is the log from the build, which ends in “BUILD SUCCESS”
[WARNING]
[WARNING] Some problems were encountered while building the effective settings
[WARNING] Expected root element 'settings' but found 'profile' (position: START_TAG seen <profile>... @1:11) @ /MyOHDSIfolder/WebAPI-master/WebAPIConfig/settings.xml, line 1, column 11
[WARNING]
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building WebAPI 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ WebAPI ---
[INFO] Deleting /MyOHDSIfolder/WebAPI-master/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ WebAPI ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 301 resources
[INFO] Copying 1 resource
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ WebAPI ---
[INFO] Compiling 276 source files to /MyOHDSIfolder/WebAPI-master/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ WebAPI ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ WebAPI ---
[INFO] Compiling 7 source files to /MyOHDSIfolder/WebAPI-master/target/test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ WebAPI ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-war-plugin:2.2:war (default-war) @ WebAPI ---
[INFO] Packaging webapp
[INFO] Assembling webapp [WebAPI] in [/MyOHDSIfolder/WebAPI-master/target/WebAPI]
[INFO] Processing war project
[INFO] Copying webapp resources [/MyOHDSIfolder/WebAPI-master/src/main/webapp]
[INFO] Webapp assembled in [2032 msecs]
[INFO] Building war: /MyOHDSIfolder/WebAPI-master/target/WebAPI.war
[INFO]
[INFO] --- miredot-plugin:1.5.1:restdoc (default) @ WebAPI ---
[WARNING] Miredot is unable to document the status codes of rest interfaces, unless a statusCodes-block is specified in pom.xml
[INFO] Building reflective model of API and reading annotations...
[WARNING] Unknown annotation on service method: skipped @javax.transaction.Transactional(value=REQUIRED, rollbackOn=[], dontRollbackOn=[])
[WARNING] Unknown annotation on service method: skipped @javax.transaction.Transactional(value=REQUIRED, rollbackOn=[], dontRollbackOn=[])
[WARNING] Unknown annotation on service method: skipped @javax.transaction.Transactional(value=REQUIRED, rollbackOn=[], dontRollbackOn=[])
[WARNING] Unknown annotation on service method: skipped @javax.annotation.PostConstruct()
[WARNING] Unknown annotation on service method: skipped @javax.transaction.Transactional(value=REQUIRED, rollbackOn=[], dontRollbackOn=[])
[WARNING] Unknown annotation on service method: skipped @javax.transaction.Transactional(value=REQUIRED, rollbackOn=[class java.lang.Exception], dontRollbackOn=[class org.springframework.dao.EmptyResultDataAccessException])
[WARNING] Unknown annotation on service method: skipped @javax.transaction.Transactional(value=REQUIRED, rollbackOn=[], dontRollbackOn=[])
[WARNING] Unknown annotation on service method: skipped @org.springframework.transaction.annotation.Transactional(propagation=REQUIRED, rollbackForClassName=[], isolation=DEFAULT, readOnly=true, noRollbackFor=[], noRollbackForClassName=[], value=, timeout=-1, rollbackFor=[])
[WARNING] Unknown annotation on service method: skipped @org.springframework.transaction.annotation.Transactional(propagation=REQUIRED, rollbackForClassName=[], isolation=DEFAULT, readOnly=false, noRollbackFor=[], noRollbackForClassName=[], value=, timeout=-1, rollbackFor=[])
[WARNING] Unknown annotation on service method: skipped @org.springframework.transaction.annotation.Transactional(propagation=REQUIRED, rollbackForClassName=[], isolation=DEFAULT, readOnly=false, noRollbackFor=[], noRollbackForClassName=[], value=, timeout=-1, rollbackFor=[])
[WARNING] Unknown annotation on service method: skipped @org.springframework.transaction.annotation.Transactional(propagation=REQUIRED, rollbackForClassName=[], isolation=DEFAULT, readOnly=true, noRollbackFor=[], noRollbackForClassName=[], value=, timeout=-1, rollbackFor=[])
[WARNING] Unknown annotation on service method: skipped @org.springframework.transaction.annotation.Transactional(propagation=REQUIRED, rollbackForClassName=[], isolation=DEFAULT, readOnly=false, noRollbackFor=[], noRollbackForClassName=[], value=, timeout=-1, rollbackFor=[])
[WARNING] Unknown annotation on service method: skipped @org.springframework.transaction.annotation.Transactional(propagation=REQUIRED, rollbackForClassName=[], isolation=DEFAULT, readOnly=false, noRollbackFor=[], noRollbackForClassName=[], value=, timeout=-1, rollbackFor=[])
[WARNING] Unknown annotation on service method: skipped @javax.transaction.Transactional(value=REQUIRED, rollbackOn=[], dontRollbackOn=[])
[WARNING] Unknown annotation on service method: skipped @org.springframework.transaction.annotation.Transactional(propagation=REQUIRED, rollbackForClassName=[], isolation=DEFAULT, readOnly=true, noRollbackFor=[], noRollbackForClassName=[], value=, timeout=-1, rollbackFor=[])
[WARNING] Unknown annotation on service method: skipped @org.springframework.transaction.annotation.Transactional(propagation=REQUIRED, rollbackForClassName=[], isolation=DEFAULT, readOnly=false, noRollbackFor=[], noRollbackForClassName=[], value=, timeout=-1, rollbackFor=[])
[WARNING] Unknown annotation on service method: skipped @org.springframework.transaction.annotation.Transactional(propagation=REQUIRED, rollbackForClassName=[], isolation=DEFAULT, readOnly=false, noRollbackFor=[], noRollbackForClassName=[], value=, timeout=-1, rollbackFor=[])
[WARNING] Unknown annotation on service method: skipped @org.springframework.transaction.annotation.Transactional(propagation=REQUIRED, rollbackForClassName=[], isolation=DEFAULT, readOnly=true, noRollbackFor=[], noRollbackForClassName=[], value=, timeout=-1, rollbackFor=[])
[WARNING] Unknown annotation on service method: skipped @org.springframework.transaction.annotation.Transactional(propagation=REQUIRED, rollbackForClassName=[], isolation=DEFAULT, readOnly=false, noRollbackFor=[], noRollbackForClassName=[], value=, timeout=-1, rollbackFor=[])
[WARNING] Unknown annotation on service method: skipped @org.springframework.transaction.annotation.Transactional(propagation=REQUIRED, rollbackForClassName=[], isolation=DEFAULT, readOnly=false, noRollbackFor=[], noRollbackForClassName=[], value=, timeout=-1, rollbackFor=[])
[INFO] Built.
[INFO] Reading javadoc comments from sourcefiles...
[INFO] Read.
[INFO] Merging reflective and javadoc models...
[WARNING] Limited support for jdk8 (@link, @see, @linkplain javadoc tags won't format properly)
[INFO] Merged.
[INFO] Performing issue analysis...
[INFO] Analysis done.
[INFO] Constructing Html documentation
[WARNING] Could not find html intro file file: miredot.htmlintro.html
[INFO] MireDot: Completed
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 18.403 s
[INFO] Finished at: 2016-11-30T09:28:35-06:00
[INFO] Final Memory: 51M/465M
[INFO] ------------------------------------------------------------------------
When I deploy the war file Atlas doesn’t work and inside the WebAPI folder I just have 2 other folders META-INF and WEB_INF.
So… how can I trace back what I am doing wrong?
Also… more like another question but I will drop it here anyways since is related to the WebAPI, I just saw the tutorial videos from the Symposium, which is amazing, thank you to all for that… and in the OHDSI in a Box there are 2 different Databases, one for CDM and one for WebAPI, is this last one something I need, can it be the same where I have the CDM? Any information about this “extra” DB will be appreciated.
Thanks again.
EV