Deploy spring boot war to openshift online - spring

I followed this link to install simple spring boot project into openshift online. However, I couldn't get it working.
http://www.sothawo.com/2015/09/deploying-a-spring-boot-application-running-with-java8-on-openshift2/
Here is my project structure and the exception i'm seeing when I do git push
git push
Counting objects: 14, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (9/9), done.
Writing objects: 100% (14/14), 1.82 KiB | 0 bytes/s, done.
Total 14 (delta 1), reused 0 (delta 0)
remote: Stopping DIY cartridge
remote: CLIENT_RESULT: Application is already stopped
remote: Repairing links for 1 deployments
remote: Building git ref 'master', commit 8e5a152
remote: [ERROR] Error executing Maven.
remote: [ERROR] The specified user settings file does not exist: /var/lib/openshift/580abfc589f5cf2be2000061/app-root/runtime/repo/.openshift/settings.xml
remote: An error occurred executing 'gear postreceive' (exit code: 1)
remote: Error message: CLIENT_ERROR: Failed to execute action hook 'build' for 580abfc589f5cf2be2000061 application pointingpoker
remote:
remote: For more details about the problem, try running the command again with the '--trace' option.
UPDATE
Yes, target folder is red in color. I have modified the build script to below and I'm seeing this exception deploying to openshift. I thought the build script has been modified to point to java8 but I still its using 1.7
# call our own mvn script with the right settings
cd $OPENSHIFT_REPO_DIR
mvn package -X .openshift/settings.xml -DskipTests=true
Console Exceptions
git push
Counting objects: 5, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 509 bytes | 0 bytes/s, done.
Total 5 (delta 3), reused 0 (delta 0)
remote: Stopping DIY cartridge
remote: CLIENT_RESULT: Application is already stopped
remote: Repairing links for 1 deployments
remote: Building git ref 'master', commit f5f3e76
remote: Apache Maven 3.0.4 (r1232336; 2012-12-18 14:36:37-0500)
remote: Maven home: /usr/share/java/apache-maven-3.0.4
remote: Java version: 1.7.0_111, vendor: Oracle Corporation
remote: Java home: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.111/jre
remote: Default locale: en_US, platform encoding: ANSI_X3.4-1968
remote: OS name: "linux", version: "2.6.32-642.4.2.el6.x86_64", arch: "i386", family: "unix"
remote: [INFO] Error stacktraces are turned on.
remote: [DEBUG] Reading global settings from /usr/share/java/apache-maven-3.0.4/conf/settings.xml
remote: [DEBUG] Reading user settings from /var/lib/openshift/580abfc589f5cf2be2000061/.m2/settings.xml
remote: [DEBUG] Using local repository at /var/lib/openshift/580abfc589f5cf2be2000061/.m2/repository
remote: [ERROR] Could not create local repository at /var/lib/openshift/580abfc589f5cf2be2000061/.m2/repository -> [Help 1]
remote: org.apache.maven.repository.LocalRepositoryNotAccessibleException: Could not create local repository at /var/lib/openshift/580abfc589f5cf2be2000061/.m2/repository
remote: at org.apache.maven.DefaultMaven.validateLocalRepository(DefaultMaven.java:504)
remote: at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:196)
remote: at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
remote: at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
remote: at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
remote: at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
remote: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
remote: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
remote: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
remote: at java.lang.reflect.Method.invoke(Method.java:606)
remote: at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
remote: at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
remote: at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
remote: at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
remote: [ERROR]
remote: [ERROR]
remote: [ERROR] For more information about the errors and possible solutions, please read the following articles:
remote: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/LocalRepositoryNotAccessibleException
remote: An error occurred executing 'gear postreceive' (exit code: 1)
remote: Error message: CLIENT_ERROR: Failed to execute action hook 'build' for 580abfc589f5cf2be2000061 application pointingpoker
remote:
remote: For more details about the problem, try running the command again with the '--trace' option.

According to the screen shot of your file structure, you have a leading . (dot) before settings.xml. It would appear that that may be causing your issue

Related

Micronaut Deployed in Heroku facing error?

I got success message in heroku console but my program is not running
Github code : https://github.com/boxercool/demo
[INFO] Total time: 9.780 s
[INFO] Finished at: 2020-12-09T05:54:33Z
[INFO] ------------------------------------------------------------------------
-----> Discovering process types
Procfile declares types -> web
-----> Compressing...
Done: 63.5M
-----> Launching...
Released v5
https://poorvikademo.herokuapp.com/ deployed to Heroku

Error while deploying Spring boot app to Heroku

I have an issue while deploying my Spring boot app to Heroku.
I am trying to deploy it as a java app instead of building and deploying a jar file.
I have used the free Postgresql in Heroku.
The error while pushing the app to Heroku master is:
remote: [INFO] Changes detected - recompiling the module!
remote: [INFO] Compiling 18 source files to /tmp/build_79201803/target/classes
remote: [INFO] -------------------------------------------------------------
remote: [ERROR] COMPILATION ERROR :
remote: [INFO] -------------------------------------------------------------
remote: [ERROR] /tmp/build_79201803/src/main/java/com/pukitbanta/springblog/model/post.java:[15,8] class Post is public, should be declared in a file named Post.java
remote: [ERROR] /tmp/build_79201803/src/main/java/com/pukitbanta/springblog/model/user.java:[12,8] class User is public, should be declared in a file named User.java
remote: [INFO] 2 errors
remote: [INFO] -------------------------------------------------------------
remote: [INFO] ------------------------------------------------------------------------
remote: [INFO] BUILD FAILURE
remote: [INFO] ------------------------------------------------------------------------
remote: [INFO] Total time: 16.300 s
remote: [INFO] Finished at: 2020-08-11T11:09:38Z
remote: [INFO] ------------------------------------------------------------------------
remote: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project springblog: Compilation failure: Compilation failure:
remote: [ERROR] /tmp/build_79201803/src/main/java/com/pukitbanta/springblog/model/post.java:[15,8] class Post is public, should be declared in a file named Post.java
remote: [ERROR] /tmp/build_79201803/src/main/java/com/pukitbanta/springblog/model/user.java:[12,8] class User is public, should be declared in a file named User.java
remote: [ERROR] -> [Help 1]
remote: [ERROR]
remote: [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
remote: [ERROR] Re-run Maven using the -X switch to enable full debug logging.
remote: [ERROR]
remote: [ERROR] For more information about the errors and possible solutions, please read the following articles:
remote: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
remote:
remote: ! ERROR: Failed to build app with Maven
remote: We're sorry this build is failing! If you can't find the issue in application code,
remote: please submit a ticket so we can help: https://help.heroku.com/
remote:
remote: ! Push rejected, failed to compile Java app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
The error here specifies that my User and Post models file name starts with lowercase letters.
But my file structure is:
I do not think the error is in the Models, and I am not able to find out the issue.
I solved mine by changing java version 11 to 8(In pom.xml).
From:
<properties>
<java.version>11</java.version>
</properties>
To:
<properties>
<java.version>8</java.version>
</properties>
In your screenshot, the file name starts with a capital letter, but
remote: [ERROR] /tmp/build_79201803/src/main/java/com/pukitbanta/springblog/model/post.java:[15,8] class Post is public, should be declared in a file named Post.java
remote: [ERROR] /tmp/build_79201803/src/main/java/com/pukitbanta/springblog/model/user.java:[12,8] class User is public, should be declared in a file named User.java
the file name displayed in the error message is in lower case.
Please check again for lowercase letters. If they are in lowercase, please correct them as follows:
Rename post.java to Post.java
Rename user.java to User.java
If it doesn't make sense to rename those files, it's probably a problem with your Git settings.
see: https://stackoverflow.com/a/46670520/1979953
It WAS a case-sensitive issue. The problem is that I didn't know that GIT is not looking for case-sensitive changes in the file.
You can check your git configuration:
$ git config -l | grep ignorecase
The core.ignorecase is the one we need this time.
If core.ignorecase is true, Git will ignore case differences; if false, Git will recognize the difference. So you need to set false.
Then let Git recognize the changes and deploy them to Heroku again.
To update the core.ignorecase to either true or false run:
git config core.ignorecase true
or
git config core.ignorecase false.
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
Put this in the pom.xml.
git add .
git commit -m "Pom Changed"
git push heroku master

Error for deploying to heroku: illegal character: '\ufeff'

All.
I am testing whether it would be useful to develop a web application in Heroku. So, I'm trying to follow the guide that is "Deploying Spring Boot Applications to Heroku".(link: https://devcenter.heroku.com/articles/deploying-spring-boot-apps-to-heroku)
I can follow the guide to check the page returning hello world, but I'm having a problem connecting postgresql. When I try to deploy DatabaseConfig.java file to git, it fails with the following log in vscode. How can I solve it?
$ git push heroku master
Enumerating objects: 24, done.
Counting objects: 100% (24/24), done.
Delta compression using up to 12 threads
Compressing objects: 100% (12/12), done.
Writing objects: 100% (15/15), 1.36 KiB | 463.00 KiB/s, done.
Total 15 (delta 3), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Java app detected
remote: -----> Installing JDK 1.8... done
remote: -----> Executing Maven
remote: $ ./mvnw -DskipTests clean dependency:list install
remote: [INFO] Scanning for projects...
remote: [INFO]
remote: [INFO] -------------------------< com.daview:daview >--------------------------
remote: [INFO] Building demo 0.0.1-SNAPSHOT
remote: [INFO] --------------------------------[ jar ]---------------------------------
remote: [INFO]
remote: [INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) # daview ---
remote: [INFO]
remote: [INFO] --- maven-dependency-plugin:3.1.2:list (default-cli) # daview ---
remote: [INFO]
remote: [INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) # daview ---
remote: [INFO] Using 'UTF-8' encoding to copy filtered resources.
remote: [INFO] Copying 1 resource
remote: [INFO] Copying 0 resource
remote: [INFO]
remote: [INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) # daview ---
remote: [INFO] Changes detected - recompiling the module!
remote: [INFO] Compiling 2 source files to /tmp/build_d5a7a4a08b5f6a2624f3313e54f0a54a/target/classes
remote: [INFO] -------------------------------------------------------------
remote: [ERROR] COMPILATION ERROR :
remote: [INFO] -------------------------------------------------------------
remote: [ERROR] /tmp/build_d5a7a4a08b5f6a2624f3313e54f0a54a/src/main/java/com/daview/daview/DatabaseConfig.java:[1,1] illegal character: '\ufeff'
remote: [ERROR] /tmp/build_d5a7a4a08b5f6a2624f3313e54f0a54a/src/main/java/com/daview/daview/DatabaseConfig.java:[1,10] class, interface, or enum expected
remote: [INFO] 2 errors
remote: [INFO] -------------------------------------------------------------
remote: [INFO] ------------------------------------------------------------------------
remote: [INFO] BUILD FAILURE
remote: [INFO] ------------------------------------------------------------------------
remote: [INFO] Total time: 4.196 s
remote: [INFO] Finished at: 2020-05-05T17:33:46Z
remote: [INFO] ------------------------------------------------------------------------
remote: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project daview: Compilation failure: Compilation failure:
remote: [ERROR] /tmp/build_d5a7a4a08b5f6a2624f3313e54f0a54a/src/main/java/com/daview/daview/DatabaseConfig.java:[1,1] illegal character: '\ufeff'
remote: [ERROR] /tmp/build_d5a7a4a08b5f6a2624f3313e54f0a54a/src/main/java/com/daview/daview/DatabaseConfig.java:[1,10] class, interface, or enum expected
remote: [ERROR] -> [Help 1]
remote: [ERROR]
remote: [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
remote: [ERROR] Re-run Maven using the -X switch to enable full debug logging.
remote: [ERROR]
remote: [ERROR] For more information about the errors and possible solutions, please read the following articles:
remote: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
remote:
remote: ! ERROR: Failed to build app with Maven
remote: We're sorry this build is failing! If you can't find the issue in application code,
remote: please submit a ticket so we can help: https://help.heroku.com/
remote:
remote: ! Push rejected, failed to compile Java app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to daview.
remote:
To https://git.heroku.com/daview.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/daview.git'
I found the solution!
It is the problem with encoding!
I can find the character which is '\ufeff' by changing the encoding type like EUC-KR not UTF. So I fixed the code correctly and saved back to utf-8.

Deploying Spring Boot Using Vue.js to Heroku builds successfully, but doesn't start

I have a Spring Boot application with a Vue.js frontend integration. I am trying to deploy this to Heroku.
The application builds successfully on Heroku, but I see no indication that Heroku even tries to start up the application.
Below are the logs for when I deploy using git push <my-heroku-branch>.
➜ MobstersREST git:(master) ✗ git push heroku-staging
Counting objects: 17, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (12/12), done.
Writing objects: 100% (17/17), 1.45 KiB | 1.45 MiB/s, done.
Total 17 (delta 6), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Java app detected
remote: -----> Installing JDK 1.8... done
remote: -----> Installing Maven 3.3.9... done
remote: -----> Executing: mvn -DskipTests clean dependency:list install
remote: [INFO] Scanning for projects...
remote: [INFO] ------------------------------------------------------------------------
remote: [INFO] Reactor Build Order:
remote: [INFO]
remote: [INFO] mobsters-bot
remote: [INFO] frontend
remote: [INFO] backend
remote: [INFO]
remote: [INFO] ------------------------------------------------------------------------
remote: [INFO] Building mobsters-bot 0.0.1-SNAPSHOT
remote: [INFO] ------------------------------------------------------------------------
remote: [INFO]
remote: [INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) # mobsters-bot ---
remote: [INFO]
remote: [INFO] --- maven-dependency-plugin:3.0.2:list (default-cli) # mobsters-bot ---
remote: [INFO]
remote: [INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (pre-unit-test) # mobsters-bot ---
remote: [INFO] argLine set to -javaagent:/app/tmp/cache/.m2/repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/target/jacoco.exec
remote: [INFO]
remote: [INFO] --- jacoco-maven-plugin:0.7.9:report (post-unit-test) # mobsters-bot ---
remote: [INFO] Skipping JaCoCo execution due to missing execution data file.
remote: [INFO]
remote: [INFO] --- maven-install-plugin:2.5.2:install (default-install) # mobsters-bot ---
remote: [INFO] Installing /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/pom.xml to /app/tmp/cache/.m2/repository/com/adrian/mobsters-bot/0.0.1-SNAPSHOT/mobsters-bot-0.0.1-SNAPSHOT.pom
remote: [INFO]
remote: [INFO] ------------------------------------------------------------------------
remote: [INFO] Building frontend 0.0.1-SNAPSHOT
remote: [INFO] ------------------------------------------------------------------------
remote: [INFO]
remote: [INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) # frontend ---
remote: [INFO] Deleting /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/frontend/target
remote: [INFO]
remote: [INFO] --- maven-dependency-plugin:3.0.2:list (default-cli) # frontend ---
remote: [INFO]
remote: [INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (pre-unit-test) # frontend ---
remote: [INFO] argLine set to -javaagent:/app/tmp/cache/.m2/repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/frontend/target/jacoco.exec
remote: [INFO]
remote: [INFO] --- frontend-maven-plugin:1.6:install-node-and-npm (install node and npm) # frontend ---
remote: [INFO] Installing node version v9.11.1
remote: [INFO] Unpacking /app/tmp/cache/.m2/repository/com/github/eirslett/node/9.11.1/node-9.11.1-linux-x64.tar.gz into /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/frontend/node/tmp
remote: [INFO] Copying node binary from /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/frontend/node/tmp/node-v9.11.1-linux-x64/bin/node to /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/frontend/node/node
remote: [INFO] Extracting NPM
remote: [INFO] Installed node locally.
remote: [INFO]
remote: [INFO] --- frontend-maven-plugin:1.6:npm (npm install) # frontend ---
remote: [INFO] Running 'npm install' in /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/frontend
remote: [WARNING] npm WARN notice [SECURITY] ws has 1 high vulnerability. Go here for more details: https://nodesecurity.io/advisories?search=ws&version=1.1.2 - Run `npm i npm#latest -g` to upgrade your npm version, and then `npm audit` to get more info.
remote: [WARNING] npm WARN notice [SECURITY] mime has 1 moderate vulnerability. Go here for more details: https://nodesecurity.io/advisories?search=mime&version=1.3.6 - Run `npm i npm#latest -g` to upgrade your npm version, and then `npm audit` to get more info.
remote: [WARNING] npm WARN notice [SECURITY] debug has 1 low vulnerability. Go here for more details: https://nodesecurity.io/advisories?search=debug&version=2.3.3 - Run `npm i npm#latest -g` to upgrade your npm version, and then `npm audit` to get more info.
remote: [WARNING] npm WARN notice [SECURITY] debug has 1 low vulnerability. Go here for more details: https://nodesecurity.io/advisories?search=debug&version=2.2.0 - Run `npm i npm#latest -g` to upgrade your npm version, and then `npm audit` to get more info.
remote: [WARNING] npm WARN notice [SECURITY] debug has 1 low vulnerability. Go here for more details: https://nodesecurity.io/advisories?search=debug&version=2.3.3 - Run `npm i npm#latest -g` to upgrade your npm version, and then `npm audit` to get more info.
remote: [WARNING] npm WARN notice [SECURITY] debug has 1 low vulnerability. Go here for more details: https://nodesecurity.io/advisories?search=debug&version=2.3.3 - Run `npm i npm#latest -g` to upgrade your npm version, and then `npm audit` to get more info.
remote: [WARNING] npm WARN notice [SECURITY] parsejson has 1 high vulnerability. Go here for more details: https://nodesecurity.io/advisories?search=parsejson&version=0.0.3 - Run `npm i npm#latest -g` to upgrade your npm version, and then `npm audit` to get more info.
remote: [WARNING] npm WARN notice [SECURITY] debug has 1 low vulnerability. Go here for more details: https://nodesecurity.io/advisories?search=debug&version=2.6.8 - Run `npm i npm#latest -g` to upgrade your npm version, and then `npm audit` to get more info.
remote: [WARNING] npm WARN notice [SECURITY] https-proxy-agent has 1 high vulnerability. Go here for more details: https://nodesecurity.io/advisories?search=https-proxy-agent&version=1.0.0 - Run `npm i npm#latest -g` to upgrade your npm version, and then `npm audit` to get more info.
remote: [WARNING] npm WARN notice [SECURITY] http-proxy-agent has 1 high vulnerability. Go here for more details: https://nodesecurity.io/advisories?search=http-proxy-agent&version=1.0.0 - Run `npm i npm#latest -g` to upgrade your npm version, and then `npm audit` to get more info.
remote: [WARNING] npm WARN notice [SECURITY] macaddress has 1 critical vulnerability. Go here for more details: https://nodesecurity.io/advisories?search=macaddress&version=0.2.8 - Run `npm i npm#latest -g` to upgrade your npm version, and then `npm audit` to get more info.
remote: [WARNING] npm WARN notice [SECURITY] lodash has 1 low vulnerability. Go here for more details: https://nodesecurity.io/advisories?search=lodash&version=3.10.1 - Run `npm i npm#latest -g` to upgrade your npm version, and then `npm audit` to get more info.
remote: [WARNING] npm WARN notice [SECURITY] growl has 1 critical vulnerability. Go here for more details: https://nodesecurity.io/advisories?search=growl&version=1.9.2 - Run `npm i npm#latest -g` to upgrade your npm version, and then `npm audit` to get more info.
remote: [INFO]
remote: [INFO] > phantomjs-prebuilt#2.1.16 install /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/frontend/node_modules/phantomjs-prebuilt
remote: [INFO] > node install.js
remote: [INFO]
remote: [INFO] PhantomJS not found on PATH
remote: [INFO] Downloading https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-linux-x86_64.tar.bz2
remote: [INFO] Saving to /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
remote: [INFO] Receiving...
remote: [INFO]
remote: [INFO] Received 22866K total.
remote: [INFO] Extracting tar contents (via spawned process)
remote: [INFO] Removing /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/frontend/node_modules/phantomjs-prebuilt/lib/phantom
remote: [INFO] Copying extracted folder /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2-extract-1526755629983/phantomjs-2.1.1-linux-x86_64 -> /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/frontend/node_modules/phantomjs-prebuilt/lib/phantom
remote: [INFO] Writing location.js file
remote: [INFO] Done. Phantomjs binary available at /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/frontend/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs
remote: [INFO]
remote: [INFO] > chromedriver#2.38.3 install /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/frontend/node_modules/chromedriver
remote: [INFO] > node install.js
remote: [INFO]
remote: [INFO] Downloading https://chromedriver.storage.googleapis.com/2.38/chromedriver_linux64.zip
remote: [INFO] Saving to /tmp/chromedriver/chromedriver_linux64.zip
remote: [INFO] Received 781K...
remote: [INFO] Received 1568K...
remote: [INFO] Received 2352K...
remote: [INFO] Received 3136K...
remote: [INFO] Received 3684K total.
remote: [INFO] Extracting zip contents
remote: [INFO] Copying to target path /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/frontend/node_modules/chromedriver/lib/chromedriver
remote: [INFO] Fixing file permissions
remote: [INFO] Done. ChromeDriver binary available at /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/frontend/node_modules/chromedriver/lib/chromedriver/chromedriver
remote: [INFO]
remote: [INFO] > uglifyjs-webpack-plugin#0.4.6 postinstall /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/frontend/node_modules/webpack/node_modules/uglifyjs-webpack-plugin
remote: [INFO] > node lib/post_install.js
remote: [INFO]
remote: [INFO]
remote: [INFO] > sinon#4.5.0 postinstall /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/frontend/node_modules/sinon
remote: [INFO] > node scripts/support-sinon.js
remote: [INFO]
remote: [INFO] Have some ❤️ for Sinon? You can support the project via Open Collective:
remote: [INFO] > https://opencollective.com/sinon/donate
remote: [INFO]
remote: [WARNING] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.4 (node_modules/fsevents):
remote: [WARNING] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
remote: [ERROR]
remote: [INFO] added 1515 packages in 32.916s
remote: [INFO]
remote: [INFO] --- frontend-maven-plugin:1.6:npm (npm run build) # frontend ---
remote: [INFO] Running 'npm run build' in /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/frontend
remote: [INFO]
remote: [INFO] > frontend#1.0.0 build /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/frontend
remote: [INFO] > node build/build.js
remote: [INFO]
remote: [INFO] Hash: 5a4a6c797424a405ae0d
remote: [INFO] Version: webpack 3.12.0
remote: [INFO] Time: 9170ms
remote: [INFO] Asset Size Chunks Chunk Names
remote: [INFO] static/js/vendor.c397231b51d1afea579a.js 126 kB 0 [emitted] vendor
remote: [INFO] static/js/app.ada8a6a8238113fabbbb.js 10.5 kB 1 [emitted] app
remote: [INFO] static/js/manifest.2ae2e69a05c33dfc65f8.js 857 bytes 2 [emitted] manifest
remote: [INFO] static/css/app.509616311f4aa1438479df89f0d28911.css 432 bytes 1 [emitted] app
remote: [INFO] static/css/app.509616311f4aa1438479df89f0d28911.css.map 828 bytes [emitted]
remote: [INFO] static/js/vendor.c397231b51d1afea579a.js.map 620 kB 0 [emitted] vendor
remote: [INFO] static/js/app.ada8a6a8238113fabbbb.js.map 19.1 kB 1 [emitted] app
remote: [INFO] static/js/manifest.2ae2e69a05c33dfc65f8.js.map 4.97 kB 2 [emitted] manifest
remote: [INFO] index.html 510 bytes [emitted]
remote: [INFO]
remote: [INFO] WARNING in ./src/components/HelloWorld.vue
remote: [INFO]
remote: [INFO] ✘ http://eslint.org/docs/rules/indent Expected indentation of 0 spaces but found 2
remote: [INFO] src/components/HelloWorld.vue:9:1
remote: [INFO] import {AXIOS} from './http-common'
remote: [INFO] ^
remote: [INFO]
remote: [INFO] ✘ http://eslint.org/docs/rules/indent Expected indentation of 0 spaces but found 2
remote: [INFO] src/components/HelloWorld.vue:11:1
remote: [INFO] export default {
remote: [INFO] ^
remote: [INFO]
remote: [INFO] ✘ http://eslint.org/docs/rules/indent Expected indentation of 2 spaces but found 4
remote: [INFO] src/components/HelloWorld.vue:12:1
remote: [INFO] name: 'HelloWorld',
remote: [INFO] ^
remote: [INFO]
remote: [INFO] ✘ http://eslint.org/docs/rules/indent Expected indentation of 2 spaces but found 4
remote: [INFO] src/components/HelloWorld.vue:13:1
remote: [INFO] data() {
remote: [INFO] ^
remote: [INFO]
remote: [INFO] ✘ http://eslint.org/docs/rules/space-before-function-paren Missing space before function parentheses
remote: [INFO] src/components/HelloWorld.vue:13:9
remote: [INFO] data() {
remote: [INFO] ^
remote: [INFO]
remote: [INFO] ✘ http://eslint.org/docs/rules/indent Expected indentation of 4 spaces but found 6
remote: [INFO] src/components/HelloWorld.vue:14:1
remote: [INFO] return {
remote: [INFO] ^
remote: [INFO]
remote: [INFO] ✘ http://eslint.org/docs/rules/indent Expected indentation of 6 spaces but found 8
remote: [INFO] src/components/HelloWorld.vue:15:1
remote: [INFO] response: [],
remote: [INFO] ^
remote: [INFO]
remote: [INFO] ✘ http://eslint.org/docs/rules/indent Expected indentation of 6 spaces but found 8
remote: [INFO] src/components/HelloWorld.vue:16:1
remote: [INFO] errors: []
remote: [INFO] ^
remote: [INFO]
remote: [INFO] ✘ http://eslint.org/docs/rules/indent Expected indentation of 4 spaces but found 6
remote: [INFO] src/components/HelloWorld.vue:17:1
remote: [INFO] }
remote: [INFO] ^
remote: [INFO]
remote: [INFO] ✘ http://eslint.org/docs/rules/indent Expected indentation of 2 spaces but found 4
remote: [INFO] src/components/HelloWorld.vue:18:1
remote: [INFO] },
remote: [INFO] ^
remote: [INFO]
remote: [INFO] ✘ http://eslint.org/docs/rules/indent Expected indentation of 2 spaces but found 4
remote: [INFO] src/components/HelloWorld.vue:20:1
remote: [INFO] methods: {
remote: [INFO] ^
remote: [INFO]
remote: [INFO] ✘ http://eslint.org/docs/rules/indent Expected indentation of 4 spaces but found 6
remote: [INFO] src/components/HelloWorld.vue:21:1
remote: [INFO] callRestService() {
remote: [INFO] ^
remote: [INFO]
remote: [INFO] ✘ http://eslint.org/docs/rules/space-before-function-paren Missing space before function parentheses
remote: [INFO] src/components/HelloWorld.vue:21:22
remote: [INFO] callRestService() {
remote: [INFO] ^
remote: [INFO]
remote: [INFO] ✘ http://eslint.org/docs/rules/indent Expected indentation of 6 spaces but found 8
remote: [INFO] src/components/HelloWorld.vue:22:1
remote: [INFO] AXIOS.get(`mobsters`)
remote: [INFO] ^
remote: [INFO]
remote: [INFO] ✘ http://eslint.org/docs/rules/indent Expected indentation of 4 spaces but found 6
remote: [INFO] src/components/HelloWorld.vue:30:1
remote: [INFO] }
remote: [INFO] ^
remote: [INFO]
remote: [INFO] ✘ http://eslint.org/docs/rules/indent Expected indentation of 2 spaces but found 4
remote: [INFO] src/components/HelloWorld.vue:31:1
remote: [INFO] }
remote: [INFO] ^
remote: [INFO]
remote: [INFO] ✘ http://eslint.org/docs/rules/indent Expected indentation of 0 spaces but found 2
remote: [INFO] src/components/HelloWorld.vue:32:1
remote: [INFO] }
remote: [INFO] ^
remote: [INFO]
remote: [INFO]
remote: [INFO] ✘ 17 problems (17 errors, 0 warnings)
remote: [INFO]
remote: [INFO]
remote: [INFO] Errors:
remote: [INFO] 15 http://eslint.org/docs/rules/indent
remote: [INFO] 2 http://eslint.org/docs/rules/space-before-function-paren
remote: [INFO] # ./src/router/index.js 3:0-49
remote: [INFO] # ./src/main.js
remote: [INFO]
remote: [INFO] Build complete.
remote: [INFO]
remote: [INFO] Tip: built files are meant to be served over an HTTP server.
remote: [INFO] Opening index.html over file:// won't work.
remote: [INFO]
remote: [INFO]
remote: [INFO] --- maven-resources-plugin:3.0.1:resources (default-resources) # frontend ---
remote: [INFO] Using 'UTF-8' encoding to copy filtered resources.
remote: [INFO] skip non existing resourceDirectory /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/frontend/src/main/resources
remote: [INFO] skip non existing resourceDirectory /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/frontend/src/main/resources
remote: [INFO]
remote: [INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) # frontend ---
remote: [INFO] No sources to compile
remote: [INFO]
remote: [INFO] --- maven-resources-plugin:3.0.1:testResources (default-testResources) # frontend ---
remote: [INFO] Using 'UTF-8' encoding to copy filtered resources.
remote: [INFO] skip non existing resourceDirectory /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/frontend/src/test/resources
remote: [INFO]
remote: [INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) # frontend ---
remote: [INFO] No sources to compile
remote: [INFO]
remote: [INFO] --- maven-surefire-plugin:2.21.0:test (default-test) # frontend ---
remote: [INFO] Tests are skipped.
remote: [INFO]
remote: [INFO] --- jacoco-maven-plugin:0.7.9:report (post-unit-test) # frontend ---
remote: [INFO] Skipping JaCoCo execution due to missing execution data file.
remote: [INFO]
remote: [INFO] --- maven-jar-plugin:3.0.2:jar (default-jar) # frontend ---
remote: [WARNING] JAR will be empty - no content was marked for inclusion!
remote: [INFO] Building jar: /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/frontend/target/frontend-0.0.1-SNAPSHOT.jar
remote: [INFO]
remote: [INFO] --- maven-install-plugin:2.5.2:install (default-install) # frontend ---
remote: [INFO] Installing /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/frontend/target/frontend-0.0.1-SNAPSHOT.jar to /app/tmp/cache/.m2/repository/com/adrian/frontend/0.0.1-SNAPSHOT/frontend-0.0.1-SNAPSHOT.jar
remote: [INFO] Installing /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/frontend/pom.xml to /app/tmp/cache/.m2/repository/com/adrian/frontend/0.0.1-SNAPSHOT/frontend-0.0.1-SNAPSHOT.pom
remote: [INFO]
remote: [INFO] ------------------------------------------------------------------------
remote: [INFO] Building backend 0.0.1-SNAPSHOT
remote: [INFO] ------------------------------------------------------------------------
remote: [INFO]
remote: [INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) # backend ---
remote: [INFO]
remote: [INFO] --- maven-dependency-plugin:3.0.2:list (default-cli) # backend ---
remote: [INFO]
remote: [INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (pre-unit-test) # backend ---
remote: [INFO] argLine set to -javaagent:/app/tmp/cache/.m2/repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/backend/target/jacoco.exec
remote: [INFO]
remote: [INFO] --- maven-resources-plugin:3.0.1:copy-resources (copy Vue.js frontend content) # backend ---
remote: [INFO] Using 'UTF-8' encoding to copy filtered resources.
remote: [INFO] Copying 9 resources
remote: [INFO]
remote: [INFO] --- maven-resources-plugin:3.0.1:resources (default-resources) # backend ---
remote: [INFO] Using 'UTF-8' encoding to copy filtered resources.
remote: [INFO] Copying 0 resource
remote: [INFO] Copying 12 resources
remote: [INFO]
remote: [INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) # backend ---
remote: [INFO] Changes detected - recompiling the module!
remote: [INFO] Compiling 59 source files to /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/backend/target/classes
remote: [INFO]
remote: [INFO] --- maven-resources-plugin:3.0.1:testResources (default-testResources) # backend ---
remote: [INFO] Using 'UTF-8' encoding to copy filtered resources.
remote: [INFO] skip non existing resourceDirectory /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/backend/src/test/resources
remote: [INFO]
remote: [INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) # backend ---
remote: [INFO] Changes detected - recompiling the module!
remote: [INFO] Compiling 6 source files to /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/backend/target/test-classes
remote: [INFO] /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/backend/src/test/java/com/adrian/mobstersrest/mobsters/services/MobsterServiceImplTest.java: Some input files use unchecked or unsafe operations.
remote: [INFO] /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/backend/src/test/java/com/adrian/mobstersrest/mobsters/services/MobsterServiceImplTest.java: Recompile with -Xlint:unchecked for details.
remote: [INFO]
remote: [INFO] --- maven-surefire-plugin:2.21.0:test (default-test) # backend ---
remote: [INFO] Tests are skipped.
remote: [INFO]
remote: [INFO] --- jacoco-maven-plugin:0.7.9:report (post-unit-test) # backend ---
remote: [INFO] Skipping JaCoCo execution due to missing execution data file.
remote: [INFO]
remote: [INFO] --- maven-jar-plugin:3.0.2:jar (default-jar) # backend ---
remote: [INFO] Building jar: /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/backend/target/backend-0.0.1-SNAPSHOT.jar
remote: [INFO]
remote: [INFO] --- spring-boot-maven-plugin:2.0.1.RELEASE:repackage (default) # backend ---
remote: [INFO]
remote: [INFO] --- maven-install-plugin:2.5.2:install (default-install) # backend ---
remote: [INFO] Installing /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/backend/target/backend-0.0.1-SNAPSHOT.jar to /app/tmp/cache/.m2/repository/com/adrian/backend/0.0.1-SNAPSHOT/backend-0.0.1-SNAPSHOT.jar
remote: [INFO] Installing /tmp/build_03ad6ae5935b0f49e57a32488d6a1f6d/backend/pom.xml to /app/tmp/cache/.m2/repository/com/adrian/backend/0.0.1-SNAPSHOT/backend-0.0.1-SNAPSHOT.pom
remote: [INFO] ------------------------------------------------------------------------
remote: [INFO] Reactor Summary:
remote: [INFO]
remote: [INFO] mobsters-bot ....................................... SUCCESS [ 1.771 s]
remote: [INFO] frontend ........................................... SUCCESS [ 50.362 s]
remote: [INFO] backend ............................................ SUCCESS [ 7.348 s]
remote: [INFO] ------------------------------------------------------------------------
remote: [INFO] BUILD SUCCESS
remote: [INFO] ------------------------------------------------------------------------
remote: [INFO] Total time: 01:00 min
remote: [INFO] Finished at: 2018-05-19T18:47:38+00:00
remote: [INFO] Final Memory: 56M/418M
remote: [INFO] ------------------------------------------------------------------------
remote: -----> Discovering process types
remote: Procfile declares types -> (none)
remote:
remote: -----> Compressing...
remote: Done: 197.5M
remote: -----> Launching...
remote: Released v5
remote: https://shrouded-mountain-23800.herokuapp.com/ deployed to Heroku
remote:
remote: Verifying deploy... done.
To https://git.heroku.com/shrouded-mountain-23800.git
795913a..a8e3547 master -> master
I then run heroku logs --tail:
➜ MobstersREST git:(master) ✗ heroku logs --tail
(node:12986) [MODULE_NOT_FOUND] Error Plugin: #heroku-cli/plugin-build: Cannot find module 'globby'
module: #oclif/config#1.6.18
task: not loading commands, globby not found
plugin: #heroku-cli/plugin-build
root: /usr/local/Cellar/heroku/7.0.40/libexec/lib/node_modules/heroku/node_modules/#heroku-cli/plugin-build
› Warning: heroku update available from 7.0.40 to 7.0.47
My full project setup can be found here.
I am following the tutorial located here. The Heroku section is a bit vague.
The issue was that my project structure was not supported by the default Procfile configuration that was looking in target/my-jar-file.jar, and needed to be changed for my unusual project structure: backend/target/my-jar-file.jar.
web: java -jar backend/target/my-jar-file.jar in a Procfile at the root of my application.

Shows Application Error after successful deploy of Spring Web MVC project in Heroku

Server log while deploying code
remote: [INFO] -----------------------------------------------------------
remote: [INFO] BUILD SUCCESS
remote: [INFO] -----------------------------------------------------------
remote: [INFO] Total time: 6.068 s
remote: [INFO] Finished at: 2016-10-04T18:35:42+00:00
remote: [INFO] Final Memory: 21M/164M
remote: [INFO] -----------------------------------------------------------
remote: -----> Discovering process types
remote: Procfile declares types -> (none)
remote:
remote: -----> Compressing...
remote: Done: 60.5M
remote: -----> Launching...
remote: Released v4
remote: https://sometext.herokuapp.com/ deployed to Heroku
remote:
remote: Verifying deploy... done.
To https://git.heroku.com/sometext.git
7839c97..2b14519 master -> master
Result of page request after hitting the url in the browser.

Resources