This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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

JavaRanch » Java Forums » Products » JBoss/WildFly
Reply locked New topic

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

Austin Shelton

Joined: Jul 01, 2010
Posts: 11

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


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?


Austin Shelton
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

Do not duplicate threads. Continue the discussion there.

[My Blog]
All roads lead to JavaRanch
I agree. Here's the link:
subject: Problem with DOMConfigurator.configure("log4j.xml");
It's not a secret anymore!