Set /faces/ app root

Hi. I'm building a JSF EJB app using JDeveloper, following the tutorial in Chapter 2 of the book "JavaServer Faces: The Complete Reference". In the index.jsp page, I have the following code,
<jsp:forward page="/faces/main.jsp" />
However, it's underlined in yellow and gives this message when I roll over it: "'/faces/main.jsp' not found under root". What's causing this? Your help is much appreciated. Thanks.

Thank you. That fixed it. Now I've got the following reference to a Java class in the faces-config.xml file but it says it can't find it,
<managed-bean>
        <managed-bean-name>
            UserBean
        </managed-bean-name>
        <managed-bean-class>
            oracle.completeref.model.register.UserBean
        </managed-bean-class>
        <managed-bean-scope>
            session
        </managed-bean-scope>
    </managed-bean>The UserBean class is in the Model project, displayed in this structure in the JDev Applications panel,
- Model
   - Application Sources
      - oracle.completeref.model (package)
         - UserBean.javaThe faces-config.xml file is in this part of JDev,
- ViewController
   - Web Content
     - WEB-INF
        - faces-config.xmlThe UserBean.java file has the following package declaration at the top,
package oracle.completeref.model.register;What am I doing wrong here that the faces-config.xml file can't see the class file? Thanks.

Similar Messages

  • How to get the physical path of my web app root context ?

    Hi,
    I used this code to initialize my LOG4J logger.
            System.out.println(Version + "Servlet context path : " + sctx .getContextPath());
            String path = sctx .getRealPath("/");
            fullyqualifiedlog4jpath = path + "log4j.xml";
            File locallogxml = new File(fullyqualifiedlog4jpath);
            if (locallogxml.exists()) {
                initialized = true;
                DOMConfigurator.configure(fullyqualifiedlog4jpath);
                log = Logger.getLogger(Log4j.class.getName());
                log.info(Version + "Logger initialized");
            else {
                System.out.println(Version + "Unable to locate the log4j.xml file");
            }It works perfectly when running the application with the embedded Jdev11 WLS.
    When deploying the application on a standalone WLS server the path is not returned ;-( I get a null value.
    Does someone has three lines of code which get the physical path of my web app root context?
    Yves

    Changed the methiod used to access log4j.xml.
            FacesContext ctx = FacesContext.getCurrentInstance();
            ServletContext sctx = (ServletContext) ctx.getExternalContext().getContext();
            String contextPath = sctx.getContextPath();
            HttpServletRequest  hsr = (HttpServletRequest)ctx.getExternalContext().getRequest();
            String host = hsr.getServerName();
            int port = hsr.getServerPort();
            try
              String urlstring = "http://" + host + ":" + port + contextPath + "/faces/log4j.xml";
              DOMConfigurator.configure(new URL(urlstring));
              log = Logger.getLogger(Log4j.class.getName());
    .....using the URL s OK.

  • Funny face app

    Hi Everyone,
    I would like to create a 'funny face' app.
    I have the head background image, that is featureless.
    I have several different shots of various features (eyes, noses, mouths, ears, etc) in .png files.
    I am able to create the head background, and drop a couple of the features onto the view at design time. And I am able to grab the images, and move them around the screen.
    But here are my questions....
    1) I would like to be able to create one of the features at runtime from a button click, and have itt display as the topmost item on the z stack. As well as attach the drag event to it to allow the user to be able to drag the item around on the screen.
    My design thoughts are that I would have a palette of the features, and allow for the user to drag the feature onto the screen, so in theory, the funny face, can have three ears, if the user wants.
    This app will be for the iPad.
    thanks in advance
    take care
    tony

    Maybe this post will help you, though the title may be misleading:
    http://www.iphonedevsdk.com/forum/iphone-sdk-development/30136-how-ignore-single -finger-movement-when-using-multitouch.html
    It looks like they are setting the tag of the view to 50 when the view to be manipulated first gets touched and setting to some non-50 number when touches end.

  • HTTP status 404 when accessing ADF Faces app deployed in Tomcat

    I have ADF faces app deployed to tomcat. The first time the application is accessed, the URL gets screwed up and I get HTTP 404. If I access the app again in the same browser, the page loads fine. If I clear the cookies and access it again, I get HTTP 404 again.
    The problem can be seen live here:
    1. Go to http://subash.redirectme.net:8080/stock/faces/welcome.jspx
    The url in the browser gets messed up:
    http://subash.redirectme.net:8080/stock/faces/welcome.jspxhttp://subash.redirectme.net:8080/stock/faces/;jsessionid=1A48DEA6CF208BAADCB3BE50084B1AD1?_afrLoop=1455371821548250&_afrWindowMode=0&_afrWindowId=null
    2. Go to http://subash.redirectme.net:8080/stock/faces/welcome.jspx in the same browser. The page loads up fine.
    3. Delete cookies and access the same page, the problem appears again.
    Upon digging around, I found when the browser makes first request, the servers reponds with 200 OK with jsessionID cookie header. Then the client sends requests for "http://subash.redirectme.net:8080/stock/faces/welcome.jspxhttp://subash.redirectme.net:8080/stock/faces/;jsessionid=8E31D5895621B17B712186AA8AF6BF4A?_afrLoop=1455891492432424&_afrWindowMode=0&_afrWindowId=null" and the server correctly responds with HTTP 404. Looks like some ADF issue.
    This problem was not seen in Weblogic server, but started appearing when I tested in Tomcat.
    Here is HTTP Trace:
    http://subash.redirectme.net:8080/stock/faces/welcome.jspx
    GET /stock/faces/welcome.jspx HTTP/1.1
    Host: subash.redirectme.net:8080
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729)
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Language: en-us,fr-FR;q=0.5
    Accept-Encoding: gzip,deflate
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Keep-Alive: 300
    Proxy-Connection: keep-alive
    HTTP/1.x 200 OK
    Cache-Control: no-cache
    Content-Type: text/html;charset=utf-8
    Date: Tue, 09 Feb 2010 21:55:15 GMT
    Expires: Thu, 01 Jan 1970 00:00:00 GMT
    Proxy-Connection: keep-alive
    Server: Apache-Coyote/1.1
    Set-Cookie: JSESSIONID=8E31D5895621B17B712186AA8AF6BF4A; Path=/stock
    Transfer-Encoding: chunked
    http://subash.redirectme.net:8080/stock/faces/welcome.jspxhttp://subash.redirectme.net:8080/stock/faces/;jsessionid=8E31D5895621B17B712186AA8AF6BF4A?_afrLoop=1455891492432424&_afrWindowMode=0&_afrWindowId=null
    GET /stock/faces/welcome.jspxhttp://subash.redirectme.net:8080/stock/faces/;jsessionid=8E31D5895621B17B712186AA8AF6BF4A?_afrLoop=1455891492432424&_afrWindowMode=0&_afrWindowId=null HTTP/1.1
    Host: subash.redirectme.net:8080
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729)
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Language: en-us,fr-FR;q=0.5
    Accept-Encoding: gzip,deflate
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Keep-Alive: 300
    Proxy-Connection: keep-alive
    Referer: http://subash.redirectme.net:8080/stock/faces/welcome.jspx
    Cookie: JSESSIONID=8E31D5895621B17B712186AA8AF6BF4A
    HTTP/1.x 404 Not Found
    Content-Length: 1144
    Content-Type: text/html
    Date: Tue, 09 Feb 2010 21:55:15 GMT
    Proxy-Connection: keep-alive
    Server: Apache-Coyote/1.1
    X-Powered-By: JSF/1.2
    ----------------------------------------------------------

    Delete filter OK
    <filter>
    <filter-name>trinidad</filter-name>
    <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>trinidad</filter-name>
    <servlet-name>Faces Servlet</servlet-name>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>REQUEST</dispatcher>
    </filter-mapping>

  • How to get web app root?

    IF im in a servlet/jsp how do I get the web app root? for example, if my web app's url in the browser is http://www.server.com/webapp/Servlet
    then "webapp" is the root... how do I get that in code? I don't want request URI or anything like that... just simply the web app root without anything else. Thanks

    have u tried this
    http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpServletRequest.html#getContextPath()
    = request.getContextPath();
    or one of the other similar methods in httprequest. one them does the trick

  • How can I re-set the App Store so the Updates will again appear under the Updates tab?

    Hi,
    I am running a Macbook Pro (retina). Lately when I launch App Store and click on Updates the software updates for the software on the Macbook do not show up under the Updates tab. However, when I go to the Purchased tab I see there Update buttons next to programs that have updates ready to download.
    How can I re-set the App Store so the Updates will again appear under the Updates tab?
    Many Thanks,
    David

    Wanna know this too

  • Is it possible to have Multiple Browser Windows for a Faces App

    I have just read from another thread
    http://forum.java.sun.com/thread.jsp?forum=427&thread=308725
    that states:
    ..the RI only keeps state for one URL at a time (in the words of the spec: "if the JSF implementation has saved state information for a tree identifier /foo in the user�s session, but receives a request with URI /faces/bar, the saved state information will be thrown away.").
    That means that if you hit the /faces/ servlet with anything (e.g. /faces/css/mainX.css) after it has rendered your .jsp page, all the state necessary to process your form will be lost.
    This must mean that I cant have more than one browser window with a faces
    app at a time, I think that it is necessary to provide the funcionality.
    My application is showing database tables and allows the user to edit them, but to restrict the user to one window doesnt seem feasable.
    If you cant have more than 1 window then command_hyperlinks have serious drawbacks in that the user could be tempted to right click and open another window, then the application would not
    work when changing from one window to another.
    I have an idea but I cant see how to get it to work.
    a hidden page-thread id that identifies which browser window/tab the user is on and that identifies a page-thread map that stores values such as the component tree and other things like list iterators, the problem is that if the user "clones" the window you would need to clone the map and change the hidden page id.
    Does javascript know a window id that it could send?
    Any bright ideas.
    How do uSoft manage this?
    Is http the right protocol????
    As I understand faces apps should be run in a browser window with no back/forward buttons and without any command-hyperlinks to /faces/... so that the user can never break the program, is this correct?
    Andy

    I have just read from another thread
    http://forum.java.sun.com/thread.jsp?forum=427&thread=3
    8725
    that states:
    ..the RI only keeps state for one URL at a time (in
    the words of the spec: "if the JSF implementation has
    saved state information for a tree identifier /foo in
    the user�s session, but receives a request with URI
    /faces/bar, the saved state information will be
    thrown away.").
    This used to be the case until EA4 because it has been fixed. Future release will also support necessary API that gives you control over what to save or what not to.
    -Jayashri

  • When I sync my iPhone 4S to my computer, where is the baseline data and documents coming from? Is the iPhone's set of apps and data the default set or are the apps and data on the computer (in the backup? in iTunes?) the default set?

    I am having a great deal of trouble with the upgrade to ios 7 on my 4S. The syncing and the software updates always leave generic icon apps that I have downloaded in the past but have deleted from my phone. But they keep reappearing. A restart of the phone fixes the icons but they are loaded not at the last page of the home screen but on completely random pages, screwing up my app and folder layout.
    I want to completely wipe the phone and restore the apps one by one, but I am concerned about whether the data and documents for those apps that I reinstall will be intact. Does the syncing for the apps on the phone retrieve the data from the last backup on the computer? If so, does it only sync the apps on the phone or does it try and reinstall all the apps that there is data for in the backup? In other words, does the resulting set of apps and data reflect the current state of the phone or the saved state of the backup?

    Apple guys are deleting posts. I have found my posts have been deleted. Apple should MUST let us downgrade at least to previous release from current which was working fine.

  • How do i sync my i phone to a new computer without losing all of my pictures, set up, apps, etc...?

    How do i sync my i phone to a new computer without losing my set up, apps, pictures etc...?

    One of the reasons to include your iTunes library with your computer's backup along with all other important data that is kept separate from your laptop - not carried in the same case, etc.
    iTunes includes an option to transfer iTunes content that was purchased/downloaded from the iTunes store from an iDevice, but this is for iTunes content that was purchased/downloaded from the iTunes store only.
    First you need to authorize your new computer with your iTunes account with iTunes. With your iPhone connected and without syncing, at the iTunes menu bar go to File and select Transfer Purchases From - the name of your iPhone.
    If you are in the US, you can do this now as well.
    http://support.apple.com/kb/ht2519

  • Error occurred while setting up Apps Context.

    I am trying to call a stored procedure using Oracle Apps Adapter . MY JCA settings are as following.
    <endpoint-interaction portType="AppsService_ptt" operation="AppsService">
    <interaction-spec className="oracle.tip.adapter.apps.AppsStoredProcedureInteractionSpec">
    <property name="IRepInternalName" value="PLSQL:AP_VENDOR_SITES_PKG:INSERT_ROW"/>
    <property name="SchemaName" value="APPS"/>
    <property name="PackageName" value="AP_VENDOR_SITES_PKG"/>
    <property name="ProcedureName" value="INSERT_ROW"/>
    <property name="Username" value="sysadmin"/>
    <property name="Responsibility" value="System Administrator"/>
    </interaction-spec>
    <output/>
    </endpoint-interaction>
    But when I invoke this in logs it gives following error...
    Exception occured when binding was invoked.
    Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'AppsService' failed due to: Apps Context Error.
    Error occurred while setting up Apps Context.
    Context parameters should be valid.
    Contact oracle support if error is not fixable.
    The invoked JCA adapter raised a resource exception.
    Please examine the above error message carefully to determine a resolution."

    Hello ,
    I am facing the same problem. How did you solve the same?? Please help.
    Thanking you

  • I am trying to set up app tabs, but when I am using one, if I go to a new site from there, the app tab changes to the new site instead of opening in a new tab, then the app tab changes to the new site. Can you help? Thanks

    I am trying to set up app tabs, but when I am using one, if I go to a new site from there, the app tab changes to the new site instead of opening in a new tab, then the app tab changes to the new site. i.e. The app tabs don't stay constant. This occurs while still in Firefox, and does not relate to when I close it. Has anyone got any ideas? Thanks

    If you backed up the iPhone to either iTunes or the iCloud, restore the backup. If not, the data is gone.
    (126342)

  • Set up app tabs bi pining when firefox closes and is reopened app tabs have disappeared, Why

    all the information i have is contained in one line. Set up app tabs close fire fox and then reopen. i do nothing between these 2 tasks. Did this 5 times and it still does not work

    You can check for problems with the files sessionstore.js and sessionstore.bak in the Firefox Profile Folder that store session data.
    Delete the sessionstore.js file and possible sessionstore-##.js files with a number and sessionstore.bak in the Firefox Profile Folder.
    *Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    Deleting sessionstore.js will cause App Tabs and Tab Groups and open and closed (undo) tabs to get lost, so you will have to create them again (make a note or bookmark them).
    *http://kb.mozillazine.org/Multiple_profile_files_created

  • Saving separate sets of apps for multiple devices

    Hi,
    This has probably been asked before, sorry if redundant.
    I have an iPhone and an iPad, my wife has an iPhone. We prefer different apps on pur phones and a different set for the iPad. iTunes recognizes the devices with different names when they are attached, but the app set from the last device attached is still checked.
    It's a real pain to have to go through, checking and unchecking each time, just to Sync one or two new items.
    Is there a way to "save" your app set for each item so that when you connect a device, it recognizes it AND the last app set you choose for that device?
    Probably a real easy solution but darned if I can figure it out.
    Thanks
    Joe

    Just tried this with my wifes phone, the last one that was Synced .
    Right click? I am using an Apple mouse, not a two button one.
    I have been told that you can right or left click with an Apple mouse, didn't work here. No pop up menu like with a two button mouse or when using a Windows computer.
    The only Backup option I can see is the choice to Back Up To iCloud or Back Up to This Computer. Is that what you are referring to?
    It's currently backed up to iCloud. Does she need to change that to save her selected set of apps?

  • How to change the account setting for App Store

    My last question wasn't so clear, so I would like to post again. I want to know how to change the account setting for App Store. I have changed in the Settings but it doesn't reflect in App Store.
    Thanks,

    once you sign out just click sign in and put the new email address in the "Username" field and your correct password then click OK
    it will look like it is doing nothing but give it time and it will sign you in with the new username.
    is it possible you have multiple itunes accounts?
    when you changed your itunes account from your me.com to your gmail.com address did you change it within the itunes Edit Account Info ('Store' menu then select 'View My Account', then sign in , select edit account info) or did you just create another itunes account?
    be well

  • How do I set an APP as a foreground APP on my iPhone 5?

    How do I set an APP as a foreground APP on my iPhone 5?

    Open the picture by tapping on it in messages. Then in the upper right corner tap the icon that has a box with an arrow coming out pointing to the right. Select print.

Maybe you are looking for