Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
Mahadesh
Post subject: Document root element "faces-config" must match DO  PostPosted: Mar 04, 2010 - 09:28 AM



Joined: Mar 04, 2010
Posts: 4

I am using Tomcat 6.0 with Myeclipse 8.x , I am using IceFaces 8.1 in my code.When i run my code i get the below error .
Document root element "faces-config", must match DOCTYPE root "null" .

Below is the entire stack tree message i got :

SEVERE: Parse Error at line 6 column 22: Document root element "faces-config", must match DOCTYPE root "null".
org.xml.sax.SAXParseException: Document root element "faces-config", must match DOCTYPE root "null".
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.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
at org.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.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1745)
at org.apache.myfaces.config.impl.digester.DigesterFacesConfigUnmarshallerImpl.getFacesConfig(DigesterFacesConfigUnmarshallerImpl.java:186)
at org.apache.myfaces.config.FacesConfigurator.feedContextSpecifiedConfig(FacesConfigurator.java:527)
at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:132)
at org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:68)
at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:51)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)
at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1249)
at org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:377)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:196)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)


Below attached is the Faces-config.xml .

<?xml version='1.0' encoding='UTF-8'?>
<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"
version="1.2">

<application>
<navigation-handler>com.mellon.dmt.CustomNavigationHandler</navigation-handler>
<view-handler>com.icesoft.faces.facelets.D2DFaceletViewHandler</view-handler>
</application>

<managed-bean>
<description>
Backing bean for tabset example.
</description>
<managed-bean-name>tabset</managed-bean-name>
<managed-bean-class>
com.mellon.dmt.beans.TabsetBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>

<managed-bean>
<description>
DAO
</description>
<managed-bean-name>dao</managed-bean-name>
<managed-bean-class>
com.mellon.dmt.entities.controller.DataAccessController</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>

<managed-bean>
<managed-bean-name>sessionBean</managed-bean-name>
<managed-bean-class>
com.mellon.dmt.beans.SessionBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
<managed-property>
<property-name>dao</property-name>
<value>#{dao}</value>
</managed-property>
</managed-bean>
</faces-config>

Please help me with this issue .
 
 View user's profile Send private message  
Reply with quote Back to top
support-joy
Post subject: RE: Document root element "faces-config" must matc  PostPosted: Mar 04, 2010 - 10:19 AM
Registered Member
Registered Member


Joined: Feb 03, 2009
Posts: 3364

Mahadesh,

This doesn't seem like a ME issue, rather a conflict with your JSF capabilities to that of JSF components. Please refer http://forums.sun.com/thread.jspa?threadID=5312298 and investigate in those lines.

_________________
Joy
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
Mahadesh
Post subject: Re: RE: Document root element "faces-config" must  PostPosted: Mar 04, 2010 - 10:31 AM



Joined: Mar 04, 2010
Posts: 4

Hi ,

Thanks a lot for you Reply .

I am using Icefaces in my code hence iI have added the below listed jars since the icefaces needs these at runtime. Please find the list of jars below :

acegi-security-1.0.1.jar
backport-util-concurrent.jar
catalina-ant.jar
commons-beanutils.jar
commons-collections.jar
commons-digester.jar
commons-discovery.jar
commons-el.jar
commons-fileupload.jar
commons-lang.jar
commons-logging-api.jar
commons-logging.jar
el-api.jar
el-ri.jar
FastInfoset.jar
grizzly-compat.jar
icefaces-comps.jar
icefaces-facelets.jar
icefaces.jar
jasper-compiler.jar
jasper-runtime.jar
jsf-api-1.2.jar
jsf-api.jar
jsf-impl-1.2.jar
jsf-impl.jar
jsp-api.jar
jstl.jar
just-ice.jar
jxl.jar
krysalis-jCharts-1.0.0-alpha-1.jar
myfaces-api.jar
myfaces-impl.jar
portlet.jar
push-server.jar
servlet-api.jar
spring-security-core-2.0.3.jar
versions-licenses.html
xercesImpl.jar
xml-apis.jar


I also use some other jars as shown below :

ejb3-persistence
mysql-connector-java-5.1.6-bin
org.eclipse.jdt.core_3.3.0.v_771


Since i am new to Icefaces i am finding it difficult to figure out which jar is creating the problem . Can you help me with this...
 
 View user's profile Send private message  
Reply with quote Back to top
support-joy
Post subject: RE: Re: RE: Document root element "faces-config" m  PostPosted: Mar 04, 2010 - 10:51 AM
Registered Member
Registered Member


Joined: Feb 03, 2009
Posts: 3364

Mahadesh,

If you are new to ICEFaces, I would recommend you to go through the whitepapers and tutorials here - http://www.myeclipseide.com/module-htmlpages-display-pid-7.html Look for ICEFaces tutorial. Also you can install and run sample ICEFaces EOD. From MyEclipse IDE, click on menu item MyEclipse > Examples on Demand. This will open Examples on Demand browser, look for ICEFaces tutorial example. Install the same on your workspace. Please read README.txt which contains more information on the EOD.

_________________
Joy
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
Mahadesh
Post subject: RE: Re: RE: Document root element "faces-config" m  PostPosted: Mar 05, 2010 - 08:30 AM



Joined: Mar 04, 2010
Posts: 4

Now the error i mentioned earlier seems have gone.. but i still get this error which i was getting earlier as well . Seems like a jdt compiler issue.
I have added the org.eclipse.jdt.core_3.3.0.v_771 jar as well. but still get the below error .Please help!

java.lang.NoSuchMethodError: org.eclipse.jdt.internal.compiler.CompilationResult.getProblems()[Lorg/eclipse/jdt/core/compiler/IProblem;
 
 View user's profile Send private message  
Reply with quote Back to top
Mahadesh
Post subject: RE: Re: RE: Document root element "faces-config" m  PostPosted: Mar 05, 2010 - 08:53 AM



Joined: Mar 04, 2010
Posts: 4

I found this link : http://www.icefaces.org/JForum/posts/list/15080.page Is this the problem .. Please help.
 
 View user's profile Send private message  
Reply with quote Back to top
support-joy
Post subject: RE: Re: RE: Document root element "faces-config" m  PostPosted: Mar 05, 2010 - 11:13 AM
Registered Member
Registered Member


Joined: Feb 03, 2009
Posts: 3364

Yes, your problem could be related to JasperReports, you can try out the suggestion listed above. Also I see that you have added jstl.jar. Can you remove and give it a shot. Also I would recommend you to cross post to IceFaces forum?

_________________
Joy
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits