- This topic has 6 replies, 2 voices, and was last updated 14 years, 8 months ago by support-joy.
-
AuthorPosts
-
MahadeshMemberI 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 .
support-joyMemberMahadesh,
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.
MahadeshMemberHi ,
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.jarI 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_771Since 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…
support-joyMemberMahadesh,
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.
MahadeshMemberNow 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;
MahadeshMemberI found this link : http://www.icefaces.org/JForum/posts/list/15080.page Is this the problem .. Please help.
support-joyMemberYes, 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?
-
AuthorPosts