aspose file tools*
The moose likes JBoss/WildFly and the fly likes Problem with DOMConfigurator.configure( Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Reply locked New topic
Author

Problem with DOMConfigurator.configure("log4j.xml");

Austin Shelton
Greenhorn

Joined: Jul 01, 2010
Posts: 11
Hi,

I get an error using Eclipse Helios on the following line in my servlet:

DOMConfigurator.configure("log4j.xml");

It complains about "Multiple markers at this line" and goes on to report that:

Syntax error on token(s) misplaced construct(s)
Syntax error on token "log4j.xml", delete this token

According to all I have read on the web, the line of code I am using should work. What have I done wrong?

Thanks.


Austin Shelton
ashelton3@gmail.com
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

Do not duplicate threads. Continue the discussion there.


[My Blog]
All roads lead to JavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with DOMConfigurator.configure("log4j.xml");