JSF 2.0 Beta1, simple example, doesn't work, why?

I made a simple JSF 2.0 NetBeans (Web Application project) example. Only imported library jars are jsf-api.jar and jsf-impl.jar from mojarra-2.0.0-Beta1 release.
These are files which I added:
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">
    <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>*.xhtml</url-pattern>
    </servlet-mapping>
</web-app>
test.xhtml (example from DZone JSF 2.0 RefCard):
<html xmlns="http://www.w3.org/1999/xhtml"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:ui="http://java.sun.com/jsf/facelets">
     <h:head></h:head>
     <h:body>
          <h:form>
               <h:outputText value="test" />
          </h:form>
     </h:body>
</html>And that's it. There is no faces-config.xml, as it is not needed. There are no managed beans. JSF and Facelets plugins are disabled.
When I try to deploy, a get an exception:
SEVERE: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
java.lang.NoClassDefFoundError: com/sun/facelets/tag/jsf/ComponentHandler
     at java.lang.ClassLoader.defineClass1(Native Method)
     at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
     at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
     at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1850)
     at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:890)
     at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1354)
     at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
     at com.sun.faces.util.Util.loadClass(Util.java:200)
     at com.sun.faces.config.processor.AbstractConfigProcessor.loadClass(AbstractConfigProcessor.java:308)
     at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processComponent(FaceletTaglibConfigProcessor.java:523)
     at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processTags(FaceletTaglibConfigProcessor.java:358)
     at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processTagLibrary(FaceletTaglibConfigProcessor.java:311)
     at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.process(FaceletTaglibConfigProcessor.java:260)
     at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:312)
     at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:210)
     at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)
     at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)
     at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
     at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
     at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
     at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)
     at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:556)
     at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:491)
     at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)
     at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)
     at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
     at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
     at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
     at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
     at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
     at org.apache.catalina.core.StandardService.start(StandardService.java:516)
     at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
     at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
     at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.lang.ClassNotFoundException: com.sun.facelets.tag.jsf.ComponentHandler
     at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
     at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 39 moreI tried NetBeans versions: 6.5.1, 6.7-RC3 and 200906261401 Build. Tried with latest Apache-Tomcat and JBoss. It's all the same.
What is the problem? Why it seeks for a facelets com.sun.faces.config.ConfigureListener, from conventional standalone facelets library? Shouldn't it use facelets classes from JSF 2.0 library?
I tried to add facelets-1.1.15.B1 jar into project, just to see what happens, and the same exception is thrown ...
Please help!

It's because somewhere on your classpath there is a facelet-taglib.xml that's referencing Facelet 1.1.x classes which aren't present.

Similar Messages

  • Simple example doesn't work when on two machines

    I have a simple RMI example that works when I run both the client piece and the server piece on one machine. However, when I seperate them to two different machines, it does not work. The client piece just sits and waits at this line:
    Calculator c = (Calculator)Naming.lookup("rmi://162.130.1.68/CalculatorService");I believe I don't need an HTTP server running on the "server" machine, but is there anything I need to setup on either machine? Do I need to start the rmi registry from a specific folder or put the server files in a specific folder? I've heard the term "network accessible" thrown arround. Do I need to make the files "network accessible?"

    The first thing I would do is what the previous poster said which refers to the term Network Accessible. The second thing I would do is remove "rmi:" in the lookup name. I've never seen that notation anywhere. The third thing I would do is make sure the rmi registry is started on the server. You can actually start it from inside the application like so: java.rmi.registry.LocateRegistry.createRegistry(java.rmi.registry.Registry.REGISTRY_PORT);
    Hope I've helped. Let me know how it works out.
    Dave

  • JClient query by example doesn't work in 10.1.2.

    I've a JClient application I migrated from 9.0.4 to 10.1.2.
    In the migrated app query by example doesn't work anymore in JTables.
    Could someone help ?
    Tks
    Tullio

    Frank, I got a testcase from Tullio. It's a 9.0.4 project uding JClient that is pre-ADF bindings.
    I migrated his 9.0.4 project to 9.0.5.2 first.
    In 9.0.5.2, I see already a change in behavior related to enter-query mode in the JTable, but the number of rows displayed looks correct.
    Tullio, can you confirm if the problem you are seeing vis a vis enter query mode is that if you:
    1. Click enter-query button
    2. Click into a field like Ename and type SMITH but don't [Tab] out of that field yet
    3. Click on the execute-query button
    It behaves as if you've entered no criteria there.
    If at step 2 above you clicked [Tab] to exit the field where you typed SMITH, then it works correctly.
    Is this the enter-query-JTable-related problem you're seeing (that is, related to when you don't focus-out of the field?)
    The "number-of-rows-displayed" issue you mention in this other thread (10.1.2 JClient binding Error. does reproduce with your testcase only in 10.1.2 (as well as also still having this 9.0.5.2 focus-related issue in enter query mode).

  • I am trying to import external CSS in Edge Animate, Has anyone got a "simple" example showing this working that I could have a look at?

    I am trying to import external CSS in Edge Animate, Has anyone got a "simple" example showing this working that I could have a look at?

    Hi Vivek,
    Thanks a lot for replying, actually i am creating a short LAMP animation. In which i used Blur filter on the fire flares(SVG images), everything works just fine on google chrome, but for IE10 & Firefox the filter seems not working, so i need to know is it possible to override the fallbacks for the Blur Filter through external StyleSheet.                            
    IE10 & firefox rendered Image, blur filter not working             Google Chrome rendered Image, blur filter working perfectly
    So, can you please guide me, what shall i do in maintaining quality of my graphics as well while such animation's.

  • Rich Textbox example doesn't work in Windows 7

    In the past I use the Rich Textbox example (\samples\userint\activex\richTextxbox.prj) in Windows XP (CVI 2010 SP1).
    Now I noticed that this example doesn't work in Windows 7 64-bit because the ActiveX is not registered on the system (see attached error.jpg).
    Isn't this control installed by CVI IDE itself?
    How can I get this example working on my Win 7 64-bit machine?
    Vix
    In claris non fit interpretatio
    Using LV 2013 SP1 on Win 7 64bit
    Using LV 8.2.1 on WinXP SP3
    Using CVI 2012 SP1 on Win 7 64bit, WinXP and WinXP Embedded
    Using CVI 6.0 on Win2k, WinXP and WinXP Embedded
    Solved!
    Go to Solution.
    Attachments:
    error.JPG ‏29 KB

    Hi Vix
    It looks like the Rich Textbox control component provided by one of the VB runtimes is no longer included by default with Windows 7.
    I have been able to manually register the ActiveX control using Regsvr32 as described in the following Microsoft KB.
    I was able to download the needed ActiveX control from here and from there you need to copy the .ocx ActiveX control to your C:\Windows\SysWOW64 directory. Open up a command prompt as administrator and run 'REGSVR32 RICHTX32.OCX'.
    SysWOW64 is the 'Windows On Windows' emulation directory which is used for running 32 bit controls in a 64 bit environment.
    I realise this isn't the best solution as it will make application deployment a little more complicated, another solution may be to use another RTF ActiveX control such as the one here: http://www.lebans.com/richtext.htm.
    Thanks
    Chris | Applications Engineer NIUK

  • I have downloaded my latest flash player and it still doesn't work, why?

    I have downloaded my latest flash player and it still doesn't work, why?

    Lightroom doesn't use the Camera Raw plug-in. All of the Camera Raw technology is part of the Lightroom program. You will either have to upgrade to Lightroom 5 or use the DNG converter to create digital negative copies that can be used with Lightroom 4.

  • Hi I'm new in this Ae and i loved it and started to get into editing but when i watch videos on how to use effects like magnify and CC light burst 2.5 it doesn't work why?

    hi I'm new in this Ae and i loved it and started to get into editing but when i watch videos on how to use effects like magnify and CC light burst 2.5 it doesn't work why?

    First, I want to clear up some vocabulary issues. After Effects is not intended for editing video. Editing involves cutting shots together to tell a story. Premiere Pro edits video. While you technically can cut video together in AE, Premiere is much, much better for that.
    After Effects is used for creating shots - visual effects, compositing, motion graphics, animation, color correction, color grading, etc.
    What exact version number of AE (down to the decimal points) are you using? Plus the questions Todd asked, plus the info in the link he gave.
    Also, if you're new to AE, you should really start here. This resource will give you a foundation in how to actually use After Effects that will probably clear up your current problem and prevent much more frustration in the future.

  • I push the cloud botton on the appstore to return the past purchased apps but it doesn't work.why?

    i push the cloud botton on the appstore to return the past purchased apps but it doesn't work.why?

    Oh gosh, this is ancient history for me.
    First, I remember some sort of third party boot enabler being required to install OSX on some G3s.  Not sure if it included iBook. http://eshop.macsales.com/OSXCenter/XPostFacto/Framework.cfm?page=XPostFacto.htm l
    Second, which exact set of installer discs?  They have to be black colored retail discs, not grey ones which came with a specific model Mac and will only boot that model.
    What are the exact specifications of the computer?  Does it have sufficient RAM?  You're asking a lot for a G3 to run Tiger.

  • Oracle standard example doesn't work

    Hi All,
    I am surprsied to see that following standard example from Oracle doesn't work as expected. http://www.oracle.com/technology/products/integration/esb/files/stringtoxml.zip
    Did any one face same error with it?
    Regards,
    Vigni

    Hi,
    The xml string is not valid, you need to place the following part at the beginning of the string:
    &lt;?xml version="1.0" encoding="UTF-8"?&gt;
    So the first line needs to read:
    String in = "&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\n<parameters xmlns=\"http://www.tcs.com/WSIF/insurance/IdentifyPolicy/1.0\">\n" +
    You also must change the indexOf parts to >=0 instead of >0. the parseString method should be:
    public static NodeList parseString1(String inputXML) throws XMLParseException,
    SAXException,
    IOException {
    System.out.println(inputXML);
    StringBuffer s4= new StringBuffer(inputXML);
    int index = 0;
    while(s4.indexOf("&gt;") > 0 || s4.indexOf("&lt;") >= 0){
    index = s4.indexOf("&gt;");
    if (index>=0)
    s4.replace(index,index+4,">");
    index = s4.indexOf("&lt;");
    if (index >=0)
    s4.replace(index,index+4,"<");
    System.out.println(s4.toString());
    DOMParser parser1 = new DOMParser();
    ByteArrayInputStream Bis1 = new ByteArrayInputStream(s4.toString().getBytes());
    parser1.parse(Bis1);
    XMLDocument xd1= parser1.getDocument();
    return (xd1.getChildNodes());
    Regards,
    Andre

  • Why this example doesn't work ?

    for example below:
    html code:
    <applet code=LunarPhasesRB.class width="200" height="200">
        </applet>when i run it on IE , i get below result:
    failed to loading java program.
    why it doesn't work on IE ?
    who can help me ?
    thanks !

    thanks a lot!
    left of web browser appear below info:
    small application program LunarPhasesRB notinited
    what does it mean ?
    if i click "Click to activate and use this control".
    another err:
    failed to loading java program.
    who can help me ?

  • Simple pass doesn't work after upgrading to Windows 10

    Hi all I just upgraded to Window's 10 (took 3 hours, works). However HP Simplepass now doesn't work. Anyone else with this problem? Brian

    Hi I fixed this issue using "Run programs made for previous versions of Windows" . BrianH15  

  • Help: v('p1_test'):=1; doesn't work why?

    I want to update states on p34_level_1, 2, 3, 4 etc..
    But it seems I can use v('p34_level_1') one way?
    for example:
    Variable_Value:= v('p34_level_1'); -- <----works correctly
    but I cant go:
    v('p34_level_1'):= Variable_Value; -- <----DOESN'T work
    Below show my code basically i want to loop through some fields and update the contents with values,
    any ideas? or suggestions?
    I get this error:
    ORA-06550: line 17, column 28: PLS-00103: Encountered the symbol ":" when expecting one of the following: := . ( % ;
    declare
    count_levels number(12,0);
    begin
    -- Count levels
    select count(level_id)
    into count_levels
    from wi_ccqual_level
    where bu = :p1_buid;
    -- update page
    FOR i IN 1 .. count_levels
    LOOP
    v('P34_LEVEL_' || i): = i;
    --i = i;
    END LOOP;
    END;

    Hi Vanadium
    Function v('ITEM') just reads item values from APEX environment.
    If you want to update item values from PL/SQL you should use apex_util.set_session_state API
    Syntax: apex_util.set_session_state(item,value)
    So you should write: apex_util.set_session_state('P34_LEVEL_'||i , i );
    I hope this helps you
    Oscar

  • My KeyListener doesn´t work, why?

    Hi!
    I am trying to ge my KeyListener working.
    My code is as follows:
    class C extends JPanel
              public C()
                   addMouseListener(new MListener());
                            addKeyListener(new KListener());Furher down in the code I have this:
    class KListener extends KeyAdapter
                public void keyPressed(KeyEvent e)
                       System.out.println(KeyEvent.getKeyText(e.getKeyCode()) + " was pressed");
                public void keyReleased(KeyEvent e)
                     System.out.println(KeyEvent.getKeyText(e.getKeyCode()) + " was released");
           }I do not get any errors when compiling the code but the KeyListener doesn´t work. The mouse listeners work perfekt.
    What´s wrong with my key listener?

    Add your keyListener to the JFrame and it will probably work, the JFrame has the focus when you use your JPanel.
    package Junk;
    import java.awt.Dimension;
    import java.awt.event.KeyAdapter;
    import java.awt.event.KeyEvent;
    import javax.swing.JFrame;
    class Junk extends JFrame {
      Junk(){
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        addKeyListener(new KListener());
        setPreferredSize(new Dimension(256, 256));
        setVisible(true);
      public static void main(String[] args){
        new Junk();
      class KListener extends KeyAdapter {
        public void keyPressed(KeyEvent e) {
                System.out.println(KeyEvent.getKeyText(e.getKeyCode()) + " was pressed");
              public void keyReleased(KeyEvent e) {
             System.out.println(KeyEvent.getKeyText(e.getKeyCode()) + " was released");
    }

  • Struts-faces library: provided struts/tiles example doesn't work?!

    Dear all,
    I�ve been trying to migrate my struts-tiles application to JavaServer Faces using the struts-faces library. I downloaded the latest nightly build, but I was unable to deploy and run the second example (the one using tiles) on Tomcat 5.0.28.
         At first, the <h:commandLink> components for the �Register� and �Login� links on the first page (loggedoff.jsp) wouldn�t work, probably because they should have been replaced by <s:commandLink>. So I fixed that, but then I get an inexplicable http 404 error: �Invalid path /layout was requested� when I click on any of the two links.
         Looking at the source code of both JSP and HTML I noticed that the JSP element <s:form action="/editRegistration"> translates to <form id="menu:_id5" name="registrationForm" action="/StrutsFacesExample/layout.do" method="post">. The action element is obviously(?) wrong: there is no layout.do action mapping anywhere, it�s the path pointing to the main layout jsp with the suffix replaced!
    I�ve been able to trace the problem down to method �action� in library class org.apache.struts.faces.renderer.FormRenderer, which does the following:
    protected String action(FacesContext context, UIComponent component) {
    String actionURL =
    context.getApplication().getViewHandler().
    getActionURL(context, context.getViewRoot().getViewId());
    if (log.isTraceEnabled()) {
    log.trace("getActionURL(" + context.getViewRoot().getViewId() +
    ") --> " + actionURL);
    return (context.getExternalContext().encodeActionURL(actionURL));
    Any ideas on what could be going wrong here? I also tried deploying the example on Tomcat 5.5.7 and JBoss 3.2.5, but the behavior was the same.
    Any comments would be greatly appreciated!
    Mario

    Did you ever find a solution to this problem? No, unfortunately I am still looking for a solution to this one.
    I� ve also reported this to Bugzilla (http://issues.apache.org/bugzilla/show_bug.cgi?id=35265) so you might want to keep an eye on the issue, in case something comes up. However there appears to be no significant activity in the library�s source code repository for almost a month.
    After reading other discussions in forums like this one, I must say that I am discouraged: I seriously doubt if anyone has successfully managed to use the struts-faces integration library. A lot of people are suggesting that integrating the two frameworks is not worth the trouble, and so I am now in the process of evaluating the cost of complete migration from struts to jsf (btw, it doesn�t look good�). Nevertheless, some recent articles demonstrate the library�s use (the most recent one is Kito Mann�s http://www.jsfcentral.com/reading/#4030 ) so I might be wrong.
    It would be nice though if someone who has managed to integrate the two technologies successfully would share his views on this forum�
    Mario

  • Images to Video (Sun Example doesn't work for me)

    Hi every one :)
    I'm trying to convert some jpg images into movie file. I saw the [Sun's example|http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/JpegImagesToMovie.html] , but when I try to execute I have a DataSink error:
    Cannot create the DataSink: javax.media.NoDataSinkException: Cannot find a DataSink for: com.sun.media.multiplexer.BasicMux$BasicMuxDataSource@c1f10e
    Failed to create a DataSink for the given output MediaLocator: foo.mov ¿There's another way to do it?
    P.S: Sorry for my english ;)

    darkskimmer wrote:
    The output MediaLocator, I create it with
    MediaLocator out = new MediaLocator("foo.mov");The error is creating out DataSink. No errors when creating the input stream of images...Which is why I told you specificlly...
    I believe the problem may be with how you're constructing your output MediaLocator... Check out their "main" method and see how they're converting their filenames into MediaLocators, and make sure you do that too. I can tell you, that's not how they do their output mediaLocators. They construct theirs with a "file://" prefix and a fully-rooted pathname. Check the code.
         if ((oml = createMediaLocator(outputURL)) == null) {
             System.err.println("Cannot build media locator from: " + outputURL);
             System.exit(0);
         }

Maybe you are looking for

  • HElp need in bex

    I have two requirements First scenario is like this Customer1     1000  2000 Customer2     5000  600 In my query it is showing like this, but I need to add one blank row after each customer. Second No of lines in my report is around 10 million , if I

  • SSAS 2008 - How to get processing times per dimension / measure group?

    Hi experts! SSAS 2008. I am doing analysis and I'm trying to get information (from dmv or log) about processing times per dimension / measure group. Any ideas how to do that? Thanks,

  • Trex Http Service is Red

    Hi gurus, I installed Trex 7.0 on Windows 2003 Server 64 bit. I did alot of thing to turn the http service to red but useless. I searched for the error and in TrexNameServerAlert.trace I found the errors as below: "Wrong response from http server: ht

  • Finding the minimum value across multiple rows (not in a single column)

    Hello, I am running some ad-hoc SQL to test a website implementation of a spec. The ad-hoc sql gives me a set of date values for a specific widget (called a Task). I need to find the Minimum of either (Task.EndDate + 1 year) or the MAX date from the

  • Compressor 4.0.5 "3x crash service down" w/Matrox MXO2 LE MAX

    Hi Everyone, Hoping to get some help on this issue... When attempting an encode in the latest version of compressor 4.0.5 alongside our Matrox MXO2 LE MAX hardware compressor. (using the Matrox MAX compressor presets) we encounter the following error