-
Notifications
You must be signed in to change notification settings - Fork 711
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
-Dlog4j.configurationFile=${bin}/log4j2.xml is always reported wrong,TKS! #562
Comments
I am upset with the URL problem!Thank you! |
This is Windows problem, please add file:// to the
I can not test on Windows, so maybe other things are broken. I am grateful for working examples. |
Thanks ,you are handsome! |
I can confirm in Windows 7 that setting the parameter to |
Thank you very much! |
Actually, I'm sorry, I have to edit my confirmation -- it said logging was going fine but then it crapped out and gave a similar error. It seems that %BIN% is being set to "%DIR%..\bin*" and the "*" is messing up the path to the log4j file. I finally seemed to have gotten around it by using an explicit path like "file://c:\esplugins\something\bin\log4j2.xml" |
Oh, You are a kind-hearted person. Well,Did you solve this problem. I search many talks, most of them says that there is no answers to it. TKS! |
Edit: Everything seemed to work properly (ES1.6, Windows 7) when I used these instructions instead: |
I had same problem with elasticsearch-jdbc-1.5.2.0. |
Thats solves!!! Thnx |
ERROR StatusLogger Invalid URL c:/elasticsearch-jdbc-1.6.0.0-dist/elasticsearch-
jdbc-1.6.0.0/bin/log4j2.xml java.net.MalformedURLException: unknown protocol: c
at java.net.URL.(URL.java:593)
at java.net.URL.(URL.java:483)
at java.net.URL.(URL.java:432)
at java.net.URI.toURL(URI.java:1089)
at org.apache.logging.log4j.core.config.ConfigurationFactory.getInputFro
mUri(ConfigurationFactory.java:296)
at org.apache.logging.log4j.core.config.ConfigurationFactory$Factory.get
Configuration(ConfigurationFactory.java:395)
at org.apache.logging.log4j.core.config.ConfigurationFactory.getConfigur
ation(ConfigurationFactory.java:254)
at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext
.java:419)
at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:
138)
at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log
4jContextFactory.java:207)
at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log
4jContextFactory.java:41)
at org.apache.logging.log4j.LogManager.getContext(LogManager.java:160)
at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:492)
at org.xbib.tools.Importer.(Importer.java:61)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at org.xbib.tools.Runner.main(Runner.java:25)
The text was updated successfully, but these errors were encountered: