Jsf 1.2 to 2.0 migration

Hello,
my applications are running on jsf 2.0 but my standalone weblogic v10.3.6 server on 1.2 version.
I search around for solutions but with no luck on step by  step for new users like me. I know how
to deploy the library on the server but it doesnt let me since they have the same name "jsf"
and i dont believe changing the 2.0's name would be the solution but a pain since will need to configure
the jsf settings on each new project (right?). Was hoping someone explain me or point me somewhere
where it shows on detailed step-by-step how to delete the old version, upload the new, and point EM at the new
version.
thanks in advance.

Thanks a lot for the help.
I managed to make it work with alternative way. I choose the update button in weblogic console, and choose the new version. Successfully i bypass the error while deploying, but keep in mind now i have both 1.2 and 2.0 in my weblogic libraries active. I point all the config files from 1.2 to 2.0.
Said that, i have a application error now. Looks like one of my view objects throwing an exception inside weblogic, my application shows up online and i can navigate to it, but its not functional (pressing buttons, menus and nothing happens etc). I checked the view object that the errors are referring to, but i don't see any extra definitions that need to be removed (i may create and delete a bind variable, or value to the object, and the code stayed there or something). The one thing that annoyed me if i deployed it in integrated weblogic (jdeveloper run time) everything works fine with no error, not even the integrated weblogic logs inside jdeveloper. I noticed integrated weblogic and stand alone weblogic have some different libraries, like jackson etc. Should i try uploading the same libraries from integrated weblogic?
*i started a new topic about it at https://forums.oracle.com/thread/2561749

Similar Messages

  • 10.1.3.1 : JSF migration issues : "awijeyek build" versus "sobryan build"

    hi
    I've noticed, and read about, some issues with adf-faces-impl.jar and jsf-impl.jar when migrating between recent JDeveloper versions.
    If I create a simple JSF JSP page in "JDev 10.1.3" and I "migrate" that to "JDev 10.1.3.1" I observe what has been described in bug 5607187 on October 18, 2006. The project in "JDev 10.1.3", before migration, contains "adf-faces-impl.jar 10_1_3_0_4" and "jsf-impl.jar 1_1". The migrated project in "JDev 10.1.3.1" contains the new "adf-faces-impl.jar 10_1_3_1_0 sobryan", but still the old "jsf-impl.jar 1_1" instead of "jsf-impl.jar 1.1_02-b08".
    Using the same scenario, I migrate from "JDev 10.1.3.1 developer preview" to "JDev 10.1.3.1". The project in "JDev 10.1.3.1 developer preview", before migration, contains "adf-faces-impl.jar 10_1_3_1_0 awijeyek". The migrated project in "JDev 10.1.3.1" still contains "adf-faces-impl.jar 10_1_3_1_0 awijeyek" and not "adf-faces-impl.jar 10_1_3_1_0 sobryan". (They both use "jsf-impl.jar 1.1_02-b08".)
    This causes the following exception when I run the migrated application:
    java.lang.NoSuchMethodError: oracle.adf.view.faces.context.AdfFacesContextFactory.createContext(Ljava/lang/Object;Ljava/lang/Object;)Loracle/adf/view/faces/context/AdfFacesContext;
    at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:187)
    at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:106)
    ...This seems to be caused by an API change in AdfFacesContextFactory:
    In "JDev 10.1.3.1 developer preview" adf-faces-api.jar\oracle\adf\view\faces\context\AdfFacesContextFactory.class the createContext() methods looks like
    public abstract oracle.adf.view.faces.context.AdfFacesContext createContext(java.lang.Object p1, java.lang.Object p2) { }While in "JDev 10.1.3.1" adf-faces-api.jar\oracle\adf\view\faces\context\AdfFacesContextFactory.class the createContext() methods looks likepublic abstract oracle.adf.view.faces.context.AdfFacesContext createContext(oracle.adf.view.faces.webapp.wrapper.ContextWrapper p1, oracle.adf.view.faces.webapp.wrapper.RequestWrapper p2) { }This method gets called by oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl which is in adf-faces-impl.jar that has a migration issue as explained above.
    The embedded OC4J also displays this warning:WARNING: Code-source D:\oracle\jdevstudio10131\jlib\adf-faces-impl.jar (from <classpath> in D:\temp\JSFMigrationIssue10131dp-mig10131\View\public_html) has the same filename but is not identical to /D:/temp/JSFMigrationIssue10131dp-mig10131/View/public_html/WEB-INF/lib/adf-faces-impl.jar
    (from WEB-INF/lib/ directory in D:\temp\JSFMigrationIssue10131dp-mig10131\View\public_html\WEB-INF\lib). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader current-workspace-app.web.JSFMigrationIssue10131dp-View-webapp:0.0.0.(*) workaround
    Manually replacing the adf-faces-impl.jar in the WEB-INF\lib folder of my project with the one in the "JDev 10.1.3.1"\jlib folder solved my "NoSuchMethodError" problem.
    (*) suggestion
    Maybe some of this deserves a place on
    http://www.oracle.com/technology/products/jdev/htdocs/10.1.3.1/10.1.3.1addendum.html
    (*) about the versions
    "JDev 10.1.3" = JDeveloper 10g Studio Edition Version 10.1.3.0.4 (SU5) : Build JDEVADF_10.1.3_NT_060125.0900.3673
    "JDev 10.1.3.1 developer preview" = Oracle JDeveloper Developer Preview Studio Edition Version 10.1.3.1.0.3914 : Build JDEVADF_10.1.3.1.0_NT_060807.1321.3914
    "JDev 10.1.3.1" = JDeveloper Studio Edition Version 10.1.3.1.0.3984 : Build JDEVADF_10.1.3.1.0_NT_061009.1404.3984
    (*) about JAR files
    - "adf-faces-impl.jar 10_1_3_0_4" = "JDev 10.1.3" adf-faces-impl.jar\META-INF\MANIFEST.MF
    Manifest-Version: 1.0
    Ant-Version: Apache Ant 1.5.3
    Created-By: Apache Maven
    Built-By: awijeyek
    Package: oracle.adfinternal.view.faces
    Build-Jdk: 1.4.2_09
    Extension-Name: adf-faces-impl
    Specification-Title: ADF Faces Implementation
    Specification-Vendor: Oracle Corporation
    Implementation-Title: oracle.adfinternal.view.faces
    Implementation-Vendor: Oracle Corporation
    Implementation-Version: 10_1_3_0_4- "jsf-impl.jar 1_1" = "JDev 10.1.3" jsf-impl.jar\META-INF\MANIFEST.MF
    Manifest-Version: 1.0
    Created-By: Apache Ant 1.5.1
    Specification-Title: JavaServer Faces
    Specification-Version: 1.1
    Implementation-Title: 'jsf-impl': JavaServer Faces RI
    Implementation-Version: 1_1
    Implementation-Vendor: Sun Microsystems, Inc.
    Implementation-Vendor-Id: com.sun
    Extension-Name: com.sun.faces- "adf-faces-impl.jar 10_1_3_1_0 awijeyek" = "JDev 10.1.3.1 developer preview" adf-faces-impl.jar\META-INF\MANIFEST.MF
    Manifest-Version: 1.0
    Ant-Version: Apache Ant 1.5.3
    Created-By: Apache Maven
    Built-By: awijeyek
    Package: oracle.adfinternal.view.faces
    Build-Jdk: 1.4.2_12
    Extension-Name: adf-faces-impl
    Specification-Title: ADF Faces Implementation
    Specification-Vendor: Oracle Corporation
    Implementation-Title: oracle.adfinternal.view.faces
    Implementation-Vendor: Oracle Corporation
    Implementation-Version: 10_1_3_1_0- "jsf-impl.jar 1.1_02-b08" = "JDev 10.1.3.1 developer preview" jsf-impl.jar\META-INF\MANIFEST.MF (exactly the same file in "JDev 10.1.3.1")
    Manifest-Version: 1.0
    Created-By: Apache Ant 1.5.1
    Specification-Title: JavaServer Faces
    Specification-Version: 1.1
    Implementation-Title: 'jsf-impl': JavaServer Faces RI
    Implementation-Version: 1.1_02-b08
    Implementation-Vendor: Sun Microsystems, Inc.
    Implementation-Vendor-Id: com.sun
    Extension-Name: com.sun.faces- "adf-faces-impl.jar 10_1_3_1_0 sobryan" = "JDev 10.1.3.1" adf-faces-impl.jar\META-INF\MANIFEST.MF
    Manifest-Version: 1.0
    Ant-Version: Apache Ant 1.5.3
    Created-By: Apache Maven
    Built-By: sobryan
    Package: oracle.adfinternal.view.faces
    Build-Jdk: 1.4.2_09
    Extension-Name: adf-faces-impl
    Specification-Title: ADF Faces Implementation
    Specification-Vendor: Oracle Corporation
    Implementation-Title: oracle.adfinternal.view.faces
    Implementation-Vendor: Oracle Corporation
    Implementation-Version: 10_1_3_1_0(*) about the scenario
    I created a simple JSPX document using the "Create JSF JSP wizard". On the "Create JSF JSP - Stef 4 of 5: Tag Libraries" panel I selected "ADF Faces Components <version>" and "ADF Faces HTML <version>". In "JDev 10.1.3" this version was "10_1_3_0_4", In "JDev 10.1.3.1 developer preview" and "JDev 10.1.3.1" this version was "10_1_3_1_0". I also added a PanelPage component from the "ADF Faces Core" component pallet.
    (*) about migration
    Migrating to another JDeveloper version is just opening the application (.jws file) in the new JDeveloper. I got an "Open Warning" that says "You are about to migrate the application <path>\JSFMigrationIssue.jws to JDeveloper version 10.1.3.1.0 file format. ..." where I answer "Yes" to the question "Do you want to migrate these files?". After that I get "Migration successfilly completed for the following file(s): ...".
    (*) related threads
    "ADF Faces; how to see bug fix in 10.1.3.1 (need to manually copy jars?)"
    ADF Faces; how to see bug fix in 10.1.3.1 (need to manually copy jars?)
    "10.1.3.1 first crash after migration"
    10.1.3.1 first crash after migration
    regards
    Jan Vervecken

    Jan, <br>
    <br>
    yes that's correct. <br>
    Bug 5615982 is about migrating from JDeveloper 10.1.3.1 Developer's Preview (Build 3914), as the symptom and the fix are different when migrating from JDeveloper 10.1.3.0 (Bug 5607187) or 10.1.3.1 Developer's Preview - see details [Here]<br>
    <br>
    Bug 5615982 is now available on MetaLink. <br>
    We also published an Alert Note 395980.1<br>
    <br>
    FYI, the content of MetaLink is refreshed every 2 hours (00:20, 02:20, ..., 12:20, ... 22:20 - GMT time)<br>
    <br>
    Regards, <br>
    <br>
    Didier.<br>

  • 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. :)

  • DOUBTS FOR MIGRATION FROM 10.1.2 TO 10.1.3

    Hi all,
    I have done an attempt to migrate a simple web app from 10.1.2 (using UIX technology) to 10.1.3; the migration seem ok, but at run-time appear the error in the browser:
    500 Internal Server Error
    Cannot get request dispatcher for path /test.uix
    I have much doubts if the migration tool works effectively...
    Can anyone explain its experience? Can solve my doubts?
    Thanks,
    Matteo

    Matteo,
    if you have used some "advanced" UIX features not existing in JSF (like Templates) then all the "migration tool" will do is comment out everything in your page.
    Converting from UIX to JSF means basically recreating the UI in JSF by hand.
    And yes, Oracle promised to support for UIX in 10.1.3, but in the end they broke that promise.
    So if you have UIX running and cannot do the migration to JSF then you will have to stick to 10.1.2. There is no design time for UIX in 10.1.3. People tried to get the runtime at least to work on a 10.1.3 ADF layer and failed.
    Sascha

  • J dev 11g Weblogic deployment error.

    We develop a new web ADF JSF project using Jdev11g production (not migrated from prereleases). We configure weblogic R3 as ADF domain.
    When we want to deploy our pğroject to weblogic following exception occurs.
    Is there anyone faced before. How can we solve this. Thanks.
    ....> <Error> <Console> <.......> <AdminServer> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <> <1226331993131> <BEA-240003> <Console encountered the following error weblogic.management.DeploymentException:
    at weblogic.application.internal.flow.BaseLifecycleFlow$CreateListenerAction.run(BaseLifecycleFlow.java:171)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.application.internal.flow.BaseLifecycleFlow$BaseAction.invoke(BaseLifecycleFlow.java:99)
    at weblogic.application.internal.flow.HeadLifecycleFlow.createListener(HeadLifecycleFlow.java:117)
    at weblogic.application.internal.flow.HeadLifecycleFlow.createListener(HeadLifecycleFlow.java:103)
    at weblogic.application.internal.flow.HeadLifecycleFlow.createListeners(HeadLifecycleFlow.java:172)
    at weblogic.application.internal.flow.HeadLifecycleFlow.prepare(HeadLifecycleFlow.java:277)
    at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:615)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
    at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:16)
    at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:155)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:197)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:89)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:723)
    at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1190)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:248)
    at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:45)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: java.lang.ClassNotFoundException: oracle.security.jps.wls.listeners.JpsAppVersionLifecycleListener
    at java.lang.Class.forName(Class.java:247)
    at weblogic.application.internal.flow.BaseLifecycleFlow$CreateListenerAction.run(BaseLifecycleFlow.java:135)

    There is no JpsApplicationLifecycleListener in my web.xml code.
    I added web.xml source below.
    is there any abnormal or problematic situation inside.
    Thanks.
    <?xml version = '1.0' encoding = 'windows-1254'?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5" xmlns="http://java.sun.com/xml/ns/javaee">
    <description>Empty web.xml file for Web Application</description>
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</param-value>
    </context-param>
    <context-param>
    <description>If this parameter is true, there will be an automatic check of the modification date of your JSPs, and saved state will be discarded when JSP's change. It will also automatically check if your skinning css files have changed without you having to restart the server. This makes development easier, but adds overhead. For this reason this parameter should be set to false when your application is deployed.</description>
    <param-name>org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION</param-name>
    <param-value>false</param-value>
    </context-param>
    <context-param>
    <description>Whether the 'Generated by...' comment at the bottom of ADF Faces HTML pages should contain version number information.</description>
    <param-name>oracle.adf.view.rich.versionString.HIDDEN</param-name>
    <param-value>false</param-value>
    </context-param>
    <filter>
    <filter-name>trinidad</filter-name>
    <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
    </filter>
    <filter>
    <filter-name>ServletADFFilter</filter-name>
    <filter-class>oracle.adf.share.http.ServletADFFilter</filter-class>
    </filter>
    <filter>
    <filter-name>ADFLibraryFilter</filter-name>
    <filter-class>oracle.adf.library.webapp.LibraryFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>trinidad</filter-name>
    <servlet-name>Faces Servlet</servlet-name>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>REQUEST</dispatcher>
    </filter-mapping>
    <filter-mapping>
    <filter-name>ServletADFFilter</filter-name>
    <servlet-name>Faces Servlet</servlet-name>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>REQUEST</dispatcher>
    </filter-mapping>
    <filter-mapping>
    <filter-name>ADFLibraryFilter</filter-name>
    <url-pattern>/*</url-pattern>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>REQUEST</dispatcher>
    </filter-mapping>
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>resources</servlet-name>
    <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>adflibResources</servlet-name>
    <servlet-class>oracle.adf.library.webapp.ResourceServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>BIGRAPHSERVLET</servlet-name>
    <servlet-class>oracle.adfinternal.view.faces.bi.renderkit.graph.GraphServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>BIGAUGESERVLET</servlet-name>
    <servlet-class>oracle.adfinternal.view.faces.bi.renderkit.gauge.GaugeServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>MapProxyServlet</servlet-name>
    <servlet-class>oracle.adfinternal.view.faces.bi.renderkit.geoMap.servlet.MapProxyServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>GatewayServlet</servlet-name>
    <servlet-class>oracle.adfinternal.view.faces.bi.renderkit.graph.FlashBridgeServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>resources</servlet-name>
    <url-pattern>/adf/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>resources</servlet-name>
    <url-pattern>/afr/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>adflibResources</servlet-name>
    <url-pattern>/adflib/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>BIGRAPHSERVLET</servlet-name>
    <url-pattern>/servlet/GraphServlet/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>BIGAUGESERVLET</servlet-name>
    <url-pattern>/servlet/GaugeServlet/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>MapProxyServlet</servlet-name>
    <url-pattern>/mapproxy/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>resources</servlet-name>
    <url-pattern>/bi/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>GatewayServlet</servlet-name>
    <url-pattern>/flashbridge/*</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>35</session-timeout>
    </session-config>
    <mime-mapping>
    <extension>html</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>txt</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
    </web-app>

  • Doubts for Invoicing????

    Hello SAP Gurus,
    Can anybody help me out for below questions?
    1. What is Invoice matching?
    2. Batching?
    3. Coding?
    Thanks & regards
    Amar

    Matteo,
    if you have used some "advanced" UIX features not existing in JSF (like Templates) then all the "migration tool" will do is comment out everything in your page.
    Converting from UIX to JSF means basically recreating the UI in JSF by hand.
    And yes, Oracle promised to support for UIX in 10.1.3, but in the end they broke that promise.
    So if you have UIX running and cannot do the migration to JSF then you will have to stick to 10.1.2. There is no design time for UIX in 10.1.3. People tried to get the runtime at least to work on a 10.1.3 ADF layer and failed.
    Sascha

  • 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

  • JSF Application on WAS 6.1 when migrated from tomcat5.5 not loading

    I'm migration a list of applications from Tomcat to WAS 6.1
    I have a JSF application running on Tomcat 5.5.
    The same application when hosting on websphere application server 6.1(latest service pack applied in 6.1.0.17 ) is not loading properly.
    The application has a login screen that comes when loads. This comes fine in the tomcat server. But in the WAS this not loading. It's not giving any error messages also. What happens in WAS is in the login screen The header section will comes but the login fields ie the user Id and password section won't come.
    I tried deploying the same war file from the Tomcat to the WAS server. Still there is no change.
    Initially my WAS server version was 6.1.0.2, and then I had an issue with JSF servlet and context mappings.
    After applying the fix pack 6.1.0.17 it was fine.
    The application uses the a security filter- form based login in the web.xml
    Is there any difference between the form base authentication between tomcat and websphere ?
    Here is the section of web.xml for form based authentication
    <!--Security filter - form based login -->
    <filter>
    <filter-name>Security Filter</filter-name>
    <filter-class>org.securityfilter.filter.SecurityFilter</filter-class>
    <init-param>
    <description>Configuration file location (this is the default value)</description>
    <param-name>config</param-name>
    <param-value>/WEB-INF/securityfilter-config.xml</param-value>
    </init-param>
    <init-param>
    <description>Validate config file if set to true</description>
    <param-name>validate</param-name>
    <param-value>true</param-value>
    </init-param>
    <init-param>
    <description>change security binding</description>
    <param-name>loginSubmitPattern</param-name>
    <param-value>login.html</param-value>
    </init-param>
    </filter>
    this is urgent, please help.
    Edited by: JSF_exception on Nov 10, 2008 8:31 PM

    yes i checked the server logs. it didn't give any messages.
    there is no information in the file 'native_stderr.log','SystemOut.log','SystemErr.log','native_stdout.log' files.
    In the production server, i noticed an error message in the SystemOut.log file, it gives the following message.
    +1/11/08 13:39:33:851 EST] 00000026 SecurityFilte I org.apache.commons.logging.impl.Jdk14Logger info SecurityFilter.doFilter+
    +[11/11/08 13:39:33:870 EST] 00000026 WebApp E [Servlet Error]-[Filter [Security Filter]: filter is unavailable.]: java.lang.NullPointerException+
    +     at java.lang.Throwable.<init>(Throwable.java:181)+
    +     at java.lang.Exception.<init>(Exception.java:29)+
    +     at java.lang.RuntimeException.<init>(RuntimeException.java:32)+
    +     at java.lang.NullPointerException.<init>(NullPointerException.java:36)+
    +     at org.securityfilter.filter.SecurityFilter.doFilter(SecurityFilter.java:151)+
    +     at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:173)+
    +     at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:106)+
    +     at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:75)+
    +     at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:720)+
    +     at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:679)+
    +     at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:686)+
    +     at com.ibm.ws.wswebcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:70)+
    +     at com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.invokeFilters(DefaultExtensionProcessor.java:788)+
    +     at com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:241)+
    +     at com.ibm.ws.wswebcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:105)+
    +     at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3287)+
    +     at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:246)+
    +     at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:615)+
    +     at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1418)+
    +     at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:110)+
    +     at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:398)+
    +     at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:298)+
    +     at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:254)+
    +     at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:179)+
    +     at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:109)+
    +     at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:532)+
    +     at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:583)+
    +     at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:973)+
    +     at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1063)+
    +     at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)+
    +[11/11/08 13:39:34:037 EST] 00000026 SecurityFilte I org.apache.commons.logging.impl.Jdk14Logger info SecurityFilter.doFilter+
    +[11/11/08 13:39:34:103 EST] 00000026 SecurityFilte I org.apache.commons.logging.impl.Jdk14Logger info SecurityFilter.doFilter+
    +[11/11/08 13:39:34:183 EST] 00000026 SecurityFilte I org.apache.commons.logging.impl.Jdk14Logger info SecurityFilter.doFilter+
    The same application is working on tomcat. So when we move it from tomcat to WAS should we change any settings.
    if we are deploying the war file it should work in all the servers right?
    Following is my login page..
    <%@ page language="java" pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
    <t:htmlTag value="P" >
    <h:outputText value="<FORM action='login.html' id='base_form' method='POST'>" escape="false" />
    <t:panelGrid columns="2" align="center" footerClass="loginFooter" headerClass="loginHeader" columnClasses="loginColumn1, loginColumn2" styleClass="loginFormPanel">
    <f:facet name="header">
    <t:outputText value="Please login with your I5DEV system name and password " styleClass="loginDescriptionA" />
    </f:facet>
    <t:outputText value="Username:" />
    <t:inputText value="" id="j_username" forceId="true" />
    <t:outputText value="Password:" />
    <t:inputSecret value="" id="j_password" forceId="true" />
    <f:facet name="footer">
    <t:panelGroup>
    <t:panelGrid style="width: 100%" rowClasses=",,loginSubmitRow">
    <t:outputText value="" />
    <t:outputText value="" />
    <f:verbatim>
    <INPUT value="Login" class="loginSubmit" type="submit" />
    </f:verbatim>
    </t:panelGrid>
    </t:panelGroup>
    </f:facet>
    </t:panelGrid>
    <t:panelGrid align="center">
    <t:outputText value="#{requestScope.error}" styleClass="errorMessage" style="display: inline;" rendered="#{!empty requestScope.error}"/>
    <h:message for="general_login" id="general_login" errorClass="errorMessage" style="display: inline;"/>
    </t:panelGrid>
    <h:outputText value="</FORM>" escape="false" />
    </t:htmlTag>
    <t:panelGrid align="center" columnClasses="warnMessage">
    <t:outputText value="NOTE: Providing an incorrect password increments the number of failed sign-on attempts for the user profile, and can result in the profile being disabled." styleClass="warningMessage" />
    </t:panelGrid>
    <f:verbatim>
    <SCRIPT language="javascript" type="text/javascript">
    window.onload = function() {
    document.getElementById("j_username").focus();
    </SCRIPT>
    </f:verbatim>
    Edited by: JSF_exception on Nov 11, 2008 11:17 AM
    Edited by: JSF_exception on Nov 11, 2008 11:22 AM

  • Jspx template migration to jsf 2 problematic

    Hello experts,
    I have a ADF web application developed with JDeveloper 11.1.1.4 using JSF 1.2 deployed on WebLogic server 10.3.4.
    When I migrate to the new version jsf 2: Build JDEVADF_11.1.2.2.0_GENERIC_120418.2212.6183.1 and WebLogic server 10.3.5, the jspx template below misbehaves.
    The menu is brought from the left to the right hand side, though it expands and navigates well, the page contents, but the menu and logo, are not displayed.
    In other words, I can only see the logo, the moved but working menu but nothing else.
    Is there any way of correcting that kind of behaviour and migrate the app?
    Thank you in advance!
    NA
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <af:pageTemplateDef var="attrs">
    <af:panelStretchLayout id="pt_psl1" topHeight="113px">
    <f:facet name="center">
    <af:panelSplitter id="pt_ps1" orientation="vertical"
    splitterPosition="792">
    <f:facet name="first">
    <af:decorativeBox id="pt_db2" topHeight="26px">
    <f:facet name="center">
    <af:panelGroupLayout layout="scroll"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    id="pt_pgl7">
    <f:verbatim>
    <div align="center">
    <af:facetRef facetName="content"/>
    </div>
    </f:verbatim>
    </af:panelGroupLayout>
    </f:facet>
    <f:facet name="top">
    <af:menuBar id="pt_mb1">
    <af:group id="pt_g1">
    <af:popup id="aboutPopup">
    <af:dialog id="pt_d1" type="ok"
    title="About Auction Bazaar">
    <af:panelGroupLayout id="pt_pgl3" halign="center"
    layout="vertical">
    <af:outputText value="Developed by Nick Aiva. Version #{initParam.ActionBazaarApplicationVersion } Copyright
    2012 #{requestContext.timeZone.displayName} "
    id="outputText1"/>
    <af:outputText value="Language and locale settings follow:
    #{facesContext.application.defaultLocale.displayLanguage}
    #{facesContext.application.defaultLocale.language}
    #{facesContext.application.defaultLocale.displayCountry}
    #{facesContext.application.defaultLocale.ISO3Country}
    #{facesContext.application.defaultLocale.ISO3Language}" id="pt_ot3"/>
    <af:spacer width="20" height="10" id="spacer1"/>
    <af:outputText value="For newer versions please visit:" id="pt_ot2"/>
    <af:spacer width="20" height="10" id="spacer3"/>
    <af:goLink id="goLink1" targetFrame="_blank"
    destination="http://nickaiva.blogspot.com"
    inlineStyle="font-size:medium;"
    text="http://nickaiva.blogspot.com"/>
    <af:spacer width="20" height="10" id="spacer2"/>
    </af:panelGroupLayout>
    </af:dialog>
    </af:popup>
    <af:menuBar id="menuBar1">
    <af:menu text="User" id="menu2">
    <af:commandMenuItem text="Add new user"
    id="commandMenuItem3"
    action="createUser"/>
    <af:commandMenuItem text="Query users"
    id="commandMenuItem4"
    action="queryUsers"
    rendered="#{securityContext.userInRole['ADMINISTRATOR']}"/>
    <af:commandMenuItem text="Change bidder status"
    id="pt_cmi3"
    action="changeBidderStatus"
    rendered="#{securityContext.userInRole['ADMINISTRATOR']}"/>
    <af:commandMenuItem text="My personal details"
    id="commandMenuItem12"
    action="home"/>
    <af:commandMenuItem text="Log out" id="pt_cmi4"
    rendered="#{securityContext.authenticated}"
    action="#{login.performLogout}"/>
    </af:menu>
    <af:menu text="Bid" id="menu3"
    textAndAccessKey="&amp;Bid">
    <af:commandMenuItem text="Add new bid"
    id="commandMenuItem5"
    action="addBid"
    rendered="#{securityContext.userInRole['BIDDER , ADMINISTRATOR']}"/>
    <af:commandMenuItem text="Query bids"
    id="commandMenuItem6"
    action="queryBids"/>
    <af:commandMenuItem text="Withdraw a bid"
    id="commandMenuItem11"
    action="withdraw"
    rendered="#{securityContext.userInRole['BIDDER , ADMINISTRATOR']}"/>
    </af:menu>
    <af:menu text="Item" id="pt_m2"
    textAndAccessKey="&amp;Sell">
    <af:commandMenuItem text="Add new item" id="pt_cmi2"
    action="addItem"
    rendered="#{securityContext.userInRole['SELLER, ADMINISTRATOR']}"/>
    <af:commandMenuItem text="Query items"
    id="commandMenuItem1"
    action="queryItems"/>
    <af:commandMenuItem text="Update item"
    id="commandMenuItem14"
    action="updateItem"
    rendered="#{securityContext.userInRole['SELLER, ADMINISTRATOR']}"/>
    <af:commandMenuItem text="Place item in category"
    id="commandMenuItem16"
    action="placeItemInCategory"
    rendered="#{securityContext.userInRole['SELLER, ADMINISTRATOR']}"/>
    </af:menu>
    <af:menu text="Category" id="menu4"
    textAndAccessKey="&amp;Bid">
    <af:commandMenuItem text="Add new category"
    id="commandMenuItem7"
    action="addCategory"
    rendered="#{securityContext.userInRole['ADMINISTRATOR']}"/>
    <af:commandMenuItem text="Query categories"
    id="commandMenuItem8"
    action="queryCategories"/>
    <af:commandMenuItem text="Update category"
    id="commandMenuItem15"
    action="updateCategory"
    rendered="#{securityContext.userInRole['ADMINISTRATOR']}"/>
    </af:menu>
    <af:menu text="Order" id="menu5"
    rendered="#{securityContext.userInRole['BIDDER,ADMINISTRATOR ']}">
    <af:commandMenuItem text="Create Shipping Info"
    id="pt_cmi1"
    action="createShippingInfo"/>
    <af:commandMenuItem text="Add new order"
    id="commandMenuItem9"
    action="addOrder"/>
    <af:commandMenuItem text="Query orders"
    id="commandMenuItem10"
    action="queryOrders"/>
    </af:menu>
    <af:menu text="Help" id="menu1"
    textAndAccessKey="&amp;Help">
    <af:commandMenuItem id="commandMenuItem2"
    textAndAccessKey="&amp;About"
    text="About">
    <af:showPopupBehavior popupId="aboutPopup"
    triggerType="action"/>
    </af:commandMenuItem>
    <af:goMenuItem text="Diagnostics" id="goMenuItem1"
    destination="/servlet/SuperSnoop"/>
    <af:commandMenuItem id="commandMenuItem13"
    action="resetLog4j"
    text="ResetLog4j"/>
    </af:menu>
    </af:menuBar>
    </af:group>
    </af:menuBar>
    </f:facet>
    </af:decorativeBox>
    </f:facet>
    </af:panelSplitter>
    </f:facet>
    <f:facet name="top">
    <af:decorativeBox id="pt_db1" topHeight="50px">
    <f:facet name="center">
    <af:panelGroupLayout id="pt_pgl1" layout="horizontal"
    valign="middle">
    <af:goLink id="pt_gl1"
    targetFrame="_blank"
    destination="http://nickaiva.blogspot.com"
    inlineStyle="font-size:medium;">
    <af:image id="pt_i1" shortDesc="http://nickaiva.blogspot.com"
    inlineStyle="height:auto; width:auto;"
    source="/images/cropped-small-sea-wave .jpg"/>
    <af:spacer width="20" height="10" id="pt_s1"/>
    </af:goLink>
    <af:outputText value="#{attrs.pageTitle}" id="pt_ot1"
    inlineStyle="color:Navy; font-size:large;"/>
    </af:panelGroupLayout>
    </f:facet>
    </af:decorativeBox>
    </f:facet>
    <f:facet name="bottom">
    <af:panelStretchLayout id="pt_psl3" startWidth="200px">
    <f:facet name="center">
    <af:panelGroupLayout id="pt_pgl2" halign="end" layout="horizontal">
    <af:panelGroupLayout id="pt_pgl4" layout="vertical">
    <af:spacer width="230" height="8" id="pt_s2"/>
    <af:outputFormatted value="Copyright &amp;copy; 2012 http://nickaiva.blogspot.com. All rights reserved."
    id="pt_of1" styleUsage="pageStamp"
    inlineStyle="text-align:right;"/>
    </af:panelGroupLayout>
    </af:panelGroupLayout>
    </f:facet>
    <f:facet name="start">
    <af:panelGroupLayout id="pt_pgl5" layout="vertical">
    <af:spacer width="200" height="8" id="pt_s3"/>
    <af:panelGroupLayout id="pt_pgl6" layout="horizontal">
    <af:spacer width="4" height="10" id="pt_s4"/>
    <af:switcher id="pt_s5"
    facetName="#{securityContext.authenticated?'loggedon':'loggedoff'}"
    defaultFacet="loggedoff">
    <f:facet name="loggedoff">
    <af:outputFormatted value="[Not Connected]" id="pt_of5"
    styleUsage="pageStamp"/>
    </f:facet>
    <f:facet name="loggedon">
    <af:outputFormatted value="[Connected as  #{securityContext.userName}]"
    id="pt_of6" styleUsage="pageStamp"/>
    </f:facet>
    </af:switcher>
    </af:panelGroupLayout>
    </af:panelGroupLayout>
    </f:facet>
    </af:panelStretchLayout>
    </f:facet>
    </af:panelStretchLayout>
    <af:xmlContent>
    <component xmlns="http://xmlns.oracle.com/adf/faces/rich/component">
    <display-name>templateABDef</display-name>
    <facet>
    <facet-name>content</facet-name>
    </facet>
    <attribute>
    <attribute-name>
    pageTitle
    </attribute-name>
    <attribute-class>
    java.lang.String
    </attribute-class>
    <default-value>
    Auction Bazaar
    </default-value>
    </attribute>
    </component>
    </af:xmlContent>
    </af:pageTemplateDef>
    </jsp:root>
    Edited by: NickAiva on Aug 1, 2012 4:01 PM

    Submitted bug at http://java.net/jira/browse/ADFEMG-43
    under the title:
    Problematic jspx template migration to jsf 2
    Edited by: NickAiva on Aug 2, 2012 8:52 AM
    Removing some jdev visual editor libraries solved the issue
    Edited by: NickAiva on Aug 7, 2012 9:25 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.

  • 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

  • Migrating from JSF 1.1 to 1.2

    Hi folks,
    My curent app uses JSF 1.1. I want to move to JSF1.2 which is the latest release. But when I try to deploy my app in Oracle App server after replacing new libs, I am getting error as
    Exception: NoClassDefFoundError: javax/el/ExpressionFactory
    Operation failed with error: javax/el/ExpressionFactory
    I am not able to go farward and I am complete stuck here. Please help me out how solve this migration problem,
    These are the steps I follwed in mgrating,
    1. Download JSF1.2 from net.
    2. Replace old jsf-api.jar , jsf-impl.jar with new jars.
    3. Packed(creating ear) and deployed...
    Please let me know whetehr any wrong in this process..
    Fast respose will be great !!!

    Thanks for your quick replay,
    Currently I don't know, whether My app server supoorts JSP2.1 and servlet2.5. I will check out this.
    Could you please tell how to add facelets to my app server. What are these facelet?
    Once agaian thanks for replay

  • Jsf 1.1 to jsf 1.2 migration - from-view-id and wildcards

    In our jsf application, we have a lot of navigation cases that use:
    <from-view-id>*</from-view-id>
    This worked in JSF 1.1, but now trying to get things to work with jsf 1.2 in glassfish v2 (build 19) I am seeing this error/stacktrace in the server.log file (which points at the 1st faces-config.xml case of a * in the from-view-id tag):
    javax.faces.FacesException: Can't parse configuration file: jndi:/server/talkshoe/WEB-INF/faces-config.xml: Error at line 1482 column 31: cvc-pattern-valid: Value '*' is not facet-valid with respect to pattern '#\{.*\}'.
         at com.sun.faces.config.ConfigureListener.parse(ConfigureListener.java:1587)
    From the documentation that I have found, it looks like * is still the valid wildcard...
    Has anyone else hit this issue or have any other suggestions?
    Thanks.
    Rich K.

    I'm currently migrating to 1.2. Our wildcard navigations are working with * or by omitting the from-view specifier as specified (section 7.4.2 of JSF 1.2).
    One of my rules wasn't producing an outcome because I had from-action instead of from from-outcome, but after I changed this it worked fine.
    This was with Netbeans 5.5 running SAS and JSF 1.2.

  • 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.

  • Problems by Migration JHeadstart 1012 UIX to JHeadstart 1013 JSF

    Hello,
    I'm trying to migrate a JHeadstart 1012 UIX - Project to JHeadstart 1013 JSF - Project, but I'm getting a lot of errors by testing the Application Module :
    Project: C:\JDevStudioH1013\jdev\mywork\KBV_X\KBV_X\Model\Model.jpr
    C:\JDevStudioH1013\jdev\mywork\KBV_X\KBV_X\Model\src\kbv\model\KBVQepImpl.java
    Error(3,8): JhsApplicationModuleImpl not found
    Error(11,14): class kbv.model.KBVQepImpl should be declared abstract; it does not define method remove() of interface oracle.jbo.ComponentObject
    Error(54,5): method launchTester(java.lang.String, java.lang.String) not found in class kbv.model.KBVQepImpl
    Error(62,11): method advancedSearch(java.lang.String, java.util.ArrayList) not found in class java.lang.Object
    Error(69,11): method processIntersectionShuttle(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String) not found in class java.lang.Object
    Error(76,11): method processParentShuttle(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String) not found in class java.lang.Object
    Error(83,11): method setRangeStart(java.lang.String, java.lang.String) not found in class java.lang.Object
    C:\JDevStudioH1013\jdev\mywork\KBV_X\KBV_X\Model\src\kbv\model\common\QepBereichImplMsgBundle_de.java
    Error(10,3): field Dtstamp_FMT_FORMATTER not found in class kbv.model.common.QepBereichImplMsgBundle_de
    Error(10,50): identifier adfbc not found
    What does it mean: "Cannot find script : null" in the additional console window
    Loading JHeadstart Addins
    Addin | Version | Status
    JHeadstart Shared Components | 10.1.3.0.74| Loaded
    JHeadstart Development Environment | 10.1.3.0.74| Loaded
    JHeadstart Application Generator | 10.1.3.0.74| Loaded
    Cannot find script : null
    Regards
    Boris

    Steven,
    this time, I'm using a brand new JDeveloper, Steve Munch's tutorial "jhs-step-by-step" application, but I'm also getting errors by testing the application modul:
    Project: C:\jhs-step-by-step\MyDemo\Model\Model.jpr
    C:\jhs-step-by-step\MyDemo\Model\src\mydemo\model\common\EmployeesImplMsgBundle_de.java
    Error(9,3): field HireDate_FMT_FORMATTER not found in class mydemo.model.common.EmployeesImplMsgBundle_de
    Error(9,51): identifier adfbc not found
    package mydemo.model.common;
    // --- File generated by Oracle ADF Business Components Design Time.
    // --- Custom code may be added to this class.
    // --- Warning: Do not modify method signatures of generated methods.
    public class EmployeesImplMsgBundle_de extends EmployeesImplMsgBundle {
    static final Object[][] sMessageStrings = {
    { [i]HireDate_FMT_FORMATTER, oracle.jheadstart.model.adfbc.JhsDateFormatter }};
    /**This is the default constructor (do not remove)
    public EmployeesImplMsgBundle_de() {
    init();
    /**Generated method. Do not modify. Do initialization in the constructor
    protected void init() {
    /**@return an array of key-value pairs.
    public Object[][] getContents() {
    return super.getMergedArray(sMessageStrings, super.getContents());
    Question: What is the rule of thumb - should I re-enable the project and generate a new JHeadstart Application Definition, after migrating or not?
    Regards
    Boris

Maybe you are looking for