[codec] DigestUtils.md5Hex Exception inside Servlet
Hello, The DigestUtils.md5Hex method generate an exception when used inside a Servlet : java.lang.NoClassDefFoundError: org/apache/commons/codec/digest/DigestUtils The class DigestUtils works correctly when used in a test class with main method in the same project. The same error appears when it is used in a bean associated to a JSP page using MyFaces. Thanks Fahmi
[pool]
I've run into a strange problem. When I initiate my database connections I see the following behavior: 1st connection from the pool is created instantly all other connections are created really slowly, it seems every 5 second 1 new connection gets connected. When all connections are connected to the db, everything works like it should. The waiting connection requests all are in the same state: java.lang.Thread.State: TIMED_WAITING (on object monitor) at java.lang.Object.wait(Native Method) at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1123) - locked 0x000741c54170 (a org.apache.commons.pool.impl.GenericObjectPool$Latch) at org.apache.commons.dbcp.PoolingDriver.connect(PoolingDriver.java:180) at java.sql.DriverManager.getConnection(DriverManager.java:582) at java.sql.DriverManager.getConnection(DriverManager.java:207) It seems like one gets revived every 5 sec, and then connects to the db. My question is if it is possible to change this internal wait of 5 sec? Bernard
Re: [pool]
On 4/7/11 7:49 AM, Bernard Maassen wrote: I've run into a strange problem. When I initiate my database connections I see the following behavior: 1st connection from the pool is created instantly all other connections are created really slowly, it seems every 5 second 1 new connection gets connected. When all connections are connected to the db, everything works like it should. The waiting connection requests all are in the same state: java.lang.Thread.State: TIMED_WAITING (on object monitor) at java.lang.Object.wait(Native Method) at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1123) - locked 0x000741c54170 (a org.apache.commons.pool.impl.GenericObjectPool$Latch) at org.apache.commons.dbcp.PoolingDriver.connect(PoolingDriver.java:180) at java.sql.DriverManager.getConnection(DriverManager.java:582) at java.sql.DriverManager.getConnection(DriverManager.java:207) It seems like one gets revived every 5 sec, and then connects to the db. My question is if it is possible to change this internal wait of 5 sec? Bernard What versions of [pool] and [dbcp] are you running? What are the pool configuration parameters? Phil - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
[io] Apache Tailer prevents log4j from creating backup files?
Hello, I am trying to use Apache Tailer for a utility that processes log file entries. My log4j configuration creates backup files when the max file size has been reached. It seems the Tailer is correctly handling the file roll over without missing any lines but log4j is no longer creating the .1 etc back-up files. I suspect it is a conflict between with how Tailer has opened the file and how log4j created backups. Does anybody else have similar experience? Is it a usage error on my part? Thanks in advance for any answers, pointers or suggestions.
Re: [io] Apache Tailer prevents log4j from creating backup files?
On 7 April 2011 18:04, Hemal Pandya hemal.pan...@gmail.com wrote: Hello, I am trying to use Apache Tailer for a utility that processes log file entries. My log4j configuration creates backup files when the max file size has been reached. It seems the Tailer is correctly handling the file roll over without missing any lines but log4j is no longer creating the .1 etc back-up files. I suspect it is a conflict between with how Tailer has opened the file and how log4j created backups. Does anybody else have similar experience? Is it a usage error on my part? Thanks in advance for any answers, pointers or suggestions. OS? Java version? IO version? - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [codec] DigestUtils.md5Hex Exception inside Servlet
That's a pretty boring class Java-wise and it seems unlikely that your container is putting codec in the classpath on its own, so I suspect the problem is in how you're making the jar available within the servlet container. Hen On Thu, Apr 7, 2011 at 1:23 AM, Fahmi Hachicha fahmi.hachi...@gmail.com wrote: Hello, The DigestUtils.md5Hex method generate an exception when used inside a Servlet : java.lang.NoClassDefFoundError: org/apache/commons/codec/digest/DigestUtils The class DigestUtils works correctly when used in a test class with main method in the same project. The same error appears when it is used in a bean associated to a JSP page using MyFaces. Thanks Fahmi - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [io] Apache Tailer prevents log4j from creating backup files?
[I Just realized the list allows posts from non-subscribers, but following up on an existing post is not easy. Hopefully this will land up in the same thread] OS? Java version? IO version? I am developing on Windows XP SP2 but it would be deployed on Windows Server 08. Java version is 1.6.0, _20 or higher. I downloaded the latest common-io yesterday, commons-io-2.0.1. Thanks Hemal On Thu, Apr 7, 2011 at 10:34 PM, Hemal Pandya hemal.pan...@gmail.com wrote: Hello, I am trying to use Apache Tailer for a utility that processes log file entries. My log4j configuration creates backup files when the max file size has been reached. It seems the Tailer is correctly handling the file roll over without missing any lines but log4j is no longer creating the .1 etc back-up files. I suspect it is a conflict between with how Tailer has opened the file and how log4j created backups. Does anybody else have similar experience? Is it a usage error on my part? Thanks in advance for any answers, pointers or suggestions. - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org