Root cause of ServletException.javax.servlet.jsp.JspException:
Hi guys, hope you all can help me on this.
I have added this repeater netui tag into my jsp page and always get this servletException
error, not very sure why. when i remove this repeater tag everything seems alright.
anyone can give me any hints or clue on this? the checkbox repeater tag is wrong,
i need to ask you guys on that the next posting! thanks!
The Repeater tag in my jsp
<netui-data:callPageFlow method="getFunctionHashtable" resultId="funcNamehashtable"/>
<netui-data:repeater dataSource="{actionForm.functionHashtable}">
<netui-data:repeaterHeader>
<table border="1">
<tr>
<td><b>Functions</b></td>
<td><b>Assign/Unassign</b></td>
</tr>
</netui-data:repeaterHeader>
<netui-data:repeaterItem>
<tr>
<td>
<netui:label value="{container.item}" />
</td>
<td>
<netui:checkBox dataSource="{pageFlow.initchecked}" onClick="checkFunctions();"/>
</td>
</tr>
</netui-data:repeaterItem>
<netui-data:repeaterFooter>
</table>
</netui-data:repeaterFooter>
</netui-data:repeater>
and here's the exception error i have got.
id=16240211,name=RapidWeb,context-path=/RapidWeb)] Root cause of ServletExceptio
n.
javax.servlet.jsp.JspException: Input/output error: java.net.SocketException:
Co
nnection reset by peer: socket write error
at org.apache.struts.util.ResponseUtils.write(ResponseUtils.java:160)
at com.bea.wlw.netui.tags.html.Html.doEndTag(Html.java:282)
at jsp_servlet._assignunassignfunctions.__getrole._jspService(getRole.js
p:78)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
(ServletStubImpl.java:971)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:402)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:27)
at com.bea.wlw.netui.pageflow.PageFlowJspFilter.doFilter(PageFlowJspFilt
Hi
The message java.net.SocketException: Connection reset by peer is caused by network problem or even forced closure of IE browser.
This should not affect functionality and is harmless.
If the page process is too long, the user closed the browser or the user reloaded the page, this error could happen. Reloading a page or closing the browser is very common, and so we should not log this message.
BEA has a known issue CR219602 where we catch the SocketException and ignore the logging in the doEndTag() method.
If this error message is annonying please contact BEA Support to get a patch.
Thanks
Vimala
Similar Messages
-
Hi All,
I am getting this error at this step of tutorial. Please help.
To apply the workflow to the Product of the Day page:
1.Open the Product of the Day page in edit mode. If the page is still open from a previous procedure, reload it.
2. In Sidekick, click the Workflow tab and select the Product of the Day workflow. Click Start Workflow.
3. Open the Inbox page. (http://localhost:4502/libs/cq/workflow/content/inbox.html)
4. Select the Step 1 item for the Product of the Day content, and click Open.The form1 page opens.
At this step i am getting the below error.
javax.servlet.ServletException: javax.servlet.jsp.JspException: Error while executing script body.jsp
Please helpNot sure which workflow tutorial you are reffering. The stack trace in log should tell you what is exactly wrong.
-
Hi,
I have 2 servers.
One with WebLogic6.1 & one with WebLogic9.2
With WL6.1, i have errors like :
<i>
<2 août 2006 13:00:20 IRST> <Error> <HTTP> <[WebAppServletContext(10414345,imargo,/imargo)] Root cause of ServletException
javax.servlet.jsp.JspException: Missing message for key MG01.loc.index
at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:297)
at jsp_servlet._jsp.__im_in_tec_MGN01_MGN001._jspService(__im_in_tec_MGN01_MGN001.java:1711)
</i>
With WL9.2, i don't have those errors in my logs...
I have no errors o_o
Help me plz
Many thanksI never used DynaActionForm, what I have noticed here is, don't you need to declare the form bean? I may be wrong.
<form-beans>
<form-bean name="newProdForm" type="com.package.form.NewProdForm"></form-bean>
</form-beans> -
Hi,
I am using WebLogic 11g.
In my application am getting following exception in my console
####<Jun 4, 2012 2:03:47 AM CDT> <Error> <HTTP> <cuscmas1.hillscte.com> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1338793427049> <BEA-101017> <[ServletContext@2141448872[app:amsatms module:/paws path:/paws spec-version:null]] Root cause of ServletException.
javax.servlet.jsp.JspException: Can't insert page '/common/MenuFiles.jsp' : Connection reset
at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.processException(InsertTag.java:956)
at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:884)
at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:473)
at jsp_servlet._tdms._common.__tdmspage._jsp__tag1(__tdmspage.java:530)
at jsp_servlet._tdms._common.__tdmspage._jspService(__tdmspage.java:427)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
Previously I was used OC4J, in that I didnt get any error.
My MenuFiles.jsp is
<%@ page import="com.hillspet.atms.common.constants.IATMSConstants" %>
<%@ page import="com.hillspet.atms.common.constants.AnimalConstants" %>
<%@ page import="com.hillspet.atms.common.constants.IATMSAccessConstants" %>
<%@ page import="com.hillspet.atms.collectionkit.util.ICollectionKitConstants" %>
<%@ page import="com.cte.common.IConstants" %>
<%@ page import="com.cte.common.dto.UserDTO,com.hillspet.atms.common.util.ATMSUtil" %>
<%@ page import="java.util.ArrayList" %>
<%@page import="com.hillspet.ahms.animal.util.IAHMSAccessConstants,com.hillspet.admin.common.util.HillspetUtil, com.hillspet.ahms.animal.dto.AnimalBaseDTO"%>
<%@page import="com.hillspet.ahms.animal.util.IAHMSAccessConstants,com.hillspet.admin.common.util.HillspetUtil, com.hillspet.ahms.animal.dto.AnimalBaseDTO"%>
<%@ page import="com.cte.common.dto.UserDTO, com.cte.common.IConstants, com.hillspet.admin.common.util.HillspetUtil, java.util.ArrayList, com.cte.common.ums.dto.RoleListEntryDTO,java.util.Arrays,java.util.Collections"%>
<%@page import="com.hillspet.tdms.common.util.ITLMSAccessConstants,com.hillspet.admin.common.util.HillspetUtil"%>
<%
boolean isInternal = false;
if(session.getAttribute("ANIMAL_BASE_DTO")!=null ){
AnimalBaseDTO animalSummaryDetailsDTO = (AnimalBaseDTO) session.getAttribute("ANIMAL_BASE_DTO");
if(animalSummaryDetailsDTO.getIsExternal()==0){
isInternal = true;
%>
<%
UserDTO dto = (UserDTO) session.getAttribute(IConstants.USER_OBJECT);
ArrayList userPermissionsList = dto.getUserPermissionList();
boolean isAdmin = dto.getRoleList().contains("" + IATMSConstants.ATMS_ADMIN_ROLE_ID);
//System.out.println("User Permission list is :" + dto.getUserPermissionList());
java.util.ArrayList rolesList = dto.getRoleList();
boolean isEUUser = HillspetUtil.checkEUAccess(request, dto);
ArrayList atmsRolesList=new ArrayList(Arrays.asList ("126","125","109","108","107","106","105","114","103","102","101","100","99","98","97","96","95","93","90","89","88","87","86","67","111","85","83","73","84","116","113", "127","128","130","132","133","134","135","136"));
boolean displayATMSMenus = !Collections.disjoint(rolesList, atmsRolesList);
%>
<script>
var breadcrumb = "<%=IATMSConstants.SEARCH_AND_VIEW%>";
Initialize and render the MenuBar when its elements are ready
to be scripted.
YAHOO.util.Event.onContentReady("vmenu", function () {
Instantiate a MenuBar: The first argument passed to the
constructor is the id of the element in the page
representing the MenuBar; the second is an object literal
of configuration properties.
var oMenuBar = new YAHOO.widget.MenuBar("vmenu", {
autosubmenudisplay: true,
hidedelay: 750,
lazyload: true });
Define an array of object literals, each containing
the data necessary to create a submenu.
var aSubmenuData = [
<%
if(rolesList.contains("67") || rolesList.contains("84") || rolesList.contains("118") || rolesList.contains("111") || rolesList.contains("90") || rolesList.contains("83") || rolesList.contains("85") || rolesList.contains("88") || rolesList.contains("82") || displayATMSMenus){
%>
id: "Tab1",
itemdata: [
<%if(HillspetUtil.checkAccess(request,IAHMSAccessConstants.CREATE_ANIMNAL_PERMISSION)) {%>
{ text: "Add Animal", url: "addAnimalGeneralInfoAction.do" },
<%}%>
<%if(HillspetUtil.checkAccess(request,IAHMSAccessConstants.CREATE_ANIMNAL_PERMISSION)) {%>
{ text: "Record Manual Feeding", url: "saveChangeDietAction.do?command=view",disabled:true },
<%}%>
<%if(HillspetUtil.checkAccess(request,IAHMSAccessConstants.SEARCH_ANIMNAL_PERMISSION)) {%>
{ text: "Search Animals", url: "animalSearchAction.do?command=view" },
<%}%>
<%if(HillspetUtil.checkAccess(request,IAHMSAccessConstants.SEARCH_IMAGES)) {%>
{ text: "Search Images",url: "animalImageSearchAction.do?command=view" },
<%}%>
<%if(HillspetUtil.checkAccess(request,IAHMSAccessConstants.SEARCH_IMAGES)) {%>
{ text: "Capture Images",url: "captureImageAction.do?command=view" },
<%}
if(!rolesList.contains("95") && !rolesList.contains("98")){ %>
{ text: "Animal Panels", url: "animalpanelList.do?command=view&searchFlag=fromMenu" },
<% }
if (dto.getUserPermissionList().contains(
AnimalConstants.AR_RECOMMEND_ANIMALS_PERMISSION)|| dto.getUserPermissionList().contains(
AnimalConstants.AR_VIEW_LIST_OF_RECOMMENDATION_PERMISSION)) {
%>
{ text: "Animal Recommendation",
submenu: {
id: "subtab11",
itemdata: [
<%
if (dto.getUserPermissionList().contains(AnimalConstants.AR_RECOMMEND_ANIMALS_PERMISSION)) {
%>
{ text: "Recommend Animals", url: "recommendedAnimal.do?command=view" },
//{ text: "Reserve / Un-reserve", url: "../ATMS/reserveUnreserve.html"},
<%}%>
<%
if (dto.getUserPermissionList().contains(
AnimalConstants.AR_RECOMMEND_ANIMALS_PERMISSION)|| dto.getUserPermissionList().contains(
AnimalConstants.AR_VIEW_LIST_OF_RECOMMENDATION_PERMISSION)) {
%>
{ text: "View Recommendations", url: "recommendedAnimalList.do?command=view"},
<%}%>
<%} else {%>
{ text: "Animal Recommendation", url: "#" , disabled: true},
<%}%>
{ text: "Move Animal",
submenu: {
id: "subtab15",
itemdata: [
<% if( isInternal ){%>
{ text: "Change Location", url: "manageAnimalLocationAction.do?command=viewHistory" },
<%}%>
<%if(HillspetUtil.checkAccess(request,IAHMSAccessConstants.ANML_DISPOSITION_PERMISSION)) {%>
{ text: "Adoption Record", url: "animalDispositionAction.do?command=view" },
<%}%>
id: "Tab2",
itemdata: [
<%if(HillspetUtil.checkAccess(request,IAHMSAccessConstants.SCHEDULE_FMT)) {%>
{ text: "Schedule Facility Maintenance Task ", url: "scheduleFMTActionForward.do?command=forward", disabled: false },
<%}%>
<%if(HillspetUtil.checkAccess(request,IAHMSAccessConstants.SCHEDULE_GROUP_TASK) || rolesList.contains("99")) {%>
{ text: "Schedule Task", url: "groupTaskSearchAction.do?command=view" },
<% } %>
{ text: "Daily Task List",
submenu: {
id: "subtab21",
itemdata: [
{ text: "Animal Care Task", url: "viewDailyTaskListAction.do?command=view&id=1&actSubTab=1"},
<%if(userPermissionsList.contains(IATMSConstants.SMCL_VIEW_SAMPLES)){%>
<%if(userPermissionsList.contains(IATMSConstants.SMCL_VIEW_SAMPLES)){%>
{ text: "Test Collections", url: "viewSMSmpleCollections.do?command=view&identifier=fromMenu" },
<% } %>
<%if(userPermissionsList.contains(IATMSConstants.SMCL_VIEW_SAMPLES)){%>
{ text: "Health Collections", url: "viewBioHealthSmplCollections.do?command=view&identifier=fromMenu" },
<%}%>
<%}%>
<%if(HillspetUtil.checkAccess(request,IAHMSAccessConstants.DAILY_TASK_LIST_MEDICAL_TESTS)) {%>
{ text: "Medical Test", url: "viewDailyTaskListAction.do?command=view&id=2"},
<%}%>
<%if(HillspetUtil.checkAccess(request,IAHMSAccessConstants.DAILY_TASK_LIST_MEDICAL_EXAMS)) {%>
{ text: "Medical Exams", url: "viewDailyTaskListAction.do?command=view&id=3"},
<%}%>
{ text: "Status Phenotype", url: "viewDailyTaskListAction.do?command=view&id=6"},
{ text: "Surgery/Procedure", url: "viewDailyTaskListAction.do?command=view&id=4"},
{ text: "Facility Maintenance ",submenu: {
id: "subtab777",itemdata: [
{ text: "Facility Maintenance Task",url: "viewDailyTaskListAction.do?command=view&id=5" },
{ text: "Search FMT Images",url: "searchFMTImageAction.do?command=view" }]
{ text: "Record Group ACTs", url: "RecordWeightFecalScoreAction.do?command=view"},
{ text: "Administer Medication", url: "recordMedicationAdministrationAction.do?command=forward" },
<%if(HillspetUtil.checkAccess(request,IAHMSAccessConstants.RECORD_OBSERVATION_PERMISSION)) {%>
{ text: "Observations",
submenu: {
id: "subtab222",
itemdata: [
{ text: "Search Observations",url: "recordObservationsAction.do?command=view" },
{ text: "Record Observations",url: "addAnimalObservationAction.do?command=add&page=record&source=monitor" },
<%}%>
{ text: "Shared Feed Diet Assignment", url: "RecordWeightFecalScoreAction.do?command=viewDefaultDiet" },
<%if(HillspetUtil.checkAccess(request,IATMSAccessConstants.TRCL_PRINT_LABELS_LIST) || HillspetUtil.checkAccess(request,IATMSAccessConstants.HRCL_PRINT_LABELS_LIST)) {%>
{ text: "Print Labels",
submenu: {
id: "subtab211",
itemdata: [
<%if(HillspetUtil.checkAccess(request,IATMSAccessConstants.TRCL_PRINT_LABELS_LIST)) {%>
{ text: "Test Collections", url: "printLabelsAction.do?command=viewTests"},
<%}%>
<%if(HillspetUtil.checkAccess(request,IATMSAccessConstants.HRCL_PRINT_LABELS_LIST)) {%>
{ text: "Health Collections", url: "printLabelsAction.do?command=viewHealthCols"},
<%}%>
<%}%>
//{ text: "Controlled Drug Inventory", url: "#" , disabled: true},
<%}%>
<%if(HillspetUtil.checkAccess(request,IATMSAccessConstants.SM_RECIEVE_SAMPLES )||
HillspetUtil.checkAccess(request,IATMSAccessConstants.SM_RECIEVE_HEALTH_SAMPLES) || dto.getRoleList().contains("85") || dto.getRoleList().contains("111") || !dto.getRoleList().contains("123") && !dto.getRoleList().contains("82") ) {%>
id: "Tab3",
itemdata: [
{ text: "Sample Management",
submenu: {
id: "subtab41",
itemdata: [
<%if(HillspetUtil.checkAccess(request,IATMSAccessConstants.SM_RECIEVE_SAMPLES )||
HillspetUtil.checkAccess(request,IATMSAccessConstants.SM_RECIEVE_HEALTH_SAMPLES) || dto.getRoleList().contains("85") || dto.getRoleList().contains("111") || !dto.getRoleList().contains("131") ) {%>
{ text: "Samples Pending Receipt",
submenu: {
id: "subtabRecieve",
itemdata: [
<%if(HillspetUtil.checkAccess(request,IATMSAccessConstants.SM_RECIEVE_SAMPLES)) {%>
{ text: "Biological Test Collections", url: "fetchLabLocationDetailsAction.do?command=forward" , disabled: false},
<%}%>
<%if(HillspetUtil.checkAccess(request,IATMSAccessConstants.SM_RECIEVE_HEALTH_SAMPLES) || dto.getRoleList().contains("85") || dto.getRoleList().contains("111")) {%>
{ text: "Biological Health Collections", url: "recieveTestSamplesAction.do?command=forward" , disabled: false},
<%}%>
<%if(!dto.getRoleList().contains("706")) {%>
{ text: "Non Biological Collections", url: "receiveNonBiologicalSamplesAction.do?command=viewNBSamples"}
<% } %>
<%}%>
<%
if(HillspetUtil.checkAccess(request,IATMSAccessConstants.LAB_SM_VIEW_RECEIVED_NON_BIO_SMPLS)||HillspetUtil.checkAccess(request,IATMSAccessConstants.SM_RECIEVED_HEALTH_SAMPLES) || HillspetUtil.checkAccess(request,IATMSAccessConstants.SM_RECIEVED_TEST_SAMPLES) || dto.getRoleList().contains("85") || dto.getRoleList().contains("111")) {%>
{ text: "Samples Received",
submenu: {
id: "subtabRecieved",
itemdata: [
<%
if(HillspetUtil.checkAccess(request,IATMSAccessConstants.SM_RECIEVED_TEST_SAMPLES) || dto.getRoleList().contains("85") || dto.getRoleList().contains("111")) {%>
{ text: "Biological Test Collections", url: "recievedTestSamplesAction.do?command=forward" , disabled: false},
<%}%>
<%
if(HillspetUtil.checkAccess(request,IATMSAccessConstants.SM_RECIEVED_HEALTH_SAMPLES) || dto.getRoleList().contains("85") || dto.getRoleList().contains("111") ) {%>
{ text: "Biological Health Collections", url: "receivedBioTestSamplesAction.do?command=forward" , disabled: false},
<%}%>
<%
if(HillspetUtil.checkAccess(request,IATMSAccessConstants.LAB_SM_VIEW_RECEIVED_NON_BIO_SMPLS) ) {%>
{ text: "Non Biological Collections", url: "receivedNonBiologicalSamplesAction.do?command=viewNBSamples"}
<%}%>
<%}%>
<%if(HillspetUtil.checkAccess(request,"VIEW_SAMPLE_BATCHES") || dto.getRoleList().contains("85") || dto.getRoleList().contains("111")||dto.getRoleList().contains("706")) {%>
{ text: "Sample Batches", url: "viewSampleBatches.do?command=view" , disabled: false},
<%}%>
<% if (dto.getUserPermissionList().contains("OUTSIDE_LAB_SAMPLES_LIST") || dto.getRoleList().contains("131") || dto.getRoleList().contains("706")){ %>
{ text: "External Lab Samples", url: "outsideLabSamplesAction.do?command=view" , disabled: false},
<% } %>
<%
if (dto.getUserPermissionList().contains(
ICollectionKitConstants.GENERATE_CK_TEMPLATE) ) { %>
{ text: "Sample Collection Kits",
submenu: {
id: "subtab421",
itemdata: [
<%
if (dto.getUserPermissionList().contains(
ICollectionKitConstants.GENERATE_CK_TEMPLATE)){ %>
{ text: "Generate Collection Kits", url: "ckCreateTemplateAction.do?command=goToGenerateCkKits" , disabled: false},
<% } %>
<%
if (dto.getUserPermissionList().contains(
ICollectionKitConstants.GENERATE_CK_TEMPLATE) ){ %>
{ text: "Search & View", url: "ckCreateTemplateAction.do?command=goToCKSearch&fromMenu=true" },
<%}%>
<%}%>
<%if(HillspetUtil.checkAccess(request,IATMSAccessConstants.SMIN_VIEW_SAMPLE_INVENTORY) ||
HillspetUtil.checkAccess(request,IATMSAccessConstants.VIEW_FORMULA_INVENTORY) || dto.getRoleList().contains("85") || dto.getRoleList().contains("111") || dto.getRoleList().contains("131")) {%>
{ text: "Sample Information",
submenu: {
id: "subtabSampleInventory",
itemdata: [
<%if(HillspetUtil.checkAccess(request,IATMSAccessConstants.SMIN_VIEW_SAMPLE_INVENTORY) || dto.getRoleList().contains("85") || dto.getRoleList().contains("111")) {%>
{ text: "Biological Samples", url: "sampleInventoryAction.do?command=view" , disabled: false},
<%}%>
<%if(HillspetUtil.checkAccess(request,IATMSAccessConstants.VIEW_FORMULA_INVENTORY)) {%>
{ text: "Non Biological Samples", url: "viewInventory.do?command=view&fromLab=Y" , disabled: false},
<%}%>
<% if ( HillspetUtil.checkAccess(request,"PENDING_ANALYSIS_REQUEST_LIST") ||
HillspetUtil.checkAccess(request,"PENDING_ANALYSIS_REQUEST_READ") ) {
%>
{ text: "Collected Samples New Request", url: "pendingAnalysisReqAction.do?command=view" , disabled: false },
<%}%>
<%}%>
]Hi,
actually this mapping only identifies those requests to be handled by teh JSF servlet. Its not a redirect.
I see several namespace definitions in your page, but no taglib reference. Wondering how this is supposed to work
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://xmlns.oracle.com/adf/faces/html" prefix="afh"%>
<%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af"%>
I assume the next crash you will see is when you add JSF components to
<f:view>
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=windows-1252"/>
<title>tt</title>
</head>
<body><h:form></h:form></body>
</html>
</f:view>
Note that mixing HTML elements with JSF is not a recommended approach
Frank -
"javax.servlet.jsp.JspException: null" When trying to use JSTL
Hello,
I am trying to use some taglibs from Apache but I am getting the following error when trying to access the relevant page:
org.apache.jasper.JasperException: javax.servlet.jsp.JspException: null
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
org.apache.jasper.JasperException: javax.servlet.jsp.JspException: null
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
org.apache.jsp.Questions_jsp._jspService(Questions_jsp.java:42)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
javax.servlet.ServletException: javax.servlet.jsp.JspException: null
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:854)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
org.apache.jsp.WEB_002dINF.EL_005f2_jsp._jspService(EL_005f2_jsp.java:171)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
org.apache.jsp.Questions_jsp._jspService(Questions_jsp.java:42)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
java.lang.reflect.InvocationTargetException
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.apache.taglibs.standard.tag.common.core.SetSupport.doEndTag(Unknown Source)
org.apache.jsp.WEB_002dINF.EL_005f2_jsp._jspx_meth_c_set_0(EL_005f2_jsp.java:208)
org.apache.jsp.WEB_002dINF.EL_005f2_jsp._jspService(EL_005f2_jsp.java:113)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
org.apache.jsp.Questions_jsp._jspService(Questions_jsp.java:42)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)My web.xml file is as follows:
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app 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/web-app_2_4.xsd"
version="2.4">
<display-name>Jsp_Ex09 - JSP Standard Tag Library</display-name>
<welcome-file-list>
<welcome-file>welcome.jsp</welcome-file>
</welcome-file-list>
<jsp-config>
<taglib>
<taglib-uri>/simplequestions</taglib-uri>
<taglib-location>/WEB-INF/tlds/simplefaq.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/tlds/c.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jsp/jstl/fmt</taglib-uri>
<taglib-location>/WEB-INF/tlds/fmt.tld</taglib-location>
</taglib>
<jsp-property-group>
<url-pattern>*.jsp</url-pattern>
<el-ignored>false</el-ignored>
<scripting-invalid>true</scripting-invalid>
</jsp-property-group>
</jsp-config>
</web-app>I have the standard and jstl jars in my lib directory and the relevant tlds files int the tlds directory. I am using Tomcat 5.5 and J2EE 5.
The jsp in question is as follows:
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<html>
<head>
<title>JSTL Q2</title>
</head>
<body>
<h1>JSTL Question 2</h1>
<h2>How do I use the JSTL?</h2>
<jsp:useBean id="questions" class="com.apress.faq.Questions"
scope="page">
<jsp:setProperty name="questions" property="topic" value="EL"/>
</jsp:useBean>
<table border="1">
<!-- the literal JSTL tag will be in left column of table -->
<!-- the evaluated JSTL tag will be in right column of table -->
<tr><th>tag</th><th>result</th></tr>
<!-- this tag uses c:out to send the value of an EL to the response -->
<tr><td><c:out value="${'${'}questions.topic}"/></td>
<td><c:out value="${questions.topic}"/></td>
</tr>
<!-- this tag uses c:set to set the property of a JavaBean -->
<c:set target="${questions}" property="topic" value="JSTL" />
<tr>
<td><c:set target="${'${'}questions}" property="topic"
value="JSTL"/>
</td>
<td><c:out value="${questions.topic}"/></td>
</tr>
<!-- this tag uses c:if to determine whether to create another row -->
<c:if test="${questions.topic == 'EL'}">
<tr><td>This row will not be created</td>
<td></td>
</tr>
</c:if>
<c:if test="${questions.topic == 'JSTL'}">
<tr><td>This row was created because the c:if tag result was true</td>
<td></td>
</tr>
</c:if>
</table>
<h2>Multiplication table, 1 - 5</h2>
<!-use the forEach tag to create a table -->
<table border="1">
<tr><td></td><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td></tr>
<c:forEach var="i" begin="1" end="5">
<tr><td><c:out value="${i}"/></td>
<c:forEach var="j" begin="1" end="5">
<td><c:out value="${i*j}"/></td>
</c:forEach>
</tr>
</c:forEach>
</table>
<h2>Formatting numbers</h2
<br><fmt:formatNumber value="23.456" type="number" /> results in
<fmt:formatNumber value="23.456" type="number" />
<br><fmt:formatNumber type="currency">23.456
</fmt:formatNumber> results in <fmt:formatNumber
type="currency">23.456</fmt:formatNumber>
<br><fmt:formatNumber value=".23456" type="percent"/> results
in <fmt:formatNumber value=".23456" type="percent"/>
<br><fmt:formatNumber value=".23456" type="percent"
minFractionDigits="2"/> results in <fmt:formatNumber
value=".23456" type="percent" minFractionDigits="2"/>
</body>
</html>Can anyone spot the problem?
Sorry for such a big post!ava.lang.reflect.InvocationTargetException
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.apache.taglibs.standard.tag.common.core.SetSupport.doEndTag(Unknown Source)From the stacktrace, it appears to be from a <c:set> tag.
Invocation target exception would meant that an error was encountered calling the setter.
That would focus on this part of the code:
<!-- this tag uses c:set to set the property of a JavaBean -->
<c:set target="${questions}" property="topic" value="JSTL" />
<tr>
<td><c:set target="${'${'}questions}" property="topic"
value="JSTL"/>
</td>That nesting of ${ } inside ${} looks dodgy to me. What is it you are trying to achieve? -
ServletException: javax.servlet.jsp.tagext.TagInfo
I'm getting the following exception trying to load a simple tag into a jsp page. Can anybody point me in the right direction since I've searched everywhere and can't find any references to the cause of this error.
As far as I can find out TagInfo is called at page translation time and I'm thinking this class is in the servlet.jar api which I have version 2.2 of and don't see any newer versions on suns site.
Thanks for any help.
exception
javax.servlet.ServletException: javax.servlet.jsp.tagext.TagInfo.<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljavax/servlet/jsp/tagext/TagLibraryInfo;Ljavax/servlet/jsp/tagext/TagExtraInfo;[Ljavax/servlet/jsp/tagext/TagAttributeInfo;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljavax/servlet/jsp/tagext/TagVariableInfo;Z)V
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:256)
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
root cause
java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagInfo.<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljavax/servlet/jsp/tagext/TagLibraryInfo;Ljavax/servlet/jsp/tagext/TagExtraInfo;[Ljavax/servlet/jsp/tagext/TagAttributeInfo;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljavax/servlet/jsp/tagext/TagVariableInfo;Z)V
org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:469)
org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:291)
org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:205)
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:458)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:523)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1577)
org.apache.jasper.compiler.Parser.parse(Parser.java:171)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:258)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:139)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:237)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:456)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:553)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)You have a servlet.jar version2.2?
servlet.jar comes with your servlet container. You don't download it seperately. You have to upgrade your entire server.
Servlet spec version 2.2 (JSP1.1) is fairly old now - That comes with Tomcat3.
Which webserver are you using, and which version?
And what version of TLD are you working with?
What it sounds like is that you are using TLD version which was specified for Servlet2.3/JSP1.2, and as such won't run with your server.
Suggestions
1 - upgrade your servlet container.
2 - if thats not possible, use the older syntax for the TLD file.
Hope this helps,
evnafets -
hi,
I try to view my presentation in jsp page.I use oracle jdeveloper 9.2.0.4 and bibeans 9.2.0.4 and once 1 month ago I did this taks (I view a presentation from bibdemo in jsp file)
now I try to view my own presentation in jsp but I recieve error message in my own schema and bibdemo schema!!
when I use windows xp I recieve following error :
500 Internal Server Error
javax.servlet.jsp.JspException: BIB-10310 An unknown exception occurred.
BIB-10101 Handler failed to handle UserObject.
BIB-14067 Persistable object threw exception during lookup on method setXMLAsString; component class oracle.dss.dataSource.client.QueryClient; exception oracle.dss.util.persistence.BIPersistenceException.
BIB-9509 Oracle OLAP did not create cursor.
oracle.olapi.data.source.UnmatchedInputsException
BIB-9509 Oracle OLAP did not create cursor.
oracle.olapi.data.source.UnmatchedInputsException
oracle.olapi.data.source.UnmatchedInputsException
at oracle.dss.addins.jspTags.PresentationTag.doStartTag(PresentationTag.java:194)
at test.jspService(test.jsp:6)
[test.jsp]
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:139)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:349)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:778)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:534)
and when I use windows NT I recieve following error :
500 Internal Server Error
javax.servlet.jsp.JspException: java.lang.NullPointerException
at oracle.dss.addins.jspTags.RenderTag.doEndTag(RenderTag.java:212)
at kafa_report__7._jspService(kafa_report_7.jsp:18)
[kafa_report_7.jsp]
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:139)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:349)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:778)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
at java.lang.Thread.run(Thread.java:534)
I
what the problem is ????????
thanks in advance,hi,
here the result :
<?xml version="1.0" encoding="UTF-8" ?>
- <BICheckConfig version="1.0.2.0">
<Check key="JDEV_ORACLE_HOME" value="d:\jdev904" />
<Check key="JAVA_HOME" value="C:\j2sdk1.4.2_01" />
<Check key="JDeveloper version" value="9.0.4.0.1419" />
<Check key="BI Beans release description" value="BI Beans 9.0.4 Production Release" />
<Check key="BI Beans component number" value="9.0.4.23.0" />
<Check key="BI Beans internal version" value="2.7.5.32" />
<Check key="host" value="200.20.20.11" />
<Check key="port" value="1521" />
<Check key="sid" value="ora10g" />
<Check key="user" value="dw_targetschema" />
<Check key="Connecting to the database" value="Successful" />
<Check key="JDBC driver version" value="9.2.0.4.0" />
<Check key="JDBC JAR file location" value="D:\jdev904\jdev\lib\patches" />
<Check key="Database version" value="10.1.0.2.0" />
<Check key="OLAP Catalog version" value="10.1.0.2.0" />
<Check key="OLAP AW Engine version" value="10.1.0.2.0" />
<Check key="OLAP API Server version" value="10.1.0.2.0" />
<Check key="BI Beans Catalog version" value="N/A; not installed in dw_targetschema" />
<Check key="OLAP API JAR file version" value="9.2" />
<Check key="OLAP API JAR file location" value="d:\jdev904\jdev\lib\ext" />
<Check key="OLAP API Metadata Load" value="Successful" />
<Check key="Number of metadata folders" value="2" />
<Check key="Number of metadata measures" value="1" />
<Check key="Number of metadata dimensions" value="3" />
- <Check key="OLAP API Metadata">
- <![CDATA[
==============================================================================
Type Name (S=Schema, C=Cube, M=Measure, D=Dimension) Status
========= ======================================================= ============
Folder... ROOT
Folder... KAFA_COLLECTION
Folder... KAFA_COLLECTION2
Measure.. SALARY Unsuccessful
S=DW_TARGETSCHEMA, C=EMPLOYEMENT_CUBE, M=SALARY
Connection lost. Reconnect Successful
Dimension DEP_DIM Successful
S=DW_TARGETSCHEMA, D=DEP_DIM
Dimension EMP_DIM Successful
S=DW_TARGETSCHEMA, D=EMP_DIM
Dimension JOB_DIM Successful
S=DW_TARGETSCHEMA, D=JOB_DIM
]]>
</Check>
- <Check key="StackTrace">
- <![CDATA[
============================================================================
Queries on the following measures or dimensions failed
(S=Schema, C=Cube, M=Measure, D=Dimension)
"SALARY" measure query with S=DW_TARGETSCHEMA, C=EMPLOYEMENT_CUBE, M=SALARY
============================================================================
Exception stacktrace for "SALARY" measure query with S=DW_TARGETSCHEMA, C=EMPLOYEMENT_CUBE, M=SALARY
============================================================================
1) BIB-9009 Oracle OLAP could not create cursor.
oracle.express.idl.util.OlapiException: No more data to read from socket
2) BIB-9009 Oracle OLAP could not create cursor.
oracle.express.idl.util.OlapiException: No more data to read from socket
1) BIB-9009 Oracle OLAP could not create cursor.
oracle.express.idl.util.OlapiException: No more data to read from socket
============================================================================
oracle.dss.dataSource.common.QueryRuntimeException: BIB-9009 Oracle OLAP could not create cursor.
oracle.express.idl.util.OlapiException: No more data to read from socket
java.lang.CloneNotSupportedException: BIB-9009 Oracle OLAP could not create cursor.
oracle.express.idl.util.OlapiException: No more data to read from socket
at oracle.dss.dataSource.common.Query.addQueryListener(Query.java:480)
at BICheckConfig.runDefaultMeasureQuery(BICheckConfig.java:480)
at BICheckConfig.printFolder(BICheckConfig.java:405)
at BICheckConfig.printFolder(BICheckConfig.java:464)
at BICheckConfig.checkConnection(BICheckConfig.java:350)
at BICheckConfig.main(BICheckConfig.java:1348)
2) BIB-9009 Oracle OLAP could not create cursor.
oracle.express.idl.util.OlapiException: No more data to read from socket
============================================================================
java.lang.CloneNotSupportedException: BIB-9009 Oracle OLAP could not create cursor.
oracle.express.idl.util.OlapiException: No more data to read from socket
at oracle.dss.dataSource.common.CubeCursor.clone(CubeCursor.java:387)
at oracle.dss.dataSource.common.Query.addNewCubeCursorCopy(Query.java:2366)
at oracle.dss.dataSource.common.Query.addQueryListener(Query.java:477)
at BICheckConfig.runDefaultMeasureQuery(BICheckConfig.java:480)
at BICheckConfig.printFolder(BICheckConfig.java:405)
at BICheckConfig.printFolder(BICheckConfig.java:464)
at BICheckConfig.checkConnection(BICheckConfig.java:350)
at BICheckConfig.main(BICheckConfig.java:1348)
]]>
</Check>
</BICheckConfig>
when I was transfering the collection from warehouse builder to database I recieve some error messages.
but when I try to connect to database from bibeans every thing was ok so I thougth maybe it is because of that.
and that about bibdemo why it doesn't work???
it works before and I check it with bi_checkconfig
thanks ,
shima -
Javax.servlet.jsp.JspException: Cannot find FacesContext
Hello All,
I was trying to create a simple JSF page (Welcome.jspx )(please find code bellow) .But it is always giving the following error:
javax.servlet.jsp.JspException: Cannot find FacesContext
The error appears though i am calling the page with the faces servlet (http://128.128.5.64:8989/GradeEntry/faces/Infrastructure/Welcome.jspx)!!
I have searched all possible forums on the Internet and tried their suggestions with no luck...My web.xml configuration contains the right Faces Servlet Mapping :
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
Bear in mind that i can run from the project pages that are generated from Oracle Jheadstart...But i just can't run this welcome page that i've created with JDeveloper.
Please find bellow the code for Welcome.jspx:
<?xml version='1.0' encoding='windows-1252'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:af="http://xmlns.oracle.com/adf/faces"
xmlns:afh="http://xmlns.oracle.com/adf/faces/html"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:fmt="http://java.sun.com/jsp/jstl/fmt">
<jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
doctype-system="http://www.w3.org/TR/html4/loose.dtd"
doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
<jsp:directive.page contentType="text/html;charset=windows-1252"/>
<f:view>
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=windows-1252"/>
<title>tt</title>
</head>
<body><h:form></h:form></body>
</html>
</f:view>
</jsp:root>
You help is very appreciated!!Hi,
actually this mapping only identifies those requests to be handled by teh JSF servlet. Its not a redirect.
I see several namespace definitions in your page, but no taglib reference. Wondering how this is supposed to work
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://xmlns.oracle.com/adf/faces/html" prefix="afh"%>
<%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af"%>
I assume the next crash you will see is when you add JSF components to
<f:view>
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=windows-1252"/>
<title>tt</title>
</head>
<body><h:form></h:form></body>
</html>
</f:view>
Note that mixing HTML elements with JSF is not a recommended approach
Frank -
Hi,
In my ADF Application, new users are to be allowed to Register by clicking a button in login page. The Application is based on ADF Security Wizard and I have created default pages for Login and Error, so the application's login page is login.html.
Now when I’m trying to navigate to 'NewUserRegistrationPage.jspx' Im getting javax.servlet.jsp.JspException: Cannot find FacesContext error.
I thought the issue might be from calling a .jspx from .html so I created a 'NewLogin.jspx' Page with below code and specified this page in ADF Security Wizard for Login Page.
Please advice me some way of calling the 'newRegistrationpage.jspx' from my login page.
Im using JDeveloper 10.1.3.4.
Page Code:
<?xml version='1.0' encoding='windows-1252'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:af="http://xmlns.oracle.com/adf/faces"
xmlns:afh="http://xmlns.oracle.com/adf/faces/html">
<jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
doctype-system="http://www.w3.org/TR/html4/loose.dtd"
doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
<jsp:directive.page contentType="text/html;charset=windows-1252"/>
<f:view>
<html>
<head>
<title>Login</title>
</head>
<body><form method="POST" action="j_security_check">
<font face="Verdana" color="Navy">
<table cellspacing="2" cellpadding="3" border="0" align="center">
<tr>
<th>Username:</th>
<td>
<input type="text" name="j_username"/>
</td>
</tr>
<tr>
<th>Password:</th>
<td>
<input type="password" name="j_password"/>
</td>
</tr>
</table>
</font>
<p align="center">
<input type="submit" name="submit" value="Submit"/>
<input type="button" name="" value="Request Password"/>
<input type="button" name="" value="New User Registration"/>
</p>
</form></body>
</html>
</f:view>
</jsp:root>
Error::
javax.servlet.jsp.JspException: Cannot find FacesContext at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:427) at com.sun.faces.taglib.jsf_core.ViewTag.doStartTag(ViewTag.java:125) at webpages.REACHLoginPage_jspx._jspService(_REACHLoginPage_jspx.java:47) [WebPages/REACHLoginPage.jspx] at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.4.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193) at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:284) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.FormHttpAuthenticator.reject(FormHttpAuthenticator.java:83) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpApplication.checkAuthenticationAndAuthorize(HttpApplication.java:6435) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:3030) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:738) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:122) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:111) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234) at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29) at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298) at java.lang.Thread.run(Thread.java:595)
Edited by: Manasa Tadi on Jul 1, 2009 11:52 PMHi Branislav,
Thanks a lot for your suggestion through which now Im able to navigate to NewRegistration page from login.html.
In my application login.html is under public_html folder where as the NewRegistration page in public_html/WebPages.
Code I used:
New User Registration
But the issue now is, the NewUserRegistrationPage was also under the ADFSecurity, so inorder to navigate to it again the user had to provide authentication. So, I have removed this particular page from Security and it has started to work.
But the issue now I face is something else. In the NewUserRegistrationPage I have a selection to be made by user about the type of user he is and based on the selection he would be navigated to next page, This next page has a VO on it as a 'create form', through which he can directly fill the form and submit his details to database table.
But as I have removed these pages from ADF Security and authentication, the form fields/attributes in the VO are not getting binded, Im getting this Exception:
500 Internal Server Error
javax.faces.el.PropertyNotFoundException: Error testing property 'inputValue' in bean of type null
For testing purpose when I have provided link from application page to NewRegistrationPage the flow is working properly, able to navigate to second page and submit the filled form to database, I think this is working because we have entered the application after providing the login credentials.'
Help in this greatly needed.
Thanks,
Manasa. -
why i cant open my report in JDeveloper tools but i can open in report builder ????
this is the error i get ...
Reports Error Page
Fri Oct 18 15:41:54 SGT 2002
javax.servlet.jsp.JspException: REP-51002: Bind to Reports Server reportserver failed
javax.servlet.jsp.JspException: REP-51002: Bind to Reports Server reportserver failed
int oracle.reports.jsp.ReportTag.doStartTag()
ReportTag.java:329
void MyReport.jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
MyReport.jsp:4
void oracle.jsp.runtime.HttpJsp.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
HttpJsp.java:119
void oracle.jsp.runtimev2.JspPageTable.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)
JspPageTable.java:302
void oracle.jsp.runtimev2.JspServlet.internalService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
JspServlet.java:407
void oracle.jsp.runtimev2.JspServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
JspServlet.java:328
void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
HttpServlet.java:336
void com.evermind.server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
ServletRequestDispatcher.java:684
void com.evermind.server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
ServletRequestDispatcher.java:269
boolean com.evermind.server.http.HttpRequestHandler.processRequest(com.evermind.server.ApplicationServerThread, com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
HttpRequestHandler.java:735
void com.evermind.server.http.HttpRequestHandler.run(java.lang.Thread)
HttpRequestHandler.java:243
void com.evermind.util.ThreadPoolThread.run()
ThreadPoolThread.java:64i still get the same error .. is it i need to set any environment variable or ... any setting ...??
login Oracle Database
user name = system
password = manager
services = dbhenry
setting JSP Report
Report Name = MyReport1
Reports Server = reportserver
Parameters = userid=system/manager@dbhenry
the cource code below is my JSP report coding :
<rw:report id="MyReport1" parameters="server=reportserver&userid=system/manager@dbhenry">
<rw:objects id="objects">
<?xml version="1.0" encoding="WINDOWS-1252" ?>
<report name="MyReport1" DTDVersion="9.0.2.0.0">
<xmlSettings xmlTag="MYREPORT1" xmlPrologType="text">
<![CDATA[<?xml version="1.0" encoding="&Encoding"?>]]>
</xmlSettings>
<data>
<dataSource name="Q_1">
<select>
<![CDATA[SELECT ALL HENRY.TEL, HENRY."ADD", HENRY.NAME, HENRY.ID
FROM HENRY ]]>
</select> -
Hi All,
I'm a System Engineer. My application code in Java and using JDK 1.3.1.
My Application deploy in IBM iSeries V5R2 and not error. But after I upgrade to iSeries V5R3, my application encounter missing message error such as "javax.servlet.jsp.JspException: Missing message for key common.business.BankAddress".
I already downgrade for iSeries V5R3 to JDk 1.3.1.
Did Weblogic 6.1 support IBM iSeries V5R3?
Do you have any ideas?
Thank you.hi siewmun ,
weblogic 6.1 does't support IBM iSeries V5R3 .
IBM iSeries V5R3 is supported by IBM products mostly.
go through the link, you can find the documention on IBM iSeries v5r3
http://publib.boulder.ibm.com/infocenter/iseries/v5r3/ic2924/index.htm
Anilkumar kari -
Hi I am trying to deploy a struts based web application using "DynaActionForms"
When I am trying to access the jsp page I am getting the following error.
I am providing as much as details as it can help full to u.
Thank u.
FormBean class ProdFormFB.java
========================================================================
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import org.apache.struts.action.*;
public class ProdFormFB extends DynaActionForm
public void reset(ActionMapping mapping, HttpServletRequest request)
System.out.println("reset() called. . . . ");
set("prodId", new Integer(10));
set("prodName", new String("XYZ"));
set("price", new Float(22.25));
public ActionErrors validate(ActionMapping mappings, HttpServletRequest request)
System.out.println("=== validate() called ===");
ActionErrors aes=new ActionErrors();
System.out.println("aes.size() ===> "+aes.size());
String prodName = (String)get("prodName");
if( prodName==null || prodName.equals("") )
System.out.println("Adding prodName.req error . . . . . . .");
aes.add("prodName",new ActionError ("prodName.req.error"));
return aes;
========================================================================
Action Class ProdAction.java
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import org.apache.struts.action.*;
public class ProdAction extends Action
public ActionForward execute(ActionMapping mapping,ActionForm form, HttpServletRequest request,HttpServletResponse response)throws Exception
ProdFormFB fb = (ProdFormFB)form;
System.out.println("fb.get('prodId')==> "+fb.get("prodId"));
System.out.println("fb.get('prodName')==> "+fb.get("prodName"));
System.out.println("fb.get('price')==> "+fb.get("price"));
return mapping.findForward("dres");
}========================================================================
jsp page : npform.jsp
<%@ taglib uri = "/tags/struts-html" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<html:html>
<head>
<title>Product Form</title>
</head>
<body>
<html:form action="/pAction">
<center>
<br><br>
<center> <font color="green" style="bold" size=5>Product Form using Struts</font></center><br><br>
<table>
<tr>
<td>
<b> Product ID : </b> <html:text property="prodId"/> </td><td><font color="red" style="bold"><html:errors property="prodId"/> </font>
</td>
</tr>
<tr>
<td>
<b> Prod Name : </b> <html:text property="prodName"/> </td><td> <font color="red" style="bold"> <html:errors property="prodName"/> </font>
</td>
</tr>
<!-- <tr>
<td>
<b> Price : </b> <html:text property="price"/> </td><td> <font color="red" style="bold"> <html:errors property="price"/> </font>
</td>
</tr> -->
<tr colspan="2" align="center">
<td>
<html:submit property="submit" value="Store"/>
</td>
</tr>
</table>
</center>
</html:form>
</body>
</html:html>========================================================================
Configuration in struts-config.jsp
<form-beans>
<form-bean name="NewProdForm" type="ProdFormFB">
<form-property name="prodId" type="java.land.Integer"/>
<form-property name="prodName" type="java.land.String"/>
<form-property name="price" type="java.land.Float"/>
</form-bean>
</form-beans>
<action-mappings>
<action name="NewProdForm" path="/pAction" type="ProdAction" input="/npform.jsp" validate="true" scope="request">
<forward name="dres" path="/dres.jsp"/>
</action>
</action-mappings>========================================================================
After deploying successfully I am I am entering the following URL
http://localhost:7001/oursapp/npform.jsp
The following Exception on Browser: and also on the server console ......
javax.servlet.jsp.JspException: Exception creating bean of class ProdFormFB: {1}
at org.apache.struts.taglib.html.FormTag.initFormBean(FormTag.java:463)
at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:433)
at jsp_servlet.__npform._jspService(__npform.java:178)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6718)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
Plz... Help me out is solving the problem .......
my email : [email protected]I never used DynaActionForm, what I have noticed here is, don't you need to declare the form bean? I may be wrong.
<form-beans>
<form-bean name="newProdForm" type="com.package.form.NewProdForm"></form-bean>
</form-beans> -
Dear everyone,
I have built some customized JSF components. In the taglib, there is attribute "id" for my components. There is no problem when the page is run, but when I click submit button, there are errors.
javax.servlet.jsp.JspException: duplicate Id for a component form1:dojoComboBox1 at com.sun.faces.taglib.jsf_core.ViewTag.doAfterBody(ViewTag.java:191) at _andychun._jspService(_andychun.java:190) [andychun.jsp] at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.1.1) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:598) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:522)
Please kindly help solve this problem. Thank you.
Best Regards,
DavidAlex,
my guess is that because you copied content from the
first page to the next, you created JSF components
with the same ID. JSF components must have unique IDs
though.
FrankHello Frank,
Thanks for your reply. The thing is in the first page I do not have much id's specified/defined. And in the second page what I did was to take out all id's to see if it was conflicting. When I tried it again I still got the error. So the id's are being generated automatically if seems.
Also is it that JSF components should have unique id's for a particular page or all pages in the JSF application?
Any other sugguestions. I hope you understand what I am saying. If you have any questions or uncertainties fell free to ask me.
Thanks,
Alex. -
Hi,
I am working on a JSp web based reports ver 10g .I made a war file and deployed on Apps server. when i run the report its throwing the following exception
javax.servlet.jsp.JspException: REP-51002: Bind to Reports Server reportserver failed .
plz suggest on how to resolve this error.
Thanks
SrinivasHi,
Anyone having solution for this. I am also stucked due to this error
Reports Error Page
Fri Jan 16 11:47:29 IST 2009
javax.servlet.jsp.JspException: REP-51002: Bind to Reports Server reportserver failed
javax.servlet.jsp.JspException: REP-51002: Bind to Reports Server reportserver failed
int oracle.reports.jsp.ReportTag.doStartTag()
void MyReport.jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
void oracle.jsp.runtime.HttpJsp.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
void oracle.jsp.runtimev2.JspPageTable.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)
void oracle.jsp.runtimev2.JspServlet.internalService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
void oracle.jsp.runtimev2.JspServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
void com.evermind.server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
void com.evermind.server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
boolean com.evermind.server.http.HttpRequestHandler.processRequest(com.evermind.server.ApplicationServerThread, com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
void com.evermind.server.http.HttpRequestHandler.run(java.lang.Thread)
void com.evermind.util.ThreadPoolThread.run()
Could u please give me a solution??? -
Hi
I have deployed a WAR file successfully on
standalone( win os) / 10AS server Rel2 ( Linux )
But some times I get this Error ONLY on 10AS server Rele 2
"javax.servlet.jsp.JspException: Error: IOException while writing to client!"
Plz can some body tell me why am i getting this error.
Is this a J2ee Container Problem?
with regards
KarthikHi Form
Plz some body explain me why am i getting this error not so frequently
with regards
Karthik
Maybe you are looking for
-
IPhoto "hangs" when Loading Library
I'm having an issue with iPhoto, where, when I launch it, the app appears to open, but in the middle, where the photos are normally displayed, it hangs up saying "loading library", with the spinning gray cog wheel. No photos ever load, yet the progra
-
Modify SAP data using Web Dynpro for ABAP
Experts, I have a question. We all have working in web Dynpro to create report. I was trying to display the data in table and update the data. When I click on Save button the data should be saved in the SAP table. SAP table may be standard or user-de
-
How to screen share a Tiger iBook from a Leopard iMac outside my home LAN
Okay, I have recently installed Tiger on my girlfriends G3 iBook, and I am able to control it from my iMac via Screensharing, but so far I have only tried this while they are both on my home network, (the iBook is using an ethernet connection from my
-
Apple TV not quite right, restarts needed often - are they all this way?
I have a 40GB Apple TV that I keep in 'Sync' mode with my Mac Pro iTunes library. Most of the time, about 65%, the Apple TV works just fine. But the other times here are the odd and random issues I get: • When buying TV Shows or movies I get an "Acce
-
Cannot access shopping cart in iTunes store.
I can access the iTunes store just fine; however, I can't get to my shopping cart. I can no longer access my shopping cart. I clicked on it today and was prompted to agree to new terms and conditions; I did so. I was then forwarded to another screen