aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes 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 » Engineering » IDEs, Version Control and other tools
Bookmark "DOMConfigurator.configure("log4j.xml") error" Watch "DOMConfigurator.configure("log4j.xml") error" New topic
Author

DOMConfigurator.configure("log4j.xml") error

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

Make sure you don't have a semi-colon missing, or a bracket not close before this statement.


[My Blog]
All roads lead to JavaRanch
Austin Shelton
Greenhorn

Joined: Jul 01, 2010
Posts: 11
Hmm. It stil doesn't work. Any other suggestions? Thanks.
Austin Shelton
Greenhorn

Joined: Jul 01, 2010
Posts: 11
Thank for the tip. Unfortunately, Eclipse/Helios still makes the same complaint...
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

Can you post the full method ?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: DOMConfigurator.configure("log4j.xml") error