Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Struts struts configuration give error like doctype root=null
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


srinivasa rao
struts configuration give error like doctype root=null
0 Answer(s)      3 years and 5 months ago
Posted in : Struts


hi this is srinivas. i have problem in struts configurationfile. when ever i depoly the project into tomcat server it raises the following problem. plz help me how to resolve this problem.

19)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710
)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Jul 26, 2011 11:03:12 AM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 34 column 15: Document root element "struts-config",
 must match DOCTYPE root "null".
org.xml.sax.SAXParseException: Document root element "struts-config", must match
 DOCTYPE root "null".
        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAX
ParseException(Unknown Source)
        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(Unk
nown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scan
StartElement(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSCo
ntentDriver.scanRootElementHook(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l$FragmentContentDriver.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$Prolog
Driver.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(U
nknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next
(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanDocument(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown So
urce)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Un
known Source)
        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.p
arse(Unknown Source)
        at org.apache.commons.digester.Digester.parse(Digester.java:1827)
        at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionSe
rvlet.java:740)
        at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet
.java:689)
        at org.apache.struts.action.ActionServlet.init(ActionServlet.java:356)
        at javax.servlet.GenericServlet.init(GenericServlet.java:212)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
java:1173)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:99
3)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
t.java:4350)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
659)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:791)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
1)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)

        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
a:1041)
        at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
ava:964)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502
)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:321)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445
)
        at org.apache.catalina.core.StandardService.start(StandardService.java:5
19)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710
)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Jul 26, 2011 11:03:12 AM org.apache.struts.validator.ValidatorPlugIn initResourc
es
INFO: Loading validation rules file from '/org/apache/struts/validator/validator
-rules.xml'
Jul 26, 2011 11:03:12 AM org.apache.struts.validator.ValidatorPlugIn initResourc
es
INFO: Loading validation rules file from '/WEB-INF/validation.xml'
Jul 26, 2011 11:03:12 AM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 20 column 17: Document is invalid: no grammar found.

org.xml.sax.SAXParseException: Document is invalid: no grammar found.
        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAX
ParseException(Unknown Source)
        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(Unk
nown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scan
StartElement(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSCo
ntentDriver.scanRootElementHook(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l$FragmentContentDriver.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$Prolog
Driver.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(U
nknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next
(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanDocument(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown So
urce)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Un
known Source)
        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.p
arse(Unknown Source)
        at org.apache.commons.digester.Digester.parse(Digester.java:1745)
        at org.apache.commons.validator.ValidatorResources.<init>(ValidatorResou
rces.java:242)
        at org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPl
ugIn.java:244)
        at org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java
:164)
        at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServle
t.java:871)
        at org.apache.struts.action.ActionServlet.init(ActionServlet.java:359)
        at javax.servlet.GenericServlet.init(GenericServlet.java:212)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
java:1173)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:99
3)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
t.java:4350)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
659)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:791)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
1)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)

        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
a:1041)
        at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
ava:964)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502
)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:321)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445
)
        at org.apache.catalina.core.StandardService.start(StandardService.java:5
19)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710
)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Jul 26, 2011 11:03:12 AM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 20 column 17: Document root element "form-validation
", must match DOCTYPE root "null".
org.xml.sax.SAXParseException: Document root element "form-validation", must mat
ch DOCTYPE root "null".
        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAX
ParseException(Unknown Source)
        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(Unk
nown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scan
StartElement(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSCo
ntentDriver.scanRootElementHook(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l$FragmentContentDriver.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$Prolog
Driver.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(U
nknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next
(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanDocument(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown So
urce)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Un
known Source)
        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.p
arse(Unknown Source)
        at org.apache.commons.digester.Digester.parse(Digester.java:1745)
        at org.apache.commons.validator.ValidatorResources.<init>(ValidatorResou
rces.java:242)
        at org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPl
ugIn.java:244)
        at org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java
:164)
        at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServle
t.java:871)
        at org.apache.struts.action.ActionServlet.init(ActionServlet.java:359)
        at javax.servlet.GenericServlet.init(GenericServlet.java:212)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
java:1173)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:99
3)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
t.java:4350)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
659)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:791)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
1)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)

        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
a:1041)
        at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
ava:964)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502
)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:321)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445
)
        at org.apache.catalina.core.StandardService.start(StandardService.java:5
19)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710
)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Jul 26, 2011 11:03:13 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
Jul 26, 2011 11:03:13 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory rproduct
Jul 26, 2011 11:03:13 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory taglib
Jul 26, 2011 11:03:13 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8001
Jul 26, 2011 11:03:13 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Jul 26, 2011 11:03:13 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/47  config=null
Jul 26, 2011 11:03:13 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 4079 ms

Advertisement
View Answers

Related Tutorials/Questions & Answers:
struts configuration give error like doctype root=null
struts configuration give error like doctype root=null  hi... column 15: Document root element "struts-config", must match DOCTYPE root "null... match DOCTYPE root "null
configuration - Struts
class,ActionForm,Model in struts framework. What we will write in each.... Action class: An Action class in the struts application extends Struts...://www.roseindia.net/struts/understandingstruts_action_class.shtml http://www.roseindia.net
Advertisements
configuration files are used in Struts
configuration files are used in Struts  What configuration files are used in Struts
Action Configuration - Struts
Action Configuration  I need a code for struts action configuration in XML
Struts 2 zero configuration,Struts 2 zero configuration Example
Struts 2 Zero Configuration This section discusses Struts 2 zero configuration feature with example. The Struts 2 zero configuration is another very... Configuration" Struts 2 application uses annotations to register the actions
Give me some java Forum like Rose India.net
Give me some java Forum like Rose India.net  Friends... Please suggest some forum like RoseIndia.net where we can ask question like here. Thanks
Give me some java Forum like Rose India.net
Give me some java Forum like Rose India.net  Friends... Please suggest some forum like RoseIndia.net where we can ask question like here. Thanks
struts-tablib error - Struts
struts-tablib error  I have got the following error even after i have included all the jar file of particular struts-version i am using org.apache.jasper.JasperException: Failed to load or instantiate TagExtraInfo class
Error - Struts
Error  Hi, I downloaded the roseindia first struts example... create the url for that action then "Struts Problem Report Struts has detected... ----------------------- RoseIndia.Net Struts 2 Tutorial RoseIndia.net Struts 2
java struts error - Struts
java struts error   my jsp page is post the problem...){ this.username=null; this.password=null; } } my strutsconfig.xml... THINK EVERY THING IS RIGHT BUT THE ERROR IS COMING I TRIED BY GIVING INPUT
error in struts-config.xml
error in struts-config.xml  i am using myclipse editor and while developing proj in struts 1.3.8 the struts-config.xml is giving eror like The system cannot locate the resource specified. Error processing resource 'http
error in struts-config.xml
error in struts-config.xml  i am using myclipse editor and while developing proj in struts 1.3.8 the struts-config.xml is giving eror like The system cannot locate the resource specified. Error processing resource 'http
error in struts-config.xml
error in struts-config.xml  i am using myclipse editor and while developing proj in struts 1.3.8 the struts-config.xml is giving eror like The system cannot locate the resource specified. Error processing resource 'http
error in struts-config.xml
error in struts-config.xml  i am using myclipse editor and while developing proj in struts 1.3.8 the struts-config.xml is giving eror like The system cannot locate the resource specified. Error processing resource 'http
error in struts-config.xml
error in struts-config.xml  i am using myclipse editor and while developing proj in struts 1.3.8 the struts-config.xml is giving eror like The system cannot locate the resource specified. Error processing resource 'http
error in struts-config.xml
error in struts-config.xml  i am using myclipse editor and while developing proj in struts 1.3.8 the struts-config.xml is giving eror like The system cannot locate the resource specified. Error processing resource 'http
StringIndexOutOfBound error !!! plz give me the reason for this error ,plz.........
StringIndexOutOfBound error !!! plz give me the reason for this error ,plz.........  import java.util.Scanner; class Even { static int getEven(int firstno,int secondno) { int counteven=0; for(int i=firstno;i<=secondno;i
forward error message in struts
forward error message in struts  how to forward the error message got in struts from one jsp to other jsp?   Hello Friend, Use <%@ page errorPage="errorPage.jsp" %> in the first page that generates the exception
error is "column cannot be inserted".........give send me the ans
error is "column cannot be inserted".........give send me the ans   DataInputStream dis; try { dis=new DataInputStream(System.in); System.out.println("enter no. of records to be inserted"); int nrec
Deployment Error - Struts
Deployment Error  When I try to deploy application ?struts-examples-1.3.8.war? file in Tomcat 5.5 Web Server it is working fine. Whereas when I... the following error. Note: Here ?action? is the logical name which we mention
The server encountered internal error() - Struts
The server encountered internal error()  Hello, I'm facing the problem in struts application. Here is my web.xml MYAPP... org.apache.struts.action.ActionServlet config /WEB-INF/struts-config.xml
Struts2 netbeans 6.5.1 application error - Struts
Struts2 netbeans 6.5.1 application error  i develop struts simple application in netbeans 6.5.1 but every time generate appache error Requested resources not available in so give me solution please any body
Compilation Error - Struts
error () that prevented it from fulfilling this request. exception...(HttpServlet.java:729) root cause org.apache.jasper.JasperException: Failed...) javax.servlet.http.HttpServlet.service(HttpServlet.java:729) root cause
Heilighting error field in struts 1
Heilighting error field in struts 1  Hi, I am trying to change field color on error occur to a particular field. But i m not able to do it.I try to use errorStyleClass and errorStyle as well bt it giving me an error
Struts 2 File Upload error
Struts 2 File Upload error  Hi! I am trying implement a file upload using Struts 2, I use this article, but now the server response the error: ognl.MethodFailedException: Method "setArquivo" failed for object
Developing JSP, Java and Configuration for Hello World Application
and required configuration files for our Struts 2 Hello World application. Now...;} } Developing Controller Configuration File: Struts 2 uses the struts.xml file... struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN
Struts 2 : Http Status Error 404 - Struts
Struts 2 : Http Status Error 404  Hi All, I'm facing the below... error as shown below. see below error for the details code... --------------------------------------------------------------------------- ERROR(404) : "The requested
need a sample project using java technologies like jsp, servlets, struts
need a sample project using java technologies like jsp, servlets, struts  Hi everybody! I have learnt core java,jdbc,jsp,servlets & struts. Please guide me where can i find sample project like library management, CMS or any
struts 2 Application starting error - Struts
struts 2 Application starting error  Hello Sir/Madam, Recently i have installed tomcat 5.5.23 on my window machine with XP, then i make an small... deploying and starting the application the message was received like Message
I want Image Album like -orkut and Facebook Using Struts 1.2
I want Image Album like -orkut and Facebook Using Struts 1.2  photo... to display all the images from the folder and i want to display it on JSP. like...","root","root"); Statement stmt=con.createStatement(); String strQuery
invalid configuration
invalid configuration  hello I create hibernate.cfg.xml file Like... excute project show this error: log4j:WARN No appenders could be found for logger...#noconfig for more info. **ERROR***org.hibernate.MappingException: invalid
Advertisements
 

 

 

DMCA.com