Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with JSF

 
samir vasani
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am getting the following error while running the jsf application
I have used eclipse genymade,tomcat6.0

Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: /jspx/xmlViewer.jspx(7,4) The content of elements must consist of well-formed character data or markup.
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:88)
org.apache.jasper.compiler.JspDocumentParser.parse(JspDocumentParser.java:214)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:200)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:153)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:314)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:294)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:281)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:694)
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:665)
org.apache.jsp.index_jsp._jspService(index_jsp.java:58)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


note The full stack trace of the root cause is available in the Apache Tomcat/6.0.16 logs.

Please help me to sort out this problem ASAP
 
eve agostini
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have an error in you jsp page, post that code
 
samir vasani
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
eve agostini wrote:You have an error in you jsp page, post that code


HI
Please go through

<jsp:root version="1.2" xmlns:jsp="http://java.sun.com/JSP/Page"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ice="http://www.icesoft.com/icefaces/component">
<jsp:directive.page import="java.util.LinkedList" />

<jsp:directive.page contentType="text/html;charset=utf-8" />

<f:view>
<iceutputDeclaration doctypeRoot="HTML"
doctypePublic="-//W3C//DTD HTML 4.01 Transitional//EN"
doctypeSystem="http://www.w3.org/TR/html4/loose.dtd" />
<html>
<head>
<title>XML Viewer</title>
<link rel="stylesheet" type="text/css"
href="./xmlhttp/css/rime/rime.css" />
</head>
<body>
<ice:form id="fm1">

<!-- file upload example -->
<ice:panelGroup styleClass="exampleBox inputFileContainer">

<iceutputText value="Select an XML File"
style="color: black; font-family: Arial,Helvetica,sans-serif; font-size: 10px; font-weight: bolder; text-align: center" />
<ice:inputFile id="inputFileName" width="600"
autoUpload="#{inputFileController.autoUpload}"
progressListener="#{inputFileController.fileUploadProgress}"
actionListener="#{inputFileController.uploadFile}" />

<iceutputProgress value="#{inputFileController.fileProgress}"
labelComplete="Upload Completed" styleClass="uploadProgressBar" />
</ice:panelGroup>

<ice:panelGroup styleClass="exampleBox inputFileContainer">
<iceutputLabel value="#{inputFileController.validateMessage}"></iceutputLabel>
<ice:selectOneMenu id="select1"
value="#{inputFileController.selectedHeader}">
<f:selectItem itemValue="--Select Header--"
itemLabel="--Select Header--"></f:selectItem>
<f:selectItems value="#{inputFileController.headerList}" />
</ice:selectOneMenu>
<!--<f:validator validatorId="customValid" />-->
<!--<ice:message for="select1" showSummary="true" showDetail="false"
style="color:red;font:9;"></ice:message>-->
<ice:inputText value="#{inputFileController.enteredHeader}"></ice:inputText>
<iceutputLabel for="BLCmdBtn"
value="#{msgs['page.inputFileController.imageButtonListener']}" />

<iceutputLabel for="SlctUsr" value="Multilevel Search"
style="font:10;" />
<ice:selectBooleanCheckbox id="SlctUsr"
valueChangeListener="#{inputFileController.multiLevelSearch}"
value="#{inputFileController.newUser}" partialSubmit="true" />

<ice:commandButton id="BLCmdBtn" value="Submit"
image="/images/search.GIF"
actionListener="#{inputFileController.imageButtonListener}" />

<ice:commandButton id="startOvrBtn" value="startover"
image="/images/startover.gif"
rendered="#{inputFileController.fileProgress == 100}"
actionListener="#{inputFileController.startOverButton}" />

<ice:commandButton id="searchExlBtn" value="startover"
image="/images/startover.gif"
visible="#{inputFileController.searchClicked}"
actionListener="#{inputFileController.excelButtonListener}" />


<iceutputResource id="pdf-image" mimeType="application/excel"
resource="#{inputFileController.excelResource}"
fileName="#{inputFileController.tableName}.xls"
image="/images/button-submit.gif" />



<ice:panelGroup rendered="#{inputFileController.newUser}">
<iceutputLabel
value="#{inputFileController.validateMessageSecond}"></iceutputLabel>
<ice:selectOneMenu id="select2"
value="#{inputFileController.selectedHeader1}">
<f:selectItem itemValue="--Select Header--"
itemLabel="--Select Header--"></f:selectItem>
<f:selectItems value="#{inputFileController.headerList}" />
</ice:selectOneMenu>
<ice:inputText value="#{inputFileController.enteredHeader1}"></ice:inputText>
<ice:selectOneMenu value="#{inputFileController.andOr}">
<f:selectItems value="#{inputFileController.andOrList}" />
</ice:selectOneMenu>
</ice:panelGroup>
</ice:panelGroup>

<center><ice:panelGroup rendered="true">

<ice:commandButton id="prevBtn" value="Prev"
rendered="#{inputFileController.navigators}"
visible="#{inputFileController.startIndex !=0}"
disabled="#{inputFileController.startIndex ==0}"
image="/images/prev.gif"
actionListener="#{inputFileController.prevButtonListener}" />
<iceutputText value="........."
rendered="#{inputFileController.navigators}"></iceutputText>
<ice:commandButton id="nextBtn" value="Next"
image="/images/next.gif"
visible="#{!inputFileController.disablingNext}"
rendered="#{inputFileController.navigators}"
actionListener="#{inputFileController.nextButtonListener}" />
</ice:panelGroup></center>

<ice:panelGroup styleClass="exampleBox inputFileContainer">

</ice:panelGroup>



<ice:panelGroup style="float:left;">

</ice:panelGroup>







<ice:dataTable var="item" value="#{inputFileController.linkedList}"
style="font:10;" rendered="#{inputFileController.navigators}">
<ice:columns value="#{inputFileController.headers}" var="column"
rendered="#{inputFileController.navigators}">
<f:facet name="header">
<iceutputText value="#{column}" />
</f:facet>
<iceutputText value="#{item[column]}" />
</ice:columns>
</ice:dataTable>
<ice:panelGroup style="float:left;width:420px;">
<center></center>
</ice:panelGroup>
</ice:form>
</body>
</html>
</f:view>
</jsp:root>
 
Ilari Moilanen
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please read EaseUp

And please read UseCodeTags

Thank you.
 
Lester Burnham
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And please read UseCodeTags

And when you edit your post to use CODE tags, also make sure to turn off smilies.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic