Using Studio Enterprice to create JSF apps

Hello,
After reviewing the Sun Java studio creator it has been decided that we still wan't to use the Sun Java studio Enterprise as our IDE of choice. Now, I have created a simple jsp file with the following jsf code in it:
-------- 8< ------
<html>
<f:view>
<h:outputText value="Hello World" />
</f:view>
Simple enough. I have included the following libraries in project->properties->libraries:
jsf.api.jar
jsf-impl.jar
And created a faces-config.xml in the WEB-INF folder that lookes like this:
-------- 8< ----
<?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 xmlns="http://java.sun.com/JSF/Configuration">
</faces-config>
When I try to run the project using the Appl server 8.1 I get this error presented in my webbrowser:
---------- 8< -------
javax.servlet.ServletException: Cannot find FacesContext
     org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:830)
     org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:763)
     org.apache.jsp.index_jsp._jspService(index_jsp.java:83)
     org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
Anyone that can help me figure this one out?

Well, You are on the right track. The problem seemed to be associated with the web.xml and faces-config.xml (the later one is edited graphicaly with Borland).
Now, Here is some example of web.xml and faces-config.xml that workes for me. Hope this helpes some newbees like me out there...
web.xml
---------- 8< ---------
<?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">
<servlet>
<servlet-name>FacesServlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>FacesServlet</servlet-name>
<url-pattern>*.jsf</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>
faces-config.xml
--------------- 8< ---------------
<?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 xmlns="http://java.sun.com/JSF/Configuration">
</faces-config>
Managed beans and navigation rules goes goes between the faces-config> -tags of cource

Similar Messages

  • Is it possible to Use Java Studio Creator to create standalone Apps

    I am looking for a good Java IDE for client application development. I used to use JBuilder, but it doesn't work on the Intel line of Macs.
    I have been checking out Jaca Studio Creator, but it seems to only be for server apps.
    Is there a download somewhere that will enable this?
    Thanks, Michael

    Have you looked at http://www.netbeans.org or http://developers.sun.com/prodtech/javatools/jsenterprise/index.jsp?

  • Unable to create web app items if Proximity Search is Enabled.

    I am using BC API to create web app items because I am getting the data from a third party website and wanted to save the data into web app by using BC API. I have a web app ( Name: "Map Overview" ) and the proximity search is enabled. When I test my script I got 404 bad request error but if I disabled the Proximity Search the item is created.
    Can someone help me on this?
    Thanks

    Let me know the page you are running the API call on, I'll have a look and see what gives.
    Thanks,
    Mihai

  • Create office app for word using visual studio 2013

    i tried to create an app for office using visual studio 2013 i just created one in task pane with all default settings and then deployed succesffully and i can't find the app in task pane in word office any ideas
    Mohamed Abdeen

    Hi Mohamed Abdeen,
    Please try to enable a build-in app for Office, such as "Bing dictionary" and check if the task pane pop-up.
    If the "Bing dictionary" works well, I suppose that this issue might be caused by itself. I recommend you post the question to Word for DEV forum:
    https://social.msdn.microsoft.com/Forums/en-US/home?forum=worddev&filter=alltypes%2Calllanguages&sort=lastpostdesc
    If all the apps can't be used, they might be blocked. Please go to File/option/trust center/trusted app catalogs/enable it.
    Reference:
    https://technet.microsoft.com/en-us/library/jj219429.aspx?f=255&MSPPError=-2147217396
    https://msdn.microsoft.com/en-us/library/office/jj220060.aspx?f=255&MSPPError=-2147217396
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Using Project Settings creates an app.config and dozens of errors about "Could not find schema information for the element...

    I am trying to work with Application settings.  I would just like to put together a very simple example of using these, but I can't get the most basic example to work.  Virtually every tag regarding the new Settings produces an Error "Could not find the schema information for the element "applicationSettings". or the element "Settings" etc. etc.  I am not using IIS, this is not a Web Project, and I am not working with User Settings.  Just simple read-only Application Settings.  I've read every MSDN page regarding this subject, I don't see that I am missing a reference - HELP !!!
    REPRODUCING THE PROBLEM:
    Step 1. Create a new C# solution and Windows Forms project. 
    Step 2. Add a reference to System.configuration
    Step 3. Right click the project, choose Properties, then Settings.
    Step 4. Using the Settings Designer, create ONE setting called "MySetting" as a String with the value "MyValue".
    RESULT: Observe the Errors like these, complaining about all of the Settings tags and elements.
    Message 1 Could not find schema information for the element 'applicationSettings'. 
    Message 2 Could not find schema information for the element 'LoadOriginalLists.Properties.Settings'. 
    Message 3 Could not find schema information for the element 'setting'. 
     HERE IS MY APP.CONFIG, AS GENERATED BY THE SETTING DESIGNER TOOL:
    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
    <configSections>
    <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
    <section name="LoadOriginalLists.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
    </sectionGroup>
    </configSections>
    <applicationSettings>
    <LoadOriginalLists.Properties.Settings>
    <setting name="MySetting" serializeAs="String">
    <value>MyValue</value>
    </setting>
    </LoadOriginalLists.Properties.Settings>
    </applicationSettings>
    </configuration>

    Ummmm... okay so these are Messages that are in the Error List.  Whether or not they are actually Errors is debatable.  They are in the Error List, so they are errors. 
    The application runs, so my question is slightly changed to the following.
    I would like to use Application Settings.  However, having settings in my app.config pollutes my Error List with a bunch of meaningless messages like "Could not find the schema information for...".  These messages then hide real errors. 
    Am I missing some setting or is there something I can do to make Visual Studio not show me these messages? 

  • How do I create an app from my Adobe pdf forms to use on any mobile device as well as windows and ios?

    How do I create an app from my Adobe pdf forms to use on any mobile device as well as windows and ios? I have all the apps in Creative Cloud by the way.

    If you already purchased it with the same Apple ID, then you will not be re-charged.

  • It is possible to use multiple iPads in my own enterprise and to create an app just for my restaurant not in appstore???

    It is possible to use multiple iPads in my own enterprise and to create an app just for my restaurant not in appstore???

    Yes that's completely feasable.
    Actually there is another way to install apps ad-hock that i was not aware of (this does not require the devices to be attatched to the Mac with the SDK and project, it can use any computer or distribute via your LAN:
    iOS Developer Programme:Ad Hoc Distribution
    With Ad Hoc distribution you can share your application with up to 100 other iPad, iPhone, or iPod touch users. Through email or by posting it to a website or server, users can download and install your app.

  • I want to use Xcode to create an app and i need developer tools. so i need to join the devoper program only problem is I'm not 18

    i want to use Xcode to create an app and i need developer tools. so i need to join the devoper program only problem is I'm not 18

    You can get Xcode without joining the developer program. Just go to the App Store and download it (it's free).
    You'd only need to join the Developer program if you want to put your app into the App Store, this is for OS X.
    You will need to join the Developer program if you want to develop for IOS. In that case you will need a parent or guardian.

  • I am using DVD Studio Pro to create a DVD. The assets total about 2.4GBs using a 4.7 GB disc I still get the error " not enough space on disc" Does anyone know why?

    I am using DVD Studio Pro to create a DVD. The assets total about 2.4GBs using a 4.7 GB disc I still get the error " not enough space on disc" Does anyone know why?

    Start by using this to make sure your assets really fit on the disk:
    http://www.kenstone.net/fcp_homepage/bit_budget.html

  • Can you create an app using Adobe DPS, then pass the Folio to a programmer to add interactivity?

    I'd like to know if I can create an app using Adobe DPS, then pass the folio to a programmer to add advanced interactivity that DPS doesn't provide. I would like the programmer to use either XCode or Android SDK because it is a standard, but they can also use C#, JavaScript, and several other coding languages. The folio would serve the purpose of a tight digital comp for the programmer.

    Thanks for your help Bob! I found this article on the Adobe site. Figured I'd share it. http://helpx.adobe.com/digital-publishing-suite/help/import-html-articles.html

  • Create iOS app using edge animate and DPS

    I was investigating the potential for using edge animate compositions and digital publishing suite to create single edition iOS apps. 
    After some trial and error I have been able to create a basic iOS app for kids, using EA and DPS. The app was approved and placed in the app store.  See the below link:
    https://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=786031451&mt=8
    For future reference do you have specific documentation/guidelines on using EA compositions to create DPS single edition apps?  I was hoping to get a better understanding of the potential for using html5 compositions in iOS apps (and limitations).

    Hi, Andrew-
    What specifically are you looking for?  It's unclear if you're looking for best practices or other documentation.  Thanks,
    -Elaine

  • Create iPhone app using DPS

    When I created an app several months ago, I remember reading something about how InDesign didn't support the publishing of apps (or something to that effect) for the iPhone. I created my app for the iPad and now can't find the exact reason as to why I couldn't make it for the iPhone. It dosen't have to do with the creation of it because I know you can choose an iPhone as your target device when setting up the folio in InDesign.
    Does anyone know where I might find my long-lost answer to this?
    Thanks in advance!

    If you want to build for the iPhone using DPS, it "has" to be a multi-folio app - and since its a multi-folio app, it "has" to be hosted with Adobe
    Charging for the app will limit your traffic, and giving the app for free is the way to go - however, you have to have a free folio and you will be charged by Adobe for every folio download
    Lots of traffic to free app + many downloads to free folio may make this model not cost effective...
    After lots of research and trying to figure this out, I dont believe DPS is the way to go when building a single-folio app for the iPhone - just my take
    Had to go elsewhere to accomplish this and build apps for the iphone.
    and this is on my #1 wish list for sure... I would love to build single folio apps for the iPhone without having to pay for every download.

  • The apple ID created on app store or itune store can be use on my iphone to download apps and games

    the apple ID created on app store or itune store can be use on my iphone to download apps and games

    Crazy stuff I have a iTunes Card Code and it got accepted! If you want one here: http://linkbitty.com/freeitunes2014

  • How to Use calender control in cloud buissnes app in visual studio 2013

    Hi all,
    I have a task to use calender control in cloud business app in visual studio2013 how to use
    so please let me know if any one knows.to solve issue 
    Thanking you,
    ArunDarly

    Hi,
    We can use jQCalendarPart or other jQuery calendar control in SharePoint app.
    The following link for your reference:
    http://jqcalendarpart.codeplex.com/
     Best Regards,
    Dennis Guo
    TechNet Community Support

  • Could You Create Complex App Using Only Swift If That's the Only Language You Know?

    Hi. If you've never really programmed, could you just learn Swift and still be able to create complex apps without learning Objective-C, C and the other C derivatives like Python and Java? Is Swift going to be enough coz' it's advertised to be able to create even an operating system it seems without needing to learn any other programming language.
    Thank you in advance.
    God bless, Matt. 16:18

    Yes. Swift is a programming language but a higher level language than Objective-C. Get the iBook and take a look for yourself.
    These are non-denominational forums. Please refrain from posting religious references.

Maybe you are looking for

  • Apple TV G2 and Multiple iTunes Accounts

    In our household we have multiple iTunes accounts so that everybody can purchase and download their own content for the various computers and devices that we own. In the old Apple TV each persons iTunes account could be setup to allow streaming from

  • Can't Access Hard Disc: Turn On, Directed Into Shut Down Or Restart Loop

    Hello, please help. Computer: 1999-2000 iMac G3 400 MHz DVD slot loading with CRT screen, Internal ATA 2 Hard Drive in 2 Partitions. Mac OS: 10.2.8 and 9.2.2 Mouse and Keyboard: working Chronology: 1st Problem: Don't know if relevant. In brief, last

  • Sql select query problem

    hi friends, i've a view called "risk_efforts" with fields user_id,user_name,wknd_dt,week_day,prod_efforts,unprod_efforts. Name Type ROW_ID NUMBER USER_ID VARCHAR2(14) USER_NAME VARCHAR2(50) WKND_DT VARCHAR2(8) WEEK_DAY VARCHAR2(250) PROD_EFFORTS NUMB

  • Help for HR-ABAP

    Hi gurus.. I m new to HR ABAP.. can nebody provide me the material and inteview questions for the same.. Helpful answers will be rewarded accordingly. Regards, Manish Hadiyel.

  • Detecting multiple NIC's

    Hi, On Windows, a call to gethostname(), followed by the call to gethostbyname(), will return the hostent structure where the h_addr_list[0] .... [1] .. etc, will list all the NICS that were detected on the host system. I tried running the same progr