File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Log4j problems in JBoss 3.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Log4j problems in JBoss 3.0" Watch "Log4j problems in JBoss 3.0" New topic
Author

Log4j problems in JBoss 3.0

David Rocks
Ranch Hand

Joined: Apr 24, 2001
Posts: 162
Hi,
I have just deployed my app on the new Jboss 3.0. the problem is that log4j is not working. I am getting this error and i have no idea why.
java.lang.NoSuchMethodError
at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:298)
at org.apache.log4j.WriterAppender.append(WriterAppender.java:157)
at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:221)
The code that causes this is
public class RemoteFactory {
private Context context ;
private boolean debug = true ;
private static final Category log = Category.getInstance(RemoteFactory.class);
/**
*
*
*
*/
public UserManager getUserManager() throws Exception {

log.info("RemoteFactory::getUserManager()" );


etc etc.
it is the log line that throws the error as it goes into the log4j classes. It is the default application of JBoss so i would assume that all of the jars would be contained.
Does anybody know how to get rid of this. Another problem is that System.out.println does no longer work for some reason ion version 3.0.
Any help would be greatly appreciated.
David
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Log4j problems in JBoss 3.0
 
Similar Threads
logging test messages
EJB deployment problem
App won't run when client is on a different machine than server - $donation
J2EE and Logging
catching warnings