Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

log4j - No grammar available for namespace

854778Apr 21 2011
JDeveloper11g
I'm getting an informational warning for the log4j.xml file.

The warning is:
No grammar available for namespace http://jakarta.apache.org/log4j/, contents of element configuration cannot be validated

The start of the log4j.xml file looks like this:

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">

The contents of the log4j.xml file are correct.
The org.apache.log4j stuff is available in the project.

How can I tell the JDeveloper environment where to find the log4j.dtd or whatever it needs?
Everything runs just fine.

For now I'm just ignoring the informational warning.
A better solution will be to tell the JDeveloper environment whatever it needs in order to remove the warning.

Any ideas?
thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 19 2011
Added on Apr 21 2011
0 comments
401 views