我以前工作的applet现在失败了。我正在使用Log4J,没有任何改变,但它似乎是为JDK 1.3 logging配置的。(搜索META-INF / services)什么可以改变那些没有或如何覆盖现在的?谢谢。
network: Connecting http://localhost:8083/10sdaanyd/org/apache/commons/logging/impl/WeakHashtable.class with cookie "blackbird={pos:2,size:1,load:null}; JSESSIONID=4D81E3F41BF95EE15BB2D44F54D837C8"
network: Connecting http://localhost:8083/10sdaanyd/commons-logging.properties with proxy=DIRECT
network: Connecting http://localhost:8083/10sdaanyd/commons-logging.properties with cookie "blackbird={pos:2,size:1,load:null}; JSESSIONID=4D81E3F41BF95EE15BB2D44F54D837C8"
network: Cache entry not found [url: http://localhost:8083/10sdaanyd/META-INF/services/org.apache.commons.logging.LogFactory, version: null]
network: Connecting http://localhost:8083/10sdaanyd/META-INF/services/org.apache.commons.logging.LogFactory with proxy=DIRECT
network: Connecting http://localhost:8083/10sdaanyd/META-INF/services/org.apache.commons.logging.LogFactory with cookie "blackbird={pos:2,size:1,load:null}; JSESSIONID=4D81E3F41BF95EE15BB2D44F54D837C8"
network: Cache entry not found [url: http://localhost:8083/10sdaanyd/org/apache/commons/logging/impl/LogFactoryImpl.class, version: null]
network: Connecting http://localhost:8083/10sdaanyd/org/apache/commons/logging/impl/LogFactoryImpl.class with proxy=DIRECT
network: Connecting http://localhost:8083/10sdaanyd/org/apache/commons/logging/impl/LogFactoryImpl.class with cookie "blackbird={pos:2,size:1,load:null}; JSESSIONID=4D81E3F41BF95EE15BB2D44F54D837C8"
奇怪的是它正在向行JSONSerializer.toJSON(JSONData00);
发出Log4J语句然后在commons / logging对象上发生错误。我正在使用json-lib-2.4-jdk15.jar。那要求公共/伐木吗?我如何阻止它,因为它需要不存在的路径,我无法创建。有什么帮助吗?
答案 0 :(得分:0)
解决。 它需要带有这两个名称/值行的commons-logging.properties
org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger
log4j.configuration=log4j.properties
另外,反过来说,beanutils,特别是Dynabean。我没有明确的方法调用,我相信我可以重构它来消除。 HTH。