Skip to Content

Application programming model: cannot run Java app after cloning a repository

Hi,

I'm developping a simple full-stack app using the Application Programming Model. The project runs fine in my Web IDE workspace. However when I clone the project in a different workspace, I can't run the Java app anymore. The db module is built and the HDI container is created with the tables and the data but the Java app doesn't work. It's a simple OData v2 service similar to the bookshop sample app.

Here's what I have in the logs:

[INFO] ------------------------------------------------------------------------
[INFO] Skipping cloud-apm-cointracker-java-srv
[INFO] This project has been banned from the build due to previous failures.
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.528 s
[INFO] Finished at: 2018-11-22T15:30:05+00:00
[INFO] Final Memory: 21M/51M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:3.0.0:war (generate_app_descriptor) on project cloud-apm-cointracker-java-srv: Execution generate_app_descriptor of goal org.apache.maven.plugins:maven-war-plugin:3.0.0:war failed: basedir /home/vcap/app/.java-buildpack/tomcat/temp/builder/sap.java.maven/builds/build-1419424130427650206/cloud-apm-cointracker-java/srv/src/main/java does not exist -> [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/PluginExecutionException

Thanks,

Pierre

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Nov 22, 2018 at 06:59 PM

    Hi Pierre,

    The error message is telling that maven's goal that builds the WAR file is trying to build it in the following path:

    /home/vcap/app/.java-buildpack/tomcat/temp/builder/sap.java.maven/builds/build-1419424130427650206/cloud-apm-cointracker-java/srv/src/main/java

    But this path doesn't exist.

    I am assuming your MTA project to be named 'cloud-apm-cointracker'. Underneath this project, your should see each module (db, srv, etc.). However, the error message is stating cloud-apm-cointracker-java-srv - which doesn't make much sense, since srv is not a folder and it is not created this wat my the project template.

    Could you please check that after importing the project into another workspace it isn't missing any files or the folder structure is not being renamed?

    BTW: How did you share the project with WebIDE Full-Stack? Did you use Git or exported the project from the original workspace and then imported the zip file into another workspace?

    Are you sure that all files were committed and pushed into the remote repository?

    Best regards,
    Ivan

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 23, 2018 at 07:34 AM

    Hi Ivan,

    My project name is cloud-apm-cointracker-java. I just created a project using the Business Application template, modified data-model.cds and ct-service.cds and pushed the code to Gitlab. I didn't modify the .gitignore file. I would assume that something as simple as that would work. This is the most basic scenario for multiple developers to work on the same project.

    I just tried to export and then import the project in a different workspace and I have the same issue.

    Could this issue be related to the following error message in the logs:

    [INFO] Skipping cloud-apm-cointracker-java-srv
    [INFO] This project has been banned from the build due to previous failures

    Cheers,

    Pierre

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 05, 2018 at 02:29 PM

    Hi Pierre,

    Are you sharing thru Git just a specific folder underneath the main project or are you sharing the whole project?

    Could you please clarify how exactly is the folder structure on the workspace that works and on the workspace that doesn't?

    Best regards,
    Ivan

    Add comment
    10|10000 characters needed characters exceeded