dcsimg
Problem with Log4j in Struts(Initialization errors)
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   krishna_Devan
Posted On:   Wednesday, September 22, 2004 09:13 AM

"Problems in Log4j adn struts" Hi All, I am trying to implement "log4j" but showing some errors . I am using "tomcat5.0", "java 1.4", "struts1.1" in linux environment. My "log file" shows errors only when the application starts for the first time. (During initializing of TomCat). ............................................................ Below is the error portion of my "log file": ERROR 22 Sep 18:17:11 [main] org.apache.commons.digester.Digester - Parse Error at line 41 column 68: Element type "form-property" must be declared. org.xml.sax.SAXParseException: Element   More>>

"Problems in Log4j adn struts"



Hi All,



I am trying to implement "log4j" but showing some errors . I am using "tomcat5.0", "java 1.4", "struts1.1" in linux environment. My "log file" shows errors only when the application starts for the first time. (During initializing of TomCat).



............................................................


Below is the error portion of my "log file":



ERROR 22 Sep 18:17:11 [main] org.apache.commons.digester.Digester - Parse Error at line 41 column 68: Element type "form-property" must be declared.
org.xml.sax.SAXParseException: Element type "form-property" must be declared.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
at rg.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:1006)
at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:955)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3427)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3628)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:307)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:788)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:559)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:401)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:358)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:754)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363)
at org.apache.catalina.core.StandardService.start(StandardService.java:497)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)



............................................................



Below is a portion of my "struts-config.xml" (line no 41) which is the place of error











............................................................



Below is my "web.xml"



<?xml version="1.0" encoding="ISO-8859-1"?>



















action



org.apache.struts.action.ActionServlet




application
ApplicationResources




config
/WEB-INF/struts-config.xml




debug
2




detail
2




validate
true



2





velocity
org.apache.velocity.tools.view.servlet.VelocityViewServlet



org.apache.velocity.toolbox
/WEB-INF/toolbox.xml




org.apache.velocity.properties
/WEB-INF/velocity.properties



10





!-- Welcome File List-->



login.vm








action
*.do




velocity
*.vm






............................................................


Any Thoughts?


I am ready to give more information as per the requirements.



Thanks in advance


Krishna

   <<Less
About | Sitemap | Contact