• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Problem with JSF

 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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>
<ice:outputDeclaration 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">

<ice:outputText 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}" />

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

<ice:panelGroup styleClass="exampleBox inputFileContainer">
<ice:outputLabel value="#{inputFileController.validateMessage}"></ice:outputLabel>
<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>
<ice:outputLabel for="BLCmdBtn"
value="#{msgs['page.inputFileController.imageButtonListener']}" />

<ice:outputLabel 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}" />


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



<ice:panelGroup rendered="#{inputFileController.newUser}">
<ice:outputLabel
value="#{inputFileController.validateMessageSecond}"></ice:outputLabel>
<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}" />
<ice:outputText value="........."
rendered="#{inputFileController.navigators}"></ice:outputText>
<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">
<ice:outputText value="#{column}" />
</f:facet>
<ice:outputText 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>
 
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please read EaseUp

And please read UseCodeTags

Thank you.
 
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Yup, yup, yup. Tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic