Hello...
I'm very new to the whole SAP Hana Cloud Platform and I've some trouble deploying my Spring Boot App. I already found the "cloud-hello-spring-cloud" example on gitHub but I it's not working for my app. If there is a full tutorial how to deploy a spring boot app to hana cloud I haven't found it yet
Here are some more informations about my projekt...
First thing: so far I've just a trial account. I don't know if that could be a problem.
According to the "cloud-hello-spring-cloud" example I changed my manifest.yml and added the cloud-connector dependencies to the pom.xml. Then I packaged my app to a .war-file and tried to delploy it via the cockpit (uploading a war file).
But after a few minutes some errors accure and I can't figure out what it is.
I also attached the log file. Maybe it's helpful.
I hope someone can give me some advices.
My pom.xml looks like that:
<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.2.3.RELEASE</version> </parent> <!-- Additional lines to be added here... --> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-security</artifactId> </dependency> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> </dependency> <dependency> <groupId>org.json</groupId> <artifactId>json</artifactId> <version>20140107</version> </dependency> <!-- SAP HANA Cloud Platform --> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-spring-service-connector</artifactId> </dependency> <dependency> <groupId>com.sap.hana.cloud</groupId> <artifactId>spring-cloud-sap-connector</artifactId> <version>1.0.1.RELEASE</version> </dependency> <dependency> <groupId>com.sap.hana.cloud</groupId> <artifactId>spring-cloud-cloudfoundry-hana-service-connector</artifactId> <version>1.0.1.RELEASE</version> </dependency> </dependencies>
<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> <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>
The manifest.yml is:
--- applications: - name: oms memory: 512M instances: 1 host: oms-${random-word} path: target/oms-0.0.1-SNAPSHOT.war services: - hana_shared env: SPRING_PROFILES_DEFAULT: cloud