Migrating from JSF 1.1 to JSF 1.2

I'm migrating an existing JSF 1.1 application that was based closely on the examples in the Core JavaServer Faces book. I'm having a very specific problem getting pages to render once I log into the application. Specifically the code associated with the TabbedPaneRenderer specified in chapter 9. The application worked fine under JSF 1.1 but after upgrading to 1.2 it seems that the functionality that was provided with the includePage method will no longer work.
The source code that was implemented is as follows:
   private void includePage(FacesContext fc, UIComponent component) {
     FacesContext     ctx        =  FacesContext.getCurrentInstance();
     VariableResolver vr         =  ctx.getApplication().getVariableResolver();
     ExternalContext  ec         =  fc.getExternalContext();
     ServletContext   sc         =  (ServletContext) ec.getContext();
     UITabbedPane     tabbedPane =  (UITabbedPane) component;
     String           content    =  tabbedPane.getContent();
     ServletRequest  request  = (ServletRequest) ec.getRequest();
     ServletResponse response = (ServletResponse) ec.getResponse();
     try {
       sc.getRequestDispatcher(content).include(request, response);
     } catch (ServletException ex) {
       logError(ctx, vr, "Couldn't load page " + content + ": " + ex);
     } catch (IOException ex) {
       logError(ctx, vr, "Couldn't load page: " + content + ": " + ex);
   }This code is called from the encodeEnd method of the Renderer. Unfortunately the page that is being included never gets rendered. How should this be done in the JSF 1.2 implementation?
Thanks for the help...

Hello cmathrusse,
I just ran across the same issue. We were using JSF 1.1 and tomcat 5 and JDK 1.5 and and Tiles 1.1. We are migrating to JSF 2.0 JDK 1.6 and Tomcat 6 and our Custom Component also doesnt show up. I believe we are in the same situation.
Did you ever fig out the issue?
Thanks,
Tahir

Similar Messages

  • MIGRATING FROM JSF 1.2 TO JSF 2.0.1 WITH PRIMEFACES

    HELLO!
    I'm migrating to JSF 2.0.1 (mojarra 2.0.1) using PrimeFaces 2.0.
    As I'm comming from JSF 1.2, I still have some libs in my project as jsf-facelets.jar, jstl.jar.
    With JSF 1.2 I was using Tomcat v6 1.4, but I upgrated to Tomcat v6 2.0
    I decided to use primeFaces for my uiComponents and this requires JSF 2.0
    I install primeFaces.jar and download jsf-api.jar and jsf-impl.jar
    I changed my config to 2.0 in my faces-config and the weapp works fine! I'm tryin' to Login using <p:commandButton> (from PrimeFaces) with action attribute, but when the app calls the action from my managedBean, an error appears....
    javax.servlet.ServletException: Erro de argumento: The parameter viewId is null
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:323)
         br.com.webtraffic.big.filter.ExpireFilter.doFilter(ExpireFilter.java:27)
         org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
         org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
         br.com.webtraffic.big.controller.authorization.AuthorizationViewRedirectionFilter.doFilter(AuthorizationViewRedirectionFilter.java:24)
         org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)
         org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
    root cause
    java.lang.NullPointerException: Erro de argumento: The parameter viewId is null
         com.sun.faces.util.Util.notNull(Util.java:221)
         com.sun.faces.application.view.MultiViewHandler.getActionURL(MultiViewHandler.java:270)
         org.springframework.faces.webflow.FlowViewHandler.getActionURL(FlowViewHandler.java:50)
         com.sun.faces.renderkit.html_basic.FormRenderer.getActionStr(FormRenderer.java:234)
         com.sun.faces.renderkit.html_basic.FormRenderer.encodeBegin(FormRenderer.java:137)
         javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:823)
         javax.faces.component.UIComponent.encodeAll(UIComponent.java:1608)
         javax.faces.component.UIComponent.encodeAll(UIComponent.java:1613)
         com.sun.faces.application.view.JspViewHandlingStrategy.doRenderView(JspViewHandlingStrategy.java:415)
         com.sun.faces.application.view.JspViewHandlingStrategy.renderView(JspViewHandlingStrategy.java:204)
         com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:126)
         org.springframework.faces.webflow.FlowViewHandler.renderView(FlowViewHandler.java:90)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:127)
         com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:311)
         br.com.webtraffic.big.filter.ExpireFilter.doFilter(ExpireFilter.java:27)
         org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
         org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
         br.com.webtraffic.big.controller.authorization.AuthorizationViewRedirectionFilter.doFilter(AuthorizationViewRedirectionFilter.java:24)
         org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)
         org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)I think I'm having a Navigation problem, because Navigation of JSF2.0 has new features but I did search and research about it and nothing worked.
    I deleted the FaceletViewHandler tag from faces-config 'cause is not compatible with JSF2.0
    <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
    Anyone knows what possible I can be doing wrong?
    Here's my faces-config:
    <?xml version="1.0" encoding="UTF-8"?>
    <faces-config 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-facesconfig_2_0.xsd"
                  version="2.0">
    <application>
         <el-resolver>org.springframework.web.jsf.el.SpringBeanFacesELResolver</el-resolver>
         <locale-config>
              <default-locale>pt_BR</default-locale>
              <supported-locale>en</supported-locale>
              <supported-locale>es</supported-locale>
         </locale-config>
         <message-bundle>messages</message-bundle>
    </application>
         <navigation-rule>
              <from-view-id>/tools/formLogin.xhtml</from-view-id>
              <navigation-case>
                   <from-outcome>success</from-outcome>
                   <to-view-id>/tools/index.xhtml</to-view-id>
                   <redirect />
              </navigation-case>
         </navigation-rule>
         <navigation-rule>
              <from-view-id>/tools/formForgotPassword.xhtml</from-view-id>
              <navigation-case>
                   <from-outcome>success</from-outcome>
                   <to-view-id>/tools/forgotPasswordSuccess.xhtml</to-view-id>
                   <redirect />
              </navigation-case>
         </navigation-rule>
    </faces-config>Please I'm trying about 2 days...any ideas?
    TKS!

    so once the VM Enviroment is set for 11.1.2.1
    i can just used the Essbase EAS Wizards
    to bring the Applications and Other Objects into the new Enviroment 11.1.2.1
    and then Export the Data from the old Enviroment 11.1.2
    and import into the new Enviroment 11.1.2.1
    Correct ????
    Edited by: Next Level on Jul 28, 2011 7:53 AM
    Edited by: Next Level on Jul 28, 2011 7:57 AM
    Edited by: Next Level on Jul 28, 2011 7:57 AM

  • Problem migrating from JSF Mojarra 1.2 to 2.0

    As my subject suggests, I am having a problem migrating from JSF 1.2 to JSF 2.0.
    As a first step, all that I had done was to replace both 'jsf-api.jar' and 'jsf-impl.jar' with the newer version 2.0 and restart my server.
    As expected, server failed to publish with the following error message on the console. Any hint on solving this issue is highly appreciated.
    The error message goes as below:
    <Jun 30, 2009 10:31:54 AM PDT> <Error> <HTTP> <BEA-101371> <There was a failure when processing annotations for application D:\MalcolmX\web. Please make sure that the annotations are valid. The error is com.sun.faces.taglib.jsf_core.BeanValidatorTag>
    <Jun 30, 2009 10:31:54 AM PDT> <Error> <Deployer> <BEA-149205> <Failed to initialize the application '_auto_generated_ear_' due to error weblogic.application.ModuleException: Failed to load webapp: '/'.
    weblogic.application.ModuleException: Failed to load webapp: '/'
         at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:387)
         at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
         at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
         at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
         Truncated. see log file for complete stacktrace
    java.lang.ClassNotFoundException: com.sun.faces.taglib.jsf_core.BeanValidatorTag
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:283)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:256)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:54)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         Truncated. see log file for complete stacktrace
    Thanks.

    SirG wrote:
    As expected, server failedWow :P
    The error message goes as below:
    java.lang.ClassNotFoundException: com.sun.faces.taglib.jsf_core.BeanValidatorTagIs it in classpath? Exception says it is not.
    Don't you have some JSF 1.2 libraries around somewhere else in classpath? Appserver/lib? JDK/lib? Etc. You might have a mix of JSF 1.2 and JSF 2.0 in the classpath and the exception is just been caused by this collision.

  • Migration from jsf 1.1 to jsf1.2

    I am trying migrate our application built on JSF 1.1 to JSF 1.2. I am facing lot of porblems during this migration.
    Why are the tag classes marked final in JSF 1.2. We have many Tag classes written in our application overriding these tag classes. Is there any other way of overriding the behaviour of JSF 1.2 tag classes apart from overriding it.
    I also see from the source code, that the tag classes are all generated code. Does it mean we can regenerate it using some build file and make the tag classes non-final.
    Please help.
    Thanks in advance,
    Yetish

    I agree to your point that we need program to an interface and not to an implementation class. But in JSF 1.2 scenario, even if we go ahead and implement it using object composition, we cannot use the Tag classes because of the fact that most of the important methods are marked protected (ex setProperties method of Tag classes) and hence cannot be invoked.
    These methods can be overridden only by a subclass and we cannot subclass a final class.
    I think if the idea is not to override a specific behaviour then that behaviour shoud be made final preventing from overriding and not declare the entire class final.
    Your thoughts please.

  • Migrate from JSF to Struts?

    Hi
    I have seen some threads in this form regarding migration from Struts to JSF. Most of the posters back then (1999-2003) suggested starting with Struts and then migrating to JSF for production.
    Now I have one year of experience with Struts in a Tomcat environment and practically no experience with JSF. My current job involves maintaining JSF code. The boss thinks migrating to Struts would make us independent of the company to whom the JSF project was outsourced.
    I would like to know your opinion on migrating from JSF to Struts. How hard is it? Our architecture has Views, View Helpers, Business Context objects, Business Delegate objects, Business Processor objects, DAO (DB2, AS/400), DTO, etc. They seem rich enough semantically when compared with Struts that groups all these under MVC, even though they are complex to manage (job security :).
    I'd appreciate your feedback.
    Thanks
    Murthy

    To quote Ron Burdundy, "That doesn't even make any sense!" :) Seriously, though (and I admit a huge bias), that seems like a huge step backward. It seems the logic is this: "We outsourced the development of this system to someone else, and now we're left either maintaining it ourselves or paying them to do it, but, if we rewrite it with $FRAMEWORK, we'll be free of them." Is that right? How is maintaining a Struts app different (frameworks aside) from maintaining a JSF app? This is probably obvious, but that's a step I would neither take nor suggest. :)

  • Migration from JSF 1.1 to 1.2 using WebLogic 10.3

    I am upgrading my application from JSF 1.1 to JSF 1.2 and to Web Logic 10.3.
    Initially everything seems to be fine when the page displays. Problem occurs only when my page is being submitted. I am getting the following error message on the screen when the form gets submitted.
    - Illegal Syntax for Set Operation
    - MyForm:htmlBoxes: An error occurred when processing your submitted information.My JSF code is:
    <h:selectManyCheckbox id="htmlBoxes" value="#{billsearch.location_types}">
    <f:selectItem itemLabel="#{bundle.senatefile}" itemValue="senfile" />
    <f:selectItem itemLabel="#{bundle.assemfile}" itemValue="assemfile" />
    <f:selectItem itemLabel="#{bundle.sencomm}" itemValue="sencomm" />
    <f:selectItem itemLabel="#{bundle.assemcomm}" itemValue="assemcomm" />
    </h:selectManyCheckbox>Any help on this issued is highly appreciated.
    Thanks
    Edited by: SirGeneral on Oct 7, 2008 11:16 AM

    Hi,
    I'm experience the same problem. Curiosly I developed my app using tomcat 6.0.x and using jsf-api.jar and jsf-impl.jar. Later due the specifications I have changed to tomcat 5.0.28 and jsf-api-1.2.jar and jsf-impl-1.2.jar and I'm getting this error.
    sourceId=main:TP20[severity=(ERROR 2), summary=(main:TP20: An error occurred when processing your submitted information.), detail=(main:TP20: An error occurred when processing your submitted information.)]
    this is ocurred in an HtmlInputText
    Any suggestions??
    need code??
    Thanks

  • A problem in JSF migration from 1.1 to 1.2

    Hi all,
    This is Sailaja I am working with a project that is about migrating JSF1.1 to JSF1.2,
    My problem is..
    In my project we have used CommandLinkTag class to develop a custom component when using 1.1
    But in 1.2 vertion CommandLinkTag class designed as "final" so now i am unable to extend the final class so my old code gets problem.
    Please any one provide some solution or else i need some clarification about why they made that class as final,
    Is there any other class developed for that..
    Thanks
    Sailaja N
    Edited by: nsailaja on Aug 24, 2010 5:43 AM

    If the target forest is running Exchange 2003, you aren't 100% wrong in saying it may not be possible. If you are migrating from Exchange 2010 to a new forest, you need to be migrating into an Exchange 2010 organization - downlevel migrations aren't supported,
    to the best of my knowledge. Here are the links supporting Exchange forest migrations, and they specifically say they are for migrations into an Exchange 2010 organization:
    http://blogs.technet.com/b/meamcs/archive/2011/06/10/exchange-2010-cross-forest-migration-step-by-step-guide-part-i.aspx
    https://gallery.technet.microsoft.com/office/Cross-Forest-Migration-7443029c
    http://blogs.technet.com/b/exchange/archive/2010/08/10/3410619.aspx
    http://technet.microsoft.com/en-us/library/dd876952.aspx
    I'm pretty sure that the tools used won't allow you to migrate from Exchange 2010 into Exchange 2003.  I'm sure you can kludge together a migration process that exports mailboxes to PST, then imports them into the target mailboxes, but that would be
    a painful process.

  • How to get file input stream from the client machine by JSF Fileupload API?

    Dear Friends,
    How to get the file input stream from the client machine by JSF HtmlFileupload or fileupload API. At present, if i execute the file upload code in the client machine, it is able to get the local path of the file and looking for the file in server machine. So i am getting FileNotFoundException.
    E.g., If a file is located at client machine at following location means "C:\Test\Test.txt",
    uploadClass.getFileuploadComponent().getFilename().toString() returns "C:\Test\Test.txt". But it is looking for that file in server and throwing FileNotFoundException.
    Please post your replies soon.
    Thanks,
    JP

    Depends on which version of JSF you're using. If JSF 1.2, I wouldn't even bother trying to hack this into JSF itself unless you can use something like Seam 2 or richfaces.
    http://docs.jboss.org/richfaces/latest_3_3_X/en/devguide/html/rich_fileUpload.html
    http://docs.jboss.org/seam/2.2.1.CR3/reference/en-US/html/controls.html#d0e29259 (look for s:fileUpload)
    But if I were you, a simple non-jsf form with a servlet works best for taking file uploads.
    As for JSF 2.0, there are other ways of getting it done.
    http://balusc.blogspot.com/2009/12/uploading-files-with-jsf-20-and-servlet.html

  • Tool to downgrade Tag handler classes from JSF 1.2 to JSF 1.1

    Is there any tool to downgrade Tag handler classes from JSF 1.2 to JSF 1.1?
    thanks!

    I am not sure if I understand you, but what's wrong with just replacing the JAR files?

  • Upgrading from JSF 1.1 to JSF 1.2 (Mojarra)

    I am planning to upgrade my project from JSF 1.1 to JSF 1.2.
    My current configuration is:
    Sun JSF RI 1.1 configured with Ajax4JSF 1.1.0, tomahawk 1.1.6, WebLogic 10.3 and of course lot of dependent jar files eg: apache common libs, standard, etc.
    I am looking at two approaches to do this:
    1. Create a new project with JSF 1.2 and WebLogic 10.3 and start replicating the content from my old to the new project.
    2. Just upgrade the jsf related jar files in my existing project lib folder and try to get that to work.
    Not sure which one would be better. If someone can throw some light on this, would highly appreciate.
    Thanks
    SirG

    After all, the by you proposed first approach is somewhat odd. I would just backup it in flavor of a WAR file (if you did it all right, you should already have one).
    Upgrading is just matter of replacing the classes (JARs) and changing the configuration files. Upgrade at least web.xml to Servlet 2.5/JSP 2.1 and faces-config.xml to JSF 1.2. You may get deprecation warnings during compile, but that shouldn´t harm the functionality.

  • Upgrade from JSF 1.1 to JSF 1.2 (Mojarra and MyFaces) failed.

    Dear all,
    I tried to upgrade from JSF 1.1 to JSF 1.2 but failed. The application starts OK in jsf 1.1 both myfaces and RI, but failed to start using JSF 1.2.
    My environment is as follows.
    - JDK 1.5
    - Tomcat 6.0
    - Facelet
    - JSF Mojarra 1.2
    The error is as follows, occurs when starting tomcat (my application is in context /web)
    INFO: Initializing Sun's JavaServer Faces implementation (1.2_01-b04-FCS) for context '/web'
    Feb 12, 2009 10:39:40 AM com.sun.faces.config.ConfigureListener contextInitialized
    INFO: Completed initializing Sun's JavaServer Faces implementation (1.2_01-b04-FCS) for context '/web'
    Feb 12, 2009 10:39:40 AM org.apache.catalina.core.StandardContext start
    SEVERE: Error listenerStart
    Feb 12, 2009 10:39:40 AM org.apache.catalina.core.StandardContext start
    SEVERE: Context [web] startup failed due to previous errors
    What I have included in WEB-INF/lib are:
    - JSTL 1.2 (standard.jar and jstl.jar)
    - JSF mojarra 1.2 (jsf-api.jar and jsf-impl.jar)
    - Facelets( el-api.jar, el-impl.jar, and jsf-facelet.jar)
    - commons-digester.jar
    - commons-beanutils.jar
    - commons-logging.jar
    - commons-collection.jar
    Documentation that I read from mojarra FAQ states that i need EL, but EL has been included in Facelets.
    Am i missing something? The following is the part of web.xml that i used, maybe useful to locate what i am missing.
    <web-app xmlns="[http://java.sun.com/xml/ns/j2ee]"
    xmlns:xsi="[http://www.w3.org/2001/XMLSchema-instance]"
    xsi:schemaLocation="[http://java.sun.com/xml/ns/j2ee] [http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd]"
    version="2.4">
    <context-param>
    <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
    <param-value>.xhtml</param-value>
    </context-param>
    <!-- Special Debug Output for Development -->
    <context-param>
    <param-name>facelets.DEVELOPMENT</param-name>
    <param-value>true</param-value>
    </context-param>
    <!-- Optional JSF-RI Parameters to Help Debug -->
    <context-param>
    <param-name>com.sun.faces.validateXml</param-name>
    <param-value>true</param-value>
    </context-param>
    <context-param>
    <param-name>com.sun.faces.verifyObjects</param-name>
    <param-value>true</param-value>
    </context-param>
    <!--use this if start using JSF 1.2 -->
    <context-param>
    <param-name>com.sun.faces.injectionProvider</param-name>
    <param-value>com.sun.faces.vendor.GlassFishInjectionProvider</param-value>
    </context-param>
    <servlet>
    <servlet-name>faces</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>0</load-on-startup>
    </servlet

    Hi BalusC,
    Thank you for your time answering my question.
    For the first point, you were right. Now I have downloaded the latest Mojarra release.
    As for the case of web.xml, i should mentioned that I have tried declaring it as Servlet API 2.4 and Servlet API 2.5, and still got the error. My web.xml that declares as 2.5 looks as follows:
    <web-app 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/javaeeweb-app_2_5.xsd"
    version="2.5">
    On the third point, maybe i stated my problem in a wrong way. What I meant was, I tried each implementation separately, and both implementation did not work.
    About Glassfish injection, i followed the step in Mojarra FAQ regarding the following error.
    JSF1033: Resource injection is DISABLED
    This error showed when i started tomcat. However, since I use the latest Mojarra release, the message error disappear. I have deleted the "glasshfish injection provider" from web.xml, and the error has disappeared.
    Here's the latest of my tomcat startup messages (after i replaced the Mojarra libraries, declared as servlet 2.5 in web xml, and removed glassfish injection provider from web.xml).
    Feb 18, 2009 9:41:58 AM org.apache.catalina.core.AprLifecycleListener init
    INFO: Loaded APR based Apache Tomcat Native library 1.1.14.
    Feb 18, 2009 9:41:58 AM org.apache.catalina.core.AprLifecycleListener init
    INFO: APR capabilities: IPv6 [false], sendfile [true], accept filters [false], random [true].
    Feb 18, 2009 9:41:59 AM org.apache.coyote.http11.Http11AprProtocol init
    INFO: Initializing Coyote HTTP/1.1 on http-80
    Feb 18, 2009 9:41:59 AM org.apache.coyote.ajp.AjpAprProtocol init
    INFO: Initializing Coyote AJP/1.3 on ajp-8009
    Feb 18, 2009 9:41:59 AM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 772 ms
    Feb 18, 2009 9:41:59 AM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Feb 18, 2009 9:41:59 AM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
    Feb 18, 2009 9:42:01 AM com.sun.faces.config.ConfigureListener contextInitialized
    INFO: Initializing Mojarra (1.2_12-b01-FCS) for context '/web'
    Feb 18, 2009 9:42:01 AM com.sun.faces.config.ConfigureListener contextInitialized
    WARNING: JSF1059: WARNING! The com.sun.faces.verifyObjects feature is to aid developers not using tools. It shouldn''t be enabled if using an IDE, or if this application is being deployed for production as it will impact application start times.
    Feb 18, 2009 9:42:06 AM org.apache.catalina.core.StandardContext start
    SEVERE: Error listenerStart
    Feb 18, 2009 9:42:06 AM org.apache.catalina.core.StandardContext start
    *SEVERE: Context [web] startup failed due to previous errors*
    Feb 18, 2009 9:42:07 AM org.apache.coyote.http11.Http11AprProtocol start
    INFO: Starting Coyote HTTP/1.1 on http-80
    Feb 18, 2009 9:42:07 AM org.apache.coyote.ajp.AjpAprProtocol start
    INFO: Starting Coyote AJP/1.3 on ajp-8009
    Feb 18, 2009 9:42:07 AM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 8116 ms
    The application still failed to start.There wasnt enough information for me to digest what is actually went wrong, other than SEVERE: Listener start. And let me say this again, the application starts OK when I used JSF 1.1 (Reference Implementation or MyFaces).
    Anyone has the same experience.?
    Thanks in advance.
    Edited by: niner on Feb 17, 2009 7:11 PM

  • JSF datatable - any difference with JSF 1.1 and JSF 1.2

    Hi All,
    In my project there are lot of Datatables, which retrieve data from the database and display it to the user. For each datatable, the columns are not fixed. I want to create some kind of component that can be reusable.
    It is basically a JSF portlet. Now i have to use RAD 6. RAD 6 supports only JSF1.1. I have to migrate this to RAD7 in the near future. Are there any differences between the Datatable in JSF 1.1 and JSF 1.2?
    I had this approach in mind.
    a) Create the datatable programmatically and put the contents to panelgrid. This way the jsp code will be minimized. Is it a good option.? Are the APIs same in both the versions?
    b) Is it possible to create a custom datatable which can take some key as input. Then based on the key the datatable can be populated with as many columns as desired.
    Please let me know if there are any other good options.
    ~Anitha.

    Hi guys,
    my code goes like this..
    for (int j = 0; j < size; j++) {
                   UIColumn column = new UIColumn();
                   dataTable.getChildren().add(column);
                   HtmlOutputText header = new HtmlOutputText();
                   header.setValue(periodHeader[j]);
                   column.setHeader(header);
                   HtmlOutputText output = new HtmlOutputText();
                   output.setValue(new Double(periodLiability[j]));
                   ValueBinding vb1 = FacesContext.getCurrentInstance()
                             .getApplication().createValueBinding(
                                       ("#{liability.periodLiability["+j+"]}"));
                   output.setValueBinding("value", vb1);
                   column.getChildren().add(output);
    this code gives me the number of headers i need. But, it doesnt render the columns. I have an array of Double (periodLiability) which stores few values of Double type. I want to show thesee values inthe dataTable Column.
    Please help me..

  • About migrating from 10.1.2 to 10.1.3 (page events)

    Hi forum,
    As authentication based on public key certificates only works under jdev 10.1.3.1, I'm upgrading my 10.1.2 application to that version. I'm following the Oracle document "Converting to the ADF Page Lifecycle from 10.1.2" (http://www.oracle.com/webapps/online-help/jdeveloper/10.1.3?topic=adf_convertingfrom10_1_2_html) that it's a really great help. However, this document doesn't explain how to migrate page events. In UIX, a submitButton may have an "event" attribute that fires the method called onEventName in the DataPage class. In ADF Faces, I don't know how to do that. The document previously mentioned doesn't say anything about this topic. The solution I've tryed is the following:
    As document "API Changes from ADF UIX" (http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/api-changes.html) explains, submitButton turns into commandButton and event attribute is replaced by an actionlistener. So, in my jspx page:
    <af:commandButton id="myButton" text="Search" actionListener="#{pageCode.listen}"/>
    <af:commandButton id="myOtherButton" text="All" actionListener="#{pageCode.listen}" />
    In faces-config.xml:
    <managed-bean>
    <managed-bean-name>pageCode</managed-bean-name>
    <managed-bean-class>com.mycompany.web.struts.actions.MyPageController</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    In controller class, I replace DataActionContext by PageLifecycleContext in events parameters. Furthermore, a listen method is added:
    public class MyPageController extends PageController
    // I want to migrate this event
    public void onSearch (PageLifecycleContext ctx)
    // code of page event inherited from 10.1.2
    // I want to migrate this event
    public void onAll (PageLifecycleContext ctx)
    // code of page event inherited from 10.1.2
    // This is the method I've just added
    public void listen (ActionEvent e)
    FacesContext context = FacesContext.getCurrentInstance();
    HttpServletRequest request = (HttpServletRequest)context.getExternalContext().getRequest();
    PageLifecycleContext plc = (PageLifecycleContext)request.getAttribute("ADFLifecycleContext");
    String idButton = (String)e.getComponent().getAttributes().get("id");
    if (idButton.equals("myButton"))
    onSearch(plc);
    else if (idButton.equals("myOtherButton"))
    onAll(plc);
    I'd like to know if there is any other simplier way to do event migration from 10.1.2 to 10.1.3.
    Thanks in advance.
    Luis Serrano.

    If you change your view objects to use the new named bind variables in 10.1.3, then you can do what you were doing in prepareModel in a declarative way now using the invokeAction executable in your page definition to trigger the firing of an executeWithParams action.
    You can study example #76 on my blog to see an example of doing this:
    http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html#76
    If you want to do things programmatically still, which is fine of course, then you can reference section 10.5.4.3 "Using Custom ADF Page Lifecycle to Invoke an onPageLoad Backing Bean Method" in the ADF Developer's Guide for Forms/4GL Developers on the ADF Learning Center at http://www.oracle.com/technology/products/adf/learnadf.html The key benefit of this approach is that if you have a backing bean for your page, it allows you to put your prepareModel code inside the backing bean in an onPageLoad() method so you don't end up with both a backing bean and a page controller class for that page.
    Of course, you can also still use a customized PageController class and override prepareModel() as you did before. All of these ways are viable.

  • Problem when migrating from JSF1.1 to 1.2

    Hi,
    We are migrating WAS6.0 to WAS 7.0 - JSF1.1 to JSF1.2
    We have modified faces-config file and added below part.
    <faces-config 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-facesconfig_1_2.xsd"
    version="1.2">
    But while trying to access the application we are getting the below error,
    [6/7/11 22:40:36:520 EDT] 00000037 SystemOut O 2011-06-07 22:40:36,519 [WebContainer : 0 - ClientControllerServlet - ] DEBUG - action=locales
    [6/7/11 22:40:36:537 EDT] 00000037 AdfFacesFilte W oracle.adf.view.faces.webapp.AdfFacesFilterHelper verifyFilterIsInstalled The AdfFacesFilter has not been installed. ADF Faces requires this filter for proper execution.
    [6/7/11 22:40:36:579 EDT] 00000037 lifecycle E JSF1054: (Phase ID: RESTORE_VIEW 1, View ID: "") Exception thrown during phase execution: javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@403b403b]
    [6/7/11 22:40:36:590 EDT] 00000037 SystemOut O 2011-06-07 22:40:36,590 [WebContainer : 0 - SessionCheckPhaseListener - ] DEBUG - page will be shown as user[null]
    [6/7/11 22:40:36:590 EDT] 00000037 SystemOut O 2011-06-07 22:40:36,590 [WebContainer : 0 - SessionCheckPhaseListener - ] DEBUG - show page[true]
    [6/7/11 22:40:36:591 EDT] 00000037 SystemOut O 2011-06-07 22:40:36,591 [WebContainer : 0 - CustomFacesServlet - ] ERROR - javax.servlet.ServletException: viewId:/brazil/web/brazil/client/languages.jsp - View /brazil/web/brazil/client/languages.jsp could not be restored.
    [6/7/11 22:40:36:869 EDT] 00000037 AdfFacesFilte E oracle.adfinternal.view.faces.webapp.AdfFacesFilterHelperImpl _setupJboDomainStuff
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:611)
    at oracle.adfinternal.view.faces.webapp.AdfFacesFilterHelperImpl._setupJboDomainStuff(AdfFacesFilterHelperImpl.java:192)
    at oracle.adfinternal.view.faces.webapp.AdfFacesFilterHelperImpl.init(AdfFacesFilterHelperImpl.java:64)
    at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.init(AdfFacesFilterImpl.java:96)
    at oracle.adf.view.faces.webapp.AdfFacesFilter.init(AdfFacesFilter.java:58)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.init(FilterInstanceWrapper.java:140)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager._loadFilter(WebAppFilterManager.java:548)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.loadFilter(WebAppFilterManager.java:462)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterInstanceWrapper(WebAppFilterManager.java:319)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterChain(WebAppFilterManager.java:379)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:860)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:934)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:502)
    at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:179)
    at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3933)
    at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:276)
    at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:931)
    at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1583)
    at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:186)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:445)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:504)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:301)
    at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83)
    at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
    at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
    at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
    at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
    at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
    at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
    at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1604)
    Caused by: java.lang.IllegalStateException: ELResolvers cannot be added after the application initialization is complete.
    at com.sun.faces.application.ApplicationImpl.setPropertyResolver(ApplicationImpl.java:424)
    at oracle.adfinternal.view.faces.webapp.AdfModelHelper.init(AdfModelHelper.java:37)
    ... 34 more
    Could you please help us to resolve this issue?
    Regards,
    Mohanraj M

    Hi,
    Currently we are migrating from WAS 6.0 to WAS 7.0. We are using JSF1.1 and ADF 10.1.3 . We don't want to migrate JSF and ADF , so we are using shared libraries.
    Everything is working fine except adf popup. New window is opening, but we are not able to pass any value from parent to child. It is coming as null. Also we are not able to close popu also not able to transfer any data from popup to parent using returnfromdialog method.
    We are getting the below exception,
    [6/16/11 14:58:59:495 EDT] 00000042 DialogService W oracle.adfinternal.view.faces.context.DialogServiceImpl returnFromDialog No 'DialogUsedRK' key available for returnFromDialog to do the right thing!
    [6/16/11 14:58:59:496 EDT] 00000042 InvokeApplica E com.sun.faces.lifecycle.InvokeApplicationPhase execute popView(): No view has been pushed.
    java.lang.IllegalStateException: popView(): No view has been pushed.
    at oracle.adfinternal.view.faces.context.DialogServiceImpl.popView(DialogServiceImpl.java:69)
    at oracle.adfinternal.view.faces.context.DialogServiceImpl.returnFromDialog(DialogServiceImpl.java:230)
    at oracle.adfinternal.view.faces.context.AdfFacesContextImpl.returnFromDialog(AdfFacesContextImpl.java:91)
    at oracle.adfinternal.view.faces.taglib.listener.ReturnActionListener.processAction(ReturnActionListener.java:39)
    at javax.faces.event.ActionEvent.processListener(ActionEvent.java:77)
    at oracle.adf.view.faces.component.UIXComponentBase.broadcast(UIXComponentBase.java:548)
    at oracle.adf.view.faces.component.UIXCommand.broadcast(UIXCommand.java:200)
    at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:287)
    at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:401)
    at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:95)
    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.avon.arrm.brazil.presentation.common.CustomFacesServlet.service(CustomFacesServlet.java:55)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1657)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1597)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:131)
    at com.avon.arrm.brazil.presentation.common.ServletADFFilter.doFilter(ServletADFFilter.java:42)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)
    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:123)
    at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:105)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:908)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:934)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:502)
    at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:179)
    at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:91)
    at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:864)
    at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1583)
    at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:186)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:445)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:504)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:301)
    at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83)
    at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
    at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
    at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
    at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
    at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
    at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
    at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1604)
    [6/16/11 14:58:59:505 EDT] 00000042 SystemOut O 2011-06-16 14:58:59,505 [WebContainer : 1 - CustomFacesServlet - ] ERROR - javax.servlet.ServletException: popView(): No view has been pushed.
    Hi,
    Currently we are migrating from WAS 6.0 to WAS 7.0. We are using JSF1.1 and ADF 10.1.3 . We don't want to migrate JSF and ADF , so we are using shared libraries.
    Everything is working fine except adf popup. New window is opening, but we are not able to pass any value from parent to child. It is coming as null. Also we are not able to close popu also not able to transfer any data from popup to parent using returnfromdialog method.
    We are getting the below exception,
    [6/16/11 14:58:59:495 EDT] 00000042 DialogService W oracle.adfinternal.view.faces.context.DialogServiceImpl returnFromDialog No 'DialogUsedRK' key available for returnFromDialog to do the right thing!
    [6/16/11 14:58:59:496 EDT] 00000042 InvokeApplica E com.sun.faces.lifecycle.InvokeApplicationPhase execute popView(): No view has been pushed.
    java.lang.IllegalStateException: popView(): No view has been pushed.
    at oracle.adfinternal.view.faces.context.DialogServiceImpl.popView(DialogServiceImpl.java:69)
    at oracle.adfinternal.view.faces.context.DialogServiceImpl.returnFromDialog(DialogServiceImpl.java:230)
    at oracle.adfinternal.view.faces.context.AdfFacesContextImpl.returnFromDialog(AdfFacesContextImpl.java:91)
    at oracle.adfinternal.view.faces.taglib.listener.ReturnActionListener.processAction(ReturnActionListener.java:39)
    at javax.faces.event.ActionEvent.processListener(ActionEvent.java:77)
    at oracle.adf.view.faces.component.UIXComponentBase.broadcast(UIXComponentBase.java:548)
    at oracle.adf.view.faces.component.UIXCommand.broadcast(UIXCommand.java:200)
    at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:287)
    at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:401)
    at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:95)
    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.avon.arrm.brazil.presentation.common.CustomFacesServlet.service(CustomFacesServlet.java:55)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1657)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1597)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:131)
    at com.avon.arrm.brazil.presentation.common.ServletADFFilter.doFilter(ServletADFFilter.java:42)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)
    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:123)
    at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:105)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:908)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:934)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:502)
    at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:179)
    at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:91)
    at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:864)
    at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1583)
    at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:186)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:445)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:504)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:301)
    at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83)
    at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
    at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
    at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
    at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
    at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
    at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
    at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1604)
    [6/16/11 14:58:59:505 EDT] 00000042 SystemOut O 2011-06-16 14:58:59,505 [WebContainer : 1 - CustomFacesServlet - ] ERROR - javax.servlet.ServletException: popView(): No view has been pushed.
    Could anyone please help us to resolve this issue.

  • Problem while migrating from JSF1.1 to JSF1.2

    I'm facing the following issues while migrating from WAS 6.1 to WAS7.0
    For this I have upgraded Jsf 1.1 to 1.2 and webmodule to 2.5, and following errors I'm having...
    1. Description     The method getExceptionMessageString(String) is undefined for the type Util
    2. Description The method getMyForm(UIComponent) in the type CommandLinkRenderer is not applicable for the arguments (FacesContext, UICommand)     
    3. Description     The method getName() is undefined for the type HtmlBasicRenderer.Param     LinkRendererWithName.java
    4. Description     The method getParamList(UIComponent) in the type HtmlBasicRenderer is not applicable for the arguments (FacesContext, UICommand)
    5. Description     The method getValue() is undefined for the type HtmlBasicRenderer.Param     LinkRendererWithName.java
    Any alternative methods to those above methods in JSF1.2?
    or am I need to upgrade any of the jaf dependencies?
    Any suggestions are appreciated.
    Thanks

    i_oss wrote:
    But you should consider implementing your Renderers only using the API and not extending the com.sun.faces.* implementation classes, or you might end up changing your code again on your next jsf updates.Hm, good thinking. I didn't think about the split between the API and the implementation.
    OT question on that subject: is it really good design to have that split? JSF, JAXB, JAX-WS, even CDI has an API and an implementation part to it. But do we really need that? In the case of JSF, you have Mojarra and Myfaces (and some other obscure JSF implementation I believe). But why would you use Myfaces over Mojarra since they both solve the same problem and are both actively developed? Why do we have to deal with API/implementation conflict hell that you can often find when using JAXB, especially in a Mavenized environment? We have Weld as the implementation for CDI. What would move anyone to make a 'competing' implementation of it?
    For something like JPA I can at least understand it; the persistence providers were already there before JPA saw the light of day. There was no need for Sun to create a competing implementation, so they provided the API in stead. But in all other cases... I just don't get it.

  • Migrating from 10.1.3.1 to JHS10.1.3.2 gives 500 Internal Server Error

    Hi all,
    I am busy migrating from Jheadstart version 10.1.3.1 to 10.1.3.2, but now I am stuck with some binding issue.
    I can generate my application without no errors, but when I try to access a none default tab I get a 500 error. An example incl. stacktrace is added at the end of this post.
    The default 1st tab contains a Table-Form which I can use with no problem and I even can drilldown to the edit page and save some changes.
    But when I navigate to an alternative tab I get the error shown below.
    When I access the URL which the system should navigate to originally the page is shown normally and I can even save changes normally. Navigating back to the first tab gives then also the rangeBinding error.
    Using debugging and from the log I know that no rangeBinding is handed in during the prepareRender phase of the lifecycle when I get the error,
    when the app runs normally the rangeBinding handed in is not null.
    I have the assumption that some thing is wrong within the filter-mapping ordering but I am using the standard generated one from JHeadstart.
    To be precise I will include it:
    <filter-mapping>
    <filter-name>adfFaces</filter-name>
    <servlet-name>*.jsp</servlet-name>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>REQUEST</dispatcher>
    </filter-mapping>
    <filter-mapping>
    <filter-name>adfFaces</filter-name>
    <url-pattern>*.jspx</url-pattern>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>REQUEST</dispatcher>
    </filter-mapping>
    <filter-mapping>
    <filter-name>adfFaces</filter-name>
    <url-pattern>*.jsp</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>adfBindings</filter-name>
    <url-pattern>*.jsp</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>adfBindings</filter-name>
    <url-pattern>*.jspx</url-pattern>
    <dispatcher>REQUEST</dispatcher>
    <dispatcher>FORWARD</dispatcher>
    </filter-mapping>
    <filter-mapping>
    <filter-name>adfBindings</filter-name>
    <servlet-name>ordDeliverMedia</servlet-name>
    </filter-mapping>
    Does somebody have a clue what's wrong within my configuration?
    Regards,
    Michel Jansen
    Log including stacktrace:
    16-jan 15:14:32 DEBUG (JhsPageLifecycle) -Executing prepareModel, page=/pages/onderhoud/BijzonderheidTable.jspx, pagedef=BijzonderheidPageDef
    16-jan 15:14:32 DEBUG (JhsNavigationHandlerImpl) -Executing checkRoles
    16-jan 15:14:32 DEBUG (JhsNavigationHandlerImpl) -User is authorized
    16-jan-2008 15:14:32 oracle.adfinternal.view.faces.model.binding.FacesCtrlRangeBinding$FacesModel getSelectedRow
    WARNING: rowIterator is null
    16-jan-2008 15:14:32 oracle.adfinternal.view.faces.model.binding.FacesCtrlRangeBinding$FacesModel getSelectedRow
    WARNING: rowIterator is null
    16-jan-2008 15:14:32 oracle.adfinternal.view.faces.model.binding.FacesCtrlRangeBinding$FacesModel getSelectedRow
    WARNING: rowIterator is null
    16-jan 15:14:32 DEBUG (DoRollbackActionListener) -Executing Rollback action binding
    16-jan 15:14:32 DEBUG (JhsPageLifecycle) -executing onRollback
    16-jan 15:14:32 DEBUG (JhsPageLifecycle) -No rollback performed because there are no pending changes
    16-jan 15:14:32 DEBUG (ResetBreadcrumbStackActionListener) -Resetting breadcrumb stack
    16-jan 15:14:32 DEBUG (JhsNavigationHandlerImpl) -handleNavigation action=null, outcome=StartDomein
    16-jan 15:14:32 DEBUG (JhsNavigationHandlerImpl) -Executing checkRoles
    16-jan 15:14:32 DEBUG (JhsNavigationHandlerImpl) -User is authorized
    16-jan 15:14:32 DEBUG (JhsPageLifecycle) -Executing prepareModel, page=/pages/onderhoud/DomeinTable.jspx, pagedef=DomeinPageDef
    16-jan 15:14:32 DEBUG (JhsNavigationHandlerImpl) -Executing checkRoles
    16-jan 15:14:32 DEBUG (JhsNavigationHandlerImpl) -User is authorized
    16-jan 15:14:32 DEBUG (JhsPageLifecycle) -Executing prepareRender, page=/pages/onderhoud/DomeinTable.jspx, pagedef=DomeinPageDef
    16-jan 15:14:32 DEBUG (JhsPageLifecycle) -Locale nl set on current JSF page
    16-jan-2008 15:14:32 oracle.adfinternal.view.faces.webapp.AdfFacesFilterHelperImpl startFilter
    WARNING: AdfFacesContext had not been properly released on earlier request.
    16-jan 15:14:32 ERROR (ApplicationImpl) -Managedbean DomeinCollectionModel could not be created Can't set managed bean property: 'rangeBinding'.
    javax.faces.FacesException: Can't set managed bean property: 'rangeBinding'.
         at com.sun.faces.config.ManagedBeanFactory.setPropertiesIntoBean(ManagedBeanFactory.java:596)
         at com.sun.faces.config.ManagedBeanFactory.newInstance(ManagedBeanFactory.java:253)
         at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:306)
         at com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:97)
         at oracle.adfinternal.view.faces.el.AdfFacesVariableResolver.resolveVariable(AdfFacesVariableResolver.java:40)
         at oracle.adfinternal.view.faces.model.VariableResolverUtils$JspResolver.resolveVariable(VariableResolverUtils.java:79)
         at com.sun.faces.el.impl.NamedValue.evaluate(NamedValue.java:145)
         at com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:166)
         at com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:263)
         at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:160)
         at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143)
         at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:406)
         at javax.faces.webapp.UIComponentTag.createComponent(UIComponentTag.java:1019)
         at javax.faces.webapp.UIComponentTag.createChild(UIComponentTag.java:1046)
         at javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:761)
         at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:451)
         at oracle.adf.view.faces.webapp.UIXComponentTag.doStartTag(UIXComponentTag.java:85)
         at pages.onderhoud._DomeinTable_jspx._jspService(_DomeinTable_jspx.java:525)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
         at com.evermind.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:123)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:103)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:287)
         at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)
         at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
         at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
         at oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:157)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
         at com.evermind.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:123)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:103)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
         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.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.reflect.InvocationTargetException
         at sun.reflect.GeneratedMethodAccessor75.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.java:1789)
         at com.sun.faces.config.ManagedBeanFactory.setPropertiesIntoBean(ManagedBeanFactory.java:578)
         ... 63 more
    Caused by: java.lang.NullPointerException
         at oracle.jheadstart.controller.jsf.bean.JhsCollectionModel.setRangeBinding(JhsCollectionModel.java:446)
         ... 68 more

    Michel,
    Usually, such problems come from a custom 10.1.3.1 template that is still used in 10.1.3.2, which has not been merged with the new 10.1.3.2 default template. Could you check if your application definition contains any custom templates, and if so, test the application with only the default templates?
    To see if custom templates are used, you could check the xml source of the application definition and check for the occurrence of a <Templates> tag as opposed to an empty <Templates/> tag.
    Hope this helps,
    Sandra Muller
    JHeadstart Team
    Oracle Consulting

Maybe you are looking for

  • Creating and Selecting a line in After Effects CC?

    OK, So I suppose this is a two part question... But there is a little thing in After Effects CC that is annopying me alot, and it could just be me, and the way I've been doing things... 1) The way I have creating a simple Line in After effects, is by

  • Simple Mail vs. External Send

    Dear Experts, does anybody know what the difference between email sending method 'SIMPLE MAIL' and 'EXTERNAL SEND' is? Thanks a lot for any suggestion! Best regards, Marc

  • Macbook pro and adapter problems

    I was just playing LoL last night and suddenly my Macbook Pro turns off.. I tried to turn it on but it didn't turn on. And the MagSafe light is not that bright anymore it change color Green and Orange. Any Ideas or Suggestions? Please help here.

  • MobileMe error message since updrage from Leopard

    I have suddenly started getting an error message pop up sporadically that says "You entered an invalid MobileMe member name or password. Verify your MM member name and password in MM System Preferences". I don't have a MM account and there is nothing

  • Itunes is getting too big for my c: drive...

    Hi guys, I have a considerably large music folder on my PC which is currently in my public music section on my c: drive I could do with moving it over to my d: partition which is practically empty but i don't know how to make it so that the music can