my dog learned polymorphism*
The moose likes IDEs, Version Control and other tools and the fly likes <!DOCTYPE log4.configuration SYSTEM generates peculiar error" title="" /> Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "<!DOCTYPE log4.configuration SYSTEM "log4j.dtd"> generates peculiar error" Watch "<!DOCTYPE log4.configuration SYSTEM "log4j.dtd"> generates peculiar error" New topic
Author

<!DOCTYPE log4.configuration SYSTEM "log4j.dtd"> generates peculiar error

Austin Shelton
Greenhorn

Joined: Jul 01, 2010
Posts: 11
Hi,

I have the following line in the beginning of my log4j. XML file:

<!DOCTYPE log4.configuration SYSTEM "log4j.dtd">

I am using Eclipse Helios and it complains:

"System identifier must begin with a single or double quote"

This is generated as an error so I am unable to continue.

All suggestions are welcome.


Austin Shelton
ashelton3@gmail.com
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

Sounds like an Eclipse issue to me (Eclipse is the one complaining). Moving.


JBoss In Action
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

First, I believe it should be "log4j:configuration" (colon, not period).

Try this:

<!DOCTYPE log4j:configuration PUBLIC "-//log4j/log4j Configuration//EN" "log4j.dtd">
Austin Shelton
Greenhorn

Joined: Jul 01, 2010
Posts: 11
Here's the snippet where the error occurs:


public class HelloWorldServlet extends HttpServlet implements Serializable {

// The following line is, according to eclipse, in error
DOMConfigurator.configureAndWatch("/WEB-INF/log4j.xml");


Logger logger = Logger.getLogger(HelloWorldServlet.class.getName());
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: <!DOCTYPE log4.configuration SYSTEM "log4j.dtd"> generates peculiar error