0
我有一個webstart應用程序,可以與Log4j 1一起正常工作。 現在我已經將它遷移到Log4J2。在Eclipse中一切正常。但是,如果我啓動它Webstart的應用,我總是得到消息:Log4j2 with webstart
"ERROR StatusLogger No log4j2 configuration file found.
Using default configuration:
logging only errors to the console.
Set system property 'org.apache.logging.log4j.simplelog.StatusLogger.level'
to TRACE to show Log4j2 internal initialization logging.
"
我做錯了嗎?
我的JNLP看起來像:
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="http://localhost:8085/MyApp/" href="client.jnlp">
<information>
<title>My new App</title>
<vendor>MyCompany</vendor>
<icon kind="splash" href="img/splash.jpg"/>
<icon href="img/logo.png"/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se"/>
<extension name="dependencies" href="dependencies.jnlp" />
<extension name="properties" href="properties.jnlp" />
</resources>
<application-desc main-class="com.client.MyApp">
<argument>-webstart</argument>
</application-desc>
</jnlp>
而且log4j.configuration被放置在properties.jnlp:
<jnlp spec="1.0+" href="properties.jnlp">
<information>
<title>My new App</title>
<vendor>MyCompany</vendor>
</information>
<security>
<all-permissions/>
</security>
<resources>
<!-- Properties -->
<j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se"/>
<property name="client.ini" value="http://localhost:8085/MyApp/cfg/client.ini"/>
<property name="log4j.configuration" value="http://localhost:8085/MyApp/cfg/log4j2.xml"/>
</resources>
<component-desc/>
</jnlp>