Faces context not found
hi,
Created a sample application with struts-faces integration.i am providing the <welcome-file-list> tag entry in the web.xml.Now when i try to hit the deployed application, i get error "Cannot find FacesContext".I guess i am not supposed to provide the path "faces/index.jsp" in a html file(the way it is done in a pure faces app),since the <welcome-file-list> should take care of it.The sample app provided also does not go thru a html file.
plz help.
Thanks in advance.
Kshitij
ok...i got the solution. Was trying to acces the jsp page without a "/faces" prefix.Thought it wae not necessary since you can give a <welcome-file-list> entry.but you have to.
kshitij.
Similar Messages
-
Faces context not found (Form based authentication)
<security-constraint>
<display-name>Example Security Constraint</display-name>
<web-resource-collection>
<web-resource-name>Protected Area</web-resource-name>
<url-pattern>/jsp/WorkingZone.jsp</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>manager</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<realm-name>Example Form-Based Authentication Area</realm-name>
<form-login-config>
<form-login-page>/Login/login.jsp</form-login-page>
<form-error-page>/Login/error.jsp</form-error-page>
</form-login-config>
</login-config>
when i tried to login with valid user the the url shows
http://localhost:8080/FormAuth/jsp/WorkingZone.jsp
how to append faces context automatically.
I am not finding for this faces context.
Plz suggest me a solution soon.
Thanks
Raghavendra PattarThe FacesContext is created by FacesServlet which is
definied in the web.xml with an url-pattern.
If you just follow the url-pattern of this
FacesServlet, usually /faces/ or *.faces, or *.jsf,
then the FacesContext will be created.Hi balu,
this is the web.xml that i am using
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
</context-param>
<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>/WEB-INF/navigation.xml,/WEB-INF/managed-beans.xml</param-value>
</context-param>
<context-param>
<param-name>com.sun.faces.validateXml</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>com.sun.faces.verifyObjects</param-name>
<param-value>false</param-value>
</context-param>
<filter>
<filter-name>UploadFilter</filter-name>
<filter-class>com.sun.rave.web.ui.util.UploadFilter</filter-class>
<init-param>
<description>
The maximum allowed upload size in bytes. If this is set
to a negative value, there is no maximum. The default
value is 1000000.
</description>
<param-name>maxSize</param-name>
<param-value>1000000</param-value>
</init-param>
<init-param>
<description>
The size (in bytes) of an uploaded file which, if it is
exceeded, will cause the file to be written directly to
disk instead of stored in memory. Files smaller than or
equal to this size will be stored in memory. The default
value is 4096.
</description>
<param-name>sizeThreshold</param-name>
<param-value>4096</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>UploadFilter</filter-name>
<servlet-name>Faces Servlet</servlet-name>
</filter-mapping>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>ThemeServlet</servlet-name>
<servlet-class>com.sun.rave.web.ui.theme.ThemeServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ThemeServlet</servlet-name>
<url-pattern>/theme/*</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file></welcome-file>
</welcome-file-list>
<jsp-config>
<jsp-property-group>
<url-pattern>*.jspf</url-pattern>
<is-xml>true</is-xml>
</jsp-property-group>
</jsp-config>
<security-constraint>
<display-name>Example Security Constraint</display-name>
<web-resource-collection>
<web-resource-name>Protected Area</web-resource-name>
<url-pattern>/secure/*</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>manager</role-name>
</auth-constraint>
</security-constraint>
<!-- Default a login configuration that uses form-based authentication -->
<login-config>
<auth-method>FORM</auth-method>
<realm-name>Example Form-Based Authentication Area</realm-name>
<form-login-config>
<form-login-page>/Login/login.jsp</form-login-page>
<form-error-page>/Login/error.jsp</form-error-page>
</form-login-config>
</login-config>
<!-- Define a logical role for this application, needs to be mapped to an actual role at deployment time -->
<security-role>
<role-name>manager</role-name>
</security-role>
</web-app>1)My requirement is Login page should be the first page
If enter the valid user and password
then i will get directory structure
when i click the secured JSF page inside secure
i got this URL
http://localhost/secure/WorkingZone.jsp
obiviously /faces is missing
and i am getting faces context not found.
If u need further clarification i will send u..
Plz reply me... -
ORA-01023: Cursor context not found (Invalid cursor number)
hello guys.
when i'm trying to make a regular recover, i get this error:
RMAN> run
2> {
3> restore database;
4> recover database;
5> alter database open;
6> }
Starting restore at 09-MAR-07
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 03/09/2007 10:23:41
ORA-01023: Cursor context not found (Invalid cursor number)
what am i doing wrong and how could i open this cursor?
sorry, that i'm clueless.
thank you.TAF is not supported with RMAN according to Metalink note
-
Hello Guys,
I am using a Cisco 2951 with 15.3(3)M1, and when doing some tests with CoA i got the following error:
*Nov 7 10:34:24.780: COA: 1.1.1.1 request queued
*Nov 7 10:34:24.780: RADIUS: authenticator 52 CF BB 58 BB D5 69 4E - 59 3B 09 75 E9 83 54 4C
*Nov 7 10:34:24.780: RADIUS: User-Name [1] 2 ""
*Nov 7 10:34:24.780: RADIUS: Acct-Session-Id [44] 10 "0000002B"
*Nov 7 10:34:24.780: RADIUS: Vendor, Cisco [26] 42
*Nov 7 10:34:24.780: RADIUS: Cisco AVpair [1] 36 "subscriber:command=reauthenticate "
*Nov 7 10:34:24.780: RADIUS: Message-Authenticato[80] 18
*Nov 7 10:34:24.780: RADIUS: B6 78 8B EA DE 3B 73 26 57 53 C0 E7 47 89 2C 6D [ x;s&WSG,m]
*Nov 7 10:34:24.780: COA: Message Authenticator decode passed
*Nov 7 10:34:24.780: ++++++ CoA Attribute List ++++++
*Nov 7 10:34:24.780: 01EEAF6C 0 00000081 username(450) 0
*Nov 7 10:34:24.780: 01EEB7EC 0 00000001 session-id(408) 4 43(2B)
*Nov 7 10:34:24.780: 01EEB820 0 00000081 ssg-command-code(490) 1 32
*Nov 7 10:34:24.780:
*Nov 7 10:34:24.780: ++++++ Received CoA response Attribute List ++++++
*Nov 7 10:34:24.780: 01EEB7EC 0 00000082 reply-message(273) 16 No valid Session
*Nov 7 10:34:24.780: 01EEB820 0 00000002 error-cause(272) 4 Session Context Not Found
This is very strange, because the session-id is correct.
Can anyone advice me on this? Thanks!
DavidHello Manuel,
Thanks for all your help. Here is the show output
LNS#show subscriber session uid 47 detailed internal
Subscriber session handle: EC00005E, state: connected, service: Local Term
Unique Session ID: 47
Identifier: [email protected]
SIP subscriber access type(s): VPDN/PPP
Root SIP Handle: 5300005D, PID: 313
Child SIP Handle: 7900002F, PID: 318
Current SIP options: Req Fwding/Req Fwded
Session Up-time: 19:52:55, Last Changed: 19:52:55
Switch handle: 211E
Interface: Virtual-Access2.2
Policy information:
Context 10EC39C0: Handle 7B00002F
AAA_id 0000003B: Flow_handle 0
Authentication status: authen
Policy internals:
Policy state : wait-for-events
Authorization type : AAA service
Active key : apply-config-only
Authorization active key : Auth-User
Last top level rule type : session-service-found
Client : SM
Last message from client : Apply Config Success
Last message to client : Apply Config Success
Current key list from client :
Identifier: Auth-Domain = "xxx.xx"
Identifier: Protocol-Type = 0 (PPP Access Protocol)
Identifier: Session-Handle = 3959423070 (EC00005E)
Identifier: Tunnel-Name = "LNS"
Identifier: Media-Type = 2 (IP)
Identifier: Input Interface = "GigabitEthernet0/1.2000"
Identifier: AAA-Acct-Enbl = 1 (YES)
Identifier: Authen-Status = 0 (Authenticated)
Identifier: Nasport = Vty Terminal: port 47 IP 69.17.193.90
Identifier: Auth-User = "[email protected]"
Network plumbing done yet : Yes
Network plumbing directive proposed : None
AIE handle : 2B00002F
AIE user ID : 47
AAA user ID : 0000003B/59
Authorization index : 0
Authorization priority : 1
Context : 7B00002F
North handle : 00000000
North callback : 00000000
South handle : EC00005E
South callback : 06B898A8
Current access-type : PPP
All access-types : [0] VPDN
: [1] PPP
No more keys available from : PPP
Session activated : Yes
Session inbound features:
Feature: QoS Policy Map
Input Policy Map: INTERNET-15Mb-IN
Session outbound features:
Feature: QoS Policy Map
Output Policy Map: INTERNET-15Mb-OUT
Configuration sources associated with this session:
Interface: Virtual-Template1, Active Time = 19:52:55
Pending status associated with this session:
Bind status: Success, Delay delete: No, Pending mask: 0
And the debug output for a reauthenticate command
*Nov 8 10:21:58.367: RADIUS: COA received from id 1 x.x.x.x:60590, CoA Request, len 108
*Nov 8 10:21:58.367: COA: x.x.x.x request queued
*Nov 8 10:21:58.367: RADIUS: authenticator 1D 92 FF 04 43 EA 0E 11 - DE 49 2F AE 81 46 42 78
*Nov 8 10:21:58.367: RADIUS: User-Name [1] 18 [email protected]
*Nov 8 10:21:58.367: RADIUS: Acct-Session-Id [44] 10 "0000003B"
*Nov 8 10:21:58.367: RADIUS: Vendor, Cisco [26] 42
*Nov 8 10:21:58.367: RADIUS: Cisco AVpair [1] 36 "subscriber:command=reauthenticate "
*Nov 8 10:21:58.367: RADIUS: Message-Authenticato[80] 18
*Nov 8 10:21:58.367: RADIUS: 7F CA 0A 96 A7 4C 5F 05 57 33 4D 36 D6 7A 37 7E [ L_W3M6z7~]
*Nov 8 10:21:58.367: COA: Message Authenticator decode passed
*Nov 8 10:21:58.367: ++++++ CoA Attribute List ++++++
*Nov 8 10:21:58.367: 01FCE77C 0 00000081 username(450) 16 [email protected]
*Nov 8 10:21:58.367: 01FCFBAC 0 00000001 session-id(408) 4 59(3B)
*Nov 8 10:21:58.367: 01FCFBE0 0 00000081 ssg-command-code(490) 1 32
*Nov 8 10:21:58.367:
*Nov 8 10:21:58.367: RADIUS/ENCODE(00000000):Orig. component type = Invalid
*Nov 8 10:21:58.367: RADIUS(00000000): sending
*Nov 8 10:21:58.367: RADIUS(00000000): Send CoA Nack Response to 69.17.193.4:60590 id 1, len 62
*Nov 8 10:21:58.367: RADIUS: authenticator A3 EC 85 01 C3 31 E2 B3 - 25 22 38 79 DA 8E 95 46
*Nov 8 10:21:58.367: RADIUS: Reply-Message [18] 18
*Nov 8 10:21:58.367: RADIUS: 4E 6F 20 76 61 6C 69 64 20 53 65 73 73 69 6F 6E [ No valid Session]
*Nov 8 10:21:58.367: RADIUS: Dynamic-Author-Error[101] 6 Session Context Not Found [503]
*Nov 8 10:21:58.367: RADIUS: Message-Authenticato[80] 18
*Nov 8 10:21:58.367: RADIUS: AC 83 2A 7C DE 7D 78 8E B7 91 C9 F0 16 8B 86 D2 [ *|}x]
Even the PoA is not working
*Nov 8 10:24:04.022: RADIUS: POD received from id 4 x.x.x.x:57061, POD Request, len 66
*Nov 8 10:24:04.022: POD: 69.17.193.4 request queued
*Nov 8 10:24:04.022: ++++++ POD Attribute List ++++++
*Nov 8 10:24:04.022: 01FCFBAC 0 00000081 username(450) 16
[email protected]
*Nov 8 10:24:04.022: 01FCE77C 0 00000001 session-id(408) 4 59(3B)
*Nov 8 10:24:04.022: 01FCE7B0 0 00000081 Message-Authenticator(274) 16 20 2C D0 32 B2 B7 70 BC CE 0F 57 30 8A 0B 52 B7
*Nov 8 10:24:04.022:
*Nov 8 10:24:04.022: RADIUS/ENCODE(00000000):Orig. component type = Invalid
*Nov 8 10:24:04.022: RADIUS(00000000): sending
*Nov 8 10:24:04.022: RADIUS(00000000): Send Disconnect Nack Response to x.x.x.x:57061 id 4, len 44
*Nov 8 10:24:04.022: RADIUS: authenticator 86 6C A4 7E EC E6 D8 DA - 30 03 38 E7 51 03 78 86
*Nov 8 10:24:04.022: RADIUS: Reply-Message [18] 18
*Nov 8 10:24:04.022: RADIUS: 4E 6F 20 76 61 6C 69 64 20 53 65 73 73 69 6F 6E [ No valid Session]
*Nov 8 10:24:04.022: RADIUS: Dynamic-Author-Error[101] 6 Session Context Not Found [503] *Nov 8 10:24:04.022: RADIUS: POD received from id 4 x.x.x.x:57061, POD Request, len 66
*Nov 8 10:24:04.022: POD: x.x.x.x request queued
*Nov 8 10:24:04.022: ++++++ POD Attribute List ++++++
*Nov 8 10:24:04.022: 01FCFBAC 0 00000081 username(450) 16 [email protected]
*Nov 8 10:24:04.022: 01FCE77C 0 00000001 session-id(408) 4 59(3B)
*Nov 8 10:24:04.022: 01FCE7B0 0 00000081 Message-Authenticator(274) 16 20 2C D0 32 B2 B7 70 BC CE 0F 57 30 8A 0B 52 B7
*Nov 8 10:24:04.022:
*Nov 8 10:24:04.022: RADIUS/ENCODE(00000000):Orig. component type = Invalid
*Nov 8 10:24:04.022: RADIUS(00000000): sending
*Nov 8 10:24:04.022: RADIUS(00000000): Send Disconnect Nack Response to x.x.x.x:57061 id 4, len 44
*Nov 8 10:24:04.022: RADIUS: authenticator 86 6C A4 7E EC E6 D8 DA - 30 03 38 E7 51 03 78 86
*Nov 8 10:24:04.022: RADIUS: Reply-Message [18] 18
*Nov 8 10:24:04.022: RADIUS: 4E 6F 20 76 61 6C 69 64 20 53 65 73 73 69 6F 6E [ No valid Session]
*Nov 8 10:24:04.022: RADIUS: Dynamic-Author-Error[101] 6 Session Context Not Found [503]
Thanks!!
David -
Hi ,
im a begginer in OSM. i installed the PIP cartridges in my machine and i simply placed an order by using the Sample XML inside the Sales order Sample cartridges. i placed the order with the GoldCSalesOrder10010-V2EBM.xml...... the order taking around 10-12 minutes to complete though it has only automated tasks... i monitored the log and i found it is throwing some error... it is ORA-20502 Automation context Not Found....finally its getting completed but taking much time... im just installed PIP and submitted the order... what could be the issue...help me to sort out..
thanks,
JeevaThe trick is that OSM needs to initiate the communication. It is depicted in the diagrams in OSM Developer's Guide in the automation plugin section (however not very clear - in my opinion).
My experience is that you need to correlate messages to OSM by using the (JMS)correlation id sent by the initiating message from OSM. If this can't be sent directly to the external system, a component (e.g. JMS queue + MDB) needs to be placed between the systems and handle the correlation between the messages from the external systems and the OSM "request for reply". -
Displaying "ORA-20502: Automation context not found." error message
Hi all,
I am implementing functionality in OSM 7 to read jms message sent by external system.I am setting default jmscorrelationid as "test" in order to identify message.I have implemented an automated task as xslt automator and having external event receiver.but when i get the message on the queue from external system weblogic console start giving error message as -
"ORA-20502: Automation context not found.
Can you please tell me what could be the reason for this??The trick is that OSM needs to initiate the communication. It is depicted in the diagrams in OSM Developer's Guide in the automation plugin section (however not very clear - in my opinion).
My experience is that you need to correlate messages to OSM by using the (JMS)correlation id sent by the initiating message from OSM. If this can't be sent directly to the external system, a component (e.g. JMS queue + MDB) needs to be placed between the systems and handle the correlation between the messages from the external systems and the OSM "request for reply". -
Face time not found on my new device
i bought a new ipod touch 4g but the face time app is found on it
how can i get it or fix this problem?- Based on your user name could you have officially purchased the iPod from a mid-eastern country that prohibits use of FT? If so then FT does not appear and other users have not been able to make it appear. To check Google "facetime in (enter you country here)"
- If the above is not you case have you check all screen pages and used the Spotlight search feature to search for the facetime app? ALso, yu can hide the FT app in restrictions. Check Settings>General>Restrictions. -
JSF context not found...
I created a web application with Java Server Faces framework selected in Netbeans.
IDE gives two pages at first. one is index.jsp and other is welcomeJSF.jsp. When I cut some jsf related code from welcomeJSF.jsp page and paste it into index.jsp and run the applicationI get this error:
"org.apache.jasper.JasperException: java.lang.RuntimeException: Cannot find FacesContext"
what is the difference between index.jsp and welcomeJSF.jsp..?
here is my web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" 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-app_2_5.xsd">
<context-param>
<param-name>com.sun.faces.verifyObjects</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<param-name>com.sun.faces.validateXml</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
</context-param>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>
index.jsp
</welcome-file>
</welcome-file-list>
</web-app>No difference. You will got the same error message if you try to type welcomeJSF.jsp in the browser URL directly. Any request to the JSF page (page that contains JSF tags) should pass the Faces servlet. In your case, you have to add "/faces/" prefix before the page name.
I.e. something like:
http://localhost:8080/myapp/faces/index.jsp
instead of just:
http://localhost:8080/myapp/index.jsp -
Java Faces Property Not Found Excelption
Just installed JSC and was stepping through the tutorial.
Clicked the Build Project Button. The "Say Hello" example did not load and I got the error:
javax.faces.el.PropertyNotfound Exception
Didn't see any other posts on this. Has anyone else gotten this error?
Thanks.I did get a similar error saying Resourse bundle exception. But was able to get all tutorial working exccept the mailer sample
-
ADF Faces - ADFLogger not found
Hi guys, I am starting with adf faces and cannot solve a very simple problem....
I already got the adf faces stand alone (with the lib adf-faces and adf-faces-impl), but it don't works on netbeans, when I try to run my page the follow error was displayed:
11/02/2006 00:19:46 org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
java.lang.NoClassDefFoundError: oracle/adf/share/logging/ADFLogger
Where I can get the oracle adf shared library?!?!? Or solve this problem?!?
Very thanks all
Giscard
Below was my simple app:
=======
JSP FILE
=======
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib prefix="af" uri="http://xmlns.oracle.com/adf/faces"%>
<%@taglib prefix="afh" uri="http://xmlns.oracle.com/adf/faces/html"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<f:view>
<h1><af:outputText value="Hello JSF"/></h1>
</f:view>
</body>
</html>
===============
adf-faces-config.xml
===============
<?xml version="1.0"?>
<adf-faces-config xmlns="http://xmlns.oracle.com/adf/view/faces/config">
<debug-output>false</debug-output>
<accessibility-mode>#{prefs.proxy.accessibilityMode}</accessibility-mode>
<look-and-feel>#{prefs.proxy.lookAndFeel}</look-and-feel>
</adf-faces-config>
============
faces-config.xml
============
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE faces-config PUBLIC
"-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
"http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
<faces-config>
<application>
<default-render-kit-id>oracle.adf.core</default-render-kit-id>
</application>
</faces-config>
=======
web.xml
======
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<context-param>
<param-name>com.sun.faces.verifyObjects</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<param-name>com.sun.faces.validateXml</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>/WEB-INF/faces-config.xml</param-value>
</context-param>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
</context-param>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
</context-param>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>resources</servlet-name>
<servlet-class>oracle.adf.view.faces.webapp.ResourceServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>resources</servlet-name>
<url-pattern>/adf/*</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>30</session-timeout>
</session-config>
<filter>
<filter-name>adfFaces</filter-name>
<filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>adfFaces</filter-name>
<servlet-name>/faces/*</servlet-name>
</filter-mapping>
</web-app>I suppose this is a way to require download of JDeveloper. Why else wouldn't it be included in the ADF download itself? It's strange there's no mention of this in the documentation.....
-
Handling no_Data_found and handling the cursor context not found exceptions
hi all,
when the value is not there in table, we will get the no_data_found exception.
im sending the sample procedure.
check that one.
create or replace procedure registration.P_GetPatientDetails(in_UHID in Patient.Uhid%Type,
ocursor_Component1 OUT SYS_REFCURSOR,
---ocursor_Component2 OUT SYS_REFCURSOR,
ocursor_Component3 OUT SYS_REFCURSOR,
ocursor_Component4 OUT SYS_REFCURSOR
AS
in_RegistrationID varchar2(50);
ln_genderLovID NUMBER(10);
ln_rhfactorLovID NUMBER(10);
BEGIN
SELECT RegistrationId
into in_RegistrationID
from Patient
where (Upper(UHID) = Upper(in_UHID)) ;
/* COMMIT;*/
/*dbms_output.put_line(in_RegistrationID);*/
OPEN ocursor_Component1 FOR
SELECT RegistrationID,PreRegistrationNo,EmergencyNo,UHID
FROM patient p LEFT OUTER JOIN EHIS.Titlemaster TM ON p.title = tm.titlecode LEFT OUTER JOIN EHIS.SuffixMaster SM on p.sufix = SM.SUFFIXCODE LEFT OUTER JOIN EHIS.Maritalstatusmaster MSM ON MSM.MARITALSTATUSID = p.maritalstatus LEFT OUTER JOIN EHIS.Bloodgroupmaster BGM ON BGM.BLOODGROUPID = p.bloodgroup LEFT OUTER JOIN EHIS.LovDetail LD ON(LD.LOVDETAILID = p.gender AND LD.LOVID = ln_genderLovID) LEFT OUTER JOIN EHIS.LovDetail rf ON(rf.LOVDETAILID = p.rhfactor AND rf.LOVID = ln_rhfactorLovID)
WHERE RegistrationID = in_RegistrationID AND p.Status = 1 ;
OPEN ocursor_Component3 FOR
SELECT RegistrationID,ResidenceNumber,MobileNumber,PrimaryEmail
FROM AddressMaster
WHERE UPPER(RegistrationID) = UPPER(in_RegistrationID) AND Status = 1 AND
AddressTypeID =
(SELECT AddressTypeID
FROM AddressTypeMaster
WHERE AddressTypeName = 'PermanentAddress');
/* COMMIT;*/
OPEN ocursor_Component4 FOR
SELECT ResidenceNumber, MobileNumber,EmergencyNumber,PrimaryEmail
FROM AddressMaster am LEFT OUTER JOIN EHIS.Countrymaster CM ON CM.COUNTRYID = am.country LEFT OUTER JOIN EHIS.Statemaster SM ON SM.STATEID = am.state LEFT OUTER JOIN EHIS.Districtmaster DM ON DM.DISTRICTID = am.district LEFT OUTER JOIN EHIS.Citymaster CM1 ON CM1.CITYID = am.city
WHERE UPPER(RegistrationID) = UPPER(in_RegistrationID) AND Status = 1 AND
AddressTypeID =
(SELECT AddressTypeID
FROM AddressTypeMaster
WHERE AddressTypeName = 'CurrentAddress');
/* COMMIT;*/
EXCEPTION
WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE(TO_CHAR(SQLCODE) || SQLERRM);
END;
if the data is not there for teh given uhid,
we are displaying the err msg in exception block
but from .net environment ,
they will define the cursors as out params.
if they wont get the data,
in .net environment, the exception is raised.
how to handle these situations.Implicit cursors are prone to both the NO_DATA_FOUND and TOO_MANY_ROWS errors. They MUST return precisely one row or you get to do extra coding in the form of exception handlers. Using explicit cursors (declared in the DECLARE SECTION) will avoid both errors, though they have their own considerations. When an explict cursor doesn't find something it doens't put NULL into the destination variable(s); it leaves them alone so its a good idea to null out variables and records before fetching into them.
-
Navigation issue using jsf, tiles, tomahawk :loosing faces context
Hi all,
I enhanced my webapp using tomahawks jscookmenu.
Triggering 1 menuItem the wanted pages displays correctly but the next click anywhere in the application shows this error:
org.apache.jasper.JasperException: javax.faces.FacesException: Faces context not found. getResponseWriter will fail. Check if the FacesServlet has been initialized at all in your web.xml configuration fileand if you are accessing your jsf-pages through the correct mapping. E.g.: if your FacesServlet is mapped to *.jsf (with the <servlet-mapping>-element), you need to access your pages as 'sample.jsf'. If you tried to access 'sample.jsp', you'd get this error-message.The web config is like that:
<?xml version="1.0"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<context-param>
<description>Tiles MyFaces Config</description>
<param-name>tiles-definitions</param-name>
<param-value>/WEB-INF/tiles.xml</param-value>
</context-param>
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.jsp</param-value>
</context-param>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
</context-param>
<context-param>
<param-name>javax.faces.PARTIAL_STATE_SAVING_METHOD</param-name>
<param-value>off</param-value>
</context-param>
<!-- context-params mafaces -->
<context-param>
<param-name>org.apache.myfaces.READONLY_AS_DISABLED_FOR_SELECTS</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>org.apache.myfaces.RENDER_VIEWSTATE_ID</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>org.apache.myfaces.STRICT_XHTML_LINKS</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>org.apache.myfaces.CONFIG_REFRESH_PERIOD</param-name>
<param-value>this is a bug in myfaces</param-value>
</context-param>
<context-param>
<param-name>org.apache.myfaces.ADD_RESOURCE_CLASS</param-name>
<param-value>org.apache.myfaces.renderkit.html.util.DefaultAddResource</param-value>
</context-param>
<context-param>
<param-name>org.apache.myfaces.RESOURCE_VIRTUAL_PATH</param-name>
<param-value>/faces/myFacesExtensionResource</param-value>
</context-param>
<context-param>
<param-name>org.apache.myfaces.CHECK_EXTENSIONS_FILTER</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>org.apache.myfaces.PRETTY_HTML</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>org.apache.myfaces.AUTO_SCROLL</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>
<param-value>false</param-value>
</context-param>
<!-- StartupServletContextListener -->
<listener>
<listener-class>
org.apache.myfaces.webapp.StartupServletContextListener
</listener-class>
</listener>
<!-- Faces MyFacesExtensionsFilter -->
<filter>
<filter-name>MyFacesExtensionsFilter</filter-name>
<filter-class>
org.apache.myfaces.webapp.filter.ExtensionsFilter
</filter-class>
<init-param>
<param-name>uploadMaxFileSize</param-name>
<param-value>1m</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>MyFacesExtensionsFilter</filter-name>
<url-pattern>/faces/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>MyFacesExtensionsFilter</filter-name>
<url-pattern>*.jsf</url-pattern>
</filter-mapping>
<!-- Faces Servlet -->
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<!-- Faces Servlet Mapping -->
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<servlet>
<servlet-name>imageServlet</servlet-name>
<servlet-class>my.com.xplorer.gui.v.ImageServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>imageServlet</servlet-name>
<url-pattern>/image/*</url-pattern>
</servlet-mapping>
</web-app>So I lost the faces context using the jscookmenu, I believe.
My webapp uses tiles, and there is 2 navigation possibilities: tomahawaks jscookmenu and tomahawaks commandNavigation.
Latter one runs ok, I do use
<t:panelNavigation id="nav" styleClass="navigation"
itemClass="navitem" separatorClass="navseparator"
activeItemClass="navitem_active" openItemClass="navitem_open">
<t:commandNavigation action="#{newsHandler.userRequest}" value="#{newsHandler.rss_source_name[0]}">
<f:param name="navigator" value="/jsf/news.jsp" />
</t:commandNavigation>
</t:panelNavigation>for this kind of navigation I do not use any navigation rules in faces config. To dynamically include the desired faces page I do that:
<%
String s = (String)request.getParameter("navigator");
if (s == null || s.length() == 0 ) {
s = "/jsf/explorer.jsp";
%>
<jsp:include page="<%=s %>" />That does work.
Now like I said I did enhance the app by adding tomahawks jscookmenu.
Therefore I use the following in another tile:
<t:jscookMenu layout="hbr" theme="ThemeOffice" styleLocation="resources/css">
<%/* Availaible jscookMenu themes: ThemeIE, ThemeMiniBlack, ThemeOffice, ThemePanel
Availaible jscookMenu layout: hbr, hbl, hur, hul, vbr, vbl, vur, vul
respect to Heng Yuan http://www.cs.ucla.edu/~heng/JSCookMenu
*/%>
<t:navigationMenuItem id="nav_0" itemLabel="#{localz.Xplorer}" action="Xplorer" />
</t:jscookMenu>For this kind of navigation I tried to use navigation rules and the following show the config:
<navigation-rule>
<from-view-id>/jsf/*</from-view-id>
<navigation-case>
<from-outcome>Xplorer</from-outcome>
<to-view-id>/jsf/tileMain.jsp?navigator=/jsf/explorer.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>Tabs</from-outcome>
<to-view-id>/jsf/tileMain.jsp?navigator=/jsf/tab.jsp</to-view-id>
</navigation-case>
</navigation-rule>That works for the first click. The desired page is shown. The nect click anywhere in the app then show the mentioned error.
Using tiles I use this view-handler
<view-handler>org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl</view-handler>One question is: can I use another view-handler on top of the above one? So I could extend com.sun.facelets.FaceletViewHandler and try my luck with this? Or is the solution pointed out just a millisecond from being ok, I just don�t see it?
Maybe you need to know a bit more on how I use tiles:
That is the page I start with. It inserts the tile shown underneath.
<f:view locale="#{userLocale}">
<f:loadBundle var="localz" basename="my.com.xplorer.gui.v.Lokalization" />
<f:loadBundle var="bundle" basename="my.com.xplorer.gui.v.messages" />
<f:subview id="tileMain">
<h:form id="myJsfForm" styleClass="standard">
<tiles:insert definition="template" flush="false" />
</h:form>
</f:subview>
<h:messages />
</f:view>
</html>The foolowing is the tile structure.
The bodi tile is the dynamic part. Above you see that I dynamically load the pages into it.
<t:htmlTag value="div" styleClass="pageLayout">
<h:panelGrid columns="2" align="center" styleClass="pageContent">
<f:facet name="header">
<f:subview id="header">
<tiles:insert attribute="header" flush="false" />
</f:subview>
</f:facet>
<t:htmlTag value="div" styleClass="pageMenu">
<f:subview id="menu">
<tiles:insert attribute="menu" flush="false" />
</f:subview>
</t:htmlTag>
<t:htmlTag value="div" styleClass="pageContentWoMenu">
<f:subview id="bodi">
<tiles:insert attribute="bodi" flush="false" />
</f:subview>
</t:htmlTag>
<f:facet name="footer">
<f:subview id="footer">
<tiles:insert attribute="footer" flush="false" />
</f:subview>
</f:facet>
</h:panelGrid>
</t:htmlTag>Maybe you also need to know the tiles config?
<tiles-definitions>
<definition name="template" path="/jsf/tileTemplate.jsp">
<put name="header" value="/jsf/header.jsp"/>
<put name="menu" value="/jsf/menu.jsp"/>
<put name="bodi" value="/jsf/bodi.jsp"/>
<put name="footer" value="/jsf/footer.jsp"/>
</definition>
<definition name="/jsf/news.tiles" extends="template">
<put name="bodi" value="/jsf/news.jsp"/>
</definition>
<definition name="/jsf/explorer.tiles" extends="template">
<put name="bodi" value="/jsf/explorer.jsp"/>
</definition>
<definition name="/jsf/tab.tiles" extends="template">
<put name="bodi" value="/jsf/tab.jsp"/>
</definition>If you have read until here: thanks very much.
There seems to be a sort of gap regarding jsf navigation documentation.
I mean the ordinary way is covered everywhere (the book I have covers that too), but jscookmenu seems not to fit in too good. I also tried it with an actionslistener in the jscookmenu but that failed, too. So a link to documents telling the truth on jsf navigation I would appreciate very much.
Kind regards
Belle Ile En MerThis is the error i am getting into now..
exception
org.apache.jasper.JasperException: An exception occurred processing JSP page /welcomeJSF.jsp at line 19
16: This file is an entry point for JavaServer Faces application.
17: --%>
18: <body>
19: <f:view>
20: <h3><h:outputText value="CHOULTRY'S IN BANGALORE" /></h3>
21: <h:form>
22: <table border="0">
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:505)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:416)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
root cause
java.lang.RuntimeException: Cannot find FacesContext
javax.faces.webapp.UIComponentClassicTagBase.getFacesContext(UIComponentClassicTagBase.java:1811)
javax.faces.webapp.UIComponentClassicTagBase.setJspId(UIComponentClassicTagBase.java:1628)
org.apache.jsp.welcomeJSF_jsp._jspx_meth_f_005fview_005f0(welcomeJSF_jsp.java:112)
org.apache.jsp.welcomeJSF_jsp._jspService(welcomeJSF_jsp.java:86)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717) -
HI,
Am getting same error i.e Faces Context not found.Iam using common-collections,commons-digester,commons-logging,jsf-api,jsf-impl,standard and jstl jar files.Am configured jsf application correctly .But am not getting Faces Context .Do i need to change the jsr files Plz I need urgent.
Thanks & Regards
VenkatHow are you invoking the actual JSF page? This is generally caused by not invoking the page through the url-pattern of the FacesServlet as it is definied in the web.xml. If you're not passing the page to the FacesServlet, then the FacesContext cannot be found.
-
Class adf.controller.faces.context.FacesPageLifecycleContext not found
Hi all,
I am using Jdeveloper 11.1.1.0 and I have a class uses FacesPageLifecycleContext.
When I import the class oracle.adf.controller.faces.context.FacesPageLifecycleContext, the debugger tells me it does not found that class.
How can I solve the problem?
Does I miss any library on my project?
Thanks
AndreaExcuse me, but I don't understand. Have I to found all these files:
trinidad-api.jar
trinidad-impl.jar
adf-richclient-api-11.jar
adf-richclient-impl-11.jar
in my classpath?
I am looking for these files in C:\Oracle\Middleware\jdeveloper\adfv but in this folder I have only jlib and skin folder.
Can you give any other informations, please.
Thank you so much -
Hi all,
I am using JDeveloper 11.1.1.0 and I am trying to do an application about security.
I have found some references on web and I have a bean that uses this line of code:
FacesPageLifecycleContext ctx = (FacesPageLifecycleContext)event.getLifecycleContext();
but on the line:
import oracle.adf.controller.faces.context.FacesPageLifecycleContext;
the debugger tells me: "class oracle.adf.controller.faces.context.FacesPageLifecycleContext not found"
What's the correct class to import?
ThanksHi,
not sure what you are doing - however I am not asking ;-)
Try import oracle.adf.controller.v2.context.LifecycleContext
Frank
Maybe you are looking for
-
How to use jsp:plugin type="applet" in jsp
Hi , I have a JSP File. How to use jsp:plugin tag in that. When I specify the file name in code="applet.class" Then it is giving an error saying that It could not find the class. What is the solution for this.
-
Hi All I need one user exit where i can transfer some fields from billing to FI accounting interface and it has to be triggered after billing document number generation. I checked all the available exits but these all are triggered before billin
-
Where can I find what phone loads are compatible with CME?
I recently upgraded one of our CME systems to CME v10.0 I noticed that even though the CMEv10 Supported Firmware page says the compatible phone load for my 7911 phones is 9-2-1TH1-13, my 7911's running phone load 8-4-3-16 all seem to be registering a
-
Hi, We create an Order with reference to contract. But we would like to change the Sold to Party in the order, and not copied the SP from the contract. Is this possible?
-
Hi, In the t-code LECI of checking means of transport and visitors, how can we delete a registration. Thanks in advance.