我正尝试使用以下命令,使用TomEE buildpack将Simple JavaEE7示例应用程序推送到PCF:
cf push samplejavaee7jms -p target/sample.javaee7.jms.war -m 1G -b https://github.com/cloudfoundry-community/tomee-buildpack.git.
但是我的示例应用程序崩溃了,并且无法在PCF中使用以下堆栈跟踪启动-
2019-03-24T01:06:32.45+0530 [CELL/0] OUT Starting health monitoring of container
2019-03-24T01:06:32.55+0530 [APP/PROC/WEB/0] OUT JVM Memory Configuration: -Xmx420996K -Xss1M -XX:ReservedCodeCacheSize=240M -XX:MaxDirectMemorySize=10M -XX:MaxMetaspaceSize=115579K
2019-03-24T01:06:32.68+0530 [APP/PROC/WEB/0] ERR Handler error
2019-03-24T01:06:32.68+0530 [APP/PROC/WEB/0] ERR java.lang.ClassNotFoundException: com.gopivotal.cloudfoundry.tomcat.logging.CloudFoundryConsoleHandler
2019-03-24T01:06:32.68+0530 [APP/PROC/WEB/0] ERR at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
2019-03-24T01:06:32.68+0530 [APP/PROC/WEB/0] ERR at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
2019-03-24T01:06:32.68+0530 [APP/PROC/WEB/0] ERR at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
2019-03-24T01:06:32.68+0530 [APP/PROC/WEB/0] ERR at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
2019-03-24T01:06:32.68+0530 [APP/PROC/WEB/0] ERR at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:601)
2019-03-24T01:06:32.68+0530 [APP/PROC/WEB/0] ERR at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:538)
2019-03-24T01:06:32.68+0530 [APP/PROC/WEB/0] ERR at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:336)
2019-03-24T01:06:32.68+0530 [APP/PROC/WEB/0] ERR at java.util.logging.LogManager$3.run(LogManager.java:399)
2019-03-24T01:06:32.68+0530 [APP/PROC/WEB/0] ERR at java.util.logging.LogManager$3.run(LogManager.java:396)
2019-03-24T01:06:32.68+0530 [APP/PROC/WEB/0] ERR at java.security.AccessController.doPrivileged(Native Method)
2019-03-24T01:06:32.68+0530 [APP/PROC/WEB/0] ERR at java.util.logging.LogManager.readPrimordialConfiguration(LogManager.java:396)
2019-03-24T01:06:32.68+0530 [APP/PROC/WEB/0] ERR at java.util.logging.LogManager.access$800(LogManager.java:145)
2019-03-24T01:06:32.68+0530 [APP/PROC/WEB/0] ERR at java.util.logging.LogManager$2.run(LogManager.java:345)
2019-03-24T01:06:32.68+0530 [APP/PROC/WEB/0] ERR at java.security.AccessController.doPrivileged(Native Method)
2019-03-24T01:06:32.68+0530 [APP/PROC/WEB/0] ERR at java.util.logging.LogManager.ensureLogManagerInitialized(LogManager.java:338)
2019-03-24T01:06:32.68+0530 [APP/PROC/WEB/0] ERR at java.util.logging.LogManager.getLogManager(LogManager.java:378)
2019-03-24T01:06:32.68+0530 [APP/PROC/WEB/0] ERR at java.util.logging.Logger.demandLogger(Logger.java:448)
2019-03-24T01:06:32.68+0530 [APP/PROC/WEB/0] ERR at java.util.logging.Logger.getLogger(Logger.java:502)
2019-03-24T01:06:32.68+0530 [APP/PROC/WEB/0] ERR at org.apache.tomee.jul.formatter.log.JULLogger.<init>(JULLogger.java:67)
2019-03-24T01:06:32.68+0530 [APP/PROC/WEB/0] ERR at org.apache.tomee.jul.formatter.log.ReloadableLog$ReloadableLogHandler.initDelegate(ReloadableLog.java:93)
2019-03-24T01:06:32.68+0530 [APP/PROC/WEB/0] ERR at org.apache.tomee.jul.formatter.log.ReloadableLog$ReloadableLogHandler.<init>(ReloadableLog.java:54)
2019-03-24T01:06:32.68+0530 [APP/PROC/WEB/0] ERR at org.apache.tomee.jul.formatter.log.ReloadableLog.newLog(ReloadableLog.java:37)
2019-03-24T01:06:32.68+0530 [APP/PROC/WEB/0] ERR at org.apache.tomee.jul.formatter.log.TomEELog.<init>(TomEELog.java:79)
2019-03-24T01:06:32.68+0530 [APP/PROC/WEB/0] ERR at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
2019-03-24T01:06:32.68+0530 [APP/PROC/WEB/0] ERR at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
2019-03-24T01:06:32.68+0530 [APP/PROC/WEB/0] ERR at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
2019-03-24T01:06:32.68+0530 [APP/PROC/WEB/0] ERR at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
2019-03-24T01:06:32.68+0530 [APP/PROC/WEB/0] ERR at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:120)
2019-03-24T01:06:32.68+0530 [APP/PROC/WEB/0] ERR at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:139)
2019-03-24T01:06:32.68+0530 [APP/PROC/WEB/0] ERR at org.apache.juli.logging.LogFactory.getLog(LogFactory.java:194)
2019-03-24T01:06:32.68+0530 [APP/PROC/WEB/0] ERR at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:52)
2019-03-24T01:06:35.67+0530 [APP/PROC/WEB/0] OUT Exit status 148
2019-03-24T01:06:35.67+0530 [CELL/SSHD/0] OUT Exit status 0
我尝试在本地计算机上使用tomee-maven-plugin运行相同的应用程序,并且运行良好。
我还尝试通过
自定义tomee buildpack cf set-env samplejavaee7jms JBP_CONFIG_TOMEE '{ tomee: { version: 8.0.+ } }'
并重新启动了应用程序,但出现了相同的错误