This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

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

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • 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
Bartender
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like an Eclipse issue to me (Eclipse is the one complaining). Moving.
 
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • 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
  • 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());
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!