I have written a small Camel application (https://github.com/bhushantimilsina/camel-simple-app) that reads file from inbox directory, calls a processor to change its case and write output to a file in outbox directory. When I run the main class (using IDE or using run.cmd script), everything works as expected but when I run the application using executable JAR, only message content is null.
To do this test, I copied \inbox\inputFile.txt in \target so that input file is there. Then I run the JAR using 'java -jar camel-simple-app-1.0-jar-with-dependencies.jar' from target directory.
Output log when running as executable JAR:
2021-03-04 20:04:46.581| INFO | AbstractCamelContext.java 2980 | Routes startup summary (total:4 started:4)
2021-03-04 20:04:46.581| INFO | AbstractCamelContext.java 2985 | Started inputFileRoute (file://inbox)
2021-03-04 20:04:46.581| INFO | AbstractCamelContext.java 2985 | Started multicastRoute (direct://inputChannel)
2021-03-04 20:04:46.581| INFO | AbstractCamelContext.java 2985 | Started upperCaseTransformRoute (direct://upperCaseTransformInputChannel)
2021-03-04 20:04:46.581| INFO | AbstractCamelContext.java 2985 | Started lowerCaseTransformRoute (direct://lowerCaseTransformInputChannel)
2021-03-04 20:04:46.581| INFO | AbstractCamelContext.java 2997 | Apache Camel 3.8.0 (camelContext) started in 234ms (build:31ms init:172ms start:31ms)
2021-03-04 20:04:46.612| INFO | AbstractCamelContext.java 2980 | Routes startup summary (total:0 started:0)
2021-03-04 20:04:46.612| INFO | AbstractCamelContext.java 2997 | Apache Camel 3.8.0 (camel-1) started in 15ms (build:0ms init:15ms start:0ms)
2021-03-04 20:04:47.581| INFO | CamelLogger.java 166 | *** Input message read from file: C:\SpringPractice\camel-simple-app\target\inbox\inputFile.txt**
2021-03-04 20:04:47.581| INFO | CamelLogger.java 166 | *** Message:
2021-03-04 20:04:47.581| INFO | CamelLogger.java 166 | *** Multicasting the file content to different processors ...
2021-03-04 20:04:47.628| INFO | CamelLogger.java 166 | *** Transforming the message to upper case
2021-03-04 20:04:47.628| INFO | CamelLogger.java 166 | *** Transforming the message to lower case
2021-03-04 20:04:47.628| ERROR | CamelLogger.java 205 | Failed delivery for (MessageId: F89B7EA52A14215-0000000000000001 on ExchangeId: F89B7EA52A14215-0000000000000001). Exhausted after delivery attempt: 1 caught: java.lang.NullPointerException
Here in the log the Message: is empty.
When running from IDE or using run.cmd script I can see the Message: print message in the file.
2021-03-04 20:12:44.320| INFO | AbstractCamelContext.java 2980 | Routes startup summary (total:4 started:4)
2021-03-04 20:12:44.336| INFO | AbstractCamelContext.java 2985 | Started inputFileRoute (file://inbox)
2021-03-04 20:12:44.336| INFO | AbstractCamelContext.java 2985 | Started multicastRoute (direct://inputChannel)
2021-03-04 20:12:44.336| INFO | AbstractCamelContext.java 2985 | Started upperCaseTransformRoute (direct://upperCaseTransformInputChannel)
2021-03-04 20:12:44.336| INFO | AbstractCamelContext.java 2985 | Started lowerCaseTransformRoute (direct://lowerCaseTransformInputChannel)
2021-03-04 20:12:44.336| INFO | AbstractCamelContext.java 2997 | Apache Camel 3.8.0 (camelContext) started in 422ms (build:78ms init:312ms start:32ms)
2021-03-04 20:12:44.383| INFO | AbstractCamelContext.java 2980 | Routes startup summary (total:0 started:0)
2021-03-04 20:12:44.383| INFO | AbstractCamelContext.java 2997 | Apache Camel 3.8.0 (camel-1) started in 16ms (build:0ms init:16ms start:0ms)
2021-03-04 20:12:45.351| INFO | CamelLogger.java 166 | *** Input message read from file: C:\SpringPractice\camel-simple-app\inbox\inputFile.txt
2021-03-04 20:12:45.351| INFO | CamelLogger.java 166 | *** Message: SoMe meESSage GOes HERe
2021-03-04 20:12:45.351| INFO | CamelLogger.java 166 | *** Multicasting the file content to different processors ...
2021-03-04 20:12:45.398| INFO | CamelLogger.java 166 | *** Transforming the message to lower case
2021-03-04 20:12:45.398| INFO | CamelLogger.java 166 | *** Transforming the message to upper case
2021-03-04 20:12:46.383| INFO | AbstractCamelContext.java 3174 | Apache Camel 3.8.0 (camel-1) shutting down (timeout:45s)
2021-03-04 20:12:46.383| INFO | AbstractCamelContext.java 3368 | Routes shutdown summary (total:0 stopped:0)
2021-03-04 20:12:46.383| INFO | AbstractCamelContext.java 3313 | Apache Camel 3.8.0 (camel-1) shutdown in 0ms (uptime:2s)
Related
I want to find an email server implementation, convert the code to a war file like all my other apps.
The JAMES project seems so ... finished. But for years I couldn't even started it.
Milestones:
i have extracted james-server-jpa-guice.zip file from https://james.apache.org/download.cgi and run:
D:\james>java -classpath 'james-server-jpa-app.lib/*' -javaagent:james-server-jpa-app.lib/openjpa-3.2.0.jar -Dlogback.configurationFile=conf/logback.xml -Dworking.directory=. org.apache.james.JPAJamesServerMain
Some product derivations are being skipped. For information about product derivation status, run:
java org.apache.openjpa.lib.conf.ProductDerivations
org.apache.openjpa.persistence.PersistenceProductDerivation:java.lang.NoClassDefFoundError: javax/persistence/spi/PersistenceUnitInfo
Error: Could not find or load main class org.apache.james.JPAJamesServerMain
Caused by: java.lang.ClassNotFoundException: org.apache.james.JPAJamesServerMain
no luck.
Even though i don't understand Spring, I extracted james-server-app-3.7.0-app.zip from https://james.apache.org/download.cgi and run in admin mode:
D:\james\bin>james console
wrapper | --> Wrapper Started as Console
wrapper | Launching a JVM...
jvm 1 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
jvm 1 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
jvm 1 |
jvm 1 | 2022-04-24 15:52:29,840 main ERROR Unable to create file ${sys:app.home}/log/springframework.log java.io.IOException: Dosya ad², dizin ad² veya birim etiketi s÷zdizimi hatal²
jvm 1 | at java.base/java.io.WinNTFileSystem.canonicalize0(Native Method)
jvm 1 | at java.base/java.io.WinNTFileSystem.canonicalize(WinNTFileSystem.java:417)
jvm 1 | at java.base/java.io.File.getCanonicalPath(File.java:626)
jvm 1 | at java.base/java.io.File.getCanonicalFile(File.java:651)
jvm 1 | at org.apache.logging.log4j.core.util.FileUtils.makeParentDirs(FileUtils.java:135)
jvm 1 | at org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory.createManager(RollingFileManager.java:732)
jvm 1 | at org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory.createManager(RollingFileManager.java:716)
jvm 1 | at org.apache.logging.log4j.core.appender.AbstractManager.getManager(AbstractManager.java:114)
jvm 1 | at org.apache.logging.log4j.core.appender.OutputStreamManager.getManager(OutputStreamManager.java:100)
jvm 1 | at org.apache.logging.log4j.core.appender.rolling.RollingFileManager.getFileManager(RollingFileManager.java:217)
jvm 1 | at org.apache.logging.log4j.core.appender.RollingFileAppender$Builder.build(RollingFileAppender.java:146)
jvm 1 | at org.apache.logging.log4j.core.appender.RollingFileAppender$Builder.build(RollingFileAppender.java:62)
jvm 1 | at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:122)
jvm 1 | at org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:1120)
jvm 1 | at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:1045)
jvm 1 | at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:1037)
jvm 1 | at org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:651)
jvm 1 | at org.apache.logging.log4j.core.config.AbstractConfiguration.initialize(AbstractConfiguration.java:247)
jvm 1 | at org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:293)
jvm 1 | at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:626)
jvm 1 | at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:699)
jvm 1 | at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:716)
jvm 1 | at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:270)
jvm 1 | at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:155)
jvm 1 | at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:47)
jvm 1 | at org.apache.logging.log4j.LogManager.getContext(LogManager.java:196)
jvm 1 | at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getContext(AbstractLoggerAdapter.java:137)
jvm 1 | at org.apache.logging.slf4j.Log4jLoggerFactory.getContext(Log4jLoggerFactory.java:55)
jvm 1 | at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getLogger(AbstractLoggerAdapter.java:47)
jvm 1 | at org.apache.logging.slf4j.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:33)
jvm 1 | at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:363)
jvm 1 | at org.apache.james.app.spring.JamesAppSpringMain.<clinit>(JamesAppSpringMain.java:34)
jvm 1 | at java.base/java.lang.Class.forName0(Native Method)
jvm 1 | at java.base/java.lang.Class.forName(Class.java:375)
jvm 1 | at org.tanukisoftware.wrapper.WrapperSimpleApp.<init>(WrapperSimpleApp.java:147)
jvm 1 | at org.tanukisoftware.wrapper.WrapperSimpleApp.main(WrapperSimpleApp.java:485)
jvm 1 |
jvm 1 | 2022-04-24 15:52:29,843 main ERROR Could not create plugin of type class org.apache.logging.log4j.core.appender.RollingFileAppender for element RollingFile: java.lang.IllegalStateException: ManagerFactory [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory#44a59da3] unable to create manager for [${sys:app.home}/log/springframework.log] with data [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$FactoryData#27e47833[pattern=${sys:app.home}/log/springframework.%d{yyyy-MM-dd}-%i.log.gz, append=true, bufferedIO=true, bufferSize=8192, policy=CompositeTriggeringPolicy(policies=[]), strategy=DefaultRolloverStrategy(min=1, max=7, useMax=true), advertiseURI=null, layout=%d{dd-MMM-yyyy HH:mm:ss.SSS} %level [%t] %C.%M:%L - %msg%n, filePermissions=null, fileOwner=null]] java.lang.IllegalStateException: ManagerFactory [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory#44a59da3] unable to create manager for [${sys:app.home}/log/springframework.log] with data [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$FactoryData#27e47833[pattern=${sys:app.home}/log/springframework.%d{yyyy-MM-dd}-%i.log.gz, append=true, bufferedIO=true, bufferSize=8192, policy=CompositeTriggeringPolicy(policies=[]), strategy=DefaultRolloverStrategy(min=1, max=7, useMax=true), advertiseURI=null, layout=%d{dd-MMM-yyyy HH:mm:ss.SSS} %level [%t] %C.%M:%L - %msg%n, filePermissions=null, fileOwner=null]]
jvm 1 | at org.apache.logging.log4j.core.appender.AbstractManager.getManager(AbstractManager.java:116)
jvm 1 | at org.apache.logging.log4j.core.appender.OutputStreamManager.getManager(OutputStreamManager.java:100)
jvm 1 | at org.apache.logging.log4j.core.appender.rolling.RollingFileManager.getFileManager(RollingFileManager.java:217)
jvm 1 | at org.apache.logging.log4j.core.appender.RollingFileAppender$Builder.build(RollingFileAppender.java:146)
jvm 1 | at org.apache.logging.log4j.core.appender.RollingFileAppender$Builder.build(RollingFileAppender.java:62)
jvm 1 | at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:122)
jvm 1 | at org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:1120)
jvm 1 | at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:1045)
jvm 1 | at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:1037)
jvm 1 | at org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:651)
jvm 1 | at org.apache.logging.log4j.core.config.AbstractConfiguration.initialize(AbstractConfiguration.java:247)
jvm 1 | at org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:293)
jvm 1 | at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:626)
jvm 1 | at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:699)
jvm 1 | at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:716)
jvm 1 | at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:270)
jvm 1 | at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:155)
jvm 1 | at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:47)
jvm 1 | at org.apache.logging.log4j.LogManager.getContext(LogManager.java:196)
jvm 1 | at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getContext(AbstractLoggerAdapter.java:137)
jvm 1 | at org.apache.logging.slf4j.Log4jLoggerFactory.getContext(Log4jLoggerFactory.java:55)
jvm 1 | at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getLogger(AbstractLoggerAdapter.java:47)
jvm 1 | at org.apache.logging.slf4j.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:33)
jvm 1 | at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:363)
jvm 1 | at org.apache.james.app.spring.JamesAppSpringMain.<clinit>(JamesAppSpringMain.java:34)
jvm 1 | at java.base/java.lang.Class.forName0(Native Method)
jvm 1 | at java.base/java.lang.Class.forName(Class.java:375)
jvm 1 | at org.tanukisoftware.wrapper.WrapperSimpleApp.<init>(WrapperSimpleApp.java:147)
jvm 1 | at org.tanukisoftware.wrapper.WrapperSimpleApp.main(WrapperSimpleApp.java:485)
jvm 1 |
jvm 1 | 2022-04-24 15:52:29,947 main ERROR Unable to invoke factory method in class org.apache.logging.log4j.core.appender.RollingFileAppender for element RollingFile: java.lang.IllegalStateException: No factory method found for class org.apache.logging.log4j.core.appender.RollingFileAppender java.lang.IllegalStateException: No factory method found for class org.apache.logging.log4j.core.appender.RollingFileAppender
jvm 1 | at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.findFactoryMethod(PluginBuilder.java:236)
jvm 1 | at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:134)
jvm 1 | at org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:1120)
jvm 1 | at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:1045)
jvm 1 | at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:1037)
jvm 1 | at org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:651)
jvm 1 | at org.apache.logging.log4j.core.config.AbstractConfiguration.initialize(AbstractConfiguration.java:247)
jvm 1 | at org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:293)
jvm 1 | at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:626)
jvm 1 | at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:699)
jvm 1 | at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:716)
jvm 1 | at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:270)
jvm 1 | at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:155)
jvm 1 | at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:47)
jvm 1 | at org.apache.logging.log4j.LogManager.getContext(LogManager.java:196)
jvm 1 | at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getContext(AbstractLoggerAdapter.java:137)
jvm 1 | at org.apache.logging.slf4j.Log4jLoggerFactory.getContext(Log4jLoggerFactory.java:55)
jvm 1 | at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getLogger(AbstractLoggerAdapter.java:47)
jvm 1 | at org.apache.logging.slf4j.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:33)
jvm 1 | at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:363)
jvm 1 | at org.apache.james.app.spring.JamesAppSpringMain.<clinit>(JamesAppSpringMain.java:34)
jvm 1 | at java.base/java.lang.Class.forName0(Native Method)
jvm 1 | at java.base/java.lang.Class.forName(Class.java:375)
jvm 1 | at org.tanukisoftware.wrapper.WrapperSimpleApp.<init>(WrapperSimpleApp.java:147)
jvm 1 | at org.tanukisoftware.wrapper.WrapperSimpleApp.main(WrapperSimpleApp.java:485)
jvm 1 |
jvm 1 | 2022-04-24 15:52:29,954 main ERROR Unable to create file ${sys:app.home}/log/openjpa.log java.io.IOException: Dosya ad², dizin ad² veya birim etiketi s÷zdizimi hatal²
jvm 1 | at java.base/java.io.WinNTFileSystem.canonicalize0(Native Method)
jvm 1 | at java.base/java.io.WinNTFileSystem.canonicalize(WinNTFileSystem.java:417)
jvm 1 | at java.base/java.io.File.getCanonicalPath(File.java:626)
jvm 1 | at java.base/java.io.File.getCanonicalFile(File.java:651)
jvm 1 | at org.apache.logging.log4j.core.util.FileUtils.makeParentDirs(FileUtils.java:135)
jvm 1 | at org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory.createManager(RollingFileManager.java:732)
jvm 1 | at org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory.createManager(RollingFileManager.java:716)
jvm 1 | at org.apache.logging.log4j.core.appender.AbstractManager.getManager(AbstractManager.java:114)
jvm 1 | at org.apache.logging.log4j.core.appender.OutputStreamManager.getManager(OutputStreamManager.java:100)
jvm 1 | at org.apache.logging.log4j.core.appender.rolling.RollingFileManager.getFileManager(RollingFileManager.java:217)
jvm 1 | at org.apache.logging.log4j.core.appender.RollingFileAppender$Builder.build(RollingFileAppender.java:146)
jvm 1 | at org.apache.logging.log4j.core.appender.RollingFileAppender$Builder.build(RollingFileAppender.java:62)
jvm 1 | at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:122)
jvm 1 | at org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:1120)
jvm 1 | at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:1045)
jvm 1 | at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:1037)
jvm 1 | at org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:651)
jvm 1 | at org.apache.logging.log4j.core.config.AbstractConfiguration.initialize(AbstractConfiguration.java:247)
jvm 1 | at org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:293)
jvm 1 | at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:626)
jvm 1 | at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:699)
jvm 1 | at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:716)
jvm 1 | at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:270)
jvm 1 | at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:155)
jvm 1 | at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:47)
jvm 1 | at org.apache.logging.log4j.LogManager.getContext(LogManager.java:196)
jvm 1 | at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getContext(AbstractLoggerAdapter.java:137)
jvm 1 | at org.apache.logging.slf4j.Log4jLoggerFactory.getContext(Log4jLoggerFactory.java:55)
jvm 1 | at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getLogger(AbstractLoggerAdapter.java:47)
jvm 1 | at org.apache.logging.slf4j.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:33)
jvm 1 | at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:363)
jvm 1 | at org.apache.james.app.spring.JamesAppSpringMain.<clinit>(JamesAppSpringMain.java:34)
jvm 1 | at java.base/java.lang.Class.forName0(Native Method)
jvm 1 | at java.base/java.lang.Class.forName(Class.java:375)
jvm 1 | at org.tanukisoftware.wrapper.WrapperSimpleApp.<init>(WrapperSimpleApp.java:147)
jvm 1 | at org.tanukisoftware.wrapper.WrapperSimpleApp.main(WrapperSimpleApp.java:485)
jvm 1 |
jvm 1 | 2022-04-24 15:52:29,966 main ERROR Could not create plugin of type class org.apache.logging.log4j.core.appender.RollingFileAppender for element RollingFile: java.lang.IllegalStateException: ManagerFactory [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory#44a59da3] unable to create manager for [${sys:app.home}/log/openjpa.log] with data [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$FactoryData#6c61a903[pattern=${sys:app.home}/log/openjpa.%d{yyyy-MM-dd}-%i.log.gz, append=true, bufferedIO=true, bufferSize=8192, policy=CompositeTriggeringPolicy(policies=[]), strategy=DefaultRolloverStrategy(min=1, max=7, useMax=true), advertiseURI=null, layout=%d{dd-MMM-yyyy HH:mm:ss.SSS} %level [%t] %C.%M:%L - %msg%n, filePermissions=null, fileOwner=null]] java.lang.IllegalStateException: ManagerFactory [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory#44a59da3] unable to create manager for [${sys:app.home}/log/openjpa.log] with data [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$FactoryData#6c61a903[pattern=${sys:app.home}/log/openjpa.%d{yyyy-MM-dd}-%i.log.gz, append=true, bufferedIO=true, bufferSize=8192, policy=CompositeTriggeringPolicy(policies=[]), strategy=DefaultRolloverStrategy(min=1, max=7, useMax=true), advertiseURI=null, layout=%d{dd-MMM-yyyy HH:mm:ss.SSS} %level [%t] %C.%M:%L - %msg%n, filePermissions=null, fileOwner=null]]
jvm 1 | at org.apache.logging.log4j.core.appender.AbstractManager.getManager(AbstractManager.java:116)
jvm 1 | at org.apache.logging.log4j.core.appender.OutputStreamManager.getManager(OutputStreamManager.java:100)
jvm 1 | at org.apache.logging.log4j.core.appender.rolling.RollingFileManager.getFileManager(RollingFileManager.java:217)
jvm 1 | at org.apache.logging.log4j.core.appender.RollingFileAppender$Builder.build(RollingFileAppender.java:146)
jvm 1 | at org.apache.logging.log4j.core.appender.RollingFileAppender$Builder.build(RollingFileAppender.java:62)
jvm 1 | at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:122)
jvm 1 | at org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:1120)
jvm 1 | at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:1045)
jvm 1 | at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:1037)
jvm 1 | at org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:651)
jvm 1 | at org.apache.logging.log4j.core.config.AbstractConfiguration.initialize(AbstractConfiguration.java:247)
jvm 1 | at org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:293)
jvm 1 | at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:626)
jvm 1 | at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:699)
jvm 1 | at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:716)
jvm 1 | at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:270)
jvm 1 | at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:155)
jvm 1 | at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:47)
jvm 1 | at org.apache.logging.log4j.LogManager.getContext(LogManager.java:196)
jvm 1 | at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getContext(AbstractLoggerAdapter.java:137)
jvm 1 | at org.apache.logging.slf4j.Log4jLoggerFactory.getContext(Log4jLoggerFactory.java:55)
jvm 1 | at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getLogger(AbstractLoggerAdapter.java:47)
jvm 1 | at org.apache.logging.slf4j.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:33)
jvm 1 | at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:363)
jvm 1 | at org.apache.james.app.spring.JamesAppSpringMain.<clinit>(JamesAppSpringMain.java:34)
jvm 1 | at java.base/java.lang.Class.forName0(Native Method)
jvm 1 | at java.base/java.lang.Class.forName(Class.java:375)
jvm 1 | at org.tanukisoftware.wrapper.WrapperSimpleApp.<init>(WrapperSimpleApp.java:147)
jvm 1 | at
.........
jvm 1 | 24-Nis-2022 15:52:37.034 INFO [WrapperSimpleAppMain] org.springframework.jmx.export.MBeanExporter.registerBeanInstance:672 - Located MBean 'org.apache.james:type=component,name=mailboxcopier': registering with JMX server as MBean [org.apache.james:type=component,name=mailboxcopier]
jvm 1 | 24-Nis-2022 15:52:37.034 INFO [WrapperSimpleAppMain] org.springframework.jmx.export.MBeanExporter.registerBeanInstance:672 - Located MBean 'org.apache.james:type=component,name=quotamanagerbean': registering with JMX server as MBean [org.apache.james:type=component,name=quotamanagerbean]
jvm 1 | 24-Nis-2022 15:52:37.035 INFO [WrapperSimpleAppMain] org.springframework.jmx.export.MBeanExporter.registerBeanInstance:672 - Located MBean 'org.apache.james:type=component,name=reindexerbean': registering with JMX server as MBean [org.apache.james:type=component,name=reindexerbean]
jvm 1 | 24-Nis-2022 15:52:37.035 INFO [WrapperSimpleAppMain] org.springframework.jmx.export.MBeanExporter.registerBeanInstance:672 - Located MBean 'org.apache.james:type=component,name=sievemanagerbean': registering with JMX server as MBean [org.apache.james:type=component,name=sievemanagerbean]
jvm 1 | 24-Nis-2022 15:52:37.040 INFO [WrapperSimpleAppMain] org.apache.james.app.spring.JamesAppSpringMain.main:46 - Apache James Server is successfully started in 6214 milliseconds.
It says server started, there are so many error messages that i am doubtfull.\
Anyway, I tried to add a user as below; but i did not worked again
D:\james\bin>james-cli.bat adduser user#localhost myPass
24-Nis-2022 15:59:13.194 ERROR [main] org.apache.james.cli.ServerCmd.main:101 - Error while playing command
java.lang.Exception: Unexpected exception
at org.apache.james.user.lib.UsersRepositoryManagement.addUser(UsersRepositoryManagement.java:57) ~[james-server-data-library-3.7.0.jar:3.7.0]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:72) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:262) ~[?:?]
at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:112) ~[?:?]
at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:46) ~[?:?]
at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:237) ~[?:?]
at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:138) ~[?:?]
at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:252) ~[?:?]
at javax.management.StandardMBean.invoke(StandardMBean.java:405) ~[?:?]
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:814) ~[?:?]
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:802) ~[?:?]
at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1472) ~[?:?]
at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1310) ~[?:?]
at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1405) ~[?:?]
at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:829) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:360) ~[?:?]
at sun.rmi.transport.Transport$1.run(Transport.java:200) ~[?:?]
at sun.rmi.transport.Transport$1.run(Transport.java:197) ~[?:?]
at java.security.AccessController.doPrivileged(AccessController.java:712) ~[?:?]
at sun.rmi.transport.Transport.serviceCall(Transport.java:196) ~[?:?]
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:587) ~[?:?]
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:828) ~[?:?]
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:705) ~[?:?]
at java.security.AccessController.doPrivileged(AccessController.java:399) ~[?:?]
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:704) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
Error class java.lang.Exception while executing command:Unexpected exception
usage: java org.apache.james.cli.ServerCmd --host <arg> <command>
-h,--host <arg> node hostname or ip address
-p,--port <arg> remote jmx agent port number
AddUser <username> <password>
RemoveUser <username>
ListUsers
AddDomain <domainName>
RemoveDomain <domainName>
ContainsDomain <domainName>
ListDomains
ListMappings
ListUserDomainMappings <user> <domain>
AddAddressMapping <fromUser> <fromDomain> <toAddress>
RemoveAddressMapping <fromUser> <fromDomain> <toAddress>
AddRegexMapping <user> <domain> <regex>
RemoveRegexMapping <user> <domain> <regex>
SetPassword <username> <password>
CopyMailbox <srcBean> <dstBean>
DeleteUserMailboxes <user>
CreateMailbox <namespace> <user> <name>
ListUserMailboxes <user>
DeleteMailbox <namespace> <user> <name>
ImportEml <namespace> <user> <name> <path>
GetStorageQuota <quotaroot>
GetMessageCountQuota <quotaroot>
GetQuotaroot <namespace> <user> <name>
GetMaxStorageQuota <quotaroot>
GetMaxMessageCountQuota <quotaroot>
SetMaxStorageQuota <quotaroot> <maxMessageCount>
SetMaxMessageCountQuota <quotaroot> <maxStorage>
SetGlobalMaxStorageQuota <maxStorage>
SetGlobalMaxMessageCountQuota <maxMessageCount>
GetGlobalMaxStorageQuota
GetGlobalMaxMessageCountQuota
ReindexMailbox <namespace> <user> <name>
ReindexAll
GetSieveQuota
SetSieveQuota <quota>
RemoveSieveQuota
GetSieveUserQuota <username>
SetSieveUserQuota <username> <quota>
RemoveSieveUserQuota <username>
AddActiveSieveScript <username> <scriptname> <path>
Could you put me in the right track.
Use
cd james-server-spring-app-3.7.3\bin
run.bat
If the windows firewall pops up and asks to allow the opening of the port, please allow the opening of the relevant port for Apache James Mail Server to use.
Do not use
james console
run.bat - log
C:\Users\IEUser\Downloads\james-server-spring-app-3.7.3\bin>run.bat
24-Jan-2023 04:55:15.525 INFO [main] org.springframework.context.support.AbstractApplicationContext.prepareRefresh:583 - Refreshing org.apache.james.container.spring.context.JamesServerApplicationContext#7c098bb3: startup date [Tue Jan 24 04:55:15 PST 2023]; root of context hierarchy
24-Jan-2023 04:55:15.610 INFO [main] org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions:317 - Loading XML bean definitions from class path resource [META-INF/org/apache/james/spring-server.xml]
...
24-Jan-2023 04:55:25.995 INFO [main] org.apache.activemq.transport.TransportServerThreadSupport.doStart:69 - Listening for connections at: tcp://127.0.0.1:50043
24-Jan-2023 04:55:25.995 INFO [main] org.apache.activemq.broker.TransportConnector.start:267 - Connector tcp://127.0.0.1:50043 started
24-Jan-2023 04:55:26.010 INFO [main] org.apache.activemq.broker.BrokerService.doStartBroker:759 - Apache ActiveMQ 5.17.2 (james, broker) started
...
24-Jan-2023 04:55:27.678 INFO [main] org.apache.james.protocols.lib.netty.AbstractConfigurableAsyncServer.configure:199 - SMTP Service bound to: 0.0.0.0:25
...
24-Jan-2023 04:55:27.992 INFO [main] org.apache.james.protocols.lib.netty.AbstractConfigurableAsyncServer.configure:199 - POP3 Service bound to: 0.0.0.0:110
...
24-Jan-2023 04:55:28.239 INFO [main] org.apache.james.protocols.lib.netty.AbstractConfigurableAsyncServer.configure:199 - IMAP Service bound to: 0.0.0.0:143
...
24-Jan-2023 04:55:28.378 INFO [main] org.springframework.remoting.rmi.RmiRegistryFactoryBean.getRegistry:217 - Looking for RMI registry at port '9999', using custom socket factory
...
24-Jan-2023 04:55:29.997 INFO [main] org.apache.james.app.spring.JamesAppSpringMain.main:46 - Apache James Server is successfully started in 14534 milliseconds.
james-cli.bat - log
C:\Users\IEUser\Downloads\james-server-spring-app-3.7.3\bin>james-cli.bat adduser user#localhost myPass
AddUser command executed sucessfully in 573 ms.
My Env:
Windows 10,
OpenJDK11U-jdk_x64_windows_hotspot_11.0.18_10.msi
james-server-spring-app-3.7.3-app.zip
JDK install
(1) Remove Environment Variavle: JAVA_HOME, And Remove JDK Path from Environment Variavle: PATH
(2) install adoptium Open JDK 11
(2-1) Download JDK msi file - https://adoptium.net/temurin/releases/
Operating System: Windows
Architecture: x64
Package Type: JDK
Version: 11
install Type: .msi
(2-2) click OpenJDK11U-jdk_x64_windows_hotspot_11.0.18_10.msi
(2-3) GUI: Welcome to ..., Click Next
(2-4) GUI: Custom Setup,
(2-4-1) Set JAVA_HOME variale, drop down, select Entire feacture will be installed on local hard drive
(2-4-2) JavaSoft(Oracle) registry keys, drop down, select Entire feacture will be installed on local hard drive
(2-4-3) Click Next
(2-5) GUI: Ready to install ..., click Install
(2-6) Windows: User Account Control, Do you want to allow..., clock Yes
(2-7) GUI: Completed the Eclipse ..., click Finish
I try to use docker-compose to containerize with starting MySQL server container first, and then start a Springboot Container to connect with the MySQL container.
But the Connection is fail(See full version in the terminal log below
web_1 | com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure
How should I make changes to start my MySQL container first, then link it the Springboot Server to MySQL?
My terminal log
$ docker-compose up
Creating network "backend_default" with the default driver
Creating backend_db_1 ... done
Creating backend_web_1 ... done
Attaching to backend_db_1, backend_web_1
db_1 | 2020-03-15 05:59:09+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.19-1debian10 started.
db_1 | 2020-03-15 05:59:09+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
db_1 | 2020-03-15 05:59:09+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.19-1debian10 started.
web_1 | Trying to connect to MySQL at db:3306...
db_1 | 2020-03-15 05:59:09+00:00 [Note] [Entrypoint]: Initializing database files
web_1 | /wrapper.sh: connect: Connection refused
web_1 | /wrapper.sh: line 2: /dev/tcp/db/3306: Connection refused
db_1 | 2020-03-15T05:59:09.686844Z 0 [Warning] [MY-011070] [Server] 'Disabling symbolic links using --skip-symbolic-links (or equivalent) is the default. Consider not using this option as it' is deprecated and will be removed in a future release.
db_1 | 2020-03-15T05:59:09.686961Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.0.19) initializing of server in progress as process 43
db_1 | 2020-03-15T05:59:12.938749Z 5 [Warning] [MY-010453] [Server] root#localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.
db_1 | 2020-03-15 05:59:16+00:00 [Note] [Entrypoint]: Database files initialized
db_1 | 2020-03-15 05:59:16+00:00 [Note] [Entrypoint]: Starting temporary server
db_1 | 2020-03-15T05:59:17.100779Z 0 [Warning] [MY-011070] [Server] 'Disabling symbolic links using --skip-symbolic-links (or equivalent) is the default. Consider not using this option as it' is deprecated and will be removed in a future release.
db_1 | 2020-03-15T05:59:17.100921Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.19) starting as process 93
db_1 | 2020-03-15T05:59:17.688885Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
db_1 | 2020-03-15T05:59:17.692200Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
db_1 | 2020-03-15T05:59:17.730154Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.19' socket: '/var/run/mysqld/mysqld.sock' port: 0 MySQL Community Server - GPL.
db_1 | 2020-03-15 05:59:17+00:00 [Note] [Entrypoint]: Temporary server started.
db_1 | 2020-03-15T05:59:17.802956Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Socket: '/var/run/mysqld/mysqlx.sock'
db_1 | Warning: Unable to load '/usr/share/zoneinfo/iso3166.tab' as time zone. Skipping it.
db_1 | Warning: Unable to load '/usr/share/zoneinfo/leap-seconds.list' as time zone. Skipping it.
web_1 | /wrapper.sh: connect: Connection refused
web_1 | /wrapper.sh: line 2: /dev/tcp/db/3306: Connection refused
web_1 | Trying to connect to MySQL at db:3306...
db_1 | Warning: Unable to load '/usr/share/zoneinfo/zone.tab' as time zone. Skipping it.
db_1 | Warning: Unable to load '/usr/share/zoneinfo/zone1970.tab' as time zone. Skipping it.
db_1 | 2020-03-15 05:59:24+00:00 [Note] [Entrypoint]: Creating database dog_of_the_dow_app
db_1 | 2020-03-15 05:59:24+00:00 [Note] [Entrypoint]: Creating user shihao
db_1 | 2020-03-15 05:59:24+00:00 [Note] [Entrypoint]: Giving user shihao access to schema dog_of_the_dow_app
db_1 |
db_1 | 2020-03-15 05:59:24+00:00 [Note] [Entrypoint]: Stopping temporary server
db_1 | 2020-03-15T05:59:24.460353Z 14 [System] [MY-013172] [Server] Received SHUTDOWN from user root. Shutting down mysqld (Version: 8.0.19).
db_1 | 2020-03-15T05:59:25.812000Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.19) MySQL Community Server - GPL.
db_1 | 2020-03-15 05:59:26+00:00 [Note] [Entrypoint]: Temporary server stopped
db_1 |
db_1 | 2020-03-15 05:59:26+00:00 [Note] [Entrypoint]: MySQL init process done. Ready for start up.
db_1 |
db_1 | 2020-03-15T05:59:26.755391Z 0 [Warning] [MY-011070] [Server] 'Disabling symbolic links using --skip-symbolic-links (or equivalent) is the default. Consider not using this option as it' is deprecated and will be removed in a future release.
db_1 | 2020-03-15T05:59:26.755538Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.19) starting as process 1
db_1 | 2020-03-15T05:59:27.241304Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
db_1 | 2020-03-15T05:59:27.245423Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
db_1 | 2020-03-15T05:59:27.270535Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.19' socket: '/var/run/mysqld/mysqld.sock' port: 3306 MySQL Community Server - GPL.
db_1 | 2020-03-15T05:59:27.417150Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Socket: '/var/run/mysqld/mysqlx.sock' bind-address: '::' port: 33060
web_1 | >> connected to MySQL database! <<
web_1 |
web_1 | . ____ _ __ _ _
web_1 | /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
web_1 | ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
web_1 | \\/ ___)| |_)| | | | | || (_| | ) ) ) )
web_1 | ' |____| .__|_| |_|_| |_\__, | / / / /
web_1 | =========|_|==============|___/=/_/_/_/
web_1 | :: Spring Boot :: (v2.2.4.RELEASE)
web_1 |
web_1 | 2020-03-15 05:59:32.794 INFO 8 --- [ main] c.s.a.w.d.DogOfTheDowAppApplication : Starting DogOfTheDowAppApplication v0.0.1-SNAPSHOT on 754a319ebef1 with PID 8 (/app.jar started by root in /)
web_1 | 2020-03-15 05:59:32.811 INFO 8 --- [ main] c.s.a.w.d.DogOfTheDowAppApplication : The following profiles are active: containers
web_1 | 2020-03-15 05:59:34.732 INFO 8 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
web_1 | 2020-03-15 05:59:34.886 INFO 8 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 131ms. Found 2 JPA repository interfaces.
web_1 | 2020-03-15 05:59:35.721 INFO 8 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
web_1 | 2020-03-15 05:59:36.338 INFO 8 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)
web_1 | 2020-03-15 05:59:36.375 INFO 8 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
web_1 | 2020-03-15 05:59:36.376 INFO 8 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.30]
web_1 | 2020-03-15 05:59:36.528 INFO 8 --- [ main] o.a.c.c.C.[.[.[/mobile-app-ws] : Initializing Spring embedded WebApplicationContext
web_1 | 2020-03-15 05:59:36.529 INFO 8 --- [ main] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 3531 ms
web_1 | 2020-03-15 05:59:37.363 INFO 8 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default]
web_1 | 2020-03-15 05:59:37.588 INFO 8 --- [ main] org.hibernate.Version : HHH000412: Hibernate Core {5.4.10.Final}
web_1 | 2020-03-15 05:59:38.015 INFO 8 --- [ main] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.1.0.Final}
web_1 | 2020-03-15 05:59:38.325 INFO 8 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
web_1 | 2020-03-15 05:59:39.613 ERROR 8 --- [ main] com.zaxxer.hikari.pool.HikariPool : HikariPool-1 - Exception during pool initialization.
web_1 |
web_1 | com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure
web_1 |
web_1 | The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
web_1 | at com.mysql.cj.jdbc.exceptions.SQLError.createCommunicationsException(SQLError.java:174) ~[mysql-connector-java-8.0.19.jar!/:8.0.19]
web_1 | at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:64) ~[mysql-connector-java-8.0.19.jar!/:8.0.19]
...
....
web_1 |
backend_web_1 exited with code 1
My Dockerfile
Download required images
and run the wrapper.sh
wrapper.sh will keep checking if the mysql container is successfully running
if so, than start the springboot, otherwise not
FROM openjdk:8-jdk-alpine
ARG JAR_FILE=target/*.jar
COPY ${JAR_FILE} app.jar
ARG SH_FILE=src/main/resources/*.sh
COPY ${SH_FILE} wrapper.sh
RUN /bin/sh -c "apk add --no-cache bash"
RUN bash -c 'touch /app.jar'
RUN bash -c 'chmod +x /wrapper.sh'
ENTRYPOINT ["/bin/bash", "/wrapper.sh"]
My wrapper.sh file
keep checking mysql server
#!/usr/bin/env bash
while ! exec 6<>/dev/tcp/${DATABASE_HOST}/${DATABASE_PORT}; do
echo "Trying to connect to MySQL at ${DATABASE_HOST}:${DATABASE_PORT}..."
sleep 10
done
echo ">> connected to MySQL database! <<"
java -Djava.security.egd=file:/dev/./urandom -Dspring.profiles.active=containers -jar /app.jar
My docker-compose file
version: "2"
services:
db:
image: mysql:latest
environment:
- MYSQL_ROOT_PASSWORD=rootpassword
- MYSQL_DATABASE=example
- MYSQL_USER=shihao
- MYSQL_PASSWORD=shihao
ports:
- 3306:3306
web:
image: xli68/dog_of_the_dow:latest
depends_on:
- db
ports:
- 8080:8080
environment:
- DATABASE_HOST=db
- DATABASE_USER=shihao
- DATABASE_PASSWORD=shihao
- DATABASE_NAME=dog_of_the_dow_app
- DATABASE_PORT=3306
We are using Spring MVC framework, and have a button on our storefront on clicking on the button, we rarely receive the following error on console.
INFO | jvm 1 | main | 2017/06/28 13:08:03.644 | Jun 28, 2017 1:08:03 PM org.apache.catalina.core.StandardWrapperValve invoke
INFO | jvm 1 | main | 2017/06/28 13:08:03.644 | SEVERE: Servlet.service() for servlet [DispatcherServlet] in context with path [] threw exception [Error while processing internal filterchain. Exception occurred at chain position: 8 of 11. Current filter: 'FilterChainProxy[Filter Chains: [[ Ant [pattern='/_ui/**'], []], [ Ant [pattern='/steeldeals/**'], []], [ Ant [pattern='/checkout/**'], [org.springframework.security.web.access.channel.ChannelProcessingFilter#6ccd9b91, org.springframework.security.web.context.SecurityContextPersistenceFilter#2ea08465, org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter#2c541acd, org.springframework.security.web.authentication.logout.LogoutFilter#45ab9f77, org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter#672615d, org.springframework.security.web.savedrequest.RequestCacheAwareFilter#3f5623f9, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter#3053d0eb, org.springframework.security.web.authentication.AnonymousAuthenticationFilter#4eb90d16, org.springframework.security.web.session.SessionManagementFilter#570a47ba, org.springframework.security.web.access.ExceptionTranslationFilter#63eb30fa, org.springframework.security.web.access.intercept.FilterSecurityInterceptor#65dca055]], [ com.amc.storefront.security.ExcludeUrlRequestMatcher#27f047cf, [org.springframework.security.web.access.channel.ChannelProcessingFilter#ffa7b85, org.springframework.security.web.context.SecurityContextPersistenceFilter#5c360f5, org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter#5e1277c7, org.springframework.security.web.authentication.logout.LogoutFilter#e75da11, org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter#5b3f9981, org.springframework.security.web.savedrequest.RequestCacheAwareFilter#2c7712f4, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter#3d7d67fa, org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter#74356d9f, org.springframework.security.web.authentication.AnonymousAuthenticationFilter#5fb01d53, org.springframework.security.web.session.SessionManagementFilter#23556539, org.springframework.security.web.access.ExceptionTranslationFilter#3b68934e, org.springframework.security.web.access.intercept.FilterSecurityInterceptor#4e9f045a]]]]'!; nested exception is java.lang.IllegalArgumentException: No enum constant org.springframework.http.HttpMethod.PROPFIND] with root cause
INFO | jvm 1 | main | 2017/06/28 13:08:03.644 | java.lang.IllegalArgumentException: No enum constant org.springframework.http.HttpMethod.PROPFIND
INFO | jvm 1 | main | 2017/06/28 13:08:03.644 | at java.lang.Enum.valueOf(Enum.java:236)
INFO | jvm 1 | main | 2017/06/28 13:08:03.644 | at org.springframework.http.HttpMethod.valueOf(HttpMethod.java:27)
INFO | jvm 1 | main | 2017/06/28 13:08:03.644 | at org.springframework.security.web.util.matcher.AntPathRequestMatcher.matches(AntPathRequestMatcher.java:125)
INFO | jvm 1 | main | 2017/06/28 13:08:03.644 | at org.springframework.security.web.access.intercept.DefaultFilterInvocationSecurityMetadataSource.getAttributes(DefaultFilterInvocationSecurityMetadataSource.java:86)
INFO | jvm 1 | main | 2017/06/28 13:08:03.644 | at org.springframework.security.web.access.channel.ChannelProcessingFilter.doFilter(ChannelProcessingFilter.java:130)
INFO | jvm 1 | main | 2017/06/28 13:08:03.644 | at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
INFO | jvm 1 | main | 2017/06/28 13:08:03.644 | at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
INFO | jvm 1 | main | 2017/06/28 13:08:03.644 | at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
INFO | jvm 1 | main | 2017/06/28 13:08:03.644 | at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:226)
We are using the following code snippet in spring-security-config.xml
<security:http pattern="/_ui/**" security="none"/>
<security:http pattern="/SteelDeals/**" security="none"/>
<!-- Security config for checkout - it has its own login page -->
<security:http disable-url-rewriting="true" pattern="/checkout/**" use-expressions="true">
<security:anonymous username="anonymous" granted-authority="ROLE_ANONYMOUS" />
<security:session-management session-authentication-strategy-ref="fixation" />
<!--<security:session-management session-fixation-protection="none" />-->
<!-- SSL / AUTHENTICATED pages -->
<security:intercept-url pattern="/checkout/j_spring_security_check" requires-channel="https"/>
<security:intercept-url pattern="/checkout*" requires-channel="https"/>
<security:intercept-url pattern="/checkout/**" requires-channel="https"/>
You can configure the dispatcherServlet to dispatch only the methods you want to process. However, you wn't be able to process non existent HTTP methods.
Your code is already rejecting the wrong methods, You are getting this error it means there is some problem in your client code (code which is accessing your controller e.g. ui code).
However, if you want to define a specific method for your controller url you can do by using method property of #RequestMapping annotation
#RequestMapping(value = "/bucket", method = {RequestMethod.GET})
public Collection<BucketResponse> getBucket() {
return service.getBucket();
}
After upgrading sonatype nexus to 2.14.2-02 from 2.7.2, nexus will not start. The log file indicates the following error:
WARN [jetty-main-1] *SYSTEM
org.eclipse.jetty.util.component.AbstractLifeCycle - FAILED
com.yammer.metrics.jetty.InstrumentedHandler#3571ef12:
java.lang.NoSuchMethodError:
org.sonatype.nexus.util.file.DirSupport.mkdir(Ljava/io/File;)V
Here is the wrapper.log file:
wrapper | --> Wrapper Started as Daemon
wrapper | Launching a JVM...
jvm 1 | SLF4J: Class path contains multiple SLF4J bindings.
jvm 1 | SLF4J: Found binding in [jar:file:/usr/local/nexus-2.14.2-01/lib/logback-classic-1.0.13.jar!/org/slf4j/impl/StaticLoggerBinder.class]
jvm 1 | SLF4J: Found binding in [jar:file:/usr/local/nexus-2.14.2-01/lib/logback-classic-1.1.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
jvm 1 | SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
jvm 1 | SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
jvm 1 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
jvm 1 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
jvm 1 |
jvm 1 | 2017-01-24 16:05:16,411-0500 INFO [WrapperListener_start_runner] *SYSTEM org.sonatype.nexus.bootstrap.jsw.JswLauncher - Starting with arguments: [./conf/jetty.xml, ./conf/jetty-requestlog.xml]
jvm 1 | 2017-01-24 16:05:16,414-0500 INFO [WrapperListener_start_runner] *SYSTEM org.sonatype.nexus.bootstrap.jsw.JswLauncher - JVM ID: 1, JVM PID: 2462, Wrapper PID: 2460, User: nexus
jvm 1 | 2017-01-24 16:05:16,449-0500 INFO [WrapperListener_start_runner] *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - Properties:
jvm 1 | 2017-01-24 16:05:16,450-0500 INFO [WrapperListener_start_runner] *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - application-conf='/usr/local/nexus-2.14.2-01/../sonatype-work/nexus/conf'
jvm 1 | 2017-01-24 16:05:16,450-0500 INFO [WrapperListener_start_runner] *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - application-host='0.0.0.0'
jvm 1 | 2017-01-24 16:05:16,450-0500 INFO [WrapperListener_start_runner] *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - application-port='8081'
jvm 1 | 2017-01-24 16:05:16,450-0500 INFO [WrapperListener_start_runner] *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - bundleBasedir='/usr/local/nexus-2.14.2-01'
jvm 1 | 2017-01-24 16:05:16,450-0500 INFO [WrapperListener_start_runner] *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - java.awt.headless='true'
jvm 1 | 2017-01-24 16:05:16,450-0500 INFO [WrapperListener_start_runner] *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - networkaddress.cache.ttl='3600'
jvm 1 | 2017-01-24 16:05:16,450-0500 INFO [WrapperListener_start_runner] *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - nexus-app='/usr/local/nexus-2.14.2-01/nexus/WEB-INF'
jvm 1 | 2017-01-24 16:05:16,450-0500 INFO [WrapperListener_start_runner] *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - nexus-webapp='/usr/local/nexus-2.14.2-01/nexus'
jvm 1 | 2017-01-24 16:05:16,450-0500 INFO [WrapperListener_start_runner] *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - nexus-webapp-context-path='/nexus'
jvm 1 | 2017-01-24 16:05:16,450-0500 INFO [WrapperListener_start_runner] *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - nexus-work='/usr/local/sonatype-work/nexus'
jvm 1 | 2017-01-24 16:05:16,450-0500 INFO [WrapperListener_start_runner] *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - org.eclipse.ecf.provider.filetransfer.retrieve.readTimeout='30000'
jvm 1 | 2017-01-24 16:05:16,450-0500 INFO [WrapperListener_start_runner] *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - runtime='/usr/local/nexus-2.14.2-01/nexus/WEB-INF'
jvm 1 | 2017-01-24 16:05:16,450-0500 INFO [WrapperListener_start_runner] *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - security-xml-file='/usr/local/nexus-2.14.2-01/../sonatype-work/nexus/conf/security.xml'
jvm 1 | 2017-01-24 16:05:16,450-0500 INFO [WrapperListener_start_runner] *SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - storage.diskCache.bufferSize='4096'
jvm 1 | 2017-01-24 16:05:16,451-0500 INFO [WrapperListener_start_runner] *SYSTEM org.sonatype.nexus.bootstrap.Launcher - Java: 1.7.0_40, Java HotSpot(TM) 64-Bit Server VM, Oracle Corporation, 24.0-b56
jvm 1 | 2017-01-24 16:05:16,451-0500 INFO [WrapperListener_start_runner] *SYSTEM org.sonatype.nexus.bootstrap.Launcher - OS: Linux, 2.6.32-573.18.1.el6.x86_64, amd64
jvm 1 | 2017-01-24 16:05:16,451-0500 INFO [WrapperListener_start_runner] *SYSTEM org.sonatype.nexus.bootstrap.Launcher - User: nexus, en, /home/nexus
jvm 1 | 2017-01-24 16:05:16,451-0500 INFO [WrapperListener_start_runner] *SYSTEM org.sonatype.nexus.bootstrap.Launcher - CWD: /usr/local/nexus-2.14.2-01
jvm 1 | 2017-01-24 16:05:16,462-0500 INFO [WrapperListener_start_runner] *SYSTEM org.sonatype.nexus.bootstrap.Launcher - TMP: /usr/local/sonatype-work/nexus/tmp
jvm 1 | 2017-01-24 16:05:16,464-0500 INFO [WrapperListener_start_runner] *SYSTEM org.sonatype.nexus.bootstrap.jetty.JettyServer - Starting
jvm 1 | 2017-01-24 16:05:16,472-0500 INFO [WrapperListener_start_runner] *SYSTEM org.sonatype.nexus.bootstrap.jetty.JettyServer - Applying configuration: file:/usr/local/nexus-2.14.2-01/conf/jetty.xml
jvm 1 | 2017-01-24 16:05:16,663-0500 INFO [WrapperListener_start_runner] *SYSTEM org.sonatype.nexus.bootstrap.jetty.JettyServer - Applying configuration: file:/usr/local/nexus-2.14.2-01/conf/jetty-requestlog.xml
jvm 1 | 2017-01-24 16:05:16,677-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.bootstrap.jetty.JettyServer - Starting: org.eclipse.jetty.server.Server#3b7eb6b2
jvm 1 | 2017-01-24 16:05:16,679-0500 INFO [jetty-main-1] *SYSTEM org.eclipse.jetty.server.Server - jetty-8.1.16.v20140903
jvm 1 | 2017-01-24 16:05:17,771-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.webapp.WebappBootstrap - Initializing
jvm 1 | 2017-01-24 16:05:17,772-0500 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.webapp.WebappBootstrap - Using bootstrap launcher configuration
jvm 1 | 2017-01-24 16:05:17,777-0500 WARN [jetty-main-1] *SYSTEM org.eclipse.jetty.util.component.AbstractLifeCycle - FAILED o.e.j.w.WebAppContext{/nexus,file:/usr/local/nexus-2.14.2-01/nexus/},/usr/local/nexus-2.14.2-01/nexus: java.lang.NoSuchMethodError: org.sonatype.nexus.util.file.DirSupport.mkdir(Ljava/io/File;)V
jvm 1 | java.lang.NoSuchMethodError: org.sonatype.nexus.util.file.DirSupport.mkdir(Ljava/io/File;)V
jvm 1 | at org.sonatype.nexus.webapp.WebappBootstrap.contextInitialized(WebappBootstrap.java:115) ~[na:na]
jvm 1 | at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:782) ~[jetty-server-8.1.16.v20140903.jar:8.1.16.v20140903]
jvm 1 | at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:424) ~[jetty-servlet-8.1.16.v20140903.jar:8.1.16.v20140903]
jvm 1 | at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:774) ~[jetty-server-8.1.16.v20140903.jar:8.1.16.v20140903]
jvm 1 | at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:249) ~[jetty-servlet-8.1.16.v20140903.jar:8.1.16.v20140903]
jvm 1 | at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1252) ~[jetty-webapp-8.1.11.v20130520.jar:8.1.11.v20130520]
jvm 1 | at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717) ~[jetty-server-8.1.16.v20140903.jar:8.1.16.v20140903]
jvm 1 | at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494) ~[jetty-webapp-8.1.11.v20130520.jar:8.1.11.v20130520]
jvm 1 | at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) [jetty-util-8.1.16.v20140903.jar:8.1.16.v20140903]
jvm 1 | at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95) [jetty-server-8.1.16.v20140903.jar:8.1.16.v20140903]
jvm 1 | at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) [jetty-util-8.1.16.v20140903.jar:8.1.16.v20140903]
jvm 1 | at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:229) [jetty-server-8.1.16.v20140903.jar:8.1.16.v20140903]
jvm 1 | at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) [jetty-util-8.1.16.v20140903.jar:8.1.16.v20140903]
jvm 1 | at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95) [jetty-server-8.1.16.v20140903.jar:8.1.16.v20140903]
jvm 1 | at org.eclipse.jetty.server.Server.doStart(Server.java:282) [jetty-server-8.1.16.v20140903.jar:8.1.16.v20140903]
jvm 1 | at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) [jetty-util-8.1.16.v20140903.jar:8.1.16.v20140903]
jvm 1 | at org.sonatype.nexus.bootstrap.jetty.JettyServer$JettyMainThread.run(JettyServer.java:247) [nexus-bootstrap-2.14.2-01.jar:2.14.2-01]
jvm 1 | 2017-01-24 16:05:17,778-0500 WARN [jetty-main-1] *SYSTEM org.eclipse.jetty.util.component.AbstractLifeCycle - FAILED com.yammer.metrics.jetty.InstrumentedHandler#3571ef12: java.lang.NoSuchMethodError: org.sonatype.nexus.util.file.DirSupport.mkdir(Ljava/io/File;)V
jvm 1 | java.lang.NoSuchMethodError: org.sonatype.nexus.util.file.DirSupport.mkdir(Ljava/io/File;)V
jvm 1 | at org.sonatype.nexus.webapp.WebappBootstrap.contextInitialized(WebappBootstrap.java:115) ~[na:na]
jvm 1 | at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:782) ~[jetty-server-8.1.16.v20140903.jar:8.1.16.v20140903]
jvm 1 | at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:424) ~[jetty-servlet-8.1.16.v20140903.jar:8.1.16.v20140903]
jvm 1 | at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:774) ~[jetty-server-8.1.16.v20140903.jar:8.1.16.v20140903]
jvm 1 | at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:249) ~[jetty-servlet-8.1.16.v20140903.jar:8.1.16.v20140903]
jvm 1 | at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1252) ~[jetty-webapp-8.1.11.v20130520.jar:8.1.11.v20130520]
jvm 1 | at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717) ~[jetty-server-8.1.16.v20140903.jar:8.1.16.v20140903]
jvm 1 | at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494) ~[jetty-webapp-8.1.11.v20130520.jar:8.1.11.v20130520]
jvm 1 | at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) [jetty-util-8.1.16.v20140903.jar:8.1.16.v20140903]
jvm 1 | at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95) [jetty-server-8.1.16.v20140903.jar:8.1.16.v20140903]
jvm 1 | at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) [jetty-util-8.1.16.v20140903.jar:8.1.16.v20140903]
jvm 1 | at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:229) [jetty-server-8.1.16.v20140903.jar:8.1.16.v20140903]
jvm 1 | at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) [jetty-util-8.1.16.v20140903.jar:8.1.16.v20140903]
jvm 1 | at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95) [jetty-server-8.1.16.v20140903.jar:8.1.16.v20140903]
jvm 1 | at org.eclipse.jetty.server.Server.doStart(Server.java:282) [jetty-server-8.1.16.v20140903.jar:8.1.16.v20140903]
jvm 1 | at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) [jetty-util-8.1.16.v20140903.jar:8.1.16.v20140903]
jvm 1 | at org.sonatype.nexus.bootstrap.jetty.JettyServer$JettyMainThread.run(JettyServer.java:247) [nexus-bootstrap-2.14.2-01.jar:2.14.2-01]
did you disable/remove/update plugins before updating? 3rd party plugins might need updating
It keeps on getting started and shutsdown in few seconds and is keep on looping.
Below is the log of start and shutdown of routes continuously
2016-01-04 14:35:03,340 | INFO | Thread-207 | BlueprintCamelContext | 117 - org.apache.camel.camel-core - 2.14.1 | Apache Camel 2.14.1 (CamelContext: NIP_Interfaces_Context) is shutting down
2016-01-04 14:35:03,340 | INFO | Thread-207 | BlueprintCamelContext | 117 - org.apache.camel.camel-core - 2.14.1 | Apache Camel 2.14.1 (CamelContext: NIP_Interfaces_Context) uptime not started
2016-01-04 14:35:03,340 | INFO | Thread-207 | BlueprintCamelContext | 117 - org.apache.camel.camel-core - 2.14.1 | Apache Camel 2.14.1 (CamelContext: NIP_Interfaces_Context) is shutdown in 0.000 seconds
2016-01-04 14:35:03,527 | INFO | rint Extender: 3 | ClientRouteBuilder | 8 - com.ndfs.nip.framework.nip-framework - 0.0.1.SNAPSHOT | Starting the route class com.ndfs.nip.hdi.as400.routes.ClientRouteBuilder in container NIP_Interfaces_Context
2016-01-04 14:35:03,527 | INFO | rint Extender: 3 | ClientRouteBuilder | 8 - com.ndfs.nip.framework.nip-framework - 0.0.1.SNAPSHOT | Route (class com.ndfs.nip.hdi.as400.routes.ClientRouteBuilder) started successfully in container NIP_Interfaces_Context
2016-01-04 14:35:03,527 | INFO | rint Extender: 3 | CoverageDefaultingRouteBuilder | 8 - com.ndfs.nip.framework.nip-framework - 0.0.1.SNAPSHOT | Starting the route class com.ndfs.nip.hdi.as400.routes.CoverageDefaultingRouteBuilder in container NIP_Interfaces_Context
2016-01-04 14:35:03,543 | INFO | rint Extender: 3 | CoverageDefaultingRouteBuilder | 8 - com.ndfs.nip.framework.nip-framework - 0.0.1.SNAPSHOT | Route (class com.ndfs.nip.hdi.as400.routes.CoverageDefaultingRouteBuilder) started successfully in container NIP_Interfaces_Context
2016-01-04 14:35:03,543 | INFO | rint Extender: 3 | DocumentRouteBuilder | 8 - com.ndfs.nip.framework.nip-framework - 0.0.1.SNAPSHOT | Starting the route class com.ndfs.nip.hdi.as400.routes.DocumentRouteBuilder in container NIP_Interfaces_Context
2016-01-04 14:35:03,543 | INFO | rint Extender: 3 | DocumentRouteBuilder | 8 - com.ndfs.nip.framework.nip-framework - 0.0.1.SNAPSHOT | Route (class com.ndfs.nip.hdi.as400.routes.DocumentRouteBuilder) started successfully in container NIP_Interfaces_Context
2016-01-04 14:35:03,543 | INFO | rint Extender: 3 | PolicyRouteBuilder | 8 - com.ndfs.nip.framework.nip-framework - 0.0.1.SNAPSHOT | Starting the route class com.ndfs.nip.hdi.as400.routes.PolicyRouteBuilder in container NIP_Interfaces_Context
2016-01-04 14:35:03,543 | INFO | rint Extender: 3 | PolicyRouteBuilder | 8 - com.ndfs.nip.framework.nip-framework - 0.0.1.SNAPSHOT | Route (class com.ndfs.nip.hdi.as400.routes.PolicyRouteBuilder) started successfully in container NIP_Interfaces_Context
2016-01-04 14:35:03,543 | INFO | rint Extender: 3 | PricingRouteBuilder | 8 - com.ndfs.nip.framework.nip-framework - 0.0.1.SNAPSHOT | Starting the route class com.ndfs.nip.hdi.as400.routes.PricingRouteBuilder in container NIP_Interfaces_Context
2016-01-04 14:35:03,543 | INFO | rint Extender: 3 | PricingRouteBuilder | 8 - com.ndfs.nip.framework.nip-framework - 0.0.1.SNAPSHOT | Route (class com.ndfs.nip.hdi.as400.routes.PricingRouteBuilder) started successfully in container NIP_Interfaces_Context
2016-01-04 14:35:03,543 | INFO | rint Extender: 3 | QuotConversionRouteBuilder | 8 - com.ndfs.nip.framework.nip-framework - 0.0.1.SNAPSHOT | Starting the route class com.ndfs.nip.hdi.as400.routes.QuotConversionRouteBuilder in container NIP_Interfaces_Context
2016-01-04 14:35:03,543 | INFO | rint Extender: 3 | QuotConversionRouteBuilder | 8 - com.ndfs.nip.framework.nip-framework - 0.0.1.SNAPSHOT | Route (class com.ndfs.nip.hdi.as400.routes.QuotConversionRouteBuilder) started successfully in container NIP_Interfaces_Context
2016-01-04 14:35:03,543 | INFO | rint Extender: 3 | QuotCreationRouteBuilder | 8 - com.ndfs.nip.framework.nip-framework - 0.0.1.SNAPSHOT | Starting the route class com.ndfs.nip.hdi.as400.routes.QuotCreationRouteBuilder in container NIP_Interfaces_Context
2016-01-04 14:35:03,543 | INFO | rint Extender: 3 | QuotCreationRouteBuilder | 8 - com.ndfs.nip.framework.nip-framework - 0.0.1.SNAPSHOT | Route (class com.ndfs.nip.hdi.as400.routes.QuotCreationRouteBuilder) started successfully in container NIP_Interfaces_Context
2016-01-04 14:35:03,543 | INFO | rint Extender: 3 | UpdateAuthStatusRouteBuilder | 8 - com.ndfs.nip.framework.nip-framework - 0.0.1.SNAPSHOT | Starting the route class com.ndfs.nip.hdi.ncp.routes.UpdateAuthStatusRouteBuilder in container NIP_Interfaces_Context
2016-01-04 14:35:04,673 | INFO | rint Extender: 3 | UpdateAuthStatusRouteBuilder | 8 - com.ndfs.nip.framework.nip-framework - 0.0.1.SNAPSHOT | Route (class com.ndfs.nip.hdi.ncp.routes.UpdateAuthStatusRouteBuilder) started successfully in container NIP_Interfaces_Context
2016-01-04 14:35:04,673 | INFO | rint Extender: 3 | NIPtoSBMTcDetailsRouteBuilder | 8 - com.ndfs.nip.framework.nip-framework - 0.0.1.SNAPSHOT | Starting the route class com.ndfs.nip.hdi.sbm.routes.NIPtoSBMTcDetailsRouteBuilder in container NIP_Interfaces_Context
2016-01-04 14:35:05,340 | INFO | rint Extender: 3 | NIPtoSBMTcDetailsRouteBuilder | 8 - com.ndfs.nip.framework.nip-framework - 0.0.1.SNAPSHOT | Route (class com.ndfs.nip.hdi.sbm.routes.NIPtoSBMTcDetailsRouteBuilder) started successfully in container NIP_Interfaces_Context
2016-01-04 14:35:05,340 | INFO | rint Extender: 3 | TaxIdDetailsRouteBuilder | 8 - com.ndfs.nip.framework.nip-framework - 0.0.1.SNAPSHOT | Starting the route class com.ndfs.nip.hdi.sbm.routes.TaxIdDetailsRouteBuilder in container NIP_Interfaces_Context
2016-01-04 14:35:06,471 | INFO | rint Extender: 3 | TaxIdDetailsRouteBuilder | 8 - com.ndfs.nip.framework.nip-framework - 0.0.1.SNAPSHOT | Route (class com.ndfs.nip.hdi.sbm.routes.TaxIdDetailsRouteBuilder) started successfully in container NIP_Interfaces_Context
2016-01-04 14:35:06,471 | INFO | rint Extender: 3 | TcDetailsRouteBuilder | 8 - com.ndfs.nip.framework.nip-framework - 0.0.1.SNAPSHOT | Starting the route class com.ndfs.nip.hdi.sbm.routes.TcDetailsRouteBuilder in container NIP_Interfaces_Context
2016-01-04 14:35:06,974 | INFO | rint Extender: 3 | TcDetailsRouteBuilder | 8 - com.ndfs.nip.framework.nip-framework - 0.0.1.SNAPSHOT | Route (class com.ndfs.nip.hdi.sbm.routes.TcDetailsRouteBuilder) started successfully in container NIP_Interfaces_Context
2016-01-04 14:35:06,974 | INFO | rint Extender: 3 | CustomerSearchRouteBuilder | 8 - com.ndfs.nip.framework.nip-framework - 0.0.1.SNAPSHOT | Starting the route class com.ndfs.nip.hdi.ws.routes.CustomerSearchRouteBuilder in container NIP_Interfaces_Context
2016-01-04 14:35:07,483 | INFO | rint Extender: 3 | CustomerSearchRouteBuilder | 8 - com.ndfs.nip.framework.nip-framework - 0.0.1.SNAPSHOT | Route (class com.ndfs.nip.hdi.ws.routes.CustomerSearchRouteBuilder) started successfully in container NIP_Interfaces_Context
2016-01-04 14:35:07,498 | INFO | rint Extender: 3 | BlueprintContainerImpl | 19 - org.apache.aries.blueprint.core - 1.4.2 | Bundle com.ndfs.nip.interfaces.nip-interfaces is waiting for dependencies [(&(component=http)(objectClass=org.apache.camel.spi.ComponentResolver)), (&(component=https)(objectClass=org.apache.camel.spi.ComponentResolver))]
2016-01-04 14:35:07,498 | INFO | Thread-209 | BlueprintCamelContext | 117 - org.apache.camel.camel-core - 2.14.1 | Apache Camel 2.14.1 (CamelContext: NIP_Interfaces_Context) is shutting down
2016-01-04 14:35:07,498 | INFO | Thread-209 | BlueprintCamelContext | 117 - org.apache.camel.camel-core - 2.14.1 | Apache Camel 2.14.1 (CamelContext: NIP_Interfaces_Context) uptime not started
2016-01-04 14:35:07,498 | INFO | Thread-209 | BlueprintCamelContext | 117 - org.apache.camel.camel-core - 2.14.1 | Apache Camel 2.14.1 (CamelContext: NIP_Interfaces_Context) is shutdown in 0.000 seconds
2016-01-04 14:35:07,592 | INFO | rint Extender: 2 | ClientRouteBuilder | 8 - com.ndfs.nip.framework.nip-framework - 0.0.1.SNAPSHOT | Starting the route class com.ndfs.nip.hdi.as400.routes.ClientRouteBuilder in container NIP_Interfaces_Context
2016-01-04 14:35:07,592 | INFO | rint Extender: 2 | ClientRouteBuilder | 8 - com.ndfs.nip.framework.nip-framework - 0.0.1.SNAPSHOT | Route (class com.ndfs.nip.hdi.as400.routes.ClientRouteBuilder) started successfully in container NIP_Interfaces_Context
2016-01-04 14:35:07,592 | INFO | rint Extender: 2 | CoverageDefaultingRouteBuilder | 8 - com.ndfs.nip.framework.nip-framework - 0.0.1.SNAPSHOT | Starting the route class com.ndfs.nip.hdi.as400.routes.CoverageDefaultingRouteBuilder in container NIP_Interfaces_Context
2016-01-04 14:35:07,592 | INFO | rint Extender: 2 | CoverageDefaultingRouteBuilder | 8 - com.ndfs.nip.framework.nip-framework - 0.0.1.SNAPSHOT | Route (class com.ndfs.nip.hdi.as400.routes.CoverageDefaultingRouteBuilder) started successfully in container NIP_Interfaces_Context
2016-01-04 14:35:07,592 | INFO | rint Extender: 2 | DocumentRouteBuilder | 8 - com.ndfs.nip.framework.nip-framework - 0.0.1.SNAPSHOT | Starting the route class com.ndfs.nip.hdi.as400.routes.DocumentRouteBuilder in container NIP_Interfaces_Context
2016-01-04 14:35:07,592 | INFO | rint Extender: 2 | DocumentRouteBuilder | 8 - com.ndfs.nip.framework.nip-framework - 0.0.1.SNAPSHOT | Route (class com.ndfs.nip.hdi.as400.routes.DocumentRouteBuilder) started successfully in container NIP_Interfaces_Context
2016-01-04 14:35:07,592 | INFO | rint Extender: 2 | PolicyRouteBuilder | 8 - com.ndfs.nip.framework.nip-framework - 0.0.1.SNAPSHOT | Starting the route class com.ndfs.nip.hdi.as400.routes.PolicyRouteBuilder in container NIP_Interfaces_Context
2016-01-04 14:35:07,592 | INFO | rint Extender: 2 | PolicyRouteBuilder | 8 - com.ndfs.nip.framework.nip-framework - 0.0.1.SNAPSHOT | Route (class com.ndfs.nip.hdi.as400.routes.PolicyRouteBuilder) started successfully in container NIP_Interfaces_Context
2016-01-04 14:35:07,592 | INFO | rint Extender: 2 | PricingRouteBuilder | 8 - com.ndfs.nip.framework.nip-framework - 0.0.1.SNAPSHOT | Starting the route class com.ndfs.nip.hdi.as400.routes.PricingRouteBuilder in container NIP_Interfaces_Context
2016-01-04 14:35:07,592 | INFO | rint Extender: 2 | PricingRouteBuilder | 8 - com.ndfs.nip.framework.nip-framework - 0.0.1.SNAPSHOT | Route (class com.ndfs.nip.hdi.as400.routes.PricingRouteBuilder) started successfully in container NIP_Interfaces_Context
2016-01-04 14:35:07,592 | INFO | rint Extender: 2 | QuotConversionRouteBuilder | 8 - com.ndfs.nip.framework.nip-framework - 0.0.1.SNAPSHOT | Starting the route class com.ndfs.nip.hdi.as400.routes.QuotConversionRouteBuilder in container NIP_Interfaces_Context
2016-01-04 14:35:07,592 | INFO | rint Extender: 2 | QuotConversionRouteBuilder | 8 - com.ndfs.nip.framework.nip-framework - 0.0.1.SNAPSHOT | Route (class com.ndfs.nip.hdi.as400.routes.QuotConversionRouteBuilder) started successfully in container NIP_Interfaces_Context
2016-01-04 14:35:07,592 | INFO | rint Extender: 2 | QuotCreationRouteBuilder | 8 - com.ndfs.nip.framework.nip-framework - 0.0.1.SNAPSHOT | Starting the route class com.ndfs.nip.hdi.as400.routes.QuotCreationRouteBuilder in container NIP_Interfaces_Context
2016-01-04 14:35:07,592 | INFO | rint Extender: 2 | QuotCreationRouteBuilder | 8 - com.ndfs.nip.framework.nip-framework - 0.0.1.SNAPSHOT | Route (class com.ndfs.nip.hdi.as400.routes.QuotCreationRouteBuilder) started successfully in container NIP_Interfaces_Context
2016-01-04 14:35:07,592 | INFO | rint Extender: 2 | UpdateAuthStatusRouteBuilder | 8 - com.ndfs.nip.framework.nip-framework - 0.0.1.SNAPSHOT | Starting the route class com.ndfs.nip.hdi.ncp.routes.UpdateAuthStatusRouteBuilder in container NIP_Interfaces_Context
2016-01-04 14:35:08,592 | INFO | rint Extender: 2 | UpdateAuthStatusRouteBuilder | 8 - com.ndfs.nip.framework.nip-framework - 0.0.1.SNAPSHOT | Route (class com.ndfs.nip.hdi.ncp.routes.UpdateAuthStatusRouteBuilder) started successfully in container NIP_Interfaces_Context
2016-01-04 14:35:08,592 | INFO | rint Extender: 2 | NIPtoSBMTcDetailsRouteBuilder | 8 - com.ndfs.nip.framework.nip-framework - 0.0.1.SNAPSHOT | Starting the route class com.ndfs.nip.hdi.sbm.routes.NIPtoSBMTcDetailsRouteBuilder in container NIP_Interfaces_Context
2016-01-04 14:35:09,108 | INFO | rint Extender: 2 | NIPtoSBMTcDetailsRouteBuilder | 8 - com.ndfs.nip.framework.nip-framework - 0.0.1.SNAPSHOT | Route (class com.ndfs.nip.hdi.sbm.routes.NIPtoSBMTcDetailsRouteBuilder) started successfully in container NIP_Interfaces_Context
2016-01-04 14:35:09,108 | INFO | rint Extender: 2 | TaxIdDetailsRouteBuilder | 8 - com.ndfs.nip.framework.nip-framework - 0.0.1.SNAPSHOT | Starting the route class com.ndfs.nip.hdi.sbm.routes.TaxIdDetailsRouteBuilder in container NIP_Interfaces_Context
2016-01-04 14:35:10,162 | INFO | rint Extender: 2 | TaxIdDetailsRouteBuilder | 8 - com.ndfs.nip.framework.nip-framework - 0.0.1.SNAPSHOT | Route (class com.ndfs.nip.hdi.sbm.routes.TaxIdDetailsRouteBuilder) started successfully in container NIP_Interfaces_Context
2016-01-04 14:35:10,162 | INFO | rint Extender: 2 | TcDetailsRouteBuilder | 8 - com.ndfs.nip.framework.nip-framework - 0.0.1.SNAPSHOT | Starting the route class com.ndfs.nip.hdi.sbm.routes.TcDetailsRouteBuilder in container NIP_Interfaces_Context
2016-01-04 14:35:10,708 | INFO | rint Extender: 2 | TcDetailsRouteBuilder | 8 - com.ndfs.nip.framework.nip-framework - 0.0.1.SNAPSHOT | Route (class com.ndfs.nip.hdi.sbm.routes.TcDetailsRouteBuilder) started successfully in container NIP_Interfaces_Context
2016-01-04 14:35:10,708 | INFO | rint Extender: 2 | CustomerSearchRouteBuilder | 8 - com.ndfs.nip.framework.nip-framework - 0.0.1.SNAPSHOT | Starting the route class com.ndfs.nip.hdi.ws.routes.CustomerSearchRouteBuilder in container NIP_Interfaces_Context
Also the blueprint extender: 1, blueprint extender: 2 keeps on coming. Checked the log level in debug mode, there are no unusual errors. Can someone help me deal with such issue please?
This line
BlueprintContainerImpl | 19 - org.apache.aries.blueprint.core - 1.4.2 | Bundle com.ndfs.nip.interfaces.nip-interfaces is waiting for dependencies [(&(component=http)(objectClass=org.apache.camel.spi.ComponentResolver)), (&(component=https)(objectClass=org.apache.camel.spi.ComponentResolver))]
indicates that you need to install camel-http component that has the http component. In the JBoss Fuse shell type: features:install camel-http to install it.