Error CF Push weblogic application
Hi, I was trying to push a weblogic application to cf, however the following error message popped out.
Aww shucks.
Something completely unexpected happened. This is a bug in cf. Please file this bug : https://github.com/cloudfoundry/cli/issues Tell us that you ran this command:
cf push myweblogicapp -m 1024m -b https://github.com/pivotal-cf/weblogic-buildpack.git
this error occurred:
runtime error: invalid memory address or nil pointer dereference
and this stack trace:
goroutine 1 [running]:
main.displayCrashDialog(0x195ee5f0, 0x40)
/home/ubuntu/go/src/github.com/cloudfoundry/cli/main/main.go:158 +0xc0
main.handlePanics()
/home/ubuntu/go/src/github.com/cloudfoundry/cli/main/main.go:121 +0x1ee
runtime.panic(0x83df180, 0x8a9ec68)
/usr/local/go/src/pkg/runtime/panic.c:248 +0xef
io.Copy(0x0, 0x0, 0xb758d968, 0x19045a10, 0x0, ...)
/usr/local/go/src/pkg/io/io.go:354 +0x1c7
github.com/cloudfoundry/gofileutils/fileutils.CopyPathToWriter(0x19528e80, 0x72, 0x0, 0x0, 0x0, ...)
/home/ubuntu/go/src/github.com/cloudfoundry/cli/Godeps/_workspace/src/github.com/cloudfoundry/gofileutils/fileutils/file_utils.go:74 +0xad
github.com/cloudfoundry/cli/cf/app_files.func·004(0x19528e93, 0x5f, 0x19528e80, 0x72, 0x19528e93, ...)
/home/ubuntu/go/src/github.com/cloudfoundry/cli/tmp/cli_gopath/src/github.com/cloudfoundry/cli/cf/app_files/zipper.go:68 +0x192
github.com/cloudfoundry/cli/cf/app_files.func·003(0x19528e80, 0x72, 0xb758d938, 0x18e94630, 0x0, ...)
/home/ubuntu/go/src/github.com/cloud
We have created an issue in Pivotal Tracker to manage this. You can view the current status of your issue at: https://www.pivotaltracker.com/story/show/79757438.
Hi,
I suspect the cf push is not specifying any specific path to an app and so the entire current directory is being pushed as an app. Quite possible this is quite large to overwhelm the cli.
Also, couple of changes are required:
-
Clone the weblogic buildpack git project and modify the repository for weblogic and oracle jdk to point to some accessible location. The repo referred in the weblogic-buildpack refers to a local repo like 12.1.1.1:7777/fileserver/<jdk/wls>/index.yml which hosts the binaries. This has to be mimicked by your cloned buildpack so the CF install can access it somehow (like from some internal server or amazon s3 bucket once you download the bits from oracle website). This is explained here: https://github.com/pivotal-cf/weblogic-buildpack/blob/master/docs/container-wls.md#requirements
-
Use -p <PathToAppFile.war/ear> option or move the app to a specific folder and then run the cf push from within that folder to push the app bits.
thanks, Sabha
@yinlosky Were you able to follow @sparameswaran's suggestion above? Thanks Greg
Sorry for late reply.
The suggestion above is correct. I didn't set up Java and weblogic access point.
However, I decided not to use weblogic in cf.
thanks
Sent from Yahoo Mail for iPhone
Thanks. I'll close the issue. Reopen it if you find the need.