This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 14687
    
  16

Do not duplicate threads. Continue the discussion there.


[My Blog]
All roads lead to JavaRanch
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Problem with DOMConfigurator.configure("log4j.xml");
 
Similar Threads
invalid FormalParameterList
Error in using JWIG
problem in System.out.println
DOMConfigurator.configure("log4j.xml") error
Is it me or just Eclipse... JEdit too...