Open Manish-Mj opened 5 years ago
Hello @sclevine any help on this is appreciated, thanks.
Do you use an HTTP/HTTPS proxy to connect to the internet on your workstation?
Yes there is. I exported the certificate chain and added to the /usr/share/ca-certificates, but still no luck @ all.
Hi @sclevine I was finally stage the app using offline buildpack, but now another hurdle. Its a maven app & am not able to run it. Error stack below. Any pointers are appreciated.
Running sample-java-app on port 46362...
[sample-java-app] 2019-02-12T07:24:10.241827894Z Exception in thread "main" java.lang.reflect.InvocationTargetException
[sample-java-app] 2019-02-12T07:24:10.247293545Z at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[sample-java-app] 2019-02-12T07:24:10.247447243Z at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[sample-java-app] 2019-02-12T07:24:10.251385438Z at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[sample-java-app] 2019-02-12T07:24:10.251416534Z at java.lang.reflect.Method.invoke(Method.java:497)
[sample-java-app] 2019-02-12T07:24:10.251422838Z at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
[sample-java-app] 2019-02-12T07:24:10.251427231Z at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
[sample-java-app] 2019-02-12T07:24:10.258500944Z at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
[sample-java-app] 2019-02-12T07:24:10.258532029Z at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
[sample-java-app] 2019-02-12T07:24:10.258539054Z Caused by: java.lang.IllegalArgumentException: Cannot instantiate interface org.springframework.context.ApplicationContextInitializer : org.cloudfoundry.reconfiguration.spring.CloudPropertySourceApplicationContextInitializer
[sample-java-app] 2019-02-12T07:24:10.258547214Z at org.springframework.boot.SpringApplication.createSpringFactoriesInstances(SpringApplication.java:413)
[sample-java-app] 2019-02-12T07:24:10.258552252Z at org.springframework.boot.SpringApplication.getSpringFactoriesInstances(SpringApplication.java:392)
[sample-java-app] 2019-02-12T07:24:10.258557400Z at org.springframework.boot.SpringApplication.getSpringFactoriesInstances(SpringApplication.java:383)
[sample-java-app] 2019-02-12T07:24:10.258562118Z at org.springframework.boot.SpringApplication.initialize(SpringApplication.java:249)
[sample-java-app] 2019-02-12T07:24:10.258566368Z at org.springframework.boot.SpringApplication.
I got this fixed by building offline: java-buildpack version 4.12 which supports running spring app > 1.4. But still some other errors. My end goal is to link it to remote service running in our cloud envi. Please point me to a sample or doc which can be referred to make progress.
Hello Team,
I'm trying to understand cf local to see how I can use it in our project. Am pretty new to the cloud world as well. I installed cf local plugin & cloned a basic example from: https://github.com/18F/cf-hello-worlds I ran the below commands but always get some certificate errors. I tried my best to import certs but still unable to go past this step. Any pointers would be helpful.
root@hostname:/code/cf-hello-worlds/java-see# update-ca-certificates Updating certificates in /etc/ssl/certs... 1 added, 0 removed; done. Running hooks in /etc/ca-certificates/update.d...
Adding debian:java-bpCert-via_openssl_cmd.pem done. done. root@hostname:/code/cf-hello-worlds/java-see# cf local stage java-see Buildpack: will detect [java-see] 2019-01-28T04:38:59.903285588Z [DownloadCache] WARN Unable to download https://java-buildpack.cloudfoundry.org/jvmkill/trusty/x86_64/index.yml into cache /tmp: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed [java-see] 2019-01-28T04:38:59.903838075Z [Buildpack] ERROR Detect failed with exception #<RuntimeError: Jvmkill Agent error: Unable to find cached file for https://java-buildpack.cloudfoundry.org/jvmkill/trusty/x86_64/index.yml> [java-see] 2019-01-28T04:38:59.903878599Z Jvmkill Agent error: Unable to find cached file for https://java-buildpack.cloudfoundry.org/jvmkill/trusty/x86_64/index.yml [java-see] 2019-01-28T04:39:00.433670968Z None of the buildpacks detected a compatible application [java-see] 2019-01-28T04:39:00.434500600Z 2019/01/28 04:39:00 Error: failed to build: exit status 222 Error: container exited with status 7 FAILED root@hostname:/code/cf-hello-worlds/java-see#