Get NoClassDefFoundError: javax/faces/context/FacesContext Error at Runtime

I'm in 11g, PS1. I have an application and I have a SelectOneChoice component that invokes a managed bean (i.e. #{queryHandler.availableFilterChoice}). It then calls my constructor public QueueHandler and within that constructor i have the following line of code:
Application application = FacesContext.getCurrentInstance().getApplication();
This line of code builds and compiles, but at runtime I get the following error NoClassDefFoundError: javax/faces/context/FacesContext and the application stops and fails and nothing is rendered. I have the following libraries in my project:
JSP Runtime
JSF 1.2
JSTL 1.2
ADF Page Flow Runtime
ADF Controller Runtime
ADF Controller Schema
ADF Faces Runtime 11
ADF Common Runtime
ADF Web Runtime
MDS Runtime
MDS Runtime Dependencies
Common Beanutils 1.6
Common Logging 1.0.4
Common Collections 3.1
ADF DVT Faces Runtime
ADF DVT Faces Databinding Runtime
EJB 3.0
JPS Designtime
TopLink
Oracle XML Parser V2
Java EE 1.5 API
Oracle JEWT
Trinidad Runtime 11
JSTL 1.2 Tags
Resource Bundle Support
Resource Bundle Variable Resolver
Weblogic 10.3 Remote-Client
Oracle JDBC

I'm sorry, but I guess I don't understand what you're saying. But I'm not using the line of code below anywhere so I cannot remove it. I did try to use to use that line of code then I used the import org.apache.myfaces.trinidad.util.Service; and when I use those lines of code, I get the same exact Error.
ExtendedRenderKitService erks = Service.getRenderKitService(FacesContext.getCurrentInstance(), ExtendedRenderKitService.class);

Similar Messages

  • ClassNotFoundException: javax.faces.context.FacesContext

    I am deploying my WebCenter Portal: Framework application from JDeveloper 11.1.1.6.0 to to a custom managed server in a 11.1.1.6.0. WebLogic domain (with latest bundle patch).
    Deployment fails with the following error:
    Stack trace for message 149004
    java.lang.ClassNotFoundException: javax.faces.context.FacesContext at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297) at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270) at java.lang.ClassLoader.loadClass(ClassLoader.java:660) at java.lang.ClassLoader.loadClass(ClassLoader.java:626) at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179) at java.lang.Class.getDeclaredFieldsImpl(Native Method) at java.lang.Class.getDeclaredFields(Class.java:550) at weblogic.j2ee.dd.xml.BaseJ2eeAnnotationProcessor.getFields(BaseJ2eeAnnotationProcessor.java:1024) at weblogic.j2ee.dd.xml.BaseJ2eeAnnotationProcessor.getFields(BaseJ2eeAnnotationProcessor.java:1017) at weblogic.j2ee.dd.xml.BaseJ2eeAnnotationProcessor.processJ2eeAnnotations(BaseJ2eeAnnotationProcessor.java:98) at weblogic.j2ee.dd.xml.J2eeAnnotationProcessor.processJ2eeAnnotations(J2eeAnnotationProcessor.java:37) at weblogic.servlet.internal.WebAnnotationProcessorImpl.processFilters(WebAnnotationProcessorImpl.java:239) at weblogic.servlet.internal.WebAnnotationProcessorImpl.processJ2eeAnnotations(WebAnnotationProcessorImpl.java:210) at weblogic.servlet.internal.WebAnnotationProcessorImpl.processAnnotations(WebAnnotationProcessorImpl.java:105) at weblogic.servlet.internal.WebAppServletContext.processAnnotations(WebAppServletContext.java:1371) at weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:451) at weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:495) at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:418) at weblogic.servlet.internal.WebAppModule.registerWebApp(WebAppModule.java:976) at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:384) at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176) at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199) at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:517) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52) at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:159) at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:45) at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:648) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52) at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191) at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:59) at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:154) at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:208) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:98) at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217) at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:747) at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1216) at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:250) at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:171) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:13) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:46) at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256) at weblogic.work.ExecuteThread.run(ExecuteThread.java:221) Caused By: java.lang.ClassNotFoundException: javax.faces.context.FacesContext at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297) at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270) at java.lang.ClassLoader.loadClass(ClassLoader.java:660) at java.lang.ClassLoader.loadClass(ClassLoader.java:626) at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179) at java.lang.Class.getDeclaredFieldsImpl(Native Method) at java.lang.Class.getDeclaredFields(Class.java:550) at weblogic.j2ee.dd.xml.BaseJ2eeAnnotationProcessor.getFields(BaseJ2eeAnnotationProcessor.java:1024) at weblogic.j2ee.dd.xml.BaseJ2eeAnnotationProcessor.getFields(BaseJ2eeAnnotationProcessor.java:1017) at weblogic.j2ee.dd.xml.BaseJ2eeAnnotationProcessor.processJ2eeAnnotations(BaseJ2eeAnnotationProcessor.java:98) at weblogic.j2ee.dd.xml.J2eeAnnotationProcessor.processJ2eeAnnotations(J2eeAnnotationProcessor.java:37) at weblogic.servlet.internal.WebAnnotationProcessorImpl.processFilters(WebAnnotationProcessorImpl.java:239) at weblogic.servlet.internal.WebAnnotationProcessorImpl.processJ2eeAnnotations(WebAnnotationProcessorImpl.java:210) at weblogic.servlet.internal.WebAnnotationProcessorImpl.processAnnotations(WebAnnotationProcessorImpl.java:105) at weblogic.servlet.internal.WebAppServletContext.processAnnotations(WebAppServletContext.java:1371) at weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:451) at weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:495) at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:418) at weblogic.servlet.internal.WebAppModule.registerWebApp(WebAppModule.java:976) at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:384) at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176) at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199) at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:517) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52) at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:159) at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:45) at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:648) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52) at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191) at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:59) at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:154) at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:208) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:98) at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217) at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:747) at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1216) at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:250) at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:171) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:13) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:46) at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256) at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    My apologies for the poor layout, it's WebLogic's server log.
    Any pointers were this may be going wrong? Why is it unable to load the Faces class? The domain was create using the template so it should have all required libraries.

    Alright, I've narrowed it down to my Customization Class. I attempted to have my customization class PortalCC in a JAR file, excluded it from the WAR file and added the JAR in the lib directory of the EAR file, as described on:
    http://docs.oracle.com/cd/E23943_01/web.1111/e16272/deploy_java_ee_app.htm#CHDGGFEB

  • Over-riding the class javax.faces.context.FacesContext: SUN App Server 9.1

    The method to over ride the faces context has changed between SUN Application Server 8.2 and 9.1, as a result the instructions which were previously provided on the MyFaces wiki (http://wiki.apache.org/myfaces/Installation_and_Configuration) no longer work. What I am looking for is instructions that will allow me to use our own faces jars and not (javaee.jar) which is provided as part of the application server.
    What I need to do is to get Sun Application Server 9.1 to allow me to over ride the faces context /javax/faces/context/ with that from my local jars, in version 8.X the following steps were enough:
    Start 8.X instructions:
    1. Change the config security file so that MyFaces <http://wiki.apache.org/myfaces/MyFaces> can delete it's temporary files.
    Change permission
        java.io.FilePermission <http://wiki.apache.org/myfaces/FilePermission> "<<ALL FILES>>", "read,write";to
      java.io.FilePermission <http://wiki.apache.org/myfaces/FilePermission> "<<ALL FILES>>", "read,write,delete";2. Prevent the sun reference implementation from being used
    In your WEB-INF, create a sun-web.xml file containing
        <?xml version="1.0" encoding="UTF-8"?>
        <sun-web-app>
        <class-loader delegate="false"/>
        </sun-web-app>3. That way, myfaces classes will be loaded instead of Sun RI ones.
    And prevent MyFaces <http://wiki.apache.org/myfaces/MyFaces> from loading the Sun RI context listener
    By creating in your webapp a "fake"
    com.sun.faces.config.ConfigureListener
    <http://wiki.apache.org/myfaces/ConfigureListener> that will be loaded BEFORE the sun RI one's.
    The war file I am making available as a test case has just such a file in my case it is called fakefaces.jar
    End instructions for 8.2
    However these steps have changed for version 9.1 as following the exact same procedures does not result in the Application Server using the correct jars, the following is a test using a simple find.jsp, notice how Application Server 9.1 is still using the default jars and not the ones shipping with included as part of my testApp.
    Within the war file is a jsp called find.jsp using this I can check which jar file file is being used for any class in my case I'm interested in the the /javax/faces/context/FacesContext.class, in 9.1 it always uses teh copy from javaee.jar and never teh local copy:
    For example running: http://<ip address>:<port>/test/find.jsp?class=javax.faces.context.FacesContext
    Version 9.1 returns: file:/u01/software/Apps/SunAppServer9.1/lib/javaee.jar!/javax/faces/context/FacesContext.class
    Version 8.2 returns: file:/u01/software/Apps/SunAppServer8.2/domains/domain1/applications/j2ee-apps/TestApp/test_war/WEB-INF/lib/myfaces-api.jar!/javax/faces/context/FacesContext.class
    Hence 9.1 is still using the copy provided by SUN and not our copy.
    The code for find.jsp is:
    <%
        String className = request.getParameter("class");
        Class theClass;
        try
            theClass = Class.forName(className);
            java.net.URL url = theClass.getResource("/" + theClass.getName().replace('.', '/') + ".class");
            out.println(url.getFile());
        catch (ClassNotFoundException e)
            // TODO Auto-generated catch block
            out.println(e);
    %>-------------------------------------------------
    Any idea how to over-ride the FacesContext class in version 9.1 to allow for similar functionality as 8.X
    Thanks,
    ERIC GANDT

    Alright, I've narrowed it down to my Customization Class. I attempted to have my customization class PortalCC in a JAR file, excluded it from the WAR file and added the JAR in the lib directory of the EAR file, as described on:
    http://docs.oracle.com/cd/E23943_01/web.1111/e16272/deploy_java_ee_app.htm#CHDGGFEB

  • Can't find javax.faces.context.FacesContext

    Hi,
    I have strange problem since morning. I am using Jdeveloper 10.1.3 ADF BC
    I have been using the below code successfully. But today all of a sudden everything is pointing to the wrong import
    // 1. Access the FacesContext
    FacesContext fc = javax.faces.context.FacesContext.getCurrentInstance();
    // 2. Create value binding for the #{data} EL expression
    ValueBinding vb = fc.getApplication().createValueBinding("#{data}");
    // 3. Evaluate the value binding, casting the result to BindingContext
    BindingContext bc = (BindingContext)vb.getValue(fc);
    // 4. Find the data control by name from the binding context
    DCDataControl dc = bc.findDataControl("AppModuleDataControl");
    For eg: FacesContext instead of fetching from javax.faces.context is getting FacesContext from com.sun.Faces
    DCIteratorBinding is going to oracle.jbo.uicli.binding.JUIteratorBinding instead of oracle.adf.model.binding even if i have imported it in the class. Should i start all over again.
    Please Help.
    Thanks in advance

    ADF BC isn't relevant here. However JSF is. What JSF component set are you using? Pure JSF components or ADF Faces?
    I suggest (or guess) what's happened is at some point you were using JSF only components, and the project was configured to use the pure JSF classes. However at some point you've brought in an ADF Faces component as well, and now its switched over to using the super ADF Faces classes instead.
    Does this make sense?
    Regards,
    CM.

  • Javax.faces.context.FacesContext not found in JDeveloper 10.1.3.2

    I tried to use javax.faces.context.FacesContext calss in my application but JDeveloper 10.1.3.2 can not find this class
    ( the same problem also in 10.1.3)
    I checked the jar file of this library (jsf-api.jar ), it is in folder [jsf-ri] in Jdev home
    why JDev. can not read this library
    please how can i solve this problem
    Waheed

    Hi,
    make sure the project you are working in is configured for JSF. Double click onto the project to open its properties and set the "Technology Scope" to JSF. This ensures that all libraries are cnfigured. This also adds aa copy of jsf-impl.jar to the Web-Inf/lib directory of your project.
    Frank

  • Could not find Factory: javax.faces.context.FacesContextFactory

    I'm trying to start a new JSF with facelets app from scratch using JSF 1.2.06 on Tomcat 6.0.10 but I can't even get the app to start.
    I get this when I try to start the app:
    java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.context.FacesContextFactory
         javax.faces.FactoryFinder.getFactory(FactoryFinder.java:263)
         javax.faces.webapp.FacesServlet.init(FacesServlet.java:142)
         org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:699)
         org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:670)
         org.apache.jsp.index_jsp._jspService(index_jsp.java:59)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    I've seen a few contradictory pieces of advice on how to resolve but none seem very promising.
    What are the basic requirements for a JSF 1.2 application, especially regarding entries required in web.xml and faces-config.xml? I don't see this clearly documented anywhere on Sun's JSF site.
    Thanks!

    I think I found the reason for this problem.
    I should have also mentioned that my app contained a welcome page (index.jsp) that contained only a forward to my Facelet-based home page via:
    <jsp:forward page="pages/stm/StmHome.jsf" />
    My home page was named: StmHome.xhtml
    I mapped the FacesServlet to handle all requests with a *.jsf extension
    But I set the javax.faces.DEFAULT_SUFFIX context parameter to: .xhtml
    When I changed the value for the forward tag in the index.jsp to "StmHome.xhtml" the app started ok and the home page displayed without error.
    So it looks like this problem was caused by a mismatch between the value I set for the javax.faces.DEFAULT_SUFFIX context parameter and the value I set for the URL pattern in the FacesServlet mapping, correct ?
    Which brings me to my next question: should the values for the javax.faces.DEFAULT_SUFFIX and the FacesServlet URL pattern always match?
    Thanks!

  • Package javax.faces.context does not exist

    i get the following errors when trying to compile my class
    package javax.faces.context does not exist
    package javax.faces.component does not exist
    package javax.faces.validator does not existi'm really new to this and i do not know what this means
    i hope someone can help me
    this is my really simple code
    package  ourdemo;
    import javax.faces.context.*;
    import javax.faces.component.*;
    import javax.faces.validator.*;
    public class player
         String firstname;
         String lastname;   
         public void setfirstname(String a)
         { firstname=a; }
         public String getfirstname()
         { return firstname; }
         public void setlastname(String b)
         { lastname=b; }
         public String getlastname()
         { return lastname; }
         public void changeName()
         { lastname = firstname+" "+lastname; }             
    }

    Hello,
    nornaly this kind of errors happens, when the compiler isn't able to find the classes which it needs to compile your sourcecode. What you have to do is to say the compiler where it can find the sourcecodes. This means you have to put the jars into you classpath. you find the jars in the lib-directory of the jsf-directory which you downloaded. after unzipping the jsf-directory you will see it.
    if you use eclipse you go with you mouse to your workingdirectory, click with the right
    button on that directory ,choose properties then on the left you choose " java build path" and than on the right the libraries. Here you choose " add external jars" so you will have to direct to the jars. your are done.
    But if you don't use eclipse, you have to put those jars in your classpath, in the environment of windows.
    bye hamid

  • JSF IllegalStateException:  could not find Factory: javax.faces.context....

    Dear all,
    I am trying to deploy a JSF page on the following system:
    Tomcat 5.5
    JSF 1.3
    JDK 1.5
    But keep getting the following exception:
    java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.context.FacesContextFactory (the full error is attached below).
    However, I have double checked that I have already placed all the neccessary .jar in <TOMCAT>/common/lib (e.g. jsf-api.jar, jsf-impl.jar, etc.) and also the WEB-INF/lib folder under my specific webapp (just make sure that the app should be able to retrieve it).
    I googled around and found that many people suggested to add a listener tag to the web.xml:
    <listener>
    <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
    </listener>
    I also tried this but then I got 404.
    What could I have done wrong? Why can't Tomcat see the jsf-api.jar (which is where javax.faces.context.FacesContextFactory should be located)?
    Thanks very much in advance.
    Regards,
    Robert
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Servlet.init() for servlet Faces Servlet threw exception
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
         org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:837)
         org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:640)
         org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1286)
         java.lang.Thread.run(Unknown Source)
    root cause
    java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.context.FacesContextFactory
         javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:725)
         javax.faces.FactoryFinder.getFactory(FactoryFinder.java:239)
         javax.faces.webapp.FacesServlet.init(FacesServlet.java:164)
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
         org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:837)
         org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:640)
         org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1286)
         java.lang.Thread.run(Unknown Source)

    Dear all,
    I am trying to deploy a JSF page on the following system:
    Tomcat 5.5
    JSF 1.3
    JDK 1.5
    But keep getting the following exception:
    java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.context.FacesContextFactory (the full error is attached below).
    However, I have double checked that I have already placed all the neccessary .jar in <TOMCAT>/common/lib (e.g. jsf-api.jar, jsf-impl.jar, etc.) and also the WEB-INF/lib folder under my specific webapp (just make sure that the app should be able to retrieve it).
    I googled around and found that many people suggested to add a listener tag to the web.xml:
    <listener>
    <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
    </listener>
    I also tried this but then I got 404.
    What could I have done wrong? Why can't Tomcat see the jsf-api.jar (which is where javax.faces.context.FacesContextFactory should be located)?
    Thanks very much in advance.
    Regards,
    Robert
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Servlet.init() for servlet Faces Servlet threw exception
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
         org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:837)
         org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:640)
         org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1286)
         java.lang.Thread.run(Unknown Source)
    root cause
    java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.context.FacesContextFactory
         javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:725)
         javax.faces.FactoryFinder.getFactory(FactoryFinder.java:239)
         javax.faces.webapp.FacesServlet.init(FacesServlet.java:164)
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
         org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:837)
         org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:640)
         org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1286)
         java.lang.Thread.run(Unknown Source)

  • No message catalogs for resource javax.faces.context.FACES_IMPL_MESSAGES

    Hi All,
    Just out of curiosity I tried deploying the cardemo.war to JBoss 3.0.3 with its inbeded tomcat container. However when I hit index.html and follow the link I get :
    No message catalogs for resource javax.faces.context.FACES_IMPL_MESSAGES
    thrown. Any idears why? Is the cardemo only working with the tomcat in a standalone mode?
    Jon Ridgway

    I'm having the same problem. Using JBoss 3.20/tomcat 4.12.
    However everything works fine when running tomcat outside of JBoss.
    There is some mention in a catalina readme file located in
    ~$CATALINA_HOME/temp
    This temp directory is used by the JVM for temporary file storage.
    The JVM is configured to use this as its java.io.tmpdir in the
    catalina.sh and catalina.bat scripts. Tomcat is configured to use
    this temporary directory rather than its default for security reasons.
    The temp directory must exist for Tomcat to work correctly.
    I tried setting this JRE option in the run.sh of the JBoss/bin dir.
    Without any positive results.

  • Race condition?? javax.faces.el.PropertyNotFoundException: Error testing pr

    Hi All,
    I created a SelectOneChoice using data control (via a Session Facade) on a page. It works fine. (say includePage.jspx)
    Then I try to include this page into other pages say mainPage.jspx (after change the tag from view to subview in includePage.jspx). I need to do this include because multiple pages will include this page.
    Now when I try to run mainPage.jspx, I have the following exception:
    javax.faces.el.PropertyNotFoundException: Error testing property 'inputValue' >>>in bean of type nullThe bean in this exception message is referring to something defined in the includePage.jspx page def file, but I am running mainPage.jspx - so I am wondering if this is a sort of race condition, i.e when mainPage.jspx is ruuning, no variables inside includePage.jspx page def can be accessed.
    I searched the forum but did not have much luck. Any suggestions will be greatly appreciated!!!

    Hi,
    any binding used on a subview must be included in the binding of the main page. So your mainPage.jspx must include the binding for the listbox.
    In 10.1.3 there is no option to inherit the binding container content of an included page.
    Frank

  • Re: javax.faces.convert.Converter error, how to diagnose?

    I’m rendering a region on a page. The region is a table which is entirely build in java. The .jsff for the region looks kind of like this:
    <af:treeTable value="#{backingBeanScope.myBean.treeModel}" var="row" etc…. >
    <af:forEach items="#{backingBeanScope.myBean.columns}" var="column">
    <af:column binding="#{column.adfColumn}" />
    </af:forEach>
    </af:treeTable>
    When a row selection happens, there is context menu build, where one of the menuitems pops a dialog. After the dialog is dismissed a return handler/listener is called:
    public void propertyToolReturnHandler(ReturnEvent event)
    AdfUtil.showMessageDialog(AdfUtil.MESSAGE_TYPE.INFORMATION, “some msg”, “some msg”, true);
    Notice the last param to showMessageDialog, which is “true”, as I want to show the message as inline. However, having it set to “true” causes the following exception. If I set it to “false”, then it does work and a popup message appears with the “some msg” text.
    I’m truly stuck trying to figure out what Converter is missing and where. Any ideas will be most welcomed!
    The error I get:
    [Ljava.lang.Object; cannot be cast to javax.faces.convert.Converter
    ADF_FACES-60097:For more information, please see the server's error log for an entry beginning with: ADF_FACES-60096:Server Exception during PPR, #2
    Examining the EMGC_OMS1.out file I see (partial):
    <Apr 10, 2013 2:39:38 PM PDT> <Error> <oracle.adfinternal.view.faces.config.rich.RegistrationConfigurator> <BEA-000000> <ADF_FACES-60096:Server Exception during PPR, #2
    java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to javax.faces.convert.Converter
         at oracle.adfinternal.view.faces.renderkit.rich.ValueRenderer.getConverter(ValueRenderer.java:197)
         at oracle.adfinternal.view.faces.renderkit.rich.ValueRenderer.addClientConverterRenderScript(ValueRenderer.java:220)
         at oracle.adfinternal.view.faces.renderkit.rich.OutputLabelRenderer.encodeAll(OutputLabelRenderer.java:241)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1431)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:405)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2778)
         at oracle.adfinternal.view.faces.renderkit.rich.RegionRenderer.access$500(RegionRenderer.java:49)
         at oracle.adfinternal.view.faces.renderkit.rich.RegionRenderer$ChildEncoderCallback.processComponent(RegionRenderer.java:574)
         at oracle.adfinternal.view.faces.renderkit.rich.RegionRenderer$ChildEncoderCallback.processComponent(RegionRenderer.java:553)
         at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:170)
         at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:290)
         at org.apache.myfaces.trinidad.component.UIXGroup.processFlattenedChildren(UIXGroup.java:96)
         at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:160)
         at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:290)
         at org.apache.myfaces.trinidad.component.UIXComponent.encodeFlattenedChildren(UIXComponent.java:255)
         at oracle.adfinternal.view.faces.renderkit.rich.RegionRenderer._encodeChildren(RegionRenderer.java:270)
         at oracle.adfinternal.view.faces.renderkit.rich.RegionRenderer.encodeAll(RegionRenderer.java:201)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1431)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
         at oracle.adf.view.rich.component.fragment.UIXRegion.encodeEnd(UIXRegion.java:321)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:405)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2778)
         at oracle.adf.view.rich.render.RichRenderer.encodeStretchedChild(RichRenderer.java:2149)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelBoxRenderer.access$500(PanelBoxRenderer.java:39)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelBoxRenderer$ChildEncoderCallback.processComponent(PanelBoxRenderer.java:2267)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelBoxRenderer$ChildEncoderCallback.processComponen
    Ania.
    Edited by: user12869467 on Apr 12, 2013 1:57 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    I did more trial/error with this problem. It is not related to AdfUtil.showMessageDialog().
    My java-built table, shows a popup. After the popup is dismissed, I will get this exception, not right away though. The view has tabs, if after dismissing the dialog, I navigate to some other tab, and then back to the one which has the table, that is when the error shows up.
    ANY help on how to diagnose this problem will be very much appreciated!
    Ania.

  • Javax.faces.el.EvaluationException error in ADF

    Hi,
    I have a page which uploads a document to the database. In the same page, I have a ADF table which didsplays the document attached. Every time I attach a new document, the table should get refreshed.
    The table has two rows. (Primary key value, and the file name with the command link). When I click the command link( with downloadFile Action )the file should get opened or saved.
    But now, I am getting the following error when I click the command link. It doesnt even come to the method when I was trying to debug.
    javax.faces.el.EvaluationException: java.lang.NullPointerException     at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:150)     at oracle.adf.view.faces.component.UIXComponentBase.__broadcast(UIXComponentBase.java:1087).....
    I have check the binding file and it has all the attribute values. Could any one please tell me the reason for this?
    Thanks,
    priya

    Hi,
    Here is the error message.
    javax.faces.el.EvaluationException: java.lang.NullPointerException     at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:150)     at oracle.adf.view.faces.component.UIXComponentBase.__broadcast(UIXComponentBase.java:1087)     at oracle.adf.view.faces.component.UIXEditableValue.broadcast(UIXEditableValue.java:247)     at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:269)     at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:363)     at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:98)     at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)     at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:213)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)     at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)     at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:228)     at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:197)     at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:171)     at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:103)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)     at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:620)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:369)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:865)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:447)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:215)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)     at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)     at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)     at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)     at java.lang.Thread.run(Thread.java:595)Caused by: java.lang.NullPointerException     at rebill.CRForms.CRDCF002.onFileUpload(CRDCF002.java:104)     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:585)     at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:146)     ... 30 more
    Thanks,
    Priya

  • AddMessage(FacesContext) Error

    Hi All,
    I am facing a problem with addMessage of javax.faces.context.FacesContext
    Steps
    1. Two components, component A and component B (both of them are required) are on the page with a command button (OK).
    2. If i click on OK without entering any data in the two components, it shows me the required error message. This works fine.
    3. I have a message call on OK on click, which finally shows an error saying "Message is not getting cleared on second attempt."
    <af:commandButton text="OK"
    binding="#{backingBeanScope.TestPage.cb1}"
    id="cb1"
    actionListener="#{backingBeanScope.TestPage.btnOkOnClick}"/>
    public void btnOkOnClick(ActionEvent actionEvent) {
    UIMessage key = Message.MSG_NOT_CLEARING;
    String msg =
    JSFUtils.getStringFromBundle(key.getResourceBundle(), key.getCode());
    showMessage(null, FacesMessage.SEVERITY_ERROR, msg);
    private static void showMessage(String clientId,
    FacesMessage.Severity severity,
    String messageDesc) {
    FacesContext facesContext = FacesContext.getCurrentInstance();
    // detail message only shown
    facesContext.addMessage(clientId,
    new FacesMessage(severity, null, messageDesc));
    4.*Issue* comes when I clear the two required fields A and B and now click on OK, now the above error "Message is not getting cleared on second attempt." as well as the
    required error message both come on the page.
    Other relevant code:
    //Message
    This is the class where i create message constants
    package com.ofss.fc.ui.view.testPage;
    public class Message {
    public static final String MSG_BUNDLE_LOC =
    "com.ofss.fc.ui.view.testPag.Message";
    *<p>Error Code: FC_MSG1</p>
    *<p>Description :Message is not getting cleared on second attempt.</p>
    public static final UIMessage MSG_NOT_CLEARING =
    new UIMessage(MSG_BUNDLE_LOC, "FC_MSG1");
    This is the resource bundle file from where the actual message is present.
    //Message.properties
    FC_MSG1=Message is not getting cleared on second attempt.
    This is files has the resource bundle message and message error code.
    package com.ofss.fc.ui.view.testPage;
    public final class UIMessage {
         * Resource Bundle name
         private String resourceBundle;
         * Message code
         private String code;
         public UIMessage(String resourceBundle, String code) {
              this.resourceBundle = resourceBundle;
              this.code = code;
         public String getResourceBundle() {
              return resourceBundle;
         public String getCode() {
              return code;
    public void btnOkOnClick(ActionEvent actionEvent) {
    UIMessage key = Message.MSG_NOT_CLEARING;
    String msg =
    JSFUtils.getStringFromBundle(key.getResourceBundle(), key.getCode());
    showMessage(null, FacesMessage.SEVERITY_ERROR, msg);
    private static void showMessage(String clientId,
    FacesMessage.Severity severity,
    String messageDesc) {
    FacesContext facesContext = FacesContext.getCurrentInstance();
    // detail message only shown
    facesContext.addMessage(clientId,
    new FacesMessage(severity, null, messageDesc));
    }

    Thanks for the reply.
    Actually, if we had to incorporate the change as suggested by you then we had a lot of re-work. So, I used your approach in the command button instead of the input text.
    *" document.getElementById('d1::msgDlg::cancel').onclick = function () "*
    This executes when the Ok button in the javax.faces.context.FacesContext message popup is clicked.
    <af:commandButton text="OK"
    binding="#{backingBeanScope.TestPage.cb1}"
    id="cb1"
    actionListener="#{backingBeanScope.TestPage.btnOkOnClick}"
    clientComponent="true" partialSubmit="true">
    <af:clientListener method="onLoad"
    type="click"/>
    </af:commandButton>
    <af:resource type="javascript">
    function clearMessagesForComponent(evt) {
    AdfPage.PAGE.clearAllMessages();
    evt.cancel();
    function onLoad(evt) {
    document.getElementById('d1::msgDlg::cancel').onclick = function () {
    clearMessagesForComponent(evt);
    return false;
    </af:resource>

  • Javax.faces.application.ViewExpiredException when using http parameters

    Hi,
    I got two jsf-pages and every time I'm using an http request parameter I get a javax.faces.application.ViewExpiredException straight away, so it's no timeout issue.
    That means, if I open the page with "http://localhost:8080/rmp-invoicing/invoicing/monitorInvoiceRun.jsf" everything works fine, but when I use "http://localhost:8080/rmp-invoicing/invoicing/monitorInvoiceRun.jsf?test=test" I get the following exception:
    05.12.2008 09:48:41 com.sun.faces.lifecycle.LifecycleImpl phase
    WARNUNG: executePhase(RESTORE_VIEW 1,org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$CacheRenderKit@1ec239f) threw exception
    javax.faces.application.ViewExpiredException: viewId:/invoicing/monitorInvoiceRun.jsf - View /invoicing/monitorInvoiceRun.jsf could not be restored.
         at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:185)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:177)
         at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:267)
         at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:380)
         at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:507)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:246)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.myfaces.orchestra.filter.OrchestraServletFilter.doFilter(OrchestraServletFilter.java:77)
         at org.apache.myfaces.orchestra.lib.CompoundFilter$1.doFilter(CompoundFilter.java:58)
         at org.apache.myfaces.orchestra.lib._NullFilter.doFilter(_NullFilter.java:45)
         at org.apache.myfaces.orchestra.lib.CompoundFilter.doFilter(CompoundFilter.java:63)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:301)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Thread.java:595)
    09:48:41,149 DEBUG [DelegatingVariableResolver:140] - Successfully resolved variable 'org.apache.myfaces.orchestra.viewController.ViewControllerManager' in Spring ApplicationContext
    09:48:41,165 DEBUG [DefaultListableBeanFactory:214] - Returning cached instance of singleton bean 'org.apache.myfaces.orchestra.viewController.ViewControllerManager'
    09:48:41,165 DEBUG [DelegatingVariableResolver:140] - Successfully resolved variable 'org.apache.myfaces.orchestra.viewController.ViewControllerManager' in Spring ApplicationContext
    09:48:41,165 DEBUG [DefaultListableBeanFactory:214] - Returning cached instance of singleton bean 'org.apache.myfaces.orchestra.viewController.ViewControllerManager'
    09:48:41,165 ERROR [BaseXMLFilter:180] - Exception in the filter chain
    javax.servlet.ServletException: viewId:/invoicing/monitorInvoiceRun.jsf - View /invoicing/monitorInvoiceRun.jsf could not be restored.
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:249)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:177)
         at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:267)
         at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:380)
         at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:507)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:246)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.myfaces.orchestra.filter.OrchestraServletFilter.doFilter(OrchestraServletFilter.java:77)
         at org.apache.myfaces.orchestra.lib.CompoundFilter$1.doFilter(CompoundFilter.java:58)
         at org.apache.myfaces.orchestra.lib._NullFilter.doFilter(_NullFilter.java:45)
         at org.apache.myfaces.orchestra.lib.CompoundFilter.doFilter(CompoundFilter.java:63)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:301)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Thread.java:595)
    09:48:41,165 ERROR [[Faces Servlet]:253] - Servlet.service() for servlet Faces Servlet threw exception
    javax.faces.application.ViewExpiredException: viewId:/invoicing/monitorInvoiceRun.jsf - View /invoicing/monitorInvoiceRun.jsf could not be restored.
         at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:185)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:177)
         at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:267)
         at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:380)
         at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:507)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:246)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.myfaces.orchestra.filter.OrchestraServletFilter.doFilter(OrchestraServletFilter.java:77)
         at org.apache.myfaces.orchestra.lib.CompoundFilter$1.doFilter(CompoundFilter.java:58)
         at org.apache.myfaces.orchestra.lib._NullFilter.doFilter(_NullFilter.java:45)
         at org.apache.myfaces.orchestra.lib.CompoundFilter.doFilter(CompoundFilter.java:63)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:301)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Thread.java:595)
    09:48:41,180 DEBUG [RequestContextListener:89] - Cleared thread-bound request context: org.apache.catalina.connector.RequestFacade@114798a
    I also get the same exception when trying to navigate from one page to the next using navigations-rule in the spring-config.xml file since the http request parameter "?conversationContext=2" is then attached to the http-path.
    I will add some code in the following posts

    my faces-config.xml file looks like this:
            <managed-bean>
              <managed-bean-name>InvoicingBean</managed-bean-name>
              <managed-bean-class>com.bearingpoint.ta.webac.invoicing.jsf.InvoiceRunBacking</managed-bean-class>
                    <managed-bean-scope>request</managed-bean-scope>
         </managed-bean>
         <managed-bean>
              <managed-bean-name>InvoicingMonitorBean</managed-bean-name>
              <managed-bean-class>com.bearingpoint.ta.webac.invoicing.jsf.InvoiceMonitorBacking</managed-bean-class>
                    <managed-bean-scope>request</managed-bean-scope>
                    <managed-property>
                       <property-name>invoicingFacade</property-name>
                       <value>#{invoicingFacade}</value>
                    </managed-property>
         </managed-bean>
        <navigation-rule>
            <from-view-id>/invoicing/startInvoiceRun.xhtml</from-view-id>
            <navigation-case>
                <from-outcome>monitor</from-outcome>
                <to-view-id>/invoicing/monitorInvoiceRun.xhtml</to-view-id>
                <redirect/>
            </navigation-case>
        </navigation-rule>In my Backing Bean (com.bearingpoint.ta.webac.invoicing.jsf.InvoiceRunBacking) I got something like this:
         * Start generate invoice.
        public String startGenerateInvoice() {
           String outcome;
           //find out if we should stay on this page or go to the Monitor-Page
           //assume we want to go to the monitor page
           outcome = "monitor";
           return outcome;
        }And this method is called in the file startInvoiceRun.xhtml:
                   <a4j:commandButton value="#{rpmMessages['invoicing.button.label']}"
                    action="#{InvoicingBean.startGenerateInvoice}">
                </a4j:commandButton>Anyone got any ideas?
    Edited by: Thomas_Schenkeli on Dec 5, 2008 12:53 AM

  • NoClassDefFoundError:javax/swing/JApplet  while running japplet in browser

    hai to all,
    i am trying to run a Japplet in broser,
    it's getting NoClassDefFoundError:javax/swing/JApplet
    on statusbar.
    any plugin's are requitred to run swing applets in browser.?please give me details.
    my JApplet is working in Applet viewer.
    i am using Jdk1.3.1, and Applets are also running in my browser(both IE and NetScape).
    thank you in advance
    please mail me to [email protected]
    by
    sambareddy

    I had the same problem when I was developing a swing applet to run on the web. What you have to do is convert your HTML file. It takes out the APPLET tags and replaces them with OBJECT and EMBED tags. This worked for me. I downloaded the converter from the Java site but I cannot recall exactly where. I think if you search for converter you should be able to find it. The newly converted HTML file will also prompt the user to download the correct plug-in if it is not already installed on their machine.
    In the mean time, try using the HTML code below. You will have to change some of the lines but it should work for you. The OBJECT tag is used for IE and the EMBED tag is used for Netscape so don't forget to change both. One wierd thing you will see is that is if you run appletviewer on the converted HTML file, two windows will pop up and one of them will have errors and not load but one will. Don't worry about that, when you run it through the web server, everything works fine.
    Good luck.
    <HTML>
    <HEAD>
    <TITLE>Your title</TITLE>
    </HEAD>
    <BODY>
    <CENTER>
    <!--"CONVERTED_APPLET"-->
    <!-- HTML CONVERTER -->
    <OBJECT classid="clsid:E19F9330-3110-11d4-991C-005004D3B3DB"
    WIDTH = 550 HEIGHT = 300 codebase="http://java.sun.com/products/plugin/1.3.0_01/jinstall-130_01-win32.cab#Version=1,3,0,1">
    <PARAM NAME = CODE VALUE = "the name of your class file" >
    <PARAM NAME = CODEBASE VALUE = "location of the class or jar file">
    <PARAM NAME = ARCHIVE VALUE = "name of your jar file, omit this entire line if you do not have a jar file" >
    <PARAM NAME="type" VALUE="application/x-java-applet;jpi-version=1.3.0_01">
    <PARAM NAME="scriptable" VALUE="false">
    <COMMENT>
    <EMBED WIDTH = 550 HEIGHT = 300 type="application/x-java-applet;jpi-version=1.3.0_01" CODE = "name of your class file" CODEBASE = "location of the class or jar file" ARCHIVE = "name of your jar file, omit this entire arg if you do not have a jar file" scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3.0_01/plugin-install.html">
    </EMBED>
    </CENTER>
    </COMMENT>
    </OBJECT>
    <!--
    <APPLET CODE = "name of your class file" ARCHIVE = "name of jar file if you have one" WIDTH = 700 HEIGHT = 400>
    </CENTER>
    </APPLET>
    -->
    <!--"END_CONVERTED_APPLET"-->

Maybe you are looking for

  • Hi Team Admin console not connecting

    Hi Team, I am using sccm2007 sp2 in one of the primary. I am unable to connect admin console getting attached error. Actually one of my team met did the repository rename.. Is it cause issue? if yes. how can i back the track

  • I got the above error while i restore the standby database using RMAN backu

    Dear All, RMAN> crosscheck archivelog all; using target database controlfile instead of recovery catalog allocated channel: ORA_DISK_1 channel ORA_DISK_1: sid=14 devtype=DISK specification does not match any archive log in the recovery catalogi got t

  • 2lis_03_bf, Material movements not matching R/3

    Hi, For a particular movement type. I have it shown as Receipts in MMBE in R/3 and the same data is appearing under issues in BW.Please suggest me what has to be done to handle this problem. Movement type is 202 and the records in R/3 show more recor

  • Changing SID Server 2012

    Hello, In Server 2008, to be able to create new VM using same (copied) VHD, we had to use SYSREP to change SID or 3rd party tools, if we wanted to join it to the same domain, otherwise we got an instability on servers. How can we change/update SID in

  • Premiere Pro CS3 Crashes Constantly

    Can anyone set me straight? I'm running an Intel Quad Core Q9450 @ 2.66 GHz 4GB of Ram 2 NVIDIA Quadro FX 570 cards 2003 XP Pro x64 SP2 Premiere Pro has become more and more unstable over the months to the point where I can't run Bridge and PP at the