You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Ben <ne...@gmail.com> on 2005/05/31 08:54:49 UTC
[webdoclet] log4j:ERROR
Hi
Could someone please tell me why I get the following error when I
generate the web deployment descriptor:
webdoclet:
[webdoclet] log4j:ERROR Parsing error on line 35 and column 12
[webdoclet] log4j:ERROR The content of element type "root" must match
"(param*,(priority|level)?,appender-ref*)".
[webdoclet] DEBUG --- Translator.getString(82) |
bundleKey=xdoclet.loader.LoaderMessagesMessages
[webdoclet] DEBUG --- Translator.getString(83) | resourceKey=REGISTERING_MODULES
[webdoclet] DEBUG --- Translator.getString(86) | no arguments
[webdoclet] DEBUG --- Translator.getBundle(138) |
bundleKey=xdoclet.loader.LoaderMessagesMessages
[webdoclet] DEBUG --- Translator.getString(100) | resource=Registering
modules...
[webdoclet] DEBUG --- Translator.getString(104) | return message:
Registering modules...
[webdoclet] DEBUG --- ModuleFinder.findModules(118) | Registering modules...
.......
[webdoclet] INFO --- XDocletMain.start(47) | Running <deploymentdescriptor/>
[webdoclet] DEBUG --- XmlSubTask.startProcess(203) | isValidateXML()=true
[webdoclet] DEBUG --- XmlSubTask.startProcess(204) | getPublicId()=null
[webdoclet] DEBUG --- XmlSubTask.startProcess(205) | getSystemId()=null
[webdoclet] DEBUG --- XmlSubTask.startProcess(206) | getDtdURL()=null
...
When I start tomcat, I also get the same error:
31/05/2005 16:50:51 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1000 ms
31/05/2005 16:50:52 org.apache.catalina.realm.JAASRealm setContainer
INFO: Set JAAS app name Catalina
31/05/2005 16:50:52 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
31/05/2005 16:50:52 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.30
31/05/2005 16:50:52 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
31/05/2005 16:50:52 org.apache.catalina.cluster.tcp.SimpleTcpCluster start
INFO: Cluster is about to start
31/05/2005 16:50:52 org.apache.catalina.cluster.mcast.McastService start
INFO: Sleeping for 2000 secs to establish cluster membership
31/05/2005 16:50:54 org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
31/05/2005 16:50:54 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL
file:D:\Apache2\tomcat\1\conf\Catalina\localhost\node1.xml
log4j:ERROR Parsing error on line 35 and column 12
log4j:ERROR The content of element type "root" must match
"(param*,(priority|level)?,appender-ref*)".
I have no idea where the root element comes from and I have never used
log4j.xml.
I am using Ant 1.6.4, Log4J 1.2.9m XDoclet 1.2.3 and Tomcat 5.0.30.
Please help, thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
Re: [webdoclet] log4j:ERROR
Posted by James Stauffer <st...@gmail.com>.
If you add "-Dlog4j.debug" to the command line it will tell you which
file it is using for configuration and might give you more info about
the error.
On 5/31/05, Ben <ne...@gmail.com> wrote:
> You mean the log4j.properties file? Here it is, I have this file in my
> /WEB-INF/classes/ folder:
>
> ---------------
> log4j.rootCategory=INFO, stdout
>
> log4j.appender.stdout=org.apache.log4j.ConsoleAppender
> log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
> log4j.appender.stdout.layout.ConversionPattern=[@APPNAME@] %p [%t]
> %C{1}.%M(%L) | %m%n
>
> log4j.appender.R=org.apache.log4j.RollingFileAppender
> log4j.appender.R.File=example.log
> log4j.appender.R.MaxFileSize=100KB
> log4j.appender.R.MaxBackupIndex=0
> log4j.appender.R.layout=org.apache.log4j.PatternLayout
> log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n
>
> log4j.logger.com.example=DEBUG
>
> log4j.logger.com.opensymphony.oscache=ERROR
> log4j.logger.org.apache.commons=ERROR
> log4j.logger.org.apache.struts=WARN
> log4j.logger.org.springframework=WARN
>
> log4j.logger.net.sf.hibernate.ps.PreparedStatementCache=WARN
> log4j.logger.net.sf.hibernate=WARN
> ---------------
>
> I don't know which properties file Eclipse uses.
>
> I also tried to delete my properties file and I still see those errors
> (in Eclipse and when Tomcat starts).
>
>
> Thanks,
> Ben
>
>
>
> On 5/31/05, James Stauffer <st...@gmail.com> wrote:
> > Posting your log4j configuration file may be helpful.
> >
> > On 5/31/05, Ben <ne...@gmail.com> wrote:
> > > Hi
> > >
> > > Could someone please tell me why I get the following error when I
> > > generate the web deployment descriptor:
> > ...
> >
> > --
> > James Stauffer
> > Are you good? Take the test at http://www.livingwaters.com/good/
> >
>
--
James Stauffer
Are you good? Take the test at http://www.livingwaters.com/good/
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
Re: [webdoclet] log4j:ERROR
Posted by James Stauffer <st...@gmail.com>.
Posting your log4j configuration file may be helpful.
On 5/31/05, Ben <ne...@gmail.com> wrote:
> Hi
>
> Could someone please tell me why I get the following error when I
> generate the web deployment descriptor:
...
--
James Stauffer
Are you good? Take the test at http://www.livingwaters.com/good/
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org