• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sounds like an Eclipse issue to me (Eclipse is the one complaining). Moving.
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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());
 
reply
    Bookmark Topic Watch Topic
  • New Topic